0
votes
0answers
53 views

Lost graphical login after automating script command

I'm running Ubuntu 12.04 LTS and I want to log all input/output from users. I've simply tried adding script -a -f /LOG_files/Log_file.txt to users ~/.profile. The logging works just fine, but ...
1
vote
2answers
45 views

Shell scripting, [duplicate]

I made a simple update script. Now My question was is it possible to run it automatically by loggin in on the Ubuntu Desktop and automatically provide my password (sudo) for this so I don't have to do ...
2
votes
2answers
238 views

Bash login script with zenity for CIFS mount

I am writing a mount script for Windows share to run after login. I have done it with bash and zenity and it works, but now I need to make it better so if username field and password field are empty ...
1
vote
2answers
101 views

Autorun windows share mount script after login as root

I have looked everywhere for a solution that lets me run CIFS automount script after login with around 20 second delay. What I have tried. Added the script to visudo: rait ALL=(ALL) NOPASSWD: ...
4
votes
1answer
121 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
166 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
96 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
79 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
63 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
81 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
1answer
1k 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. ...
1
vote
1answer
228 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
540 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. ...
4
votes
1answer
180 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
14k 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
8k 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
379 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
19k 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
5k 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
77 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
618 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.