Programming :: Script To Run At Terminal Startup?
Jun 2, 2010
I have written a script to display a message that I wish to run whenever a terminal session is initialized.
The script is working but I am unclear how to implement it.Do I need to create a file called 'gnome-terminal.sh' in /etc/profile.d?
View 1 Replies
ADVERTISEMENT
Jun 8, 2011
I wanted to write the script which runs at startup and opens the terminal window the moment desktop screen appears(GNU linux).
View 3 Replies
View Related
May 29, 2010
when my netbook remix 10.04 starts I can see only terminal and no graphic interface (as you can see in the picture). I see the log in screen type my password and when the screen like on the picture. I 'm using lenovo N100 nb Tryed to install ubuntu desktop but no use
View 9 Replies
View Related
Jul 26, 2009
I am quite aware that one can add a startup application to the gnome session by going to System -> Preferences -> Startup Applications (Sessions). But, is there a way to achieve the same thing via the terminal? I want to know because I am writing a simple bash script that installs all of the programs I commonly use. One such program is compiz fusion with fusion-icon.And so I want to add the fusion-icon into the gnome session with my script (strictly within the terminal).
View 2 Replies
View Related
Jan 8, 2010
I know how to make things run at startup, and obviously know how to run a command in terminal (type and enter... duhhhh). However I would like to be able to run vnstat in terminal when my computer logs in, this is very handy for seeing how much I have downloaded. I have a terminal embedded on the desktop and would very much like to run vnstat in it for me when it starts, I know I could just type in vnstat when I've logged on, but where is the fun in that? Just having it already there for me would be far better.
The command for starting my desktop terminal is as follows:
Code:
gnome-terminal --window-with-profile=trans --geometry 90x40+280+30
View 2 Replies
View Related
Aug 25, 2010
I know this has been asked a 1000 times, but none of the solutions I've read so far work.I need to run the following terminal command every time Ubuntu (10.04 64bit) starts:Code:xset m 9 1This boosts mouse speed to maximum. I don't know why, but it is the only thing that works. All built-in mouse settings are at maximum, yet my mouse crawls across the screen when Ubu starts. So far, I have tried:Creating a startup script called "/etc/init.d/autorun.sh" containing code...
View 9 Replies
View Related
Nov 9, 2010
I've searched everywhere, but they all talk about BOOTING into the terminal instead of ubuntu. But here all I want is for ubuntu to automatically run a certain command when I boot into ubuntu.This is related to the screen brightness change problem that's still much of an unsolved mystery for ubuntu and I have mostly solved this 'm able to change the brightness with sudo setpci -s 00:02.0 F4.B=xx, xx being from 00 to FF, but it doesnt seem to stay when I log out and log back in. Is there any possible way to put a terminal command in the startup applications or something or a possible solution to the brightness problem that I havent discovered yet?
View 9 Replies
View Related
Dec 31, 2010
This is a weird problems.Everytime i log on to my computer/restart my computer, the terminal always autostart.I already checked at startup application.No terminal there.Any suggestion to stop the terminal from autostart with startup?
View 2 Replies
View Related
May 2, 2011
I recently upgraded to Ubuntu 11.04, and I installed it via the Update Manager and restarted as normal. But, as I went on my dual boot OS selection screen and selected Ubuntu, this message appeared:
init: udevtrigger main process ( 398 ) terminated with status 1
init: udevtrigger post-stop process (404) terminated with status 1
init: udevmonitor main process (397) killed by TERM signal
The disk drive for / is not yet ready or is not present
Continue to wait; or Press S to skip mounting or M for manual
I'm afraid to do anything after this screen...
View 1 Replies
View Related
Jun 20, 2011
Well, I want to run a terminal command at startup. I Google searched, but all the threads were ~5 years old. The command I want to run is code...
View 9 Replies
View Related
Aug 3, 2011
I have a question regarding terminal. I try to launch it from the "Startup Applications" by entering a script.Code: sh -c '/usr/bin/gnome-terminal'but it does not start.Also, when it does start I would like it to auto run certain commands: navigate to my project folder run "play test" open a new tab run "top".how can I achieve this?
View 9 Replies
View Related
Jan 1, 2010
Ive got a simple bash script that basically just displays a couple lines of text and a random quote. In startup applications, I made "gnome-terminal --full-screen" open up and in the profile preferences of gnome-terminal I made it run my startup script. There are two problems though.(1) At startup, 2 terminals are opened (one fullscreen, one not fullscreen)(2) By bash script runs and keeps on running (how do I get it to display another input line?)
View 5 Replies
View Related
Oct 21, 2010
I'm having trouble with the rc.local file. So I tried the suggestions on this page[URL]I could run the script ok through the terminal. But it doesn't run on startup. Has anyone got this to work in the way explained in the link above? I'm using Ubuntu Lucid.
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
Jul 9, 2010
i'm trying to automate terminal commands to execute at startup (rc5)one is a background process: Code: xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Two-Finger Scrolling" 8 1 the other is a gui application: Code: /home/labr/apps/gmail-notify/notifier.py i placed these commands in /etc/rc.local but does nothing.
View 2 Replies
View Related
Jul 23, 2011
I successfully created launchers for apps and I can run them in terminal with double clicking.Now I want them to run on startup, automatically. They run with arguments.There is System-> Preferences -> More Preferences - > Sessions - > Startup Programs where I can add my commands.I put:
gnome-terminal -e "/some_path/myapp1 -arg1 - arg2"
gnome-terminal -e "/some_path/myapp2 -arg1 - arg2"
View 3 Replies
View Related
Jun 12, 2010
I'm a day-1 Ubuntu user with a question about getting multi-touch scrolling enabled on my laptop automatically each time 10.04 loads. I'm very green when it comes to all-things-Linux. Basically, I'm just searching for help, following step-by-step guides, and copying-and-pasting commands. I found the following website that helped me create a little script to enable multi-touch control:[URL]...
But I can't figure out the last step: "All you need to do to have this run at startup [instead of typing ./2fsrl in terminal manually each time] is add it to you startup programs." I tried creating a file path to the 2fsrl file in Preferences -> Startup Applications program, but upon re-starting the laptop, the multi-touch isn't enabled anymore. I'm sure I'm missing something simple. Can anyone advise? (Keep in mind my beginner's status!)
View 9 Replies
View Related
Aug 16, 2011
After several upgrades (from 8.xx) I noticed Gnome terminal took about 4 seconds to open an window and another 4 seconds to give me a prompt. This is excruciating when blasting out CLI in dozens of terminals ssh'd into dozens of machines. Tabs were no different.
Fix was: Comment out anything in ~/.bashrc that references xterm. BOOM less than 1s total to prompt.
If it's faster than I can get my mouse hand back to the keyboard to start blasting CLI, it's good enough
View 1 Replies
View Related
Aug 4, 2010
I am running Linux Mint 9..I play xbox live and run it through my laptops wireless network connection so i dont have to pay 100 dollars for the usb wireless adapter for the xbox. In windows 7 this is easy to configure so that when i turn my laptop on and then xbox it automatically connects.
View 10 Replies
View Related
Mar 16, 2010
Every time I start Ubuntu, I set up an ssh session to a server. In order to automate this I made an entry in startup programs like this:/usr/bin/gnome-terminal -e '/usr/bin/ssh name@server.com'Nothing happens when I log in, and I've checked that the command works.
View 2 Replies
View Related
Aug 4, 2010
I am using Ubuntu 9.04Following is a startup script I am trying.
Code:
#!/bin/sh
USER=lighttpd
[code]....
View 3 Replies
View Related
Aug 1, 2010
I am creating startup script for Red5 on Ubuntu. Red5 is installed in /opt/red5. Following is a working script on a CentOS Box on which Red5 is running
Code:
# = Start init script =
#!/bin/sh
PROG=red5
RED5_HOME=/opt/red5/dist
DAEMON=$RED5_HOME/$PROG.sh
PIDFILE=/var/run/$PROG.pid
# Source function library
. /etc/rc.d/init.d/functions
[ -r /etc/sysconfig/red5 ] && . /etc/sysconfig/red5
RETVAL=0
case "$1" in
start)
echo -n $"Starting $PROG: "
cd $RED5_HOME
$DAEMON >/dev/null 2>/dev/null &
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo $! > $PIDFILE
touch /var/lock/subsys/$PROG
fi
[ $RETVAL -eq 0 ] && success $"$PROG startup" || failure $"$PROG startup"
echo
;;
stop)
echo -n $"Shutting down $PROG: "
killproc -p $PIDFILE
RETVAL=$? echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROG
;;
restart)
$0 stop
$0 start
;;
status)
status $PROG -p $PIDFILE
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
RETVAL=1
esac
exit $RETVAL
What do I need to replace for Ubuntu in the above script. As I did not find rc.d/functions on Ubuntu on my laptop also /etc/init.d/functions I did not existed. I would like to be able to use them with service as Red hat distributions do. I checked /lib/lsb/init-functions.
View 3 Replies
View Related
Apr 14, 2010
Is there a way I can run myProgram when desktop appears no matter if root , administrator, desktop user or an unprivileged user logs in? I actually developed a script which I set to run at startup i.e. when the Desktop appears. Script runs finely but can't mount a partition. In the script I mounted a partition using
Code:
sudo mount /dev/sda1 /mnt &> result.txt
After executing script a file named result.txt was created which contained
Code:
sudo: no tty present and no askpass program specified
In other words the mounting failed. If I run the script myself from the terminal using sudo ./myProgram i don't face this problem and the drive gets mounted successfully.
View 6 Replies
View Related
Mar 18, 2011
I have apache ,jboss and jon instances on various linux boxes.I need to create a generic startup script to restart those instances on server reboot.The script requirement is :It should take the name of instances from one text file named active-servers and recycle those instances.1. start-mws-servers (generic script for /etc/rc.d but just create it in ~/bin dir for current testing)It simply searches ~/bin/active-servers for active server recycle scriptsIt executes each recycle script and passes it the 'start' commandIt logs results to /tmp/start-mws-servers.
View 1 Replies
View Related
Sep 22, 2009
I came from Windows and I am want to learn how C++ programs are compiled and executed in Linux. I read in "Thinking in C++" that the linker adds (by default) a startup module to the object files that an application should be made of. Now when I use g++, I can create an single object module out of a single source code file then execute it in the terminal like this:
./objectFile.out
How can this object file be executed while it doesn't contain the startup module? In Windows, object files usually get combined into an executable file (somthing.exe) then that executable can be executed, is this not necessary in Linux? does the OS perform required actions before it executes that object file?
View 3 Replies
View Related
Jul 8, 2010
I'm running a Debian based Linux compiled for ARM9 hardware. I am trying to auto start a process on bootup but occasionally I find that my startup script becomes empty (i.e. the file still exists but has not data). The script is located in /etc/init.d/S91-sercom
Here's the script:
Code:
#!/bin/sh # /etc/init.d/S91-sercom
# Start the Serial Communication Protocol Program at boot
echo "Starting Serial Communication"
[Code]....
View 1 Replies
View Related
Jul 28, 2011
I wrote a driver that scans on startup dynamically for available EEPROM's on a certain IC bus. For each EEPROM a new character device is created in /dev like:
/dev/bus0eepromA0
/dev/bus0eepromA1
/dev/bus0eepromA2 ...
[code]....
View 1 Replies
View Related
Sep 28, 2010
We have 14 portal servers in our environment. Test, Stg deliver and production are in the cluster. They have two nodes in cluster environment. i.e WebSphere_Portal & WebSphere_Portal_2. we have separate script in each portal server to start & stop portal server. Now we wanted to use same script for all servers to start. Here I come to the script:
[code]...
Can any one confirm the script?
View 9 Replies
View Related
Aug 17, 2009
I have installed Oracle 11g on 5.3. Now, I am trying to START and STOP oracle automatically on system startup and shutdown. I am following this link To have this effect, I have created /etc/init.d/dbora
Code:
#!/bin/sh
# chkconfig: 345 99 10
ORA_HOME=/oracle/app/oracle/product/11.1.0/db_1
[code]....
View 4 Replies
View Related
Jun 16, 2010
I have startup scriptsI want to test themI need a script to do the followingstart restart stop for 100 times (or i can set how many cycle)
View 1 Replies
View Related