Archive for the 'LinuX' Category

Dec 19 2022

Cara melegakan /dev/mapper/ubuntu–vg-ubuntu–lv

Published by under LinuX

Use Your Default Free Space

As you can see above: the Ubuntu installer (by default) left almost half of my disk space unusable by the root file system! I’ve looked around to find an explanation on why these are the default settings, but can’t find anything. Before extending your underlying hypervisor disk or storage volume, you may want to see if you have free space available and ready to be used to extend your existing file system. If you used the Ubuntu defaults during installation, then there is a good chance you have this free space.

Start by checking your root filesystem free space with df -h. As you can see I am only using 14% of my ~49GB volume, but we’ll pretend I’m close to 100% and need to make that 49GB volume larger.

To check for existing free space on your Volume Group (where it is left by the installer default settings), run the command vgdisplay and check for free space. Here you can see I have 49.25GB of free space ready to be used. If you don’t have any free space, move on to the next section to use some free space from an extended physical (or virtual) disk.

To use up that free space on your Volume Group (VG) for your root Logical Volume (LV), first run the lvdisplay command and check the Logical Volume size, then run lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv to extend the LV to the maximum size usable, then run lvdisplay one more time to make sure it changed.

At this point you have increased the size of the block volume where your root filesystem resides, but you still need to extend the filesystem on top of it. First, run df -h to verify your (almost full) root file system, then run resize2fs /dev/mapper/ubuntu–vg-ubuntu–lv to extend your filesystem, and run df -h one more time to make sure you’re successful.

And that’s it. You just allocated the free space left behind by the Ubuntu installer to your root filesystem. If this is still not enough space, continue on to the next section to allocate more space by extending an underlying disk.

sumber ;https://packetpushers.net/ubuntu-extend-your-default-lvm-space/

No responses yet

Oct 26 2022

Perintah Backup dari Linux ke Thecus

Published by under LinuX

rada bikin pusing juga, mudah kalo Thecus mengeluarkan module buat rsync jadi tinggal klak klik kayak Truenas langsung jadi cuman memang design Thecus itu sebagai storage kemudian dibackup bukan storage untuk membackup heheheeee kalo dalam proses kali ini ternyata ada cara thecus dibuat untuk membackup Linux seperti dibawah ini scripnya

#rsync -rvlHpogDtS  /mnt/staff/ angga@10.16.3.XX::staff

penjelasan scrip diatas
1. rsync -rvlHpogDtS = ini sintak yang musti di tulis lengkap tidak boleh ada yang kurang
2. /mnt/staff/  = folder dari si linux yang akan di kirim ke Thecus
3. angga@10.16.3.XX::staff  = angga adalah user yang di buat di Thecus pada menu Rsync target server, ip 10.16.3.xx adalah ip thecusnya, staff adalah folder di thecus untuk tembat file dari si linux

sebagai penjelasan bahwa scrip diatas di jalankan di sisi linux ya bukan di Thecusnya karena Thecus yang saya gunakan versi N0503 tidak support ssh

sumber https://silo.tips/download/a-guide-to-introduce-rsync-backup-between-linux-and-thecus-nas-contents

No responses yet

Oct 25 2022

Mount NFS ke server dengan TrueNas menggunakan user

Published by under LinuX

langkah nya

  1. Memastikan truenas sudah jalan normal
  2. membuat folder di truenas dan diberi ACL seperti di post sebelumnya
  3. add nfs di sharing

4. menginstall nfs common di server yang akan di tautkan nfs dengan perintah  #apt install nfs-common
5. setelah selesai ketik perintah di bawah sesuakan dengan ip server dan user truenasnya
#mount -t nfs -O user=xxxx,pass=xxxx 203.6.xxx.xxx:/mnt/tank/server/elearning /home/elearning/public_html
jika tidak menggunakan user cukup seperi dibawah ini
#mount -t nfs 203.6.xxx.xx:/mnt/foto/dbbackup /home/dbbackup

 

 

No responses yet

Jul 21 2022

Instalasi Virtualmin ubuntu 20 dengan php5.6

Published by under LinuX

langkah awal yang harus dilakukan adalah instalasi ubuntu 20.04 di server dengan config standart setelah itu ikuti proses dibawah ini

1  wget http://software.virtualmin.com/gpl/scripts/install.sh
2  chmod a+x install.sh
3  ./install.sh
4  apt-get install phpmyadmin

setelah instalasi phpmyadmin ini baru proses instalasi php5.6 prosesnya seeprti dibawah ini

5 apt install software-properties-common
6 add-apt-repository ppa:ondrej/php
7 apt-get update
8 apt install php5.6
9 apt install php5.6-cli php5.6-xml php5.6-mysql
10 php -v
11 update-alternatives --set php /usr/bin/php5.6
12 php -v

pada php -v langkah sepeluh pasti belum pindah ke versi 5.6 untuk pindah keversi 5.6 ketik langkah ke 11 setelah itu php -v otomatis akan pindah ke versi 5.6

setelah langkah diatas ketika kita coba akses phpmyadmin pasti akan error.

[Thu Jul 21 12:54:49.930929 2022] [:error] [pid 2844] [client 36.68.8.207:25759] PHP Warning: Unsuppo rted declare ‘strict_types’ in /usr/share/php/PhpMyAdmin/MoTranslator/Loader.php on line 23
[Thu Jul 21 12:54:49.931221 2022] [:error] [pid 2844] [client 36.68.8.207:25759] PHP Parse error: syn tax error, unexpected ‘?’ in /usr/share/php/PhpMyAdmin/MoTranslator/Loader.php on line 116

yang saya lakukan adalah

  1. karena menggunakan virtualmin kemudian saya membuat 1 domain untuk letak phpmyadminnya contohnya saya disini buat : server72.feb.XX.XX.XX
  2. kemudian mendownload versi phpmyadmin phpMyAdmin-4.9.10-all-languages.tar.gz perintahnya wget https://files.phpmyadmin.net/phpMyAdmin/4.9.10/phpMyAdmin-4.9.10-all-languages.tar.gz
  3. selesai download di extrak di directory web untuk domain yang kita buat tadi disini saya extrak di /home/server72/public_html/phpmyadmin
  4. coba kita akses phpmyadminnya di domain yang sudah kita buat, seharusnya akan muncul halaman losin seperti biasaya phmyadmin
  5. dan ketika kita coba login akan muncul erorr seperti dibawah ini

langkah selenjutnya setelah muncul pesan diatas adalah

  1. login ke mysql melalui terminal dengan perintah
    # mysql -u root -p
    # enter password : **********
    # mysql>
  2. ketik perintah seperti dibawah ini
    ALTER USER ‘user’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘user_password’;
    dan entar jagn lupa user diganti root dan user_password diganti password rootnya
  3. tambahannya edit di /etc/mysql/mysql.conf.d/mysqld.cnf
    default_authentication_plugin=mysql_native_passwor
  4. setelah itu silahakn di coba untuk login menggunakan root

No responses yet

Feb 28 2022

Ojs instalasi di bawah Balance server biar tampilan ndak hancur

Published by under LinuX

yang perlu di edit pada bagian /lib/pkp/classes/core/PKPRequest.inc.php
cara kata kata seperti dibawah
$_this->_protocol = (!isset($_SERVER[‘HTTPS’]) || strtolower_codesafe($_SERVER[‘HTTPS’]) != ‘on’) ? ‘http’ : ‘https’;
ganti dengan yangbawah ini
$_this->_protocol = (!isset($_SERVER[‘HTTPS’]) || strtolower_codesafe($_SERVER[‘HTTPS’]) != ‘on’) ? ‘https’ : ‘https’;

referensy
https://forum.relawanjurnal.id/viewtopic.php?t=599

4k video downloader crack abbey road vintage drummer crack alone in the dark pc game acronis true image crack

No responses yet

« Prev - Next »