LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-20-2021, 02:06 PM   #61
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: Wiesbaden, Germany
Distribution: Manjaro
Posts: 1,065

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494

I learned that I'd really like appimage to be the future of Linux packaging.
 
Old 02-20-2021, 02:35 PM   #62
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 12,861

Rep: Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677
I learned something new in the last 7 days:

Upgrades occasionally land 'jammy side up!' I know this flies in the face of Murphy's Laws, Sod's law and a large number of long established Natural laws, but it just happened to me.

I upgraded Slackware64 from Current 2020-09-28(iso) release to Current-2021-02-11(iso) release and noted the long list of long notes in ChangeLog.txt. I didn't update config files except for grub; I reused the same /home and rebooted and everything worked. Everything was found, network, IP, my 2 screens, etc. I was left a few small tidying jobs in the preferences of the XFCE but that was 10 minutes when I felt like doing it.

I did have one earlier disaster on a previous effort but elegantly reversed out out of that dead end by realizing the situation and restoring a backup, but that was my fault entirely.
 
Old 02-21-2021, 11:19 AM   #63
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,908

Rep: Reputation: 173Reputation: 173
Quote:
Originally Posted by business_kid View Post
I learned something new in the last 7 days:

Upgrades occasionally land 'jammy side up!' I know this flies in the face of Murphy's Laws, Sod's law and a large number of long established Natural laws, but it just happened to me.

I upgraded Slackware64 from Current 2020-09-28(iso) release to Current-2021-02-11(iso) release and noted the long list of long notes in ChangeLog.txt. I didn't update config files except for grub; I reused the same /home and rebooted and everything worked. Everything was found, network, IP, my 2 screens, etc. I was left a few small tidying jobs in the preferences of the XFCE but that was 10 minutes when I felt like doing it.

I did have one earlier disaster on a previous effort but elegantly reversed out out of that dead end by realizing the situation and restoring a backup, but that was my fault entirely.

God I am too used to Debian's method if that is unusual. I just did an upgrade to Buster from the previous Stretch OS, as usual the apt dist-upgrade went without problems and everything worked out of the box without an edit like it has in the near twenty years of doing it with them. Oh it replaced a couple of config files on me, since I did not edit them I let the maintainers version get installed.
 
Old 02-21-2021, 11:58 AM   #64
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Location: Apples
Distribution: Apple-selling shops, markets and direct marketing
Posts: 1,139
Blog Entries: 29

Rep: Reputation: 652Reputation: 652Reputation: 652Reputation: 652Reputation: 652Reputation: 652
I learned that, when a man-page sais “a complete manual is available”, then it may just be that way.
 
1 members found this post helpful.
Old 02-21-2021, 01:52 PM   #65
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 12,861

Rep: Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677
Quote:
Originally Posted by HappyTux View Post
God I am too used to Debian's method if that is unusual. I just did an upgrade to Buster from the previous Stretch OS, as usual the apt dist-upgrade went without problems and everything worked out of the box without an edit like it has in the near twenty years of doing it with them. Oh it replaced a couple of config files on me, since I did not edit them I let the maintainers version get installed.
Ah yeah, but a lot of slackers are disappointed if there's nothing to do! Besides, I know the kind of update you're talking about. Make the least mistake and they go very very wrong.
 
Old 02-21-2021, 02:03 PM   #66
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,908

Rep: Reputation: 173Reputation: 173
Quote:
Originally Posted by business_kid View Post
Ah yeah, but a lot of slackers are disappointed if there's nothing to do! Besides, I know the kind of update you're talking about. Make the least mistake and they go very very wrong.
No mistakes to make the command does everything needed to upgrade you from one version of the OS to another, I suppose if stupid enough not to take the new configurations offered it could be a bad result, but why would you if you never edited the file. I will let those who know what they are doing provide the sensible defaults they most always do that give you a working service on the system. For something like SAB newsreader I have to edit the configuration of it to tell it the user to run as, those are the only things needed and that file was not touched on this upgrade, it fired up just like usual.
 
Old 02-21-2021, 02:04 PM   #67
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 2,321

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Make the least mistake and they go very very wrong.
Debian release notes usually devote a full chapter to upgrades from the previous version. Whoever not follows the steps outlined there are only themselves to blame.
 
1 members found this post helpful.
Old 02-22-2021, 04:55 AM   #68
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 12,861

Rep: Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677
Slackware-Current has slackpkg to keep you on the bleeding edge. Personally, I'm not fond of bleeding edge, because of the blood loss. I want my box to be boring & reliable,not a crashtesting box.
 
1 members found this post helpful.
Old 02-23-2021, 01:53 AM   #69
SkarmoutsosV
LQ Newbie
 
Registered: Aug 2012
Location: Lagkadikia, Greece
Distribution: Debian testing
Posts: 26

Rep: Reputation: 5
Quote:
Originally Posted by Arct1c_f0x View Post
'Ctrl + L' doesn't clear the terminal screen; It just scrolls down to a new frame where you can't see the previous output.
You are absolutely right.
While 'Ctrl + L' visually clears the screen, it also allows you to scroll up and see the previous terminal output.
In contrary 'clear' command clears the screen and you can't scroll up, effectively disappearing the previous output.
If someone doesn't have any specific reason to use 'clear' command, then 'Ctrl + L' is simply faster thus more convenient.
 
1 members found this post helpful.
Old 02-23-2021, 03:51 AM   #70
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,494
Blog Entries: 16

Rep: Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256
I discovered what a useful command adduser is. Not every distro has an adduser script but it's worth using when it's there. Previously I always used useradd to create a user and I always missed out some argument or other and had to come along after myself and fix the missing bit. adduser takes you through the process in stages so that the new user gets everything they need.
 
Old 02-23-2021, 11:19 AM   #71
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,908

Rep: Reputation: 173Reputation: 173
Quote:
Originally Posted by hazel View Post
I discovered what a useful command adduser is. Not every distro has an adduser script but it's worth using when it's there. Previously I always used useradd to create a user and I always missed out some argument or other and had to come along after myself and fix the missing bit. adduser takes you through the process in stages so that the new user gets everything they need.
And there is one I just learned few weeks ago when asking why the useradd in thread and not adduser, I stay away from that useradd like the plague after too many bad experiences like that, only to learn not all distros have clued in and have such a damn useful command. Mine for this week was learning the efibootmgr command to add new entry to my backup machines EFI boot menu, did that one last night.

Last edited by HappyTux; 02-23-2021 at 11:19 AM. Reason: typo
 
Old 02-23-2021, 07:52 PM   #72
Gemu
Member
 
Registered: Nov 2017
Posts: 37

Rep: Reputation: Disabled
I've learned if I set the variable in the command:
$ my_name=Gemu
echo "hello to $my_name"

echo responds hello to Gemu

These are called variables. I'm going through a bash scripting course on the net, not an actual class just self study.

My first dealing with bash scripting was with grub2. I had to learn at least some of it to make menuentry's work sometimes trying to boot many different Operating systems. Now usb creators will make darn near anything boot in a few minutes where a few years ago you had to figure it all out except for what you could get from the CD's isolinux/isolinux.cfg.

Last edited by Gemu; 02-23-2021 at 07:56 PM.
 
Old 02-24-2021, 02:05 AM   #73
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,237
Blog Entries: 10

Rep: Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160
^ GRUB uses some sort of shell, but I'm pretty sure it's not bash.

Quote:
Originally Posted by SkarmoutsosV View Post
While 'Ctrl + L' visually clears the screen, it also allows you to scroll up and see the previous terminal output.
In contrary 'clear' command clears the screen and you can't scroll up, effectively disappearing the previous output.
If someone doesn't have any specific reason to use 'clear' command, then 'Ctrl + L' is simply faster thus more convenient.
Whether I use Ctrl-L or clear, I can't reproduce this on either urxvt or xterm.
I'm sure this is configurable and depends on many factors, but as it is on my system, scrolling up (both with the mouse and Shift-Up) after clearing just shows one additional line, and not the previous screen.
 
Old 02-24-2021, 05:02 AM   #74
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,494
Blog Entries: 16

Rep: Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256Reputation: 3256
Quote:
Originally Posted by ondoho View Post
^ GRUB uses some sort of shell, but I'm pretty sure it's not bash.
No, it's an intrinsic part of GRUB, contained in one of its modules. But it's obviously based on the Bourne shell so you could call it a bash cousin.

gemu, I warn you! Scripting is addictive like any kind of programming. Now, just for interest, try doing the same thing but using single quotes. You'll find that it doesn't work any more because single quotes nullify all special characters.

Last edited by hazel; 02-24-2021 at 05:05 AM.
 
Old 02-25-2021, 05:59 PM   #75
Gemu
Member
 
Registered: Nov 2017
Posts: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
No, it's an intrinsic part of GRUB, contained in one of its modules. But it's obviously based on the Bourne shell so you could call it a bash cousin.

gemu, I warn you! Scripting is addictive like any kind of programming. Now, just for interest, try doing the same thing but using single quotes. You'll find that it doesn't work any more because single quotes nullify all special characters.
Ok I'll try that. Thanks!
I've been looking for which shell grub actually uses and I found some info here.
https://help.ubuntu.com/community/Grub2
------------------------------------------
Grub 2's major improvements over grub legacy

1. it offers Script support including conditional statements and functions.

----------------------------------------------------

So I don't know if grub2 can handle every command known to bash but the 1st 152 lines of my Ubuntu's grub.cfg is a bunch of: if, then, else, elif, echo and done statements.

The very 1st thing in my grub.cfg is an if condition like this, I won't post them all, there's too many. Even the menuentry has if statements now, most complex I've ever seen.

if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi

Last edited by Gemu; 02-25-2021 at 06:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alright, it's Wednesday. What is something you have learned *new* about Linux within the past 7 days? KGIII General 120 06-15-2021 05:19 AM
What is something new that you have learned about Linux this week? KGIII General 19 05-26-2021 01:51 PM
How do I grep my /var/log/secure file for the past 7 days or so many days? johnmccarthy Linux - Newbie 5 01-04-2013 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration