On Ubuntu you should be able to install the necessary PDO parts from apt using
Installing PHP mysql and PDO driver on MySQL Linux server
sudo apt-get install php-mysql
sudo apt-get install pdo-mysql
On Ubuntu you should be able to install the necessary PDO parts from apt using
Installing PHP mysql and PDO driver on MySQL Linux server
sudo apt-get install php-mysql
sudo apt-get install pdo-mysql
It will ask you for the related password. Then once you get the mysql promt type the next command:
mysql> show variables like '%sock%'
and this script in file .env
DB_SOCKET=/opt/lampp/var/mysql/mysql.sock
Install Xampp/Lampp on Ubuntu 18.04
1.
sudo chmod +x namafilexampp.run
2.
sudo apt install curl php-cli php-mbstring git unzip'
sudo apt-get install composer
3.
composer --version
Install Laravel
1.
cd /opt/lampp/htdocs
2.
composer create-project --prefer-dist laravel/laravel test
3.
apt install php-xml
4.
php artisan serve
Go to
http://127.0.0.1:8000/
done
source : https://medium.com/@diszaid/instalasi-laravel-versi-5-7-pada-ubuntu-18-04-lts-78061b1f4a4f
<SOLVED> Samba file sharing using the file manager works between three local network Linux machines running Mint 20, Mint 19.2, and Ubuntu 18.04 with these conditions:
1. The [global] section of the/etc/samba/smb.conf file on each machine must be configured as shown below:
2. Connections originating from the Mint 20 file manager must use the file manager command line with the command "smb://<ip address>/share-name".
3. The /etc/hosts file on each machine must include the host name/ip address of the other two machines.
4. You must create a samba user/password on each machine using the command "sudo smbpasswd -a username".
Mint 20:
Code: Select all
workgroup = WORKGROUP
name resolve order = bcast host lmhosts wins
usershare owner only = false
client min protocol = NT1
server min protocol = NT1
Mint 19.2
Code: Select all
workgroup = WORKGROUP
name resolve order = bcast host lmhosts wins
usershare owner only = false
client max protocol = NT1
Ubuntu 18.04 LTS
Code: Select all
workgroup = WORKGROUP
name resolve order = bcast host lmhosts wins
usershare owner only = false
client max protocol = NT1
That worked for me!!
Last edited by woverst53 on Thu Jul 16, 2020 5:00 pm, edited 1 time in total.
Top
source: https://forums.linuxmint.com/viewtopic.php?f=47&t=324431
How to fix -bash: No such file or directory
The file command will tell you just what this binary is. With a few exceptions, you can only run a binary for the processor architecture that your release of Ubuntu is for. The main exception is that you can run 32-bit (x86, a.k.a. IA32) binaries on 64-bit (amd64, a.k.a. x86_64) systems.
example
file lsnrctl
lsnrctl: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=1d73dbf9105a55d21a6e36b50019591f75e04a49, with debug_info, not stripped
Solve it with add 32bit architecture
sudo apt-get install ia32-libs
Perintah sudo apt-get install ia32-libs sudah deprecated (tidak tersedia) di Ubuntu versi terbaru (sejak Ubuntu 13.10 ke atas). Paket ia32-libs dulu digunakan untuk menyediakan pustaka 32-bit di sistem 64-bit agar bisa menjalankan aplikasi 32-bit. Namun sekarang Ubuntu menggunakan multiarch sebagai gantinya.
Untuk menginstal pustaka 32-bit di sistem 64-bit:
sudo dpkg --add-architecture i386
sudo apt update
Lalu instal pustaka 32-bit yang dibutuhkan, contoh:
sudo apt install lib32z1 lib32ncurses6 lib32stdc++6
Atau pustaka lain sesuai kebutuhan program 32-bit, seperti:
sudo apt install libc6:i386 libncurses5:i386 libstdc++6:i386
source : https://askubuntu.com/questions/133389/no-such-file-or-directory-but-the-file-exists