Skip to content

Instantly share code, notes, and snippets.

View wasimosmanhome's full-sized avatar

Wasim Osman wasimosmanhome

  • Canada
View GitHub Profile
@wasimosmanhome
wasimosmanhome / settings.json
Last active August 27, 2020 22:00
transmission_config
{
"_comment": "This is the replaced file",
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
@wasimosmanhome
wasimosmanhome / install_grafana
Created January 8, 2020 01:09
This is a grafana installation script tested on Raspbian. This should also run on any linux system
#!/bin/bash
#This script is to install grafana server on the raspberry pi
#Download the installation file
#wget -P /home/pi/Documents/ https://dl.grafana.com/oss/release/grafana_6.4.4_armhf.deb
@wasimosmanhome
wasimosmanhome / plex_install.sh
Last active September 1, 2020 19:35
plex_install.sh
sudo chmod 777 -R /media/pi
sudo apt-get install apt-transport-https -y
curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
sudo apt-get update -y
@wasimosmanhome
wasimosmanhome / raspberrypi4_overclock
Created May 8, 2020 20:16
Overclock Raspberry pi 4
sudo nano /boot/config.txt
#then add
over_voltage=5
arm_freq=2000
gpu_freq=600
cd to Downloads
wget https://github.com/wbenny/htop/files/573914/htop_2.0.2-2_armhf.deb.zip && unzip htop_2.0.2-2_armhf.deb.zip && sudo dpkg -i htop_2.0.2-2_armhf.deb
IF YOU HAVE TO REPEAT
sudo dpkg -i htop_2.0.2-2_armhf.deb
htop
sudo iptables -t nat -I POSTROUTING -d 127.0.0.0/8 -j ACCEPT
curl -sL https://install.raspap.com | bash -s -- -y
Use this for RASPAP installation
Go to Documents folder and:
@wasimosmanhome
wasimosmanhome / rasp_remove
Created May 16, 2020 10:57
Remove RaspAp
#!/bin/bash
raspap_dir="/etc/raspap"
raspap_user="www-data"
version=`sed 's/\..*//' /etc/debian_version`
# Determine Raspbian version and set default home location for lighttpd
webroot_dir="/var/www/html"
if [ $version -eq 10 ]; then
version_msg="Raspbian 10.0 (Buster)"
php_package="php7.1-cgi"
@wasimosmanhome
wasimosmanhome / Raspberry pi Origin
Last active January 3, 2024 15:07
Raspberry pi Origin
Raspberry PI
sudo nano=gedit visudo
After this line
[ %sudo ALL=(ALL:ALL) ALL ]- add
Add
pi ALL=(ALL) NOPASSWD: ALL
SUDO APT- GET UPGRADE
sudo apt update --allow-releaseinfo-change && sudo apt-get update -y && sudo apt-get upgrade -y --allow-unauthenticated && sudo apt-get dist-upgrade -y
@wasimosmanhome
wasimosmanhome / install_firefox
Last active September 23, 2020 05:24
Firefox ESR
sudo apt install firefox-esr -y
@wasimosmanhome
wasimosmanhome / samba_install.sh
Last active April 19, 2022 16:58
samba_install.sh
sudo apt-get install samba samba-common-bin -y
# sudo nano /etc/samba/smb.conf
sudo cp -f smb.conf /etc/samba/smb.conf
sudo smbpasswd -a pi
sudo service smbd restart