انجمنهای فارسی اوبونتو
کمک و پشتیبانی => نصب، راهاندازی و بروزآوری => نویسنده: shirfarhad در 14 شهریور 1393، 09:42 بظ
-
درود
بسته تک لایو رو که حجمش ۲.۶ گیگ میشد دانلود و نصب کردم . سوالم اینه اگر حالا که نصب شده پوشه اون رو از home پاک کنم مشکلی بوجود
میاد ؟ چون حجم زیادی گرفته .
متشکرم
-
تک لایو رو کجا نصب کردی؟
اگه اون فایلی که دانلود کردی (ایزو) یا extract شدهی اون ایزو رو پاک کنی. مشکلی بوجود نمییاد چون تمام فایلها به محل نصب کپی میشن.
با دستور زیر میتونی ببینی که چه فایلهایی بروزرسانیهاشون اومده:
$ tlmgr update --list
با دستور زیر هم میتونی تمام بستههای تکلایو رو بروز رسانی کنی.
$ tlmgr update --all
اگر هم خواستی که بستههای تکلایو رو به صورت گرافیکی مدیریت کنی. اول باید perl-tk رو نصب کنی:
$ sudo apt-get install perl-tk
و بعد این رو توی ترمینال بزن:
tlmgr --gui
-
تک لایو رو از خود سایتش گرفتم نه به صورت ایزو .
یه پوشه توی home درست کردم به اسم texlive طبق آموزشی که در انجمن هست .
اینجا : http://forum.ubuntu.ir/index.php/topic,54757.msg432772.html#msg432772
و بعد با دستوراتی اون رو نصب کردم .
================================================
طبق راهنمایی perl-tk رو نصب کردم و سپس دستور tlmgr --gui رو زدم . این چیزی بود که در ترمینال
اومد :
travolta@travolta:~$ tlmgr --gui
(running on Debian, switching to user mode!)
Loading local TeX Live database
(/home/travolta/texmf/tlpkg/texlive.tlpdb)
This may take some time, please be patient ...
cannot setup TLPDB in /home/travolta/texmf at /usr/bin/tlmgr line 5336.
Compilation failed in require at /usr/bin/tlmgr line 4445.
-
شما کجا نصبش کردی؟ موقع نصب چه آدرسی دادی؟
ایزو رو هم خوب از خود سایتش من گرفتم.
https://www.tug.org/texlive/acquire-iso.html
شما الآن توی ترمینال بزن xelatex ببین چی بهت میگه. ببینم اصلاً به فایلهاش دسترسی داری از طریق ترمینال یا نه.
-
توی ترمینال تایپ کردم xelatex و این خروجی بود :
travolta@travolta:~$ xelatex
The program 'xelatex' is currently not installed. You can install it by typing:
sudo apt-get install texlive-xetex
این یعنی هنوز تمام بسته هانصب نیستن ؟ خب من هرچی فایل از سایتش گرفتم همه رو توی همون پوشه توی home
ذخیره کرده . برای نصبش هم فقط این دستور رو زدم :
# sudo perl ~/texlive/install-tl
-
چون با sudo نصب کردید، نباید tlmgrرو با sudo اجرا کنید؟
توی ترمینال تایپ کردم xelatex و این خروجی بود :
travolta@travolta:~$ xelatex
The program 'xelatex' is currently not installed. You can install it by typing:
sudo apt-get install texlive-xetex
این یعنی هنوز تمام بسته هانصب نیستن ؟
بعد از نصب چند خطی باید به فایل bashrc اضافه می کردید، انجامش دادید؟
-
من از روی آموزش جلو رفتم نمیدونستم نباید با sudo نصبش کنم . حالا روش درست چیه ؟ باید از اول انجام بدم ؟
بله اون سه خط رو هم توی اون فایل کپی کردم و ذخیره کردم .
-
با sudo هم درسته. از اول لازم نیست!
می شه اون سه خط رو اینجا بذارید؟
از بعد از نصب سیستم رو ریستارت کردید؟
-
این سه خط رو در انتهای فایل مربوطه کپی کردم :
PATH=$PATH:/usr/local/texlive/2012/bin/x86_64-linux ;export PATH
MANPATH=$MANPATH:/usr/local/texlive/2012/texmf/doc/man ;export MANPATH
INFOPATH=$INFOPATH:/usr/local/texlive/2012/texmf/doc/info ;export INFOPATH
بله سیستم رو حداقل یکبار ریستارت کردم . اگر درست نصب شده بود باید xelatex اجرا میشد ؟
-
اگر درست نصب شده بود باید xelatex اجرا میشد ؟
درست نصب شده اما ترمینال محل نصب رو نمی دونه. شما نباید خود همون سه تا خط رو از اون راهنما کپی می کردید! اون سه خط رو از bashrc ویرایش کنید. فکر میکنم اگر 2012 به 2014 تغییر کنه درست بشه. خودتون بررسی کنید که هر سه تا مسیر معتبر بشه (بعد از ویرایش رستارت یا خروج از دسکتاپ لازمه)
اون سه تا لینک برای سیستم عامل 64 بیتی است چون در خط اولش x86_64-linux داره
-
متشکرم ۲۰۱۲ به ۲۰۱۴ تغییر دادم و این بار xelatex رو تایپ کردم و این اومد :
travolta@travolta:~$ xelatex
This is XeTeX, Version 3.14159265-2.6-0.99991 (TeX Live 2014) (preloaded format=xelatex)
restricted \write18 enabled.
===================
در مورد tlmgr --gui که اجرا نمیشه به نظرتون چکار کنم ؟
پیامش این بود :
travolta@travolta:~$ tlmgr --gui
(running on Debian, switching to user mode!)
Loading local TeX Live database
(/home/travolta/texmf/tlpkg/texlive.tlpdb)
This may take some time, please be patient ...
cannot setup TLPDB in /home/travolta/texmf at /usr/bin/tlmgr line 5336.
Compilation failed in require at /usr/bin/tlmgr line 4445
.
-
sudo tlmgr --gui
-
با sudo هم امتحان کردم . پیامی که اومد مثل قبل بود .
-
خود tlmgr رو بهروز رسانی کن شاید درست بشه.
$ sudo tlmgr install tlmgr
-
درود
دستور رو اجرا کردم و این خروجی اومد :
travolta@travolta:~$ sudo tlmgr install tlmgr
[sudo] password for travolta:
(running on Debian, switching to user mode!)
cannot setup TLPDB in /home/travolta/texmf at /usr/bin/tlmgr line 5336
.
-
روی دبیان هستی یا اوبونتو؟
-
اوبونتو ۱۴.۰۴.۱ فقط دارم .
-
محتویات .bashrc رو اینجا میذاری؟
توی HOME هست.
-
محتویات فایل bashrc :
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
PATH=$PATH:/usr/local/texlive/2014/bin/x86_64-linux ;export PATH
MANPATH=$MANPATH:/usr/local/texlive/2014/texmf/doc/man ;export MANPATH
INFOPATH=$INFOPATH:/usr/local/texlive/2014/texmf/doc/info ;export INFOPATH
-
از طریق مخازن که نصب نکردی؟ یعنی قبلش نصب نداشتی؟
طبق چیزهایی که من خوندم تو اینترنت میگفتن که یه باگ هست که تو نسخههای قدیمی تکلایوی که تو اوبونتو بوده، بوده.
-
البته یک چند نفری هم گفته بودن شاید با این دستور درست بشه، نمیدونم یه امتحان کن ببین چی میگه،
tlmgr init-usertree
-
نه از مخازن نگرفتم . طبق آموزشی که لینکش رو دادم جلو رفتم .
این آموزش :
http://forum.ubuntu.ir/index.php/topic,54757.msg432772.html#msg432772
بله اون دستور رو هم زدم و این خروجی رو داد :
travolta@travolta:~$ sudo tlmgr init-usertree
[sudo] password for travolta:
(running on Debian, switching to user mode!)
/usr/bin/tlmgr: Initialization failed (in setup_unix_one):
/usr/bin/tlmgr: could not find a usable xzdec.
/usr/bin/tlmgr: Please install xzdec and try again.
Couldn't set up the necessary programs.
Installation of packages is not supported.
Please report to texlive@tug.org.
tlmgr: exiting unsuccessfully (status 1).
====================================
راستش خودم هم کمی سرچ کردم و این رو دیدم نمیدونم انجامش بدم مشکلی پیش میاره یا نه ؟
http://askubuntu.com/questions/485514/how-to-properly-install-and-use-texlive-with-package-manager-in-14-04
-
از هر دو عزیز بابت راهنماییشون و وقتی که صرف کردن متشکرم .
از لینکی که در آخر گفتم امتحان کردم و مشکل حل شد .
با این دستور :
sudo apt-get install xzdec
و بعد با این دستور :
sudo tlmgr --gui
پنجره منیجر ظاهر شد . فقط نوشته بود مال ۲۰۱۳ !!!
-
من که xzdec رو نصب ندارم و هیچ مشکی هم نیست!
تریسکل ۶ (اوبونتو ۱۲٫۰۴) و تکلایو ۲۰۱۴
salman@trisquel-os:~$ aptitude show xzdec
Package: xzdec
State: not installed
Multi-Arch: foreign
Version: 5.1.1alpha+20110809-3
Priority: optional
Section: universe/utils
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 252 k
Depends: libc6 (>= 2.4)
Suggests: xz-utils
Conflicts: xzdec
Breaks: xz-lzma (< 4.999.9beta+20091004-1), xz-lzma (< 4.999.9beta+20091004-1)
Replaces: xz-lzma (< 4.999.9beta+20091004-1), xz-lzma (< 4.999.9beta+20091004-1)
Provides: xzdec
Provided by: xzdec
Description: XZ-format compression utilities - tiny decompressors
XZ is the successor to the Lempel-Ziv/Markov-chain Algorithm compression format, which provides memory-hungry but powerful compression (often better than bzip2) and
fast, easy decompression.
This package provides the xzdec and lzmadec utilities, which write the decompressed version of a compressed file to standard output. The binaries are very small, so
they can be easily stored on small media with some compressed files, and they are linked statically against liblzma so they can be used on machines without a
compatible version of liblzma installed. However, they have:
* no compression support;
* no support for writing to a file other than standard output;
* no translated messages;
* been optimized for size rather than speed.
For a full-featured xzcat command without these limitations, use the xz-utils package instead.
Homepage: http://tukaani.org/xz/
salman@trisquel-os:~$