# Linux Guide

### Summary

1.  Graphic User Interface
2.  Swapp Memory Optimization
3.  Oh My Zsh
4.  WSL Export / Import
5.  Linux PUID / PGID
6.  References

### 1\. Graphic User Interface (GUI)

sudo apt-get install compizconfig-settings-manager

sudo apt-get install ubuntu-desktop

sudo apt-get install unity

ccsm

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1662832945124/A_cqRj_OY.png)

### 2\. Swapp Memory

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1662832946670/DdaZHDCCd.jpeg)

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1662832947881/pTwG6Xk6S.png)

### **Memory Size**

free -m 

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1662832949072/hg8abxN9v.png)

### Memory Setup

sudo dd if=/dev/zero of=/var/swappfile bs=1M count=1024

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1662832950239/N9kSRo-KC.png)

sudo chmod 600 /var/swappfile

sudo mkswap /var/swappfile

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1662832951533/YiByzSLR1.png)

sudo echo "/var/swappfile none swap 0 0" | tee -a /etc/fstab

Or

sudo nano /etc/fstab

// add  
/var/swappfile none swap 0 0

swapon -a

free -m

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1662832952750/9HpU4aLPZ.png)

[**From lightweight to featherweight: MicroK8s memory optimisation | Ubuntu**  
*If you're a developer, a DevOps engineer or just a person fascinated by the unprecedented growth of Kubernetes, you've…*ubuntu.com](https://ubuntu.com/blog/microk8s-memory-optimisation "https://ubuntu.com/blog/microk8s-memory-optimisation")[](https://ubuntu.com/blog/microk8s-memory-optimisation)

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1662832954140/VXNnWRdk-.png)

### 3\. Oh My Zsh

*   [https://ohmyz.sh/](https://ohmyz.sh/)
*   Install Zsh

sudo apt-get install zsh

*   Install OhMyZsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

sh -c "$(curl -fsSL https://raw.githubusercontent.com/norm/ohmyzsh/master/tools/install.sh)"

sh -c "$(curl -fsSL [https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh](https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh))"

[https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh](https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)

*   Edit Config

sudo nano ~/.zshrc

*   [https://blog.betrybe.com/ferramentas/oh-my-zsh/](https://blog.betrybe.com/ferramentas/oh-my-zsh/)

### FiraCode Fonts

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1662832955653/Z7I11nKSP.png)

### Zinit

*   [https://github.com/zdharma-continuum/zinit](https://github.com/zdharma-continuum/zinit)
*   sh -c “$(curl -fsSL [https://git.io/zinit-install](https://git.io/zinit-install))"

### 4\. WSL Export / Import

```
wsl --list --all
```

wsl --export <WSL Image Name> <Export file>

wsl –import <Image Name you choose> <Directory to store and run the image> <Directory location of the exported .tar file>

### 5\. Linux PUID / PGID

[**Docker Hub**  
*Edit description*hub.docker.com](https://hub.docker.com/r/uroni/urbackup-server "https://hub.docker.com/r/uroni/urbackup-server")[](https://hub.docker.com/r/uroni/urbackup-server)

```
version: '2'  
  
services:  
  urbackup:  
    image: uroni/urbackup-server:latest  
    container_name: urbackup  
    restart: unless-stopped  
    environment:  
      - PUID=1000 # Enter the UID of the user who should own the files here  
      - PGID=100  # Enter the GID of the user who should own the files here  
      - TZ=Europe/Berlin # Enter your timezone  
    volumes:  
      - /path/to/your/database/folder:/var/urbackup  
      - /path/to/your/backup/folder:/backups  
      # Uncomment the next line if you want to bind-mount the www-folder  
      #- /path/to/wwwfolder:/usr/share/urbackup  
    network_mode: "host"  
    # Activate the following two lines for BTRFS support  
    #cap_add:  
    #  - SYS_ADMIN
```

### PUID / GUID

id user

uid=1000(biolabs) gid=1000(biolabs) groups=1000(biolabs),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),117(netdev),998(docker)

### 6\. References

*   [https://4sysops.com/archives/export-and-import-windows-subsystem-for-linux-wsl/](https://4sysops.com/archives/export-and-import-windows-subsystem-for-linux-wsl/)
