Simple Linux Tips

Could not display an executable file

  • Right click -> Properties -> Permissions -> Allow executing file as program

File Permissions

  • Example: sudo chmod -R 777 .

  • 755 – commonly used in web server. The owner has all the permissions to read, write and execute. Everyone else can only read and execute, but cannot make changes to the file.

  • 777 – Everyone can read write and execute.

  • 644 – Only the owner can read and write. Everyone else can only read. No one can execute the file.

  • 655 – Only the owner can read and write, but not execute the file. Everyone else can read and execute, but cannot modify the file.

Set $PATH Variable

  • Add this line to ~/.profile file: export PATH=$PATH:/myNewDir

  • Then run command: source ~/.profile

Internet Speed

  • sudo nano /etc/gai.conf

  • remove # from #precedence ::ffff:0:0/96  100 and reboot

Install deb File

  • sudo apt install ./filename.deb

Install Steam

sudo apt-get update
sudo apt-get install curl python-apt zenity

Install Arduino with ESP32

arduino-linux-setup.sh    # Must do this first
install.sh

# For ESP32 to work
pip install pyserial

more info

Install Quartus

chmod +x QuartusLiteSetup-19.1.0.670-linux.run
./QuartusLiteSetup-19.1.0.670-linux.run
  • Error: quartus: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

  • Solution:

sudo wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
sudo dpkg -i /tmp/libpng12.deb
sudo rm /tmp/libpng12.deb
  • Install Download Cable (formerly USB-Blaster) Driver

  • sudo nano /etc/udev/rules.d/51-usbblaster.rules

  • Add the following to the file. Restart Quartus.

# Intel FPGA Download Cable
SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6002", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6003", MODE="0666"
# Intel FPGA Download Cable II
SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6010", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6810", MODE="0666"

ModelSim Error

  • Error: error while loading shared libraries: libXft.so.2: cannot open shared object file: No such file or directory Error.

  • Solution: sudo apt-get install libxft2 libxft2:i386 lib32ncurses5

Install Intel FPGA SoC EDS (Embedded Development Suite)

sudo chmod +x ./SoCEDSSetup-18.1.0.625-linux.run
sudo ./SoCEDSSetup-18.1.0.625-linux.run

Install Jekyll

  • Error: Failed to build gem native extension

  • Solution: sudo apt-get install ruby-dev

Install Android Studio

sudo apt update
sudo apt install openjdk-8-jdk
sudo snap install android-studio --classic
sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
sudo android-studio

Right Click On Touch Pad

  • Just Tap/Click the touch pad anywhere with two fingers!

Angstrom: Install Package

opkg update
opkg install [packagename]
opkg remove [packagename] --force-removal-of-dependent-packages

React Native Errors

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
npm start --reset-cache

Windows Powershell Tips

React Native Errors

  • Error: .ps1 is not digitally signed

  • Solution: Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

Personal

CQT printer

https://support.quantumlah.org/index.php/C558_Installation_Guide