Posts

Showing posts with the label Linux/Unix

NodeJS Common Fix Command On Linux Or Windows

Linux # add new repository sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update -y sudo apt install libgtk-3-0 -y sudo apt install software-properties-common checkinstall -y sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev build-essential libncurses5-dev libgmp-dev libnss3-dev wget -y # nodejs additional packages npm install --global lerna node-pre-gyp typescript # python 2.7 sudo apt install python-minimal -y sudo apt install python-pip -y # Install npm --build-from-source install # Fix Chrome Sandbox sudo chown root:root node_modules/electron/dist/chrome-sandbox sudo chmod 4755 node_modules/electron/dist/chrome-sandbox # run sudo npm run start Windows install Visual Studio Installer npm config set msvs_version 2017 --global npm i electron-builder-squirrel-windows electron-builder node-gyp electron electron-rebuild -g node-gyp configure --msvs_version=2017 npm ins

Linux Clear Cache

#!/bin/bash #clean page cache #sync #echo 1 >/proc/sys/vm/drop_caches #clean dentries and inodes #sync #echo 2 >/proc/sys/vm/drop_caches #clean page cache and dentries inodes, but it is not recommended in production instead use "echo 1" #sync #echo 3 >/proc/sys/vm/drop_caches ################## # begin refresh script ################## sync if [ $(dpkg-query -W -f='${Status}' polipo 2>/dev/null | grep -c "ok installed") -eq 0 ]; then apt-get install polipo -y fi polipo -x echo 3 >/proc/sys/vm/drop_caches swapoff -a && swapon -a printf '\n%s\n\n' 'Ram-cache and Swap Cleared' /opt/lampp/xampp restart free -h this script used for better performance your vps (LINUX). fix apache slow response fix xampp web server slow fix overload ram vps fix mysqld overheat fix java machine overheat ram

FIX Low signal wifi kali linux

Memperbaiki low wifi signal kali linux   git clone https://github.com/lwfinger/rtlwifi_new.git cd rtlwifi_new sudo make sudo make install sudo modprobe -rv rtl8723be sudo modprobe -v rtl8723be ant_sel=2 echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/rtl8723be-ant.conf sudo modprobe -r rtl8723de sudo modprobe rtl8723de ant_sel=2 echo "options rtl8723de ant_sel=2" | sudo tee /etc/modprobe.d/rtl8723de-ant.conf Low signal wifi linux fix fix low signal linux fix kali linux wifi signal fix kali wifi install RTL wifi driver linux HP laptop linux wifi driver DELL laptop wifi driver linux

Install google chrome kali linux/debian/etc

Image
open terminal, type:  64 bit wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb  32 bit wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb wait until download complete, the type:  64 bit dpkg -i google-chrome-stable_current_amd64.deb  32 bit dpkg -i google-chrome-stable_current_i386.deb then, fix chrome installation and depencies: apt update -y && apt upgrade -y && apt --fix-broken install done, find chrome in app lists, now available. good luck

Default Kali Linux Repositories

Image
open terminal, type : gedit /etc/apt/sources.list add following codes: deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib

Install MySQL di termux

Image
Install dan buka termux ketik pkg install mariadb mkdir ../usr/etc/my.cnf.d mysql_install_db mysqld Buka tab sesi baru, lalu ketik mysql -u root -p buka tab sesi baru, lalu ketik mysql_secure_installation lalu ikuti step by step nya. jika ingin memberi password untuk ROOT, tinggal ketik 'y' pada saat step pemberian password terhadap root user selesai. bila ingin menjalankan mysql, setiap pertama kali membuka termux ketik mysqld lalu buka tab sesi baru untuk melakukan open server seperti php misalnya (php -s localhost:8080)

[Bash] Menghapus spasi pertama pada file

IFS=$'\n' for f in $(find . -type f -name ' *') do mv $f ${f/\.\/ /\.\/} done

Installation Ubuntu On Android Tutorial

Image
Install Ubuntu on an Android phone after struggling finally managed to also install Ubuntu on my beloved android phone. the installation is easy, the hard one is to download it, make it like that.breaking up disconnecting disconnects, once it breaks it can't be resumed , if you want to download , it must be dawn, the speed is still god 😀 * Pffftttt 😂 INSTALLATION Ok, proceed to the first stage, which must be downloaded is the Image file from Ubuntu that has been remastered using X-Window LXDE. 3.5 GB file size is quite something for the internet in Indonesia, files can be downloaded at http://minus.com/mKGww7gIl#2 . the form is a Zip file and if extracted it will produce 3 ubuntu.img, ubuntu.sh, and the ubuntu.sh.

Gmail SMTP error please log in via your web browser

Image
You having problems with gmail smtp server. Like this Gmail SMTP error please log in via your web browser , Then Goggle says: Please log in via your web browser and then try again. 534-5.7.14 Learn more at https://support.google.com/mail/bin/answer.py?answer=787 ?. I know this is an older issue, but I recently had the same problem and was having issues resolving it, despite attempting the DisplayUnlockCaptcha fix. This is how I got it alive. Firstly you must activate less secure apps at https://myaccount.google.com/security?hl=en Enable less secure apps Head over to Account Security Settings ( https://www.google.com/settings/security/lesssecureapps ) and enable "Access for less secure apps", this allows you to use the google smtp for clients other than the official ones. Enable less secure apps Update Google has been so kind as to list all the potential problems and fi

how to fix mdadm.conf defines no arrays on UBUNTU SERVER 16.04

Image
While performing reports on Ubuntu server 16.04 we see the accompanying cautioning. (Tolerating it is a notice, it is none-the-less irritating). Setting up initramfs-tools (0.122ubuntu8.3) ... update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.122ubuntu8.3) ... update-initramfs: Generating /boot/initrd.img-4.4.0-38-generic W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. The notice is shown at whatever point there's no Exhibit line in mdadm.conf The least complex fix for this notice is to add the accompanying line to the finish of/and so on/mdadm/mdadm.conf ARRAY <ignore> devices=/dev/sda