Default user: pi Default pass: raspberry
- #00 Login as pi
- #01 sudo passwd
- #02 exit
- #03 Login as root with preset password
- #04 adduser mansour
- #05 adduser mansour sudo
@echo off | |
set url=%1 | |
mode con cols=70 lines=1 | |
color 37 | |
::color 17 | |
:check | |
IF %url%. EQU . ( | |
set /P url=Host: | |
goto check | |
) |
LIST DISK | |
SELECT DISK 1 | |
CLEAN | |
CLEAN | |
CREATE PART PRI | |
SELECT PART 1 | |
ACTIVE | |
ASSIGN | |
FORMAT FS=NTFS QUICK | |
EXIT |
pnputil -i -a RNDIS.inf
with higher privileges# @author Mansour Yaacoubi | |
# @filename enable_rpi_otg.py | |
# @task Enable ssh over USB for Raspberry Pi | |
# | |
# Install pywin32 for this (https://sourceforge.net/projects/pywin32/files/pywin32/) | |
import win32api, pywintypes | |
import requests | |
from time import sleep |
REM @author Mansour Yaacoubi | |
REM @filename cleanformatdisk.bat | |
REM @task Cleans disk, creates primary partition and formats disk | |
REM f.e. for raspberry pi drives before writing new image of SD-Card | |
@echo off | |
cls | |
net session >nul 2>&1 | |
IF %ERRORLEVEL% == 0 GOTO START | |
echo Please run this batch as administrator |
#!/bin/bash | |
# @author Mansour Yaacoubi | |
# @filename addwifi.sh | |
# @usage sudo ./addwifi.sh "SSID" "WPA-Key" | |
# @task adds wifi to the wpa_supplicant file and reconfigures wpa_cli | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit 1 | |
else |
#!/bin/bash | |
# @author Mansour Yaacoubi | |
# @filename update-rpi.sh | |
# @task Installs new updates and specific programs | |
################# CHECK WHETHER SCRIPT IS RUNNING AS ROOT ################# | |
# Run script as root (higher privileges) | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit 1 |
#!/bin/bash | |
# @usage bash <(curl -s https://gist.githubusercontent.com/mansouryaacoubi/0582fe108f699956c677b95e24c71e9a/raw/73c7ce97257eb76a4d2c3a1b4c7243f8efdf0355/dl-tools.sh) | |
cd ~ | |
echo "download .bash_aliases" | |
wget https://gist.githubusercontent.com/mansouryaacoubi/e3454417d57858dec9273e5503132670/raw/81f0e701d9114e9a8bd6fc94a71f0d7499acb884/.bash_aliases >/dev/null 2>&1 | |
echo " create directory tools" | |
mkdir tools | |
echo " change directory" |
alias cls=clear | |
alias c=clear | |
alias x=exit | |
alias l='ls -lisah' | |
alias ld='du -h | sort -nr | head -n 10' # large directories |