Latex + Lyx

Post here if you are a new Porteus member and you're looking for some help.
rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Latex + Lyx

Post#1 by rych » 04 Jan 2014, 04:49

Hi and thanks for such a great project!

How do I go about adding the latest TeX Live and Lyx to it: either as modules or install into persistent storage (if I understand my options correctly)? TexLive is a very large 2GB system http://www.tug.org/texlive/acquire-iso.html, but I guess I'd rather have it all at once rather than dealing with missing packages later? Is it easy to build a module for each of TexLive and Lyx?

Is a module loaded to RAM completely or is it memory-mapped? The host machine has 4 GB of memory, so could fit possibly taking very long to load?

Lyx has binaries for various Linux distros, which one should I take, http://www.lyx.org/Download#toc5 ?

Thanks
Igor
Last edited by rych on 06 Jan 2014, 05:36, edited 1 time in total.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: TexLive + Lyx

Post#2 by brokenman » 05 Jan 2014, 03:10

Why not use the install over internet function? Download this file: http://mirror.ctan.org/systems/texlive/ ... unx.tar.gz
Unpack it and move into the directory and run the installer. It will install the files straight to your HD (make sure you boot with changes= cheatcode) and be available whenever you boot.
I recommend saving your changes to an ext4 formatted HD. I tested this and it appears to be functioning ok. I havn't rebooted yet.
How do i become super user?
Wear your underpants on the outside and put on a cape.

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Re: Latex + Lyx

Post#3 by rych » 07 Jan 2014, 04:10

Well, if indeed a whole texlive module would need to be expanded fully into RAM and it's not practical, I'd rather choose to install it into my persistent storage. In this way I could be installing only packages I need.

I downloaded, unpacked and ran
export http_proxy=http://username:password@proxy_host:proxy_port
./install-tl -gui text

installed a basic set (136MB), portable option (not sure what is portable about it), no problems so far

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Re: Latex + Lyx

Post#4 by rych » 08 Jan 2014, 01:14

I was hoping to use my favourite editor, Texworks. But unfortunately it is not installed with Texlive (unlike in Windows or Mac). Texworks http://www.tug.org/texworks/ doesn't provide a binary for Linux. I have found Texlive in Debian repository through the Porteus Package Manager. There are buttons suggesting to download it, and turn it into a porteus module. I did that, there is a 4kb texworks-0.5~svn1302-i386-1.xzm file now.

Anyway, what should I do to actually install Texworks in Porteus?

Have found a rpm package (assuming I would be able to convert it into a Slackware package?), http://pkgs.org/opensuse-13.1/opensuse- ... 6.rpm.html

Lyx on the other hand happen to have a Slackware package, http://pkgs.org/slackware-14.0/slacky-i ... l.txz.html. I installed it and it added itself to Start>Office, but it doesn't work of course.

Looking at that page, there is a very long dependency list, about 20. Am I supposed to click and download all of them by hand?

Well, it was awful but I did install every single dependency and missing .so manually. Lyx 2.06 now works.

As for Texworks it seems one has to build it from sources? I have hoped it wouldn't come to this.

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Re: Latex + Lyx

Post#5 by rych » 09 Jan 2014, 05:57

Anyway, using whatever packages available from pkgs.org (I used .rpm, people are kind enough to generate them for other distros) to get precompiled binaries of missing dependencies/libraries/etc., I got both Lyx and Texworks set up. It took me 2 days though, so I will be looking for a more automatic way for the next updating. At least I didn't have to compile anything from source -- that's very lucky.

Post Reply