In addition to the fresh install of my B3 I have chosen to put /home underneath / and no longer in a dedicated partition as my /home will stay rather small, it's not that I'm using my B3 as my desktop.
The "large" partition (originally /home) has been renamed /data
To do so:
Code: Select all
root@b3:~# mkdir /data
root@b3:~# nano /etc/fstab
root@b3:~# cat /etc/fstab
root@b3:~# reboot
Reconnect back to your B3
Code: Select all
root@b3:~# cp -r /data/* /home
root@b3:~# exit
Reconnect back to your B3
These next few steps might be optional if your system is already running for a while.
If you start from a clean setup after completely re-installing your B3,
do a quick crosscheck to see if everything is in place.
Add user + set password:
Code: Select all
root@b3:~# useradd -m newuser
root@b3:~# passwd newuser
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Change default root password:
edit /etc/passwd + added /bin/bash at the end of the newly created user:
Code: Select all
root@b3:~# nano /etc/passwd
root@b3:~# cat /etc/passwd
**SNIP**
newuser:x:1001:1001::/home/newuser:/bin/bash
Test newly created user login.
Do this before deleting default user excito, as by default you are not able to
login over ssh with user root!! If login over ssh works with the new user, continue
Add b3 into /etc/hosts:
Code: Select all
root@b3:~# nano /etc/hosts
root@b3:~# cat /etc/hosts
127.0.0.1 localhost b3
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Delete default user excito:
Code: Select all
root@b3:~# passwd -l excito
passwd: password expiry information changed.
root@b3:~# userdel -r excito
userdel: excito mail spool (/var/mail/excito) not found
Set locales and timezone:
Code: Select all
root@b3:~# dpkg-reconfigure locales
root@b3:~# dpkg-reconfigure tzdata
Get latest updates:
Code: Select all
root@b3:~# apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://deb.debian.org/debian stretch Release [118 kB]
**SNIP**
Get:9 http://deb.debian.org/debian stretch/main Translation-en [5394 kB]
Get:10 http://repo.excito.org stretch/main armel Packages [1702 B]
Fetched 13.0 MB in 25s (511 kB/s)
Reading package lists... Done
And upgrade:
Install sudo:
Install + config ddclient (for dyndns and the like):
=> If you have a fixed IP, this can off course be skipped
Code: Select all
root@b3:~# apt-get install ddclient
Install ntp:
Install net-tools (ifconfig, ...):
Code: Select all
root@b3:~# apt-get install net-tools
Install openssl:
Code: Select all
root@b3:~# apt-get install openssl
Optional: Install tcpdump
I would only do this if in the end, nothing is working and you are out of clues why.
Code: Select all
root@b3:~# apt-get install tcpdump
Reboot:
And off course login...
Cleanup:
Code: Select all
root@b3:~# apt-get autoremove --purge
Ready for config!