sudo apt-get install screen
sudo apt-get install vim
sudo apt-get install openjdk-8-jdk
sudo apt-get install openjdk-8-jre
-
Use
df -hcommand to check the disk and free space on the system -
Use
lsblkcommand to show the hard disk partition status and partition -
Use
sudo fdisk -lto view details of the hard drive and volume -
Use
sudo fdisk /dev/sdato edit the external hard drive, first d and then w to delete the partition table and disk on the hard disk -
Once again, use
sudo fdisk /dev/sdato build disk partition, first type n, next type p, and type 1, then press enter twice, if it showscontains a ext4 signaturemessage, just type Y to countine, finally type w to build partition on the hard disk -
Use
sudo mkfs.ext4 /dev/sda1to format the partition into Ext4 -
Use
sudo mkdir /media/hdto create a folder, then the external hard drive will be mounted here -
Use
ls -lh /dev/disk/by-uuidcan see the UUID of the hard disk and partition -
Use
sudo blkid /dev/sda1to list UUIDs of external hard drive partitions -
Remember the UUID of external hard drive, then use
sudo vim /etc/fstabto edit fstab to let raspberry pi automatically mount the external hard drive after bootyou will see this:
then press
i, the-- INSERT --will display at buttom, it means now this file can be edittype
UUID=YOURUUID /media/hd ext4 defaults 0 2then press
ESC, you will see that-- INSERT --disappearnow type
:wq, then press enter -
Use
sudo rebootto reboot the device, and then usedf -hto check if the external hard drive has been mounted -
Now use
sudo mkdir /media/hd/hathto create a folder, and usesudo chmod 777 /media/hd/hathto give it permission -
Use
cd /media/hd/hathto go tohathfolder, then usesudo wget https://repo.e-hentai.org/hath/HentaiAtHome_1.4.2.zipto download the H@H -
Use
screento start terminal in backgroundyou will see this
just press enter to start




























