Skip to content

Instantly share code, notes, and snippets.

@carry0987
Last active July 24, 2018 19:34
Show Gist options
  • Save carry0987/c4e0572d7b69e9b1cd0b39e6b5d3db69 to your computer and use it in GitHub Desktop.
Save carry0987/c4e0572d7b69e9b1cd0b39e6b5d3db69 to your computer and use it in GitHub Desktop.
Raspberry Pi 3B+ Run HentaiAtHome On Portable External Hard Drive

Raspberry Pi 3B+ Run HentaiAtHome On Portable External Hard Drive

Install Required Tools

sudo apt-get install screen

sudo apt-get install vim

sudo apt-get install openjdk-8-jdk

sudo apt-get install openjdk-8-jre

Auto Mount External Hard Drive

  1. Use df -h command to check the disk and free space on the system

  2. Use lsblk command to show the hard disk partition status and partition

  3. Use sudo fdisk -l to view details of the hard drive and volume

    The /dev/sda is the external dard drive

  4. Use sudo fdisk /dev/sda to edit the external hard drive, first d and then w to delete the partition table and disk on the hard disk

  5. Once again, use sudo fdisk /dev/sda to build disk partition, first type n, next type p, and type 1, then press enter twice, if it shows contains a ext4 signature message, just type Y to countine, finally type w to build partition on the hard disk

  6. Use sudo mkfs.ext4 /dev/sda1 to format the partition into Ext4

  7. Use sudo mkdir /media/hd to create a folder, then the external hard drive will be mounted here

  8. Use sudo chmod 777 /media/hd to give it permission

  9. Use ls -lh /dev/disk/by-uuid can see the UUID of the hard disk and partition

  10. Use sudo blkid /dev/sda1 to list UUIDs of external hard drive partitions

  11. Remember the UUID of external hard drive, then use sudo vim /etc/fstab to edit fstab to let raspberry pi automatically mount the external hard drive after boot

    you will see this: then press i, the -- INSERT -- will display at buttom, it means now this file can be edit type UUID=YOURUUID /media/hd ext4 defaults 0 2 then press ESC, you will see that -- INSERT -- disappear now type :wq, then press enter

  12. Use sudo reboot to reboot the device, and then use df -h to check if the external hard drive has been mounted

  13. Now use sudo mkdir /media/hd/hath to create a folder, and use sudo chmod 777 /media/hd/hath to give it permission

  14. Use cd /media/hd/hath to go to hath folder, then use sudo wget https://repo.e-hentai.org/hath/HentaiAtHome_1.4.2.zip to download the H@H

  15. Use sudo unzip HentaiAtHome_1.4.2.zip to unzip H@H files

  16. Use screen to start terminal in background you will see this just press enter to start

  17. Use sudo java -jar HentaiAtHome.jar to start H@H

  18. Enter your Client ID and Client Key

  19. Running

  20. Now press Ctrl + A and then press D to detach H@H

  21. Finish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment