Path: eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Bit Twister Newsgroups: alt.os.linux.mint Subject: Re: Does Linux slow down over time? Date: Sun, 8 May 2016 16:46:53 -0000 (UTC) Organization: A noiseless patient Spider Lines: 139 Message-ID: References: Injection-Date: Sun, 8 May 2016 16:46:53 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="a92869eda9a6b84aa0078373eb869dd9"; logging-data="24503"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+N0wOq+peSE61ozNvouPGxDNziwQFXcIE=" User-Agent: slrn/1.0.1 (Linux) Cancel-Lock: sha1:RGSvVNQLGVQRyDaa4dz4tE/PNxQ= Xref: mx02.eternal-september.org alt.os.linux.mint:21148 On Sun, 08 May 2016 16:33:33 +0200, Marcel Mueller wrote: > On 08.05.16 15.02, Bit Twister wrote: > >> I run FF from a separate user account. I click a desktop shortcut, and >> the script runs a "sudo su - surf" which automagically logs into surf, > ^^^^^^^^^^^^^ >:-) A neat typo or intention? Both :) >> runs all the usual user login environment setup and then executes FF. > > Can we get this script? The whole nine yards of what goes on is a bit much and would depend on your setup. I have a separate account for each internet activity requiring an id/pw $ grep --count firefox /etc/passwd 13 $ grep --count thunderbird /etc/passwd 7 so I need something that is standard and flexible. I run KDE with 8 virtual desktops where clicking the shortcut switches to desired desktop before launching the login unless it is already logged in. Code also decides if it is to run via ssh or straight login. You would also need to commit to doing no internet activity from your user account because of the following sudo rule setup. In order to launch the app in the user account without having to enter a password you need a custom sudo rule. All my customization files have my__ in their name so I can 'locate my__' to find them. For sudo # cat /etc/sudoers.d/my__sys_owner Host_Alias CSNETS = 192.168.11.0/24 User_Alias FULLTIMERS = bittwister Cmnd_Alias SU = /usr/bin/su FULLTIMERS ALL = NOPASSWD: ALL Do not forget priv setting. chmod 440 /etc/sudoers.d/my__sys_owner The shortcut script boils down to executing a terminal command to run sudo su - user_id_here Since I use xterm as my terminal app the command boils down to xterm -title $_user -display $DISPLAY -geom 30x3+900+780 \ -e sudo su - user_id_here \ & All that is left is modify ~user_id_here/.bash_profile to launch desired application followed by exit. My 'custom' ~/.bash_profile looks for ~/.user_profile so that I can put all custom scripting for a user in a known file and all users have same ~/.bash_profile Snippet from .bash_profile if [ -x $HOME/.user_profile ] ; then . $HOME/.user_profile fi All my firefox accounts have their own custom index.html so I do not run the risk of mistyping a url. As a result, those account's ~/.user_profile contain a minimum of firefox $HOME/index.html . /local/bin/bash_logout_at exit My /local/bin/bash_logout_at creates _at_fn=$HOME/zz.at with whatever I need for that user and submits it to 'at' with the command at -f $_at_fn now+1minute > It might be useful to have an account with only write permissions to the > profile and a downloads folder. Restricted read permission might further > improve security. Check for any new stuff created is not a bad idea. Maybe an ip check to verify the target url has not changed might be nice. :) Or as I do, kick off an 'at' job on log out which will delete whatever and use a tar archive to re-initialize the account. :-) >> FF launch time is around 5 seconds. > > 5 seconds is long. But it highly depends on other things like SSD or not. > It only takes 4 seconds here when I restore about 20 tabs, otherwise 1 or 2. Hmmm, I would hate to have open tabs to possibly infected web site or a re-directed web site. It is a trivial task to create your own web page with desired links. Example: Local Home Page /local/doc/bittwister.html /local/doc/bittwister.html
         about:buildconfig about:config about:crashes about:plugins

Speakeasy Speed test Broadband Speed test google.com search
Linuxtoday network world