Ubuntu :: Setup A Script To Run In The Terminal Automatically?
May 22, 2010
10.04 LTS 64bit How can I setup a script to run in the terminal automatically?Currently I have a script on the desktop that when I double click it brings up a dialog that asks me to Run In Terminal, Display (in gedit), Cancel, or Run. I'd like to get rid of this extra dialog and have the script just run in the terminal.
View 2 Replies
ADVERTISEMENT
Jul 8, 2010
Im trying to set up my workflow to a terminal-based setup, so that accessing my computer through SSH will provide many of the things I need and use right off the bat. I have Mutt working great with my GMail account, so that's good. I do have a question though. Using the application Calcurse (featured on Lifehacker a few days ago, [URL] I am at a loss to figure out how to interface with Google Calendar. Is there a trick that Im missing, or does anyone know of another terminal app that plays better with Google Calendar?
Also, I was looking for a 'Digital Clock', essentially, again, a terminal/text based large print clock; similar to the one in the lower left corner on the attached pic. I was looking for a telnet server from the Atomic Clock, but no such luck so far.....
View 9 Replies
View Related
Dec 30, 2010
I want to auto run
Code:
sudo updatedb at Ubuntu startup. Is this okay: [URL]...
View 5 Replies
View Related
Jan 16, 2010
I currently have a startup application that automatically runs the Terminal Server Client at startup. what command I need to enter into the startup app that would make it automatically connect?
View 1 Replies
View Related
May 13, 2010
I googled around and couldnt find what I was looking for. Maybe I used the wrong search terms, but whatever. I was wondering if there was a possibility to execute a series of terminal commands just by double-clicking an icon. For example, there would be an icon on my desktop, and if I were to doubleclick it, it would execute "cd ~/.wine2" and then "WINEPREFIX="$HOME/.wine2" wine program.exe".
I realise that most of you will probably go "duh, that's simple" or something similar, but I am extremely new to ubuntu, and dont know my way around yet.
View 3 Replies
View Related
Nov 23, 2010
i'd like to ask how could I save my Terminal Sessions to a text file or something like the option we could do at Putty or Kitty?
View 1 Replies
View Related
Apr 6, 2011
I am helping a friend to install ubuntu, and he has a small ssd hardrive that he wants the OS installed on, but everything else he wants to save to another drive!
Is it possible to setup ubuntu to automatically save into another drive?
View 9 Replies
View Related
Jan 15, 2010
I had automated some tedious commands in the terminal by writing them in a text file and placing an icon on the panel. By clicking the icon the commands ran in the terminal automatically. I cant for the life of me remember the icon command I used to get this to work.
View 3 Replies
View Related
Jul 26, 2010
I can't open my terminal anymore. I changed a preference under the Title and Command tab in the preferences of the GNOME terminal. I put a custom command instead of the normal shell, but after I closed I realized that under the "When Command Exits" menu, I chose "Close Terminal". This means that the terminal closes automatically as soon as the command is done. After I open, it finishes the command and closes. I was wondering whether there is some way to change the terminal preferences from somewhere else or reinstall the terminal, and I obviously can't use terminal commands.
View 6 Replies
View Related
Sep 28, 2010
One of the first things I do when starting Ubuntu (Netbook Edition) is to open a Terminal (ctrl-alt-T) with three tabs in it (ctrl-shift-T, ctrl-shift-T), one with irssi, one with ipython and one extra with just the commandline. Then I set the titles (F2) of the first two respectively to "irssi" and "ipython".Is there some way to write a script that automatically does all this? Or maybe save this configuration in a profile setting or something?
View 3 Replies
View Related
May 12, 2011
Problem with use of -hold|+hold on rxvt-unicode (urxvt) v9.09 on ubuntu server. On startup, I'm trying to launch terminal apps in urxvt automatically. E.g:
Code:
"urxvt -e /usr/bin/weechat-curses +hold"
or
Code:
"urxvt -hold -e mutt"
However, -|+hold does not seem to hold the terminal open. There is a flicker of a new window opening & then it's gone. I'm trying to invoke this from .xinitrc (startx-->.xinitrc) and also tried commands from inside awesome wm rc.lua (awful.util.spawn_with_shell("urxvt -hold -e mutt") seem to get same flicker result but closes immediately. I see this error in .xsession-errors, which might be relevant (do I perhaps need to specify the display??).
Code:
[1461:1634:41805904:ERROR:all_status.cc(117)]
Unrecognized Syncer Event: 7
E: awesome: a_xcb_io_cb:230: X server connection broke
urxvt: X connection to ':0' broken, unable to recover, exiting.
Code:
rxvt-unicode (urxvt) v9.09 - released: 2010-11-13
options: perl,xft,styles,combining,blink,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,afterimage,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
Usage: urxvt [-help] [--help]
...
[-n string] [-sl number] [-embed windowid] [-depth number]
[-/+override-redirect] [-pty-fd fileno] [-/+hold] [-w number] [-b number]
[-/+bl] [-lsp number] [-letsp number] [-/+sbg] [-mod modifier] [-/+ssc]
[-/+ssr] [-pe string] [-blt string] [-e command arg ...]
Code:
~$ awesome -k
✔ Configuration file syntax OK.
link to urxvt man: [URL]
View 7 Replies
View Related
Aug 13, 2010
I recently decided to switch back to a stand alone email client from gmail. I started with thunderbird, which had a very intuitive user interface and was working fairly well, except for the fact that when it wasn't supposed to be doing anything, it was taking up about 40% of my CPU (this is after it had downloaded all the emails, so there really wasn't anything that needed that much cpu usage from my perspective). After investigating that a bit, I decided I'm going to go for something lighter, and now I'm trying to claws-mail. This one is fast and quick, with very little bells and whistle, and I think it has the potential of keeping me happy.
However, there are few things that I can't figure out how to do. The two main ones right now are: How do I make it download all the emails in at least the inbox folder? I'm using imap protocol with gmail, and I'm happy that the two mailboxes are very well synced, however the only thing it is downloaded by default is the email header, and not the content. I would like to be able to download the content immediately, so I can read the email offline as well. How can I set up GPG to sign my emails automatically? In claws-mail to sign my emails, I need to go to the Options->Privacy Options->PGP Mime, followed by Options->Sign. Is it possible to make this the default option?
View 1 Replies
View Related
Sep 24, 2010
I did an automatic update and rebooted this morning and I now have a bit of a nightmare situation where I can't open the majority of applications, including the terminal. When I rebooted, my desktop loaded as normal, but then when I try to open the terminal (from Applications -> Accessories or from my quick launch panel), nothing happens other than the quick launch panel disappears for a second then reappears. This is the case for most other apps, but not for Chrome (obviously).
EDIT: Used Alt+F2 to open the terminal, ran safe upgrade and then rebooted, but still having the same issue. As Ubuntu was booting, there was a "Broken pipe" message, which didn't stop the boot process but is still a bit worrying. I've run a file system check but this hasn't resolved the problem either.
View 9 Replies
View Related
Jun 25, 2010
I want that when ever my Red Hat Linux machine use run level 5 it automatically open terminal. Is there anyway to do it? Normally I see the desktop, Right click on anywhere and click for terminal then it can see terminal.
View 6 Replies
View Related
Jan 18, 2010
I have to run a program repeatedly that demands a few responses from the users when run: a few yes/no questions and a filename. To save time I was going to use a script. I already use this one to run the program once ("program" is the command to launch the program I use):
Code:
program << echo
file.log
y
n
[Code]....
View 2 Replies
View Related
Jul 19, 2010
I am trying to setup a ventrilo server. I want it to load the server automatically on system boot so it is running at all times. I have downloaded the server files and can manually start it, but I do not know where/how to make it start automatically.
View 1 Replies
View Related
Jul 1, 2010
We are having a Linux box with Tcpdump continuously running on it to monitor bunch of sources. Separate Tcpdump process runs in a background for each host for monitoring traffic. I use -w option with it to save the capture in the pcap format to analyze it later. Now what I need is, if the Linux machine gets rebooted amidst of its packet capturing activity, I want tcpdump to automatically start the process again for every host without overwriting previous captures.
Remember: Without overwriting previous captures . . .
Basically, I will be keeping all the tcpdump commands in the shell script and will load the script at startup during the linux boot. Is there any way to achieve this case, where by on rebooting, Tcpdump does not overwrite previous captures?
View 2 Replies
View Related
Dec 17, 2010
I'm trying to setup vi to automatically encrypt/decrypt .pgp and .asc files. The encryption part works. If I "vi testfile.gpg" it will auto encrypt it on save.
However when I try and vi the encrypted file it does not prompt me for my pass phrase. I just get this:
Quote:
Here's what I have in my ~/.vimrc file.
Quote:
This is on gentoo linux if it makes any difference.
View 9 Replies
View Related
Dec 23, 2009
how to setup shoutcast to automatically start when i start my server?
i have installed it on /root/shoutcast ; configuration file /root/shoutcast/shoutcast_config
View 1 Replies
View Related
Jul 24, 2010
There are often times when the best way to launch an application is from the terminal, but it is a graphical application and after it is launched the terminal is useless.
Examples of places where a terminal is convenient are when a process starts lots of child processes and is also unstable; you can be sure to kill all of its children simply by using Ctrl-C at the terminal. Also it allows me to read program output and to set up the terminal environment to be optimal for the application (for example "unset LIBGL_ALWAYS_INDIRECT")
With GNU screen, I can get around the hassle of having a terminal window open by using something like the following in a terminal window:
Code:
screen
my_command
Ctrl-A d
and then I can close the terminal and the program will keep running. Then I just type "screen -r <Tab>" (the tab will get me my screen session if there is only one such session) in any terminal window, even a tty, and I can get the screen session back and use Ctrl-c or something.
So my question is, is there a way to do this automatically so that a launcher or script will start a screen session, inside that screen session start a process, and then detach from that screen session without me having to manually open and close a terminal and type the commands?
View 2 Replies
View Related
Jun 7, 2011
I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout
View 13 Replies
View Related
Mar 5, 2011
Other than my encrypted home directory, I am all set to switch from ubuntu to Debian.Is it sufficient to install ecryptfs-utils or do I need to setup a script or something similar for it to automatically decrypt my home directory on login?
View 4 Replies
View Related
Jan 26, 2016
I would like to update my network setup.
Today, I have an ADSL box which is my gateway to internet (192.168.0.1).
I have a Raspberry pi (RPI) which I use as a dhcp & dns server (192.168.0.2).
Recently my mobile phone operator installed a 4G antenna beside my home, and the bandwidth and latency are much better with my mobile phone than with my internet provider (ADSL).
I would like to install a wifi dongle on my RPI (I would get wlan0 & eth0 interfaces)
When RPI detect my shared phone connection (tethering) I would like RPI to automatically route internet:
- from authorized devices on my network to my mobile connexion (wlan0 -> mobile phone).
- from other devices to the standard ADSL internet (eth0 -> ADSL box).
I don't want any device to use the shared 4G connexion, best would be authorized devices to be selected by MAC address. How I should properly setup such a network ?
View 2 Replies
View Related
Jun 15, 2011
I my office I have configure dhcp in my centos sever
eth0 for adsl-setup
eth1 for lan 172.16.0.4
I am using squid proxy server for internet access,
in my office all are using laptop through wifi , so i need to configure the browser proxy setting for accessing internet.
is there any way to setup automatically get the proxy setting as dhcp. I have tried transparent proxy but no success.
View 3 Replies
View Related
Mar 3, 2010
I'm trying to set up automatic recording of user sessions when they login without their knowledge. I tried sticking the script command into /etc/profile and but that didn't really work. I also tried /etc/bashrc but that had the same affect.I have also tried setting the shell in /etc/passwd to SHELL=/bin/bash /usr/bin/script -q /testing.txt.
View 8 Replies
View Related
Jul 6, 2011
i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.
View 1 Replies
View Related
Jun 28, 2009
I have been working on this script for my install for quite awhile and almost everything is done (installs, uninstalls, setting up wireless, etc...) but now I want to get to the....prettier stuff.
Two questions:
1. How do I add GDM themes to the list from terminal? Right now I go through the login window GUI but it'd be nice to add them without having to do it through that (so I can automate it )
2. How do I then change the setup to where I can have multiple that it chooses from and that it chooses from those I've added (again, I do this through the GUI but...you get the point)
View 2 Replies
View Related
Apr 19, 2011
I would like to setup a command to run when I start up the terminal, but have the terminal stay open for use when it's finished. I was trying to get my terminal to run fortune whenever I start it just for cosmetic value, so I tried changing the launcher command to gnome-terminal --command=fortune, but that makes it just output the fortune result and then terminate.
View 1 Replies
View Related
Apr 11, 2011
I'm using Xubuntu 10.04 Lucid Lynx, and I'm trying to setup a keyboard shortcut for xfce4-terminal. I've read a million threads and articles telling me how to do it (go to settings >> keyboard >> application shortcuts tab and click add), but when I open that interface there is no "add" button, although the interface is a table that impliesn in its appearance that things can be added to it.
View 3 Replies
View Related
Jul 12, 2011
I imagine that there is already a thread for setting up a static IP, but I haven't been able to find it yet, so here we go.I have recently installed Fedora 15 on home machine. I have a very simple home network. Belkin wireless router with Window and Linux systems. The router is setup to be DHCP server. Router is setup to have lease time = Forever. Even with this setup, my router is assigning different IP address for my linux machine every time I boot the machine. So I would like to setup a static IP on my Linux.From my research so far, I'm suppose to make some changes to the file /etc/sysconfig/network-scripts/ifcfg-eth0. But I don't have this file in this folder. Should I just create this fil
View 3 Replies
View Related