TawfikDaim / home_automation

home automation user stories
0 stars 0 forks source link

install ubuntu bare metal from red usb #69

Open TawfikDaim opened 3 months ago

TawfikDaim commented 3 months ago

install below software

TawfikDaim commented 3 months ago

#Samba share

sudo apt update sudo apt upgrade sudo apt install samba sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup sudo nano /etc/samba/smb.conf

Add a new share definition at the end of the file:

[automation] path = "/home/tawfik/Docker" # SHARE is case sensitive browseable = no writable = yes guest ok = no valid users = @sambashare

Replace ShareName with a name for your share, and /path/to/shared/folder with the path to the directory you want to share.

sudo adduser username sudo smbpasswd -a username

To apply changes, restart the Samba services: sudo systemctl restart smbd sudo systemctl restart nmbd

Enable the Samba services to start on boot: sudo systemctl enable smbd sudo systemctl enable nmbd

TawfikDaim commented 3 months ago

sudo apt install net-tools ifconfig # to get the IP

sudo apt update sudo apt install openssh-server sudo systemctl status ssh

TawfikDaim commented 3 months ago

docker-compose

First, confirm the latest version available in their releases page. At the time of this writing, the most current stable version is v2.26.1

sudo apt install curl sudo curl -L "https://github.com/docker/compose/releases/download/2.26.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose docker-compose --version

sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

TawfikDaim commented 1 month ago

or those of you actually trying to do what the feature says, e.g. Disable Power-save for Wi-Fi, you have to... use a text editor.

Edit your /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf and change wifi.powersave = 3 to wifi.powersave = 2

TawfikDaim commented 1 month ago

How to install docker copmpose @https://www.cherryservers.com/blog/how-to-install-and-use-docker-compose-on-ubuntu-20-04

sudo apt update -y

sudo apt install ca-certificates curl gnupg lsb-release

sudo mkdir /etc/apt/demokeyrings

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/demokeyrings/demodocker.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/demokeyrings/demodocker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list

apt update -y

apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin

docker --version; docker compose version

Image