Sugeng rawuh

Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

#7 Memberikan permittion folder laravel Chmod

Keterangan 

 chmod -R a+rwx /var/www/html/folder
Share:

#6 Compress file and folder to .zip Ubuntu

Keterangan 
Folder yang akan di compress = port
nama file hasil compress = port.zip

  zip -r port.zip /var/www/html/port/
Share:

#5 Upload file ke server ubuntu menggunakan terminal

Sebelum upload file pastikan directory atau tempat penyimpanan file sudah anda tentukan sebelumnya, apabila sudah silahkan copy code berikut ini dan pastekan di terminal komputer anda

1. Upload File .zip by Terminal

keterangan 
Nama file yang akan di upload : laravelv8.zip
lokasi upload server ubuntu alibaba : /var/www/html/port
ip vps : 10.222.111.145

  scp -r /Applications/XAMPP/htdocs/laravelv8.zip root@10.222.111.145:/var/www/html/port/
Share:

DOKUWIKI ERROR - The datadir ('pages') at ./data/pages is not found

My errorr is : The datadir ('pages') at ./data/pages is not found, isn't accessible or writable. You should check your config and permission settings. Or maybe you want to run the installer?

and my solution :

Change an access folder's

chmod -R 777 data/ ; chmod -R 777 lib/ ; chmod -R 777 conf/

Share:

How to zip and unzip the files via Command line - ubuntu 20

Steps 1 unzip

  • apt-get install zip
  • Unzip : zip -r example.zip original_folder
Steps to zip

  • Step 1 : Login to the server via terminal

  • Step 2 : Install unzip (in case you do not have). To Install the unzip, type the following command

  • sudo apt-get install unzip
  • unzip default.zip
Share:

fix problem UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'default' of undefined

whatsapp-web.js from pedroslopez

I got an error yesterday, February 28, 2021

Error: Evaluation failed: TypeError: Cannot read property 'default' of undefined



fix
1. npm i whatsapp-web.js
2. npm audit fix


Share:

Mysql in Ubuntu 20 error Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted

 Message Error : Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted

Fix my Problem :

1. open terminal

2. write coment : sudo /opt/lampp/bin/mysql_upgrade

3. restart apache

4. finish. 


i had the error when created a stored procedure mysql

Share:

Auto run node js if reboot system


Image : list pm2 , check after reboot system 

Auto run node js if reboot system

1. Install PM2 globally using NPM

npm install pm2 -g


2.Start your script with pm2

pm2 start app.js


3. generate an active startup script

pm2 startup


NOTE: pm2 startup is for startting the PM2 when the system reboots. PM2 once started, restarts all the processes it had been managing before the system went down. In case you want to disable the automatic startup, simply use pm2 unstartup If you want the startup script to be executed under another user, just use the -u <username> option and the --hp <user_home>:




Share:

Puppeteer can't launch chromium, missing shared library libgbm.so - ubuntu

sudo apt-get update

sudo apt-get install -y libgbm-dev

Share:

Update password root phpmyadmin ubuntu 20

 Try restart mysql-server before execution the comands

sudo service mysql restart

MYSQL-SERVER >= 5.7

sudo mysql -uroot -p
USE mysql;
UPDATE user SET authentication_string=PASSWORD('YOUR_PASSWORD') WHERE User='root';
UPDATE user SET plugin="mysql_native_password";
FLUSH PRIVILEGES;
quit;

MYSQL-SERVER < 5.7

sudo mysql -uroot -p
USE mysql;
UPDATE user SET password=PASSWORD('YOUR_PASSWORD') WHERE User='root';
UPDATE user SET plugin="mysql_native_password";
FLUSH PRIVILEGES;
quit;

Share:

Install Ubuntu 20 - setting alokasi tiap partisi

 

Alokasi memori adalah 100GB atau 100.000 MB

akan dibagi menjadi 4 partisi lagi yaitu :

1. Swap 

- di sesuaikan RAM saat ini saya pakai 16GB jadi swap saya juga 16 GB

- logical

2. Root

- Root ini untuk file system seperti disk C kalau di windows

- saya lokasikan 40 - 50 GB

- primary

- /

3. Home

- Sisa dari size saya alokasikan ke home kurang lebih 24 GB

- logical

- /home

4. Boot

- untuk menyimpan boot loader atau group ubuntu nantinya

- /boot

- logical

- alokasi size sisa dari proses diatas saya alokasikan semuanya


Share:

Tonton video



Yuk, SUBSCRIBE

omfiki.blogspot.com