Posts

Showing posts from September, 2022

How to reset a Windows password with Linux

 root@vmi764850:/dev# fdisk -l Disk /dev/sda: 200 GiB, 214748364800 bytes, 419430400 sectors Disk model: QEMU HARDDISK Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x9d7fceb2 Device     Boot  Start       End   Sectors   Size Id Type /dev/sda1  *      2048    718847    716800   350M 27 Hidden NTFS WinRE /dev/sda2       718848 419428351 418709504 199.7G  7 HPFS/NTFS/exFAT mkdir -p /mnt/Microsoft/ sudo mount /dev/sda2 /mnt/Microsoft/ sudo mount -o rw /dev/sda2 /mnt/Microsoft/ root@vmi764850:/mnt/Microsoft# sudo mount -o rw /dev/sda2 /mnt/Microsoft/ The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Falling back to read-only mount because the NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting.) after that I rsync the required file to another linux s

larvel

 error logs  inside storage/logs /var/www/aimlaravel/storage/logs db in e.nv file outside of public folder DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=aim_acropolis #DB_DATABASE=AIM_new27Jan2021 DB_USERNAME=root DB_PASSWORD=toor

no space left on device

 restart server again

VNOUN - Vue3 NodeJS Multi-Purpose Responsive Online Store MEVN

why you need python2 this is obsolete please update it to use pyton3 as I am getting this error on ubuntu 20.04 npm ERR! gyp ERR! node -v v16.16.0 npm ERR! gyp ERR! node-gyp -v v3.8.0 npm ERR! gyp ERR! not ok npm ERR! Build failed with error code: 1 sudo apt install python2 Reading package lists... Done Building dependency tree Reading state information... Done Package python2 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'python2' has no installation candidate   sudo apt update sudo apt upgrade sudo apt install python2.7 sudo apt install python-pip  hello bro, I got it working on the second server, but getting below > error server setup  on npm install cmd > > > > npm ERR! code 1 solution Please downgrade your node version to Node v14.17.3 (LTS) | Node.js nodemon not found in npm npm install nodemon --save-dev to check all node version

Try removing permissions for user: NT AUTHORITY\\Authenticated Users (S-1-5-11) on file

Image
 PS C:\Users\bumka> ssh -p 22 root@66.94.110.170 Bad permissions. Try removing permissions for user: NT AUTHORITY\\Authenticated Users (S-1-5-11) on file C:/ProgramData/ssh/ssh_config. disable inheritance

elseticsearch downgrade

  1 sudo   yum remove  elasticsearch sudo   rm   -rf   / var / lib / elasticsearch / sudo   rm   -rf   / etc / elasticsearch https://www.elastic.co/downloads/past-releases/elasticsearch-7-6-0 rpm -Uvh  elasticsearch-7.6.0-x86_64.rpm

Python Selenium Chrome Webdriver

  This version of ChromeDriver only supports Chrome version 89 Current browser version is 105.0.5195.127 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe Here's a simpler solution: install python-chromedrive package, import it in your script, and it's done. Step by step : 1. pip install chromedriver-binary 2. import the package from selenium import webdriver import chromedriver_binary # Adds chromedriver binary to path driver = webdriver.Chrome() PS C:\Users\bumka\Downloads\video_generator> pip install chromedriver-binary==105.0.5195.127 ERROR: Could not find a version that satisfies the requirement chromedriver-binary==105.0.5195.127 (from versions: 2.29.1, 2.31.1, 2.33.1, 2.34.0, 2.35.0, 2.35.1, 2.36.0, 2.37.0, 2.38.0, 2.39.0, 2.40.1, 2.41.0, 2.42.0, 2.43.0, 2.44.0, 2.45.0, 2.46.0, 70.0.3538.16.0, 70.0.3538.67.0, 70.0.3538.97.0, 71.0.3578.30.0, 71.0.3578.33.0, 71.0.3578.80.0, 71.0.3578.137.0, 72.0.3626.7.0, 72.0.3626.69.0, 73.0.3683.20.0, 73.0.3

Option ExecCGI not allowed here

put it in DA admin > server manager CUSTOM2 Appears just before the <Directory> section.  <Directory /home/newsehaaso/domains/new.sehaaonline.com/private_html/pub/media/>    AllowOverride All  </Directory>

directadmin downgrade

 Step 1 :-  M 2.3.4 to M 2.3.6 Php :- 7.3 Mysql :- 5.7 Composer :- 1.10.26 MariaDB :- 10.2 vi /usr/local/directadmin/custombuild/options.conf #here you can modify 7.4 to 7.3 cd /usr/local/directadmin/custombuild ./build update will remove any added php module from this file lcoation php custom files (configure.php56) /usr/local/directadmin/custombuild/configure/php you can skip above build update cmd ./build php n For mysql vi /usr/local/directadmin/custombuild/options.conf specify MariaDB version here ./build mariadb n composer self-update 1.10.26 [root@server-154-27-78-218 custombuild]# php -v PHP 7.3.33 (cli) (built: Sep 22 2022 19:24:30) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies [root@server-154-27-78-218 custombuild]# mysql -V mysql  Ver 15.1 Distrib 10.2.44-MariaDB, for Linux (x86_64) using readline 5.1 [root@server-154-27-78-218 custombuild]# composer -V Do not run Composer as root/super user! See https://getcomp

Automated YouTube Shorts Generator Python

 During installation of imagemagick tick all options

How to Upgrade Magento version from 2.3.2 to 2.3.5?

  Note: Before running the below commands, please take a full backup of your current Magento website. It will help you to undo the current scenario if you face any issues during the future Magento 2 upgrade steps. Step 1: Set the Magento website in maintenance mode using the below command. 1 - php bin / magento maintenance : enable Step 2: Take a backup of composer.json file placed in Magento root using the below command. 1 - cp composer . json composer . json . bak Step 3: Remove the current installation setup folder by using the below command. 1 - composer remove magento / product - community - edition -- no - update Step 4: Set the version in which you want to upgrade in the below command. 1 - composer require magento / product - community - edition = 2.3.5 -- no - update Step 5: Run the below command. 1 - composer require -- dev allure - framework / allure - phpunit : ~ 1.2.0 friendsofphp / php - cs - fixer : ~ 2.14.0 lusitanian / oauth : ~ 0.8.10 magento / magento - cod