在装机之前考虑的是E3 1220v2 + B75主板,从二手那里买到了,但是死活我点不亮机器,就退掉了,然直接淘宝买的新的主板
硬件
CPU:G2020 15元(闲鱼买的,自带核显)
主板:华南金牌B75 Plus 280元 (淘宝买的,带风扇、硅脂、硬盘线等)
内存:威刚DDR3 1333 4G 50元 (50块钱,卖CPU那人卖我的)
电源:450W的杂牌电源 20元 (之前闲鱼收的)
机箱:雷匠静默者 25元 (用京豆从狗东买的,做工真差)
显卡:GF9800GT 18.8元 (闲鱼买的,没用上)
硬盘:240G SSD 0元 之前闲置的
总计:403.8元
系统安装及配置
我选择的装的ubuntu-server,安装也都是命令行操作的
开启ROOT登录
习惯了开启root登录,所以就上去就操作了一把
sudo passwd root
#更改玩之后
echo "PermitRootLogin yes" >> /ect/ssh/sshd_config
更改结束后,重启sshd服务
service restart sshd
更换为阿里云的源
由于官方的源比较慢,直接换为阿里云的源了。
直接找到source.list,然后备份一下
cp /etc/apt/source.list /etc/apt/source.list.bak
我使用的是FinalShell,然后使用了root登录的,打开source.list进行搜索Ubuntu的名称替换为阿里云的域名 mirrors.aliyun.com
,然后保存,之后再更新一下源
sudo apt-get update
挂载NTFS硬盘
首先安装挂载NTFS的库
sudo apt-get install ntfs-3g
执行下面的命令,找到挂载的硬盘
fdisk -l
然后列出来了硬盘信息
Disk /dev/loop0: 55.45 MiB, 58130432 bytes, 113536 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop1: 32.3 MiB, 33865728 bytes, 66144 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop2: 70.32 MiB, 73728000 bytes, 144000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 223.58 GiB, 240057409536 bytes, 468862128 sectors
Disk model: UNIC2 S100-240
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D94126B9-925E-4EE1-A080-A3E2B36491E6
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 2101247 2097152 1G Linux filesystem
/dev/sda3 2101248 468858879 466757632 222.6G Linux filesystem
Disk /dev/sdb: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10JPCX-24U
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: A037B6C9-4886-420C-8643-76D8E820D9E7
Device Start End Sectors Size Type
/dev/sdb1 2048 1953523711 1953521664 931.5G Microsoft basic data
Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 222.58 GiB, 238978859008 bytes, 466755584 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
配置到/etc/fstab中,下面是我的文件内容
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/ubuntu-vg/ubuntu-lv during curtin installation
/dev/disk/by-id/dm-uuid-LVM-F1mbipVZ4lTBcYif1JZeTW7LQf1SYVi38EyN9C7fxNhFf11Zuf0UnYp6fe82AjXf / ext4 defaults 0 1
# /boot was on /dev/sda2 during curtin installation
/dev/disk/by-uuid/e5054c83-31aa-467a-9f1a-ce8b1d626fcc /boot ext4 defaults 0 1
/swap.img none swap sw 0 0
#这里是我的配置信息
/dev/sdb1 /nas ntfs-3g defaults,nofail,noexec,uid=1001,gid=1001,umask=0022 0 0
然后安装frp内网穿透,安装宝塔、NodeJS、Java、docker等安装我要用的应用
1 条评论
机箱25元666666