Ubuntu :: Simple Script To Open Terminal?

May 11, 2011

I'm trying to create a script where all I have to do is double click the script file, and it opens and runs 2 commands. That's it. Or run a command from a certain directory.

I'm looking for something similar to Batch files in windows. I've looked and found the shell scripts and I created one, and it works and runs the script, but it doesn't open the terminal for me.

In short, a way to make a script, where all I have to do is double click the file, and it runs,

cd /home/sds/srcds_1/orangebox
./srcds_run -console -game cstrike +map de_dust -maxplayers 16 -autoupdate

Or, from that directory so I don't have to cd.

View 5 Replies


ADVERTISEMENT

Ubuntu :: Creating A Simple Gtk Program Through Terminal?

Jun 10, 2011

I am wanting to try creating a simple program through Terminal. Anything will do. A window or button, etc. I haven't found anything simple enough online yet, but I'm sure they're out there. I just want to expand my knowledge of gtk type stuff. Sorry if this is not the correct category to ask this. I was going to put this on the Community Cafe forum, but chose General Help instead. I am running Ubuntu Lucid. **Edit note: I did try the procedure described at the url (below), but I got all kinds of errors in terminal. [URL]

View 1 Replies View Related

Ubuntu Networking :: Simple Way To Connect To Wifi With Terminal?

Mar 26, 2010

Is there a simple way to connect to wifi with terminal?

View 2 Replies View Related

Ubuntu :: Simple Script That Open Spotify From Browser?

Aug 29, 2010

I am using spotify native for linux. I would like to make it work with the browser so when I click on a spotify link it opens spotify and it goes to the right song/playlist/user I have not much idea of linux. I am a standard user. I am a philosophy student if you know what I mean. On their website I found a script. But it is for wine. I need one that uses the native binaries (I have checked that /usr/bin/spotify actually exists)

Code:
echo '#!/bin/sh' > $HOME/bin/openspotify
echo 'exec wine "C:Program FilesSpotifyspotify.exe" /uri "$@"'
>> $HOME/bin/openspotify
chmod 755 $HOME/bin/openspotify

I would really apreciate if you could change that script so it works with spotify native.

View 1 Replies View Related

Ubuntu :: Command For "Open A Terminal Window And Run Application In This Terminal ?

Aug 8, 2010

What is the command for "Open a terminal window and run application in this terminal

View 4 Replies View Related

Ubuntu :: How To Change Terminal App For Nautilus-open-terminal

Dec 1, 2010

I've fallen in love with Terminator as a replacement for the standard gnome-terminal app.

However, I'm also very much in the habit of using the nautilus-open-terminal extension for launching new terminal sessions.

I'd like nautilus-open-terminal to launch Terminator rather than gnome-terminal.

A quick search of my system and the web didn't reveal anything. i didn't find a gconf setting to control this. A quick look at the source code didn't help much either.

View 5 Replies View Related

Ubuntu :: Create A Command That Will Open Terminal And Keep It Open?

Jul 30, 2010

I have a problem that I can't seem to figure out. I can easily create a .sh file that will execute a command in Terminal, but as soon as it executes the terminal disappears. How do I get it to stay? My idea is to have the keyboard shortcut "ctrl+alt+del" open a .sh file with the contents "ps ax". Then it would be just like having a task manager; the terminal would open with "ps ax" already executed, and all I would have to do is kill the process number.

View 5 Replies View Related

Slackware :: USB Flash Drive Mount When Simple User - Can't Open With File Manager

Aug 22, 2010

I always have a problem in simple user mode when I insert a USB key. Can't mount, can't open with file manager. I'm obliged to open a simultaneous root session, to do what I want to manage the usb key.

In my user manager, I don't know wich group I have to add to this simple user (it's me) so I am allowed to manage the usb key.

View 6 Replies View Related

Programming :: How To Compile / Simple Tutorial For Making Simple Program

Oct 7, 2010

i'm a college student studying pc programing, and i was given today a special work and i have to program using miranda... which i've never used it >.< can anyone give me a hand to where to download, how to compile, and a simple tutorial for making a simple program or something?

View 3 Replies View Related

Ubuntu :: Open .txt In Terminal?

May 15, 2010

when i double click a .txt file, i dont want gedit to open it, and instead, i would like it to open in terminal with it's output displayed (like cat .txt). how do i do this?

when i click on the .txt, i can get gnome-terminal to run, but i can't get it to open the .txt.

View 8 Replies View Related

Ubuntu :: .bat Or .sh Don't Open In Terminal?

Jul 5, 2010

how i can open .bat or .sh files in the terminal application. Of course i tried the "open with" button but for some reason terminal dosnt come up in there. is there a way to get terminal to be an option in there? or just a way to open those file types in terminal.

View 9 Replies View Related

Ubuntu :: How To Open A Terminal

Aug 30, 2010

how to open a terminal when you don't have a mouse?

View 2 Replies View Related

Ubuntu :: Cannot Open Folders In Terminal

Jan 7, 2010

how I can gain access to folder in Ubuntus 9.10 terminal. when I use a command like ./ Documents or ~/ Documents The terminal only states that "There is a folder named Documents" but never lets me enter. I can create a folder using the mkdir command and I can navigate that folder as long as that terminal session is active. When I close out the terminal and try to reopen it denies acces the same way as mentioined above. Do I need to set some type of access permissions or?

View 3 Replies View Related

Ubuntu :: Open GUI Folder In Terminal

May 28, 2010

I would like to open a folder using the terminal. In case of confusion, I dont mean to cd into the folder, but a command that opens the GUI of the folder.

View 3 Replies View Related

Ubuntu :: Nautilus Open A Terminal With App

Sep 2, 2010

I have some adlib music files I want to be able to double click from Nautilus.. the command line program that will play them is adplay.. However, if I just do that, then when I double click, the music plays, but no way to stop it!I tried "gnome-terminal adplay --output=oss" as the custom command but it doesn't seem to work.. I need it to open the terminal with adplay so i can stop the music when im done, since there's no GUI front end for this program..ALSA is the default for this app, but it skips horribly, and OSS was the only output device that works..

View 4 Replies View Related

Ubuntu :: Open Terminal Command In 10.04?

Nov 27, 2010

In Xubuntu 9.04 I could right click in any directory folder and have the option of opening a terminal window "there". So the terminal command line would open preloaded to that directory. I know, I'm lazy, but it sure made life (and command line work) easier. But it's not available in my new install of Ubuntu 10.04. Now, I know that my gui environment has changed from xfce to gnome, but I would have expected MORE features, not less.

View 9 Replies View Related

Ubuntu :: How To Open Firefox From Tty Terminal

May 21, 2011

After pressing ctrl+shift+F1 I go to the tty1 cmd line terminal.But I am not able to open firefox or chromium browser by typing their name in cmd line terminal.How to open the browser from cmd line.?Also in /media directory I am not able to automatically mount my C: D: E: drives. I need to click Places and then drive name to mount the drives.My C: D: E: are windows drives and need to automatically mount in ubuntu after starting?

View 2 Replies View Related

Ubuntu :: How To Open Terminal In System

Jun 24, 2011

I have a live ubuntu cd
but i cant find the terminal

View 6 Replies View Related

Ubuntu :: How To Open Chromium From Terminal

Jul 24, 2011

In a terminal type this:

Code:
'chromium-browser'

I looked all over the internet on how to figure this out and I couldn't find it.

How did I figure it out? I'm running Xubuntu 10.04 and it doesn't seem to let you just drag and drop the shortcut into a panel from the applications menu. You have to add the panel shortcut manually. To do this, right-click a panel and select Add New Items > Launcher. Then right-click the launcher click properties...

Here's where I got stuck. To make a good launcher/shortcut you need to know the command and put in an icon. I couldn't find the command at first so I put in the icon first instead by clicking on the icon icon (not a typo) in the launcher's properties. Select All Icons from the drop-down menu at the top of the icon selection window. Arbitrarily click on any icon and type chromium. Here's where you find your chromium icon and guess what the name of it is? "chromium-browser" This is how I figured out what the heck the command was to open the stupid thing.

View 3 Replies View Related

Ubuntu :: Nautilus-open-terminal Not Showing Up?

May 23, 2010

i just:

sudo apt-get install nautilus-open-terminal but it doesn't show up in nautilus

when i do:

gksudo nautilus and open the context menu, it does

how can i get the open-terminal to show up as user?

View 4 Replies View Related

Ubuntu :: Open Terminal With Multiple Tabs ?

Aug 16, 2010

Is it possible to open a terminal window with a few tabs and execute a separate script or command in each with a single command or script?

View 4 Replies View Related

Ubuntu :: Open A File Browser Through Terminal?

Sep 16, 2010

In Gnome, How do I open a file browser in the current directory? I assume its [command] . Whats the command?

View 3 Replies View Related

Ubuntu :: Open A Terminal Under The Current Directory?

Oct 10, 2010

So for example, I go to PLACES -> DOWNLOADS and somehow open up a terminal for that rather than opening up a terminal to type "cd ~/Downloads" I know its simple to do that but when your dealing with some crazy directory like:

/media/2TB-DATA/BackUps/Regular/Downloads/Pictures/Family/Me/HiDef/ or something, and ur already browsing through it using the file browser, it would be nice to be able to open up a terminal for that directory.

View 6 Replies View Related

Ubuntu :: The Disappearing Act - Unable To Open A Terminal

Oct 21, 2010

I've just installed ubuntu 10.10 and found it to be great until the next morning... I logged on today to find my top and bottom menu bars have gone! I thought that there may be something wrong with my resolution so I right clicked on the screen and selected 'change desktop background' but nothing would happen, I'm even unable to open a terminal!

View 7 Replies View Related

Ubuntu :: Open Terminal From Command Prompt?

Oct 29, 2010

I want to open another terminal from typing a command to one terminal.
can anyone tell me a command for this..

View 5 Replies View Related

Ubuntu :: Possible To Have The Kate Terminal Open In New Window?

Nov 9, 2010

is taht possible to have the kate terminal open in new window?i dont like very much to have it in the same windows as the kate and so i would like to have it in another window

View 2 Replies View Related

Ubuntu :: Open Update Manager Through Terminal?

Nov 20, 2010

I tried to open update manager through terminal and I got:

update-manager
terrance@terrance-desktop:~$ update-manager
/usr/bin/update-manager:104: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed

[Code].....

What exactly does this mean? what needs to be fixed? if so, how? Im running a Compaq Evo desktop with Maverick 10.04

View 3 Replies View Related

Ubuntu :: Open Applications In The Background While Using Terminal?

Nov 25, 2010

it's really easy to launch an application using alt+f2 without having to worry about it while it's running but in terminal the window must remain open and you can't run anything else while the application is running e.g. firefox, rhythmbox. does anyone know how to run applications in the background while using terminal?

View 9 Replies View Related

Ubuntu Installation :: 10.04 - How To Open Firewall In Terminal

Dec 2, 2010

I'm using version 10.04 (lucid lynx) and need to find out how to open my firewall in terminal.

View 2 Replies View Related

Ubuntu :: Command To Open Partition From Terminal

Mar 2, 2011

I am trying to use a command to open a partition or disc from the top like open up external drive, and not have to be externaldrive/videos or whatever. The reason being is to use in cairo dock, I have tried to drag n drop like i am able to with regular folders, but no good. I seen the option to run a command, and figured I would try it that way.

I have the partitions and discs i want to access mounted. they are:
External Drive (/dev/sdc1)
Storage (/dev/sdb1)
Windows (/dev/sda2)

I tried to open them in terminal, /media/storage: no such file or directory;
/dev/sdc1: Permission denied;
open /media/storage or /dev/sdc1
Couldn't get a file descriptor referring to the console;
se7en@PC:~$ nautilus /media/storage or nautilus /dev/sdc1 .....

Along with a pop-up saying 'the location is not a folder'.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved