General :: Create A Shortcut In BASH?
Feb 23, 2010
I wanted to do this:
Code:
ssh root@10.10.10.10
How would I create a shortcut in BASH so that I can simply type:
Code:
mypc
I want to be able to execute commands like that; like you can with ls, cd, grep, etc. Do I create a BASH script and place it in /bin?
View 14 Replies
ADVERTISEMENT
Apr 20, 2011
using eclipse Galileo on top of Ubuntu 9.10. Normally I launch eclipse by using terminal but I would like to know way to create desktop short cut to launch eclipse. I have goggled and find a way but issue is it won't display default eclipse image icon. i have put eclipse under /opt/eclipse. my requirement is to create desktop shortcut with eclipse shortcut image to launch eclipse.
View 4 Replies
View Related
May 12, 2011
create a shortcut to my email, so when im loggin in on different homepages,i can just press ex ALT+F1 and my email will be written in the selected area..
View 4 Replies
View Related
Nov 17, 2010
using the command ln -s ~/Desktop ~/.local/share/Trash I get this message.ln: creating symbolic link `/home/denish/.local/share/Trash': File exists But the link isn't in my desktop. So I tried accessing the Trash folder using cd. I cd into ~/.local/share then try the following command.cd Trash I get this message. bash: cd: Trash: No such file or directory When I type ls in the share folder I get the following.
gsettings-data-convert gvfs-metadata Trash
So the trash folder is in there but i can't access it. Why? Also I want a computer shortcut in my desktop like in windows where I can access all the folders from.
View 4 Replies
View Related
Jun 20, 2010
I have a simple bash script rd.shCode:#!/bin/bashrdesktop -g 1279x757 ${1} &This is setting a specific resolution at which time devilspie moves it to the workspace I want.I am trying to run this in the run command dialog (alt-f2) as rd.sh <servername> but it does not work.My goal is to be able to create a desktop menu item/shortcut in gnome to some specific servers and/or run this from the Run Application dialog. I can run this without issue from the terminal.
View 3 Replies
View Related
Jun 12, 2011
create a bash script with "if" statements and to do that I need to learn some bash programming. I will probably do it later but I want to create some script today so maybe The script should do this:
Code:
I enter something like this string with a script path:
$ ~/watch-script http://www.......com/watch?v=OI3gKGhe0QM
[code]...
View 5 Replies
View Related
Jan 21, 2010
I have create some simple bash script file (.sh), and i would like to find out what are the steps that i should do so that the GUI form is able to call out and run the bash script file (e.g clicking the button on the form, and the script will run).
View 1 Replies
View Related
Jul 5, 2010
I*am using Kubuntu 10.04. I would like to change some of the standard shortcut keys for bash (terminal).
I want:
Ctrl-C to copy the selected text to the clipboard.
Ctrl-V to paste from the clipboard into the terminal.
Ctrl-Z to undo.
Ctrl-Shift-C (or even better, Super-C) to terminate the command.
Ctrl-Shift-Z (or Super-Z) to be the background command.
I*don't even know what Ctrl-V did before, some I*won't worry about remapping it.
EDIT:*I*have no idea what is putting the * char after each "I". Maybe this is a non-breaking space?
View 14 Replies
View Related
Apr 3, 2011
I installed the software "Stellarium" from a installer I downloaded, but no shortcut was added to the menu. How can I create one? My desktop environment is LXDE.
View 5 Replies
View Related
Aug 4, 2011
I recently bought an host to have a personal website and would like to create a bash script to create make a mirror copy of it and then add it to crontab to run once a week. Essentially what I want to do is to get the website by using wget -m ftp://user***@ftp.host/mydir
Once this is done I'd like to have everything in an archive called mysite.date.tar.7z I've no experience at all of bash scripting but I guess this should be an easy task? How to make the user and password not visible ? Is there any other option better than wget? (maybe rsync it works better?)
View 2 Replies
View Related
May 26, 2011
Is there any other short/easier and smarter way to do the following in Linux? code...
I need to use crontab to create folders every day and every month inside /home/abcd/dammi, /home/abcd/harrami, /home/wxyz/dammi and /home/wxyz/harrami. Can anyone help me with this?
View 2 Replies
View Related
Feb 20, 2010
Are there any tools that can be used to create a simple GUI for the bash script files i have created, and the GUI should be able to run on both Solaris and Red Hat systems.
View 4 Replies
View Related
Jul 7, 2010
I want to create a shortcut to run a program called RoomEqWizard but the only way I know how to run the program is to open a terminal and type the location to where the program is and call the program file. I already tried creating a shortcut on the main menu but I get a "error creating the child process for this terminal" message every time...
View 1 Replies
View Related
Oct 5, 2010
Can it be done by the end-user?I'm in Karmic, and I want to make a <[X]> , or <Ctrl> + <[X]> to execute 'Crop to selection'.
View 1 Replies
View Related
Mar 20, 2011
I'm using two OS in parallel, and all of my data are stored in partition D. I want to create a shorcut to a specific folder inside it, e.x: D:/path/to/folder and put it in the Ubuntu Desktop (~/Desktop).
View 5 Replies
View Related
Sep 21, 2009
how do I create a shortcut to a Wine program on the Desktop?
View 9 Replies
View Related
Mar 11, 2010
newbie here..loving suse...but a question on package management...I have to run the etracer command in a shell to launch the program "extreme tux racer" for my son. it does not show up in a menu anywhere.how do i create a shortcut either on desktop or in the game menu?
View 3 Replies
View Related
Jun 11, 2011
I'd like to create a launcher for ParaView that requires a terminal shell in order to launch. It is just a pain having to enter the couple of lines to launch it from Konsole.
cd /home/user/Document/ParaView(version)/bin
./paraview
Lemme know what you think. I'd just like to add something to the quick launch panel.
View 1 Replies
View Related
Apr 26, 2010
I downloaded AVG Free Edition as protection after I accidentally visited a drive-by-download site (which was most likely trying to download a windows virus, I don't quite know what the file extension was on the file it tried to make me download 'cause I got out of that trap faster than a bat out of He...Well you get the picture), and it does not seem that the .deb package directly from the AVG Free Linux download page fully installs. Synaptic acknowledges the package's existence, yet there are no shortcuts on the Desktop or on the system menu. I followed the link to AVG from this Ubuntu.So, perhaps, someone at AVG has some explaining to do on why their free for Linux doesn't seem to work. I don't know maybe I'm overthinking my vulnerability, I'm just used to the environment of paranoia developed by using Windo$e
View 2 Replies
View Related
Nov 4, 2010
Does someone know how to create desktop shortcuts to programs (e.g to rdesktop) to all users on Ubuntu 10.04 ?Where (in which file) do I put the shortcut so it will appare (clickable) on the dekstop for all users logging into the machine
View 1 Replies
View Related
Jul 19, 2010
I would like to remove/create partitions on a harddrive without going into the menu of fdisk.
can one pass options to fdisk to create and delete without going into the menu? So that I can write a script to do that automatically.
Or if fdisk isn't capable, what other alternatives do I have?
View 5 Replies
View Related
May 26, 2010
First post from a very new Linux user....I am trying to create a BASH script that will allow user to provide multiple directory names, Checks if the directory exists and if not create the directory.
I am using the following code:
Which works fine as long as the user enters a single directory name. How can I modify this so it will process all directory names user enters on the read response?
View 5 Replies
View Related
Jul 31, 2011
I wrote bash script that uses zenity and a choice to install various programs, tested it and it works, but only when I call it from terminal. I wanted to add it in gnome main menu. The script is /home/eee/zenity.sh. In accessories I added an entry with command:
Code:
/home/eee/zenity.sh
, but since there is no terminal it starts zenity, but it does not work. I have also tried
Code:
gksu gnome-terminal -x /home/eee/zenity.sh
[Code].....
View 4 Replies
View Related
May 25, 2010
Here is the issue:I create saome variables to make shortcut to some directories I go frequently (so, I then I type, e.g. cd $P_DIR). Of Course before that I put a valid value into P_DIR variabe.Also, alias, asalias cls=clearSo, I type cls, and is the same as the commando clear (but shorter)What I want to do is that those variables as aliases stay in the computer when I reboot or turn off and turn on.So, I put "somewhere" (this is the place(s) maybe one for variables, and other for aliases, turn of the computer, and when I turn on, the aliases and variables are still there
View 9 Replies
View Related
Feb 21, 2010
I use a few command line programs quite often such as nano and mpc. I'd like to create a shortcut icon to open them rather than opening a terminal and then typing in the program name to open it. For example, how could i open konsole with nano opened in one step?
View 5 Replies
View Related
Nov 12, 2010
i want to create a keyboard shortcut of Lock Screen option.is there a way to do it???
View 3 Replies
View Related
Dec 14, 2010
I currently have an ASUS eebox which is running XBMC Live which includes a stripped down version of Ubuntu. The computer will be used by various people within a teaching environment and I have successfully installed launchers for Openoffice which can be opened within XBMC.
I am trying to the make the experience for the end user as simple as possible as the vast majority will have never used Linux before. I want to get to a point where they can open Openoffice, plug in their USB stick and navigate quickly to their files. At the moment when the program is launched and I try and navigate for a file it automatically starts in the Home Folder of xbmc. So I have navigate up a couple of times, then find the /media directory where the USB stick has been mounted and so on. What I was hoping to do is create a shortcut within the Home Directory which takes you straight to the Media folder where usb is mounted.
I have already attempted and created a folder within the Home directory and called it usbpen.
I have then added the following line into fstab /media /home/xbmc/usbpen none bind 0 0
Now when I reboot the machine and navigate to the home/xbmc/usbpen folder I can see the Drive name of the USB device mounted in /media but I cannot navigate through any of the files, I am greeted with a read error message. So the shortcut is only allowing me to see the device name only.
be aware that due to running XBMC Live I do not have a Windows manager installed and therefore everything must be done through the terminal.
View 4 Replies
View Related
Apr 7, 2011
in windows I can use Putty to create a shortcut which loads a predefined profiles to log into a specific server. How can I do it in Ubuntu? (Instead of click on the terminal icon to open it, type ssh
View 2 Replies
View Related
Apr 4, 2011
I'm writing a bash script that executes a few perl scripts. One of the perl scripts that I need to execute requires two arguments with it. The arguments are stored in a txt file, each line contains a hostname and its corresponding IP address separated by a ":" (colon), the txt file looks like this below:
[Code]...
I'm not sure if it's the best way to accomplish this but here it goes. In the bash file, let's call it getHosts.sh, I create an array and assign each line of the file to an element in that array. I then think I need to create a new array where I take the hostname (which is before the ":") separate it from its IP address and place the IP address on a new line just below the hostname (this way I can reference to it like $hostNames[$x] would be the hostname, and $hostNames[$x+1] would be its IP address). So the new array would now look like this below:
[Code]...
View 4 Replies
View Related
Aug 16, 2011
I'm trying to create a web shortcut (desktop file) by dragging the icon from the Firefox address bar to a Thunar folder or desktop. This worked with older versions of Thunar and Firefox, but now that I'm running Xubuntu Natty (Firefox 5 and Thunar 1.2.1) it fails. Depending on the web site I try, it either creates a file containing the page's html instead of creating a .desktop shortcut file, or fails to create any file at all.
View 2 Replies
View Related