notes for myself a gist I forked for android emulator https://gist.github.com/c4pt000/b0a362b83823e3a89ad8aaddcbdcbfe7
where /opt/android/android-sdk is path to CLI android-sdk
export PATH=$PATH:/opt/android/android-sdk/tools/bin
export ANDROID_SDK_ROOT=/opt/android/android-sdk
export ANDROID_HOME=/opt/android/android-sdk
export ANDROID_HOME=/opt/android/android-sdk
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin
sdkmanager --sdk_root=${ANDROID_HOME} --install "platforms;android-29"
sdkmanager --sdk_root=${ANDROID_HOME} --install "system-images;android-29;google_apis_playstore;x86_64"
export PATH=$PATH:/usr/bin/gradle-6.5/bin:/opt/android/android-sdk/tools/bin:/opt/android/android-sdk/platform-tools
export ANDROID_SDK_ROOT=/opt/android/android-sdk
avdmanager --verbose create avd --force --name generic-29-x86 --package "system-images;android-29;default;x86"
x86_64 emulator 29+ for experimentation with arm apk support via adb install *apk
#/root/.bashrc alias
alias EMULATOR='emulator @Nexus-29-x86_64 -no-boot-anim -netdelay none -no-snapshot -wipe-data -skin 768x1280 &'
sdkmanager --install "system-images;android-29;google_apis_playstore;x86_64"
#support for arm with the x86 emulator with version 29+ and higher?
avdmanager --verbose create avd --force --name Nexus-29-x86_64 --package "system-images;android-29;google_apis_playstore;x86_64"
ARM64
avdmanager --verbose create avd --force --name Nexus-29-arm64 --package "system-images;android-29;google_apis_playstore;arm64-v8a"
/root/.bashrc
alias EMULATOR='emulator @Nexus-29-x86_64 -no-boot-anim -netdelay none -no-snapshot -wipe-data -skin 768x1280 &'
or alternatively /usr/bin/EMULATOR
# gpu pipeline acceleration
# /opt/android/android-sdk/emulator/emulator @Nexus-29-x86_64 -gpu on &
/opt/android/android-sdk/emulator/emulator @Nexus-29-x86_64 &
/usr/bin/EMULATOR-arm64
# gpu pipeline acceleration
# /opt/android/android-sdk/emulator/emulator @Nexus-29-arm64 -gpu on &
/opt/android/android-sdk/emulator/emulator @Nexus-29-arm64 &
added java8 and java11 fast switching scripts for ubuntu/debian based systems
added two files for /usr/bin requires both java8 and java11 installed for fast switching between versions
wget https://raw.githubusercontent.com/c4pt000/Aqua-Term/master/java11-switch-on
wget https://raw.githubusercontent.com/c4pt000/Aqua-Term/master/java8-switch-on
chmod +x /usr/bin/java11-switch-on
chmod +x /usr/bin/java8-switch-on
#java 11 switch
rm -rf /etc/alternatives/javac
rm -rf /etc/alternatives/java
ln -s /usr/lib/jvm/java-11-openjdk-11.0.11.0.9-4.fc34.x86_64/bin/java /etc/alternatives/java
ln -s /usr/lib/jvm/java-11-openjdk-11.0.11.0.9-4.fc34.x86_64/bin/javac /etc/alternatives/javac
java -version
javac -version
#!/bin/bash
#yum install java-1.8.0
rm -rf /etc/alternatives/javac
rm -rf /etc/alternatives/java
ln -s /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-4.fc34.x86_64/bin/java /etc/alternatives/java
ln -s /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-4.fc34.x86_64/bin/javac /etc/alternatives/javac
java -version
javac -version
- added MouseAntiLock.java (based on pre-existing sources, creates a tray icon of the Redhat logo) a simple program that disables the screensaver from starting by randomly repositioning the mouse pointer in different locations randomly
javac MouseAntiLock.java
java MouseAntiLock
cairo-dock brit theme mod
as cairo-dock
where "user" is your user root or otherwise
chown -R user:user /home/user/.config/cairo-dock
chmod -R 755 /home/user/.config/cairo-dock
place in /home/user/.config/
------------------------------------
cd /home/user/.config
wget https://github.com/c4pt000/Aqua-Term/raw/master/cairo-dock.tar.gz
tar -xvf cairo-dock.tar.gz
adjusting window title bar minimize, maximize, close for compiz users or macro users in general (mate desktop)
requires dconf-editor (gtk-window-decorator --replace &)
adjust dconf-editor of current logged in user to adjust title bar button size, requires killilng gtk-window-decorator and restarting gtk-window-decorator with --replace
dconf-editor
ps ax | grep gtk-window-decorator
kill -9 (processid_of_gtk_window_decorator)
gtk-window-decorator --replace &
-
before running or using cpprogress_on or cpprogress_off to disable or enable cp with progress bar ,
-
system copy command "cp" should be renamed to cp.orig and copy command from coreutils modified "cp" should be renamed to cp.mod
-
for certain system functions copy command "cp" requires extended xattr bits
-
requires renaming /usr/bin/cp to /usr/bin/cp.orig and "modified" cp from coreutils from cp to /usr/bin/cp.mod
-
the scripts cpprogress_on and cpprogress_off should be placed into /usr/bin/ as chmod +x to allow enable or disable of graphical cp -g progress bar modified copy command
-
from coreutils in order to run commands such as dracut -f or when rpm install scripts require xattr copy command bits.
background animation is komorebi
- update 09-11-19
* recompile "cp" with progress bar with "xattr" enabled for extended attributes or use standard copy to avoid errors via systems using 'dracut' and other functions outside of Makefile compiling, along with initramfs errors from missing extended attributes, -> "xattr"
wget https://github.com/Swordfish90/cool-retro-term/releases/download/1.1.1/Cool-Retro-Term-1.1.1-x86_64.AppImage
chmod a+x Cool-Retro-Term-1.1.1-x86_64.AppImage
./Cool-Retro-Term-1.1.1-x86_64.AppImage
* adjust .bashrc using bashrc to wrap terminal to parrotOS sec theme + cool-retro-term theme + secure functions
sudo cp bashrc /root/.bashrc
and or
cp bashrc /home/USER/.bashrc
source /root/.bashrc
and or
source /home/USER/.bashrc
- in ~/.bashrc
- alias rm='rm -drflvz'
added stability? to delete files and folders with "secure-rm" -> srm
macOS
brew cask install cool-retro-term
(not seen with CentOS7)
- coreutils patch for cp large files have malloc errors during copy causing "cool-retro-term" to overflow
- see coreutils-8.21 patch
echo 'export MALLOC_CHECK=3' >> /root/.bashrc
or
echo 'export MALLOC_CHECK=3' >> /home/"user"/.bashrc
demo of terminal theme actively running with https://github.com/c4pt000/Aqua-Term/blob/master/aqua_term-bright.json
https://github.com/c4pt000/Aqua-Term/releases/download/term-demo/aqua-term-demo.mkv
*** NOT RESPONSIBLE FOR ANY FILE SYSTEM DAMAGE FROM USING THIS MOD + THEME, NOT RESPONSIBLE IF YOUR BOSS FIRES YOU FOR RUNNING THIS WHILE YOU WORK, OR ANY PSYCHOLOGIST OR PSYCHIATRIST BILLS OR ANY OTHER HAZARDS YOU MIGHT INCUR
issues with delete after running .bashrc with "source /root/.bashrc"
seems as though when deleteing folders with a trailing / , the rm experiences an inconsistency,
e.g.
cp dir dir.edit
rm -r dir.edit/
cp dir dir.edit
rm -r dir.edit
cool-retro-terminal theme and other themed files, including linux secure delete and coreutils patch
gcc gcc-c++ automake usual Development Tools or C/C++ building files
cd /opt git clone https://github.com/c4pt00/Aqua-Term cd /opt/Aqua-Term
cd coreutils-8.21
./configure
make -j16 #where -j16 is 16 for processor cores for concurrency
cd src
sudo -i
cp -rf cp /usr/bin/cp.mod
cp -rf mv /usr/bin/mv.mod
mv /usr/bin/cp /usr/bin/cp.system.orig
mv /usr/bin/mv /usr/bin/mv.system.orig
cp -rf cp /usr/bin/cp
cp -rf mv /usr/bin/mv
tar -xvf secure-delete.tar.gz
cd secure-delete
make
#concurrency -j breaks build process here
cp srm /usr/bin/
cp smem /usr/bin/
run "cool-retro-term"
import aqua-term.json profile
note: it's possible to adjust curvature in profile settings
with dpkg installed
cp parrot-themes_2.6+parrot6_all.deb /
cp maia-parrot-edit.tar.gz /
cd /
dpkg -x parrot-themes_2.6+parrot6_all.deb /
tar -xvf maia-parrot-edit.tar.gz
mv /usr/share/icons/maia /usr/share/icons/maia.orig
cp -rf maia /usr/share/icons/maia
cd /opt/Aqua-Term
sudo cp -rf gnome-themes_2.14.3-1_all.deb /
cd /
sudo dpkg -x gnome-themes_2.14.3-1_all.deb /