Linux

Rewrite Express Engine Urls

<IfModule mod_rewrite.c>

# Enable Rewrite Engine
# ------------------------------
RewriteEngine On
RewriteBase /

# Redirect index.php Requests
# ------------------------------
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{THE_REQUEST} !/system/.*
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]

# Standard ExpressionEngine Rewrite
# ------------------------------
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

</IfModule>

Execute bash script from URL on Linux command line

source <(curl -s https://senormedia.com/bash.sh)
bash <(curl -s https://senormedia.com/bash.sh)

Install with curl as well pass arguments

curl -s https://senormedia.com/bash.sh | bash -s arg1 arg2
Flag "-s" makes shell read from stdin.
bash <(wget -qO- https://senormedia.com/bash.sh)
wget -O - https://senormedia.com/bash.sh| bash

Install firmware Linux Debian Buster or Stretch

Go to link https://www.debian.org/releases/stable/armel/ch06s04.html.en

extract zip

open terminal in folder or cd into directory of firmware tar

sudo dpkg -i *.deb

basically, what this does is fills in the rest of the name in place of the * character. You may encounter an error saying dependencies not met, if you see this then you can run

sudo apt-get install -f

Things to do after installing Linux Debian Buster or Stretch

Keep Debian up to date
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
su -
apt-get install sudo
adduser "USERNAME" sudo
apt-get update
apt-get upgrade
reboot
install dash to dock extension

Configure non-free repositories

Open /etc/apt/sources.list using Nano text editor:

sudo nano /etc/apt/sources.list

//Add contrib non-free after main
example 
deb http://deb.debian.org/debian/ buster-updates main non-free contrib


sudo apt update
sudo apt upgrade
sudo reboot
sudo nano /etc/default/grub
sudo update-grub

[display-posts id=”36″]

View Some Of Our Services