NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

#!/bin/bash

## A script to install Funtoo Linux on a computer.

####---------------------------------------------####
echo We will now start installing Funtoo Linux on this computer!

echo We will start by partitioning the hard disk.
cfdisk

echo Now, we will create the filesystems.
echo Please enter the root partition. Eg. /dev/sda?
read rootpartition
mkfs.ext4 $rootpartition
echo Please enter the swap partition. Eg. /dev/sda?
read swap-partition
mkswap $swap-partition
swapon $swap-partition

echo It is time to mount the filesystems.
mkdir /mnt/funtoo
mount $rootpartition /mnt/funtoo

cd /mnt/funtoo
echo Now, we will download the stage 3 file.
wget http://ftp.osuosl.org/pub/funtoo/funtoo-current/x86-64bit/amd64-piledriver/2016-03-14/stage3-amd64-piledriver-funtoo-current-2016-03-14.tar.xz

echo We will extract the downloaded file.
tar xJpfv stage3-latest.tar.xz

echo It is time to chroot into Funtoo linux.
mount --bind /proc proc
mount --bind /dev dev
cp /etc/resolv.conf etc
env -i HOME=/root TERM=$TERM chroot . bash -l
export PS1="(chroot) $PS1"

echo Downloading the portage tree...
emerge --sync

echo Time to configure the system.
nano -w /etc/fstab
ln -sf /usr/share/zoneinfo/Europe/Lisbon /etc/localtime
nano -w /etc/portage/make.conf
nano -w /etc/conf.d/hwclock
eselect profile replace 7 8
nano -w /etc/conf.d/hostname

echo Time to install the kernel.
echo "sys-kernel/debian-sources binary" >> /etc/portage/package.use
emerge debian-sources

echo Installing a bootloader...
emerge boot-update
nano -w /etc/boot.conf
grub-install --no-floppy /dev/sda
boot-update

echo Configure the network...
rc-update add dhcpcd default

echo Time to set the root password.
passwd

echo We will make sure the system time is accurate.
emerge chrony
rc-update add chronyd default

echo server time.apple.com > /etc/chrony/chrony.conf
echo maxupdateskew 100 >> /etc/chrony/chrony.conf
echo driftfile /etc/chrony/chrony.drift >> /etc/chrony/chrony.conf
echo keyfile /etc/chrony/chrony.keys >> /etc/chrony/chrony.conf
echo commandkey 1 >> /etc/chrony/chrony.conf
echo dumponexit >> /etc/chrony/chrony.conf
echo dumpdir /var/log/chrony >> /etc/chrony/chrony.conf
echo initstepslew 10 time.apple.com >> /etc/chrony/chrony.conf
echo logdir /var/log/chrony >> /etc/chrony/chrony.conf
echo log measurements statistics tracking >> /etc/chrony/chrony.conf
echo logchange 0.5 >> /etc/chrony/chrony.conf
echo mailonchange [email protected] 0.5 >> /etc/chrony/chrony.conf
echo rtcfile /etc/chrony/chrony.rtc >> /etc/chrony/chrony.conf
echo rtconutc >> /etc/chrony/chrony.conf
echo sched_priority 1 >> /etc/chrony/chrony.conf
echo lock_all >> /etc/chrony/chrony.conf

echo rc_need=dhcpcd >> /etc/conf.d/chronyd


echo Time to update the system.
emerge --sync
emerge -auDNV world

echo We will now install useful apps.
emerge metalog
rc-update add metalog default
emerge fcron
rc-update add fcron default
emerge sudo glances
visudo

echo Time to add a normal user.
echo Enter your username.
read username
useradd -m -g users -G audio,video,cdrom,wheel $username
echo Enter your password.
passwd $username

echo We will now install a graphical environment.
echo 'Do you have a pointing device? Enter Y/N.'
read answer

if [[ $answer == "Y" || $answer == "y" ]]
then
echo So you have a pointing device.
echo 'VIDEO_CARDS="nouveau"' >> /etc/portage/make.conf
echo 'INPUT_DEVICES="evdev synaptics"' >> /etc/portage/make.conf
else
echo So you did not have a pointing device.
echo 'VIDEO_CARDS="nouveau"' >> /etc/portage/make.conf
echo 'INPUT_DEVICES="evdev"' >> /etc/portage/make.conf
fi

emerge xorg-x11
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.