Ubuntu&Fedora装机&Mac装机(UOS装机将会持续更新)

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#286

帖子 243750496 » 2016-12-29 13:38

apt-get install libzipios++0c2a libspnav0 python-ply python-collada qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer zlib1g zlib1g-dev libxerces-c-dev libpyside-dev libvtk5-dev build-essential cmake python python-matplotlib libtool libtool libcoin80-dev libxerces-c-dev libboost-dev libboost-filesystem-dev libboost-regex-dev libboost-program-options-dev libboost-signals-dev libboost-thread-dev libboost-python-dev libqt4-dev libqt4-opengl-dev qt4-dev-tools python-dev python-pyside pyside-tools liboce-foundation-dev liboce-modeling-dev liboce-ocaf-dev liboce-visualization-dev liboce-ocaf-lite-dev oce-draw libeigen3-dev libqtwebkit-dev libshiboken-dev libpyside-dev libode-dev swig libzipios++-dev libfreetype6 libfreetype6-dev libsimage-dev checkinstall python-qt4 doxygen libspnav-dev dh-make devscripts lintian
如果没有空间了腾出空间后执行(我的就没空间了)
dpkg --configure -a
apt-get install libzipios++0c2a libspnav0 python-ply python-collada qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer zlib1g zlib1g-dev libxerces-c-dev libpyside-dev libvtk5-dev build-essential cmake python python-matplotlib libtool libtool libcoin80-dev libxerces-c-dev libboost-dev libboost-filesystem-dev libboost-regex-dev libboost-program-options-dev libboost-signals-dev libboost-thread-dev libboost-python-dev libqt4-dev libqt4-opengl-dev qt4-dev-tools python-dev python-pyside pyside-tools liboce-foundation-dev liboce-modeling-dev liboce-ocaf-dev liboce-visualization-dev liboce-ocaf-lite-dev oce-draw libeigen3-dev libqtwebkit-dev libshiboken-dev libpyside-dev libode-dev swig libzipios++-dev libfreetype6 libfreetype6-dev libsimage-dev checkinstall python-qt4 doxygen libspnav-dev dh-make devscripts lintian
apt-get -f install
apt-get install libzipios++0c2a libspnav0 python-ply python-collada qt4-dev-tools qt4-doc qt4-qtconfig qt4-demos qt4-designer zlib1g zlib1g-dev libxerces-c-dev libpyside-dev libvtk5-dev build-essential cmake python python-matplotlib libtool libtool libcoin80-dev libxerces-c-dev libboost-dev libboost-filesystem-dev libboost-regex-dev libboost-program-options-dev libboost-signals-dev libboost-thread-dev libboost-python-dev libqt4-dev libqt4-opengl-dev qt4-dev-tools python-dev python-pyside pyside-tools liboce-foundation-dev liboce-modeling-dev liboce-ocaf-dev liboce-visualization-dev liboce-ocaf-lite-dev oce-draw libeigen3-dev libqtwebkit-dev libshiboken-dev libpyside-dev libode-dev swig libzipios++-dev libfreetype6 libfreetype6-dev libsimage-dev checkinstall python-qt4 doxygen libspnav-dev dh-make devscripts lintian
下载下面的文件
https://pan.baidu.com/s/1jI6t6kQ
然后拷贝至~/.cache/libertine-container/vivid/rootfs/home/
cp -a ~/Downloads/*.deb ~/.cache/libertine-container/vivid/rootfs/home/
注意:不要拷贝freecad目录下的文件
然后
新建一个terminal
adb shell
libertine-container-manager exec --command "/bin/bash" --id vivid
cd home
dpkg -i *.deb
然后复制
cp -a ~/Downloads/freecad/*.deb ~/Downloads
然后打开pad->libertine->myapps->‘+’号->choose a debian pacage to install->选择freecad1.4安装
注意不要使用dpkg -i 安装,不然安装后不会显示
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#287

帖子 243750496 » 2016-12-29 15:16

apt-get install extra-cmake-modules libkf5archive-dev libkf5completion-dev libkf5config-dev libkf5coreaddons-dev libkf5guiaddons-dev libkf5i18n-dev libkf5itemmodels-dev libkf5itemviews-dev libkf5widgetsaddons-dev libkf5windowsystem-dev libkf5kiocore5 qtbase5-dev libqt5svg5-dev qtdeclarative5-dev libqt5x11extras5-dev libqt5opengl5-dev libeigen3-dev libxi-dev libboost-all-dev libopenexr-dev libexiv2-dev libgsl0-dev liblcms2-dev libpoppler-qt5-dev shared-mime-info libraw-dev libfftw3-dev libopencolorio-dev libcurl4-openssl-dev libopenjpeg-dev libcurl4-nss-dev libcurl4-gnutls-dev vc-dev
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#288

帖子 243750496 » 2016-12-29 15:19

apt-get install extra-cmake-modules libkf5archive-dev libkf5completion-dev libkf5config-dev libkf5coreaddons-dev libkf5guiaddons-dev libkf5i18n-dev libkf5itemmodels-dev libkf5itemviews-dev libkf5widgetsaddons-dev libkf5windowsystem-dev libkf5kiocore5 qtbase5-dev libqt5svg5-dev qtdeclarative5-dev libqt5x11extras5-dev libqt5opengl5-dev libeigen3-dev libxi-dev libboost-all-dev libopenexr-dev libexiv2-dev libgsl0-dev liblcms2-dev libpoppler-qt5-dev shared-mime-info libraw-dev libfftw3-dev libopencolorio-dev libcurl4-openssl-dev libopenjpeg-dev
cmake ../krita-3.1.1/krita-3.1.1 -DCMAKE_INSTALL_PREFIX=~/kf5/inst -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#289

帖子 243750496 » 2016-12-29 16:22

apt-get install calligra-libs kde-runtime krita-data libc6 libexiv2-13 libfftw3-double3 libgcc1 libgl1-mesa-glx libglew1.10 libglu1-mesa libilmbase6 libjpeg8 libkdcraw23 libkdecore5 libkdeui5 libkfile4 libkio5 liblcms2-2 libopencolorio1 libopenexr6 libopenjpeg5 libpng12-0 libpoppler-qt4-4 libqt4-opengl libqt4-svg libqt4-xml libqtcore4 libqtgui4 libstdc++6 libtiff5 libx11-6 libxi6
dpkg -P krita
dpkg -P calligraplan
apt-get install kdelibs5-dev
cmake ../calligra-2.8.1/calligra-2.8.1 -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#290

帖子 243750496 » 2016-12-29 21:12

Missing dependency check in
Gopalakrishna Bhat gopalakbhat at gmail.com
Fri Oct 26 16:22:59 UTC 2012

Previous message: Missing dependency check in
Next message: Missing dependency check in
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

On Friday, October 26, 2012, Shantanu Tushar Jha <shaan7in at gmail.com> wrote:
> Okay, I sent the email too quick, even if I change Phonon to phonon, it
fails for errors in the experimental headers themselves. Wonder whats wrong.
>
> On Fri, Oct 26, 2012 at 9:17 PM, Shantanu Tushar Jha <shaan7in at gmail.com>
wrote:
>>
>> Hi Gopalakrishna,
>>
>> Even after installing libphononexperimental-dev on Kubuntu 12.10, I
can't get it to compile unless I change 'Phonon' to 'phonon' in the
includes. Can you check if thats the way it should be?

Change the include to

"phonon/experimental/videodataoutput2" and try. It seems like ubuntu is
missing the header files that point to videodataoutput2.h
>>
>> On Fri, Oct 26, 2012 at 9:02 AM, Gopalakrishna Bhat <
gopalakbhat at gmail.com> wrote:
>>>
>>>
>>> On Friday, October 26, 2012, Thorsten Zachmann <t.zachmann at zagge.de>
wrote:
>>> > On Friday 26 October 2012 06:24:22 Gopalakrishna Bhat wrote:
>>> >> On Friday, December 12, 1969, Thorsten Zachmann <t.zachmann at zagge.de>
wrote:
>>> >> > Hello,
>>> >> >
>>> >> > when building Calligra I got the following compile error:
>>> >> >
>>> >> >
plugins/videoshape/CMakeFiles/videoshape.dir/videoshape_automoc.cpp.o
>>> >> > In file included from /home/ko/calligra-
>>> >> > build/plugins/videoshape/moc_VideoThumbnailer.cpp:10:0,
>>> >> >
>>> >> > from /home/ko/calligra-
>>> >> >
>>> >> > build/plugins/videoshape/videoshape_automoc.cpp:5:
>>> >> > /home/ko/calligra-
>>> >>
>>> >>
>>> >
build/plugins/videoshape/../../../../tz/develop/kde/git/calligra/plugins/videoshape/VideoThumbnailer.h:25:50:
>>> >> > fatal error: phonon/experimental/videodataoutput2.h: No such file
or
>>> >>
>>> >> directory
>>> >>
>>> >> > seems like we are not checking for the dependency on
>>> >> >
>>> >> > libphononexperimental-dev
>>> >>
>>> >> Hmm...seems like the reason is missing packages.
>>> >>
>>> >> In my distro(Arch Linux) phononexperimental is bundled with phonon
package
>>> >> itself. What distro you are you using?
>>> >
>>> > kubuntu
>>> Yes, in *buntu the experimental is packaged as a different package.
>>>
>>> > Thorsten
>>> > _______________________________________________
>>> > calligra-devel mailing list
>>> > calligra-devel at kde.org
>>> > https://mail.kde.org/mailman/listinfo/calligra-devel
>>> >
>>>
>>> --
>>> My blog http://gkbhat.blogspot.com
>>>
>>> _______________________________________________
>>> calligra-devel mailing list
>>> calligra-devel at kde.org
>>> https://mail.kde.org/mailman/listinfo/calligra-devel
>>>
>>
>>
>>
>> --
>> Shantanu Tushar (UTC +0530)
>> http://www.shantanutushar.com
>
>
>
> --
> Shantanu Tushar (UTC +0530)
> http://www.shantanutushar.com
>

--
My blog http://gkbhat.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra- ... hment.html>

Previous message: Missing dependency check in
Next message: Missing dependency check in
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the calligra-devel mailing list
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#291

帖子 243750496 » 2016-12-29 22:28

如果安装deb 包的时候系统给他升级到krita 2.9.2
那么请用
dpkg -P calligraplan
然后再用libertine->myapps->krita->remove就能成功卸载了
如果用apt-get安装后的软件即使系统重启也不会出现在libertine包的管理界面,只能再进命令行手动卸载,但是应用会可用而且出现图标
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#292

帖子 243750496 » 2016-12-30 11:10

本文简单介绍ubuntu/var/log/下各个日志文件,方便出现错误的时候查询相应的log



/var/log/alternatives.log-更新替代信息都记录在这个文件中

/var/log/apport.log -应用程序崩溃记录

/var/log/apt/ -用apt-get安装卸载软件的信息

/var/log/auth.log -登录认证log

/var/log/boot.log -包含系统启动时的日志。
/var/log/btmp -记录所有失败启动信息

/var/log/Consolekit - 记录控制台信息

/var/log/cpus - 涉及所有打印信息的日志

/var/log/dist-upgrade - dist-upgrade这种更新方式的信息

/var/log/dmesg -包含内核缓冲信息(kernel ringbuffer)。在系统启动时,显示屏幕上的与硬件有关的信息

/var/log/dpkg.log - 包括安装或dpkg命令清除软件包的日志。

/var/log/faillog - 包含用户登录失败信息。此外,错误登录命令也会记录在本文件中。

/var/log/fontconfig.log -与字体配置有关的log。

/var/log/fsck - 文件系统日志

/var/log/faillog -包含用户登录失败信息。此外,错误登录命令也会记录在本文件中。

/var/log/hp/

/var/log/install/

/var/log/jokey.log

/var/log/kern.log –包含内核产生的日志,有助于在定制内核时解决问题。

/var/log/lastlog —记录所有用户的最近信息。这不是一个ASCII文件,因此需要用lastlog命令查看内容。

/var/log/faillog –包含用户登录失败信息。此外,错误登录命令也会记录在本文件中。

/var/log/lightdm/

/var/log/mail/ – 这个子目录包含邮件服务器的额外日志。

/var/log/mail.err -类似于上面的

/var/log/news/

/var/log/pm-powersave.log

/var/log/samba/ –包含由samba存储的信息。

/var/log/syss.log

/var/log/speech-dispacher/

/var/log/udev

/var/log/ufw.log

/var/log/upstart/

/var/log/uattended-upgrades/

/var/log/wtmp —包含登录信息。使用wtmp可以找出谁正在登陆进入系统,谁使用命令显示这个文件或信息等。

/var/log/xorg.*.log— 来自X的日志信息。

先必须了解两个最基本的命令:

tail -n 10 test.log 查询日志尾部最后10行的日志;

tail -n +10 test.log 查询10行之后的所有日志;

head -n 10 test.log 查询日志文件中的头10行日志;

head -n -10 test.log 查询日志文件除了最后10行的其他所有日志;



场景1: 按行号查看---过滤出关键字附近的日志

因为通常时候我们用grep拿到的日志很少,我们需要查看附近的日志.

我是这样做的,首先: cat -n test.log |grep "地形" 得到关键日志的行号



<3>得到"地形"关键字所在的行号是102行. 此时如果我想查看这个关键字前10行和后10行的日志:

cat -n test.log |tail -n +92|head -n 20

tail -n +92表示查询92行之后的日志

head -n 20 则表示在前面的查询结果里再查前20条记录



场景2:那么按日期怎么查呢? 通常我们非常需要查找指定时间端的日志

sed -n '/2014-12-17 16:17:20/,/2014-12-17 16:17:36/p' test.log

特别说明:上面的两个日期必须是日志中打印出来的日志,否则无效.



关于日期打印,可以先 grep '2014-12-17 16:17:20' test.log 来确定日志中是否有该时间点,以确保第4步可以拿到日志

这个根据时间段查询日志是非常有用的命令.

6

如果我们查找的日志很多,打印在屏幕上不方便查看, 有两个方法:

(1)使用more和less命令, 如: cat -n test.log |grep "地形" |more 这样就分页打印了,通过点击空格键翻页

(2)使用 >xxx.txt 将其保存到文件中,到时可以拉下这个文件分析.如:

cat -n test.log |grep "地形" >xxx.txt

这几个日志查看方法应该可以满足日常需求了.

Ubuntu实时查看tomcat运行log


1、找到tomcat安装目录:cd tomcat/logs

2、tail -f catalina.out

3、ctrl+c 退出
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#293

帖子 243750496 » 2016-12-30 11:28

Building Krita 3.0 on Linux for cats
24 april 2016
Intro :


Changelog:
[24 apr 2016] (update!) Krita 3.0, Compatible Ubuntu 16.04
[ 7 may 2015] Refactoring for using the 2.9 branch while Krita split Calligra
[18 nov 2013] First publishing, during Krita 2.7 development

Why?

I wrote this guide after maintaining during a full-year a set of scripts to help user to compile and install Krita. This project was named Compilscripts and I decided to stop supporting it because build script always breaks: when something irregular happens, Compilscript fail and stop to work ... And irregularities are common on Linux. The user is dependent of a system he doesn't understand. And when it breaks, it breaks his production without letting him know how to fix it. That's not a solution. That’s why I thought the best approach is the Arch-way not to give an automatic tool , but creating a documentation dead-easy to make artist independent in the process and understand what they do. Artists should be able to install, update, go back in the history of code if something doesn’t work for them ; all of this with a minimal and easy to use documentation.


Fully illustrated:

I also offer here a set of illustrations about compiling ( all are released under CC-By ). I hope those picture will help other project's documentation to be more user friendly and appear more simple to understand by using a simple analogy : a cat building a house.

But why for cats ?

Because it's well known on the Internet : you can't go wrong with cats.


Setup directories


First obligatory step : preparing the place. Around 5GB of disk space will be needed on your home folder. We will set the structure advised by developers :

/home/<your-user-name>/krita/src for the source code.
/home/<your-user-name>/krita/build where Krita will be built
/home/<your-user-name>/krita/inst where Krita will be installed

Note : understand <your-user-name> as your user name on this documentation ( Ex : /home/deevad/krita/src )


To do it, open a Terminal, copy the line under (Ctrl+C) then paste it on the Terminal (Ctrl+Shift+V ) :

mkdir -p ~/krita/src ~/krita/build ~/krita/inst
安装目录在此(libertine容器的home目录里(子系统)):
/userdata/user-data/phablet/.cache/libertine-container/vivid/rootfs/home/phablet/krita
并非在/home/phablet(母系统)里,这点增强了touch系统的稳定性

Also check with your distribution package-manager that no calligra and krita packages are installed.

Use the search field of your package manager and remove packages.

Get the source code


Navigate your folder using the command cd ( change directories ) and the tab key for auto-completion.

cd ~/krita


Install git from your distribution package-manager ( eg. for Ubuntu; sudo apt install git )
Then ask git to download the source files in your src folder, pasting this line code in the Terminal , on the ~/krita directory :

git clone https://anongit.kde.org/krita.git src


So we enter the Krita source folder, then check if everything is updated :

cd src
git pull



Get the libraries and dependencies

This part can be tricky : each distribution got a different way to manage packages and so installing required libraries.

Krita needs a large amount of very fresh libraries (you'll need a GNU/Linux distribution with fresh packages) and there is not always a single command to get them.

The best place to share installation instruction for dependencies is the KDE Community Wiki : https://community.kde.org/Krita/linuxbuild
( Note : this link is a wiki, so don't hesitate to edit, correct, and then smooth the installation process for other artist later. )

If your distribution is not listed, or if you don't have the choice, the plan B is to find them one by one on your package manager . it sounds painfull, but no choice. In your sources, the file ~/krita/src/krita/3rdparty/README.md might help you to get advanced informations. ( you can also read an online version here ).

Here I'm on Ubuntu 16.04 , I'm using this command to install all library I need :

sudo apt-get install build-essential libcurl4-gnutls-dev libtiff5-dev libjpeg-turbo8-dev libpng12-dev gettext gettext-kde cmake git extra-cmake-modules libkf5archive-dev libkf5completion-dev libkf5config-dev libkf5coreaddons-dev libkf5guiaddons-dev libkf5i18n-dev libkf5itemmodels-dev libkf5itemviews-dev libkf5widgetsaddons-dev libkf5windowsystem-dev libkf5kiocore5 qtbase5-dev libqt5svg5-dev qtdeclarative5-dev libqt5x11extras5-dev libqt5opengl5-dev libeigen3-dev libxi-dev libboost-all-dev libopenexr-dev libexiv2-dev libgsl0-dev liblcms2-dev libpoppler-qt5-dev shared-mime-info libraw-dev libfftw3-dev libopencolorio-dev libopenjpeg-dev libvc-dev



Configuring





Configuring with cmake will check if your system is ready and if you get the good libraries installed. So, if any configuration problem happen you'll be able to read what libraries are missing. That's why it's important to read if all is ok.

Also, we will inform cmake our directories structure :

cd ~/krita/build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/krita/inst $HOME/krita/src -DWITH_GMIC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPRODUCTSET=ALL -DPACKAGERS_BUILD=ON -DBUILD_TESTING=OFF -DKDE4_BUILD_TESTS=OFF


Building

After reading the configure output, if all sounds ok , then it's time to build your own Krita.
Still on the folder /krita/build, call make with -j<number>, where <number> has to be replaced with the number of parallel job your processor is able to do ( and +1 recommended sometime ). Mine is a 8 core, let's use -j9 .

make -j9

Tip : if you don't know the number of core you have, this little command will answer you the number :

cat /proc/cpuinfo | grep processor | wc -l



Installing



If make built all the part of Krita without getting a mistake, and till 100% , you can ask make to install it in our install folder.

make install -j9


Path and environment variables


Your install is now done, but your system will not consider your install folder as a part of your system's application.
Let's show to your system the right path, inside a Terminal, copy line by line :

export KDEDIRS=$HOME/krita/inst:$KDEDIRS
export PATH=$HOME/krita/inst/bin:$PATH


Unfortunately those environment variable are not persistent, and will be lost after a shutdown or a restart of your system and our bridge will collapse.
To set them at any login , write them with your favorite text editor at the end of your ~/.profile file ( on certain distribution, the profile is named xprofile , check your hidden file in your home/<your-user-name> folder ).

First run

Congratulation ! you can run "last-Krita-from-a-minute-ago" by typing krita on a Terminal or via your desktop main menu.
If this one doesn't show Krita, look at your desktop-environment 's documentation : "how to create a custom launcher" .

Updating




You've heard of a new feature developed , or you read about an annoying bug fixed, and want to update ?
Fine, call git again . This time it will only append to your source folder the missing code lines. Not downloading the whole source pack.



cd into the source folder, then ask git to pull to update your source :

cd ~/krita/src/
git pull



But updating the source will not be sufficient ; to experience your new Krita version, we need to repeat the configure,compile and install process :

cd ~/krita/build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/krita/inst $HOME/krita/src -DWITH_GMIC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPRODUCTSET=ALL -DPACKAGERS_BUILD=ON -DBUILD_TESTING=OFF -DKDE4_BUILD_TESTS=OFF
make install -j8


If you update daily, you might like to automatise those command by making your own minimal bash script.

Rescuing




Recent development version might break, and sometime be unusable. Experimental changes are made daily.

It might affect your productivity if you don't know how to 'go back in time' ( ex: your favorite brush doesn't work anymore ).

But If you know how to do it, no issue can really affect you, because you know how to come back to a previous state.




To travel the source in time we need to read the timeline history. The Terminal tool for it is git log

cd ~/krita/src
git log


With git log , you can consult all the last changes to the code, named 'commit' . What interrest us is the long identification number ( ex: cca5819b19e0da3434192c5b352285b987a48796 ). You can scroll git log , copy the ID number then quit ( letter Q on keyboard ). Then time-travel your source directory :

git checkout cca5819b19e0da3434192c5b352285b987a48796


Now, configure, compile, and you'll be again in a safe place. Note that I advice the packages gitg or gitk to have a graphic user interface to visualise git history. Also an online version exist here .


To update again to the actual and fresh from a minute ago source-code named master , simply ask git to come back to it with git checkout then pull to update :

git checkout master
git pull


Conclusion
I hope this documentation will help many user to have good time using Krita development version.
Use the comments to give your feedbacks or ask questions, I'll do my best to update the information on this page.


You don't need to run CMake again after doing a git pull. It will do it automatically by itself so you don't have to. The steps needed to update are simply this:

cd into/build/dir
git pull
make -j 9
make install
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#294

帖子 243750496 » 2016-12-30 15:19

trying to overwrite '/usr/sbin/update-locale', which is also in package libc-bin 2.21-0ubuntu4.0.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package libc-l10n.
dpkg: considering deconfiguration of locales, which would be broken by installation of libc-l10n ...
dpkg: yes, will deconfigure locales (broken by libc-l10n)
Preparing to unpack .../libc-l10n_2.24-8_all.deb ...
De-configuring locales (2.13+git20120306-19) ...
Unpacking libc-l10n (2.24-8) ...
Preparing to unpack .../libc6_2.24-8_armhf.deb ...
Unpacking libc6:armhf (2.24-8) over (2.21-0ubuntu4.0.1) ...
Processing triggers for libc-bin (2.21-0ubuntu4.0.1) ...
Errors were encountered while processing:
/var/cache/apt/archives/locales_2.24-8_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu-phablet:/#
root@ubuntu-phablet:/# dpkg -P calligraplan
dpkg: warning: ignoring request to remove calligraplan which isn't installed
root@ubuntu-phablet:/# dpkg --configure -a
Setting up libc6:armhf (2.24-8) ...
Setting up libc-l10n (2.24-8) ...
dpkg: dependency problems prevent configuration of locales:
libc-l10n (2.24-8) breaks locales (<< 2.21-1) and is installed.
Version of locales to be configured is 2.13+git20120306-19.
libc6:armhf (2.24-8) breaks locales (<< 2.24) and is installed.
Version of locales to be configured is 2.13+git20120306-19.

dpkg: error processing package locales (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.21-0ubuntu4.0.1) ...
Errors were encountered while processing:
locales
root@ubuntu-phablet:/# dpkg -P calligraplan
dpkg: warning: ignoring request to remove calligraplan which isn't installed
root@ubuntu-phablet:/# dpkg -P libc-bin
dpkg: error processing package libc-bin (--purge):
this is an essential package; it should not be removed
Errors were encountered while processing:
libc-bin
root@ubuntu-phablet:/# dpkg -P locales
(Reading database ... 31358 files and directories currently installed.)
Removing locales (2.13+git20120306-19) ...
Purging configuration files for locales (2.13+git20120306-19) ...
root@ubuntu-phablet:/# apt-get install firefox
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
firefox : Depends: libasound2 (>= 1.0.16)
Depends: libdbus-1-3 (>= 1.9.14) but 1.8.12-1ubuntu5 is to be installed
Depends: libevent-2.0-5 (>= 2.0.10-stable) but it is not going to be installed
Depends: libhunspell-1.4-0 but it is not going to be installed
Depends: libnspr4 (>= 2:4.10.9) but it is not going to be installed
Depends: libnss3 (>= 2:3.26) but it is not going to be installed
Depends: libstdc++6 (>= 5.2) but 4.9.2-10ubuntu13 is to be installed
Depends: libvpx4 (>= 1.6.0) but it is not going to be installed
libc-bin : Depends: libc6 (< 2.22) but 2.24-8 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@ubuntu-phablet:/# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libmirclient8 libmircommon3 libmircommon4 libmircommon5 libmirprotobuf0
libprotobuf9 mir-client-platform-mesa2
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libc-bin manpages
Suggested packages:
man-browser
The following NEW packages will be installed:
manpages
The following packages will be upgraded:
libc-bin
1 upgraded, 1 newly installed, 0 to remove and 369 not upgraded.
Need to get 0 B/1,900 kB of archives.
After this operation, 1,442 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
libc-bin manpages
Install these packages without verification? [y/N] y
Selecting previously unselected package libc-bin.
(Reading database ... 30798 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.24-8_armhf.deb ...
Unpacking libc-bin (2.24-8) over (2.21-0ubuntu4.0.1) ...
Setting up libc-bin (2.24-8) ...
Updating /etc/nsswitch.conf to current default.
Selecting previously unselected package manpages.
(Reading database ... 30794 files and directories currently installed.)
Preparing to unpack .../manpages_4.09-2_all.deb ...
Unpacking manpages (4.09-2) ...
Setting up manpages (4.09-2) ...
root@ubuntu-phablet:/#
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#295

帖子 243750496 » 2016-12-30 17:34

deb http://mirrors.mit.edu/ubuntu-ports/ yakkety main restricted universe multiverse
deb http://mirrors.mit.edu/ubuntu-ports/ yakkety-updates main restricted universe multiverse
deb http://mirrors.mit.edu/ubuntu-ports/ yakkety-security main restricted universe multiverse
deb http://mirrors.mit.edu/ubuntu-ports/ yakkety-backports main restricted universe multiverse
deb http://mirror.csclub.uwaterloo.ca/ubuntu-ports/ yakkety main restricted universe multiverse
deb http://mirror.csclub.uwaterloo.ca/ubuntu-ports/ yakkety-updates main restricted universe multiverse
deb http://mirror.csclub.uwaterloo.ca/ubuntu-ports/ yakkety-security main restricted universe multiverse
deb http://mirror.csclub.uwaterloo.ca/ubuntu-ports/ yakkety-backports main restricted universe multiverse
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#296

帖子 243750496 » 2016-12-30 17:37

vi /etc/apt/sources.list
按i
随便输入几个文字然后
esc
然后
:wq
重新打开
选D
然后libertine 中vi报错会消失
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#297

帖子 243750496 » 2016-12-30 18:26

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ports.ubuntu.com/ubuntu-ports/ vivid main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ vivid-updates main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ vivid universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid universe
deb http://ports.ubuntu.com/ubuntu-ports/ vivid-updates universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-updates universe

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ports.ubuntu.com/ubuntu-ports/ vivid-backports main restricted universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-backports main restricted universe

deb http://ports.ubuntu.com/ubuntu-ports/ vivid-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ vivid-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-security universe
# deb http://ports.ubuntu.com/ubuntu-ports/ vivid-security multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ vivid-security multiverse
243750496
帖子: 1038
注册时间: 2012-06-09 15:40

Re: Ubuntu&Fedora装机&Mac装机(Mac装机将会持续更新)

#298

帖子 243750496 » 2016-12-30 18:28

对于VI的命令行,不需要特意的去记忆,写下来,让要用到的时候能找到就行



游标控制
h 游标向左移
j 游标向下移
k 游标向上移
l (or spacebar) 游标向右移
w 向前移动一个单词
b 向后移动一个单词
e 向前移动一个单词,且游标指向单词的末尾
( 移到当前句子的首部
) 移到下一个句子的首部
{ 移到当前段的首部
} 移到下一段的首部
[[ 移到当前区段的首部
]] 移到下一个区段的首部
0 移到当前行的首部
$ 移到当前行的尾部
^ 移到当前行第一个非空白字符的地方
+ or RETURN 移动到下一行的第一个字符
- 移动到上一行的第一个字符
n | 移动到当前行的字符n的地方
H 移动到当前屏幕的首部
M 移动到当前屏幕的中部
L 移动到当前屏幕的尾部
nH 移动到当前屏幕首部下的n行
nL 移动到当前屏幕尾部上的n行
Ctrl-F 移动到下一屏
Ctrl-B 移动到上一屏
Ctrl-D 向下移动半屏
Ctrl-U 向上移动半屏




z RETURN 刷新屏幕,调整屏幕,使当前的游标在刷新后的屏幕的首部(是不是不明白???不明白的话,试试就知道是什么意思了)
z . 刷新屏幕,调整屏幕,使当前的游标在刷新后的屏幕的中部
z - 刷新屏幕,调整屏幕,使当前的游标在刷新后的屏幕的尾部
Ctrl-L 刷新屏幕,不调整屏幕位置
Ctrl-R 刷新屏幕,不调整屏幕位置
/text 向下搜索text
/ 重复上次的搜索的内容向下搜索一次
?text 向上搜索text
? 重复上此搜索的内容向上搜索一次
n 重复上此的搜索,向下搜索
N 重复上此的搜索,向上搜索
/text/+n 移动到text所在行的下面n行
?text?-n 移动到text所在行的上面n行




nG 移动到n行
:n 移动到n行
G 移动在最后一行



内容编辑

A:当前行的尾部追加内容

i:游标前插入内容

I:游标后插入内容

o:在鼠标所在行的下面添加内容

O:在鼠标所在行的上面添加内容

ESC:退出编辑模式

Ctrl-T:移动到下一个tab

Backspace:向后移动一个字符

Ctrl-U:删除当前

cw:删除游标所在的字符,然后进入编辑模式

cc:删除游标所在的行,然后进入编辑模式

C:删除从游标所在的位置到行尾的字符,然后进入编辑模式

dd:删除当前行

ndd:删除第n行

D:删除当前行游标所在的位置后面的字符

dw:删除邮编所在的字符

d}:删除当前段剩余的字符

d^:删除游标前到行首的字符

c/pat:删除游标后面到第一次匹配字符间的内容

dn:删除游标后面到下一个匹配字符间的内容

dfa:删除当前行游标到匹配字符间的内容(匹配的字符也将被删)

dta:删除当前行游标到匹配字符间的内容(匹配的字符不被删)

dL:删除从游标到屏幕的最后一行之间的内容

dG:删除从游标到文件末尾之间的内容
J:连结上下两行的内容

p:在游标后面插入buffer中的内容

P:在游标前面插入buffer中的内容

rx:用x替换字符

Rtext:用text从游标开始处进行替换

u:撤销最后的改变

U:还原当前行的内容

x:向后删除游标所在位置的字符

X:向前删除游标前面的字符

nX:删除前面的n个字符,游标所在的字符将不会被删

.:还原最后的改变

~:反转字母的大小写

y:拷贝当前行到新的buffer

yy:拷贝当前行

"xyy:拷贝当前行的buffer名为x的buffer

ye:拷贝当单词的末尾



文件操作
:w 写文件
















:w! 写文件,忽略警告信息
:w! file 覆盖文件,忽略警告信息
:wq 写文件之后退出编辑
:q 退出编辑器
:q! 强制退出编辑器
:w file 把文件的内容写到另一个文件
ZZ 退出编辑器,如果文件有改动,则保存再退出
:x 退出编辑器,如果文件有改动,则保存再退出
:n1,n2w file 把n1行到n2行间的内容写到文件file
:n1,n2w >> file 把n1行到n2行间的内容追加到文件file
:e file2 在当前文件的命令行模式下编辑file2
:e! 重新从磁盘加载文件
:e# 交替编辑文件




:n 编辑地下一行
:n! 编辑地下一行(忽略警告)


:r file 在游标后面插入文件
:r !command 在当前行的后面,插入运行命令后的输出内容
回复