Latex + Lyx

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
rych
Black ninja
Black ninja
Posts: 49
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 2.1 32-bit
Location: NZ

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
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: TexLive + Lyx

Post#2 by phhpro » 05 Jan 2014, 02:47

...
Last edited by phhpro on 03 Feb 2016, 23:41, edited 1 time in total.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: TexLive + Lyx

Post#3 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.

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: Latex + Lyx

Post#4 by phhpro » 06 Jan 2014, 20:48

...
Last edited by phhpro on 03 Feb 2016, 23:41, edited 1 time in total.

rych
Black ninja
Black ninja
Posts: 49
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 2.1 32-bit
Location: NZ

Re: Latex + Lyx

Post#5 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

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: Latex + Lyx

Post#6 by phhpro » 07 Jan 2014, 05:43

...
Last edited by phhpro on 03 Feb 2016, 23:40, edited 1 time in total.

rych
Black ninja
Black ninja
Posts: 49
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 2.1 32-bit
Location: NZ

Re: Latex + Lyx

Post#7 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.

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: Latex + Lyx

Post#8 by phhpro » 09 Jan 2014, 03:19

...
Last edited by phhpro on 03 Feb 2016, 23:37, edited 1 time in total.

rych
Black ninja
Black ninja
Posts: 49
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 2.1 32-bit
Location: NZ

Re: Latex + Lyx

Post#9 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.

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: Latex + Lyx

Post#10 by phhpro » 09 Jan 2014, 20:16

...

Post Reply