LnxSlck diz

Um blog sobre tudo e sobre nada...

  • Sobre

Transmission-daemon on Archlinux ARM

Publicado por lnxslck em Março 8, 2013
Publicado em: Gnu/Linux. Deixe um comentário

Setting up Transmission-cli on Archlinux ARM

1-Install transmission-cli wich provides transmission-daemon

# pacman -S transmission-cli

2-Start the transmission daemon, as your regular user type:

$ transmission-daemon

3 – On a web browser type http://127.0.0.1:9091 to see the web client.

4 – Stop the transmission-daemon, it’s needed so changes to settings file can be saved.

5 – Edit the configuration file

$ vi /var/lib/transmission/.config/transmission-daemon/settings.json

Important changes can be:

“blocklist-enabled”: false,
“blocklist-url”: “http://www.example.com/blocklist”,
“download-dir”: “/var/lib/transmission/Downloads”,
“pidfile”: “/run/transmission/transmission.pid”,
“rpc-authentication-required”: false,
“rpc-bind-address”: “0.0.0.0″,
“rpc-enabled”: true,
“rpc-password”: “{634e22dd6343fb51a74b74183cfca5e9a1458f24yP/vrXE.”,
“rpc-port”: 9091,
“rpc-url”: “/transmission/”,
“rpc-username”: “youruser”,
“rpc-whitelist”: “*.*.*.*”,
“rpc-whitelist-enabled”: false,

Make sure user transmission has rw permissions on the Download-dir and also change permissions of the directory of pidfile

# chmod -R 777 ‘/run/transmission’.

6 – You can now start the transmission-daemon again to see the changes

Normally the installation will create a user and group named transmssion, and the transmission-daemon will run as the user transmission, whose home directory is /var/lib/transmission/.

And the configuration file is /var/lib/transmission/.config/transmission-daemon/settings.json.

I) If you want to run transmission-daemon as your normal user (or any other user), stop the transmission-daemon.

II) Start the transmission daemon, as your regular user type:

$ transmission-daemon

This will create the directory .config/transmission-daemon

III) Set up your settings there:

$ vi $HOME/.config/transmission-daemon/settings.json

If you want to run transmission-daemon as a service in systemd

Copy the service file and the tmpfile to systemd

# cp /usr/lib/systemd/system/transmission.service /etc/systemd/system/
# cp /usr/lib/tmpfiles.d/transmission.conf /etc/tmpfiles.d/

Make sure the group transmission is created:

# groupadd transmission

Add user to that group:

# gpasswd -a [user] transmission

Change service file

# vi /etc/systemd/system/transmission.service

Change User= to your user

Edit the tmpfile to the following:

# vi /etc/tmpfiles.d/transmission.conf

/etc/tmpfiles.d/transmission.conf
d /run/transmission – [user] transmission -

Make configurations:

# systemd-tmpfiles –create transmission.conf

Reload service files:

# systemctl daemon-reload

You can now use transmission-daemon as a service in systemd

# systemctl start transmission.service

If you would use Transmission daemon with its own group, you have to give the writing permission to transmission group in your download’s directory:

# chgrp transmission /path/to/download # chmod g+w /path/to/download

Share this:

Gostar disto:

Gosto Carregando...

RaspberryPi – Raspian play full HD movies

Publicado por lnxslck em Fevereiro 22, 2013
Publicado em: Geek, Raspberry. Deixe um comentário

Is it possible that such a tiny thing with only 512 mb,  to play a full hd movie 1080p with no lags?

Yes it is, the trick is to use to the Raspberry Pi’s GPU. Omxplayer is a video player specifically made for the Raspberry PI’s GPU made by Edgar (gimli) Hucek from the XBMC project, basically it takes advantage of the hardware acceleration to play videos.

  1. Install omxplayer (it may be already installed), also install x11-xserver-utils

sudo apt-get install omxplayer x11-xserver-utils

x11-xserver-utils will give you the program xrefresh

2. Play a movie inside a (X11 environment) using hdmi

omxplayer -o hdmi /path/to/movie_1080p.mp4

omxplayer options

omxplayer –help

Usage: omxplayer [OPTIONS] [FILE]
Options :
         -h / –help                    print this help
         -a / –alang language          audio language        : e.g. ger
         -n / –aidx  index             audio stream index    : e.g. 1
         -o / –adev  device            audio out device      : e.g. hdmi/local
         -i / –info                    dump stream format and exit
         -s / –stats                   pts and buffer stats
         -p / –passthrough             audio passthrough
         -d / –deinterlace             deinterlacing
         -w / –hw                      hw audio decoding
         -3 / –3d                      switch tv into 3d mode
         -y / –hdmiclocksync           adjust display refresh rate to match video
         -t / –sid index               show subtitle with index
         -r / –refresh                 adjust framerate/resolution to video

 

Sometimes after playing a movie the screen will become all black, using xrefresh will get it normal again:

xrefresh -display :0

 

Hotkeys

 

z           Show Info
1           Increase Speed
2           Decrease Speed
j           Previous Audio stream
k           Next Audio stream
i           Previous Chapter
o           Next Chapter
n           Previous Subtitle stream
m           Next Subtitle stream
s           Toggle subtitles
d           Subtitle delay -250 ms
f           Subtitle delay +250 ms
q           Exit OMXPlayer
Space or p  Pause/Resume
-           Decrease Volume
+           Increase Volume
Left Arrow  Seek -30
Right Arrow Seek +30
Down Arrow  Seek -600
Up Arrow    Seek +600


More info

 

Share this:

Gostar disto:

Gosto Carregando...

Spotify on Fedora (and others)

Publicado por lnxslck em Fevereiro 16, 2013
Publicado em: Geek, Gnu/Linux. Deixe um comentário

Spotify is more than a music player, is a digital music service that gives you access to millions of songs. It works on your computer, your mobile, your tablet, and your home entertainment system.

The features that makes this my music player over iTunes are:

  1. It has a Windows and a Linux version, which is great if you’re forced to work and Windows at work like me;
  2. It has a free version (with an advertising bar);
  3. It works with iPod’s;
  4. It has thousand of musics and artists;
  5. It can uses both iTunes and Windows Media Player libraries;
  6. It connects to Facebook, adds your friends and let you see what they listen to

 

Unfortunately the official package for the Linux version is .deb, to get it working on Fedora, there’s two ways:

The easy one

Fedora 18 (64-bit):

  1. $ sudo yum install http://trash.ulyaoth.asia/trash/rpm/spotify-client-0.8.8.323.gd143501-ulyaoth.fc18.x86_64.rpm

Fedora 18 (32-bit):

  1. $ sudo yum install http://trash.ulyaoth.asia/trash/rpm/spotify-client-0.8.8.323.gd143501-ulyaoth.fc18.i386.rpm

Thanks Sjir Bagmeijer

 

The hard one

Transform the .deb into a .rpm

http://community.spotify.com/t5/Desktop-Linux/RPM-Package-for-Spotify/m-p/29267#M296

 

For OpenSuse go here

 

For Debian/Ubuntu

 

Debian
# 1. Add this line to your list of repositories by editing your /etc/apt/sources.list

deb http://repository.spotify.com stable non-free

# 2. If you want to verify the downloaded packages, you will need to add our public key

sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 94558F59

# 3. Run apt-get update

sudo apt-get update

 

# 4. Install spotify!

sudo apt-get install spotify-client

Share this:

Gostar disto:

Gosto Carregando...

Fedora vs Asus K53S RTS5139 Card Reader

Publicado por lnxslck em Fevereiro 11, 2013
Publicado em: Uncategorized. Deixe um comentário

So it seems that the Asus RTS5139 Card Reader, isn’t enabled by default on Fedora. So in order to get it up and running 3 simple steps:

1 – Download rts5139 driver from here

2 – Decompress

3 – make; sudo make install; sudo depmod

 

Reboot and voilá!

Share this:

Gostar disto:

Gosto Carregando...

Own the bash – keyboard shortcuts

Publicado por lnxslck em Fevereiro 11, 2013
Publicado em: Gnu/Linux. Deixe um comentário

Want to be more effective and productive with bash? Try these useful keyboard shortcuts.

Moving around

  • Ctrl + a : move to the beginning of the line.
  • Ctrl + e : Move to the end of the Line.
  • Ctrl + f : Move cursor forward one character.
  • Ctrl + b : Move cursor backward one character.
  • Ctrl + xx : Toggle between start of the line and current cursor position.
  • Alt/Esc + b : Move backward one word
  • Alt/Esc + f : Move forward one word.

Editing

  • Ctrl + u : Delete the line before the cursor.
  • Ctrl + d : Delete character under the cursor.
  • Ctrl + h : Delete character before the cursor (same as backspace).
  • Ctrl + w : Cut the Word before the cursor to the clipboard.
  • Ctrl + k : Cut the Line after the cursor to the clipboard.
  • Alt/Esc + t : Swap current word with previous
  • Ctrl + t : Swap the last two characters before the cursor.
  • Ctrl + y : Paste the last thing to be cut.
  • Ctrl + _ : Undo
  • Ctrl + Shift + v : Paste anything in Terminal.
  • Ctrl + Shift + c : Copy from Terminal.
  • Esc + c : Move the cursor to the right one “word”, capitalizing while moving.
  • Esc + l : Move the cursor to the right one “word”, making lower case while moving.
  • Esc + u : Move the cursor to the right one “word”, making upper case while moving.

Process Control

  • Ctrl + c : Interrupt/Kill current running process.
  • Ctrl + z : Move current process to background.

More here

Article source

Share this:

Gostar disto:

Gosto Carregando...

Emails from the future

Publicado por lnxslck em Fevereiro 8, 2013
Publicado em: Humor. Deixe um comentário

After winning the British Lottery a few times this week, i also receveid some emails from the future.

Captura de ecra de 2013-01-26 13:06:28

Share this:

Gostar disto:

Gosto Carregando...

ACPI for Gnu/Linux – Battery and charger status

Publicado por lnxslck em Janeiro 27, 2013
Publicado em: Geek, Gnu/Linux. Deixe um comentário

ACPI stands for Advanced Configuration and Power Interface, wich is an open industry specification co-developed by Hewlett-Packard, Intel, Microsoft, Phoenix, and Toshiba 1, it’s a great tool to check in CLI mode for the status of your laptop battery and charger.

Installation depends on your distro, but it can be as simply as:

yum install acpi

apt-get install acpi

Most commons commands are made running in a console:

Check battery status

# acpi

Battery 0: Unknown, 99%

Battery temperature

# acpi -t

Thermal 0: ok, 43.0 degrees C

Checking AC power status

# acpi -a

Thermal 0: ok, 43.0 degrees C

More commands

# acpi --help

Source

1 - https://wiki.archlinux.org/index.php/ACPI_modules

Share this:

Gostar disto:

Gosto Carregando...

Posts navigation

← Publicações mais antigas
  • Artigos recentes

    • Transmission-daemon on Archlinux ARM
    • RaspberryPi – Raspian play full HD movies
    • Spotify on Fedora (and others)
    • Fedora vs Asus K53S RTS5139 Card Reader
    • Own the bash – keyboard shortcuts
  • Arquivo

    • Março 2013
    • Fevereiro 2013
    • Janeiro 2013
    • Dezembro 2012
    • Agosto 2012
    • Julho 2012
    • Junho 2012
    • Maio 2012
    • Abril 2012
    • Março 2012
  • Alijó android Base Dados Fedora Geek Gnome Gnu/Linux Humor IRS Raspberry Saúde sharing SSH Ubuntu Uncategorized Windows
  • Meta

    • Registar
    • Iniciar sessão
    • RSS dos artigos
    • Feed RSS dos comentários.
    • WordPress.com
Blog em WordPress.com. Tema: Parament por Automattic.
LnxSlck diz
Blog em WordPress.com. Tema: Parament.
Seguir

Get every new post delivered to your Inbox.

Junte-se a 549 outros seguidores

Powered by WordPress.com
Cancelar
%d bloggers like this: