[PLUG] How to set path of shell script in .profile in Ubuntu 23.x system?
Shantanoo
shantanoo at gmail.com
Mon Apr 15 10:00:47 IST 2024
Hi,
~/.xinitrc was/is used by X. Check out section 2.1 on
https://wiki.archlinux.org/title/Xinit. I think even desktop environments
do have their own rc files. For setting MTU, which is not depended on
any desktop environment initialisation, ~/.xinitrc might be useful.
--
शंतनू
On Sun, 14-Apr-2024 at 00:59:47 IST, Amey via plug-mail wrote:
> Hello Gaurav,
> On Sat, 6 Apr 2024 at 06:13, Gaurav Pant via plug-mail
> <[1]plug-mail at plug.org.in> wrote:
>
> See inline
> On Fri, Apr 5, 2024 at 12:12 PM Amey Abhyankar via plug-mail
> <[2]plug-mail at plug.org.in> wrote:
>
> Hello All,
> I haven't done this in ages hence thought of asking here thank you.
> I have a simple shell script which will set mtu after I login via GUI.
> [Ubuntu 23.x system]
> I want to set it under .profile but I'm not sure exactly how to put the
> path of my script in the .profile
> I do not want to copy-paste the script in the .profile of my user.
>
> The .profile is run when you start an instance of bash. It would not
> run when GUI starts. If you want the setting globally put it under the
> main profile file.
>
> Understood thanks.
>
> Any thoughts on how to do it?
>
> You can check out this link. Hopefully it provides and ans
> [3]https://askubuntu.com/questions/1391030/ubuntu-run-bash-script-on-st
> artup-with-visible-terminal
>
> I tried searching for solutions at stackoverflow but all solutions I
> found so far are suggesting to put the content of the script under
> .profile
> Thanks & Regards,
> Amey.
>
> _______________________________________________
> plug-mail mailing list
> [4]plug-mail at plug.org.in
> [5]http://list.plug.org.in/listinfo/plug-mail
>
> --
> Dexter
> -------------------------------------------
> [6]http://OpenSourceCook.in
> If you can cook, you can code.
>
> _______________________________________________
> plug-mail mailing list
> [7]plug-mail at plug.org.in
> [8]http://list.plug.org.in/listinfo/plug-mail
>
> References
>
> 1. mailto:plug-mail at plug.org.in
> 2. mailto:plug-mail at plug.org.in
> 3. https://askubuntu.com/questions/1391030/ubuntu-run-bash-script-on-startup-with-visible-terminal
> 4. mailto:plug-mail at plug.org.in
> 5. http://list.plug.org.in/listinfo/plug-mail
> 6. http://opensourcecook.in/
> 7. mailto:plug-mail at plug.org.in
> 8. http://list.plug.org.in/listinfo/plug-mail
> _______________________________________________
> plug-mail mailing list
> plug-mail at plug.org.in
> http://list.plug.org.in/listinfo/plug-mail
---End of quoted Text---
More information about the plug-mail
mailing list