LINUXOPOLIS # 2019-11-21 ~ HOWTO ( weather & update )

2개월 전

HOWTO

Building a Linux Habitat
Published with SteemPeak
home previous

ScreenshotScreenshot by Willi Glenz

SUMMARY

01 container ........................................................... 2019-11
03 firmware ............................................................ 2019-11
02 prompt .............................................................. 2019-11 
05 update .............................................................. 2019-11 new
04 weather ............................................................. 2019-11 new



#05

05 UPDATE
function update -d "systemupdate"
    cd ~
    clear
    echo
    neofetch
    sudo apt update && sudo apt upgrade && sudo apt dist-upgrade
    echo
end
$ vim ~/.config/fish/functions.update.fish


04 WEATHER
function weather -d "weather forecast"
    clear
    curl wttr.in
end
vim ~/.config/fish/functions/weather.fish


03 FIRMWARE
# cp *.bin /lib/firmware/i915
# update-initramfs -u
source      : askubuntu.com/questions/832524/possible-missing-frmware-lib-firmware-i915/832528
i915        : git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915


02 CONFIG THE PROMPT
BASH

$ PROMPT_SIC=$PS1                                        //          
$ PS1="\j \u@\h $ "                                      //         running jobs
$ PS1=$PROMPT_SIC                                        //           
$ vim ~/.bashrc                                          //            permanent

FISH

>>> fish_config prompt                                   //    git-status & jobs
>>> vim ~/config/fish/functions/fish_prompt.fish         //      edit the prompt
$ man bash                                               // search for prompting
>>> fish_config prompt   
ps1-prompt generator    : ezprompt.net


01 BUILDING A CONTAINER
$ clear; 
$ mkdir -p ~/tmp/mnt; 
$ tree ~/tmp
$ cd ~/tmp

$ dd if=/dev/zero of=~/tmp/data.img bs=1M count=1000
# mkfs -t ext4 ~/tmp/data.img
$ mount -t auto -o loop ~/tmp/data.img ~/tmp/mnt/
# chown -R user:user ~/tmp/mnt
$ mount | column -t
$ df -hT

$ cd ~/tmp/mnt/
$ touch dummy.txt
$ cd ~
$ umount ~/tmp/mnt
$ man dd mkfs mount
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT
Sort Order:  trending

Congratulations @wglenz! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published more than 900 posts. Your next target is to reach 950 posts.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

You can upvote this notification to help all Steem users. Learn how here!