LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Closed Thread
  Search this Thread
Old 01-14-2020, 01:41 AM   #1
vsayanam
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Rep: Reputation: 10
Linux From Scratch for Newbies - Part 1


TIP 3:
After completing LFS, we are eager to continue with BLFS. BLFS Book suggests that we log in as unprivileged user and later we install as root. In the beginning, I compiled and installed BLFS packages as root as it was easier thing to do but I faced one problem with vlc as it cannot be run as root. (Hack is available in Google for this.) Unlike LFS, BLFS Book does not spoon-feed this aspect. Chapter 3 of BLFS Book talks about /etc/skel directory and recommends to install a few files as follows:
" The files from those sections that you might want to place in /etc/skel include .inputrc, .bash_profile, .bashrc, .bash_logout, .dircolors, and .vimrc."
It was somewhat difficult to follow in the beginning. (Probably BLFS authors expect you to be proficient by this time!) After a few trials, this is what I have done:
1. First create /etc/skel directory.
2. Copy files to /etc/skel/.inputrc, /etc/skel/bash_profile, /etc/skel/.bashrc, /etc/skel/bash_logout. For .inputrc, I used LFS Book. The remaining are from BLFS BOOK. For .dircolors, I did:
dircolors -p > /etc/skel/.dircolors.

I then deleted existing user which was lfs. After this, I did:

useradd -m <newuser> The newuser is again lfs. We can verify this from /home/lfs/etc/skel. You will find all the four files. I did not bother about .vimrc.

Next is to give permission for lfs user to use the directories we create for BLFS. I created /blfs, /scripts and /xc directories. /scripts directory holds blfs-bootscripts and linux. From LFS Book, i entered:

chown -v lfs <directories>.

I now login as lfs user in to BLFS desktop. I use wget, tar xf, sed, make etc. commands as user lfs and sudo or sudo su to install. I have compiled many BLFS programs this way. I feel this is better than copying and pasting from text web browsers in virtual terminals.

If there is better way, LFS enthusiasts may please reply to linuxquestions.org.
 
Old 01-14-2020, 08:14 PM   #2
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: West Africa
Distribution: Slackware/Debian (when necessary)
Posts: 2,409
Blog Entries: 1

Rep: Reputation: 87
I'm confused... is your problem that you can't run vlc in root or user account related.. or was this intended as a "miniature guide" for others who might struggle with the same issue?
 
Old 01-14-2020, 11:53 PM   #3
vsayanam
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 10
Linux From Scratch - Part 1 Tip 3

Quote:
Originally Posted by phantom_cyph View Post
I'm confused... is your problem that you can't run vlc in root or user account related.. or was this intended as a "miniature guide" for others who might struggle with the same issue?
Sorry for confusing you. This is a sort of mini guide for BLFS user who has to compile BLFS programs as unprivileged user and install programs as root. BLFS Book has not given clear instructions in this regard.
Regarding VLC, we cannot run it as root although one user has recommended use of 'sed' in Google search.
Hope, I have made myself clear.
 
Old 01-15-2020, 12:22 AM   #4
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: West Africa
Distribution: Slackware/Debian (when necessary)
Posts: 2,409
Blog Entries: 1

Rep: Reputation: 87
Yeah.. just doesn't "read like a guide" as it were..

And not being able to run vlc makes me wonder why you're running in root as it is.. there is a good chance the vlc team did that on purpose. When you can watch videos in vlc as a user.. why bother..
 
Old Today, 05:28 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,395

Rep: Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088Reputation: 3088
Continue here
https://www.linuxquestions.org/quest...-a-4175667290/
 
  


Closed Thread


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux From Scratch for Newbies - Part 1 vsayanam Linux From Scratch 4 Today 05:29 AM
Linux From Scratch for Newbies - Part 1 vsayanam Linux From Scratch 7 Yesterday 06:34 AM
[SOLVED] Where can I find a newbies guide to XFCE or is XFCE not for newbies? Robert.Thompson Slackware 5 03-07-2011 11:27 AM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration