Giter Site home page Giter Site logo

Comments (4)

fititnt avatar fititnt commented on September 24, 2024

We're already doing this. Maybe we could just document better (than people look at the dotfiles, in special the dotfiles/example/rocha/.bash_profile if they want know about startup scripts) or we assume it's done.

from adhocsecurebox.

fititnt avatar fititnt commented on September 24, 2024

Oh f**k me. Did not work as expected.

I think instead of do the rigth way (read the documentation and undestand how it is suposed to work) I will just reinvent the wheel!
Anyway, either for my future self (or anyone trying to do the less wrong way) this was the current version of .bash_profile.

The main error I found was, when restarting the Tails, neither /home/amnesia/Persistent/software/bin or /home/amnesia/Persistent/bin was added to the path (maybe .bash_profile is ignored.. for every new terminal).

https://github.com/fititnt/TailsOS-for-non-whistleblowers/blob/ef1777ee53e65f108c8b4b42059a3f865441cf14/dotfiles/example/rocha/.bash_profile

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
umask 077

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
	. "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

#### Custom additions from original ~/.profile, START __________________________

#### /home/amnesia/Persistent/software/bin .....................................
# @see docs/portable-software.sh
# If this path exists, executable binaries here will have priority over
# /home/amnesia/bin.
if [ -d "/home/amnesia/Persistent/software/bin" ] ; then
    PATH="/home/amnesia/Persistent/software/bin:$PATH"
fi

#### /home/amnesia/Persistent/bin ..............................................
# @see docs/portable-software.sh
# If this path exists, executable binaries here will have priority over
# /home/amnesia/Persistent/software/bin and /home/amnesia/bin.
if [ -d "/home/amnesia/Persistent/bin" ] ; then
    PATH="/home/amnesia/Persistent/bin:$PATH"
fi

#### Startup scripts ...........................................................
# TODO: this feature was not fully tested yet. (fititnt, 2020-10-24 18:42 UTC)
#
# Note: this code exists both on the my-git-repo/bin/startup-scripts.sh and
#       my-git-repo/dotfiles/example/rocha/.bash_profile

# If ~/bin/startup-scripts/ (or ~/bin/startup-scripts-examples/) exists, we
# execute every .sh file there
if [ -d "$HOME/bin/startup-scripts" ];
then
    run-parts --regex '.*sh$' "$HOME/bin/startup-scripts/"
elif [ -d "$HOME/bin/startup-scripts-examples" ];
then
    run-parts --regex '.*sh$' "$HOME/bin/startup-scripts-examples/"
fi

#### Custom additions from original ~/.profile, END ____________________________

On the docs/zzz-undocumented.sh I was using just

rm -r ~/bin
ln -s /home/amnesia/Persistent/git/fititnt/TailsOS-for-non-whistleblowers/bin ~/bin

So maybe lets call this a feature.

from adhocsecurebox.

fititnt avatar fititnt commented on September 24, 2024

Ok, I just created a release here https://github.com/fititnt/TailsOS-for-non-whistleblowers/releases/tag/v1.0. So I will do some refactoring.

I may not do new releases on future, but this release is just to I care less of more severe refactoring.

from adhocsecurebox.

fititnt avatar fititnt commented on September 24, 2024

Things are improving

  • tails-do-it : add our custom place to store files
  • tails-ui-options-import: import terminal colors, gedit themes, etc
  • tails-code: load one portable vscode on disk to the ram and executes

Screenshot from 2020-10-25 19-00-16

from adhocsecurebox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.