NuTyX official Forum
Help => Tips and Tricks => Topic started by: aarn on Fri Jan 20 04:44:48 2017
-
Nutix is installed on a 16Gb ext4 partition (sda5), totally occupying an extended partition (sda2), while sda1 is a larger (boot) partition occupied by an ubuntu 16.04-derived distro. Thus, a dual boot. Trying to install calibre 2.77 (https://calibre-ebook.com/download_linux) from the command-line, after installing xdg-utils and wget, installation fails. Below is the error report
<Downloaded 62058756 bytes
Checking downloaded file integrity...
Extracting files to /opt/calibre ...
Extracting application files...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 673, in main
File "<string>", line 658, in run_installer
File "<string>", line 638, in download_and_extract
File "<string>", line 610, in extract_tarball
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory>
Any suggestion as to how to edit /usr/lib/python2.7/subprocess.py? Thanks in advance, aarn
-
You try to install / compile the package caliber without installing it's dependencies (http://nutyx.org/en/dictionary#ID006)
Maybe, you need to read the documentation before.
You can find them at the bottom of this page: https://calibre-ebook.com/download_linux
-
Mmm, nothing is straight forward, calibre asks for must install... then dependencies... then ??? haha
-
Some progress being made, have downloaded tarballs of four remaining dependencies... but trying to unpack:
<sudo tar -xvzf optipng-0.7.4.tar.gz
sudo: tar: command not found>
Have used $cd to get to the Download directory, then ls -F to show contents. Is there an alternate command to <tar>, or does something need to be installed prior to using that command? Thanks in advance, aarn
-
I advise you to read the documentation available on the web site.
You are lucky, it's week-end, So I give a summary below:
First of all:
Because you already have a NuTyX Up and running with everything you need BUT NOT THE DEVELOPMENT packages, you HAVE to do all your packages in a chroot environment, a chroot have many big advantages, it will not break your main NuTyX, it isolate your work, you are sure to start from a clean NuTyX. So let's go:
EVERYTHING YOU WILL DO BELOW SUPPOSE YOU HAVE CREATE a root acccount (much more easy)
nu
Enter your password
Type: root
Enter a new password and confirm. You're done.
0. Switch into root:
su -
Enter your password created above
1. Install the chroot in the default place which is in /mnt/hd
install-nutyx
2.When done, enter into your chroot:
install-nutyx -ec
3. Install all the devel packages (including tar)
get cards.devel
4, Get all the receipes of available nutyxpackages
ports -u
5. Create a personnal directory for your own recipes
mkdir /usr/ports/perso
6. Create a proper /etc/cards.conf file
echo "dir /usr/ports/perso
dir /usr/ports/gui-extra
dir /usr/ports/gui
dir /usr/ports/cli-extra
dir /usr/ports/cli
dir /usr/ports/base-extra
dir /usr/ports/base
base /usr/ports/base
base /usr/ports/base-extra
logdir /var/log/pkgbuild" > /etc/cards.conf
Now you are ready to build your own packages. More info will follow when you acknowledge this post
-
Hi and thanks for this advice. I did manage to install calibre, prior to following your suggestions.
One point of interest - after invoking <$install-nutyx -ec>, my system soon crashed. Not sure if the processor (Intel 6700K) overheated (I live in the tropics). After reboot, an error message (red typface) came up, suggesting I should report to nutyx.org. In any event, I worked around the problem by reverting to normal login then <$sudo cards sync && upgrade> or somesuch.
OK now my system is sparkling along, and the next task is to get sound output from vlc. Cheers, aarn
-
I don't think it's the command install-nutyx -ec which make trouble but the compilation
You ask full power from the processor when you do some compilation. You could try to reduce the number of core in service by setting:
export MAKEFLAGS="-j1"
in your /etc/pkgmk.conf file
To get the sound, install alsa-utils and use alsamixer (in root) to set your cursors umute
-
I took the time to add calibre (http://nutyx.org/en/?type=pkg&branch=stable&arch=x86_64&searchpkg=calibre) to our package library. Tomorrow it will be available in 32 bits as well
-
Merci beaucoup pour votre avis, au sujet d'installation de 'calibre'. La semaine derniere, suis-je occupe avec chercher un noveau metier (au paravant, etais-je veterinaire). Au futur retounerais-je au nutix, essayer de comprendre 'chroot' et tout cela. L'installation ubuntu-mini, c'est plus facile pour un imbecil comme moi-meme. Amicablement aarn
-
I can't get calibre in new installation. Have already effected $ sudo get gui && gui-extra. Easy to get VLC, audacious etc. Tried $ sudo cards get calibre; $ cards get gui-extra/calibre. Advice please... thanks.
-
Wow, I don't know how it happened but... going through the list of calibre's dependencies, all but 10 were installable from cards. Then running from terminal, the string @ www.calibre... it is installed. $ cards search calibre... nothing returned. Maybe you removed it? Cheers