LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-04-2020, 05:35 PM   #46
ul7
Member
 
Registered: Jan 2020
Posts: 115

Original Poster
Rep: Reputation: 30

Quote:
Originally Posted by bassmadrigal View Post
Correct. Root's files would be located in root's home directory (which is /root/, whereas all other users reside under /home/$USER/). So if you want root to have the same things, you can either copy your ~/.bash_profile to root's home directory, or you can make the changes systemwide by editing /etc/profile directly (or adding your own file under /etc/profile.d/, just make sure it ends in .sh or it won't be added).

Also, when running plain su, you don't get a login shell. This works for a lot of things, but sometimes you need all the scripts in /etc/profile.d/ to be run (especially when compiling). To run su with a login instance, you would run:

Code:
su -
Wow that command does exactly what I needed. OK so do you think it would be wise to learn bash pretty deep? I feel like I can't move forward unless I really understand how the interpreter works. I'm sure it isn't necessary, but I'm the type of user that has to know those things because that little command saves a TON of headache. I mean I was trying to look for config files and edit stuff. That "su -" literally is laughing at me right now lol. Is that command using a variable or an environment variable?

I'm actually using this command below coupled with "man" right now just to learn where executable programs are and what they do (provided they look of interest of course):

Code:
echo $PATH
Then after seeing the directories and locations, I will venture in (not su, lol) and ls the directories and check things out.

Last edited by ul7; 09-04-2020 at 05:43 PM.
 
Old 09-04-2020, 05:59 PM   #47
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
There are so many things you can learn about bash and the commands that are run. It is basically a language that can be used for scripting (have a look at the build script that Alien Bob made to build VLC). I've been using Linux for over 15 years and I still consider myself a novice in the command line. If you learn it and don't use it, you tend to forget it, so I'd just focus on learning the basics and then using man pages or websites to teach you additional things as you need them.

The - in the su command is a shortcut for -l or --login (see man su for more details). It forces using a login shell for the user. While su is commonly used to switch to the root user (since it is default), you can actually use su to switch to any other user.
 
1 members found this post helpful.
Old 09-04-2020, 06:07 PM   #48
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92
Quote:
Originally Posted by bassmadrigal View Post
(have a look at the build script that Alien Bob made to build VLC)
Just looked at that script. Wow... wow...

I really don't think VLC is worth all that when the MPlayer variants can do everything it can with much better performance. But I suppose it is a key piece of software for new converts.

Quote:
The - in the su command is a shortcut for -l or --login (see man su for more details). It forces using a login shell for the user.
That is great info, thanks.
 
Old 09-04-2020, 06:18 PM   #49
ul7
Member
 
Registered: Jan 2020
Posts: 115

Original Poster
Rep: Reputation: 30
Yeah I haven't gotten into installing stuff yet on here. I think for now color coding my terminal and navigating the OS is going to be solid baby steps for tonight. I'll be slacking on the forums late into the night. I need to actually scour our forums for any similar stuff I may run into. I don't want be wasting anyone's time if stuff has already been asked. Everyone has been super quick on response, so I really appreciate everyone's in the community.

Last edited by ul7; 09-04-2020 at 06:20 PM.
 
1 members found this post helpful.
Old 09-04-2020, 06:40 PM   #50
ul7
Member
 
Registered: Jan 2020
Posts: 115

Original Poster
Rep: Reputation: 30
Holy crap did Alien Bob write that entire script? I love VLC, it's so much more than a video player. I record my desktop and and even have links for free IP TV across the world (over 8000 channels). Most channels are crap, but I'm sure there is some gems in there. Plus all the custom codecs and goodness that comes with it.

Last edited by ul7; 09-04-2020 at 06:42 PM.
 
Old 09-04-2020, 06:40 PM   #51
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,457
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by ul7 View Post
OK so do you think it would be wise to learn bash pretty deep? I feel like I can't move forward unless I really understand how the interpreter works.
It can't hurt to learn. The Linux/GNU toolchain is very powerful. There are concepts which will help if you want to learn programming. eg: Learning how to direct output to obtain the result you want.
Quote:
Originally Posted by ul7 View Post
Then after seeing the directories and locations, I will venture in (not su, lol) and ls the directories and check things out.
If you're more of a visual person, check out Midnight Commander:$ mc

It's a text-based file browser that makes it easy to navigate the filesystem.
 
Old 09-04-2020, 06:44 PM   #52
ul7
Member
 
Registered: Jan 2020
Posts: 115

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by rkelsen View Post
It can't hurt to learn. The Linux/GNU toolchain is very powerful. There are concepts which will help if you want to learn programming. eg: Learning how to direct output to obtain the result you want.

If you're more of a visual person, check out Midnight Commander:$ mc

It's a text-based file browser that makes it easy to navigate the filesystem.
Yeah I'll put that in my notes, I'm really trying to stay in the CLI if I can. But yeah, sometime when learning new stuff (especially a new OS) sometimes getting those concepts down is more important. I'll check it out for sure.
 
Old 09-04-2020, 06:54 PM   #53
ul7
Member
 
Registered: Jan 2020
Posts: 115

Original Poster
Rep: Reputation: 30
OK I downloaded MC. I got this far:

1. ./configure
2. make
3. install?

I need to definitely get this down.

Last edited by ul7; 09-04-2020 at 06:58 PM.
 
Old 09-04-2020, 06:58 PM   #54
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,457
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by bassmadrigal
It is basically a language that can be used for scripting (have a look at the build script that Alien Bob made to build VLC).
Yeah, it's a big one, but this note in it explains why:
Quote:
Originally Posted by vlc.SlackBuild
# NOTE: this SlackBuild is a monster - it tries to wrap all dependencies to
# vlc into the resulting package by building these deps as static libraries
# and then in the final stage linking vlc against all the static libraries.
# The resulting package has all the vlc functionality and does not depend on
# any software that is not present in a standard full install of Slackware.
And the list of dependancies it builds as static:
Quote:
Originally Posted by vlc.SlackBuild
A52=0.7.4
AACENC=0.1.2
AMRWBENC=0.1.3
AMR=0.1.3
ASDCPLIB=2.7.19
ASS=0.14.0
AVC1394=0.5.4
BLURAY=1.2.0
CDDB=1.3.2
CDIO=0.90
DAV1D=0.6.0
DC1394=2.2.1
DCA=0.0.7
DSM=0.3.2
DV=1.0.0
DVBPSI=1.3.2
DVDNAV=6.1.0
DVDREAD=6.1.1
DVDCSS=1.4.2
EBML=1.3.10
FAAC=1.28
FFMPEG=eaff5fc # ffmpeg3 git snapshot 06 dec 2017
FLUID=1.1.6
FRIBIDI=1.0.9
GII=1.0.2
GLEW=2.1.0
GOOM=2k4-0
GSM=1.0.16
KATE=0.4.1
LAME=3.100
LIBVA=2.0.0
LIVE=2016.11.28
LUA=5.1.5
MATROSKA=1.5.2
MDNS=0.1.2
MPCDEC=r481
MPEG2DEC=0.5.1
OPUS=1.2.1
PCRE2=10.31
PROJECTM=2.0.1
PROTOBUF=3.1.0
QT5=5.7.1
RAW1394=2.0.5
SHOUT=2.4.1
SPEEX=1.2.0
SPEEXDSP=1.2rc3
SRT=1.2.2
SSH2=1.8.0
TAGLIB=1.11.1
THEORA=1.1.1
TIGER=0.3.4
TWOLAME=0.3.13
UPNP=1.6.19
VDPAU=1.1.1
VPX=1.8.2
X262=20180907
X264=20180907-2245
X265=2.7
Back in the days before kids (i.e. when I had spare time on weekends), I built a similar chain of dependencies by hand to try and get Transcode working... I gave up in the end.
Quote:
Originally Posted by Fat_Elvis View Post
I really don't think VLC is worth all that when the MPlayer variants can do everything it can with much better performance.
Not by default, it can't. For your statement to be true, you would have to build that same list of dependencies and re-compile MPlayer against it.

The end result of Eric's vlc script is a portable binary package which could last you for years across several different Slackware versions.
 
Old 09-04-2020, 07:00 PM   #55
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,457
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by ul7 View Post
OK I downloaded MC. I got this far:

1. ./configure
2. make
3. install?

I need to definitely get this down.
You don't need to download it. It's already installed by default...

Just type 'mc' to run it. (Hence the prompt at the end of my suggestion: $ mc).

Last edited by rkelsen; 09-04-2020 at 07:01 PM.
 
Old 09-04-2020, 07:01 PM   #56
ul7
Member
 
Registered: Jan 2020
Posts: 115

Original Poster
Rep: Reputation: 30
Holy crap.... is that what they mean by dependency hell? Bring it on!!
 
Old 09-04-2020, 07:05 PM   #57
ul7
Member
 
Registered: Jan 2020
Posts: 115

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by rkelsen View Post
You don't need to download it. It's already installed by default...

Just type 'mc' to run it. (Hence the prompt at the end of my suggestion: $ mc).
. . . .. . .LOL omfg I'm crying with laughter right now. Dude I'm hopeless as [removed]. That should give you a laugh to remember me by...lmfao. Microsoft what have you done to me!!!
Attached Thumbnails
Click image for larger version

Name:	snapshot1.jpg
Views:	27
Size:	256.3 KB
ID:	34017  

Last edited by ul7; 09-04-2020 at 07:12 PM.
 
1 members found this post helpful.
Old 09-04-2020, 07:15 PM   #58
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,457
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by ul7 View Post
Holy crap.... is that what they mean by dependency hell? Bring it on!!
Nah man. It gets old real quick... which is why scripts like Eric's vlc.SlackBuild are lauded around here.
 
Old 09-04-2020, 07:20 PM   #59
ul7
Member
 
Registered: Jan 2020
Posts: 115

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by rkelsen View Post
Nah man. It gets old real quick... which is why scripts like Eric's vlc.SlackBuild are lauded around here.
I wonder if there is anything for noobs like me to show involvement in the community? Obviously as I stand right now, probably don't touch anything and stay far far far away from code (lmfao). But yea, I'd be down to get involved once I can function like a normal human. lol..... I can at least donate when I can and stuff like that for now.

Last edited by ul7; 09-04-2020 at 07:25 PM.
 
Old 09-04-2020, 07:23 PM   #60
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,457
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by ul7 View Post
That should give you a laugh to remember me by...lmfao.
It did. But don't worry... bigger mistakes have been made here!

Have you 'discovered' the /usr/doc directory yet? In there, you will find a ton of documentation relating to the software installed on your machine. I can recommend that you look in the /usr/doc/Linux-HOWTOs for the basics. Some of the content is quite old, but much of it is still relevant. Eg: You can find out what to do with that source code for 'mc': /usr/doc/Linux-HOWTOs/Software-Building-HOWTO

Another one which helped me a lot back in the day was the DOS-Win-to-Linux-HOWTO... but it is a 20 year old document now.

Enjoy.

Last edited by rkelsen; 09-04-2020 at 07:28 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New to this forum, but not completely new to Linux... mercfocus LinuxQuestions.org Member Intro 0 11-30-2011 09:34 PM
Problem installing pidgin 2.6.3..am completely new to linux...very new deepak.nagadi Linux - Newbie 5 11-10-2009 05:12 PM
New member - not completely new to Linux corgi LinuxQuestions.org Member Intro 3 03-13-2006 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:58 PM.

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