You are currently browsing the tag archive for the ‘Linux & OpenSource’ tag.

Replying to the comment to the post I let myself to post my .conkyrc here (with the new screenshot- LOL).

It seems that people like it. Well – I am the fan of conky, too.

I have to mention here – that the conky is originally based on the work of lyrea submitted to gnome-look.org and you can find it here:

 http://www.gnome-look.org/content/show.php/Fawn?content=58426

So here it goes:

.conkyrc

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent no
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

#borders
draw_borders no
border_margin 1

#shades
draw_shades no

#position
gap_x 6
gap_y 6
alignment top_left

#behaviour
update_interval 1

#colour
default_color  6d6d6d

#default_shade_color 000000
own_window_colour 303030

#font
use_xft yes
xftfont proggyclean:pixelsize=11

#to prevent window from moving
use_spacer no
minimum_size 1262 0

#mpd
mpd_host localhost
mpd_port 6600

TEXT
${alignc}Kernel: ${color A0A0A0}$kernel   |  ${time %a, %d %B} ${color A0A0A0}${time  %H:%M}  |  ${color} Up: ${color A0A0A0}${uptime_short}   |   ${color}Processes: ${color A0A0A0}$processes  ${color}Running: ${color A0A0A0}$running_processes   |  ${color}Cpu: ${color A0A0A0}${cpu}%   ${color}${cpugraph 10,80 AEA08E 9F907D} ${color A0A0A0}    |   ${color }Mem: ${color A0A0A0}$mem/$memmax – $memperc% ${color} ${membar 6,80}${color A0A0A0}    |   ${color }Net: ${color A0A0A0}${font}${downspeed eth0} Kb/s(D) ${color A0A0A0}${font}${upspeed eth0} Kb/s(U)  |  ${color }Hddtemp: ${color A0A0A0}${texeci 300 ~/bin/hddt_conky.sh}°C ${color 303030}
${alignc} ${color }Root: ${color A0A0A0}${font}${fs_free_perc /}%(free)  |  ${color} Home: ${color A0A0A0}${fs_free_perc /home}%(free)   | ${color} Arch-pkg: ${color A0A0A0}${font}${texeci 1800 python ~/bin/conkypac.py}  |   ${color}Email: ${color A0A0A0}${execi 300 ~/bin/check_gmail.sh} ${color A0A0A0}   | ${color} Weather: ${color A0A0A0} ${execi 1800 ~/bin/accuweather.sh “EUR|NO|NO011|OSLO”} | ${color} Moc: ${color A0A0A0} ${execi 30 ~/bin/mocinf.sh} | ${color} Shell-fm: ${color A0A0A0} ${execi 30 cat ~/.shell-fm/now-playing} ${color 303030}

There are few scripts used here, as you can see. And here they go:

hddt_conky.sh

 #!/bin/bash
echo “$(nc localhost 7634 | cut -d’|’ -f4)”

conkypac.py (big thanks to Michal Orlik from Archlinux)

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Description: Python script for notifying archlinux updates.
# Usage: Put shell script with command ‘pacman -Sy’ into /etc/cron.hourly/
# Conky: e.g. put in conky ‘${texeci 1800 python path/to/this/file}’
# Author: Michal Orlik <thror.fw@gmail.com>, sabooky <sabooky@yahoo.com>

################################################################################
# SETTINGS – main settings
# set this to True if you just want one summary line (True/False)
brief = True
# number of packages to display (0 = display all)
num_of_pkgs = 5
#show only important packages
onlyImportant = False
########################################

# OPTIONAL SETTINGS
# PACKAGE RATING – prioritize packages by rating
# pkgs will be sorted by rating. pkg rating = ratePkg + rateRepo for that pkg
# pkg (default=0, wildcards accepted)
ratePkg = {
‘kernel*’:10,
‘pacman’:9,
‘nvidia*’:8,
}
# repo (default=0, wildcards accepted)
rateRepo = {
‘core’:5,
‘extra’:4,
‘community’:3,
‘testing’:2,
‘unstable’:1,
}
# at what point is a pkg considered “important”
iThresh = 5
########################################

# OUTPUT SETINGS – configure the output format
# change width of output
width = 52
# pkg template – this is how individual pkg info is displayed (” = disabled)
# valid keywords – %(name)s, %(repo)s, %(size).2f, %(ver)s, %(rate)s
pkgTemplate = ” %(repo)s/%(name)s %(ver)s”
# important pkg tempalte – same as above but for “important” pkgs
ipkgTemplate = ” *!* %(repo)s/%(name)s %(ver)s”
# summary template – this is the summary line at the end
# valid keywords – %(numpkg)d, %(size).2f, %(inumpkg), %(isize).2f, %(pkgstring)s
summaryTemplate = ” %(numpkg)d %(pkgstring)s”
# important summary template – same as above if “important” pkgs are found
isummaryTemplate = summaryTemplate + ” (%(inumpkg)d important %(isize).2f MB)”
# pkg right column template – individual pkg right column
# valid keywords – same as pkgTemplate
pkgrightcolTemplate = “%(size).2f MB”
# important pkg right column template – same as above but for important pkgs
ipkgrightcolTemplate = pkgrightcolTemplate
# summary right column template – summay line right column
# valid keywords – same as summaryTemplate
summaryrightcolTemplate = “%(size).2f MB”
# important summary right column template – same as above if “important” pkgs are found
isummaryrightcolTemplate = summaryrightcolTemplate
# seperator before summary (” = disabled)
block = ‘-‘ * 12
# up to date msg
u2d = ‘ Your system is up-to-date’
################################################################################

import subprocess
import re

from time import sleep
from glob import glob
from fnmatch import fnmatch

program = []
pkgs = []
url = None

def runpacman():
“””runs pacman returning the popen object”””
p = subprocess.Popen([‘pacman’,’-Qu’],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
return p

def cmpPkgs(x, y):
“””Compares packages for sorting”””
if x[‘rate’]==y[‘rate’]:
return cmp(x[‘size’], y[‘size’])
else:
return x[‘rate’]-y[‘rate’]

if onlyImportant:
pkgTemplate, pkgrightcolTemplate = ”,”

p = runpacman()
#parse pacmans output
for line in p.stdout:
if re.match(‘(Cíle|Pakete|Targets|Se procesará|Cibles|Pacchetti|’
‘Celuje|Pacotes|Цели):’, line):
program = line.split()[1:]
for line in p.stdout:
if not line.strip():
break
program += line.split()

for item in program:
pkg = {}
desc_path = False
desc_paths =  glob(‘/var/lib/pacman/sync/*/%s’%item)

if not desc_path:
desc_path = desc_paths[0] + ‘/desc’

pkg[‘repo’] = desc_path.split(‘/’)[-3]
desc = open(desc_path).readlines()
checkName = 0
checkSize = 0
checkVersion = 0
for index, line in enumerate(desc):
if line==’%NAME%\n’ and checkName == 0:
pkgName = desc[index+1].strip()
pkg[‘name’] = pkgName
checkName = 1
if line==’%CSIZE%\n’ and checkSize == 0:
pkgSize = int(desc[index+1].strip())
pkg[‘size’] = pkgSize / 1024.0 / 1024
checkSize = 1
if line==’%VERSION%\n’ and checkVersion == 0:
pkgVersion = desc[index+1].strip()
pkg[‘ver’] = pkgVersion
checkVersion = 1

pkgRate = [v for x, v  in ratePkg.iteritems()
if fnmatch(pkg[‘name’], x)]
repoRate = [v for x, v in rateRepo.iteritems()
if fnmatch(pkg[‘repo’], x)]
pkg[‘rate’] = sum(pkgRate + repoRate)

pkgs.append(pkg)

# echo list of pkgs
if pkgs:
summary = {}
summary[‘numpkg’] = len(pkgs)
summary[‘size’] = sum([x[‘size’] for x in pkgs])
if summary[‘numpkg’] == 1:
summary[‘pkgstring’] = ‘package’
else:
summary[‘pkgstring’] = ‘packages’
summary[‘inumpkg’] = 0
summary[‘isize’] = 0
lines = []
pkgs.sort(cmpPkgs, reverse=True)
for pkg in pkgs:
important = False

if pkg[‘rate’] >= iThresh:
summary[‘isize’] += pkg[‘size’]
summary[‘inumpkg’] += 1
pkgString = ipkgTemplate % pkg
sizeValueString = ipkgrightcolTemplate % pkg
else:
pkgString = pkgTemplate % pkg
sizeValueString = pkgrightcolTemplate % pkg

if len(pkgString)+len(sizeValueString)>width-1:
pkgString = pkgString[:width-len(sizeValueString)-4]+’…’

line = pkgString.ljust(width – len(sizeValueString)) + sizeValueString
if line.strip():
lines.append(line)

if not brief:
if num_of_pkgs:
print ‘\n’.join(lines[:num_of_pkgs])
else:
print ‘\n’.join(lines)
if block:
print block.rjust(width)

if summary[‘inumpkg’]:
overallString = isummaryTemplate % summary
overallMBString = summaryrightcolTemplate % summary
else:
overallString = summaryTemplate % summary
overallMBString = isummaryrightcolTemplate % summary

summaryline =  overallString.ljust(width – len(overallMBString)) \
+ overallMBString
if summaryline:
print summaryline
else:
print u2d

check_gmail.sh (this one I found on Polish Debian Forum – I am sorry – I forgot the athor…)

#!/bin/bash

gmail_login=”********” #your login
gmail_password=”*********” #your password

dane=”$(wget –secure-protocol=TLSv1 –timeout=3 -t 1 -q -O – \
https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \
–no-check-certificate | grep ‘fullcount’ \
| sed -e ‘s/.*<fullcount>//;s/<\/fullcount>.*//’ 2>/dev/null)”

if [ -z “$dane” ]; then
echo “Connection Error !”
else
echo “$dane new”
fi

 accuweather.sh (thanks to Archlinux forum member – Michael Seiler)

#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#
#USAGE: weather.sh <locationcode>
#
#(c) Michael Seiler 2007

METRIC=1 #Should be 0 or 1; 0 for F, 1 for C

if [ -z $1 ]; then
echo
echo “USAGE: weather.sh <locationcode>” #find the code of your city on accuweather.com – my code for Oslo is: “EUR|NO|NO011|OSLO” – and put the right one in your .conkyrc
echo
exit 0;
fi

curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne ‘if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print “$1”; }’

 mocinf.sh (this one is found probably on Archlinux forum, too – but AFAIR I modified it a bit to make it working)

#!/bin/sh

TITLE=”`mocp -i | grep ‘Title:’ | sed -e ‘s/^.*: //’`”;
if [ “$TITLE” != “” ]; then
ARTIST=”`mocp -i | grep ‘Artist:’ | sed -e ‘s/^.*: //’`”;
SONGTITLE=”`mocp -i | grep ‘SongTitle:’ | sed -e ‘s/^.*: //’`”;
if [ “$ARTIST” != “” ]; then ARTIST=”$ARTIST – “; fi
echo $ARTIST $SONGTITLE
else echo „paused”
fi

…and that’s it. Feel free to use it or modify it to your heart content – and enjoy “tweaking” your Linux desktop 🙂

Screenshot1 – my desktop today(with the conky) – featuring the wallpaper of IAmFreeman from deviantart (you can find it here: http://iamfreeman.deviantart.com/):

screenshot-2008-02-16-183633.png

and Screenshot2 – the conky in itself 😉 :

conky_screen.png

Enjoy!

tami 🙂

Advertisements

Aicani, my husband, and me – we have spent last weekend on building computer “from scratch” 🙂

…and – we succeeded! Computer’s name is tamaic – it’s very fast comparing to my previous one which served me very well for a year.

Of course, I installed the newest sidux Gaia on it – runs splendid (despite of not working – again! – printer – Lexmark. Probably it’s the highest time to exchange printer…).

Here follow specifications of my new “friend” 😉 :

Box includes:
Cabinet: X-Gear Nero kabinett SORT
Main board with integrated graphic card (NVidia GeForce 7050): ASRock ALiveNF7G-HDready
Processor AMD Sempron: 3600+ 2.0GHz Socket AM2 Boxed
Memory/ RAM: Kingston 1024MB DDR2 PC5300
Hard drive: Seagate 80GB DiamondMAX 21 SATA2
DVD-burner: NEC AD-7170 DVD±RW 18x Dual layer

And the “results” of infobash -v3:

Host/Kernel/OS “tamaic” running Linux 2.6.22.6-slh64-smp-5 x86_64 [ sidux 2007-03.1 – Γαια – kde-full – (200708151429) ]
CPU Info AMD Sempron 3600+ 256 KB cache flags( sse sse2 nx lm pni ) clocked at [ 1000.000 MHz ]
Videocard nVidia Unknown device 053b X.Org 1.3.0 [ 1280×1024 @50hz ]
Network cards nVidia Unknown device 054c, at port: d880

Processes 97 | Uptime 8:02 | Memory 334.4/879.0MB | HDD ATA MAXTOR STM380215 Size 80GB (12%used) | GLX Renderer GeForce 7050 PV / NVIDIA nForce 630a/PCI/SSE2 | GLX Version 2.1.1 NVIDIA 100.14.11 | Client Shell | Infobash v2.67

Pictures (this time not screen shots!) of TAMAIC powered by LINUX SIDUX!:

tamaic1

tamaic2

tamaic_blue-eyed

tamaic_sidux

Tamaic is not only faster than my old one – it’s also very inexpensive – ca 1/3 of the price of “ready made” one with the same specifications… and – we had a lot of fun while putting it together.

Best wishes to all from very glad

tami 🙂

Yesterday the first preview of an upcoming 3rd release of sidux 2007-03 “Γαῖα” have been released. Forums are busy – and it seems that the full-featured release of sidux “Γαῖα” will be as worth of trying as the previous ones 🙂

IMHO sidux is not only worth trying but also worth maintaining. The reasons for it are simple:

1. It is Debian Sid

2. It is made by professionals

3 It’s relatively easy to maintain – you do not need to reinstall every 6th month (under two conditions though – that you will keep the fast pace of upgrading distro every day 😉 – the script by h2 – called now smxi – will be your best friend and that you will read warnings on sidux forum – where you can also find the best help available around.)

4. It’s fast, stable (yes – this flavor of Sid is stable), fresh and…hmmm… as friendly as Γαῖα should be…

The best recommendation I could give is that it is installed as THE ONLY operating system on both of my machines for soon 1/2 year now. Even my PCLinuxOS addicted husband had to admit lately that the best rescue LiveCD is… sidux…he he…

Handy links for newcomers:

sidux forum

sidux manual

download link 1 (http) and download link 2 (ftp) – (if you are new to Linux – wait for the stable release – which is to come in 2-3 weeks!)

and last but not least – splendid help-tool => smxi script by h2 (besides – his back-up script – rd-h2.sh – is as brilliant as smxi… Big thanks! )

All of the best and have fun with sidux,

tami

“Obligatory” screenshot – this is how sidux can also look – here with fvwm-crystal window manager.

Powered by ScribeFire.

I have been trying different Debian distro lately. There were Debian Etch and Sid, grml and Elive.

…and than at the beginning of March – I decided to give a try to Sidux – nicely related to Kanotix from which my “romance” with Linux has actually began.

Sidux is really splendid! The standard version of the first released version of Sidux features KDE desktop but it’s very easy to change the defaults to another lighter versions of Linux such as XFCE DE or Fluxbox WM through supplied by the creators of the distro Meta packages.

It’s also easy for a bit more advanced Linux user to install other window managers (like ion3 or wmii) through apt-get – Sidux, as probably most of you know, is based on Debian Sid – it means easy way to install thousands of programs! Sidux crew makes it also very convenient – even for relatively not very technical savvy user as me 😉 – to maintain Sid based distro – one can take an advantage of available scripts supplied by Sidux fans such as f.i. du-fixes-h2.sh by h2 – friendly Sidux forum moderator and developer 🙂 (big thank you!).

Forums of Sidux are full of helpful and competent persons. What’s more – on their webpage one can find the links to the “Treasure Box” of informations like their Wiki and splendid Manual. You have to admit that those young people really take care of their users and treat the task of being Linux distro developer seriously…and you simply feel like helping them in return – according to me they choose the right way 🙂 (I just wish their enthusiasm will last forever…)

Coming back to my own experience with Sidux:

1. For the first it’s very polished, as for such a young project, product – it recognized all components of my hardware without a glitch – I even did not encountered problems with my ATI Rage graphic card which usually gives some small problems (probably because of its age 😉 ). There is no problems in recognizing other components of the hardware here – such as CDROM- and DVD drive neither – very nice surprise!

2. Sidux crew and fans take also care of the look of their product (they even have Wallpaper Competition now and supply their own icons wallpapers with the distro – take look, please at the Artwork section of Linux forum where you can find the works of those fantastic people – and from I “grabbed” the chili logo of Sidux to my modest wallpaper). The art section is nicely and very quickly growing there…

3. I did not encountered any problems with Sidux on my desktop by so far – running and upgrading it regularly for 3 weeks now I did not check its performance on laptop yet – I’m waiting for the new version which is to come some day in April 🙂 (honestly speaking – i cannot wait to try it!)

4. Sidux is very, really VERY! fast – even on my 7 years old desktop – at least it feels so 🙂

So – summing up – if you are looking for your dream computer desktop, you care of the environment (by using and “reusing” owned by you things ;)!) and you take into account learning Linux (just a bit…) – try Sidux Linux – I can really strongly recommend it as the Linux user (exclusively Linux!) for a year now…

…and to give you some view on this brilliant product – here’s a few screen shots-“testers” or perhaps I should call them “teasers”…? 😉 of my desktop:

Sidux with Ion3 - standard wallpaper

Sidux, Ion3 and ncmpc

...and with the funny chili-sidux wallpaper :)

(pure wallpaper – still “work under construction” – available here). Logo used in the “wallie” by Cathbard – creator of many other  sidux Artwork masterpieces available here.

With the best wishes from

tami

I was looking for the right way to find the PID of zombie process for quite a long time. Unfortunately most of the good advices found on the net (mostly on different distro’s forums) were not working.

So – I was really glad to come across this article:

Peanut Linux

yesterday. There is a lot more tips there than just finding “zombie”. Take a look!

But for folk in a hurry, here is the quote from the article:

“If you have any ‘zombie’ processes, do this to remove them.

~# ps x
koo

~# pstree -p
foo(346)-+-boo(350)—koo(357)

~# kill -9 350

You don’t have to go all the way back unless you want to,
just kill the parent of the zombie process, not the parent
of the parent.”

Now – few tips from tami (for the beginners like me ;):

-the lines after [~#] you are to type in the terminal/console

– the output of the first command (ps -x) will give you the pid of “zombie”

– the output of the second command will show you “the tree” of processes where you can find “the parent” of your “zombie” – the clue is to kill the parent…Sounds awful, doesn’t it? ;)…LOL But this is the true! “The parent” is the process which is higher in the tree…

Now to something really important – if you do not know exactly what “parent” is responsible for… or as it was in my case – the parent was window manager…lol – the best way is to logout or – even to reboot…instead of killing process…at least according to my little knowledge 🙂

Anyway – afterwards you can take a closer look at “the parent” – usually something is wrong with the process, fi. it can be a mistake in configuration file…

Happy hunting,

tami 😀

Hello, Time :)

September 2017
M T W T F S S
« Sep    
 123
45678910
11121314151617
18192021222324
252627282930  

Archives

cc -Some rights

by Tami

Blog Stats

  • 117,303 hits