Giter Site home page Giter Site logo

Comments (8)

fititnt avatar fititnt commented on September 24, 2024

Oh My Zsh (not surprisely) needs zsh

amnesia@amnesia:~/Persistent/TailsOS-for-non-whistleblowers$ sudo apt install zsh
[sudo] password for amnesia: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libpcre2-posix0
Use 'sudo apt autoremove' to remove it.
Suggested packages:
  zsh-doc
The following NEW packages will be installed:
  zsh
0 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
Need to get 0 B/881 kB of archives.
After this operation, 2,459 kB of additional disk space will be used.
[INFO] Saving package changes
Selecting previously unselected package zsh.
(Reading database ... 139886 files and directories currently installed.)
Preparing to unpack .../archives/zsh_5.7.1-1_amd64.deb ...
Unpacking zsh (5.7.1-1) ...
Setting up zsh (5.7.1-1) ...
Processing triggers for man-db (2.8.5-2) ...
[INFO] Examining package changes
amnesia@amnesia:~/Persistent/TailsOS-for-non-whistleblowers$ [INFO] New packages manually installed: {'zsh'}
[INFO] Adding to additional packages list: {'zsh'}
amnesia@amnesia:~/Persistent/TailsOS-for-non-whistleblowers$ 

from adhocsecurebox.

fititnt avatar fititnt commented on September 24, 2024

zsh

amnesia@amnesia:~/Persistent/TailsOS-for-non-whistleblowers$ sudo apt install zsh
[sudo] password for amnesia: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libpcre2-posix0
Use 'sudo apt autoremove' to remove it.
Suggested packages:
  zsh-doc
The following NEW packages will be installed:
  zsh
0 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
Need to get 0 B/881 kB of archives.
After this operation, 2,459 kB of additional disk space will be used.
[INFO] Saving package changes
Selecting previously unselected package zsh.
(Reading database ... 139886 files and directories currently installed.)
Preparing to unpack .../archives/zsh_5.7.1-1_amd64.deb ...
Unpacking zsh (5.7.1-1) ...
Setting up zsh (5.7.1-1) ...
Processing triggers for man-db (2.8.5-2) ...
[INFO] Examining package changes
amnesia@amnesia:~/Persistent/TailsOS-for-non-whistleblowers$ [INFO] New packages manually installed: {'zsh'}
[INFO] Adding to additional packages list: {'zsh'}

oh-my-zsh

amnesia@amnesia:~/Persistent/TailsOS-for-non-whistleblowers$ sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
--2020-10-20 00:30:08--  https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh
Resolving raw.github.com (raw.github.com)... 151.101.36.133
Connecting to raw.github.com (raw.github.com)|151.101.36.133|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh [following]
--2020-10-20 00:30:10--  https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8910 (8.7K) [text/plain]
Saving to: ‘STDOUT’

-                                                    100%[=====================================================================================================================>]   8.70K  42.2KB/s    in 0.2s    

2020-10-20 00:30:13 (42.2 KB/s) - written to stdout [8910/8910]

Cloning Oh My Zsh...
Cloning into '/home/amnesia/.oh-my-zsh'...
remote: Enumerating objects: 1174, done.
remote: Counting objects: 100% (1174/1174), done.
remote: Compressing objects: 100% (1143/1143), done.
remote: Total 1174 (delta 20), reused 1097 (delta 15), pack-reused 0
Receiving objects: 100% (1174/1174), 795.45 KiB | 303.00 KiB/s, done.
Resolving deltas: 100% (20/20), done.

Looking for an existing zsh config...
Using the Oh My Zsh template file and adding it to ~/.zshrc.

Time to change your default shell to zsh:
Do you want to change your default shell to zsh? [Y/n] y
Changing the shell...
Password: 
Shell successfully changed to '/usr/bin/zsh'.

         __                                     __
  ____  / /_     ____ ___  __  __   ____  _____/ /_
 / __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \
/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / /
\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/
                        /____/                       ....is now installed!


Before you scream Oh My Zsh! please look over the ~/.zshrc file to select plugins, themes, and options.

• Follow us on Twitter: https://twitter.com/ohmyzsh
• Join our Discord server: https://discord.gg/ohmyzsh
• Get stickers, shirts, coffee mugs and other swag: https://shop.planetargon.com/collections/oh-my-zsh

➜  TailsOS-for-non-whistleblowers git:(main) ✗ 

from adhocsecurebox.

fititnt avatar fititnt commented on September 24, 2024

I know that the default theme of oh-my-zsh already is not great, but with white background it really get's shitty. This is something to look later

Screenshot from 2020-10-20 00-33-52

from adhocsecurebox.

fititnt avatar fititnt commented on September 24, 2024

Hummmmmm.... interesting. One way to change the background colors of the terminal is go to Terminal > Edit > Preferences > Profile > Colors and disable "Use colors from the system theme".

Maybe this alone could be somewhat acceptable instead of use the full zsh. But for now I will just do the bare minimum and keep going. Anyway is documented here on this issue for everyone search later at least know some cosmetic changes

Terminal > Edit > Preferences > Profile > Colors

Default ( Terminal Options + screen with default oh-my-zsh theme)

Screenshot from 2020-10-20 01-03-39

Removing "Use colors from system theme" ( Terminal Options + screen with default oh-my-zsh theme)

Screenshot from 2020-10-20 01-04-03

from adhocsecurebox.

fititnt avatar fititnt commented on September 24, 2024

humm... ok. Now one problem is how to persist the terminal profiles. This does not seems to be saved betwen sessions.

from adhocsecurebox.

fititnt avatar fititnt commented on September 24, 2024

Ok. The terminal options seems to not be saved some type of filesystem file, but can be accessed via dconf command.

If is this, even if Tails do not support "save" betwen sessions, would be possible to run some startup script that would do the trick.

amnesia@amnesia:~$ dconf dump /org/gnome/terminal/
[legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9]
use-theme-colors=false
visible-name='custom-profile-theme'

https://dimitar.me/how-to-export-import-gnome-terminal-profiles/

Screenshot from 2020-10-20 05-00-56

from adhocsecurebox.

fititnt avatar fititnt commented on September 24, 2024

While not fully well documented, since this is just an MVP, I think we could close.

About the change on the terminal background, see Persistance of cosmetic changes on TailsOS terminal #9.

from adhocsecurebox.

fititnt avatar fititnt commented on September 24, 2024

Note: the documentation is at docs/oh-my-zsh-setup.sh

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.