quinta-feira, 26 de maio de 2022

Extend boot partition - ubuntu 22.04

 #before you start, resize the fisical disk first or in virtual environment (vmware, virtualbox, etcc...)

#first, execute:

fdisk -l command

#after execute:

df -h

or

ls /sys/class/scsi_device/

or

echo 1 > /sys/class/scsi_device/2\:0\:0\:0/device/rescan

echo 1 > /sys/class/scsi_device/3\:0\:0\:0/device/rescan

echo 1 > /sys/class/scsi_device/32\:0\:0\:0/device/rescan

#Use cfdisk to extend boot partition,select it, (/dev/sda3 in my case) and select “Resize” Click enter, new size is shown

#Then select “Write”, when prompted, type “Yes”, and then select “Quit” and press Enter

#With fdisk -l /dev/sda, make sure partition is extended

#Next, let’s run parted and resize a partition

#in parted execute:

(parted) print

(parted) resizepart

(parted) quit

#Next, resize the physical volume:

pvresize /dev/sda3

#Now, extend the logical volume:

lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

#Finally, run resize2fs to apply the changes:

resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

#Verify changes: 

df -h 

#partition is extended from (size before) to (new size)


references:

https://geekdudes.wordpress.com/2021/04/09/ubuntu-20-04-extend-boot-partition/

How to Solved Problem - "Could not get lock /var/lib/dpkg/lock-frontend"

 

if you execute apt-get upgrade and received this message:

Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. IWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5507 (apt)


this kb is for you






For solve first:

sudo rm -rf /var/lib/apt/lists/lock

sudo rm /var/lib/dpkg/lock

sudo rm /var/cache/apt/archives/lock


after that, execute: (those command bellow, could you return some errors, don't worry)

sudo apt-get update

sudo dpkg –configure -a


sudo apt-get -f install



then for finish execute:


sudo rm /var/lib/dpkg/lock-frontend 

sudo dpkg --configure -a

sudo apt update

quinta-feira, 12 de maio de 2022

How to install guacamole apache server

execute download file: 

wget https://raw.githubusercontent.com/MysticRyuujin/guac-install/master/guac-install.sh


put the permission:

chmod +x guac-install.sh


execute the installation:

./guac-install.sh


for me, is not necessary, but if you have some problem, follow this final command:

./guac-install.sh --mysqlpwd password --guacpwd password


for access execute:

 http://Server:8080/guacamole


default user and password:

user: guacadmin

pass: guacadmin



obs:

my reference was this site:

https://conzatech.com/instalando-o-apache-guacamole-no-ubuntu-server/