import { OperatingSystem } from '@/domain/OperatingSystem';
import { InstructionsBuilder } from './InstructionsBuilder';
export class LinuxInstructionsBuilder extends InstructionsBuilder {
constructor() {
super(OperatingSystem.Linux);
super
.withStep(() => ({
action: {
instruction: 'Download the file.',
details: 'You should have already been prompted to save the script file.'
+ '
If this was not the case or you did not save the script when prompted,'
+ '
please try to download your script file again.',
},
}))
.withStep(() => ({
action: {
instruction: 'Open terminal.',
details:
'Opening terminal changes based on the distro you run.'
+ '
You may search for "Terminal" in your application launcher to find it.'
+ '
'
+ '
Alternatively use terminal shortcut for your distro if it has one by default:'
+ '
Ctrl-Alt-T: Ubuntu, CentOS, Linux Mint, Elementary OS, ubermix, Kali…Super-T: Pop!_OS…Alt-T: Parrot OS…Ctrl-Alt-Insert: Bodhi Linux…enter/return key after running the command.'
+ 'Downloads to path where the file is downloaded.'
+ 'cd will change the current folder.~ is the user home directory.enter/return key after running the command.enter/return key after typing your password.'
+ '