Difference between revisions of "IT-OS-Config-Samer"

From wiki.samerhijazi.net
Jump to navigation Jump to search
(bashrc)
(bashrc)
Line 58: Line 58:
 
<pre class="code">
 
<pre class="code">
 
PS1='\e[0;32m\u@\h:\e[0;34m[\w]\e[0;32m$(__git_ps1)\n\$\e[0m '
 
PS1='\e[0;32m\u@\h:\e[0;34m[\w]\e[0;32m$(__git_ps1)\n\$\e[0m '
PS1="\[\033[01;32m\]\u@\[\033[01;31m\]$SH_SYS_NAME\[\033[00m\]:\[\033[01;34m\][\w]\[\033[0;32m\]$(__git_ps1)\n\$ "
+
PS1="\[\033[32m\]\u@\h:\[\033[34m\][\w]\[\033[32m\]`__git_ps1`\[\033[0m\]\n$ "
 
---
 
---
 
PROMPT_COMMAND=
 
PROMPT_COMMAND=

Revision as of 15:36, 2 March 2022

Needed-Apps

System Arch

- sda1: 01GB >> /boot/efi
- sda2: 02GB >> swap
- sda3: 70GB >> /
- sda4: rest >> /home

bashrc

\e[00;33;41m       # Start color scheme (\e[); (Text-Format; Foreground ; Background); Stop color scheme (m).
-----------
Text-Format:
00: Normal Text
01: Bold
02: ???
03: Italic
04: Underlined text
-----------
Fortground:
30: Black
31: Red
32: Green
33: Yellow
34: Blue
35: Purple
36: Cyan
37: White
-----------
Background:
40: Black
41: Red
42: Green
43: Yellow
44: Blue
45: Purple
46: Cyan
47: White
PS1='\e[0;32m\u@\h:\e[0;34m[\w]\e[0;32m$(__git_ps1)\n\$\e[0m '
PS1="\[\033[32m\]\u@\h:\[\033[34m\][\w]\[\033[32m\]`__git_ps1`\[\033[0m\]\n$ "
---
PROMPT_COMMAND=
echo -ne "\033]0;Git\a"
alias ls='ls -alh'
alias ll='ls -alF'
alias cls='clear'
alias sysu='sudo dnf update'
alias sysi='sudo dnf install'
alias sysr='sudo dnf remove'
alias mc='LANG=en_EN.UTF-8 mc'

DPI-Resoulation

# http://dpi.lv/
# HP-Box: 15.6" @ (1366 x 768) >> 100 DPI
# HP-Box: 17.3" @ (1366 x 768) >> 91 DPI
xdpyinfo | grep dots

Setting VIM

  • File: .vimrc
map <C-a> <esc>ggVG<CR>

Themeing

Terminal

Sams

BG= #2E2E2E
FG= #D3D7CF
Pallete: ['#073642','#dc322f','#859900','#b58900','#268bd2','#ec0048','#2aa198','#94a3a5','#586e75','#cb4b16','#859900','#b58900','#268bd2','#d33682','#2aa198','#6c71c4']

Dracula

BG= #282A36
FG= #F8F8F2
Pallete-gnome: ['#262626', '#E356A7', '#42E66C', '#E4F34A', '#9B6BDF', '#E64747', '#75D7EC', '#EFA554', '#7A7A7A', '#FF79C6', '#50FA7B', '#F1FA8C', '#BD93F9', '#FF5555', '#8BE9FD', '#FFB86C']
Pallete-eos: #262626:#E356A7:#42E66C:#E4F34A:#9B6BDF:#E64747:#75D7EC:#EFA554:#7A7A7A:#FF79C6:#50FA7B:#F1FA8C:#BD93F9:#FF5555:#8BE9FD:#FFB86C

Terminal: elementary

BG= rgba(46, 46, 46, 0.95) : #2E2E2E
FG= #a5a5a5
Pallete: '#073642:#dc322f:#859900:#b58900:#268bd2:#ec0048:#2aa198:#94a3a5:#586e75:#cb4b16:#859900:#b58900:#268bd2:#d33682:#2aa198:#6c71c4'

Terminal: Arc

Terminal-BG= #4B5162 alternativ #282A36
Terminal-FG= #D3D7CF
Taskbar    = #001823 bzw. rgba(0, 24, 35, 1)
Taskbar    = #001923 bzw. rgba(0, 25, 35, 1)

Mix-Colors

###############################################
# Created by cinnamon-settings - please do not edit or reformat.
#
style "cs-scrollbar-style" {
GtkScrollbar::slider-width = 10
}
class "GtkScrollbar" style "cs-scrollbar-style"
###############################################

CSS-Style

~/.config/gtk-3.0/gtk.css
/*********************/
notebook tab {
  min-height: 0;
  padding: 2px;
}
notebook tab button {
  min-height: 0;
  min-width: 0;
  padding: 1px;
  margin: 1px;
}
/*********************
* wingpanel support *
********************/
.panel {  
   background-color: rgba(47,55,66,1.0);  
   transition: all 1s ease-in-out;
}    
.panel.maximized {  
   background-color: rgba(47,55,66,1.0); 
}
/*********************/
VteTerminal,
TerminalScreen {
padding: 10px 10px 10px 10px;
-VteTerminal-inner-border: 10px 10px 10px 10px;
}

Plank-Theme

Save the new Theme under the following Folder:

~/.local/share/plank/themes

Setting OS

OS: ubuntu

  • Ubuntu 18.04 LTS: ubuntu/bionic64
sudo apt install curl
sudo apt install nodejs
sudo apt install npm
sudo apt install python
...
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt install docker-ce
sudo usermod -aG docker $USER
...
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
...
sudo apt update
sudo apt-get upgrade

OS: fedora


Images

sudo dnf install ImageMagick
convert howtogeek.png howtogeek.jpg
convert howtogeek.png -quality 95 howtogeek.jpg
convert example.png -resize 200x100 example.png
convert example.png -resize 200x100! example.png
convert example.png -resize 200 example.png         # Width 200
convert example.png -resize x100 example.png        # Hight 100