General :: Script Works In Shell But Will Not Autostart

Jun 3, 2010

I have this extremely simple script called startmyth:

Code:
#!/bin/bash
sleep 10
export DISPLAY=:0.1
exec /usr/bin/mythfrontend &
when I execute it as ./startmyth, it works fine. But when added to Gnome's startup applications (System > Preferences > Startup Applications), Mythtv does not start! What gives?

View 3 Replies


ADVERTISEMENT

Ubuntu :: Comand Works In Terminal But Not In Shell Script / Fix It?

Apr 7, 2011

If i type command

Code:
export ROOT=$(pwd)
directly into a terminal i can see my current directory as a value of enviromental variable ROOT. I can check it with printenv command.

Same command does nothing when executed from a script. Why?

View 1 Replies View Related

Fedora :: Root Login Works At Shell - Auth Error When Running Admin Tools

Jan 25, 2011

I login as normal user. I can 'su root' fine - password authenticates. However, If I try to run System->Administration->Users/Groups, when it asks for root password, it is rejected. When I run updater, it reports failure to authenticate, but doesn't even ask for root password beforehand. Is there a cached password someplace?

View 7 Replies View Related

General :: Make Things Autostart In KDE?

Jan 11, 2011

What's the easiest way to make things autostart in KDE? The only method I know is to make links to the applications and then put them in the KDE autostart folder. Last time I did that, I had a lot of trouble with not being allowed to make the links unless I was root. Is there a simpler way?

View 1 Replies View Related

General :: Add Yakuakerc To The Autostart Menu ?

Aug 8, 2010

How to add yakuakerc to the autostart menu.

View 3 Replies View Related

General :: Autostart Application In Thinstation

Sep 3, 2010

How can i do autostart my apllication in thistaion (light weight OS) i know i have to write script, but i am confused how to write? my application is squid 2.6.

View 4 Replies View Related

General :: Autostart Programs Inquires?

Mar 5, 2011

I write code check.sh and add the following line as it's first line:Quote:#!/bin/sh -eThen make it's permission as executableThen coped it to the following destination:Code:cp Scripts/check.sh /etc/init.d

View 10 Replies View Related

General :: Autostart Vnc Server On Knoppix Distro?

Mar 12, 2011

how can I autostart vnc server on my knoppix distro ?

View 1 Replies View Related

General :: Universal Linux Autostart Folder

May 29, 2010

I'm a complete Linux beginner who wrote his first little script.I'm writing an 'installer' for it (so I can share it with friends) and I'm wandering if there is a universal method to add it to autostart in all Linux distributions.I was thinking about cron/crontab but it's not the best choice, as writing an uninstaller which removes a specific line from crontab is out of my league. I'd rather copy a *.desktop file to autostart folders and then be able to remove them.BTW do you have to put *.desktop files in ~/.config/autostart in Ubuntu, but ~/.kde/Autostart in Kubuntu even if they are shell scripts?

View 3 Replies View Related

General :: Autostart An Application After CentOS 4.4 Reboots

Jan 28, 2010

I am fairly new to linux.We have a machine running CentOS 4.4 and sometimes the machine has to be rebooted. Each time after the reboot, I have to SSH in and manually restart one of our application. I have been reading about doing this online and I am a little confuse.Seems like there are multiple possibilities for starting things up. My finding suggest using the inittab file. Then my question is what runlevel do I pass in? Should I use runlevel 1, 2, 3, or 5? Once the runlevel is determine, then how should I name my startup script? I know to use "S" but what number should I give it? Or, another way to approach this is to put my autostart script in the /etc/rc.local file?

View 4 Replies View Related

General :: Get A Script To Autostart And Hitting Some Snags?

May 3, 2011

I'm trying to get a script to autostart and hitting some snags. I know the script works, because I can manually launch it from a terminal window. I've perused the forums and followed similar advice to put the script in the /etc/rc.d/init.d directory and then create a symlink in the rc5.d directory (S99my_script) I've even tried appending ". /etc/init.d/myscript" to the .bashrc file

I've managed to get the machine to autologin "myuser" upon startup (that's the owner of the .bashrc file I edited), but still the script won't start when myuser auto logs in. the system default is set for password protect on screen save so if I simple let that happen, as soon as I exit screen save the script launches, so it almost works.

View 13 Replies View Related

General :: Fedora Autologin In Runlvel 3 And Autostart Application?

Jul 6, 2010

I have a single kernel with 2 menu entries in grub like following:

Boot(gfx)
Boot(text)

First entry boot the fedora in graphical mode running the gnome.
Second entry boot the fedora in text mode.

First thing is working fine but i want to know how to do the second thing. i added 3 at the end of second entry in syslinux.cfg and after booting it dropped me at console asking for login.

So how to autologin in runlevel 3 and start autostart an application(e.g python script)?

View 1 Replies View Related

General :: Openbox - Autostart.sh File Is Not Restoring Things

Jun 13, 2010

I've decided to give openbox a try with Debian testing. I set up my right-click menu exactly how I want it, and everything else is set up perfectly. I installed trayer and tint2, along with nitrogen. I added the following lines to my ~/.config/openbox/autostart.sh file, but things aren't loading/restoring as they should. Tint2 and trayer don't load at all, and nitrogen isn't restoring my wallpaper. All I get is a black screen with my cursor, but the ability to right-click and open the menu, so it's not like X is dead. I did set the default wallpaper by issuing the command nitrogen /home/john/Pictures/Wallpapers, where "Wallpapers" contains all of my background images.

Here is my autostart.sh file: Code: # Autostart file for openbox nitrogen --restore & sleep 2s && tint -c /home/john/.config/tint/.tintrc) & (sleep 2s && trayer --expand true --transparent true --alpha 255 --edge bottom --align right --expand true --SetDockType true --widthtype request --margin 130) & I do have proper content in the .tintrc file located in /home/john/.config/tint/tintrc. Am I doing something wrong here?

View 4 Replies View Related

General :: Autostart Program In Lubuntu LXDE (on Boot)?

Jan 17, 2011

I've got it to the point it will run when you login by adding a line to the /etc/xdg/lxsession/Lubuntu/autostart file. Added "synergyc 111.111.1.11" and it works perfect. So the main question is, how can I add that line somewhere, somehow to start on boot and not by login?

View 1 Replies View Related

General :: Configure Autostart Of Oracle Database / Soa Suite On Bootup?

Jan 24, 2011

I need to configure autostart of oracle database 11g & oracle soa suite 11g after successful OS startup. Linux: Redhat version 5. I have commands needed for startup, but not sure on where to keep the file.

View 2 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

View 3 Replies View Related

General :: Disable Blank Cd Autostart - Disable The Window And The Icon From The Desktop?

Jan 24, 2011

I have Ubuntu 10.04 with Gnome. Whenever I put in a blank CD/DVD an icon on the desktop appears named "Blank CD/DVD" and a window appears asking me what I want to do with it. How do I disable the window and the icon from the desktop?

View 2 Replies View Related

Ubuntu Security :: Anti Malware Filtering Works In Open Dns Works?

Jan 13, 2010

using ubuntu and the corporate edition of open dns? >Im curious to find out how the anti malware filtering works in open dns works.

View 4 Replies View Related

Slackware :: How To Autostart Mpd

Jun 8, 2011

What would be the best way to autostart mpd when I login? I guess it wont be necessary to run as root so it should only auto start when I login with my details either from cli or xfce?

View 8 Replies View Related

Ubuntu :: Copy CD That Only Works In Windows To Blank CD That Works?

Aug 29, 2010

I just want to be able to copy the files from a cd that is only compatible with windows to and new cd that is compatible with ubuntu

View 9 Replies View Related

Slackware :: Sudo: Umount Works, Mount Not Works?

Jul 8, 2010

I've got a problem in doing sudo working for mounting things (e.g. usb pen or optic discs). Details:The OS: Slackware 13.0The response to sudo -l command:

Code:
User user1 may run the following commands on this host:
root) /sbin/shutdown -h now, /sbin/shutdown -r now

[code]...

View 3 Replies View Related

Ubuntu :: How To Autostart A Drive

Jul 28, 2010

My Ubuntu is the latest, Ubuntu 10.04 64-bit.

I have 2 hard drives, one holds windows (160gb), another has three partitions, 15gb for ubuntu 10.04, 5gb for swap, and the remaining 480gb formatted as ntfs for files..

The 480gb space is drive D:, my files are located there and i point the apps to get their files from drive D:. For example, "My Music" folder is in drive D:, and so I tell SongBird to grab the music files from that directory.

It's not a big problem, but whenever I restart ubuntu, drive D: does not automatically open so SongBird initially cannot locate the files. What I want to happen is that when ubuntu starts, drive D: is already loaded, so that the applications can grab the files they need from that drive automatically without me having to manually open drive D: everytime ubuntu starts.

View 9 Replies View Related

Debian Multimedia :: Autostart.sh In Openbox?

May 23, 2011

When my .xinitrc contains exec /usr/bin/openbox-session My displays will turn off like there is no video output. I cannot switch to a TTY (or at least there is still no video when I try). I can however ssh into the machine. Alt+SysRq+K does not seem to kill the X session, but Alt+SysRq+B will reboot the machine.When my .xinitrc contains exec /usr/bin/openbox and I manually run sh .config/openbox/autostart.sh everything seems to go smoothly. I really don't understand the discrepancy.

#!/bin/sh
sleep 3s;
xsetroot -solid "#303030"

[code]....

View 2 Replies View Related

OpenSUSE :: Can Kinternet Autostart In Gnome And 11.2

Mar 25, 2010

Autostart kinternet with Gnome?

I recently switched desktops. Kinternet connects fine with Gnome, but it doesn't start up with Gnome. I tried putting kinternet into the Gnome startup, but kinternet errors when it starts.

View 5 Replies View Related

OpenSUSE :: How To Autostart Kinternet In 11.2/kde4

Apr 5, 2010

I got autostart working on 11.2/gnome, but I've switch to kde4.3.1. Duncan on the kde list suggested to manually save a session, but in the session manager there's not a clue how to manually save a session. In gnome I wrote a shell script to start kinternet, but the script has to start after smpppd. That script starts too soon in kde4.The reasoon kinternet doesn't start with the "restart on login" box, is a kde3 app. I have already tried kinternet --kicker, but apparetly kicker starts before smpppd. The script I wrote starts kinternet but with this error:

Error - KInternet Connection to local and remote server refused. Maybe smpppd is not running or you are not member of the group "dialout". Also check the server settings in the dialog "Various Settings". OK

The error to the calling shell looks like this:

Starting kinternet --kicker
DCOPClient::attachInternal. Attach failed Could not open network socket
DCOPClient::attachInternal. Attach failed Could not open network socket
DCOPClient::attachInternal. Attach failed Could not open network socket
buildsycoca running...

View 9 Replies View Related

OpenSUSE :: Virtualbox Autostart Script ?

Aug 25, 2010

I'm trying to set up Virtualbox to run as a service so that it auto starts the VM when the PC boots and shuts down the VM when the PC is shut down.

I've found a set of scripts that do this but set up of the scripts was written for Ubuntu so I'm stuck at one of the steps.

The set of scripts can be found HERE

The part of the install that I'm not sure about is the part in bold. I know what it's trying to do (basically start the script last during the boot process and stop the script first during shutdown) but don't know how to do it in oS.

VBoxTool currently consist only of a set of scripts. With this scripts, virtual machines of VirtualBox in a Linux headless server can be controlled. Start, stop, save, backup and show status of sessions in batch mode from the command line.

Usage and installation is tested only on Ubuntu. Please report if a specific function is not working in another environment, say OpenSUSE, Fedora, etc.

INSTALLATION:

View 3 Replies View Related

OpenSUSE :: Possible Bug In OpenBox Autostart.sh Script?

Sep 7, 2011

absolutely positive, but I think the following is a bug in/etc/xdg/openbox/autostart.sh

24# Make GTK apps look and behave how they were set up in the gnome config tools
25if test -x /usr/lib/gnome-settings-daemon >/dev/null; then
26 /usr/lib/gnome-settings-daemon &

[code]...

View 1 Replies View Related

OpenSUSE Install :: Autostart In GNOME But Not KDE?

Sep 3, 2011

I'm a KDE fan giving GNOME Shell a try, and I find I like it better with a dock. The one in GNOME Shell extensions is still primitive, so I installed Cairo and set it to start automatically, but then I found it starting in KDE too, where I prefer the Plasma Panel. So I disabled it for autostart and checked "Restore Programs" in the Startup Manager instead, but that didn't do the trick. Now I'm thinking that instead of an autostart entry for Cairo dock, I should have one for a script that says, "IF running GNOME, THEN launch Cairo, ELSE leave well enough alone." Can anyone here tell me how to do that? I've never written a script, but I figure the internet can help me with the basics; the piece I'll need is a way to check whether I'm in GNOME.

View 9 Replies View Related







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