Tuesday, January 1, 2013

Linuxdcpp, Dc++ client for fedora

This tutorial is to install linuxdcpp in fedora 17.I'm trying to compile all information required to install and run linuxdcpp in fedora 17.

You will require rpm-sphere repo to install linuxdcpp in fedora, so lets add this repo first by creating a file rpm-sphere.repo in /etc/yum.repos.d

Now copy the following content into the file
[rpm-sphere]

name=RPM Sphere

baseurl=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_17/

gpgkey=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_17/repodata/repomd.xml.key

enabled=1

gpgcheck=1


save it and run the following commands as a root user to install linuxdccp

yum update

yum install linuxdcpp


Possible bugs

1. There may be issues in selecting the folder that you want to share in dcpp(like you get home always selected as the folder ).To overcome this bug you will have to edit the xml  file (before emitting the file close the dccp) in ~/.dc++/DCPlusPlus.xml

you will find something like this at the end of the file

<Share>

  <Directory Virtual="Sharename">"path to your share directory"</Directory>

</Share>

change the path and sharename as you wish.
save the file, make the file read only using "chmod -w filename" before opening the dccp again 

2. You wont be able to download file list.

Try changing the firewall setting in the file > preference > connection > incoming port forwarding , by default its active make it passive restart the linuxdccp

Monday, October 22, 2012

Assign keyboard shortcut for Terminal in Fedora

Ctrl + Alt + T was not working as a shortcut for terminal in my fedora 17, I was used to gnome so here is the way to assign a shortcut for terminal in fedora.

Search for "shortcuts" in your launcher you should find the keyboard settings application.

Now click on the add new shortcut button.



 Enter name as Terminal and command as gnome-terminal.


Now the command is created to assign a shortcut double click  the created shortcut in custom shortcut, you can now press the desired shortcut keys to assign it to terminal 


You can assign any number of shortcuts in this manner.

Thursday, September 20, 2012

Battery details using Terminal

Recently I installed Xubuntu which being awesome and far better than Ubuntu' s Gnome lacks some of the features like showing estimated battery time remaining.

I tried a lot to  find out a solution for this recently came across a ask Ubuntu thread which describes a way to obtain battery details using Terminal.

Using upower you can get all the battery details.

To view all the details you can use

upower -i /org/freedesktop/UPower/devices/battery_BAT0

Use grep to remove the unwanted details from the above result

upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state|time|per"

You can create alias for the same command so that you can run it using just the alias that you gave

alias bat='upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state|time|per"'

To permanently add this to your system terminal just copy paste the same command to .bashrc or /etc/rc.local