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 -h
command to check the disk and free space on the system -
Use
lsblk
command to show the hard disk partition status and partition -
Use
sudo fdisk -l
to view details of the hard drive and volume -
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 -
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 showscontains a ext4 signature
message, just type Y to countine, finally type w to build partition on the hard disk -
Use
sudo mkfs.ext4 /dev/sda1
to format the partition into Ext4 -
Use
sudo mkdir /media/hd
to create a folder, then the external hard drive will be mounted here -
Use
ls -lh /dev/disk/by-uuid
can see the UUID of the hard disk and partition -
Use
sudo blkid /dev/sda1
to list UUIDs of external hard drive partitions -
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 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 2
then press
ESC
, you will see that-- INSERT --
disappearnow type
:wq
, then press enter -
Use
sudo reboot
to reboot the device, and then usedf -h
to check if the external hard drive has been mounted -
Now use
sudo mkdir /media/hd/hath
to create a folder, and usesudo chmod 777 /media/hd/hath
to give it permission -
Use
cd /media/hd/hath
to go tohath
folder, then usesudo wget https://repo.e-hentai.org/hath/HentaiAtHome_1.4.2.zip
to download the H@H -
Use
screen
to start terminal in backgroundyou will see this
just press enter to start