Foresight Linux Planet

April 05, 2014

Tomas Forsman (TForsman / Zinden)

Upcoming Foresight Linux 3 information

It’s been quite from us with information about Foresight Linux 3 and what’s happening. Iv’e been collected some information to give you some insight what’s going on.

Fedora respin?

First of all, we are importing the whole fedora repository for Foresight Linux. That means you will be using conary as package manager instead of yum. We are using a tool called mirrorball.

You will get the features from conary instead from yum. It means you will get a rolling linux dist with able to rollback your system, if something goes wrong from a update. I won’t write everything that differs from conary and yum.

Conary is pretty strict when it comes to dependency resolution. We already found packaging issues of fedora20 just by importing and rebuilding it with conary.

Why?

System-model. A file that will keep track of what your system has installed or deleted. That will make it very easy to remember all kinds of packages you have installed during the years of running your Foresight Linux OS.

Of course there are other benefits to use conary instead of yum, but we leave that information for now.

We will also be able to change default applications, so it might not even look like a fedora from beginning.

What’s next?

We are currently creating groups from our repository, to be able to remake your Fedora os to Foresight Linux 3. We will also create other ways to get your system going.

If you want to read more about the import process and so on, please read our mailinglist for even more information.

Foresight Linux is not dead, just taking a break from social media and focus on upcoming Foresight Linux 3.

Our developer Mark wrote a blog post about this too. Read all about it here.

The post Upcoming Foresight Linux 3 information appeared first on Foresight Linux.

by Tomas Forsman at April 05, 2014 06:47 AM

April 01, 2014

Mark Trompell (Mark__T)

The bright future of Foresight Linux

Refining Foresight

Why

Foresight is what I use for almost a decade now (and that means almost the whole time since it was created by Ken Vandine).
It was originally based on rPath Linux and Foresight 2.0 still is.
So rpath doesn't exist anymore (it was aquired by SAS a while ago) and our existing base is getting outdated to a point where maintenance is getting a burden.

How

There were several options to solve this issue.
1) build foresight 3 from scratch
2) rebuild an existing distribution from source and use it as a base
3) base on an existing (vital) distribution

Which one

Actually we discussed all these, but given our manpower we chose to base our new shiny Foresight on Fedora as is, so that we can focus again on providing a stable modern rolling binary distribution.

The Plan and Progress

So what we're doing is importing all! of Fedora20 into our own repositories using a tool called mirrorball
It will create Sourcepackages for conary containing the matching rpms and srpms and build conary packages from them.
I'm not going into the details here. You can look some up on our foresight-devel mailinglist
The initial import and built is already done and we're now in the process of creating conary groups from the information of the comps.xml
when that is done it should be possible already to adopt a fresh install of fedora20 for use with conary packagemanager.
Next step will be doing regular updates and imports of the fedora20 repository.
Then we will build foresight on top of this.
Creating groups like we want them, adding artwork and extras. Import rpmfusion repositories until we have a foresight that matches our needs.
And of course finding a way to easily install foresight and convert existing fedora installations.

Why not...

...just use fedora?
Well first we all got to love foresight as a distribution and a community.
And we love conary. Conary is pretty strict when it comes to dependency resolution. We already found packaging issues of fedora20 just by importing and rebuilding it with conary. foresight is a rolling distribution and we hope that with the adopting of fedora we can make it possible to just roll from fedora20 to fedora21 painlessly. Conary has rollbacks since it's beginning and it's a great packagemanager that helped us maintaining a rolling binary distribution for almost 10 years now.


by Mark Trompell (noreply@blogger.com) at April 01, 2014 01:09 PM

January 14, 2014

Tomas Forsman (TForsman / Zinden)

Vim mode Irssi – Foresight Linux

Vim mode Irssi

An Irssi script that provides vim-like keybindings for the input line.

The script allows you to toggle between INSERTCOMMAND and EX modes.

Another useful feature is the mode indicator, best used in conjunction with uberprompt.

From the README, the following common keybindings are supported:

  • Command mode: Esc <Ctrl-C>
  • Cursor motion: h l 0 ^ $ <Space> <BS> f t F T
  • History motion: j k gg G gg
  • Cursor word motion: w b ge e W gE B E
  • Word objects: aw aW
  • Yank and paste: C<y p P>
  • Change and delete: c d
  • Delete at cursor: x X
  • Replace at cursor: r
  • Insert mode: i a I A
  • Switch case: ~
  • Repeat change: .
  • Repeat: ftFT: ; ,
  • Registers: "a-"z "" "0 "* "+ "_
  • Line-wise shortcuts: dd cc yy
  • Shortcuts: s S C D
  • Scroll the scrollback buffer: Ctrl-E Ctrl-D Ctrl-Y Ctrl-U Ctrl-F Ctrl-B
  • Switch to last active window: Ctrl-6/Ctrl-^
  • Switch split windows: <Ctrl-W j Ctrl-W k>
  • Undo/Redo: u Ctrl-R

Get the script at: https://github.com/shabble/irssi-scripts/tree/master/vim-mode

The post Vim mode Irssi – Foresight Linux appeared first on Foresight Linux.

by Tomas Forsman at January 14, 2014 01:14 AM

January 13, 2014

Tomas Forsman (TForsman / Zinden)

gist.io: Writing for hackers

Just recently heard of gist.io – a pastebin services that converts markdown formatted files from https://gist.github.com into HTML.

Useful for those times you want to quickly share info that’s off-topic to your blog and to an audience of non manpage readers. Why markdown? It’s prettier than plain text and syntactically much simpler than html. GitHub users should like this.

Also: images

You can embed images in posts too, and they’ll respect the width of your browser.

The post gist.io: Writing for hackers appeared first on Foresight Linux.

by Tomas Forsman at January 13, 2014 02:07 AM

January 12, 2014

Tomas Forsman (TForsman / Zinden)

bash copy file – almost every file

bash copy file – almost every file

I found an interesting trick in bash today that may help a few other folks as well. Occasionally I find that need to copy almost every file in a directory, except for one or two. Usually I’d copy everything and then delete the stragglers I didn’t want from the destination directory. There had to be a better way, but as I said I’m lazy. Turns out I found the better way today.

bash copy file

bash copy file

[tforsman@localhost ~]$ cp -r !(file_to_ignore)  /destination/

This little trick gets a bit better. Bash is slick enough to understand ‘or’ in this context. So I can also ignore multiple files if I need to

[tforsman@localhost ~]$ cp -r !(file_to_ignore| this-one-too)  /destination/

Hopefully someone else finds this helpful as well.

If you get a error like:

bash: !: event not found

Then  extglob is off. To turn it on:

[tforsman@localhost ~]$ shopt -s extglob

to enable extended pattern matching and then you can do a cp !(whatever) . and it will work. Good way to bash copy file.

ref: http://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html

The post bash copy file – almost every file appeared first on Foresight Linux.

by Tomas Forsman at January 12, 2014 09:30 PM

Foresight Linux Official News

Forum is unavailable – We are working on it

We know that forum is down at the moment, we are working to get it up and running again.

In meantime use ircmailinglist or unofficial forum to ask questions or to get in touch with us.

For common questions, use this mailinglist: http://lists.foresightlinux.org/mailman/listinfo/foresight-distro

by Tomas Forsman at January 12, 2014 10:35 AM

January 11, 2014

Tomas Forsman (TForsman / Zinden)

Nautilus script gnome2 – Foresight Linux

Nautilus script gnome2 is an executable shell script that is placed in a special scripts directory so that the Nautilus graphical shell can find it. This allows you to extend the functionality of the file browser to do just about anything.

Scripts are invoked by selecting a file or group of files, and right-clicking with the mouse, to bring up a context menu. One of the options in this menu is the ‘Scripts‘ submenu, which allows you to select a script to invoke on the selected files.

Note: The submenu ‘Scripts’ only appears once you have at least one script in the scripts directory.

For a script to be found by Nautilus it needs to be located in your scripts directory (~/.gnome2/nautilus-scripts). This folder is located in your home folder but is hidden by default. To view hidden files and folders in Nautilus press Ctrl+H, or use the terminal to navigate to the folder:

cd ~/.gnome2/nautilus-scripts

Note: Once you place a script in your scripts directory, it’s name will not necessarily appear in the scripts menu immediately. You might have to visit the scripts directory with Nautilus – which can be done using the last option in the scripts menu. Once the directory is visited, Nautilus will know about which scripts you have, and you will be able to use them.

For scripts to be usable they need to be marked as executable. To make a script executable either right-click a script and select‘Properties → Permissions → Allow executing file as program‘ or use the following command in the terminal:

chmod +x name-of-script

 

External links to Natuilus script gnome2

http://g-scripts.sourceforge.net/ - Information about Nautilus scripts
http://mundogeek.net/nautilus-scripts/ - Collection Nautilus scripts

 

The post Nautilus script gnome2 – Foresight Linux appeared first on Foresight Linux.

by Tomas Forsman at January 11, 2014 09:54 AM

Blog stats 2012 and 2013

Stats 2012

http://jetpack.me/annual-report/32639566/2012/

This blog had 35,000 views in 2012

The busiest day of the year was December 19th with 427 views.

 

Stats 2013

http://jetpack.me/annual-report/32639566/2013/

This blog was viewed about 99,000 times in 2013.

The busiest day of the year was August 18th with 677 views.

 

Conclusion

I’m very happy that we managed to get so many users to visit our site. This stats doesn’t show visitors to wiki page though.

The post Blog stats 2012 and 2013 appeared first on Foresight Linux.

by Tomas Forsman at January 11, 2014 07:57 AM

January 10, 2014

Tomas Forsman (TForsman / Zinden)

Screw you mediawiki – crashed wiki

Our wiki has faced some difficulties in past few days.

So I added few hours to try to restore the wiki page. First few hours, it went down the drain. Had no idea how to restore it. So was almost time to dig a grave and bury the wiki page for ever.

The main issue?

It all started from the time I updated mediawiki to 1.22.0

First view, it was accessable but coulden’t login to my account. So started to investigate after awhile, and even contacted my storage provider where I updated mediawiki from. They confirmed that something is wrong with version 1.22.0

I even installed more test mediawiki to make sure even a clean install didn’t work. And that was the case, that didn’t work as it should.

 

Restore

We confirmed this version doesn’t work as it should. Time to restore a previous backup.

Ohh crap, almost a year old. Damn, loose a whole year of the work in wiki. This I can’t accept. I did manage to browse wiki without login, so I managed to get to the special page where I can Export and Import pages. YES!!

I managed to grab all pages from the wiki. Now I started to restore from a previous version. It worked fine, so I started to think it might work this time if I again try to update to latest version. Offcourse not, somehow I managed to delete the whole mysql database too. Now I might be screwed. But no, my backups had mysql backups too. So created database with same name and user, managed to restore again to older version.

Now I can access wiki, but it’s got old menus and fresh installation main page. Imported all pages I managed to grab from wiki before, and managed to restore main page. All other pages was updated too.

Woohoo, now it looks like it should, almost. We do miss some pictures that I will manually add within few days.

While i’m at it, I updated our wiki link to:

http://wiki.foresightlinux.se

But also made sure our older wiki links still works. But I recommend to change your bookmark to that link instead.

If you created an account past year, you might need to create a new one to be able to edit pages and create pages. I hope it isn’t a big issue for you to do that.

I also love you guys that have given my a hand on the wiki and helped me with filling few pages in it. Appriciated alot. You are the guys that makes me going and try as hard as I can to get things going. If I knew no one cared, I might just ignored wiki and let it be. But too many users love the wiki and use it alot and want the ability to search for solutions and so on.

Let’s make 2014 the best year for Foresight Linux

The post Screw you mediawiki – crashed wiki appeared first on Foresight Linux.

by Tomas Forsman at January 10, 2014 09:54 PM

January 02, 2014

Tomas Forsman (TForsman / Zinden)

Updated mediawiki

We have updated mediawiki to version 1.22.0

The whole changelog is located here: MediaWiki 1.22.0

Our community wiki is located here

The post Updated mediawiki appeared first on Foresight Linux.

by Tomas Forsman at January 02, 2014 02:11 PM

December 27, 2013

Tomas Forsman (TForsman / Zinden)

WordPress seo plugin – optimize blogging

WordPress seo plugin

Here is some WordPress seo plugin that might be interest for your blog.

Iv’e been tested many different seo plugins for wordpress and many of them are doing a great job. Some of them is better than others.

Here are a few that Iv’e been tested and recommend for you.

SEO Ultimate

gives you control over title tags, noindex, meta tags, Open Graph, slugs, canonical, autolinks, 404 errors, rich snippets. It’s free and you can download it from the page above. It doesn’t give you ideas how to improve your writing on the articles though.

wordpress seo plugin

wordpress seo plugin

 

WordPress SEO by Yoast

While this WordPress SEO plugin goes the extra mile to take care of all the technical optimization, more on that below, it first and foremost helps you write better content. WordPress SEO forces you to choose a focus keyword when you’re writing your articles, and then makes sure you use that focus keyword everywhere.

One of the most popoular SEO plugin for wordpress. The one I recommend, if you don’t want to pay anything for getting your blog more popoular.

seo

 

All in One SEO Pack

The one I recommend, if you plan to use additional tools with it. Like with SeoPressor or Squirrly.

Optimizes your WordPress blog for Search Engines (Search Engine Optimization).

It doesn’t have same features as seo by yoast, but it works fine and specially the pro version.

All-in-One-SEO-Pack-Page-Settings

SEOPressor

Over-Optimization Check: Tells user if they a™re optimized or over-optimized (from the score)

On-Page SEO: Real-time evaluation and recommendations to improve site content for SEO.  LSI (Latent Semantic Indexing) Analysis: Relates keywords together by extracting information from texts and associating them using semantic algorithms. Automatic and Intelligent Internal and External Linking: All the keywords on your site will be better-linked in terms of relevance and site navigation.

seopressor-score

Too bad it calculates density key words all wrong !!!

 

This is my key phrase in ten words of text.

What’s the keyword density in this sentence? I think you can clearly see it’s 50%, right?

But by counting the phrase as just a single word, SEOPressor, SEO Beast and ClickBump SEO! will all tell you it’s only 10%!

 

Easy WP SEO Plugin

Didn’t add much time with this plugin, it’s starting to get old and reported bugs haven’t been resolved against the customers. So I do not recommend this one at the moment. WordPress will work fine without it.

Easy-WP-SEO

Squirrly

The most powerful and active developed seo tool out there today. It have almost everything you need to optimize your blog posts or pages in your wordpress.

The only seo plugin that really helps you to understand and help you to solve the issues you might have with your wordpress site. You also get Weekly SEO Audit by Squirrly

That will give you very useful hints what you need to do to get more traffic and so on for your site. Squirrly also recommend to be run with all in one seo pack or wordpress seo by yoast. Those two can be easily run with squirrly without any issues at all.

squirrly-seo-assistant

Conclusion

I recommend All in one seo with squirrly. Squirrly costs a small amount of money every month, but worth the whole penny if you want to increase traffic and optimize your blogging. For those who doesn’t want to pay money, you can optimize 3 posts every month for free. Also different ways to “earn” days to get a pro account for a limited time.

I used to like seopressor. After some deeper testing with it, it seems it doesn’t calculate some settings right. Mentioned it above.

Today I use squirrly with all in one seo. That covers probably everything.

The post WordPress seo plugin – optimize blogging appeared first on Foresight Linux.

by Tomas Forsman at December 27, 2013 10:41 PM

what: locale::facet::_S_create_c_locale name not valid

what: locale::facet::_S_create_c_locale name not valid

If you hit that issue with any application, then you might need to setup your locale for LC_ALL=

First, we need to know what you have right now, open terminal and write:

locale

You will see something like:

LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

As you see, you are missing language for LC_ALL

You can try to write in terminal:

export LC_ALL="en_US.utf-8"

Try to run the application again, see if it’s starts. This solution didn’t work for me though. I used this command in terminal instead:

export LC_ALL=C

Now the application started for me. This issue appeared with gparted for me.

You can get the same issue with mongo, like:

Mongo error exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid, terminating

This solution will also fix that issue.

name not valid

name not valid

The post what: locale::facet::_S_create_c_locale name not valid appeared first on Foresight Linux.

by Tomas Forsman at December 27, 2013 09:38 PM

Best kids games for free – Linux

The best kids games for Linux, also free.

It’s time to let the kids take over the comptuter and let them play what they want. Here is a list of great kids games that my kids loves. The age is between 4-8 years old.

Will list them as how often they want to play it.

 

Minetest

Like Minecraft, but it’s free to install and play. An infinite-world block sandbox game and a game engine, inspired by InfiniMiner, Minecraft and the like. It doesn’t need java to run.

The best game for my 4,5 and 8 year old kids. they always wants to play it. Specially now when you can easily add new mods inside the game. (from version 0.4.7 + git)

minetest

kids games

Installation

Foresight

 

 

Gcompris

GCompris is a high quality educational software suite comprising of numerous activities for children aged 2 to 10.

Some of the activities are game orientated, but nonetheless still educational. Many different things can be done in the game, that’s why it’s so popular.

gcompris

Installation

Foresight

 

 

Ri-li

Ri-li is an arcade game licensed under the GPL (General Public License). You drive a toy wood engine in many levels and you must collect all the coaches to win.You can dowload it and play indefinitely. It’s Free.

This game is not for 4-6 years old, but older kids loves this game.

ri-li

Installation

Foresight

 

 

Tux Paint

Not a game though, but very popular for 4-7 years old kids. It combines an easy-to-use interface, fun sound effects, and an encouraging cartoon mascot who guides children as they use the program.

kids games

children games tux paint

 

Conclusion

There is alot more kids games out there, but these ones stands out and kids loves them.

The post Best kids games for free – Linux appeared first on Foresight Linux.

by Tomas Forsman at December 27, 2013 10:26 AM

December 18, 2013

Tomas Forsman (TForsman / Zinden)

DETECT_ARTICLE_LANGUAGE is not defined in config.php

Error: DETECT_ARTICLE_LANGUAGE is not defined in config.php

If you recently updated Tiny Tiny RSS server that you might be running, you need to add some configs in your config.php to get it going again.

Like updating from version 1.10 to 1.11

You get this issue:

Startup failed

Tiny Tiny RSS was unable to start properly. This usually means a misconfiguration or an incomplete upgrade. Please fix errors indicated by the following messages:

Required configuration file parameter DETECT_ARTICLE_LANGUAGE is not defined in config.php. You might need to copy it from config.php-dist.

First you need to download and open the file config.php-dist
That file is located where you have tiny tiny rss server installed.
In that file you find this:

  define(‘DETECT_ARTICLE_LANGUAGE’, true);
// Detect article language when updating feeds, presently this is only
// used for hyphenation. This may increase amount of CPU time used by
// update processes, disable if necessary (i.e. you are being billed
// for CPU time).

Copy the whole part and add it to your config.php file that is on your tiny tiny rss server. Save the file and everything is back to normal again.

Foresight ttrss users

We updated to latest tiny tiny rss version here at foresightlinux.se

tiny tiny rss

If you missed it before, I mentioned that foresight users are free to use our tiny tiny rss server. Read about that at the bottom of this post: Google reader alternatives – Running own server

As always, just take contact with me to get some missing plugins activated for you. Thanks all so far for the positive feedback for running tiny tiny rss server and those that are using it.

The post DETECT_ARTICLE_LANGUAGE is not defined in config.php appeared first on Foresight Linux.

by Tomas Forsman at December 18, 2013 09:06 PM

December 17, 2013

Tomas Forsman (TForsman / Zinden)

Find out what you have installed – Linux

Find out what you have installed in your Linux OS, specially in foresight linux.

Seems it’s hard to find out what applications  you have installed manually in various Linux distros out there. But not in Foresight, one of the easiest thing to find out and even wipe it out.

After a few months, you might start consider to erase some unused applications. But it’s hard when you have no idea what you have actually installed. That’s the main issue in many other distros.

Find out what you have installed

Start with open your terminal and open system-model file:

sudo gedit /etc/conary/system-model

# This file is an attempt to describe an existing system.
# It is intended to describe the “meaning” of the installed system.
#
# After this file is installed as /etc/conary/system-model any
# following conary update/install/erase operations will be done
# by modifying this file, then building a representation of the
# new desired state of your local system described in the modified
# file, and then updating your system to that new state.
#
# It is reasonable to edit this file with a text editor.
# Conary will preserve whole-line comments (like this one)
# when it edits this file, so you may use comments to describe
# the purpose of your modifications.
#
# After you edit this file, run the command
# conary sync
# This command will move your system to the state you have
# described by your edits to this file, or will tell you
# about errors you have introduced so that you can fix them.
#
# The “install” and “update” lines are relative only to things
# mentioned earlier in this model, not relative to what has been
# previously installed on your system.
#

Screenshot-medit - -etc-conary-system-model

As you can see, all modifications has been saved in that file. And you can easily remove a few lines to get them erased/installed again. There is no other Linux distribution that can do the same.

What do I actually do?

Just erase what you have installed and save the system-model file. Now just run:

sudo conary updateall

Now it will remove those applications and dependencies that might got installed with those applications you have removed.

Isn’t that easy?

Try to do the same in other Linux distributions, probably will give you a headache :)

The post Find out what you have installed – Linux appeared first on Foresight Linux.

by Tomas Forsman at December 17, 2013 09:29 AM

December 16, 2013

Tomas Forsman (TForsman / Zinden)

Christmas present from Foresight Linux – Free game

Exosyphen studios has given Foresight the opportunity to share the game Hacker Evolution Duality for free for all Foresight Linux users !!

Hacker Evolution Duality

Normally this game costs $19.95 but when running foresight, you get it for free.

 

How to get the game

Install requirements, if you are not using group-gnome-dist-devel, group-lxde-dist-devel or group-xfce-dist-devel

In Terminal, write this to see if it’s installed or not:

conary q conary-build

If you don’t have it, installed it with:

sudo conary install conary-build

Open terminal, write:

cvc cook hed=@gameway.rpath.org@fl:2 --download

It will download the game and the download will be located at: ~/home/conary/cache/hed/****/***

Unpack the compressed file to your ~/home folder, then go into that folder with terminal:

cd HackerEvolutionDuality

Make it executable (64bit):

chmod +x HackerEvolutionDuality-64bit

for 32bit:

chmod +x HackerEvolutionDuality-32bit

 

Play the game

Write in terminal:

./HackerEvolutionDuality-64bit

For 32bit:

./HackerEvolutionDuality-32bit

The post Christmas present from Foresight Linux – Free game appeared first on Foresight Linux.

by Tomas Forsman at December 16, 2013 10:56 AM

December 15, 2013

Tomas Forsman (TForsman / Zinden)

Bitcoin – How to get started and backup

Bitcoin

Is an innovative payment network and a new kind of money.

Bitcoin uses peer-to-peer technology to operate with no central authority or banks; managing transactions and the issuing of bitcoins is carried out collectively by the network. Bitcoin is open-source; its design is public, nobody owns or controls Bitcoin and everyone can take part. Through many of its unique properties, Bitcoin allows exciting uses that could not be covered by any previous payment system.

 

Multibit

It is an application that can be easily run in Linux and specially in Foresight Linux. It uses bitcoin to transfer and request money.

MultiBit bitcoin wallet

MultiBit bitcoin wallet

Installation: Foresight Linux

How to backup your wallet using private keys

You can export your private keys from a MultiBit wallet into a file (using the ‘Tools | Export private keys Export private keys’ option) and, as long as you do not manually create new receiving addresses, you can use the private key file as a backup for the wallet.

If something happened to your wallet and you want to recreate it do the following:

Create a new empty wallet.
Import your private keys file using the ‘Tools | Import private keys Import private keys’ option.
MultiBit then adds the private keys from the file into the new wallet and replays the blockchain to get the transactions.

The post Bitcoin – How to get started and backup appeared first on Foresight Linux.

by Tomas Forsman at December 15, 2013 10:25 PM

December 13, 2013

Tomas Forsman (TForsman / Zinden)

Changed theme foresightlinux.se

foresightlinux.se has changed theme template.

We have changed theme. Easier now to see recent posts and comments. Easier to maintain and loads a bit faster than the older theme.

 

by Tomas Forsman at December 13, 2013 10:37 PM

December 02, 2013

Foresight Linux Official News

Removed packages from official repository

abgx360, abgx360-gui, desmume and zsnes has been removed from official repository.
To install it, you need to install them from foresighters repo.

Read more at: http://www.foresightlinux.se/wiki-en/index.php?title=List_Of_Emulators

 

by Tomas Forsman at December 02, 2013 06:52 PM

December 01, 2013

Tomas Forsman (TForsman / Zinden)

Auto mount mtp devices – Android in Linux

Auto-mount  Android devices in Foresight.

Foresight will now auto mount mtp devices, like android telephones in nautilus.

android

Tested with Samsung galaxy S3, Samsung galaxy S3 4G, Sony Xperia Z. Works perfectly with those.

by Tomas Forsman at December 01, 2013 08:45 PM

November 27, 2013

Tomas Forsman (TForsman / Zinden)

Steam Games – huge sale

Some tips for some great games for your steam.

First we can start with some bundles, get many games for a tiny prize. Many of these bundles works only with Windows, but some are for Linux too. I still recommend to buy the bundle, as it’s very cheap and you still get some Linux games. Here is 3 bundles:

The Outer Limits Bundle

The Bundle Includes:
Sword of the Stars II Enhanced Edition,
Project Freedom,
Weird Worlds: Return to Infinite Space,
SpaceChem,
SpaceChem: 63 Corvi DLC (add-on),
Really Big Sky,
Planets Under Attack,
Data Jammers: FastForward,
Ion Assault

 

Total amount on steam store: 84.91€

You only pay: £2.60

 

The FPS Warriors Bundle

The Bundle Includes:
The Ship: Complete Pack,
Legendary,
Shattered Horizon,
Section 8,
Dino D-Day,
Sniper: Ghost Warrior Gold Edition

 

Total amount on steam store: 57.94€

You only pay: £2.25

 

The Outer Limits Bundle

The Bundle Includes:
UFO Extraterrestrials Gold,
Blades of Time Limited Edition,
Insane 2,
Hydrophobia Prophecy,
Race Injection,
Warfare,
Puzzle Kingdoms,
Gumboy Tournament,
Supreme Ruler 2020 Gold,
Razor2: Hidden Skies

 

Total amount on steam store: 123.86€

You only pay: £2.98

 

 

The GREAT game

As usual, the bundles package games doesn’t have any outstanding games. This game is only available for a very limited time, usually 1-2 days only. This game will be playable with Linux too, without any issues.

 

Left 4 dead 2

The best game out there for Linux at the moment, if you love zombie games and FPS games.

Prize: 19.99€ 4.99€

l4d

 

 

Garry’s Mod

Not really a game, just an addon for other games to play around with. Like L4D 2 or similar. So if you plan to buy Left 4 dead 2, then buy this at the same time. You won’t regret it. Garry’s Mod is a Sandbox Game based around the idea of building. Unlike most other games there aren’t any objectives – you can’t lose and you definitely can’t win.

Prize: 9.99€ 4.99€

 

l4d_garry_mod

by Tomas Forsman at November 27, 2013 08:58 PM

November 16, 2013

Tomas Forsman (TForsman / Zinden)

Google+ for foresightlinux.se

Iv’e been starting to write in swedish on google+ for foresightlinux.se

It can be about updates on wiki, new packages, updated packages and all kinds of rants…..

Wondering if someone is interested that I would write in english instead?

It will be alot more all kinds of information there, as it’s mostly all about foresightlinux.se changes/updates and so on….

 

So give me a comment if you like it to be in english posts instead.

Foresight Linux – SE

 

by Tomas Forsman at November 16, 2013 09:10 AM

November 11, 2013

Tomas Forsman (TForsman / Zinden)

Best first person shooter games – Linux

Best first person shooter ( fps ) games for Linux today.

 

There are alot of first person shooter games for linux out there. Some are ok, but some really rocks your world. Specially when they are free to use and play. Without anything costs any money.

These games we listed here, is free to use and some are open source. We have added them in no participle order.

we also excluded games that only runs with steam or demands data from other games to be able to run.

 

Alien Arena

Alien Arena is a furious frag fest with arenas ranging from the small, to the massive. With a large built-in player base, it’s never hard to find a good match going on, at any hour of the day. Dozens of maps, models, and various accessories have been created by community members to add on to the game experience.

 

Alien Arena 7.66

Installation

Foresight

 

 

AssaultCube Reloaded

This game is a fork of Assault Cube, which is obvious from the name, that aims to improve the classic!

This game combines the best of all worlds. Realism from Battlefield, anti-cheat inspired by the Quake engine, perks from Call of Duty, mutators from Red Eclipse, and fast-paced gameplay with a low system footprint from AssaultCube and the Cube Engine.

 

AssaultCube Reloaded

 

 

Cube 2: Sauerbraten

is a free multiplayer & singleplayer first person shooter, the successor of the Cube FPS.

Much like the original Cube, the aim of this game is fun, old school deathmatch gameplay and also to allow map/geometry editing to be done cooperatively in-game.

 

cube 2 sauerbraten

Installation

Foresight

 

Smokin’ Guns

first person Western style shooter based on the Quake 3 engine (Id Tech 3). Smokin’ Guns is intended to be a semi-realistic simulation of the American Old West’s atmosphere.

Gameplay as well as locations are inspired by Western movies,particularly those from the Spaghetti western genre.

 

smokin' guns

Installation

Foresight

 

 

Red Eclipse

Red Eclipse is a fun-filled new take on the casual first person arena shooter, built as a total conversion of Cube Engine 2, which lends itself toward a balanced gameplay, with a general theme of agility in a variety of environments. It features: Parkour, impulse boosts, dashing, and other tricks. Favourite game modes with an array of mutators and variables. A built-in editor lets you create your own maps cooperatively online.

red eclipse

 

Warsow

Speed and movement is what Warsow is all about. Like a true cyberathlete you jump, dash, dodge, and walljump your way through the game. Grab power-ups before your enemy does, plant a bomb before anyone sees you, and steal the enemy’s flag before they know what is going on!

warsow

Installation

Foresight

 

 

World of padman

A cartoon style add-on with creative deathmatch weapons and models.

The idea of the game is based on the Padman comic strip for the magazine PlayStation Games created by the professional cartoon artist Andreas Endres, who is also the man who made many of the maps included with the game in 1998.

In World of Padman when you run out of health you will die unless you restore your health at a loading station or with the power-up ‘revival’ unlike in other games. In World of Padman there are no health bubbles to collect unlike in games such as Quake III Arena. As long as you stand on a loading station, which is currently shown on the left of this section, you’ll regenerate your health over a short period of time.

world of padman

Installation

Foresight

Xonotic

Xonotic is a direct successor of the Nexuiz project. It represents years of development from its humble beginnings as a Quake 1 engine modification, and now aims to be the best possible open source first person shooter available. It could be considered most similar to Unreal Tournament and Quake at its heart, especially regarding teamplay and game mechanics.

xonotic

Installation

Foresight

Urban Terror

Urban Terror can be described as a Hollywood tactical shooter; somewhat realism based, but the motto is “fun over realism”. This results in a very unique, enjoyable and addictive game.

urban terror

Installation

Foresight

 

Open Arena

OpenArena is a community-produced deathmatch FPS based on GPL idTech3 technology.

There are many game types supported including Free For All, Capture The Flag, Domination, Overload, Harvester, and more.

open arena

Wolfenstein Enemy Territory

Players wage team-based combat as Axis or Allies. Because it’s a team game, the only way to complete the objectives that lead to victory is by cooperation. Cover your teammates using your special class abilities in concert with the others.

Select one of five distinct character classes each with unique combat abilities, such as Covert Ops, Engineers, Medics, and Field Ops. Earn experience points in several skill categories, such as Battle Sense and Light Weapons.

Wolfenstein_-_Enemy_Territory

 

Unvanquished

A fast-paced, futuristic FPS with RTS elements, pitting technologically advanced humans against hordes of highly adaptable aliens. The player can choose from either team, providing a fresh gameplay experience on both sides of the conflict.

unvanquished

 

Blood Frontier

Blood Frontier was a single-player and multi-player first-person shooter game, built as a total conversion of Cube Engine 2 (Sauerbraten). The project has been discontinued. Still is fun to play though.

blood-frontier

Installation

Foresight

 

Tremulous

Game that blends a team based FPS with elements of an RTS. Players can choose from 2 unique races, aliens and humans. Players on both teams are able to build working structures in-game like an RTS. These structures provide many functions, the most important being spawning. The designated builders must ensure there are spawn structures or other players will not be able to rejoin the game after death. Other structures provide automated base defense (to some degree), healing functions and much more…

The overall objective behind Tremulous is to eliminate the opposing team. This is achieved by not only killing the opposing players but also removing their ability to respawn by destroying their spawn structures.

tremulous

Installation

Foresight

 

 

Conclusion

Urban terror and Xonotic is the ones I play most when it comes to fps games. You won’t get tired of them as fast that you might do with the other games.

I would start to recommend Urban terror, as it’s fun, realistic and many players plays that game.

by Tomas Forsman at November 11, 2013 11:42 AM

November 08, 2013

Tomas Forsman (TForsman / Zinden)

Minetest – Mods installation from the game

Minetest is a Minecraft game.

The huge different is that minetest is free to use and play. Also minecraft uses java to run and minetest do not use java.

In Foresight Linux, we always try to update minetest when changes are done. The biggest changes is that you can now download and install mods from inside the game.

minetest

You got now a mods tab where you can see Install and Download buttons to use to install new mods. Download button will list available mods and being able to install it from the game itself.

minetest_mods

 

As usual, to install the game in Foresight Linux, go to our wiki page and read how to install it.

We build it from git repository, so the version is 0.4.7 with latest commits from git.

by Tomas Forsman at November 08, 2013 09:04 AM

Missing bookmark icon Firefox – Linux

Make missing bookmark icon menu visible again in Ffox.

 

Suddenly you might noticed that your bookmark icon is gone in Linux. Might look like this:

Firefox missing bookmark icon

 

You only see download and home icon in your top bar. This might be a bug in Firefox, not sure as it’s hard to actually find information about this in google. too many useless hits about this is shown instead.

 

To get back your bookmark icon, you need to disable/remove “Menu Bar” from View > Toolbars > Menu Bar. When it’s disabled, you can see your bookmark icon on the right side again.

 

Firefox bookmark menu

 

This issue has been reported in other Linux OS too, like arch, mint, ubuntu, fedora and other dists.

I think this issue started with version 23.0 and newer.

 

There is even addons for making it visible again, and I have no clue why in the hell you want a addon for making it visible?

Anyway, the addon for making it visible is located here.

by Tomas Forsman at November 08, 2013 07:52 AM

October 19, 2013

Tomas Forsman (TForsman / Zinden)

Firefox 25.0b9 is out and available

New version is out.

Recently Firefox released another Beta version, 25.0b9

It is already available to download and install for Foresight Linux users. Read all aobut how to install it here.

 

If you have already installed Firefox beta, then a conary updateall will give you the latest beta.

by Tomas Forsman at October 19, 2013 07:47 AM

October 17, 2013

Tomas Forsman (TForsman / Zinden)

Firefox beta – Always get the latest beta available

Always get the latest Firefox Beta.

Now you can always get latest Firefox Beta, as it’s usually stable enough to daily use.

As I write this, the version is 25.0b8

 

Firefox beta

 

Release notes

You can read the release notes here: https://www.mozilla.org/en-US/firefox/25.0beta/releasenotes/

 

 

Installation

To make it as easy as possible, I added a wiki page for this to read instead. See it here

This will make it easy for those who uses Foresight Linux.

 

by Tomas Forsman at October 17, 2013 07:11 PM

October 14, 2013

Tomas Forsman (TForsman / Zinden)

Latest OpenOffice and LibreOffice in Foresight Linux

Older Libreoffice as default, time to change?

As most users know, we got an older LibreOffice in Foresight. But can be changed and use instead latest OpenOffice or Libreoffice instead.

 

LibreOffice

To make it as easy as possible, we got a great wiki page written how to change to latest version. Read all about it here.

 

Screenshot-Untitled 1 - LibreOffice Writer

 

OpenOffice

To make it as easy as possible, we got a great wiki page written how to change to latest version. Read all about it here.

 

Screenshot-Untitled 1 - OpenOffice Writer

 

 

 

by Tomas Forsman at October 14, 2013 01:03 PM

October 13, 2013

Tomas Forsman (TForsman / Zinden)

Best video players for linux

The difference between the video players for Linux.

There are many things that are different between the applications. The most common differences are what they can do and how they can do it.

We start with the three ones that has plugins for your web browser.

VLC

A multi-platform MPEG, VCD/DVD, and DivX. The best one out there. Handles almost everything you can think of playing. It even handles to play .iso files and handle dvd menu perfectly. Version 2.1.0 is 4K-ready.

npapi-vlc, browser plugin for firefox or opera. To make it use vlc to play different videos on the web.

Screenshot-Foresight Linux information.mp4 - VLC media player

 

MPlayer / SMPlayer

A movie player. Supports reading from network, dvd, vcd, file, pipes, and v4l and more. MPlayer is probably most common to use. As default you do not have any GUI for it. You need to install like smplayer. SMPlayer adds other interesting features like the possibility to play Youtube videos or download subtitles. One of the most interesting features of SMPlayer: it remembers the settings of all files you play. So you start to watch a movie but you have to leave… don’t worry, when you open that movie again it will be resumed at the same point you left it, and with the same settings: audio track, subtitles, volume…

It uses gecko-mediaplayer to use MPlayer in web browsers.

 

Screenshot-SMPlayer

 

 

Totem

Totem is the official movie player of the GNOME desktop environment based on GStreamer. It features a playlist, a full-screen mode, seek and volume controls, as well as keyboard navigation. Totem comes with a plugin that makes it possible to stream from web browsers.

 

totem

 

 

Additional ones

These ones doesn’t fit to be used as a pure video player, but worth mention that they exist.

 

Miro

The concept behind Miro is brilliant, yet simple: create a jukebox video and audio player that can subscribe to and download podcasts while managing your locally saved media. It’s more usable for watching podcast and stream videos.

 

Screenshot-Miro

 

UMPlayer

With dozens of advanced features and built-in codecs it can handle any media format, and can play Audio CDs, DVDs, (S)VCDs, TV / Radio cards, YouTube™ and SHOUTcast™ streams and even incomplete or damaged media files.

This one is better to use as a video player than Miro though.

Screenshot-UMPlayer

 

Conclusion

The best one is VLC, as it handles almost everything out of the box and works in Windows, Mac, Android and Linux.

SMPlayer with ffmpeg as backend is probably the best one to run screencast from though. If you want an alternative, then SMPlayer is the one to use.

When it comes to codecs, ffmpeg and VLC can play almost as much different video format. ffmpeg is more useful when using it with terminal though. As it’s built for terminal.

by Tomas Forsman at October 13, 2013 05:12 PM

October 08, 2013

Tomas Forsman (TForsman / Zinden)

Setup VPN in Foresight Linux (gnome2)

Guide to setup VPN (openvpn) in Foresight Linux.

OpenVPN allows peers to authenticate each other using a pre-shared secret key, certificates, or username/password. When used in a multiclient-server configuration, it allows the server to release an authentication certificate for every client, using signature and Certificate authority. It uses the OpenSSL encryption library extensively, as well as the SSLv3/TLSv1 protocol, and contains many security and control features.

 

First you need to get an account, like from any of these:

Integrity.st

Nvpn

Mullvad

ExpressVPN

Airvpn

 

If you live in sweden, then you can order Integrity from Bahnhof. It costs 40 sek/month.

 

 

Start with rightclick on NetworkManager Applet in upper right corner, choose Edit Connections…

Screenshot-Network Connections

 

Leftclick on Add

 

VPN_connection

Choose Point-to-Point Tunniling Protocol (PPTP)

Then leftclick on Create…

 

Screenshot-Editing VPN connection 1

Fill in your account user details and leftclick on Advanced…

 

Screenshot-PPTP Advanced Options

Make sure to enable Use Point-to-Point encryption (MPPE), then I always use 128-bit. You can choose All available instead. Then you can leftclick on OK, and in the other popup window you can leftclick on Save.

 

Now you can connect to your VPN and you will see a padlock in the network manager applet. Then you know you are connected to VPN.

 

connect openvpn

 

To actually see that you have another ip, you can go to: http://www.whatismyip.com/ and see for yourself.

 

by Tomas Forsman at October 08, 2013 11:22 AM

October 07, 2013

Tomas Forsman (TForsman / Zinden)

How to install Tor-browser in Foresight Linux

Easiest way to install Tor-browser and get going.

Tor only protects your applications that are properly configured to send their Internet traffic through Tor. To avoid problems with Tor configuration, we strongly recommend you use the Tor Browser Bundle. It is pre-configured to protect your privacy and anonymity on the web as long as you’re browsing with the Tor Browser itself.

To make everything as smooth as possible, we made a few steps for you to write in terminal to make the hard work for you.

So let’s get started

1. Download the file from terminal

wget https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-x86_64-2.3.25-13-dev-en-US.tar.gz --no-check-certificate

That will download the 64bit file for you. To use 32bit, you only change x86_64 to i686 in the link address.

2. Unpack it

tar xvzf tor-browser-gnu-linux-x86_64-2.3.25-13-dev-en-US.tar.gz

3. Go into the unpacked folder

cd tor-browser_en-US

4. Start the browser and start surfing

./start-tor-browser

 

You will see that TOR is starting up and waiting for become active.

Vidalia Control Panel

After a min or two, you will see that it’s active and working.

Screenshot-Vidalia Control Panel-1

 

This is the easiest way to download, unpack and start the tor-browser. This way you will always be safe to surf on the internet. Do not forget to check out TOR download page if there is a newer version available. If there is, just change the version in the commands to match the new version available. This browser is based on firefox. And we do not recommend to install any plugins, as you also can read at TOR download page.

 

Tor Browser

 

We have also added this information in our Wiki.

 

by Tomas Forsman at October 07, 2013 10:05 PM

The TOR Project Tells Everyone to Stop Using Windows

how to get more secure with TOR.

More users are looking at different ways to become more secure on the internet and how to increase the security to be anonymous on the internet.

 

Tor protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world: it prevents somebody watching your Internet connection from learning what sites you visit, and it prevents the sites you visit from learning your physical location. Tor works with many of your existing applications, including web browsers, instant messaging clients, remote login, and other applications based on the TCP protocol.

 

switching away from Windows is probably a good security move for many reasons,” the TOR Project said in a security advisory. But for this specific exploit it was especially bad since the hackers—probably a government agency—specifically targeted Windows users. Mac and Linux users were not affected.

TOR Project is now asking everyone to take a step back and stop using Windows. It’s not just this latest episode of snooping, though. Windows just isn’t a great operating system in terms of security in general, they say.

Source for the info

 

TOR in Foresight

 

There is a init process, that starts tor during boot. If you haven’t rebooted yet or turned off the tor- init you have to start it yourself.

Open a terminal

type: tor

Now, tor starts with default- settings. You can change these by editing the config- file “/etc/tor/torrc”. Read more in /etc/tor/torrc.sample.

Next you’ll have to configure your programs to use tor- proxy. The proxy, you’ll have to use is “localhost:9050″.

There are tools that help to configure tor for Firefox. Try addons like FoxyProxy, SwitchProxy or Torbutton.

Also available in: Wiki

Get more secure, use qbittorrent with anonymous mode. Read more at our wiki. Also possible to add blocklist for Qbittorrent

by Tomas Forsman at October 07, 2013 07:07 PM

September 25, 2013

Tomas Forsman (TForsman / Zinden)

Spotify vs Deezer vs Grooveshark vs Wimp vs Rdio

The best music services out there, here is the comparison between them.

 

Spotify vs Deezer vs Grooveshark vs Wimp vs Rdio

 

Deezer Grooveshark Rdio Spotify Wimp
Price £9.99 £9.99 £9.99 £9.99 £9.99
Songs 25 Millions + 15 Millions + 20 Millions + 20 Millions + 20 Millions +
Android Yes Yes Yes Yes Yes
Linux app No Yes (not official) No Yes Yes (using adobe air)
Offline Play Yes Yes Yes Yes Yes
Upload Music Yes Yes No Yes No

 

 

Grooveshark

There might be some legal issues with their service, as google play, apple store and facebook has removed their app from their market.

Also they use java to upload own music to your library from their site. That forces you to have java installed. it looks like Win98 to upload music.

Works in most countries though.

uplad grooveshark

 

Deezer

Deezer app is available in google play and app store. Got a great way to recommend music for you, even in genres. Probably best quality for all services for music. If you google, you will find out that is alot better than Spotify. Works in almost every devices out there, even in Smart TV.

Only service that offer 320kbps for most of the songs.

Deezer in Linux

 

Spotify

Most used service in those countries that has spotify available. Has app for all common devices out there. Has a few songs for many rare groups. Deezer has a few less, but instead has more songs for the artists. Has a native Linux application. If you don’t care so much about the quality of the songs, you would use Spotify. It also have 320kbps, but it looks like it have alot less songs that uses that Bitrate than Deezer.

spotify

Rdio

I love reggae and Rdio doesn’t offer much rare reggae groups though. Hard to find songs from specific groups that aren’t so famous yet. Many Swedish groups has 1-3 songs available in Rdio, but in Spotify or Deezer there is usually 2-3 albums of same artist.

Not sure why you should use Rdio instead of other music service.

rdio

Wimp

Only available in a handful of countries. Using adobe air to make the application to work in Linux. and adobe air is abandoned. Bad buffering of the songs you are listening online. Just a tunnel will cut off the music for few seconds before it starts again. You don’t have this issue in Deezer or Spotify.

wimp

 

Conclusion

 

If you want high quality and doesn’t care so much what everyone else is using, then you should use Deezer. Spotify is still most popoular service, but lower quality of the songs though. I’m not sure when I would recommend Grooveshark, Rdio or Wimp before the other two.

Both Deezer and Spotify have a limit to install on 3 devices at the same time for using it in offline mode. Both services has a very active Android app that updates often. Costs the same amount of money.

My daughter that is 12 years old, thinks it’s easier to navigate on Deezer and find music.

If I would recommend one service, I would use Deezer. Just because of better quality of the sound.

 

Deezer on Samsung TV

by Tomas Forsman at September 25, 2013 10:28 AM

September 22, 2013

Tomas Forsman (TForsman / Zinden)

Use wine with Nvidia optimus cards

We asume you are using Foresight Linux 64bit system.

To be able to run wine with bumblebee, you need to install VirtualGL 32bit libraries to your Foresight 64bit system.

If you try to start something with optirun wine ***** , you might get errors like:

ERROR: ld.so: object 'librrfaker.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded: ignored.

That’s because wine is a 32bit application and your system is missing 32bit libraries. To install missing library:

sudo conary install VirtualGL:lib[is:x86]

 

Now you can run wine again and start games with optirun.

 

This information is also available on our wiki.

 

 

by Tomas Forsman at September 22, 2013 09:15 PM

September 20, 2013

Martin Bähr

watch for the fish shell

The following command is used to watch the progress of files being updated in a directory.

watch 'du -h *| tail -20 | cut -c -$(($COLUMNS-5))'

cut is used so we don't get linewraps in the output. And we need to subtract 5 from the width because there is a tabstop in there which cut counts as 1 instead of the width of the tabstop (which is 8 minus the width of the size column)

This command works fine as long as files are updated in alphabetical order, but when this is not the case we need to sort files by time.

We need to do something like this instead:

watch 'du -h $(ls -tr)| tail -20 | cut -c -$(($COLUMNS-5))'

Unfortunately this only works if the filenames don't contain spaces.

fish handles spaces in filenames just fine:

du -h (ls -tr)| tail -20 | cut -c -(math $COLUMNS - 5)

So instead of trying to find a solution for dealing with spaces in bash, lets just use a better shell, shall we?

However, watch insists on executing the command with sh -c, so we need to devise our own watch loop for fish instead. That's not really hard:

while true
  clear
  du -h (ls -tr) | tail -20 | cut -c -(math $COLUMNS - 5)
  sleep 2
end

Unfortunately using clear causes an annoying flicker, especially if the du command takes a bit longer.

ANSI escape-sequences help:


clear
while true
  echo \e\[H
  du -h (ls -tr) | tail -20 | cut -c -(math $COLUMNS - 5)
  sleep 2
end

This causes the cursor to be moved into the top-left corner without clearing the screen. Now we are almost there. Two problems still:
The tab character used to align the columns does not overwrite anything in its space. Likewise at the end of the line, if the newly written line is shorter then the remaining part of the old line is not cleared.

We can fix this with some sed trickery to clear the path:


clear
while true
    echo \e\[H
    du -h (ls -tr) | tail -20 | sed -e 's/^/\x1b\[K/' | cut -c -(math $COLUMNS - 2)
    sleep 2
end

The ANSI escape sequence ESC[K clears the line just before it is rewritten. This has almost the same effect as clearing the screen, but without the flicker because we only start clearing after du has done its work.
And because the escape sequence adds 3 characters to the output we need to adjust the width accordingly.

At the end we can also add a command to clear the rest of the screen.

Leaves one last issue: $COLUMNS doesn't get updated if the terminal is resized. Granted, it's a nit-pick really, because how often does one resize the terminal. But to make this command generally usable, let's fix this too:


clear
while true
    echo \e\[H
    du -h (ls -tr) | tail -20 | sed -e 's/^/\x1b\[K/' | cut -c -(math (tput cols) - 2)
    echo \e\[0J
    sleep 2
end

This is now pretty usable, so we'll leave it at that. There is still some room for improvement though. For example we could make the line-count flexible based on the terminal height. Also currently we are estimating that the size column is at least 2 characters wide so the tabstop adds at most 5 characters worth of space which cut does not count. Should it be less then we would get a linewrap again and if it is more then we get empty space at the end of the line. cut likely also has problems with multibyte unicode characters. This can probably be solved by switching the terminal in a no-wrap mode while the command is running, or finding a replacement for cut that handles these issues.

Update:

For those who prefer to stick with sh, i found a way how do deal with spaces:

watch 'ls -tr | while IFS= read -r i; do du -h "$i"; done | tail -20 | cut -c -$(($COLUMNS-5))'

by Martin Baehr (mbaehr@community.gotpike.org) at September 20, 2013 03:36 AM

September 17, 2013

Tomas Forsman (TForsman / Zinden)

Daily stats – Approx 1000 daily visits

foresightlinux.se has around 1000 daily users from all over the world. We thought we lost google indexing this site few weeks ago, but it doesn’t show on the stats though.

 

daily_stats

 

The users use chrome/chromium before firefox, that is a tiny surprise for me.

by Tomas Forsman at September 17, 2013 07:58 PM

September 13, 2013

Og Maciel (OgMaciel)

Using Python to Control Katello

Emacs editor with python code

I usually like to use python to script my day to day tests against Katello (you may have seen some of my previous posts about using the Katello CLI for the same purpose) and I figured I’d start showing some basic examples for anyone else out there who may be interested.

Assuming you have already installed and configured your Katello instance (learn how to do this here) with the default configurations, we now have a few options to proceed:

  1. write and run your scripts in the same environment as your server
  2. install the katello-cli package (pip install katello-cli)
  3. Use git to clone the katello-cli repository (git clone https://github.com/Katello/katello-cli.git) and make sure to include it into your PYTHONPATH.

Option 1 is by far the easiest approach since you should have all the dependencies (namely kerberos and M2Crypto) already installed, but I like Option 3 as it allows me to always have the latest code to play with.

Now we’re ready to write some code! The first thing we’ll do is import some of the Katello modules:

 from katello.client import server
 from katello.client.server import BasicAuthentication
 from katello.client.api.organization import OrganizationAPI
 from katello.client.api.system_group import SystemGroupAPI

Next, we establish a connection to the Katello server (qetello01.example.com in my case), using the default credentials of admin/admin:

katello_server = server.KatelloServer(host='qetello01.example.com', path_prefix='/katello/', port=443)
katello_server.set_auth_method(BasicAuthentication(username='admin', password='admin'))
server.set_active_server(katello_server)
 
Let’s now instantiate the Organization API object and use it to fetch the “ACME_Corporation" that gets automatically created for a default installation:
 
organization_api = OrganizationAPI()
org = organization_api.organization('ACME_Corporation')
print org
{u’apply_info_task_id’: None,
u’created_at’: u’2013-09-12T20:15:06Z’,
u’default_info’: {u’distributor’: [], u’system’: []},
u’deletion_task_id’: None,
u’description’: u’ACME_Corporation Organization’,
u’id’: 1,
u’label’: u’ACME_Corporation’,
u’name’: u’ACME_Corporation’,
u’owner_auto_attach_all_systems_task_id’: None,
u’service_level’: None,
u’service_levels’: [],
u’updated_at’: u’2013-09-12T20:15:06Z’}

Lastly, let’s create a brand new organization:
 
new_org = organization_api.create(name='New Org', label='new-org', description='Created via API')
print new_org
{u’apply_info_task_id’: None,
u’created_at’: u’2013-09-12T21:48:55Z’,
u’default_info’: {u’distributor’: [], u’system’: []},
u’deletion_task_id’: None,
u’description’: u’Created via API’,
u’id’: 283,
u’label’: u’new-org’,
u’name’: u’New Org’,
u’owner_auto_attach_all_systems_task_id’: None,
u’service_level’: None,
u’service_levels’: [],
u’updated_at’: u’2013-09-12T21:48:55Z’}

As you can see, it is pretty straight forward to use python to create some useful scripts to drive a Katello server, whether you want to populate it with a pre-defined set of data (e.g. default users, roles, permissions, organizations, content, etc) or to test core functionality as I do with Mangonel, my pet project.
 
Here’s a Gist of the code mentioned in this post, and let me know if this was useful to you.

September 13, 2013 12:36 AM

September 05, 2013

Tomas Forsman (TForsman / Zinden)

Valve Has Greenlit 100 Titles On Steam

100 titles got greenlit on Steam as a stress test of their system, great for the indie’s and great for us too!

The big list of Linux supported items:

8BitMMO
Against The Wall
Amikrog
Black Annex (Linux release later)
Chroma Squad
Constant C (port in making)
Cook Serve Delicious
C-Wars
Dead Cyborg
Delver
Delver’s Drop
Dominions 3: The Awakening
Doorways
Draw a Stickman: EPIC
Dysfunctional Systems: Learning to Manage Chaos
Escape Goat
Forced
Gravi
Guise of the Wolf
Iesabel
Kainy
Knock-Knock
Knytt Underground
Legend of the Knightwasher
Legends of Aethereus
Megabyte Punch
NEO Scavenger
Oniken
Paranautical Activity
POOL NATION featuring Box of Tricks
Project Black Sun
Rawbots
Ray’s The Dead
Rebirth
Reprisal
Road Redemption
RUNNING WITH RIFLES
Salvation Prophecy
Signal Ops
Son of Nor
Soul Saga
Survivor
Talisman Digital Edition
Teslagrad
The Plan
Toribash
(List SourceGreenlight Link)

 

Also 280 games/addons are currently available for linux at steam (source)

 

 

by Tomas Forsman at September 05, 2013 07:47 PM

0 A.D. – Alpha 14 – Naukratis

0 A.D released Alpha 14. So what’s the news?

 

let’s review what’s new in Alpha 14.

Posted Image
  • Blacksmiths: A brand new building type for the game, complete with models for all factions. Researches attack and armor upgrades.
  • Infinite farms: A farm will now keep yielding food until the end of the match, without need to rebuild it, but with diminishing returns. Only up to 5 gatherers can work on each farm. (Veteran players will notice that more space is now required to produce the same amount of food.)
  • Exponential armor and realistic health: Technologies now have the same effect on all units. Also, changes to the way units’ health is calculated in the game allowed us to correct some unrealistic phenomena, like archer damage to buildings.
  • Allies can now garrison in each other’s buildings.
  • Shared trade gain with allies: When you trade with an ally, there is a +25% bonus over trading with yourself, that is now split between you and your ally.
  • Ranged units can hit farther from high places.
  • Ranged units had to be within a minimum range from their targets to fire at them. This requirement has been removed.

Graphics, Sound and User Interface Improvements

  • Hero button: A persistent button in the top left appears when you train your one allowed hero(ine). Clicking it selects the hero(ine) wherever he or she is on the map.
  • Game speed controls: In single-player games, change the game’s speed whenever you want to.
  • Location hotkeys: You can now mark camera positions and jump back to them later with hotkeys.
  • GUI dropdowns support typing for quick selection.
  • Sound manager improvements: The game now plays a list of multiple songs per match, instead of playing just one song in a loop. Also, the user interface now responds to the user with sounds.
  • Terrain anchoring: Units now move more realistically on hills.
  • Saved games can now be given descriptions and deleted or overwritten in-game.
  • Several random maps were changed to be more beautiful and playable.
  • Fancy water rendering is now faster and improved.
  • Ships look better when sinking.
Posted Image

The Atlas Scenario Editor, Bug Fixes and Miscellaneous Features

  • Pike elevation tool in Atlas: Allows for making mountains and cliffs more easily.
  • Mod improvements: Saving maps in Atlas will no longer make it crash.
  • Fixed some common out-of-sync and out-of-memory errors.
  • Alert sounds no longer heard by all players, off-screen sounds only heard when appropriate.
  • Fixed crash with Nvidia Optimus graphics and some netbooks.
  • Walls can be placed along shores.
  • Improved hotkey support for non-QWERTY keyboards.
  • Several performance improvements.

 

Foresighters

sudo conary install 0ad=gameway.rpath.org@fl:2

Also read: http://www.foresightlinux.se/wiki-en/index.php?title=0ad

by Tomas Forsman at September 05, 2013 07:03 PM

September 04, 2013

Tomas Forsman (TForsman / Zinden)

Time to give up?

The setbacks continues. has become a few over the years. Now, apparently, Google removed foresightlinux.se from its search engine.
Have unfortunately no idea why and patience is running out. You can not take what seems like forever …..

We’ll see how this all ends.

 

 

Edit after posted this. My site is back again. I hope it’s a one time issue…..

by Tomas Forsman at September 04, 2013 06:51 PM

September 01, 2013

Tomas Forsman (TForsman / Zinden)

Disqus Comment System Enabled

We have enabled Disqus Comment plugin for this site. This will make it easier to be able to comment posts in our blog.

Many users has requested this feature and we have now listened to all of you.

by Tomas Forsman at September 01, 2013 07:46 PM

Get Deezer Premium+ for free

Get Deezer Premium+ for free

There is always glitches in new services and some are easier to find than others. You can get Deezer premium without paying for it every month.

Some brief information about Deezer:

Deezer is a web-based music streaming service. It allows users to listen to music on various devices online or offline. Created in Paris, France, Deezer currently has more than 25 million licensed tracks, over 30,000 radio channels and 30 million users, 4 million of whom are paying subscribers.

deezer premium free

 

How to get premium for free?

 

First you need to create an account. If you already have one, you probably need to create a new account again. As you need to start 15 days offer of premium+ when adding your visa card information. Before you do it, you need to create a temporary visa that you create from your bank. It’s a custom visa card that you will use for a limit of time. You also need to make sure you have atleast $2 on that card.

If you can’t create a temporary visa card at your bank, you might have a visa electron instead. Deezer will take $1.5 when you add your visa elextron, but will fail when it’s time to take $15 after the 15 day trail.

 

So how will this make it free?

As soon it fails to draw your money, it will fallback to your 15 day trail again and you get another 15 days offer for Premium+.

Don’t know if this is a bug in their system or it will try to draw money from your card until the card will not be valid anymore.

Deezer do know about this issue already, but they haven’t done anything against it so far.

 

by Tomas Forsman at September 01, 2013 07:32 PM

August 16, 2013

Tomas Forsman (TForsman / Zinden)

New sponsor for foresightlinux.se

Incapsula now sponsor Foresight Linux.

This means we now have ssl certificate for foresightlinux.se and we are behind Web Application Firewall. The site will load alot faster with incapsula cache and it will automatically block suspicious logins and bots.

 

About Incapsula

IIncapsula offers state-of-the-art security and performance to websites of all sizes. Through a simple DNS change, your website’s traffic is seamlessly routed through Incapsula’s globally-distributed network of high-powered servers.  Incapsula features include:

  • Protect & Accelerate your website
  • Web Application Firewall (WAF)
  • DDoS Mitigation and a Content Delivery Network (CDN)
  • Analytics & Monitoring

by Tomas Forsman at August 16, 2013 08:21 PM

August 08, 2013

Tomas Forsman (TForsman / Zinden)

Conary – The unknown package manager

Many linux users has never heard of Foresight or conary. As openfiler is moving to CentOS, Foresight will be the only linux OS that will use conary at the moment.

It focuses on installing packages through automated dependency resolution against distributed online repositories, and providing a concise and easy-to-use Python-based description language to specify how to build a package.

Conary updates only those specific files in packages which need to be updated; this behavior minimizes bandwidth and time requirements for updating software packages. Conary also features Rollbacks of package installation as well as derived packages.

 

Conary

Conary package manager for Foresight Linux

 

The Conary toolchain includes rmake, a build server for conary packages, which builds packages inside chroot environments containing only the package’s explicitly listed build requirements and some other fundamental packages. This is very useful for packagers, because it means that package builds can be done inside a reproducible environment, and packagers cannot accidentally introduce dependencies on peculiarities of their machine’s environment (such as custom configuration files, or undocumented extra packages).

Conary packages are references to files in a database. The packages contain references to components, which are divided by their roles in a package — such as runtime requirements, documentation, libraries, etc.

Conary actually works as a sort of distributed source control system. Software comes from specific repositories, and the associations are much more granular than Debian packages or RPMs. For example, it’s possible to remove a file from the system and, when the package that owns the file is updated, the individual file is not reinstalled. Files are treated as first class objects in Conary, and can be managed individually if desired.

Packages can have branches called shadows, a customized version of the package that references the original plus changes, or for minimal changes it’s possible to have a “derived package” that applies changes without rebuilding a package. As the SCM heritage suggests, Conary also has rollback capabilities that are much more elegant than what is allowed by RPM or dpkg.

Conary also allows for “groups,” something like a metapackage or task, that pulls together the components that make up a collection of software meant to be installed together. GNOME or KDE might be distributed as a group, or a collection of server software that contains all of the libraries, applications, and supporting software that needs to be installed.

 

 

System Model

A new update mechanism called “system model” is added. In this model, a file called /etc/conary/system-model describes what should be installed on the system. This file is modified by certain conary update commands, and can also be edited with a text editor. The system model allows a system to be updated relative to a search path that includes groups as well as labels, leading to more coherent sets of updated packages. It also allows re-starting updates with transient failures; the filename /etc/conary/system-model.next is reserved for storing the system target state during an update operation.

The system model mode is intended to become the normal update mode for Conary-based systems in the future. It works by creating a set oftroves that define the system, and then moving the system to that defi‐nition. It is conceptually similar to building a group into a reposi‐tory and then migrating to that group. Significant differencesinclude:

  • In a group, all trove references are absolute, but in a model,you can choose whether references are absolute. Migrating to aspecific version of a group will always move the system to theexact set of packages referenced, but re-applying a system modelwill update troves that are not pinned down to a specific ver‐sion.
  • There is no group name for the set of troves.
  • There is no version for the set of troves. (The version opera‐tion in a system model does not provide conary versioning.)
  • Path and version conflicts are not checked when assembling theset of troves. (No group policy is run at all.) This meansthat path and version conflicts will be found only whileinstalling the packages.

A system model that installs only a single group will functionsimilar to migrate mode. The most obvious difference is that migratemode honors variations in byDefault settings in the system database(that is, an optional component of the trove(s) migrated to that hasbeen installed on the system will still be installed after the migrateoperation finishes), whereas a system model update honors those changesonly if they are represented in the model itself.

 

Some external links:

Conary source

Rmake source

 

Useful search words:

Conary Package List, Linux Package Managers, Ubuntu Package Manager

 

 

 

by Tomas Forsman at August 08, 2013 08:08 AM

August 07, 2013

Tomas Forsman (TForsman / Zinden)

secure and accelerate your website with cloud-based service

There are many services out there that can make your site more secure and load faster. Some services are cheaper than other and some won’t even write what prize thay have, you need to contact them first. So we will focus on the ones that are cheap and have free account too.

cloudflare

cloudflare

Cloudflare

You can’t find any deep information how they do to improve your site, and you need to change your DNS nameservers to make it work.

They got a free plan and paid plans. Many thinks it’s a great way to make their site faster and increase visitors experience. But what good will it do when you got no visitors?

As you will get DNS error when changing to cloudflare nameservers and you will drop google bot to find your site, due DNS errors. And soon you won’t have any visitors left. You will loose your google ranking too. If you don’t rely on google or any other search engines, then you are fine. But if you do, I woulden’t recommend to use cloudflare. Not even the free plan.

Hard to actually see that it helps you speed your site up, the statistic takes ages to start to show something. Long delay of showing it.

They do not offer any kind of discounts, as other services do.

 

incapsula

incapsula

Incapsula

Also have a free plan and paid plans to choose from.  This service will not affect nameservers, as you won’t change them at all. You will instead change the DNS from your provider. And nameservers will be intact from what you always been having.

After I tested incapsula, I did not get any errors at all when running DNS check from various sites. Cloudflare did fail on this.

Also cheaper with personal plan than Cloadflare.

As soon the dns changes has gone through, you can start to see statistic right away. Asuming you had a visitor on your site.

You will see performance and what’s been optimized. Also see human visitors and from bots. Like google boot crawler and so on. You can easily see what bots that has been blocked, like spammers.

They offer 14 days of trial for all their plans that costs money. So you can try it before you actually buys it. That’s a huge plus too.

 

 

Conclusion

when looking at cloudflare, it looks really neat and sounds like a good deal. But after trying it and see what it actually do, it feels like CloudFlare Scam. As they never mention that it will lower your SEO and get less hits. Even google Webmaster will start sending you mails that they can’t index your site anymore. Some say you can disable security option, but then you lost 50% of the feature free plan offers you. But still some has reported that they still drops visitors from day to day.

Incapsula doesn’t affect your nameservers and google will continue indexing your site as it always have. So if you want to keep visitors to find your site, then incapsula is your choice. Also cheaper and still do what Cloudflare can do. The only thing cloudflare is better with, is it really speeds up your site alot. But is it worth it without visitors?

Google CloudFlare DNS Resolution Error

CloudFlare Review

Incapsula vs CloudFlare

by Tomas Forsman at August 07, 2013 09:27 PM

July 29, 2013

Tomas Forsman (TForsman / Zinden)

issues with rss feeds on this blog

We are experience som minor issues about showing new posts when using some kind of rss feed. We are looking into it.

by Tomas Forsman at July 29, 2013 09:03 PM

July 28, 2013

Tomas Forsman (TForsman / Zinden)

Added Recent Updates widget for Foresight Linux

Now you can easily see the last 10 updates all the time on foresightlinux.se

recent updates

 

As you see, it’s located on the right side. Will make it little easier to follow recent updates.

 

by Tomas Forsman at July 28, 2013 07:52 PM

New pages on wiki page

I’ve been busy creating pages on wiki today, all of them is for writing recipes for packages.

Here is the new pages that’s been newly created in the wiki:

R.NormalizeInterpreterPaths‎

R.NormalizePythonInterpreterVersion‎

R.FixupMultilibPaths

R.PackageSpec‎

R.ComponentSpec

R.ComponentRequires

R.Requires

R.Config

 

All of these are listed in Category Recipes in the wiki.

 

 

by Tomas Forsman at July 28, 2013 08:29 AM

July 27, 2013

Tomas Forsman (TForsman / Zinden)

Bandwidth limit exceeded

Yesterday this site hit the bandwidth limit of 60 GB/month. We managed to get it up fast again, but we will probably hit the same problem next month and so on. It might even be earlier of the month and the site will no longer be accessable until next month.

bandwidth

To help me keep this site going and not hitting the limit of bandwidth, you can give a small donation through paypal or flattr.

If that is not possible for you, you can support us by take a survey from: http://reliablefiles.com/file/0R8LN and download the 32 MB flv file.

If that is too much, you can download the file from here: http://fileband.com/wumobuh8qufr instead. Will not force to do any survey at all.

 

Really hope I can continue running this site without any interruptions in the future.

Also taken som actions to remove some downloadable files, to make the server use less bandwidth.

by Tomas Forsman at July 27, 2013 05:41 PM

July 19, 2013

Tomas Forsman (TForsman / Zinden)

How to see the sun close in Linux

It’s possible to see the sun close from http://helioviewer.org/ but if you want to use an application instead, you can use jhelioviewer instead.

 

jhelioviewer

To use jhelioviewer, first download it from: http://www.jhelioviewer.org/download.html

JHelioviewer is visualization software for solar image data.

This is working with the JPEG 2000 compression standard to minimize the data volume transmitted while maximizing its usability.

System requirements:

Java 5, OpenGL 1.4, 1 GB RAM
i386 or PowerPC G5 architecture
port 8090 accessible.
It’s working with Windows , Mac and Linux OS.

Download jar file from here.

Use this command to run the application, from the path you added the file:

java -Xmx1000m -jar JHelioviewer.jar

 

jhelioviewer

by Tomas Forsman at July 19, 2013 07:24 PM

July 15, 2013

Tomas Forsman (TForsman / Zinden)

how to enable resume download in chrome or chromium

Many users don’t know that you can activate resume download in chrome or chromium. they think that feature doesn’t exist yet.

It has been there for awhile, but not enabled by default. You need to enable it to be able to resume downloads that’s been interupted somehow.

Go to site page: chrome://flags/

Find:

Enable Download Resumption Mac, Windows, Linux, Chrome OS
Allow downloads that have been interrupted to be continued or restarted, using the Resume context menu item.
Enable

 

Push enable and restart chrome or chromium, and now you will be able to resume downloads.

chrome resume download

 

by Tomas Forsman at July 15, 2013 01:39 AM

July 14, 2013

Tomas Forsman (TForsman / Zinden)

Spotify update in Foresight Linux

We just updated spotify in Foresight Linux. The changelog:

Following the notes for the latest desktop version. We just started to rollout so you if you have not received the update yet you will get it soon.

 

New: Improved start-up performance, especially for OSX users.
Fixed: We’ve sorted a number of crash issues.
Fixed: You can ‘Get Playlist’ from Inbox only if you have download credits.
Fixed: All songs in the Play Queue now show Popularity rating.
Fixed: Translation errors have been corrected.
Fixed: We’ve given the context menu some love.

 

Will be available soon for all users that uses development repository. Will be available for all users when we push all changes to stable repository.

by Tomas Forsman at July 14, 2013 06:16 PM

July 07, 2013

Martin Bähr

basic http file server

I needed to quickly serve some files, and i didn't want to install a full webserver, knowing that this was only temporary. So instead here is a simple http file-server in Pike. I call it a file-server because it serves static files, and nothing else.

Based on this example for a simple web-server, it just takes a few additions to turn this into a file-server:

#!/usr/local/bin/pike

constant default_port = 8080;
constant my_version = "0.0";

Protocols.HTTP.Server.Port port;

string basedir = "/srv/www";

int main(int argc, array(string) argv)
{
  int my_port = default_port;
  if(argc>1) my_port=(int)argv[1];

  write("SocServe starting on port %d\n", my_port);

  port = Protocols.HTTP.Server.Port(handle_request, my_port);
  return -1;
}

void handle_request(Protocols.HTTP.Server.Request request)
{
  write(sprintf("got request: %O\n", request));

  mapping response = ([]);

  response->server="SocServe " + my_version;

  string target = Stdio.append_path(basedir, request->not_query);
  mixed tstat = file_stat(target);
  write("target: %O\n", tstat);

  if (tstat 
&
& tstat->isdir)
  {
    response->type = "text/html";
    response->error = 200;
    response->data = dirlist(target);
  } 
  else if (tstat 
&
& tstat->isreg)
  {
    response->type = MIME.ext_to_media_type((target/".")[-1]) || "octet/stream";
    response->error = 200;
    response->file = Stdio.File(target);
  }
  else
  {
    response->type = "text/html";
    response->error = 200;
    response->request = sprintf("%O", mkmapping(indices(request), values(request)));
    response->data = "<h1>SocServe " + my_version + "</h1>n<pre>"
    + response->request + "</pre>n";
  }

  request->response_and_finish(response);
}

string dirlist(string path)
{ 
  array dir = get_dir(path);
  return sprintf("%{<a href=\"%s\">%s</a><br>\n%}", ({ dir[*], dir[*] })); 
}

These are the changes: first combine the request path with our basedir which will reduce any embedded /../ to not go beyond that base. Then we check if it's a directory or a file. For a directory we make a simple listing, and for a file we find the mime-type and then just open the file and pass it to the request. This will cause the file to be served with non-blocking I/O, allowing you to handle multiple requests in parallel without blocking the server while a file is being downloaded.

That's all there is to it. Start it up, and it's ready to serve files.

by Martin Baehr (mbaehr@community.gotpike.org) at July 07, 2013 05:51 PM

July 01, 2013

Foresight Linux Official News

Forum is down, we are working on it

We know that forum is down at the moment, we are working to get it up and running again.

In meantime use irc, mailinglist or unofficial forum to ask questions or to get in touch with us.

by Tomas Forsman at July 01, 2013 09:53 AM

June 04, 2013

Og Maciel (OgMaciel)

Populating a Katello instance using the CLI

Lately I have been asked a lot about my previous script to automatically populate a Katello server instance with real data (hi reyc!) I wrote that a while back and though it still does contain some helpful commands, I figured it was about time I updated it. Well, it took me longer than I expected to find some time and clean it up, but I think I can now show you a brand new script which also includes the extra feature of downloading a manifest file directly from Red Hat's portal and importing it as part of the process.

Currently the script assumes that you have the following information (either as environmental variables or substituted into the script:

RHN_USERNAME: A valid username for https://access.redhat.com/

RHN_PASSWORD: A valid password for https://access.redhat.com/

DISTRIBUTOR: An existing distributor UUID with access to Red Hat Enterprise Linux 6 Server products

The new script is know to work with the very latest Katello nightly build. If you have any suggestions or constructive feedback, feel free to leave me a comment here or fork the gist and send me a pull request!

June 04, 2013 10:21 PM

April 23, 2013

Og Maciel (OgMaciel)

Adventures in the Music Streaming World

These last couple of years have brought (along with some new wrinkles and occasional grey hairs) some interesting changes on how I manage and maintain my “digital belongings”. For a long while I used to worry about backing up and storing in a safe place all the files, photos, books, movies and music I’ve collected through the years. I have also managed to collect a variety of different external USB hard drives to keep up with this digital sprawl, where for each iteration the next device would increase in size and sometimes in speed compared to the current one. It got to a point where I got tired of the backup/restore game and found myself paying less and less attention to the things I had spent so much time maintaining.

Music was one of the last items that I eventually stopped backing up. One day last year I took my entire collection of approximately 9000 (legal) songs and uploaded them to Google Play! The very next time I re-installed my desktop I didn’t have to restore my music collection anymore. All I needed was a net connection and I was off to listening to my tunes! I also had full access to that collection via my Android phone and laptop! Triple yummy! Sure, without net access I would be out of luck, but I could always keep a smaller subset of my collection around if I wanted to listen to anything while offline.

After a while I noticed that I seldon played my own tunes, often spending more and more of my music listening minutes on sites such as Pandora and Grooveshark to experience new types of music and genres. At one point I found myself subscribing to Pandora, Rdio and Spotify, looking for what in my opinion would provide me with the best listening experience. After about a month I think I have finally found the combination that gets me closer to that goal: Pandora + Spotify.

A little background though. I have been a Pandora (non-paying) customer for many years now and I can’t say enough about the music quality and the variety that you can get for this service! I mean, for the completely FREE option (with the occasional advertisement) you get to listen to (what feels like to be) hand picked songs that match whatever criteria you can come up with! Be it a song, a word, an artist or an album, Pandora’s matching algorithm is by far the best I’ve seen out there. Period! It is because of this plus the fact that I can access it from anywhere and any device with net access that I became a paid customer.

But how about those times when I specifically want to listen to a given song or album or even make a playlist with some of my favorite jams? After a while I learned a nice trick that lets you sample an album from Pandora but that wasn’t enough for what I wanted to do. So Grooveshark was definitely a great find for me and for a while I really enjoyed the freedom and wide selection that it offered me for free. Something really simple but it also made a difference for me was that I could “scrobble” the music I listened to my Last.fm account, something that Pandora doesn’t do. But alas, I couldn’t listen to my playlists on the go or even using my phone, so I started looking for options.

Now Rdio impressed me right away for being exactly what Groveshark was but with the added capability of being available on multiple platforms, and including some of the newest and latest releases! The pricing model was a bit more expensive than Pandora, but it did give me the ability to create my own playlists and interact with my friends via different social networks. I definitely enjoyed the experience and would have stuck with if it wasn’t for the small music collection that is available right now. I understand that Rdio tries to add as many new (and old) titles as it can, but at the end of the day, I couldn’t always find what I was looking for.

Spotify was the “dark horse” during my experimentation, mostly because it didn’t offer a first class client for Linux. There was a “half baked” client out there that never worked for me/or crashed too many times… I even ran the Windows client via Wine for the first 2-3 weeks but it felt “dirty” to pay for a service that would not run natively or provide a decent support for my platform. The Android and iOS apps worked like a charm, but I spent the bulk of my days in front of a Fedora box and listening to music from my phone was not going to cut it for me. The music variety is definitely much larger that what Rdio offers and it even has its own “Radio” streaming that provides something similar to what Pandora does. But the matching algorithm is still light-years behind Pandora and I often found myself wondering how certain songs and genres ended up in the “station” I was listening to.

After about a month into the experiment, it looked like I was going to keep Pandora and Rdio to get great music selection and variety (Pandora), web front end access and multi-platform support (Pandora, Rdio), and playlists (Rdio)… until a co-worker mentioned that Spotify had just announced their web based player! All of a sudden Spotify went from being in last place to bumping Rdio out of the equation!

Spotify web player

So now I am using both Pandora and Spotify at home and on the go (Spotify lets you download your playlists for offline listening) and so far the experience has definitely been positive. I feel that the streaming quality and variety has provided me with many enjoyable hours of music while I work and even my kids have started experimenting with Pandora as they get more exposure to the musical world. And if I ever feel like listening to some of my own music, some of which is not yet found on Spotify, I can always turn to Google Play… and I definitely enjoy not having to manage my backups anymore. :)

April 23, 2013 11:19 PM

April 12, 2013

Foresight Linux Official News

Announcing Foresight Linux 2.5.3

Foresight is a Linux distribution for your desktop that features a rolling release schedule that always keeps your desktop up to date; a revolutionary package manager, Conary; the latest GNOME2, Lxde and Xfce desktop environment and an innovative set of excellent, up to date software applications.

We have new set of iso for GNOME2, Lxde and Xfce.

We hope you enjoy using Foresight as much as we do. Because your distro should be cool!

Foresight is currently dependent on rBuilder to build anaconda images. Because Foresight is a rolling release with regular updates, updating install images was perhaps lower priority, but also, rBuilder quit working for building Foresight images quite some time ago, which really got in the way of posting new images.

 

Note: these images still use an older version of anaconda and an older kernel, so some new hardware is still not supported. Also, ext4 is not supported in these images.  Sorry. New kernel will be installed after installation and running updateall.  For the moment, the version available in stable repository is 3.4.38

The brave ones can follow this guide to get ext4 support from start: http://wiki.foresightlinux.org/wiki/display/docs/Foresight+Linux+ghetto+install+HOWTO

 

Foresight Linux 2.5.3 Release Notes

  1. What’s new
    1. First release of Lxde with conary.
    2. Xfce 4.10
    3. Gnome2 with updated applications
  2. Conary
  3. Downloading and Installing
  4. Filing Issues and Bugs
  5. Getting Help
  6. Contribute to Foresight Linux
  7. More information
  8. Credits

What’s new

Foresight Linux 2.5.3 , released March 31th, features the latest stable packages. This release is for new users as well as for returning users and early adopters! Existing users of our previous release has the latest already from updateall!

GNOME, Lxde and Xfce

Foresight features the latest stable versions of GNOME2, Lxde and Xfce!

  • GNOME is a popular, multi-platform desktop environment for your computer. GNOME’s focus is ease of use, stability and first-class internationalisation and accessibility support. Running with latest firefox, pidgin, skype and alot more.  Foresight still uses GNOME2.
  • Lxde The “Lightweight X11 Desktop Environment” is an extremely fast-performing and energy-saving desktop environment,  and a platform to easily build new applications upon. Using applications from GNOME to make it work in all kinds of different ways. Using notify-osd, chromium and thunderbird as default applications.
  • Xfce is a lightweight desktop environment for UNIX-like operating systems. It aims to be fast and low on system resources, while still being visually appealing and user friendly. We have Xfce version 4.10, all Xfce applications are up to date.

Kernel 3.4

Foresight also includes the polished and refined Long Term Support 3.4 Linux kernel. If new and shiny is more your thing, you will be pleased to learn that the newly Linux kernel 3.8 is currently undergoing shakedown tests by Foresight’s bravest and is slated to become available as a drop-in upgrade in the coming weeks for the adventurous kind!

Tons of new applications and improvements

Foresight brings to you a vast and cool selection of awesome applications to give you and your desktop that little something extra that will make your friends sit up and take notice! We’re proud to ship the very latest and greatest Chromium and Firefox web browsers, Pragha, Spotify, Wine, playonlinux, Pidgin, Gimp, Dropbox, and many more great applications for your delight!

 

Conary

Conary is a distributed software management system for Linux distributions. Conary tools can be used to package software for desktop distributions such as Foresight Linux, or for building software appliances and derivative distributions based on Conary.

Conary replaces existing software package management solutions with features developed to address some of the common problems in package management. Conary features software installed and maintained from networked repositories.

With dependencies defined at the file level, Conary’s built-in dependency resolution brings in only the components needed from other packages instead of entire packages. Conary users can install and maintain software as well as to roll a Conary-based system back to a previous state before one or more updates.

A new update mechanism called “system model” is added. In this model, a file called /etc/conary/system-model describes what should be installed on the system. This file is modified by certain conary update commands, and can also be edited with a text editor. The system model allows a system to be updated relative to a search path that includes groups as well as labels, leading to more coherent sets of updated packages. It also allows re-starting updates with transient failures; the filename /etc/conary/system-model.next is reserved for storing the system target state during an update operation.

 

Downloading and Installing

Downloads are available at our downloads page, where you’ll be able to choose from our GNOME, Lxde and Xfce images for both 32-bit and 64-bit systems.

Filing Issues and Bugs

Please report any issues or bugs you encounter while using Foresight 2.5.3. Foresight’s issue tracker, JIRA, is available at https://issues.foresightlinux.org.

Getting Help

Help is available in many forms, and you can choose what you’re most comfortable with.

  • IRC: Visit the Foresight IRC channel, #foresight on Freenode, and ask questions. We have one of the most friendly IRC channels you’ll come across with everyone from users to developers reaching out to help answer questions.
  • Forums: Our forums continue to grow, and are a good source of information to check if a specific problem or question has come up before.
  • Wiki: Documentation on the wiki is growing on a daily basis, with updates often to the Frequently Asked Questions and other how-to’s to get you going with Foresight Linux.
  • Mailing Lists:

Contribute to Foresight Linux

Foresight Linux has a vibrant and friendly community, ready to assist any level of user. Participation is also welcome and encouraged! There are several different ways to engage with the Foresight community:

  1. You can find us in #foresight on chat.freenode.net. Foresight users can click the X-Chat GNOME icon in Applications -> Internet menu to access IRC
  2. Contribute to the Foresight Wiki
  3. Package and maintain software. Visit the Developer Wiki at http://wiki.foresightlinux.org/wiki/display/DEV/Foresight+Linux+Development for more information

More Information

You can find more information about Foresight on our website at http://www.foresightlinux.org.

The developer Tomas Forsman has a unofficial www.foresightlinux.se site with wiki.

If you’re new to using Foresight, please check out the Getting Started with Foresight User Guide. Click on System -> User Guide. The User Guide contains information on installing software, adding MP3 and DVD support, and an overview of commonly used applications.

Ask live questions in IRC on the Freenode network in the #foresight channel.

Credits

Thanks to the entire Foresight Linux Project crew all the developers and users who contributed to and helped test this release.

Thank you for using Foresight. Because your distro should be cool!

by Tomas Forsman at April 12, 2013 08:15 AM

April 07, 2013

Foresight Linux Official News

New Foresight ISO images available

We have released new iso images for Gnome, Lxde and Xfce. Both stable and development is available for download.

all iso files is available at: http://www.foresightlinux.org/download/

by Tomas Forsman at April 07, 2013 08:31 PM

March 28, 2013

Og Maciel (OgMaciel)

Perks of being a polyglot

Yesterday I had one of those “once in a a lifetime” opportunities, thanks to my wife who dragged me to a presentation hosted by the University of North Carolina. The presentation by Dr. Eduardo Torres Cuevas, titled “Preserving Cuba’s Cultural Heritage in the 21st Century” attracted a small gathering, apparently mostly made up of UNC staff and students who are currently enrolled in one of their languages courses. I wasn’t really sure what to expect from it, but being the supportive husband that I am, I signed off from work a bit earlier and together with our 2 kids we drove to the main campus.

The entire lecture was done in Spanish while a translator tried her best to keep up with Dr. Cuevas’ detailed and humored style of prose, as he told us about the history behind Cuba’s National Library. I must tell you, being a “real time” translator is not an easy task, and though Dr. Cuevas tried to slow things down so she could do her job in a timely fashion, she still had to summarize a lot of what was being said in order to keep up with him. Sadly, a lot of the “good stuff” was never mentioned and/or was completely lost in translation.

Dr. Cuevas was an excellent speaker and was able to quickly put everyone at ease right away and transport us to the Havana of the 1950s. The entire lecture lasted approximately 50 minutes but in reality it felt more like a small fraction of that! I could tell that he is extremely passionate about preserving the Cuban cultural heritage for posterity, and together with a strong character and charisma, I dare say that everyone in attendance was completely captivated by his stories as if in a trance.

Now, let me remind you of one minor detail I mentioned early on that you may have overlooked: everything was in Spanish, a language which though not completely unfamiliar to me, is not my first or second language in order of fluency (Brazilian Portuguese and English in this order if you’re wondering what my first and second languages are). Sure, there was a translator, but after the first 3 minutes I completely ignored her voice and focused completely on Dr. Cuevas. Eventually, the translator’s voice became white noise or just an annoyance, as we would have to stop the flow of the lecture in order for her to turn beautiful story telling-style prose to a short. almost. dry. list. of. facts. and. numbers!

I feel extremely lucky that I was able to not only meet but hear someone who may be a very important person in the history of Cuba. I also feel extremely lucky that I was able to follow and understand the entire presentation in the “original format” without the need for “caption” or any other aid. Had I relied solely on translations, I would have never really gotten all the little jokes, nuances and true meaning behind the words uttered by the gentleman from Havana… and most likely would not feel this great urge I now feel to make Cuba, and specially the National Library of Cuba, my choice for the next time I go anywhere outside the States for vacation!

March 28, 2013 02:28 AM

March 11, 2013

Foresight Linux Official News

mit-license

The MIT License (MIT)

 

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

by Tomas Forsman at March 11, 2013 09:49 PM