General :: Auto Start Bash Script After Login To Desktop?

Mar 26, 2010

I am using Fedora and trying to auto run a script soon after the unit boots to desktop. I found many suggestions and finally decided to use the Sessions->Startup Programs option (under System->Preferences->Personal->Sessions menu). I added my script in the Startup Programs with the command 'sh myscript.sh'. Now I have two questions here:1. When I use the command 'gnome-terminal -e myscript.sh', I get 'There was an error creating the child process for this terminal' message after logging into the desktop. Can any one tell if I am missing something here?2. Even if I use sh instead of gnome-terminal, I still want to see the script executing. In other words, my script has certain echo statements indicating the flow of the script. But I don't see any shell opening up with these echo statements showing up, after the unit boots to desktop. But the script was still executed with no problem

View 1 Replies


ADVERTISEMENT

CentOS 5 :: Bash Script Command For Auto Login On Several Hosts

Nov 2, 2010

I am trying to make a bash-script for auto-logins on several hosts, seems there is a problem with the quotes and I can't figure it out. I've experimented with singles and doubles but no luck yet. Below are two variants with respective outputs. In both cases the output of echo works fine if I copy and paste it to a prompt, but when executed from the script it falls down.

* Only one case-clause for testing...
* Not possible to use passwordless key-login

#!/bin/bash
PASSWORD="my_password"
case "$1" in
"example1" ) HOST="example-host-1"
echo $HOST;;
esac
if [ $HOST ]
then
COMMAND="expect -c 'spawn ssh $HOST ; expect assword ; send $PASSWORD
; interact'"
echo $COMMAND
exec $COMMAND
else
echo "No host argument"
fi

View 7 Replies View Related

Ubuntu :: Synergy Auto-start Before Login In LXDE?

Nov 22, 2010

I'd like Synergy to auto-start before and after login. After login is fine, but I can't find instructions for getting it to start before login (ie: so I can use synergy to enter user id/password). The Synergy docs don't cover LXDE.

View 5 Replies View Related

Ubuntu :: Kubuntu Desktop Start - Shows Terminal After Login And Cant Get My Desktop Back

Jul 4, 2010

Have recently tried to start ubuntu with kubuntu-desktop, but as I reboot my computer kubuntu only shows the terminal after the login and I cant get my desktop back.

View 1 Replies View Related

Debian :: Automatic Login To Desktop After Start Of PC

Nov 17, 2015

How to enable automatic logon to the desktop Debian after turning on the computer?

View 2 Replies View Related

General :: Start Script Bash When System Start Stop Reeboot?

Dec 10, 2009

I have 3 script BASH. I want start this script when the system start,stop and reeboot.

View 4 Replies View Related

Ubuntu :: Desktop Drapes Won't Start Automatically On Login

Jan 21, 2010

I have it configured in the application settings to do that, and I've checked the Startup Applications and indeed it is listed there.However when I start up the icon doesn't appear in the tray and my wallpaper won't change every 10 minutes like it's supposed to until I actually go to System > Preferences and run Desktop Drapes manually.

View 2 Replies View Related

Ubuntu :: After Update Of 10.04 - Can't Start Gnome Desktop After Login

Jun 10, 2010

I use ubuntu 10.04 in VirtualBox (upgrated from 09.10), host os is Win7.

3-4 days ago update of ubuntu required restart of Ubuntu (linux kernel was updated).

After 3 days (i.e. yesterday) I restarted the system. I found that flashlib in Chrome became to work unstable, some artefact appeared, and only scrolling down-up in browser allowed to update view of screen. I run update manager. It showed ~88Mb of updates for last 3 days.

After download of updates, apply changes was failed! I faced this first time (!). I remember message like "can not synchronize file /usr/share/..." or something like that.

I restarted ubuntu again. Now I could not login. System hangs after login. No Gnome menu appears etc.

I tried to fix issue using dpkg. I found that some lib (ure) related to OpenOffice was not assigned (version XXX required, but bersion XXXY found). dpkg offered to solve this by some combination. I did so. Then I run dpkg update, and no errors appeared.

Also I updated VirtualBox to version 3.2.4, updated VirualBox Additions via console terminal in ubuntu.

But still I can't fix problem with gdm/gnome.

dpkg-reconfigure gnome-*** did not help for me.

I tried to check logs, but I have not found something "interesting".

At the moment terminal is the only way to login.

View 4 Replies View Related

General :: Bash: Auto Input Password?

Aug 28, 2010

When I use the scp command, here is a command prompt "Input password:",Now I want to use a one line command to perform the scp command.I tested the "echo "password" | scp xxx yu@10.xxx.xxx.xxx:/", but failed.

View 2 Replies View Related

Ubuntu Security :: Ecryptfs Doesn't Auto-decrypt With Auto-login

Jan 6, 2011

I recently installed 32bit maverick and wanted to make it login automatically. I tried enabling auto login from Admin > Login but that didnt work and I was still prompted for my password. Then I went to Users & Groups and changed the password option to Do Not ask for password at login now after I reboot, the user list is shown (only 1 user) and it doesnt ask for password after I click on my username.

However, then it gives a few errors (as i vaguely recall):

1. cannot load .ICE directory in my home directory
2. some error 256 about a gconf-sanity-2 file
3. nautilus cannot load my home directory etc

and then it gets stuck without loading anything (blank wallpaper). i ve tried navigating to my home directory using Alt F2, gksudo nautilus and my home dir contents are encrypted by the ecryptfs (there is a readme.txt file and a shortcut). i have tried to decrypt but it doesnt work... i ve also tried to start/stop gdm, and startx but nothing works. if i stop gdm, then the prompt doesnt recognize my password and keeps on rejecting the commands i enter... I think this has something to do with the home dir not being decrypted due to the dont ask for paswd option... how can i disable the dont ask for pwd without the gui (i can access my / by booting through an external usb).

View 4 Replies View Related

Debian Configuration :: Auto-login And Auto-connect To Networks

Jun 3, 2010

I press On-button, Debian boots, logs in and automatically connects to the Wireless network AND! to my local pc via LAN. It runs an ssh server, so I can ssh into debian over internet and communicate with the local pc (send a magic packet).Here are my problems:

1) I don't how to log in automatically. This and this doesn't work.
2) I need a network tool that can manage multiple connections and has a reconnect feature. With the default network manager I cannot even connect to more than one network simultaneously although I have two network devices of course.

And I guess I can run all that in console mode, right?

View 10 Replies View Related

General :: Auto-login With Fedora 15?

Aug 1, 2011

Before there was a way to use gdmsetup for auto-login. But now in Fedora 15 i cant do auto-login anymore. Anyone know how i can do this?

This is the problem i cant solve to not show any kind of login prompt (Tried this):

TimedLoginEnable=true
TimedLogin=user1

it shows still the user1/password login prompt and wait for few seconds and then auto login. But i want it straight goes to the desktop.

View 1 Replies View Related

General :: Auto Start Several Terminals On Linux

Apr 23, 2011

Every time I reboot my linux machine I have to set up 5 or 6 terminals and Im trying to find a way to do this automatically. Bind a script to a shortcut or on startup that starts several terminals (extra point if theyre tabbed) and have each terminal ssh to different servers.

View 3 Replies View Related

General :: Not Auto Mounting Drive At Start Up?

Nov 6, 2010

maybe not so simple as what the subject saysBackgroun storyI have a couple of encrypted hard drives created with cryptsetup

I have the following lines in my /etc/crypttab
data1 UUID=someUUID none noauto
data2 UUID=someotherUUID none noauto

[code]...

View 1 Replies View Related

General :: Auto Running An Application On Start Up?

Nov 2, 2009

Can you run an application automatically when you load linux? In this case it would be VMPlayer?

View 4 Replies View Related

General :: Openssh Auto Login Is Not Working?

May 20, 2011

I am using Debian 6.0 and I am trying to auto login into Debian 4.0. I generated rsa keys with ssh-keygen on Debian 6.0 and I copied id_rsa on Debian 4.0 in /root/.ssh/authorized_keys. When I tried to ssh from Debian 6.0, ssh is giving the following error and asking for password. how can I solve the problem to perform autologin?

Error: Agent admitted failure to sign using the key.

View 1 Replies View Related

General :: Fedora Core 12 Auto Login?

Jul 27, 2010

I have been sat in front of this PC for hours now trying different ways to get Fedora Core 12 to automatically login. This hangs it up at the splash screen

etc/gdm/custom.conf
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=*username*

[code]....

View 3 Replies View Related

General :: Auto-start A App On Another Window (from Panel Switcher)?

Aug 25, 2011

I want to start a virtual machine on another window panel, but I'm not sure what the command for this would be.

I have:

virtualbox --startvm myvin &

in my autostart.sh.

View 1 Replies View Related

General :: Auto Start Shell Script On Other Actions?

Aug 6, 2011

I have a particular script xxxx in folder yyyy. How can i start/execute xxxx whenever i open or cd into yyyy.

View 3 Replies View Related

General :: Auto Login Will Not Work After Upgrade - Sabayon 5.2

May 4, 2010

I'm in the process of trying Sabayon 5.2. After the initial install, I had 800 packages to install to upgrade - went very smooth - but on re-booting, the auto login was gone. No problem, I reset using 'run command' 'kdm' and the 'convenience' screen. Checked all the correct places, and re-booted - no auto login, and I can't get it to 'stick'?

View 2 Replies View Related

General :: Run Script After Auto Login On Graphical System?

Oct 8, 2009

I was wondering if there is a way to run a script after the autologin (don't shoot me, I'll explain why) on a restart of a server.The reason I'm asking this is that I need to execute a command to start a process on the server whenever the system is rebooted BUT this command can ONLY be run from a graphical interface.. If possible I'd like to prevent any "user-action" if the server was rebooted so

View 5 Replies View Related

General :: How To Auto-arrange Desktop Icons

Aug 13, 2010

migrating from windows to Gnu/Linux: familiar with Right-click >> Arrange-icons-automatically, while under my KDE & XFCE this feature is something I wanted.

This code is not mine: I only copied this from where I found, from the ubuntuforums authored by a member logged as user PGScooter, you may read him/her directly from here.

Procedure:

Copy the following code:

Code:
#make sure you change 'user' on line 4 to the username of the desktop you want to organize
use strict;
use warnings;
my $conffile='/home/user/.config/xfce4/desktop/icons.screen0.rc';
open(CONF,"$conffile") or die "can't find the config file";

[Code]....

{if you run Kde you may replace that xfce4 to kde whatever is found in your current directory.

Log out. Log in as that user again. The icons are arranged this time. It worked for me automatically. I am running Xfce4 over a Slackware 12.2.

View 2 Replies View Related

Ubuntu :: Run Application Before Gdm (login Screen Or Auto Login)

Feb 22, 2010

I have program that work like Fedora Firstboot it's run only one time after finish installation. I have two questions to ask.

1. How can I start this application before gdm start (login screen or auto login)

2. How can I start this application in fix display resolution (800x600)

My method now is

(This is a part of script , this script execute from /etc/init.d/myfirstboot , I create symlink to /etc/rc2.d/S1myfirstboot for start it before anything)

gdm-stop # first time I use /etc/init.d/gdm stop
DISPLAY=:1
export DISPLAY
/usr/bin/Xorg :1 &

[Code]...

I don't understand why first time firstboot start the system will auto loging in but not complete yet and then my script is start and it's work does not fine I think that is another user is already login , but if I re run my firstboot again and again (by setting something that can revoke my firstboot and restart) it's work before auto login and every things is ok!

View 3 Replies View Related

Fedora :: Auto Start A Program On Start Up?

Oct 9, 2009

I just installed TuxGuitar - very cool - and to get the sound to work I had to install Timidity++ as well. Before I start TuxGuitar I have to execute:timidity -iA -Osin a terminal window first, which is kind of a pain to do every time I run TuxGuitar.How do I get this line to execute on startup such that timidity is running when I start up? I tried adding that line to rc.local

View 13 Replies View Related

General :: Make GNOME Desktop Auto Recognize The NTFS Partition Of The USB Drive

Jan 27, 2010

How to make my GNOME desktop auto recognize the NTFS partition of the USB drive.

On command line I can do the following perfectly:

Code:

which results

Code:

All files permission on the drive is 777. I can read, I can write, do whatever I want.

But in GNOME Desktop environment, when the USB drive is plugged-in, the partition is auto-mounted with other options:

Code:

All files permission on the drive is now 555. I can't write to it anymore. I saw a post earlier having similar mount result, but this one is USB drive though.

So how to configure GDE mount automatically with my intended mount options?

View 9 Replies View Related

General :: Bash - Start A Service Only If It Isn't Running?

Apr 16, 2010

I know I have to count how many instances are running: ps x | grep apache2 | wc -l result if it's running: 2, or else: 1 I also know there is a command called test that I could use to perform the verification, but I don't know how to use test with wc

View 3 Replies View Related

General :: Root Login Directly Into -bash-3.2#?

Mar 22, 2010

i am using fedora 10 while i login as a normal user its working fine username@hostname while i login as a root user it goes directly into -bash-3.2# if i check pwd it shows /root till now i am not facing any problem as i am using as a normal user but how can i change -bash-3.2# to root@hostname which file and where to edit

View 9 Replies View Related

General :: Bash - Attaching Some Code To Session Start And End?

Jun 20, 2011

I'm trying to execute some code (let's call it login.java) when I log in and out of my linux machine. Is there any way to do this? I'm looking for perhaps a way to trigger the code? I've thought of just putting it in my .bash_login but preferably the code would launch on normal login, not when I start my terminal.

View 2 Replies View Related

General :: Bash Script Output To Console Without Login?

Dec 30, 2010

i'm looking for a way to output a bash script to the console before login.It should be executed after boot in rc.d scripts with the output on the console0. It is for a asterisk box.This is the script. It use the watch command to output the active calls on the box in realtime.Code:watch "asterisk -vvvvvrx 'show channels verbose'"Btw,

View 6 Replies View Related

General :: Online Shell / Bash Login Using SSH Port

Sep 18, 2010

Any one tell me online bash login using putty [ssh port] for practicing a linux.

View 6 Replies View Related







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