oio11: (Default)
Shell-скриптинг в среде Android - «Хакер»

Евгений Зобнин
Редактор рубрики X-Mobile

Read more... )

http://xakep.ru/2014/10/24/android-shell-script/
oio11: (Default)

Anwendungen

Zum Verständnis dieses Artikels sind folgende Seiten hilfreich:

Wiki/Icons/terminal.pngUnter Linux gibt es nicht nur für nahezu jeden Zweck mächtige und durchdachte Programme mit grafischer Oberfläche, sondern auch gleichwertige Alternativen für die Kommandozeile. Solche Alternativprogramme können helfen, Rechenleistung zu sparen – oder sie werden einfach wegen ihrer schlichten, nüchternen Eleganz bevorzugt. Auf dieser Seite werden herausragende Shell-Programme aufgeführt.
Gerade auf schwächeren Rechnern stellen viele der hier genannten Programme eine schnelle und sinnvolle Alternative zu ihren grafischen Entsprechungen dar und stehen diesen häufig in Funktion und Leistung nicht nach. Ein weiterer Vorteil liegt darin, dass die hier genannten Programme ohne installierten XServer auskommen: eine aufwendige grafische Oberfläche wird also nicht benötigt. Somit können diese Programme auf einem Server laufen und bspw. über eine SSH-Verbindung verwendet werden, ohne einen Fenstermanager installieren zu müssen und über diesen auf den Server zuzugreifen. Neben der geringeren Auslastung des Servers kann man so Transfervolumen sparen, da in der Shell weniger Daten übertragen werden, als dies bei einem Fenstermanager der Fall wäre.
Für geübte Nutzer ist zudem das Arbeiten in der Shell häufig effizienter, da durch die reine Tastaturbedienung der unergonomische Wechsel der Hand zwischen Tastatur und Maus bzw. Touchpad entfällt. Dennoch gibt es Programme, die eine Maus-Unterstützung implementiert haben. Über dasGeneral Purpose Mouse Interface (gpm) kann die Maus auch in der Shell zum Markieren, Kopieren und Einfügen verwendet werden.
Eine allgemeine Einführung in die Shell findet man im ArtikelShell/Einführung, grundlegende Kommandos im ArtikelShell/Befehlsübersicht

https://wiki.ubuntuusers.de/Shell/Anwendungen/


В Linux, есть не только мощный и продуманный практически для любых целевых программ с графическим пользовательским интерфейсом , но и эквивалент альтернативы для командной строки . Такие альтернативные программы могут помочь сэкономить вычислительные мощности - или они просто предпочтительным из-за его простой, трезвый элегантности. На этой странице выдающиеся программы оболочки перечислены.
Особенно на медленных машинах, многие из этих программ здесь быстрый и разумной альтернативы их графические эквиваленты и они часто не в соответствии с функцией и производительности. Еще одно преимущество заключается в том, что упомянутые программы без установленной XServer прокомментировал: Сложный графический интерфейс , поэтому не требуется. Таким образом, эти программы могут работать на сервере и , например. Через SSH используется соединение, без менеджера окон , чтобы установить и необходимо получить доступ к серверу по этому поводу. В дополнение к меньшей загрузке сервера, так что вы можете сохранить объем передачи данных, как и в оболочке меньше данных передается, чем было бы в случае с менеджером окон.
Для опытных пользователей, работающих в оболочке также часто является более эффективным, так как чистая работа клавиатуры исключает эргономично несостоятельны изменить руку между клавиатурой и мышью или сенсорной панели. Тем не менее, существуют программы, которые внедрили поддержку мыши. О общего назначения мышь Интерфейс (GPM) мышь также может быть использован в командной консоли , чтобы выделить, копировать и вставлять.
Общее введение в оболочке можно найти в статье Shell / введение , основные команды в статье Обзор Shell / Command
https://translate.google.com/translate?hl=en&ie=UTF8&prev=_t&sl=de&tl=ru&u=https://wiki.ubuntuusers.de/Shell/Anwendungen/
oio11: (Default)

In Ubuntu 12.04 LTS when I run the top command I see a process called rtsbpp-polling. Googling it gives only just a few hits to the Gentoo Linux forum that does not seem to be relevant (they don't mention the process).

$ ps ax | grep rtsbpp 541 root 20 0 0 0 0 S 0 0.0 0:37.08 [rtsbpp-polling]   $ ps aux | grep rts root       536  0.0  0.0      0     0 ?        S    17:41   0:00 [rts_bpp] root       541  0.6  0.0      0     0 ?        S    17:41   0:38 [rtsbpp-polling] 

Googling rts_bpp indicates it may be drivers for my card reader, but I am not sure it has anything to do with the rtsbpp-polling process.

So what does it do?

Edit: Following Sim's advice in the answer below it seems rts_bpp is indeed a driver:

$ sudo lspci -k | less 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5289 (rev 01)     Subsystem: ASUSTeK Computer Inc. Device 1447     Kernel driver in use: rts_bpp     Kernel modules: rts_bpp` 

rtsbpp-polling does not show up on that list and does not seem to do anything on the network, but it does seem to use some files. I am not sure what to make of it:

$ lsof -p 726 COMMAND   PID USER   FD      TYPE DEVICE SIZE/OFF NODE NAME rtsbpp-po 726 root  cwd   unknown                      /proc/726/cwd (readlink: Permission denied) rtsbpp-po 726 root  rtd   unknown                      /proc/726/root (readlink: Permission denied) rtsbpp-po 726 root  txt   unknown                      /proc/726/exe (readlink: Permission denied) rtsbpp-po 726 root NOFD                                /proc/726/fd (opendir: Permission denied) 

`

shareimprove this question
Sounds like it is an Ubuntu-specific process, I have nothing of that name on my Debian. Could you show us the output of top -cb -n 1 | grep rtsbpp?terdon Nov 21 '13 at 18:17
Weird enough my htop/top don't get that process but ps ax shows it.Braiam Nov 21 '13 at 18:19
541 root 20 0 0 0 0 S 0 0.0 0:37.08 [rtsbpp-polling]user1593755 Nov 21 '13 at 18:22
1
Please edit your question to add more information rather than using the comments. Processes in [ ] are often kernel threads, see here for more info. top won't show a process unless it is among the top N CPU% users. It should still be printed by the command I suggested (top -bn 1) but it sounds like something that starts and stops.terdonNov 21 '13 at 18:40

PC Card Reader?

I believe that Gentoo thread is correct. I think it's related to a PC Card reader you may have installed on your system. I found this thread which has a similarly named kernel module. The thread is titled: [SOLVED] card reader doesn't work - RTL8411 - rts_bpp.

The process there, rts_bpp, especially makes me think that it's related. You can check to see if you have the corresponding kernel module installed to confirm it a bit more.

$ sudo lsmod | grep rts 

Also you can see what hardware might be using the kernel module, if it's present:

$ sudo lspci -k | less 

Then look through the output from any hardware that's using the kernel modules. For examples:

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)         Subsystem: Lenovo Device 2193         Kernel driver in use: agpgart-intel 

Note the kernel module that's being used, agpgart-intel. You'll likely see what hardware is using the rts_bpp module, if there is any at all.

Debugging it further

The other method of attack would be to scrutinize the process itself. You can see what file resources this mystery process is using as well as what TCP/UDP ports it may have in use. You can use these 2 tools to do this work.

netstat

You can find out what TCP/UCP or Unix sockets are being used by this process like so:

$ netstat -anp |grep udisk unix  3      [ ]         STREAM     CONNECTED     16411  2198/udisks-daemon   unix  3      [ ]         STREAM     CONNECTED     16404  2198/udisks-daemon   

The above is showing sample output for the process udisks-daemon. It's using just sockets.

Here's an example of a process using all three:

$ netstat -anp |grep rpc.statd tcp        0      0 0.0.0.0:54927               0.0.0.0:*                   LISTEN      1431/rpc.statd       tcp        0      0 :::46051                    :::*                        LISTEN      1431/rpc.statd       udp        0      0 0.0.0.0:45563               0.0.0.0:*                               1431/rpc.statd       udp        0      0 0.0.0.0:759                 0.0.0.0:*                               1431/rpc.statd       udp        0      0 :::36515                    :::*                                    1431/rpc.statd       unix  2      [ ]         DGRAM                    10790  1431/rpc.statd       

lsof

To see what files a process is using you can use the command line tool lsof. For example, here are the same 2 above processes udisks-daemonand rpc.statd. Also note that we're telling lsof the process IDs for these 2 processes using the -p # switch.

Here's udisks-daemon:

$ sudo lsof -p 2198 | tail lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/saml/.gvfs       Output information may be incomplete. udisks-da 2198 root    8u  unix 0xffff880228108680      0t0      16411 socket udisks-da 2198 root    9r  FIFO                0,8      0t0      16413 pipe udisks-da 2198 root   10w  FIFO                0,8      0t0      16413 pipe udisks-da 2198 root   11r   REG                0,3        0 4026531965 /proc/mdstat udisks-da 2198 root   12u  sock                0,6      0t0      16423 can't identify protocol udisks-da 2198 root   13r  FIFO                0,8      0t0    1768055 pipe udisks-da 2198 root   14w  FIFO                0,8      0t0    1768055 pipe udisks-da 2198 root   15r   REG                0,3        0      16424 /proc/2198/mountinfo udisks-da 2198 root   16r  FIFO                0,8      0t0      16450 pipe udisks-da 2198 root   17w  FIFO                0,8      0t0      16450 pipe 

Here's rpc.statd:

$ sudo lsof -p 1431 | tail lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/saml/.gvfs       Output information may be incomplete. rpc.statd 1431 rpcuser    0u   CHR                1,3      0t0    4066 /dev/null rpc.statd 1431 rpcuser    1u   CHR                1,3      0t0    4066 /dev/null rpc.statd 1431 rpcuser    2u   CHR                1,3      0t0    4066 /dev/null rpc.statd 1431 rpcuser    4u  unix 0xffff88022e976d80      0t0   10790 socket rpc.statd 1431 rpcuser    5u  IPv4              10902      0t0     UDP *:con  rpc.statd 1431 rpcuser    6w   REG              253,0        5 1966234 /var/run/rpc.statd.pid rpc.statd 1431 rpcuser    8u  IPv4              10907      0t0     UDP *:45563  rpc.statd 1431 rpcuser    9u  IPv4              10911      0t0     TCP *:54927 (LISTEN) rpc.statd 1431 rpcuser   10u  IPv6              10915      0t0     UDP *:36515  rpc.statd 1431 rpcuser   11u  IPv6              10919      0t0     TCP *:46051 (LISTEN) 
shareimprove this answer


http://unix.stackexchange.com/questions/102118/what-is-the-rtsbpp-polling-process-doing
oio11: (Default)

Part 2: Specify default applications for file types - file managers

 
Part 1 introduced the xdg-mime command to change the default application for a file type. If you want a GUI method, or more tweaking is required after running the command, this post is for you.
File managers can create file associations - the assigning of a default application to open files of a certain extension. Below is an example of changing the PDF default application using the Nautilus file manager for the GNOME desktop.
  1. Open Nautilus, and navigate to any PDF file.
  2. Right click on the PDF file, and select Properties.
  3. Click to open the Open With tab.
  4. Note that this screen identifies the current Default Application -Document Viewer, an alias for evince.
  5. Select the new default application.

    If you find the application you want under Recommended Applications, click the app and then the Set as default button. Otherwise, click the Show other applicationsbutton to display more application choices.

Troubleshooting



If the application you want, say xpdf, is not listed under Recommended or Other applications, first make sure that it is installed.
If the application is installed, but not listed in the Open with tab,
  1. Edit the application's desktop file - xpdf.desktop.The desktop file can exist in 1 or both of the following locations.
    • $HOME/.local/share/applications/xpdf.desktop
    • /usr/share/applications/xpdf.desktop
  2. Append %U to the end of the Exec= line.The Exec= line specifies the command and any arguments to start the application. If the Exec= line does not specify that the application can take command line arguments, the application is omitted from the Recommended applications andOther applications lists.
    The Exec= line in the xpdf.desktop file should look like the following:

    Exec=xpdf %U
    %U indicates that the xpdf command can take multiple URLs as arguments.
xpdf should now appear in the Recommended applications list.

 
http://linuxcommando.blogspot.nl/2014/03/part-2-specify-default-applications-for.html
oio11: (Default)

How to specify default applications for file types: Part 1 - Command line

 
Numerous apps vie to open your PDF files by default - evince, xpdf, Adobe Reader, Okular, etc. If you don't like the default as dictated by your desktop environment, you can change it.
The general idea is that default applications for file types, or 'file association', is governed by a set of configuration files. Having said that, I wish an universal method existed to change file association that is independent of the Linux distribution, the desktop environment, the file manager, and the application. In reality, the desktop environment may choose to interpret the same configuration file in different ways, or use different files altogether. Below is the general procedure that has served me well.

xdg-mime

If you are comfortable with command-line, then I'd recommend that you use the xdg-mime tool first.
Before we change the default application for opening a PDF document, let's identify the current default application.

$ xdg-mime query default application/pdf
evince.desktop
The above command requires that you know the MIME type of PDF files(application/pdf). My earlier post explains how to find the MIME type of files.
If evince is not the default program you want, you can change it to say xpdf as follows.

$ xdg-mime default xpdf.desktop application/pdf
The second argument - xpdf.desktop - specifies the default application in the form of its desktop filename. Every application must have a desktop file containing configuration information in order to be registered into the desktop environment's menu system. The global desktop file must exist in the /usr/share/applications directory. Local desktop files must exist in the~/.local/share/applications directory for individual users.
Before you run xdg-mime, you must make sure that:
  1. The desktop file preexists in the right directory for your application.
  2. You provide the correct desktop file name as an argument to xdg-mime.

$ ls -l /usr/share/applications/*xpdf*.desktop
-rw-r--r-- 1 root root 181 Mar 4 10:13 /usr/share/applications/xpdf.desktop
The xdg-mime command inserts one line into the [Default Applications] section of the local configuration file for file association (~/.local/share/applications/mimeapps.list).

application/pdf=xpdf.desktop
To verify that xpdf is now indeed the default application:
  1. Open a PDF file using the command.

    $ xdg-open somefile.pdf
  2. Double click a PDF file from inside your favourite file manager.
With my Debian wheezy system running GNOME 3, xpdf now opens PDF files by default from both the command-line and the Nautilus file manager.
If you are not comfortable with the command-line or xpdf does not open the PDF file by default from your file manager, the remedy is to configure the default application using your file manager. That will be the topic of part 2 of this series.
 
http://linuxcommando.blogspot.com/2014/03/how-to-specify-default-applications-for.html
oio11: (Default)
Шрифты в Linux — Викиучебник

Любой пользователь Линукса неизбежно сталкивается с необходимостью настроить отображение шрифтов в графической оболочке. Этот процесс неоднократно описан в различных статьях, однако многие из них уже устарели, а многие не дают достаточно чёткого представления, что же скрывается за процессом настройки. Поэтому я и написал эту статью, чтобы простым языком описать все ключевые аспекты устройства шрифтовых подсистем в Linux-системах. Также статья будет полезна пользователям других UNIX-систем.

Сразу хочу предупредить, что в статье не рассматривается вопрос конфигурации шрифтов в текстовой консоли.

 



https://ru.wikibooks.org/wiki/Шрифты_в_Linux
oio11: (Default)

Use wget to Recursively Download all Files of a Type, like jpg, mp3, pdf or others

Written by 
Date: 2012-04-29 13:49:00 00:00

If you need to download from a site all files of an specific type, you can use wget to do it.

Let's say you want to download all images files with jpg extension.

wget -r -A .jpg http://site.with.images/url/ 

Now if you need to download all mp3 music files, just change the above command to this:

wget -r -A .mp3 http://site.with.music/url/ 

The same can be applied to any other type of file. Movies, music, images, and others.

Be respectful with owner's rights and with the bandwidth of the site.


permalink

If you enjoyed the article, please share it


https://www.garron.me/en/bits/wget-download-image-pdf-type-of-files.html
oio11: (Default)

Checking your battery life from the shell

Filed under: General Linux,Linux Hardware,Quick Linux Tutorials — TheLinuxBlog.com at 8:46 am on Tuesday, December 11, 2007

I’ve often thought to my self “Wouldn’t knowing how much battery life I had be nice.”

Now when a window manager is open, this isn’t a problem. But when your just in a terminal it can be a bit of a problem. If you don’t get the gist of it heres an example, if I’m just in a terminal writing an article, or programming in VIM on battery life. Now I no longer have to execute the following command and guess how much life I have left:

 cat /proc/acpi/battery/BAT1/state

I simply run the command:

yacpi

It tells me all kinds of information about my power usage, what the current temperature is, am I plugged in, what CPU governor I’m using. Its a really neat tool. I would recommend for everyone to install it. Worst case scenario it can be used when the system is undergoing maintenance, or if you left your box sitting in the other room and need to check the battery live via SSH. Check out the screenshot:

YACPI Screenshot

To install it it will vary by distribution. I’m sure Debian has it in its XXXX number of packages which means Ubuntu probably has it too. To install on other distributions such as Gentoo or Slackware you’ll need the source. You can acquire the source from here:http://freshmeat.net/redir/yacpi/55486/url_homepage/yacpi
You’ll also need libacpi which can be found here:http://freshmeat.net/projects/libacpi/?branch_id=70062
Make sure you compile libacpi first, or the make will fail for yacpi.

That’s it, once you download the package and install or download and compile the source you’re good to go. Have a good time checking the battery life from the shell. Try doing that in DOS!


http://www.thelinuxblog.com/checking-your-battery-life-from-the-shell/
oio11: (Default)

Linux Basics: How to Download Files on the Shell With Wget

Version: 1.0
Last Edited: June 25th, 2014

Contents

  • 1.1: Wget- An Overview
  • 1.2: Good to Know
  • 1.3: Basic-Downloading One File
  • 1.4 Download and Save the File using a Different Name
  • 1.5 For Limiting the Speed of Download
  • 1.6 Resuming a Stopped/Interrupted Download
  • 1.7 Continuing the Download Process in the Background
  • 1.8 Customizing the Number of Attempts (Increasing/Decreasing)
  • 1.9 Reading a File for Multiple Downloads
  • 1.10 Emulating a Complete Website
  • 1.11. Rejection of Specific File Types
  • 1.12. FTP Downloads

1.1 Wget - An Overview

Wget is a popular and absolutely user-friendly free-utility command line tool primarily used for non-interactive downloading files from the web. wgethelps users in manipulate downloading of huge chunks of data, multiple files, downloads of recursive nature, and protocol-based download (HTTP, HTTPS, and FTP). The following is the basic wget command syntax, though this tutorial covers all the possible download scenarios for the benefit of learners.
wget [option] [URL]

1.2 Good to Know

For the information of learners, Wget shall always display the following whenever any download is in process:
  • Download progress (in percentage form)
  • Data quantity downloaded
  • Download Speed
  • Remaining time for the completion of the download process
Explained below are the various possible download scenarios users may be dealing with when downloading files on the Linux shell using wget:

1.3 Basic-Downloading One File

This is the most elementary of processes where users execute the wget command without any option by simply using the URL of the file to be downloaded in the command line. The following command shall help you do that
wget [URL]
The above command shall help you download the file in an unperturbed manner.

1.4 Download and Save the File using a Different Name

This step is simply an extension of the previous one, and may be required when you wish to assign fuss-free, readable and comprehensible nomenclature to the downloaded files. All you need to do is tweak around the basic command a little and use the same with the option O as shown below:
wget -O [Preferred_Name] [URL]
Using the above command, you would be able to save the file using the name you wish to assign it.
 

1.5 For Limiting the Speed of Download

Normally, wget would eat up a significant bandwidth for downloading files from the web. You, however, have the option to restrict the speed of download to a certain assigned value by customizing the basic wget command together with the "limit rate" option, by using the following command:
wget --limit-rate=[VALUE] [URL]
By specifying the preferred speed in the field "VALUE" in the above command, you would be able to customize the download speed as per your requirements. Add a suffix "k" for jilobytes or "m" for megabytes. e.g. "--limit-rate = 2m" to limit the max download speed to 2Mbyte/sec.

1.6 Resuming a Stopped/Interrupted Download

In case you face any system interruptions post starting the download of a massive file from the web using wget , you will be absolutely delighted to know if the command given below that shall help you resume the download process from where it stopped (without the hassle of starting the tedious process all over again!):All you need to do is execute the basic wget command with option "-c".
wget -c [URL]
The above command shall restore the download process from where it stopped earlier, thus letting you download the entire file in a seamless fashion.

1.7 Continuing the Download Process in the Background

When downloading a huge file, you may prefer to continue download process in the background and make use of the shell prompt. In this case, you must execute the wget command using option -b, and monitor the download status in the wget-log file, where it would be logged as per process. You need to use the following command to continue the download process in the background:
wget -b [URL]
You may check for download progress by accessing contents of the wget-log file using the tail command as follows:
tail -f wget-log
The above set of commands shall help you avail the shell prompt while a massive file gets downloaded in the background, and also keep a tab on the download progress.
Quantcast

1.8 Customizing the Number of Attempts (Increasing/Decreasing)

In the normal course, the wget command would make 20 reattempts to connect to the given website for completing the downloading in the event of lost/disrupted internet connectivity. However, users have the privilege to change this number as per their preference, by using the "--tries" option. The following command shall help you do exactly that:
wget --tries=[DESIRED_VALUE] [URL]
By specifying the preferred number in the DESIRED_VALUE field, users may regulate the number of retries in case of interrupted connectivity.

1.9 Reading a File for Multiple Downloads

If you wish to download multiple files, you need to prepare a text file containing the list of URLs pertaining to all the files that need to be downloaded. You may read the text file using option -i of the command (given below), and begin the intended multiple downloads. Please use the following command for the same:
wget -i [TEXT-FILE-NAME]
The above command shall facilitate downloading of multiple files in a hassle-free manner.

1.10 Emulating a Complete Website

If you wish to retain a copy of any website that you may like to refer to/read locally, or maybe save a copy of your blog to the hard disk as back up, you may execute the wget command with mirror option, as follows:
wget --mirror [Website Name]
The above command shall help you mirror the desired website/save data locally for future reference, thus saving you the hassle of visiting the said website again and again.

1.11. Rejection of Specific File Types

In instances where you wish to download an entire website barring files of particular type, for example, videos/images, you may make use of the rejectoption with the wget command (given below):
wget --reject=[FILE-TYPE] [URL]
The above command shall enable you to reject the specified file types while downloading a website in its entirety.

1.12. FTP Downloads

The FTP Downloads may be of two types:
1. Anonymous FTP Download 2. Authenticated FTP Download
Consequently, there is a unique command for downloading each type.
For Anonymous FTP downloading, please use the following command:
wget [FTP-URL]
For Authenticated FTP Download, please use the following command:
wget --ftp-user=[USERNAME] --ftp-password=[PASSWORD] [URL]
Each of the above commands shall lead to the required FTP download.


https://www.howtoforge.com/linux-basics-how-to-download-files-on-the-shell-with-wget
oio11: (Default)

Text-Terminal-HOWTO

David S. Lawyer mailto:dave@lafn.org

v1.43 March 2013
This document was originally written for real text terminals which were like monitors (with keyboards), but could only display text with a command line interface (no pictures). They were widely used to access mainframe computers in the late 1970's and 1980's but use of them declined in the 1990's and they are seldom used anymore. However much of this howto also applies to command-line interfaces on Linux PC's which are in wide use today. It's not about the user programs one might run on the command line, but about setting up, managing, and understanding the interface itself Such as using a monitor as a virtual (text-only) console, using a text-window in a GUI such as xterm, connecting to a remote computer over a network via ssh, telnet, etc., or even using software on another PC to turn it into a serial-port text-terminal. All these 4 methods are known as "text-terminal emulation". But unfortunately, the main emphasis in this howto is real text terminals and the coverage of emulation is inadequate for the first 3 methods of emulation mentioned above. The Keyboard-and-Console-HOWTO filled much this gap but it was written for Linux 2.0 and now needs rewriting (or merging into this Text-Terminal howto). A new author is needed that has time to do all this. For the seldom used real text-terminals, it explains how they work, explains how to install and configure them, and provides some info on how to repair them. This HOWTO also provides a brief overview of modern GUI terminals.

 

1. Introduction

 

2. Types of Terminals

 

3. Thin Clients Terminals

 

4. Quick Text-Terminal Install

 

5. Why Use a Terminal ?

 

6. Overview of How Text Terminals Work (in Linux)

 

7. Terminal Special Files such as /dev/tty

 

8. Some Details on How Terminals Work

 

9. Special Features/Types of Some Terminals

 

10. Terminal Emulation (including the Console)

 

11. Flow Control (Handshaking)

 

12. Physical Connection

 

13. Set-Up (Configure) in General

 

14. Terminal Set-Up (Configure) Details

 

15. Computer Set-Up (Configure) Details

 

16. Terminfo and Termcap (detailed)

 

17. Using the Terminal

 

18. Special Uses for a Terminal

 

19. Trouble-Shooting

 

20. Repair & Diagnose

 

21. Appendix A: General

 

22. Appendix B: Escape Sequence Commands Terminology

 

23. Appendix C: Serial Communications on EIA-232 (RS-232)

 

24. Appendix D: Notes by Brand/Model

http://www.tldp.org/HOWTO/Text-Terminal-HOWTO.html
oio11: (Default)

A command-line URL grabber

snarf
Free
 
Snarf is a utility to retrieve files via the http and ftp protocols. It supports http redirect, http and ftp resume, http and ftp authentication, and other neat things. Its functionality is similar to that of wget, but with a much smaller binary.
 
License:Open Source
Version:7.0


https://apps.ubuntu.com/cat/applications/quantal/snarf/
oio11: (Default)

mpg123 - Fast console MPEG Audio Player and decoder library

mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for layers 1,2 and 3 (most commonly MPEG 1.0 layer 3 aka MP3). Among others working with GNU/Linux, MacOSX, the BSDs, Solaris, AIX, HPUX, SGI Irix, OS/2 and Cygwin or plain MS Windows (not all more exotic platforms tested regularily, but patches welcome).
It is free software licensed under LGPL 2.1 .
Note that nowadays, the mpg123 decoder core can work with floating point or integer math, possibly using assembly optimizations for several platforms, depending on your build configuration. It's fast, it's high-quality. Just use it;-)

Top News

2015-09-06 Thomas: Testers welcome for upcoming mpg123 with libout123 and lots of other goodies
The next mpg123 release will be a big one, packing lots of changes. The most prominent ones:
  • Welcome libout123! The output part of the mpg123 program finally got turned into a re-usable library focused on simply getting that audio data out, with an API resembling writing to files with some fancy properties.
  • Along with the above, the internals regarding the buffering process and interaction with it got reworked a lot. Of course I mean improvements, but that also always can mean new bugs that testing should find before relase.
  • The terminal control got improved a bit, not only in relation with the buffer. It is also active by default now if there is a terminal detected.
  • The status line printed in verbose mode now does not spill over your terminal boundary (causing annoying scrolling, rather quickly since the line also got overly long with the buffer display). It received a full overhaul, too, packing more information more compactly and consistenly in there. Feedback to these changes is particulary welcome, as that marks a rather prominent departure from earlier times. As a special gimmick, the line is now used as a visual progress bar, too, by reversing video in part of it.
  • non-recursive build system; You always invoke make from the toplevel directory and give paths relative to that as targets. This improves build reliability as we have proper dependencies in one tree.
The need for testing is obvious, especially for those changes relating to interactive use. I also did not look much at the generic control interface. People with wrappers using that, please pipe up!
Make sure you use the latest snapshot or directly the svn trunk!
A more complete list of changes (NEWS file):
  • libmpg123 version 42
    • This adds mpg123_framelength() and makes mpg123_position() truly obsolete.
    • Equalizer optional now (--disable-equalizer) to save precious memory
  • First incarnation of libout123, a basic library to get audio data written to audio devices (or files). This collects the output modules of mpg123 and makes them available to the wider masses. Also, the buffer logic (contained in libout123) got a lot of reworking which might be noticable in the interaction with terminal control.
  • Added mpg123 --no-infoframe.
  • Detect terminal on input side and enable control keys automatically. There is --no-control now to disable terminal control anyway.
  • Avoid spillover of status line that caused unwanted terminal scrolling. If the terminal width is smaller than the full status string, a cut is made to make it fit.
  • Draw a progress bar on the terminal by inversing colors behind status line.
  • Rework the format of the status line to be more compact and consistent.
  • Clip decode tables for large amplification with fixed-point decoders. Without that, high-pitched distortion enters really quickly when trying to increase volume even if output samples would not be clipped, weren't it for fixed-point math.
  • Warning messages also start with a line break now to better fit in with verbose playback.
  • Reporting of clipped samples also includes a line break now.
  • Default for --preload now is 0.2 instead of 1 (fill whole buffer before playback). The maximum is 0.5 . This is mandated by corrected buffer interaction in libout123.
  • Improved interaction with buffer process in terminal control mode. Seeking is more transparent now, taking dropped samples from buffer into account to avoid unintended jumps. Direct seeks with number row do not pause playback anymore.
  • Silently skip APE tags (thanks to Hans de Goede).
  • Some reduction in bitrot on AIX (typos in output module, build with --disable-largefile --with-audio=aix, real test welcome).
  • Added '[' and ']' keys to skip to previous/next directory in playlist.
  • Added support for Haiku to configure script (thanks to Jerome Duval).
  • Remove spurious Frankenstein warning when scanning files that have no gapless info (the reported value of -1152 gapless sample length should be a giveaway anyway).
  • Fix a bug in the command line parser that was present from the beginning, apparently, causing certain parameters (--au, --cdr) to kill off parsing of following ones. Nobody complained in all these years. Astounding.


For older news see the news archive

..
http://mpg123.de/

Mpg123
 
It is a console application, meaning that it has no graphical user interface. mpg123 builds are only available for Windows; Linux users need to compile mpg123 ...
 
https://en.wikipedia.org/wiki/Mpg123


oio11: (Default)
http://ubuntuhandbook.org/index.php/2013/09/watch-live-streams-on-ubuntu-via-video-player/

How to Watch Live Streams on Ubuntu via Your Favorite Video Player

September 8, 2013 — 10 Comments

Want to watch live streams on Ubuntu via your favorite video player? Well, here’s how to do it using Livestreamer which supports most of the big streaming services such as Dailymotion, Livestream, Twitch/Justin.tv, YouTube Live, UStream.
Livestreamer is a Command Line Interface that pipes video streams from various services into a video player, such as VLC, Mplayer. The main purpose of Livestreamer is to allow the user to avoid buggy and CPU heavy flash plugins but still be able to enjoy various streamed content.
There is also an API available for developers who want access to the video stream data.
It’s very easy to use this tool. Let’s say you want to watch the stream located on http://twitch.tv/day9tv, just run below command in terminal (press Ctrl+Alt+T to open it).
livestreamer twitch.tv/day9tv
[cli][info] Found matching plugin justintv for URL twitch.tv/day9tv
Found streams: 240p, 360p, 480p, 720p (best), mobile_high, mobile_low (worst)
It will find out what streams are available and print them out for you to choose from. Simply give livestreamer the stream as the second argument and playback will start in your video player of choice.
In this case the best stream is a reference to the stream that is considered to be of highest quality, e.g 720p. The –player argument will specify the video player (It will open VLC as the default player if not specified).
livestreamer twitch.tv/day9tv best --player mplayer
live streams ubuntu

Install Livestreamer in Ubuntu, Linux Mint

Press Ctrl+Alt+T on your keyboard to open terminal. When it opens run below commands to install pip installer:
sudo apt-get install python-pip
Then install Livestreamer via pip:
sudo pip install livestreamer
This will work on all current supported Ubuntu releases, include Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.10, Ubuntu 12.04, Ubuntu 10.04 and their derivatives such as Linux Mint and Elementary OS.
 
oio11: (Default)
Milkys Homepage - mcdp - a small cd-player for linux

README


 WHAT IS IT
============

- mcdp is a small (maybe the smallest) cd-player for _linux_
- it compiles/runs out off the box
- it can be compiled against dietlibc (~16kb static!)
- working play methods: reapeat cd, repeat track and intro
- since version 0.3a, minimal cddb title download is also included
 last change: 2015-03-25 @ 12:52

https://www.mcmilk.de/projects/mcdp/

mcdp

 

This product has been tested for the following Ubuntu releases:

 
 
 

To understand this article, the following sites are useful:

 
index [-]
Wiki / icons / terminal.pngmcdp {en} is a minimalist CD player for the command line. It is controlled using only the keyboard. The program supports the following functions:
./mcdp.png
  • minimum display of information on the media inserted - these are from freedb {en} or CDDB {de}brought
  • different play such as play, repeat and intro scan
  • Volume control
Thus, the program can play music, an audio connection between the drive and the sound card must be present.

Installation

Next package installed [1] are:
  • mcdp (Universe)
Wiki / templates / Install button / button.png with apturl
Package List for copying: apt-get aptitude

sudo apt-get install mcdp
 
 

Use / configuration

The program can use the terminal after successful installation [2] to start:

mcdp
The control takes place exclusively via the keyboard shortcuts.
 

Shortcuts

 
Shortcuts mcdp
Key (s)description
# + 1Track 1 play - 0 to 9 possible
SStart / stop playback
        Next piece
Bprevious track
MPlayback mode: Playing a CD -> CD repeat -> Repeat piece -> Intro ...
Ppause
EEject CD
CClose drive
<Volume Down
+ <Volume Up
HHelp
Qexit program
More information is in the man page to find the program.

Links

 
 


https://wiki.ubuntuusers.de/mcdp
https://translate.google.com/translate?hl=en&sl=auto&tl=en&u=https://wiki.ubuntuusers.de/mcdp


oio11: (Default)

YUMI – Multiboot USB Creator
 

YUMI (Your Universal Multiboot Integrator), is the successor to our MultibootISOs. It can be used to create a Multiboot USB Flash Drive containing multiple operating systems, antivirus utilities, disc cloning, diagnostic tools, and more. Contrary to MultiBootISOs which used grub to boot ISO files directly from USB, YUMI uses syslinux to boot extracted distributions stored on the USB device, and reverts to using grub to Boot Multiple ISO files from USB, if necessary.
Aside from a few distributions, all files are stored within the Multiboot or yumi folder (depending on version), making for a nicely organized Multiboot USB Drive that can still be used for other storage purposes.
Important Note: YUMI was intended to be used to try to run various "LIVE Linux" Operating Systems from USB. Installing Linux from the YUMI created USB Drive to a Hard Drive is not officially supported. If the installer portion of any Live Linux distro does work, consider it a bonus.

Creating a YUMI Multiboot MultiSystem Bootable USBFlash Drive
YUMI works much like Universal USB Installer, except it can be used to install more than one distribution to run Live from your USB. Distributions can also be uninstalled using the same tool!

YUMI - Multiboot USB Creator
YUMI's Main Multiboot Boot Menu
YUMI - Multiboot Boot Menu

YUMI-2.0.1.9.exe – October 28, 2015 – Changelog
Remove distributions that are no longer being developed. Fix broken links.

YUMI for Windows MD5: D801FF09E22A8A6B27D0505ABF1B72C3
PLEASE READ: Syslinux 6+ is used in >YUMI 2.0.0.7. Distributions installed with a previous YUMI version are not compatible. You must start with a freshly formatted USB. If you still experience missing com32/chain32 errors with freshly formatted USB using the latest YUMI revision, please report them.

Linux Based YUMI Downloads:
Note: As I find time, I am rewriting YUMI for Linux, so the Linux YUMI tool will dramatically change once it is finished.
Source Code

IMPORTANT NOTE: Your USB drive must be Fat16/Fat32/NTFS formatted, otherwise Syslinux will fail and your drive will NOT Boot. NTFS is buggy, and data may become corrupted if you use it!
Basic Essentials to create a MultiSystem Bootable USB Drive
  • Fat32 or *NTFS Formatted USB Flash or USB Hard Drive
  • PC that can boot from USB
  • Windows XP/Vista/7/8 or Ubuntu/Debian for the Linux version of YUMI to create the Bootable USB
  • YUMI-2.0.1.9.exe
  • Your selection of ISO Files
Please inform me of unlisted "FREE" Live Linux distributions or version revisions, and I will attempt to update YUMI to support them. Software developers who wish to have their "PAID" software added, can send me a copy to try.
http://www.pendrivelinux.com/yumi-multiboot-usb-creator/
oio11: (Default)

wvWare

Logo: Base components courtesy BitWrench.

Introduction

This is the home of the wv library. The original name of the project, mswordview, was uncomfortably close to Microsoft's own product named wordview, so the library was renamed.

wv is a library which allows access to Microsoft Word files. It can load and parse Word 2000, 97, 95 and 6 file formats. (These are the file formats known internally as Word 9, 8, 7 and 6.) There is some support for reading earlier formats as well: Word 2 docs are converted to plaintext.

wv compiles and works under most operating systems. Although most development is carried out with Linux, wv should work on BSD, Solaris, OS/2, AIX, OSF1, and even (with varying levels of success) AmigaOS VMS. The GnuWin32 project maintains a port for Windows, and it is required to compile and work on all of AbiWord's supported platforms, of which there are a lot.

wv allows other programs access to Word documents for the purpose of converting them to other formats. It is currently being used by AbiWord as its Word importer, and concepts and bits of code are being used by the KDE folks over at KWord in their word importer. ..

http://wvware.sourceforge.net/index.html

oio11: (Default)
Fun On The Terminal Part 3 - Create ASCII Art And ANSI Art In The Terminal

..  AA-LIB - AVIEW - IMAGE TO ASCII ART TO VARIOUS FORMATS: ▐▌
 █ ```````````````````````````````````````````````````````                    ▐▌
 █ aview  - A high quality ASCII art, gray scale, image viewer and video      ▐▌
 █ player. aview  can only show files in the '.PNM' file format. BUT          ▐▌
 █ asciiview (comes with it) automatically converts the file formats to PNM   ▐▌
 █ (with extern programs like NetPBM and ImageMagick) and then runs aview.    ▐▌
 █ That means you can copy/paste the ASCII (text) output straight from your   ▐▌
 █ terminal. Aaflip (comes with it) is a FLIC - .fli/.flc files browser /     ▐▌ 
█ player. HERE is a little more information about aview.
http://mewbies.com/acute_terminal_fun_03_create_ascii_art_and_ansi_on_the_terminal.htm#aview
http://mewbies.com/acute_terminal_fun_03_create_ascii_art_and_ansi_on_the_terminal.htm
oio11: (Default)

gv 3.5.8


Contents

Description

Screenshots

Changes

Requirements

More Information

Availability

Copyright

Authors

Suggestions and bug reports

Acknowledgements

 


Description

gv allows to view and navigate through PostScript and PDF documents on an X display by providing a user interface for the ghostscript interpreter.

The current version is 3.5.8 (June 21 1997)

Please note that gv is derived from Tim Theisen's ghostview 1.5.

 


Screenshots

 


Requirements

  • System requirements

    gv surely works on
    • Linux
    • OpenVMS AXP (DECC 5.2,DECC 5.0)
    I also got reports of happy users on
    • Solaris
    • FreeBSD
    • NetBSD
    • Digital UNIX
    • SunOS
    • HP/UX
    • Irix
    • OSF/1
    • OS/2
    • AIX
    If you find that gv is also useful on a system not listed above please send me a message so that the above list can be kept up to date.

     

  • Software requirements

    gv requires Kaleb Keithley's Xaw3d widget set.

     

    • VMS users will find everything required to install this widget set in the section 'Availability' below.

       

    • Unix users working on a system not equipped with this widget set may want to visit the section 'Availability and installation of Xaw3d' which may provide some assistance when trying to install Xaw3d.

      A few words about Xaw3d, especially adressed to Linux users: There is only one Xaw3d, the one found on ftp.x.org and its mirrors. However, there are some hacked versions out there on the net and some of their authors don't even bother to distribute their version under a different name. Since Xaw3d also intends to serve as a basis for application specific custom widgets to be created by subclassing existing widgets (one of the main strengths of the Xt Toolkit) these hacked libraries are likely to break applications using this feature (like gv).

      To make this long story short: when using gv with some hacked Xaw3d (including XawXpm, nextXaw or whatever they are called) you (attention here) are on your own. It might work but it might also not.


More information

Further information about gv concerning command line options, resources and keyboard and mouse bindings is available ..

http://wwwthep.physik.uni-mainz.de/~plass/gv/
http://wwwthep.physik.uni-mainz.de/~plass/gv/#description


gv 3.5, June 1997: Options
http://wwwthep.physik.uni-mainz.de/~plass/gv/gv_doc/gv-3.html
oio11: (Default)





How to Browse Internet from Linux Shell Command line





/
Linux Hosting /Linux Servers /Tutorials /Web Hosting /How to Browse Internet from Linux Shell Command line
  •   
  •  Asher Ross
How to Browse Internet from Linux Shell Command line
Searching for a term on Google is an easy task with the browser, but with surfraw it all goes out on a compact command directly from the shell. You must call, such as the machine only with the desired service and term:
surfraw google notebook
This is interesting not only for console junkies and administrators, it also saves some time if you have any way to open a terminal window. In addition, surfraw can also be  install in your own shell scripts. It will display the search results for the term notebooks on the screen.
Commissioning
surfraw offer most distributions on about their package manager. On Ubuntu, you have only the package surfraw import and accept the list of dependencies:
sudo apt-get install surfraw
The command for which search engines, Internet services and online stores surfraw support or betrays:
 surfraw -elvi
The abbreviations listed in the first column, you just have to pass to the tool as the second parameter. Usually they are identical to the domain name of the search engine or the service. Then passed by the abbreviation text interpreted surfraw as a search term. The following command finds, for example, all video to Linux Mint on YouTube:
surfraw youtube "linux mint"
Fine Tuning
Some of the services may still be influenced via parameters. Thus, in a Google search yields of call:
surfraw google -results = 2 notebooks
Only the first two results for the query notebooks back. What are the parameters for the service are ready, betrays an appended h. The possible parameters for Google lists, for example:
surfraw google h
 The Google search can be influenced by many parameters.
Focusing on the essentials,
The results presented by surfraw in the default browser, which is generally pulls the tool onFirefox. This can be changed in the hidden configuration file in your home directory.Surfraw. conf applying and using a text editor, by entering the following line in it:
SURFRAW_graphical = no
After saving used surfraw to display a text browser, the one operated via the keyboard. If you want to specify a specific text browser adds in the configuration file the following line:
SURFRAW_text_browser = lynx
After the equal sign the text is for the browser, in this case surfraw command is used for the lynx browser call.
In any case, start surfraw the browser not as a separate process, so you have to stop him to continue working in the Terminal Window.
Finally, can the elongated surfraw or by the abbreviation sr replace:
sr google notebook
 Be Sociable, Share!

http://www.eukhost.com/kb/how-to-browse-internet-from-linux-shell-command-line/


Surfraw - Shell Users' Revolutionary Front Rage Against the Web

http://surfraw.alioth.debian.org/

May 2025

S M T W T F S
    123
45678910
11121314151617
181920212223 24
25262728293031

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 4th, 2025 02:12 pm
Powered by Dreamwidth Studios