Technology

Minibian – Minimal Reliability Setup

apt-get update
apt-get install nano
apt-get install mc
apt-get install -y raspi-config
raspi-config
# Expand Filesystem
# Reboot

apt-get -y upgrade
reboot

apt-get install -y rpi-update sudo
rpi-update
reboot

# for fsck.vfat fix tweak (to check and fix /boot, it’s FAT file system)
apt-get install dosfstools

# Create Default User pi
adduser pi
# Enter Password as wanted, i.e. raspberry
# Add user to default groups
usermod -a -G pi,adm,dialout,cdrom,audio,video,plugdev,games,users pi
# Add sbin Paths to pi
echo ‘export PATH=”$PATH:/sbin:/usr/sbin:usr/local/sbin”‘ >> /home/pi/.bashrc
# Add user to sudo
visudo
# Add under
# # User privilege specification
# root ALL=(ALL:ALL) ALL
pi ALL=(ALL:ALL) ALL
# Save and Exit
reboot

# Disable root login
sudo passwd -l root

apt-get install localepurge
localepurge

nano /etc/default/rcS
# delete files in /tmp during boot older than x days.
# ‘0’ means always, -1 or ‘infinite’ disables the feature
TMPTIME=0
# automatically repair with inconsistencies during boot
FSCKFIX=yes

nano /etc/rc.local
# automatically check filesystems every boot
touch /forcefsck
exit 0

 

 

Reference : the web..

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s