Lets do some shell scripting!

Ғылым және технология

In this video, we'll show you how to create a powerful bash script for automatically partitioning a drive using the cfdisk utility. We'll guide you through every step, from setting up the script to executing it safely and efficiently. Say goodbye to manual partitioning and hello to a faster, more convenient way to manage your storage. Watch now and simplify your drive management with our easy-to-follow tutorial!
Gitlab
gitlab.com/jped
Github
github.com/jdpedersen1
Email Me At
jake@jpedmedia.com
My Website
jpedmedia.com
Follow Me On Odysee
odysee.com/$/invite/@Jakeatli...
$100 to test a server through Vultr
www.vultr.com/?ref=9174735-8H
Support
Brave users can support me with BAT on my website or on my youtube channel

Пікірлер: 47

  • @lightninguru26
    @lightninguru268 күн бұрын

    This is my style of learning. Thank you.

  • @tuxtuxgo
    @tuxtuxgo8 ай бұрын

    Keep on doing scripting videos. I like them a lot. Great script btw. Regarding printf, you could incorporate new lines in just one command, e.g. printf "%s " "Your Text Here" would first print the string (%s) followed by a new line ( ). Or just use echo. Regarding the read commands: if you have a lot of similar read prompts, you could make a function, e.g. question() { read -rp "$1 " tmp; echo $tmp; } so you can specify the prompt and the variable afterwards, e.g. efipart=$(question "What size efi partition...?:"); rootpart=$(question "What size...")... When you find yourself to have a huge number of such similar questions, this could make the process a little easier. I tend to echo the question and have a function which contains " " as prompt: ", e.g. echo -n "choose something:"; var=$(question).

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Thanks for the tips, I enjoy them as well so I will be trying to keep them a staple on my channel.

  • @zhenya2055
    @zhenya20558 ай бұрын

    Awesome format! Looking forward to future episodes!

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Thanks, hopefully I don't disappoint

  • @AlexDBall
    @AlexDBall8 ай бұрын

    Great video! Keep them coming! :)

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Thank you!

  • @Miguel_GM
    @Miguel_GM8 ай бұрын

    When you check for sfdisk, after the "please install sfdisk" message I would add an "exit 1" , since if sfdisk is not installed it's going to give you error afterwards. And I also would use " " in the printf at the end of the line, like this: "Bla bla bla bla " instead of creating just a "printf " "" to create a new line, but thats just my OCD :D Looking forward to watching the next video ;)

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    I agree, there is some debugging and optimization to do, but that is for another video. Thanks for watching and for your feedback I always appreciate it.

  • @vedantmatanhelia1016
    @vedantmatanhelia10168 ай бұрын

    This is something I would watch even after being forced to use windows

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Glad you enjoyed it.

  • @anon_y_mousse
    @anon_y_mousse8 ай бұрын

    One thing to consider, is there are a number of people that like to have /home on a second drive. With my system I've got a .5TB main drive and a 1TB secondary drive for /home.

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Good point, that may take a little work but I will look into that. Thanks!

  • @jimrakel418
    @jimrakel4188 ай бұрын

    Thanks for the video and a great idea. Can't wait to see more on this project!

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    You're very welcome, this will be a longer project but hopefully it will be as useful as I think it will.

  • @wyfyj
    @wyfyj8 ай бұрын

    And I got this notification! But not the last one. Weird. Thanks for the content Jake! Your Bash knowledge is appreciated

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Glad it is notifying again, and always happy to share.

  • @itsfish8672
    @itsfish86728 ай бұрын

    Sweet vid Jake.

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Thanks!

  • @tambuchalinux
    @tambuchalinux8 ай бұрын

    Nice one, Jake. I'm interested to see the completed project. Looks like the beginnings of a customized linux install script. Should I delete this post to keep it a surprise? I will if you tell me to ;)

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Thanks, and you may be right but you might be wrong as well. We will just have to see.

  • @amdgaafar
    @amdgaafar8 ай бұрын

    Nice video, thanks. I am not very experienced with shell scripting but know how to use fdesk and did install some distros in the past. this series will be a good resource for me to learn shell scripting.

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Thanks, I hope this can help, thanks for watching

  • @B1ADE99
    @B1ADE998 ай бұрын

    Another banger🥶🥶

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Thank you

  • @linuxdabbler
    @linuxdabbler8 ай бұрын

    Looking forward to seeing more from this project. I think I have a good idea of where you are going with this.

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    I have been looking forward to his project for a while, it's nothing spectacular but it should be pretty fun and hopefully useful.

  • @linuxdabbler

    @linuxdabbler

    8 ай бұрын

    @@JakeLinux just fair warning... I might steal something from this script in the future... But I will definitely credit you and probably link to the video I got it from. Lol

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    @@linuxdabbler haha, feel free, it's all out there in hopes of someone being able to use it or modify it. In fact I hope people find it worth "stealing".

  • @folksurvival

    @folksurvival

    8 ай бұрын

    @@linuxdabbler The FOSS spirit.

  • @torsten.breswald
    @torsten.breswald8 ай бұрын

    neat. i'm curious about the outcome at the end. i think i got a pretty good idea what you are up to. idealy i will be able to steal some bits and pieces here and there for my own script stuff :)

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Feel free to steal away, I am going to move it to its own repo here in a few days so it will be accessible, at least the parts I want to be accessible at the moment.

  • @rato_gordo
    @rato_gordo8 ай бұрын

    Hei Jake, this was a really cool video, really fun to watch you making the script and also very good to review basic stuff, I'm doing a shell script with a course and a book at the moment. Would be awesome if you keep this kind of video going, also de git one as cool too.

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Glad you liked it, I plan on doing more of this type of content, at least as long as people enjoy it. Thanks for watching and for the kind words.

  • @naranyala_dev
    @naranyala_dev8 ай бұрын

    interactive shell scripts are great, I like to make central/general/global rofi launcher to run other rofi launchers

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    I enjoy those as well, I started using fzf instead of dmenu or rofi a while ago, but I may switch it up a little and use rofi

  • @lguilh
    @lguilh8 ай бұрын

    just call "sync" so it reads the changes done to filesystems instead of a pause

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Good tip, thanks.

  • @danilodistefanis5990
    @danilodistefanis59908 ай бұрын

    Liked and subscribed from Patagonia Argentina. Where’s your wallpaper? Looks like EU, Netherlands or Belgium.

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    Welcome to the channel! Thanks for the like, comment, and sub I appreciate you. I'm not sure where the picture on my wallpaper was taken, I just liked the image and the colors made for a good system color scheme.

  • @alejomdp
    @alejomdp8 ай бұрын

    You made my OCD scream when you forgot to capitalize the "What" and to place the space in the correct place at the end in the homepart prompt.... I hope this counts as constructive criticism....

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    That counts, I noticed the space, but I missed the w.

  • @alejomdp

    @alejomdp

    8 ай бұрын

    @@JakeLinux Well, I'm a professional freak about this kind of stuff.... lol

  • @raymondfloyd6397
    @raymondfloyd63977 ай бұрын

    💕 P r o m o s m

  • @Miguel_GM
    @Miguel_GM8 ай бұрын

    Another thing you could do is just prompt the user for the "sdx..." instead of the whole "/dev/sdx...". Here's and example in a function I created in my bashrc file to eject external devices from command line. It is in Spanish, but I think it can be understood well: expulsa() { lsblk -o NAME,TYPE,SIZE,MOUNTPOINT echo; read -p ":: Unidad a expulsar (ej.: sdb1): /dev/" un_exp udisksctl unmount -b /dev/$un_exp udisksctl power-off -b /dev/$un_exp }

  • @JakeLinux

    @JakeLinux

    8 ай бұрын

    I have lots in mind to improve this and optimize it, but keep the suggestions coming, I always enjoy hearing other people's ideas and how they would do things.

  • @Miguel_GM

    @Miguel_GM

    8 ай бұрын

    @@JakeLinux That's why I like watching your scripting videos. You always learn something or a new way to to do something ;)

Келесі