This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dev/mmcblk0p1 /boot vfat defaults 0 2 | |
PARTUUID=0dac4cfa-ecf8-4927-9c86-b8b30e54ddb9 / ext4 defaults,noatime 0 1 | |
# a swapfile is not a swap partition, no line here | |
# use dphys-swapfile swap[on|off] for that |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc /proc proc defaults 0 0 | |
PARTUUID=738a4d67-01 /boot vfat defaults 0 2 | |
PARTUUID=738a4d67-02 / ext4 defaults,noatime 0 1 | |
# a swapfile is not a swap partition, no line here | |
# use dphys-swapfile swap[on|off] for that |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi:~ $ ls -l /dev/disk/by-partuuid/ | |
total 0 | |
lrwxrwxrwx 1 root root 10 Mar 22 12:15 0dac4cfa-ecf8-4927-9c86-b8b30e54ddb9 -> ../../sda1 | |
lrwxrwxrwx 1 root root 15 Feb 13 16:09 738a4d67-01 -> ../../mmcblk0p1 | |
lrwxrwxrwx 1 root root 15 Feb 13 16:10 738a4d67-02 -> ../../mmcblk0p2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi:~ $ sudo e2fsck -f /dev/sda1 | |
e2fsck 1.44.5 (15-Dec-2018) | |
rootfs: recovering journal | |
Pass 1: Checking inodes, blocks, and sizes | |
Pass 2: Checking directory structure | |
Pass 3: Checking directory connectivity | |
Pass 4: Checking reference counts | |
Pass 5: Checking group summary information | |
Free blocks count wrong (3394406, counted=3353763). | |
Fix<y>? y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi:~ $ sudo fdisk -l | |
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors | |
Units: sectors of 1 * 512 = 512 bytes | |
Sector size (logical/physical): 512 bytes / 4096 bytes | |
I/O size (minimum/optimal): 4096 bytes / 4096 bytes | |
(中略) | |
Disk /dev/mmcblk0: 14.5 GiB, 15582887936 bytes, 30435328 sectors | |
Units: sectors of 1 * 512 = 512 bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi:~ $ sudo parted /dev/sda | |
GNU Parted 3.2 | |
Using /dev/sda | |
Welcome to GNU Parted! Type 'help' to view a list of commands. | |
(parted) mklabel gpt | |
Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you want to continue? | |
Yes/No? y | |
(parted) mkpart primary ext4 0% 100% | |
(parted) p | |
Model: SanDisk Ultra Fit (scsi) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi:~ $ sudo fdisk -l | |
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors | |
Units: sectors of 1 * 512 = 512 bytes | |
Sector size (logical/physical): 512 bytes / 4096 bytes | |
I/O size (minimum/optimal): 4096 bytes / 4096 bytes | |
(中略) | |
Disk /dev/mmcblk0: 14.5 GiB, 15582887936 bytes, 30435328 sectors | |
Units: sectors of 1 * 512 = 512 bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/usr/local/vpnserver/vpnserver start | |
#SoftEther起動に時間がかかって、tapが取得できない問題の対応 | |
sleep 5 | |
tap=$(/sbin/ifconfig -a| awk '$1 ~ /^tap/ {print $1}') | |
/sbin/brctl addif br0 $tap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/crontab: system-wide crontab | |
# Unlike any other crontab you don't have to run the `crontab' | |
# command to install the new version when you edit this file | |
# and files in /etc/cron.d. These files also have username fields, | |
# that none of the other crontabs do. | |
SHELL=/bin/sh | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/pi/dotnet | |
# Example of job definition: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=SoftEther VPN Server | |
After=network.target | |
[Service] | |
Type=forking | |
ExecStart=/usr/local/vpnserver/vpnserver_start | |
ExecStop=/usr/local/vpnserver/vpnserver stop | |
KillMode=process | |
Restart=on-failure |