Debian -- Details of package odt2txt in sid

I just found a simple method to read .pdf, .doc, .odt, .rtf, etc. in vim!

I found it in an old thread from six years ago, figured I'd post it here in case anyone isn't aware:
" Read-only .doc through antiword autocmd BufReadPre *.doc silent set ro autocmd BufReadPost *.doc silent %!antiword "%" " Read-only odt/odp through odt2txt autocmd BufReadPre *.odt,*.odp silent set ro autocmd BufReadPost *.odt,*.odp silent %!odt2txt "%" " Read-only pdf through pdftotext autocmd BufReadPre *.pdf silent set ro autocmd BufReadPost *.pdf silent %!pdftotext -nopgbrk -layout -q -eol unix "%" - | fmt -w78 " Read-only rtf through unrtf autocmd BufReadPre *.rtf silent set ro autocmd BufReadPost *.rtf silent %!unrtf --text 
You'll need to install antiword, odt2txt, pdftotext and unrtf if you don't have them already.
If anyone has some other cool ones to add, or a more elegant solution, please share!
I'm going to start reading .pdf books in vim, marking my spot with ma (for example), that way, when I open the file again, and want to resume reading where I left off, I simply type 'a! :D
Edit: TIL '" resumes the cursor position before you last closed the file!
submitted by -Pelvis- to vim [link] [comments]

[bash] odtdiff: a simple script to convert two odt files to text, then open both in a diff tool

I found myself having to diff several libreoffice text (.odt) files so I made this simple script. It first ensures both files provided to it exist. It then generates unique filenames for each temporary text file to be created. Finally, it converts both .odt files to text using the temporary filenames and opens both in a diff tool (to use a different diff tool, replace vimdiff with whatever you want). The script's contents are as shown below:
#!/bin/bash # Ensure both files provided exist if [ ! -f "$1" ]; then exit 1; fi if [ ! -f "$2" ]; then exit 1; fi # Generate unique filenames for temporary files tmp1="/tmp/`basename $1`-`openssl rand -base64 12`.txt" tmp2="/tmp/`basename $2`-`openssl rand -base64 12`.txt" # Convert both files to text odt2txt "$1" > "$tmp1" odt2txt "$2" > "$tmp2" # Open both text files in diff tool vimdiff "$tmp1" "$tmp2" 
Use the script like this:
odtdiff /path/to/file1.odt /path/to/file2.odt 
submitted by Fallenalien22 to ScriptSwap [link] [comments]

Docker | apt-get update & apt-get install mc

Picture

Konsole

 [email protected]:/# apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:4 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [77.1 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [593 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB] Get:8 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB] Get:9 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [427 kB] Get:10 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3492 B] Get:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB] Get:12 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB] Get:13 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB] Get:14 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB] Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [250 kB] Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [962 kB] Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB] Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [792 kB] Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [18.5 kB] Get:20 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [5153 B] Get:21 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7734 B] Fetched 25.1 MB in 4s (5322 kB/s) Reading package lists... Done [email protected]:/# apt-get install mc Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: file ifupdown iproute2 isc-dhcp-client isc-dhcp-common libatm1 libdns-export162 libffi6 libgdbm3 libglib2.0-0 libglib2.0-data libgpm2 libicu55 libisc-export160 libmagic1 libmnl0 libperl5.22 libpng12-0 libslang2 libssh2-1 libxml2 libxtables11 mc-data mime-support netbase perl perl-modules-5.22 rename sgml-base shared-mime-info unzip xdg-user-dirs xml-core Suggested packages: ppp rdnssd iproute2-doc resolvconf avahi-autoipd isc-dhcp-client-ddns apparmor gpm arj bzip2 catdvi | texlive-binaries dbview djvulibre-bin genisoimage gv imagemagick links | w3m | lynx odt2txt poppler-utils python python-boto python-tz xpdf | pdf-viewer zip perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make sgml-base-doc debhelper The following NEW packages will be installed: file ifupdown iproute2 isc-dhcp-client isc-dhcp-common libatm1 libdns-export162 libffi6 libgdbm3 libglib2.0-0 libglib2.0-data libgpm2 libicu55 libisc-export160 libmagic1 libmnl0 libperl5.22 libpng12-0 libslang2 libssh2-1 libxml2 libxtables11 mc mc-data mime-support netbase perl perl-modules-5.22 rename sgml-base shared-mime-info unzip xdg-user-dirs xml-core 0 upgraded, 34 newly installed, 0 to remove and 9 not upgraded. Need to get 21.0 MB of archives. After this operation, 98.9 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libatm1 amd64 1:2.5.1-1.5 [24.2 kB] Get:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmnl0 amd64 1.0.3-5 [12.0 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 libslang2 amd64 2.3.0-2ubuntu1 [413 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 libgdbm3 amd64 1.8.3-13.1 [16.9 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 sgml-base all 1.26+nmu4ubuntu1 [12.5 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 libgpm2 amd64 1.20.4-6.1 [16.5 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 perl-modules-5.22 all 5.22.1-9ubuntu0.2 [2661 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libperl5.22 amd64 5.22.1-9ubuntu0.2 [3391 kB] Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 perl amd64 5.22.1-9ubuntu0.2 [237 kB] Get:10 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmagic1 amd64 1:5.25-2ubuntu1 [216 kB] Get:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 file amd64 1:5.25-2ubuntu1 [21.2 kB] Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 iproute2 amd64 4.3.0-1ubuntu3.16.04.3 [522 kB] Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ifupdown amd64 0.8.10ubuntu1.2 [54.9 kB] Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libisc-export160 amd64 1:9.10.3.dfsg.P4-8ubuntu1.10 [153 kB] Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdns-export162 amd64 1:9.10.3.dfsg.P4-8ubuntu1.10 [666 kB] Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 isc-dhcp-client amd64 4.3.3-5ubuntu12.10 [224 kB] Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 isc-dhcp-common amd64 4.3.3-5ubuntu12.10 [105 kB] Get:18 http://archive.ubuntu.com/ubuntu xenial/main amd64 libffi6 amd64 3.2.1-4 [17.8 kB] Get:19 http://archive.ubuntu.com/ubuntu xenial/main amd64 libpng12-0 amd64 1.2.54-1ubuntu1 [116 kB] Get:20 http://archive.ubuntu.com/ubuntu xenial/main amd64 libxtables11 amd64 1.6.0-2ubuntu3 [27.2 kB] Get:21 http://archive.ubuntu.com/ubuntu xenial/main amd64 mime-support all 3.59ubuntu1 [31.0 kB] Get:22 http://archive.ubuntu.com/ubuntu xenial/main amd64 netbase all 5.3 [12.9 kB] Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libglib2.0-0 amd64 2.48.2-0ubuntu1 [1119 kB] Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libglib2.0-data all 2.48.2-0ubuntu1 [132 kB] Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libicu55 amd64 55.1-7ubuntu0.3 [7658 kB] Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxml2 amd64 2.9.3+dfsg1-1ubuntu0.5 [697 kB] Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 shared-mime-info amd64 1.5-2ubuntu0.1 [405 kB] Get:28 http://archive.ubuntu.com/ubuntu xenial/main amd64 xdg-user-dirs amd64 0.15-2ubuntu6 [61.7 kB] Get:29 http://archive.ubuntu.com/ubuntu xenial/main amd64 xml-core all 0.13+nmu2 [23.3 kB] Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 libssh2-1 amd64 1.5.0-2ubuntu0.1 [70.2 kB] Get:31 http://archive.ubuntu.com/ubuntu xenial/universe amd64 mc-data all 3:4.8.15-2 [1202 kB] Get:32 http://archive.ubuntu.com/ubuntu xenial/universe amd64 mc amd64 3:4.8.15-2 [462 kB] Get:33 http://archive.ubuntu.com/ubuntu xenial/main amd64 rename all 0.20-4 [12.0 kB] Get:34 http://archive.ubuntu.com/ubuntu xenial/main amd64 unzip amd64 6.0-20ubuntu1 [158 kB] Fetched 21.0 MB in 4s (4639 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libatm1:amd64. (Reading database ... 4768 files and directories currently installed.) Preparing to unpack .../libatm1_1%3a2.5.1-1.5_amd64.deb ... Unpacking libatm1:amd64 (1:2.5.1-1.5) ... Selecting previously unselected package libmnl0:amd64. Preparing to unpack .../libmnl0_1.0.3-5_amd64.deb ... Unpacking libmnl0:amd64 (1.0.3-5) ... Selecting previously unselected package libslang2:amd64. Preparing to unpack .../libslang2_2.3.0-2ubuntu1_amd64.deb ... Unpacking libslang2:amd64 (2.3.0-2ubuntu1) ... Selecting previously unselected package libgdbm3:amd64. Preparing to unpack .../libgdbm3_1.8.3-13.1_amd64.deb ... Unpacking libgdbm3:amd64 (1.8.3-13.1) ... Selecting previously unselected package sgml-base. Preparing to unpack .../sgml-base_1.26+nmu4ubuntu1_all.deb ... Unpacking sgml-base (1.26+nmu4ubuntu1) ... Selecting previously unselected package libgpm2:amd64. Preparing to unpack .../libgpm2_1.20.4-6.1_amd64.deb ... Unpacking libgpm2:amd64 (1.20.4-6.1) ... Selecting previously unselected package perl-modules-5.22. Preparing to unpack .../perl-modules-5.22_5.22.1-9ubuntu0.2_all.deb ... Unpacking perl-modules-5.22 (5.22.1-9ubuntu0.2) ... Selecting previously unselected package libperl5.22:amd64. Preparing to unpack .../libperl5.22_5.22.1-9ubuntu0.2_amd64.deb ... Unpacking libperl5.22:amd64 (5.22.1-9ubuntu0.2) ... Selecting previously unselected package perl. Preparing to unpack .../perl_5.22.1-9ubuntu0.2_amd64.deb ... Unpacking perl (5.22.1-9ubuntu0.2) ... Selecting previously unselected package libmagic1:amd64. Preparing to unpack .../libmagic1_1%3a5.25-2ubuntu1_amd64.deb ... Unpacking libmagic1:amd64 (1:5.25-2ubuntu1) ... Selecting previously unselected package file. Preparing to unpack .../file_1%3a5.25-2ubuntu1_amd64.deb ... Unpacking file (1:5.25-2ubuntu1) ... Selecting previously unselected package iproute2. Preparing to unpack .../iproute2_4.3.0-1ubuntu3.16.04.3_amd64.deb ... Unpacking iproute2 (4.3.0-1ubuntu3.16.04.3) ... Selecting previously unselected package ifupdown. Preparing to unpack .../ifupdown_0.8.10ubuntu1.2_amd64.deb ... Unpacking ifupdown (0.8.10ubuntu1.2) ... Selecting previously unselected package libisc-export160. Preparing to unpack .../libisc-export160_1%3a9.10.3.dfsg.P4-8ubuntu1.10_amd64.deb ... Unpacking libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.10) ... Selecting previously unselected package libdns-export162. Preparing to unpack .../libdns-export162_1%3a9.10.3.dfsg.P4-8ubuntu1.10_amd64.deb ... Unpacking libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.10) ... Selecting previously unselected package isc-dhcp-client. Preparing to unpack .../isc-dhcp-client_4.3.3-5ubuntu12.10_amd64.deb ... Unpacking isc-dhcp-client (4.3.3-5ubuntu12.10) ... Selecting previously unselected package isc-dhcp-common. Preparing to unpack .../isc-dhcp-common_4.3.3-5ubuntu12.10_amd64.deb ... Unpacking isc-dhcp-common (4.3.3-5ubuntu12.10) ... Selecting previously unselected package libffi6:amd64. Preparing to unpack .../libffi6_3.2.1-4_amd64.deb ... Unpacking libffi6:amd64 (3.2.1-4) ... Selecting previously unselected package libpng12-0:amd64. Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1) ... Selecting previously unselected package libxtables11:amd64. Preparing to unpack .../libxtables11_1.6.0-2ubuntu3_amd64.deb ... Unpacking libxtables11:amd64 (1.6.0-2ubuntu3) ... Selecting previously unselected package mime-support. Preparing to unpack .../mime-support_3.59ubuntu1_all.deb ... Unpacking mime-support (3.59ubuntu1) ... Selecting previously unselected package netbase. Preparing to unpack .../archives/netbase_5.3_all.deb ... Unpacking netbase (5.3) ... Selecting previously unselected package libglib2.0-0:amd64. Preparing to unpack .../libglib2.0-0_2.48.2-0ubuntu1_amd64.deb ... Unpacking libglib2.0-0:amd64 (2.48.2-0ubuntu1) ... Selecting previously unselected package libglib2.0-data. Preparing to unpack .../libglib2.0-data_2.48.2-0ubuntu1_all.deb ... Unpacking libglib2.0-data (2.48.2-0ubuntu1) ... Selecting previously unselected package libicu55:amd64. Preparing to unpack .../libicu55_55.1-7ubuntu0.3_amd64.deb ... Unpacking libicu55:amd64 (55.1-7ubuntu0.3) ... Selecting previously unselected package libxml2:amd64. Preparing to unpack .../libxml2_2.9.3+dfsg1-1ubuntu0.5_amd64.deb ... Unpacking libxml2:amd64 (2.9.3+dfsg1-1ubuntu0.5) ... Selecting previously unselected package shared-mime-info. Preparing to unpack .../shared-mime-info_1.5-2ubuntu0.1_amd64.deb ... Unpacking shared-mime-info (1.5-2ubuntu0.1) ... Selecting previously unselected package xdg-user-dirs. Preparing to unpack .../xdg-user-dirs_0.15-2ubuntu6_amd64.deb ... Unpacking xdg-user-dirs (0.15-2ubuntu6) ... Selecting previously unselected package xml-core. Preparing to unpack .../xml-core_0.13+nmu2_all.deb ... Unpacking xml-core (0.13+nmu2) ... Selecting previously unselected package libssh2-1:amd64. Preparing to unpack .../libssh2-1_1.5.0-2ubuntu0.1_amd64.deb ... Unpacking libssh2-1:amd64 (1.5.0-2ubuntu0.1) ... Selecting previously unselected package mc-data. Preparing to unpack .../mc-data_3%3a4.8.15-2_all.deb ... Unpacking mc-data (3:4.8.15-2) ... Selecting previously unselected package mc. Preparing to unpack .../mc_3%3a4.8.15-2_amd64.deb ... Unpacking mc (3:4.8.15-2) ... Selecting previously unselected package rename. Preparing to unpack .../archives/rename_0.20-4_all.deb ... Unpacking rename (0.20-4) ... Selecting previously unselected package unzip. Preparing to unpack .../unzip_6.0-20ubuntu1_amd64.deb ... Unpacking unzip (6.0-20ubuntu1) ... Processing triggers for libc-bin (2.23-0ubuntu10) ... Processing triggers for systemd (229-4ubuntu21.1) ... Setting up libatm1:amd64 (1:2.5.1-1.5) ... Setting up libmnl0:amd64 (1.0.3-5) ... Setting up libslang2:amd64 (2.3.0-2ubuntu1) ... Setting up libgdbm3:amd64 (1.8.3-13.1) ... Setting up sgml-base (1.26+nmu4ubuntu1) ... Setting up libgpm2:amd64 (1.20.4-6.1) ... Setting up perl-modules-5.22 (5.22.1-9ubuntu0.2) ... Setting up libperl5.22:amd64 (5.22.1-9ubuntu0.2) ... Setting up perl (5.22.1-9ubuntu0.2) ... update-alternatives: using /usbin/prename to provide /usbin/rename (rename) in auto mode Setting up libmagic1:amd64 (1:5.25-2ubuntu1) ... Setting up file (1:5.25-2ubuntu1) ... Setting up iproute2 (4.3.0-1ubuntu3.16.04.3) ... Setting up ifupdown (0.8.10ubuntu1.2) ... Creating /etc/network/interfaces. Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.10) ... Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.10) ... Setting up isc-dhcp-client (4.3.3-5ubuntu12.10) ... Setting up isc-dhcp-common (4.3.3-5ubuntu12.10) ... Setting up libffi6:amd64 (3.2.1-4) ... Setting up libpng12-0:amd64 (1.2.54-1ubuntu1) ... Setting up libxtables11:amd64 (1.6.0-2ubuntu3) ... Setting up mime-support (3.59ubuntu1) ... Setting up netbase (5.3) ... Setting up libglib2.0-0:amd64 (2.48.2-0ubuntu1) ... No schema files found: doing nothing. Setting up libglib2.0-data (2.48.2-0ubuntu1) ... Setting up libicu55:amd64 (55.1-7ubuntu0.3) ... Setting up libxml2:amd64 (2.9.3+dfsg1-1ubuntu0.5) ... Setting up shared-mime-info (1.5-2ubuntu0.1) ... Setting up xdg-user-dirs (0.15-2ubuntu6) ... Setting up xml-core (0.13+nmu2) ... Setting up libssh2-1:amd64 (1.5.0-2ubuntu0.1) ... Setting up mc-data (3:4.8.15-2) ... Setting up mc (3:4.8.15-2) ... update-alternatives: using /usbin/mcview to provide /usbin/view (view) in auto mode update-alternatives: using /usbin/mcedit to provide /usbin/editor (editor) in auto mode Setting up rename (0.20-4) ... update-alternatives: using /usbin/file-rename to provide /usbin/rename (rename) in auto mode Setting up unzip (6.0-20ubuntu1) ... Processing triggers for libc-bin (2.23-0ubuntu10) ... Processing triggers for systemd (229-4ubuntu21.1) ... Processing triggers for sgml-base (1.26+nmu4ubuntu1) ... [email protected]:/ 
submitted by patrickschanen to psnebc [link] [comments]

I am a linux noob: need help converting odt to txt...

Using Ubuntu 14.04 LTS. Been looking for a simple way to convert odt to txt while keeping the formatting but I just can't figure it out. Tried unoconv command and the odt2txt program but to no avail. Every time I try to convert using the terminal, is says the file is not found. Step by step instructions would really help out this amateur.
Edit: .odt to .txt (with bbcode)
submitted by 1_of_the_yard-wolves to linux4noobs [link] [comments]

Debian 8.5 & OpenBSD 6.0 (obsd) comparative ? nooooo......

During the past week I was in a chat about the new version of "OBSD 6.0" and I had talk about "Debian 8.5", comparatives are next step. I don't want to say "who is better, or fast, or nice, or....."
I prepared this post with the instalation process in both O.S. and post instalation process, smart people have to identify which is better. (my personal opinion is Debian off course...)
I Choose VirtualBox, last version and my ASUS TP300La notebook as the hardware. &4 bits in both VM Servers and ISOs. Trying to do the standard process in both. The complete process is this:
  1. Environments with both servers, same virtual configuration 1 cpu, 1 gb ram, disco near 12 gb, network bridged, sound/usb connected. (both standard options)
  2. Installation. The option to choose Graphic and Text install is a "+1", with the graphic install you could check your video card/monitor too.
Debian could choose Graphic or Text install, (Text selected) OBsd 6.0, just text install
  1. Debian Select Keyboard and Location, timezone. OBSD Select Keyboard
  2. Install Part 2. OBsd hostname, ethernet card, dhcp, ipv6. Select services to startup, ssh, X server, Timezone. Debian, name, password, user. (not network config yet).
  3. Disk partition. Simple way Whole disk / Entire Disk.
Debian all in one partition, EXT4 98%, Swap 2%
OBSD. 10 partitions (may be too much) or net, depending of the usage of the server. for Real service bringing service to lots of users, this is great. For 1 user not too much.
  1. Packages / APP.
OBSD, select HTTP to install them. Debian, installing "base packages", kernel, some basic tools, and config them into disk, and later ask for Mirrors (repositories)
  1. Select all packages from Standard Install, define PROXY and go. OBSD, select all packages (default), near 1 minute to install all of them (7) using cd0 (local cd)
Debian, select Mirror, define proxy. Less than 1 min. to download packages info. Select GUI, services and "blends", I choose XFCE (a bit largeheavy than others), ssh. (d7c) More than 5 minutes to download and install 1047 packages (basic, + xfce + services), timing related to speed of access to internet. Install GRUB (1 second)
  1. OBSD reboot and start it.
  2. Running OBSD less than 1 minute and running in GUI. Type usepass and graph terminal (o9b). 2nd reboot, same time... I guess the first boot was really fast and no special differences between 1th and 2nd boot.
Debian, reboot, startup. With XFCE4, login. XFCE4 running (d9b)
  1. Updating
OBSD, useradd -b /home/dac -m dac (create a new user) not sure what's the error, but the pkg_check failed. (o10) pkg_add mc (failed too).
export PKG_PATH=http://ftp2.eu.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(uname -p)/ pkg_add mc (error, I can't install it)
The PKG_ADD is similar to "APT/APT_GET" in debian the Ports folder is similar to "Rolling release" where an APP is downloaded (source), and compiled in each server.
Installing "screen" utility

pkg_add screen

quirks-2.241 signed on 2016-07-26T16:56:10Z Ambiguous: choose package for screen a 0: 1: screen-4.0.3p6 2: screen-4.0.3p6-shm Your choice: 1 screen-4.0.3p6: ok

pkg_add mc

quirks-2.241 signed on 2016-07-26T16:56:10Z Error from http://ftp2.eu.openbsd.org/pub/OpenBSD/6.0/packages/amd64/mc-4.8.16p0.tgz ftp: ftp2.eu.openbsd.org: no address associated with name Can't find CONTENTS from http://ftp2.eu.openbsd.org/pub/OpenBSD/6.0/packages/amd64/mc-4.8.16p0.tgz --- mc-4.8.16p0 ------------------- Can't install mc-4.8.16p0: bad package
I FOUND THE ERROR I had to add this lines in /root/.profile file to define REPO online and THE PROXY.
export PKG_PATH=http://ftp2.eu.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(uname -p)/
export http_proxy="http://192.168.1.2:8080" export https_proxy=$http_proxy export HTTP_PROXY=$http_proxy export HTTPS_PROXY=$http_proxy
export ftp_proxy=$http_proxy export FTP_PROXY=$http_proxy
After this, pkg_add install mc
quirks-2.241 signed on 2016-07-26T16:56:10Z Can't find install mc-4.8.16p0:libffi-3.2.1p2: ok mc-4.8.16p0:python-2.7.12: ok mc-4.8.16p0:glib2-2.48.1: ok mc-4.8.16p0:png-1.6.23: ok mc-4.8.16p0:oniguruma-5.9.6: ok mc-4.8.16p0:libslang-2.2.4p2: ok mc-4.8.16p0:libssh2-1.7.0: ok mc-4.8.16p0:gdiff-3.3p0: ok mc-4.8.16p0:unzip-6.0p9: ok mc-4.8.16p0: ok Look in /uslocal/share/doc/pkg-readmes for extra documentation. --- +python-2.7.12 ------------------- If you want to use this package as your default system python, as root create symbolic links like so (overwriting any previous default): ln -sf /uslocal/bin/python2.7 /uslocal/bin/python ln -sf /uslocal/bin/python2.7-2to3 /uslocal/bin/2to3 ln -sf /uslocal/bin/python2.7-config /uslocal/bin/python-config ln -sf /uslocal/bin/pydoc2.7 /uslocal/bin/pydoc
I installed "PORTS" too. wget http://ftp2.eu.openbsd.org/pub/OpenBSD/6.0/ports.tar.gz Untar it into /usports (141 mb used)

pkg_add install xfce

quirks-2.241 signed on 2016-07-26T16:56:10Z Can't find install Error from http://ftp2.eu.openbsd.org/pub/OpenBSD/6.0/packages/amd64/xfce-4.12p3.tgz ftp: ftp2.eu.openbsd.org: no address associated with name Can't find CONTENTS from http://ftp2.eu.openbsd.org/pub/OpenBSD/6.0/packages/amd64/xfce-4.12p3.tgz --- xfce-4.12p3 ------------------- Can't install xfce-4.12p3: bad package
Debian, apt update, apt upgrade, apt dist-upgrade (the standard way to update server) (d10). apt install screen
apt-get install screen Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: byobu | screenie | iselect The following NEW packages will be installed: screen 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 586 kB of archives. After this operation, 1004 kB of additional disk space will be used. Get:1 http://ftp.us.debian.org/debian stretch/main amd64 screen amd64 4.4.0-4 [586 kB] Fetched 586 kB in 9s (64.3 kB/s) Selecting previously unselected package screen. (Reading database ... 84818 files and directories currently installed.) Preparing to unpack .../screen_4.4.0-4_amd64.deb ... Unpacking screen (4.4.0-4) ... Processing triggers for systemd (231-4) ... Processing triggers for man-db (2.7.5-1) ... Setting up screen (4.4.0-4) ... Processing triggers for systemd (231-4) ...
apt-get install mc Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: mc-data Suggested packages: arj catdvi | texlive-binaries dbview djvulibre-bin genisoimage gv imagemagick links | w3m | lynx odt2txt poppler-utils python-boto python-tz zip The following NEW packages will be installed: mc mc-data 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 1776 kB of archives. After this operation, 7112 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://ftp.us.debian.org/debian stretch/main amd64 mc-data all 3:4.8.17-1 [1265 kB] Get:2 http://ftp.us.debian.org/debian stretch/main amd64 mc amd64 3:4.8.17-1 [511 kB] Fetched 1776 kB in 6s (259 kB/s) Selecting previously unselected package mc-data. (Reading database ... 84878 files and directories currently installed.) Preparing to unpack .../0-mc-data_3%3a4.8.17-1_all.deb ... Unpacking mc-data (3:4.8.17-1) ... Selecting previously unselected package mc. Preparing to unpack .../1-mc_3%3a4.8.17-1_amd64.deb ... Unpacking mc (3:4.8.17-1) ... Processing triggers for mime-support (3.60) ... Processing triggers for desktop-file-utils (0.23-1) ... Setting up mc-data (3:4.8.17-1) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for hicolor-icon-theme (0.15-1) ... Setting up mc (3:4.8.17-1) ... update-alternatives: using /usbin/mcview to provide /usbin/view (view) in auto mode
In Debian to compare instalation process to OBSD, I think in download linux-sources and "compile" tools and install from Source. (gcc, make, others)
apt-get install linux-sources
  1. Resources Used. Make sense to invest hours to use 50 mb less in something ? Our notebooks/servers have 4/8/64gb ram..... and Teras in disks.
Debian. (d11) Running with basic/network/standards tools Firefox, Libreoffice, Gimp, Ristretto & VLC. Disk space used 3gb Memory near 190 mb used (swap free), less than 0.3% CPU usage. Service running (ssh 22)
Filesystem Size Used Avail Use% Mounted on udev 513M 0 513M 0% /dev tmpfs 105M 3.5M 102M 4% /run /dev/sda1 12G 3.0G 8.0G 28% / tmpfs 523M 70k 523M 1% /dev/shm tmpfs 5.3M 4.1k 5.3M 1% /run/lock tmpfs 523M 0 523M 0% /sys/fs/cgroup tmpfs 105M 4.1k 105M 1% /run/use115 tmpfs 105M 8.2k 105M 1% /run/use1000
Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 192.168.10.168:22 192.168.10.156:34968 ESTABLISHED tcp6 0 0 :::22 :::* LISTEN udp 0 0 0.0.0.0:5353 0.0.0.0:* udp 0 0 0.0.0.0:57911 0.0.0.0:* udp 0 0 0.0.0.0:68 0.0.0.0:* udp6 0 0 :::5353 :::* udp6 0 0 :::60036 :::* raw6 0 0 :::58 :::* 7
OpenBsd 6, running, only basic tools installed and no GUI tools (o11) 600 mb on disk, 54 mb used (with FVWM GUI)
Filesystem Size Used Avail Capacity Mounted on /dev/wd0a 530M 42.1M 461M 8% / /dev/wd0k 4.5G 20.0K 4.3G 0% /home /dev/wd0d 841M 20.0K 799M 0% /tmp /dev/wd0f 1.3G 372M 900M 29% /usr /dev/wd0g 776M 212M 525M 29% /usX11R6 /dev/wd0h 2.9G 5.2M 2.7G 0% /uslocal /dev/wd0j 1.6G 2.0K 1.5G 0% /usobj /dev/wd0i 1.2G 2.0K 1.1G 0% /ussrc /dev/wd0e 1.2G 5.3M 1.2G 0% /var
Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) ip 0 0 . . 17 Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp 0 0 192.168.10.167.22 192.168.10.156.58616 ESTABLISHED tcp 0 0 127.0.0.1.25 . LISTEN tcp 0 0 .22 *. LISTEN Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) udp 0 0 192.168.10.167.25592 81.19.96.148.123 udp 0 0 192.168.10.167.14580 194.140.131.21.123 udp 0 0 192.168.10.167.34583 193.145.15.15.123 udp 0 0 .514 *. Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp6 0 0 .22 *. LISTEN tcp6 0 0 fe80::1%lo0.25 . LISTEN tcp6 0 0 ::1.25 . LISTEN Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) udp6 0 0 .514 *.
  1. Service running on DEBIAN. PID TTY TIME CMD 1 ? 00:00:00 systemd 2 ? 00:00:00 kthreadd 3 ? 00:00:00 ksoftirqd/0 5 ? 00:00:00 kworke0:0H 6 ? 00:00:00 kworkeu2:0 7 ? 00:00:00 rcu_sched 8 ? 00:00:00 rcu_bh 9 ? 00:00:00 migration/0 10 ? 00:00:00 watchdog/0 11 ? 00:00:00 cpuhp/0 12 ? 00:00:00 kdevtmpfs 13 ? 00:00:00 netns 14 ? 00:00:00 khungtaskd 15 ? 00:00:00 oom_reaper 16 ? 00:00:00 writeback 17 ? 00:00:00 kcompactd0 18 ? 00:00:00 ksmd 20 ? 00:00:00 khugepaged 21 ? 00:00:00 crypto 22 ? 00:00:00 kintegrityd 23 ? 00:00:00 bioset 24 ? 00:00:00 kblockd 25 ? 00:00:00 devfreq_wq 26 ? 00:00:00 watchdogd 27 ? 00:00:00 kswapd0 28 ? 00:00:00 vmstat 41 ? 00:00:00 kthrotld 42 ? 00:00:00 ipv6_addrconf 48 ? 00:00:00 deferwq 99 ? 00:00:00 ata_sff 144 ? 00:00:00 kpsmoused 166 ? 00:00:00 kworke0:2 569 ? 00:00:00 scsi_eh_0 573 ? 00:00:00 scsi_tmf_0 577 ? 00:00:00 scsi_eh_1 578 ? 00:00:00 kworkeu2:3 579 ? 00:00:00 scsi_tmf_1 581 ? 00:00:00 scsi_eh_2 583 ? 00:00:00 scsi_tmf_2 642 ? 00:00:00 bioset 643 ? 00:00:00 bioset 674 ? 00:00:00 kworke0:3 682 ? 00:00:00 kworke0:1H 739 ? 00:00:00 jbd2/sda1-8 740 ? 00:00:00 ext4-rsv-conver 769 ? 00:00:00 systemd-journal 772 ? 00:00:00 kauditd 779 ? 00:00:00 systemd-udevd 1398 ? 00:00:00 systemd-timesyn 1403 ? 00:00:00 dbus-daemon 1422 ? 00:00:00 NetworkManager 1423 ? 00:00:00 rsyslogd 1425 ? 00:00:00 avahi-daemon 1427 ? 00:00:00 systemd-logind 1428 ? 00:00:00 ModemManager 1429 ? 00:00:00 cron 1430 ? 00:00:00 anacron 1438 ? 00:00:00 avahi-daemon 1478 ? 00:00:00 polkitd 1503 ? 00:00:00 sshd 1507 tty1 00:00:00 agetty 1514 ? 00:00:00 lightdm 1523 tty7 00:00:06 Xorg 1526 ? 00:00:00 dhclient 1575 ? 00:00:00 systemd 1576 ? 00:00:00 (sd-pam) 1633 ? 00:00:00 dbus-launch 1634 ? 00:00:00 dbus-daemon 1678 ? 00:00:00 lightdm 1683 ? 00:00:00 systemd 1684 ? 00:00:00 (sd-pam) 1690 ? 00:00:00 sh 1715 ? 00:00:00 dbus-launch 1716 ? 00:00:00 dbus-daemon 1732 ? 00:00:00 ssh-agent 1743 ? 00:00:00 xfce4-session 1745 ? 00:00:00 at-spi-bus-laun 1750 ? 00:00:00 dbus-daemon 1754 ? 00:00:00 at-spi2-registr 1756 ? 00:00:00 xfconfd 1762 ? 00:00:00 xfwm4 1766 ? 00:00:00 xfce4-panel 1768 ? 00:00:00 Thunar 1770 ? 00:00:00 xfdesktop 1771 ? 00:00:00 nm-applet 1777 ? 00:00:00 xfsettingsd 1778 ? 00:00:00 applet.py 1780 ? 00:00:00 gvfsd 1790 ? 00:00:00 light-locker 1794 ? 00:00:00 pulseaudio 1795 ? 00:00:00 rtkit-daemon 1801 ? 00:00:00 dconf-service 1805 ? 00:00:00 xfce4-power-man 1808 ? 00:00:00 polkit-gnome-au 1817 ? 00:00:00 xfce4-notifyd 1818 ? 00:00:00 upowerd 1845 ? 00:00:00 panel-6-systray 1846 ? 00:00:00 panel-2-actions 1850 ? 00:00:00 gvfs-udisks2-vo 1853 ? 00:00:00 udisksd 1864 ? 00:00:00 gvfsd-trash 1871 ? 00:00:00 gvfsd-metadata 1977 ? 00:00:00 packagekitd 2083 ? 00:00:00 xfce4-terminal 2087 ? 00:00:00 gnome-pty-helpe 2088 pts/0 00:00:00 bash 2093 pts/0 00:00:00 su 2094 pts/0 00:00:00 bash 2097 ? 00:00:00 kworke0:0 2179 ? 00:00:00 sshd 2181 ? 00:00:00 sshd 2182 pts/1 00:00:00 bash 2191 pts/1 00:00:00 su 2192 pts/1 00:00:00 bash 2194 pts/1 00:00:00 ps
OBSD
PID TT STAT TIME COMMAND 1 ?? Is 0:01.00 /sbin/init 84152 ?? Is 0:00.00 dhclient: em0 [priv] (dhclient) 74648 ?? Isp 0:00.00 dhclient: em0 (dhclient) 42357 ?? Isp 0:00.00 syslogd: [priv] (syslogd) 2432 ?? Sp 0:00.01 /ussbin/syslogd 36845 ?? Is 0:00.00 pflogd: [priv] (pflogd) 83868 ?? Sp 0:00.01 pflogd: [running] -s 160 -i pflog0 -f /valog/pflog 25347 ?? Ip 0:00.01 ntpd: dns engine (ntpd) 549 ?? S
  1. Remote access SSH, not too different.
Debian The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usshare/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Sep 2 11:39:49 2016 from 192.168.10.156 [email protected]:~$
OBSD Last login: Fri Sep 2 11:43:13 2016 OpenBSD 6.0 (GENERIC) #2148: Tue Jul 26 12:55:20 MDT 2016
Welcome to OpenBSD: The pro-actively secure Unix-like operating system.
Please use the sendbug(1) utility to report bugs in the system. Before reporting a bug, please try to reproduce it with the latest version of the code. With bug reports, please try to ensure that enough information to reproduce the problem is enclosed, and if a known fix for it exists, include that as well.
submitted by dcialdella to linux [link] [comments]

odt2txt is a command-line tool which extracts the text out of OpenDocument Texts, as produced by OpenOffice.org, KOffice, StarOffice and others. odt2txt can also extract text from some file formats similar to OpenDocument Text, such as OpenOffice.org XML (*.sxw), which was used by OpenOffice.org version 1.x and older StarOffice versions. ODT2PANDOC is a slight variant of ODT2TXT. Right now, the only differences are that it generates ATX style headers and uses *asterisks* for italics, neither of which is in any way specific to pandoc's extended markdown. ODT2TXT ===== ODT2TXT convers files in Open Document Text format (ODT) into: Markdown-formatted plain text. odt2txt is a command-line tool which extracts the text out of OpenDocument Texts, as produced by OpenOffice.org, KOffice, StarOffice and others. odt2txt can also extract text from some file formats similar to OpenDocument Text, such as OpenOffice.org XML (*.sxw), which was used by OpenOffice.org version 1.x and older StarOffice versions. [2020-06-11] odt2txt 0.5-5 MIGRATED to testing (Debian testing watch) [2020-06-09] Accepted odt2txt 0.5-5 (source) into unstable (Luis Paulo Linares) (signed by: Joao Eriberto Mota Filho)[2020-06-06] odt2txt 0.5-4 MIGRATED to testing (Debian testing watch) odt2txt is a simple command-line utility whose sole purpose is to create plain text documents (TXT format) from ODT files, supported by OpenOffice.But it integrates a few other options as well.

[index] [6149] [7766] [6140] [6140] [8029] [4204] [7592] [7930] [941] [4658]

http://forex-portugal.telfermining.pw