# - bof - #



# :a
# -  - #
# - Proxmox website - #
https://192.168.1.15:8006

Stop uServer-WebServer (uSP)


# :a.1
# -  - #
# - Choice 1 - #
# - Terminal - #
sshP
pct set 100 -mp0 /OSs/Data/Images/Programs/Linux.Img/SharedFiles,mp=/Data/WebServer/Images/Programs/Linux.Img/SharedFiles;


# :a.2
# -  - #
# - Choice 2 - #
# - Terminal - #
# - Edit container configuration file in proxmox uServerProxmox - #
sshP

vim /etc/pve/lxc/100.conf;

arch: amd64
cores: 4
features: nesting=1
hostname: uServer
memory: 2048
mp0: /OSs/Data/Images/Programs/Linux.Img/SharedFiles,mp=/Data/WebServer/Images/Programs/Linux.Img/SharedFiles
nameserver: 8.8.8.8
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.1,hwaddr=BC:24:11:A7:F8:0C,ip=192.168.1.100/24,type=veth
ostype: ubuntu
rootfs: OSs:subvol-100-disk-0,size=30G
searchdomain: 4.4.4.4
swap: 1024
unprivileged: 1



# :a.3
# -  - #
# - Choice 2 - #
# - Terminal - #
# - Edit container configuration file in proxmox uServer-MySQL - #
sshP

cd /OSs/Data;

mkdir -p /OSs/Data/Databases;

╭── # is_derayo@proxmox-is /OSs/Data :
╰─▷ $ la
total 11K
drwxrwxr-x 6 is_derayo is_derayo 6 Oct 28 18:50 ./
drwxrwxr-x 7 root      is_derayo 7 Oct 27 12:54 ../
drwxrwxr-x 2 is_derayo is_derayo 3 Oct 29 19:02 Databases/
drwxrwxr-x 5 is_derayo is_derayo 5 Apr 24  2024 Images/


# :a.4
# -  - #
# - Create Databases group - #
sudo groupadd -g 101000 databases;
sudo usermod -aG databases is_derayo;


╭── # is_derayo@proxmox-is /OSs/Data :
╰─▷ $ sudo chown -R 101000:101000 /OSs/Data/Databases;
sudo chown -R 101000:101000 /OSs/Data/Databases;


╭── # is_derayo@proxmox-is /OSs/Data :
╰─▷ $ la
total 11K
drwxrwxr-x 6 is_derayo is_derayo 6 Oct 28 18:50 ./
drwxrwxr-x 7 root      is_derayo 7 Oct 27 12:54 ../
drwxrwxr-x 2    101000 databases 3 Oct 29 19:02 Databases/
drwxrwxr-x 5 is_derayo is_derayo 5 Apr 24  2024 Images/
drwxrwxr-x 4 is_derayo is_derayo 4 Apr 24  2024 Plex/
drwxrwxr-x 2 is_derayo is_derayo 2 Apr 20  2024 Sambashare/





vim /etc/pve/lxc/110.conf;

arch: amd64
cores: 4
features: nesting=1
hostname: uServer
memory: 2048
mp0: /OSs/Data/Databases,mp=/Data/Databases
nameserver: 8.8.8.8
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.1,hwaddr=BC:24:11:A7:F8:0C,ip=192.168.1.100/24,type=veth
ostype: ubuntu
rootfs: OSs:subvol-100-disk-0,size=30G
searchdomain: 4.4.4.4
swap: 1024
unprivileged: 1



#sudo vim /etc/subuid;
#sudo vim /etc/subgid;




# :b
# -  - #
# - Terminal - #
# - Create hard links to files you want to share in WebServer - #

╭── # is_derayo@proxmox-is ~ :
╰─▷ $ cd /OSs/Data/Images/Programs/Linux.Img/SharedFiles;

cd /OSs/Data/Images/Programs/Linux.Img/SharedFiles;

╭── # is_derayo@proxmox-is /OSs/Data/Images/Programs/Linux.Img/SharedFiles :
╰─▷ $ ln /OSs/Data/Images/Programs/Linux.Img/Linux_Ubuntu.Img/'Ubuntu_24.10_Xubuntu(64bit)-OracularOriole.iso' .;

ln /OSs/Data/Images/Programs/Linux.Img/Linux_Ubuntu.Img/'Ubuntu_24.10_Xubuntu(64bit)-OracularOriole.iso' .;
ln /OSs/Data/Images/Programs/Linux.Img/Linux_Ubuntu.Img/'Ubuntu_24.10_Desktop(64bit)-OracularOriole.iso' .;
ln /OSs/Data/Images/Programs/Linux.Img/Linux_Ubuntu.Img/Ubuntu_24.10_CinnamonRemix\(64bit\)-OracularOriole.iso .;



# :c.1
# -  - #
# - Proxmox - Terminal - #
# - Change name to a Container - #

╭── # root@proxmox-is /etc/pve :
╰─▷ $ pct set 100 --hostname uServer-WebServer;

pct set 100 --hostname uServer-WebServer;

sudo lxc-info --name 110;


# :c.2
# -  - #
# - Proxmox - Shell - #
# - Open container 140 terminal when fstab failed - #

pct enter 140



# :d
# -  - #
# - uServer - #
# - Create user - #

sudo adduser is_derayo;
sudo usermod -aG sudo is_derayo;



# :e
# -  - #
# - uServer - #
# - Install openssh-server - #

sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y;
sudo apt install vim openssh-server screenfetch -y;

sudo vim /etc/ssh/sshd-confg;

PermitRootLogin yes
PasswordAuthentication yes

:wq

sudo server ssh restart;



# :f
# -  - #
# - uServer - #
# - Create .bashrc and authorized_keys files - #

on   is_derayo
&    root





# :z
# -  - #
# - uServer - #
# - Full virtual machine install - #

# :z.1
# -  - #
# - Mount Data from terminal - #
sudo sshfs -o allow_other,default_permissions is_derayo@192.168.1.15:/OSs/Data/Images /Data/WebServer/ProxmoxVE;

# :z.2
# -  - #
# - Configuring Data from fstab - #

# <file system>                            <dir>  <type>  <options>  <dump>  <pass>
/swap.img                                   none   swap    sw         0       0
UUID=bcef5975-dd89-4f34-95c2-53e2d5793b68   /      ext4    defaults   0       1

# -  - #
# - Complete ProxmoxVE root mounting - #
# - ProxmoxVE - #
sshfs#is_derayo@192.168.1.15:/OSs/Data/Images /Data/WebServer/ProxmoxVE fuse delay_connect,auto,_netdev,port=22,user,allow_other,noatime,follow_symlinks,IdentityFile=/home/is_derayo/.ssh/id_rsa,reconnect  0  0

# :z.3
# -  - #
# - Process - #
1. Configuratin process from terminal
2. Configuration on the fstab file



# - eof - #