Linux: July 2018 Archives

Shadowsocks server

Vote 0 Votes

pip install shadowsocks

create /etc/shadowsocks.json

ssserver -c /etc/shadowsocks.json -d start

cd /etc/yum.repos.d

yum -y install httpd

Linux mount disk image

Vote 0 Votes

若要 mount 一個以 dd dump 出來的 image
(例如 dd if=/dev/sda of=disk.img)
先用 fdisk -l disk.img 看一下 Sector size 是多少, 通常是 512
要 mount 那一個分割區, 就用 offset 參數指定 512*Start 位置
例如 partition 1 Start 2048, offset 就是 512*2048 = 1048576
mount -o loop,offset=1048576 disk.img /mnt

About this Archive

This page is an archive of entries in the Linux category from July 2018.

Linux: April 2018 is the previous archive.

Linux: November 2018 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Linux: Monthly Archives

Monthly Archives