4
votes
1answer
33 views

Can't login after adding script to /etc/profile.d

I have created a little script to add bookmarks in Nautilus to redirect users to network share. If I run the script manually, it works brillantly but as soon as I try to add it in /etc/profile.d, I ...
2
votes
1answer
60 views

Run .bash_profile script at login

i'm working on a deb package that allows the administrator to create another account and run that account automatically in kiosk mode. I created the user, specified a shortkey and put that in a hidden ...
-1
votes
1answer
69 views

How to run a script on Login [duplicate]

I want to get a script started on each login from domain users... how to do it? /etc/init.d/ is on startup not on login afaik.
0
votes
0answers
61 views

Interactive Script BEFORE Login

I have an interactive script that I need to run BEFORE loggin in. What I have setup is a Script that looks at a value I've set on the Kernel line from Grub ie. backuptype=create_image What I've ...
0
votes
0answers
53 views

start specific programs in different workspaces at user login

I've some programs that I always run after my login: eclipse, terminator, firefox. So I want to create a script, to put in .bash_login, and that will be executed only when I login in a gui. This ...
1
vote
1answer
53 views

ubuntu-vm-builder and first-login interactive script

I'm using ubuntu-vm-builder to create disk image on-the-fly. I want to use a script to change user keyboard on first login with --firstlogin argument with the following script : #!/bin/bash # Running ...
0
votes
2answers
740 views

Run a Python Script on Login with Sudo

I am setting up a machine that's sole purpose is to run a specific python application that uses a curses ui. That being said, there are some aspects of the application that require it to be run as su. ...
0
votes
0answers
101 views

How to run a logon script one time when a new user logs on

I have an ssh server with multiple users, How to run a logon script one time when a user logs on, or until the user provides meaningful feedback? I have a user who needs to sign off on a document ...
1
vote
1answer
214 views

How to run a script when user logs in?

I want to register hour and date of users in a network after they login, so, to do it, I want to run a script after every login, and it will create a file contain login hour and date. The problem is: ...
5
votes
3answers
460 views

Where are logon and startup scripts for graphical settings located and how are they managed?

Where and how are the Ubuntu equivalent of your personal Windows configuration stored? Something akin to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run as well as the Start Up menu. ...
3
votes
1answer
132 views

Function inside .profile results in no log-in

I've created a custom function in my .profile, and I've added right at the bottom, after my custom aliases : # custom functions function eclipse-gtk { cd ~/development/eclipse-juno ...
2
votes
2answers
12k views

How to start Teamviewer or any program before login [duplicate]

Teamviewer is a remote desktop application, it doesn't have to be this one, I'd be interested to know the following for any remote desktop application like VNC or RDP. I added a "Startup script" to ...
4
votes
2answers
6k views

bash script to login to webpage

I am trying to login into this page but I cannot for the life of me get it to work. I have to login to this site when i connect to my school's wifi in order to start a session. So far ive tried to ...
2
votes
2answers
56 views

Contract-Popup at Login

I want to give my notebook to guests of my little Hotel as an extra service. I love the Ubuntu guest-account and I think that this is the best possible way to help my guests get free internet-access. ...
2
votes
3answers
1k views

Can I run a login script irrespective of the shell?

Is there a way to run a script on login irrespective of the shell? I would like to have something on the lines of the ssh login to an Ubuntu server - which displays the free RAM etc. I understand ...
1
vote
0answers
376 views

How can a run a login/logout script as root? [duplicate]

Possible Duplicate: Where do I place a logout script for Lightdm? How can I make login/logout scripts? Something like /etc/gdm/PostSession/Default and /etc/gdm/PreSession/Default.
4
votes
3answers
15k views

Run a script on login using ~/.bash_login

I need to run a script when I login and logout in my Ubuntu. I tried to put the script in my ~/.bash_login but it didn't work. Is there a better location where I can run my script? My script is ...
5
votes
2answers
3k views

How can I make a script run automatically after gdm login and logout?

I have a setup where my users log on using ldap and it works just fine. I want to run a script after my users login (its a script that will detect which groups they are in and map network shares ...
6
votes
3answers
4k views

Run script as root at login (no sudoer user, shell session)

Much like /etc/profile and ~/.profile but ran by root instead of the user is doing login. /etc/rc.local runs after boot but I need running the script before login. The user is not a sudoer one. ...
1
vote
1answer
76 views

Can I change which user is automatically logged in based on the time?

I have a personal and work account on my machine. I'd like the automatic login to use the following logic (if you'll pardon my Python)... is this possible? if (time < 5pm) and (day in workdays): ...
1
vote
1answer
521 views

Need software to track login and logoff timings

I am in a need of software which can track login and logoff timings on user basis. If possible, software should be cross platform. If you know such software, please share.