Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Tip 5:
Among the various programs that were installed in LFS-9.0, TigerVNC Viewer is one. It was tested all right from other distributions.
Recently, DietPi was installed in RPi B 3+. This is a very good software but not easy like Raspbian. It basically requires a working Ethernet connection. However, I could install it after talking to their tech team which was very co-operative.
I managed to install LXDE in DietPi. Under Internet, I selected X11VNC Server. 'Select x11vnc port' dialogue popped up. In 'Ports' box, I entered 5900:0 and selected 'TightVNC' radio button.
In LFS-9.0, I selected 'TigerVNC Viewer' under Internet. I entered '<DietPC's IP address>:0' in the resulting pop-up. I gave password as 'dietpi'.
Immediately, DietPi screen was available in LFS-9.0.
Tip 6:
In previous column, 'vncviewer' of LFS-9.0 and 'vncserver' of DietPi were mentioned. The reverse was attempted recently. While checking the log file, I foolishly ran a shell script which corrupted some files and the Xwindow was broken. I rebooted and could login as user lfs. But, 'startx' command did not work. I was getting 'Timeout in locking authority file /home/lfs/.Xauthority' error. As per Google and linuxquestions.org, I tried to give permission to $HOME but it did not work but the suggestion to remove /home/lfs/.Xauthority file worked instantly after adding 'startlxde' in .xinitrc file!
Dillo is usable if you want to read the book and copy/paste.
Another way is to chroot, that is what I do.
I too find that some stuff just is better/easier/faster if you use a pre-compiled version.
Getting to a usable desktop takes too long otherwise, especially for beginners.
TIP 7:
After completing LFS-9.0, I started LFS-9.1 with the idea to install minimum software so as to work as a Media Server after installing Docker and, through it, Jellyfin. I was successful in creating Media Server in LFS-9.0. Everything was going smoothly till I came to Mozjs-60. As per BSLF book, we have to export SHELL or else the compilation will fail. I remember to have added 'export SHELL=/bin/bash' in LFS-9.0, but configuration failed. Normally, I go to linuxquestions.org or Google for any help regarding LFS. Only Google had a posting about this but it was not clear to me and I wrote to BLFS-support. The reply from BLFS is reproduced below:
-----------------------------------------------------------------------------------------
>On 3/21/20 9:27 AM, Ken Moffat via blfs-support wrote:
> The problem happens in chroot because '/run' is empty. The fix when
> building in chroot is:
> # mount --bind /run /mnt/lfs/run
Note that this must be run on the host, not from within chroot.
-- Bruce
-------------------------------------------------------------------------------------------------------
Without waiting for the reply, I configured Mozjs-60 in LFS proper, as I had read somewhere that Python-2.7 should be compiled in LFS environment for some other problem.
I was surprised in its success and went on to install LXDE and then Pale Moon web browser (by downloading the source, untarring it and applying a few tweaks as given in their web site - I did not want to overload my old CPU by installing Firefox as per the Book) I now have a working LFS-9.1. (Almost full-pledged LFS-9.0 is already there in the same desktop.)
There was no problem with Mozjs in LFS-9.0. If anyone is having a similar problem they can follow the comments of Bruce. I suppose no special entry is required for compilation in proper LFS environment.
Tip 8:
I have recently completed LFS-9.0 and LFS-9.1. The latter has minimum packages and its main purpose is to act as Media Server with Docker and Jellyfin.
Although I don't play games, I particularly like Aisleriot. It was there in BLFS-Version 2012-11-02 but removed subsequently for reason not known.The reply I got from blfs-support is given below:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
I think aisleriot has a lot of dependencies in the gnome stack.
It may be difficult to figure them out. Study the output of config.log;
and add dependencies until configure is OK (some of the dependencies
may have further dependencies too).
Pierre
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Instead of Aisleriot, I searched for Python Card Games. Google threw up 'Freecell on Canvas' from SourceForge. In LFS-9.1, I downloaded the zip file and unzipped it. I then ran 'index.html' in the extracted Freecell folder. I could easily play in Pale Moon web browser. Very easy! I agree that the main purpose is to compile packages but in unusual situation, this seems to be the only way out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.