mirror of
https://github.com/RasppleII/a2cloud.git
synced 2024-12-22 13:30:27 +00:00
49fa865ec5
This is similar to what's already done in A2SERVER, but there's both more and less of it. Fewer scripts run during the installation phase (generally just setup), but there's a lot more tools and pieces that are downloaded. This is complicated somewhat by the single setup script making it hard to work on just one piece at a time. We'll begin addressing that soon.
84 lines
2.7 KiB
Bash
Executable File
84 lines
2.7 KiB
Bash
Executable File
#! /bin/bash
|
|
# vim: set tabstop=4 shiftwidth=4 noexpandtab filetype=sh:
|
|
|
|
alias a2cloud-setup='wget -qO /tmp/a2cloud-setup ivanx.com/a2cloud/setup/; source /tmp/a2cloud-setup'
|
|
alias a2cloud-help='(IFS=""; while read thisLine; do [[ ${#thisLine} -eq 0 ]] && echo || echo "$(tput bold)${thisLine%% *}$(tput sgr0) ${thisLine#* }"; done < /usr/local/etc/a2cloud-help.txt | more)'
|
|
alias a2cloud-version='cat /usr/local/etc/A2CLOUD-version'
|
|
alias a2cloud-update='a2cloud-setup'
|
|
|
|
alias system-shutdown='sudo shutdown -h now'
|
|
alias system-restart='sudo shutdown -r now'
|
|
|
|
|
|
alias raspi-config='[[ -f /usr/bin/raspi-config ]] && sudo /usr/bin/raspi-config || echo "raspi-config not found. Are you using a Raspberry Pi with Raspbian?"'
|
|
alias appleiipi-update="sudo apt-get -y update && sudo apt-get -y --force-yes install a2pi apple2user gsport"
|
|
alias raspbian-update='wget -qO /tmp/raspbian-update ivanx.com/a2cloud/setup/raspbian-update.txt; source /tmp/raspbian-update'
|
|
alias rasppleii-update='raspbian-update a2cloud a2server'
|
|
|
|
|
|
alias welcome-message-edit='sudo nano /etc/motd'
|
|
|
|
alias showip='ifconfig eth0 | grep "inet\ addr" | cut -d: -f2 | cut -d" " -f1'
|
|
alias showmac='ifconfig eth0 | grep "HWaddr" | cut -dH -f2 | cut -c7-23'
|
|
alias showip-wifi='ifconfig wlan0 | grep "inet\ addr" | cut -d: -f2 | cut -d" " -f1'
|
|
alias showmac-wifi='ifconfig wlan0 | grep "HWaddr" | cut -dH -f2 | cut -c7-23'
|
|
alias ifreset='sudo rm /etc/udev/rules.d/70-persistent-net.rules; echo Interfaces removed. You should system-restart now.'
|
|
|
|
alias adtpro-stop='sudo pkill -f [A]DTPro'
|
|
|
|
|
|
alias adtpro-restart='sudo pkill -f [A]DTPro; while [[ $(ps aux | grep [A]DTPro) ]]; do sleep 1; done; adtpro-start'
|
|
|
|
alias term='source term'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
alias vsd1='source /usr/local/bin/vsd -d1'
|
|
alias vsd2='source /usr/local/bin/vsd -d2'
|
|
forfloppy () { [[ $1 ]] && { mv "$1" /usr/local/adtpro/disks && echo "moved $1 to /usr/local/adtpro/disks" || echo "Unsuccessful. $1 was not moved."; } || echo "Usage: forfloppy imageFileName"; }
|
|
|
|
alias vsdsync='adtpro-restart'
|
|
|
|
alias nulib=nulib2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
alias a2cat='acmd -l'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VSD1=$(readlink /usr/local/adtpro/disks/Virtual.po)
|
|
VSD2=$(readlink /usr/local/adtpro/disks/Virtual2.po)
|
|
ADTDISKS=/usr/local/adtpro/disks; A2DISKS=/usr/local/adtpro/disks
|
|
A2CLOUD=/usr/local/adtpro/disks/A2CLOUD.HDV
|
|
GSDISKS=/usr/local/share/gsdisks
|
|
GSHD=/usr/local/share/gsdisks/gsoshd.hdv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ttytter () { ( ansi=; seven=; [[ $(grep ttyUSB <<< $myTTY) || $(grep ttyAMA <<< $myTTY) ]] && { seven="-seven"; [[ $TERM=="ansi" || $TERM=="pcansi" ]] && ansi="-ansi"; }; [[ -f /usr/bin/ttytter ]] && /usr/bin/ttytter -ssl $seven $ansi $@ || /usr/local/bin/ttytter -ssl $seven $ansi $@ ); }
|
|
|
|
|
|
alias raspple-update='rasppleii-update'
|
|
alias rasappleii-update='rasppleii-update'
|
|
alias rasapple-update='rasppleii-update'
|