fedoraOS – sagitter's blog

June 18, 2014

[MOC] console player on Pidora 2014

Filed under: ARM, Bug, Bug Fix, Debug, English, FedoraPlanet, hardware, MOC, pacchettizzazione, Sistema — sagitters @ 10:20 pm

Pidora is a Linux software distribution for the Raspberry Pi computer. It contains software packages from the Fedora Project (specifically, the Fedora ARM secondary architecture project) compiled specifically for the ARMv6 architecture used on the Raspberry Pi, packages which have been specifically written for or modified for the Raspberry Pi, and software provided by the Raspberry Pi Foundation for device access.


- Packaging

With the latest 2.5.0-beta2 release, MOC is also built for armv6hl architecture (it’s really of interest only for the Pidora project for the Raspberry Pi) in addition to Fedora primary architectures by RPMFusion, of course. On Pidora, MOC has available only free codecs.

Signed MOC 2.5.0-beta2 RPMs are hosted in my fedorapeople space at http://sagitter.fedorapeople.org/moc/ARM/; together with them, there is a rebuild of opus audio codec, currently afflicted by a packaging bug (see http://trac.proximity.on.ca/projects/rpfr/ticket/1362).

- Pidora initial tips

Once Pidora first installation is complete,  remember that you can access to the system only as root

Default User: root
Default Password: raspberrypi

but it’s not a good idea to have just a system administration user profile with all permissions. We can create a new user

# adduser pidora
# passwd pidora

later we can access to raspberry pi, through ssh on a network, by Headless-mode both as root or as pidora

Default User: root
Default Password: raspberrypi
ssh root@{ip_address}

Normal User: pidora
Pidora Password: ???
ssh pidora@{ip_address}

After a first system update with yum, we can finally install MOC 2.5.0-beta2.


- MOC/ALSA tips

  1. Before running mocp command, be sure to have copied the files config and keymap in your own .moc sub-directory,  located under your home directory by default:cp /usr/share/doc/moc/config.example /home/pidora/.moc/config
    cp /usr/share/doc/moc/keymap.example /home/pidora/.moc/keymap

    Primarily in .moc/config file be sure to uncomment the following lines

    # Sound driver - OSS, ALSA, JACK, SNDIO (on OpenBSD) or null (only for
    # debugging).  You can enter more than one driver as a colon-separated
    # list.  The first working driver will be used.
    SoundDriver = ALSA:JACK:OSS
    # ALSA output settings.
    ALSADevice = default
    #ALSAMixer1 = PCM
    #ALSAMixer2 = Master
    # MOC directory (where pid file, socket and state files are stored).
    # You can use ~ at the beginning.
    MOCDir = /home/pidora/.moc
    # Choose a keymap file (relative to '~/.moc/' or using an absolute path).
    # An annotated example keymap file is included ('keymap.example').
    # Example:    Keymap = my_keymap
    Keymap = /home/pidora/.moc/keymap
  2. Running mocp first time, probably you obtain something like that
    $ mocp
    Running the server...
    Trying ALSA...
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
    ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Permission denied
    ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
    Trying JACK...

    It means that you haven’t permission to use audio devices, you need to add your user to audio group and create the .asoundrc (What’s asoundrc?) file in your home directory

    # useradd -G audio pidora
    # exit
    $ cd /home/pidora
    $ touch .asoundrc

    paste the following lines in .asoundrc and reboot your Raspberry Pi

    pcm.!default {
    	type hw
    	card 0
    ctl.!default {
    	type hw           
    	card 0
About these ads

April 26, 2014

Telegram messenger CLI

Recently celebrated as the umpteenth “opensource alternative to other proprietary applications”, Telegram is an Open Source instant messaging platform for mobile and desktop, focused on privacy.  (Read its FAQ for more details).

telegram-cli is a unofficial command-line interface for Telegram. Uses readline interface. It’s still in development (beta) on Linux and now can be installed from Fedora repositories by using a simple

yum install telegram-cli

### Usage

./telegram -k <public-server-key>

By default public key is stored in the same folder named tg-server.pub or in /etc/telegram/server.pub, if it’s not, specify where to find it:

./telegram -k tg-server.pub

Client support TAB completion and command history.

Peer refers to the name of the contact or dialog and can be accessed by TAB completion.
For user contacts peer name is Name <underscore> Lastname with all spaces changed to underscores.
For chats it is it’s title with all spaces changed to underscores
For encrypted chats it is <Exсlamation mark> <underscore> Name <underscore> Lastname with all spaces changed to underscores.

If two or more peers have same name, <sharp>number is appended to the name. (for example A_B, A_B#1, A_B#2 and so on)

### Supported commands

#### Messaging

* **msg** \<peer\> Text – sends message to this peer
* **fwd** \<user\> \<msg-seqno\> – forward message to user. You can see message numbers starting client with -N
* **chat_with_peer** \<peer\> starts one on one chat session with this peer. /exit or /quit to end this mode.
* **add_contact** \<phone-number\> \<first-name\> \<last-name\> – tries to add contact to contact-list by phone
* **rename_contact** \<user\> \<first-name\> \<last-name\> – tries to rename contact. If you have another device it will be a fight
* **mark_read** \<peer\> – mark read all received messages with peer

#### Multimedia

* **send_photo** \<peer\> \<photo-file-name\> – sends photo to peer
* **send_video** \<peer\> \<video-file-name\> – sends video to peer
* **send_text** \<peer\> \<text-file-name> – sends text file as plain messages
* **load_photo**/load_video/load_video_thumb \<msg-seqno\> – loads photo/video to download dir
* **view_photo**/view_video/view_video_thumb \<msg-seqno\> – loads photo/video to download dir and starts system default viewer

#### Group chat options

* **chat_info** \<chat\> – prints info about chat
* **chat_add_user** \<chat\> \<user\> – add user to chat
* **chat_del_user** \<chat\> \<user\> – remove user from chat
* **rename_chat** \<chat\> \<new-name\>
* **create_group_chat** \<user\> \<chat topic\> – creates a groupchat with user, use chat_add_user to add more users

#### Search

* **search** \<peer\> pattern – searches pattern in messages with peer
* **global_search** pattern – searches pattern in all messages

#### Secret chat

* **create_secret_chat** \<user\> – creates secret chat with this user
* **visualize_key** \<secret_chat\> – prints visualization of encryption key. You should compare it to your partner’s one

#### Stats and various info

* **user_info** \<user\> – prints info about user
* **history** \<peer\> [limit] – prints history (and marks it as read). Default limit = 40
* **dialog_list** – prints info about your dialogs
* **contact_list** – prints info about users in your contact list
* **suggested_contacts** – print info about contacts, you have max common friends
* **stats** – just for debugging
* **show_license** – prints contents of GPLv2
* **help** – prints this help

April 18, 2014

F1LT banned by FOM

Filed under: English, FedoraPlanet, fedoraproject, pacchettizzazione, Software — sagitters @ 5:53 pm

F1LT Formula 1 Live Time application seems to have been recently banned by FOM (Formula One Management).

Latest release packaged in Fedora is the 3.0.0; its development is freezed (probably permanently).

Older Posts »

The WordPress Classic Theme. Blog at WordPress.com.


Get every new post delivered to your Inbox.

Join 41 other followers

%d bloggers like this: