linux

How To Setup Garmin 310XT To Work With Linux

In this post I intent to provide a overview of the steps that need to be performed to setup Garmin 310XT GPS Sports Watch to work with Linux (Ubuntu). (This tutorial should also apply to other similar Garmin GPS Watches -Garmin Forerunner 60 – 405CX – 310XT – 610 – 910XT) Install Required Packages sudo apt-get install python-pip python-qt sudo pip install pyusb Install GFrun GFrun is the program that you can use to download recorded workouts from your watch.

Fix screen flashing problem with redshift

As an alternative to flux I use redshift on my Linux machine. Recently I stumbled upon very weird problem – each time I close Java desktop app and redshift was active, the screen flashed. It was a very quick change that looked like redshift was disabled and then enabled again. I was starting redshift like this: redshift-gtk -l manual -l 51.126:17.033 After trying out few configuration options it turns out that changing video method to vidmode was the right solution for my problem:

How to run Transmission torrent server on Linux server

This post is a quick tutorial on how to install and configure Transmission torrent client on Linux (Debian, Ubuntu) server in headless mode. Create directory to store downloads: mkdir ~/Downloads Install transmission (run as root or with sudo): apt-get install transmission-daemon Add your user to debian-transmission group (run as root or with sudo): usermod -a -G debian-transmission user Setup correct permissions to Downloads folder, for starters I suggest setting 777:

Mosh: when your ssh connection breaks frequently

Mosh is a ssh-like tool that is really a drop-in replacement for a lot of SSH problems. It works: when you switch networks: connecting or disconnecting from VPN, using mobile networks when your connection frequently breaks / halts without unknown reason when you have to login to servers on the other side of the world etc…. All of this is achieved thanks to using UDP instead of TCP.

Linux: remove files created before or after date

Very useful command if you want to remove files from current directory created between certain dates, in this case files will be older than 3 days and newer than 35 days, we also filter out only files with “-type f parameter” find . -mtime +3 -mtime -35 -type f | grep -v ‘/.’ | xargs rm ```` If you only want to list those files without removing them use this: find .

What is kjournald and why it's using 99% of IO? What about noatime?

I have noticed this process in iotop using a lot of CPU/IO time and I started to wonder what is it doing. It turns out this is a journaling process of ext3 partitions: http://serverfault.com/questions/236836/kjournald-reasons-for-high-usage Very often it’s related to not using noatime mount option. Generally this mount attribute is used to lower the IO load, but it prevents kernel from setting last access time to a file (which is rarely needed):

My .screenrc Configuration

This is my .screenrc file that I always use and copy it everywhere I login. autodetach on shell -${SHELL} defscrollback 2024 startup_message off hardstatus on vbell off hardstatus alwayslastline hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'

Attaching to BOINC project from Linux console

So my AWS EC2 free instance is running, for now I’ll use it as a Boinc maching, what is boinc? This is the summary from wikipedia: The Berkeley Open Infrastructure for Network Computing (BOINC) is an open sourcemiddleware system for volunteer and grid computing. It was originally developed to support the [email protected] project before it became useful as a platform for other distributed applications in areas as diverse as mathematics, medicine, molecular biology, climatology, and astrophysics.