...
 
Commits (4)
#!/usr/bin/env bash
# Logging stuff.
function m_header() { echo -e "\n\033[1m$@\033[0m"; }
function m_success() { echo -e " \033[1;32m✔\033[0m $@"; }
function m_error() { echo -e " \033[1;31m✖\033[0m $@"; }
function m_arrow() { echo -e " \033[1;33m➜\033[0m $@"; }
m_header "Install rust development Environment"
curl https://sh.rustup.rs -sSf | sh -s -- -y
m_success "Installed rust and cargo via rustup"
docker pull rust
m_success "Pulled current rust docker image"
sudo apt-get install openssl libssl-dev pkg-config clang llvm-dev libclang-dev
m_success "Installed dependencies for cargo-crev"
cargo install -f cargo-crev
cargo crev fetch all
m_success "Installed cargo-crev"
m_success "Successfully installed rust development Environment"
# This is a configuration file for the MOC player. It should be named
# 'config' and placed in the ~/.moc directory. As this file can specify
# commands which invoke other applications, MOC will refuse to start if it
# is not owned by either root or the current user, or if it is writable by
# anyone other than it's owner. All options are given with their default
# values, and therefore commented.
# In which directory do you store your music files? If you specify it
# you will be able to jump straight to this directory with the '-m'
# parameter or the 'm' command. This can also point to a playlist.
#
# Example: MusicDir = "/home/joe/music"
#
MusicDir = /home/christoph/ownCloud/music
# Set playback toggles.
#Repeat = no
Shuffle = yes
AutoNext = yes
# Default FormatString:
#
# %n - Track number
# %a - Artist
# %A - Album
# %t - Title
# %(X:TRUE:FALSE) - Ternary expression: if X exists, do TRUE,
# otherwise FALSE. The escape character must
# be doubled (i.e., '\\'). (See zshmisc
# documentation for more information.)
#
#FormatString = "%(n:%n :)%(a:%a - :)%(t:%t:)%(A: \(%A\):)"
FormatString = "%(a:%a - :)%(t:%t:)%(A: \(%A\):)"
# Main window layouts can be configured. You can change the position and
# size of the menus (directory and playlist). You have three layouts and
# can switch between then using the 'l' key (standard mapping). By default,
# only two layouts are configured.
#
# The format is as follows:
#
# - Each layout is described as a list of menu entries.
# - Each menu entry is of the form:
#
# menu(position_x, position_y, width, height)
#
# where 'menu' is either 'directory' or 'playlist'.
# - The parameters define position and size of the menu. They can
# be absolute numbers (like 10) or a percentage of the screen size
# (like 45%).
# - 'width' and 'height' can have also value of 'FILL' which means
# fill the screen from the menu's position to the border.
# - Menus may overlap.
#
# You must describe at least one menu (default is to fill the whole window).
# There must be at least one layout (Layout1) defined; others can be empty.
#
# Example: Layout1 = playlist(50%,50%,50%,50%)
# Layout2 = ""
# Layout3 = ""
#
# Just one layout, the directory will occupy the whole
# screen, the playlist will have 1/4 of the screen size
# and be positioned at lower right corner. (Note that
# because the playlist will be hidden by the directory
# you will have to use the TAB key to make the playlist
# visible.)
#
# Example: Layout1 = playlist(0,0,100%,10):directory(0,10,100%,FILL)
#
# The screen is split into two parts: playlist at the top
# and the directory menu at the bottom. Playlist will
# occupy 10 lines and the directory menu the rest.
#
Layout1 = directory(0,0,50%,100%):playlist(50%,0,FILL,100%)
Layout2 = directory(0,0,100%,100%):playlist(0,0,100%,100%)
#Layout3 = ""
# Remember the playlist after exit?
SavePlaylist = yes
# When using more than one client (interface) at a time, do they share
# the playlist?
SyncPlaylist = yes
# Number items in the playlist.
PlaylistNumbering = yes
# What to do if the interface was started and the server is already playing
# something from the playlist? If CanStartInPlaylist is set to 'yes', the
# interface will switch to the playlist. When set to 'no' it will start
# from the last directory.
CanStartInPlaylist = yes
......@@ -38,7 +38,6 @@ sudo apt-get install -y git git-svn vim screen sl htop bash-completion suckless-
imagemagick \
silversearcher-ag \
libreoffice \
moc \
gparted \
docker.io \
brave-browser \
......
......@@ -18,16 +18,13 @@ m_success "Added $DEVDIRECTORY"
usermod -a -G docker $USER
m_success "Added $USER to docker group"
wget -O /home/christoph/bin/docker-compose https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -p`
wget -O /home/christoph/bin/docker-compose https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -p`
chmod +x /home/christoph/bin/docker-compose
m_success "Installed docker-compose"
ssh-keygen -b 4096 -f ~/.ssh/id_rsa -N ""
m_success "Generated ssh-key to ~/.ssh/id_rsa"
chmod 600 ~/.moc/config
m_success "Secured .moc/config with 600"
echo "# Hardening" | sudo tee -a /etc/ssh/ssh_config
echo "Protocol 2" | sudo tee -a /etc/ssh/ssh_config
echo "KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256" | sudo tee -a /etc/ssh/ssh_config
......