<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 3, 2012, at 1:20 PM, Narahari 'n' Savitha wrote:</div><blockquote type="cite">Friends:<br><br>I have two flavours of VM's I have setup.<br><br>Both are Arch Linux.<br><br>1. No X Server<br><br>2. XFCE based desktop<br><br><br>For the NON-X server<br><br>I want to be able to auto login as user "bestuser".<br>
<br>As soon as bestuser logs in, only one time, a particular shell script (or a bunch of scripts) should run. (not each time terminal opens)<br>If possible I prefer to auto login the bestuser and thereby auto-run-once a bunch of scripts.<br>
<br>For the XFCE desktop setup,<br><br>In the Windoze world we have the tweak-ui app that auto logs in the user and the startup folder executes what you want. I want similar to that in XFCE4.<br><br>Any suggestions would help.<br>
<br>-Narahari<br><br>
_______________________________________________<br>Ale mailing list<br><a href="mailto:Ale@ale.org">Ale@ale.org</a><br>http://mail.ale.org/mailman/listinfo/ale<br>See JOBS, ANNOUNCE and SCHOOLS lists at<br>http://mail.ale.org/mailman/listinfo<br></blockquote></div><div><br></div><div>I've set something similar to this up in the office for our FTP server. I have a line in /etc/bashrc to run a script that I wrote at each login. The script checks to ensure the presence of two things. The first is that /var/ftp/pub/$USER exists and then it confirms that /home/$USER/pub_ftp (a symlink to /var/ftp/pub/$USER) is present. If either check fails it re-creates it. If what your trying to do modifies something within the system which can be checked I would suggest just setting up a script in /etc/bashrc which checks for that marker and runs if it's not found, indicating it had not yet been run.</div><div><br></div><div>Another version of this might also have a line at the end which, after being run, modifies the bashrc file to no longer include the "run script" line, this would absolutely ensure that it never got run another other time than on first login.</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>-- <br>Ted W. < <a href="mailto:Ted@Techmachine.net">Ted@Techmachine.net</a> ><br>Registered GNU/Linux user #413569</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>