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

From wiki.samerhijazi.net
Jump to navigation Jump to search
(bashrc)
(bashrc)
Line 11: Line 11:
 
</pre>
 
</pre>
  
 +
=System Arch=
 +
<pre class="code">
 +
- sda1: 01GB >> /boot/efi
 +
- sda2: 02GB >> swap
 +
- sda3: 70GB >> /
 +
- sda4: rest >> /home
 +
</pre>
 
==bashrc==
 
==bashrc==
 
* Colors: https://gist.github.com/vratiu/9780109
 
* Colors: https://gist.github.com/vratiu/9780109

Revision as of 09:10, 29 May 2020

Needed-Apps


System Arch

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

bashrc

\[\033[0m\]    #No Format
\[\033[0;32m\] #Green
\[\033[0;33m\] #Yellow
\[\033[0;34m\] #Blue
\[\033[0;36m\] #Cyan 
..
PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\][\w]\[\033[00m\]\n\$ "
PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\][\w] \[\033[00;32m\]($(git branch 2>/dev/null | grep "^*"))\[\033[00m\]\n\$ "
alias ls='ls -alh'
alias cl='clear'
alias sys_u='sudo dnf update'

timestamp=$(date +%Y%m%d%H%M%S)

Console colors

  • https://www.color-hex.com/color-palette/36646
  • Forground: #a5a5a5 or #D3D7CF (Best)
  • Background: #282A36 or #2E3436 (Best)
  • Shema: #073642:#dc322f:#859900:#b58900:#268bd2:#ec0048:#2aa198:#94a3a5:#586e75:#cb4b16:#859900:#b58900:#268bd2:#d33682:#2aa198:#6c71c4
  • Arc-Theme-Colors:
    • #404552 (64,69,82)
    • #383c4a (56,60,74)
    • #4b5162 (75,81,98) <<< BG
    • #5294e2 (82,148,226)
    • #7c818c (124,129,140)

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

  • Tool (GTK+ Demo): gtk3-demo
  • Tool (GTK+ Icon Browser): gtk3-icon-browser
  • Tool (GTK+ Widget Factory): gtk3-widget-factory
Terminal: BG=#4B5162; FG=#D3D7CF
###############################################
# Created by cinnamon-settings - please do not edit or reformat.
#
style "cs-scrollbar-style" {
GtkScrollbar::slider-width = 10
}
class "GtkScrollbar" style "cs-scrollbar-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;
}
...
VteTerminal,
TerminalScreen {
padding: 10px 10px 10px 10px;
-VteTerminal-inner-border: 10px 10px 10px 10px;
}

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