/kernel_reloaded/

Author:

Other contacts

Novi članci

Flickr Goodness

Categories

April 20, 2014 @ 11:54

Perfect Fedora Desktop in 5 easy steps

 
Fedora is an awesome distro, but it lacks a bit polish to be usable work and pleasure desktop out of the box. Follow these 5 easy steps to make a perfect Fedora desktop. Please also share how you make your Fedora install perfect.
 
1. First step is updating the whole system, and is the one I hate the most, so let’s just get over with it…
 
sudo yum update -y
 

2. Now let’s install Fedy tool that lets you tweak lot’s of additional things fast, streamlines installation of software and tweak and is really simple to use:
 
su -c "curl http://satya164.github.io/fedy/fedy-installer -o fedy-installer && chmod +x fedy-installer && ./fedy-installer"
 

3. Fedy has also a nice gui, but once you get to know what it can do it is faster to do all things via command line:
 
sudo fedy --exec sublime_text3 touchpad_tap rpmfusion_repos media_codecs skype_linux tor_browser adobe_flash nautilus_dropbox teamviewer_linux
 

4. Now let’s install some additiona goodies, and use dnf tool instead yum because it is much faster:
 
sudo dnf install synapse faience-icon-theme clipit vlc qbitorrent krusader filelight k3b-extras-freeworld redshift-gtk htop lm_sensors filezilla @cinnamon-desktop xchat pidgin
 

5. And best for last, compile and install tilda which is just best terminal ever:
 

sudo dnf install git automake libconfuse-devel vte3-devel gtk3-devel glib-devel gettext-devel gcc
git clone https://github.com/lanoxx/tilda.git
cd tilda/
./autogen.sh --prefix=/usr
make --silent
sudo make install

 

That is is, just don’t forget to switch to Cinnamon as your default desktop next time you login and change icons to Faience icons. Enjoy your perfect Fedora desktop!
 

Filed under english, fedora · 2 Comments »

March 18, 2014 @ 19:50

Linux Mint sets-up wrong default PDF viewer and folder launchers

 
Linux Mint has issue with some default apps that are launched from Firefox and Chrome browsers. For example instead of PDF viewer GIMP is lauched as PDF viewer. After investigating this issue looks like it is a common issue for lots of people who are using Mate version of Linux Mint. Probably some updates are to blame.
 
As usual best place to find good info is Arch Wiki which has some great info about setting default app launchers.
 
Issues for me was opening PDF files and directories from Firefox and Chrome. To check current default apps ‘xdg-mime’ is used:
xdg-mime query default inode/directory
xdg-mime query default application/pdf

 
and a quick fix for my two issues was:
xdg-mime default atril.desktop application/pdf
xdg-mime default caja.desktop inode/directory

 
and now just to test if new launchers work as you expected:
xdg-open ~/Desktop/
xdg-open ~Downloads/Demo.pdf

 

ps. Ask Fedora has really informative page regarding default apps on Fedora.
 

Filed under english, linux, tips&tricks · No Comments »

February 17, 2014 @ 1:21

OpenVPN client on Raspberry Pi

 
This article is writen in spite of lots of blog posts on this topic, but most of them don’t take in account some best practices and have redundant and sometimes wrong information.
 
So if you wish to use your Raspberry Pi as OpenVPN client and make configure your Raspberry Pi the RightWay(tm) then you have come to the right place :)
 
First you need to have certificate files, if you are admin on the OpenVPN server also then you need to know how to create these files (not covered in this article) and if you are not then you should ask admin of OpenVPN server to send these files to you.
 
First file you need is Certificate Authority Certificate file usually named ca.crt, and two are client specific and unique for each client, for this example I’ll use raspberry.key and raspberry.crt
 
First install openvpn package:
sudo apt-get install openvpn
 
Now create config file for OpenVPN:
vi / etc/openvpn/client.conf
and use these settings:
client
dev tun
port 1194
proto udp

remote CHANGE-ME-SERVER 1194 # VPN server IP : PORT
nobind

ca / etc/openvpn/ca.crt
cert / etc/openvpn/raspberry.crt
key / etc/openvpn/raspberry.key

comp-lzo
persist-key
persist-tun

verb 3
 
Copy certificates and key to / etc/openvpn/ directory on your Raspberry Pi
 
Start OpenVPN service
sudo / etc/init.d/openvpn start
 
Trubleshooting
If OpenVPN service is not starting take a peek into your log file:
tail /var/log/daemon.log
 
External links:

  • OpenVPN on Debian WIKI
  • Filed under english, linux, tips&tricks · No Comments »

    January 17, 2014 @ 22:56

    Adding RTC to Embedded devices running OpenWrt (part 1)

     
    We take real time clock (RTC) for granted, as all of our gadgets keep correct time even when we turn them off.
     
    Now imagine that you have to set correct time each time you power on any of your gadgets, that would be a nightmare, right? :)
     
    Most of smaller devices like routers we use don’t have RTC onboard, and as I have been using OpenWrt on lots of different devices I know that OpenWrt can use bitbangging to simulate i2c protocol on GPIO pins.
     
    With real time clock all of my smaller embedded gadgets would be one step closer to being independent as their bigger android and pc cousins.
     
    There are really cheap RTC devices on Ebay, I got one based on DS1307 chip and AT24C32 memory which uses i2c protocol for communication.
     
    Read rest of story…

    Filed under croatian, english, tips&tricks · No Comments »

    December 9, 2013 @ 19:26

    Bonbon i OpenWrt

     
    Bonbon omogućava vrlo pristupačan pristup Internetu. No ukoliko želite vezu podijeliti s više ljudi onda je vam treba i prijenosti wifi access point, naravno pogonjen OpenWrt-om :)
     
    Sva sreća pa nije preteško napraviti na OpenWrt-u postavke za izlaz na Internet preko UMTS usb sticka.
     
    Sve što treba je dodati novu wan konekciju za UMTS sub stick, no prije toga instalirati pakete za usb i umts podršku.
     
    opkg update
    opkg install comgt usb-modeswitch kmod-usb-serial-option kmod-usb-ohci kmod-usb2

     
    I nakon toga dodati wan konekciju:
     
    config interface 'wan'
    option proto '3g'
    option device '/dev/ttyUSB0'
    option service 'umts'
    option apn 'web.htgprs'
    option pincode '0000' # ovdje ide vas pin broj

     
    I to je to.
     

    Filed under croatian, linux, tips&tricks · No Comments »

    December 2, 2013 @ 21:35

    compile latest tilda and enjoy solarized terminal

    tilda_002
     
    Anybody who uses Linux desktop as workstation for prolonged times knows what difference good colour scheme can make in reducing eye strain.
    After discovering Solarized theme for me there was no going back.
     
    One of my recent discoveries was tilda, an awesome drop-down terminal. Only thing missing in tilda that would make it perfect tool was solarized theme. But fear not! Support for solarized theme is coming in upcoming tilda 1.2. If you can’t wait for official update to come out then you can compile it yourself.
     
    Install dependencies for Ubuntu:
    sudo apt-get install libgtk-3-dev libvte-2.90-dev libconfuse-dev
     
    For Fedora install these dependencies:
    sudo dnf install git automake libconfuse-devel vte3-devel gtk3-devel glib-devel gettext-devel gcc
     
    And now grab sources, configure and compile tilda:

    git clone https://github.com/lanoxx/tilda.git
    cd tilda/
    ./autogen.sh --prefix=/usr
    make --silent
    sudo make install

     
    And that is it! Enjoy.
     

    Filed under english, linux, tips&tricks, ubuntu · 2 Comments »

    September 11, 2013 @ 10:26

    Adding undetected resolutions on Linux

     
    If you have a monitor that is misbehaving, like I do, then this article is for you. Lenovo ThinkVision L2250p Wide I have at my workplace doesn’t report resolutions it supports, so I have to manually add resolution it supports via xrandr.
     
    Most useful resource on Internets is, as usual, Arch Wiki.
     
    I know that my monitor supports resolution of 1680×1050 with 60Hz refresh rate, so to calculate modeline I just used cvt command and then loaded new mode. Worked like a charm.


    cvt 1680 1050 60
    xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
    xrandr --addmode VGA1 1680x1050_60.00

     
    To make changes permanent create .xprofile file and add any xrandr command that you would usually manually write.
    Ubuntu has really nice wiki page that explains all different methods for setting display resolution.
     

    Filed under english, linux, tips&tricks · No Comments »

    July 3, 2013 @ 9:05

    Stop laptop fans from working full speed on Linux after suspend!

     
    After restoring most laptops that I work on fans start goind full speed after suspend and resume instead reularing speed as they usually do.
    If you are afflicted with this bug then you are probably also very annoyed by this kernel bug
     
    Read rest of story…

    Filed under diy, english, fedora, linux, tips&tricks · 1 Comment »

    June 19, 2013 @ 21:14

    Reading temperature with WR703N and DS18B20 on OpenWrt

    temp_sensor

     
    You can easily get temperature readings from external Dallas DS18S20 sensors (1-wire protocol) on your TP-Link WR703N.
     
    First things first, grab your credit card and order few Dallas DS18S20 sensors and usb to serial adapters. Now you need to connect Dallas DS18S20 sensor to USB to serial adapter.
     
    After you got hardware part sorted now you need to setup software part. Main tool for reading temperature from 1-wire sensors is digitemp. Digitemp uses bit-banging to emulate 1-wire protocol over serial port.
     
    opkg install digitemp
     
    You also need usb to serial kernel module (driver) so install that also:
     
    opkg install kmod-usb-serial-cp210x
     
    After digitemp is installed you need to search 1-wire bus for all connected sensors, each sensor has it’s unique address so is has to be discovered and added to config file with this command:
     
    digitemp_DS9097 -s /dev/ttyUSB0 -i
     
    Now you can read temperature from your sensor:
     
    digitemp_DS9097 -a -q
     

    Filed under diy, english, gadgets, wireless · 1 Comment »

    June 14, 2013 @ 9:26

    How SpiderOak deleted my files!

     
    I have been happy user of SpiderOak until now, this happened today. I have two machines (let’s call them Ana and Bill) that sync one folder, and on first one (Ana) I added one new folder with arround 2GB of data to upload, as it was over 512Kb/s upload link I left it over night.
     
    Next morning I saw that first Ana has finished upload, but I couldn’t find data in synced folder on Bill, that was strange, that neven happened before. When I noticed that Bill was acting strangly (Firefox freezing up) I investigated and saw that I ran out of space on my /home partition. No big deal, I moved one directory to other disk and restarted SpiderOak.
     
    I also noticed one really big file called something like “SpiderOak cache” or something similar. From that it was obvious that SpiderOak started syncing the directory, but but it looks like SpiderOak doesn’t sync one file at a time but whole directory. Sync process got stuck when it ran out of space.
     
    When I restarted SpiderOak that huge file on Bill was gone, but then then I looked on Ana and the original directory has also been removed, now alarms started doing off! It looks like sync went in wrong direction. Instead of transfering data from Ana to Bill, when SpiredOak got stuck on Bill and didn’t transfer whole directory then deleted temporary file but also sent command to delete that directory back to Ana!
     
    This is really bad!
     
    I’m reading on SpiderOak blog that data is never deleted, but I can’t find it anywhere! Help! Where is this “Garbage bin” that they talk about?
     
    UPDATE:
    SpiderOak engineers and support helped me to restore my files back. Thank you a lot!
     

    Filed under english · 1 Comment »

      Archives

      Flickr photostream

      SSL is required

      Meta meta :)