Ubuntu

Time for Linux to go mainstream?

Valve has now confirmed that they are working on a GNU/Linux client for their gaming service, Steam. And not just Steam, but one of their very own games too: Left4Dead.

The Linux community has welcome these news with open arm, since there's been speculation about the Steam client for a couple of years.

Now it seems like Electronic Arts might have something up their sleeve after the news has gone out that they will hold a session during next Ubuntu Developer Summit. Is it a game; Origin; something else thats darn cool for the GNU/Linux desktop? Could Canonical be knowing something more, since they've been working with Valve to make sure that Steam will be optimized?

For two years, it's been said that "this (that) year is the year that Linux will go mainstream". Unfortunately this has not been the case, but what about 2012 - could this be the year?

Since Steam finally is on it's way to the Linux desktop, and that EA is even showing up to Ubuntu Developer Summit, I'd say it's definitely on the right course!

Linux is absolutely becoming a larger competitor among Windows and OS X and with Ubuntu 12.04 LTS out the door, Linux is becoming more and more ready to become a OS for everyday use and for anyone, with any kind of computer knowledge.

Tiden och tekniker bara går och går. (+Bildserie)

Tiden går. Allt utvecklas. Om ett par dagar släpps Ubuntu 12.04 LTS, och det har finslipats. Jag har nu kört Ubuntu som primärt operativsystem i sex år. Och vilken skillnad det är, samtidigt som känslan är densamma. Men inte bara pga. operativet i sig, utan också all teknik runt omkring, eller support för hårdvara i Linux-kärnan.

Jag minns när man fick använda ndiswrapper för att få igång 11Mbit WLAN-kort. Eller när Atheros kort fick installeras med reverse engineered moduler, eller Ubuntu hade en bredare lista med "maskinvara" som man var tvungen att installera moduler med stängd källkod.

Det är onekligen spännande hur allt tar sig framåt. Moores lag står kvar och mina datorer blir allt bättre - även om jag satsar på batteritid. I och med Ubuntu 12.04 LTS, håller nu min laptop i ca åtta timmar på batteritid. Min förra håll på sin höjd i tre timmar. Den innan det i två timmar. Innan det i en. Strömsparfunktioner utvecklas och börjar verkligen ta sig - väntar med spänning på morgondagens batterier.

Hur USB-enheter nu monterar sig själv och man inte behöver köra egna mount kommandon:
$ sudo mount /dev/sdc1 /media/extern

Nu kör Ubuntu på hårt för att revolutionera utseendet i ett grafiskt operativsystem. Unity, HUD, färger, indicatorer. Systemet blir mer enhetligt. Det kunde det vara innan med, med GTK- mot QT-lägret, men ändå en rätt ful enhetlighet. Nu ser saker så mycket snyggare ut med nya versioner av både GTK och QT som ger bättre support för anpassning av färger, eller av generella systemanpassningar.

Säkerheten har också gått så mycket framåt. Bara UFW - det är helt underbart! Leka med IPTables är ingen barnlek och jag ser skillnaden när jag mekar med min Linux-baserade router. SSH, nya Mosh. SHA1, Hash, Salt, RSA, AES.

Och hastigheter! Som sagt, mitt första WLAN var 11Mbit. Idag kör jag 300Mbit och 1000Mbit på LAN. Mitt PS3 är uppkopplad till min filserver. Jag kör redudant backup som automatiskt kör backup på alla mina filer i realtime (BareShare). Mitt internet är ett 4G-USB-modem.

Det är bara gött hur allt utvecklas.

Ubuntu 12.10 namngivet: Quantal Quetzal

QuetzalUbuntu 12.04 LTS är nästan här, vilket innebär att den efterkommande versionen ska bli namngivet - och nu är vi där. Mark Shuttleworth, mannen bakom Canonical och Ubuntu, har precis namngivit Ubuntu 12.10 Quantal Quetzal.

Vad som kommer i fokus i denna version kan ni läsa om i Mark's blogginlägg: http://www.markshuttleworth.com/archives/1121

Schema för 12.10: 

  Alfa 1 – 7 juni
  Alfa 2 -
28 juni
  Alfa 3 -
2 augusti
  Beta 1 -
6 september
  Beta 2 -
27 september
  Ubuntu 12.10
 - 18 oktober

Nyheter i Ubuntu 12.04 LTS - Precise Pangolin

Ubuntus nya långtidsutgåva (LTS - Long Time Support) är påväg ut och jag har installerat det på min laptop för att testa lite.
Denna sida kommer kontinuerligt att redigeras med nya trevligheter som jag kommer över under min användning.

Förutom den vanliga paketuppdateringen så tillkommer en hel drös med nya funktioner och nytt utseende.

Jag fokuserar dessutom på standardutgåvan av Ubuntu - alltså Ubuntu Desktop. Är det något särskilt för Ubuntu Server eller Kubuntu, så tilläggs det.


Smått:

  • Smooth scroll - skrollning med musplattan på en laptop är mycket "vänligare" och mjuk. Ingen mer hackig upplevelse alltså.
  • Fler alternativ och snyggare gränssnitt för användaren i Ubuntus Systeminställningar.
  • Mycket mer enhetligt för meddelandekonton (MSN, Gtalk, IRC, Facebook).
  • Rhythmbox är åter standardmusikspelaren.
  • Ubuntu-ikonen har nu en snabblista med favoriter.
  • LibreOffice 3.5.
  • Unityinställningar är en del av systemets utseendeinställningar.
  • Möjlighet att ha Unity (launcher) på alla skärmar som är inkopplade, inte bara en.
  • Program som installeras via Programcentralen, läggs nu till i Unity.
  • Ny Dash video.
  • Bildvisaren har bytt tillbaka från Shotwells bildvisare till Gnomes egna bildvisare.


Stort:

  • Bättre strömsparfunktioner - min laptop har fått va två timmar längre batteritid.
  • HUD - Läs mer.
  • Bättre hantering av ditt privatliv med en ny systeminställning för att tömma historik efter tid, inte lagra viss programhistorik, osv.
  • Den (näst) senaste Linux-kärnan - 3.2.
  • Buggrapportering sätter nu igång i ett tidigare stadium och ger en bättre överskådlighet.
  • Fortsatt utveckling på ett mer enhetligt systemcenter.

Ubuntu och menyrevolution - HUD.

Det händer att man får höra - och ser det givetvis själv - att Ubuntu, eller egentligen alla Linuxdistributioner, efterliknar sina properietära konkurrenter Windows och Mac OS X. Menyer, muspakaren, skärmsläckare, knappar, notifieringar - till och med ikoner. Det är lite tråkigt när man tänker på det, samtidigt som man tänker: "Men hur skulle det annars se ut eller fungera?"

Faktum är att det inte hänt så mycket med det grafiska skrivbordet på en dator sedan det introducerades. Compiz gör det roligare och mer användbart, men det är fortfarande en muspekare, menyer osv.

Canonical, företaget bakom Ubuntu har tänkt vidare på detta, vilket jag anser vara fantastiskt - äntligen ska det tystas att vi, FOSS-nördar, slutar ta efter och kopiera! I nästa version av Ubuntu, 12.04 - Precise Pangulin - så försvinner våra gamla menyer.

Det nya förslaget kallar de för HUD - Head-Up Display. Även att jag inte är klart såld på det, så finner jag det väldigt intressant. Det är så att jag funderar på min egna vana. När jag vet vart menyalternativet finns, vill jag ju helst inte behöva söka efter det. Men å andra sidan, när jag inte vet så är det värre.

Och vidare så använder jag bara Synapse för att öppna program, hitta filer osv., så varför inte. Ska bli spännande att se. Och kul med lite nytt. HELT nytt.

Ubuntu TV - TV reborn.

Jag tycker att det har gått snabbt - det från att man började tala om "Smart TV" till att Canonical idag släppte Ubuntu TV.

Det är helt enkelt Ubuntu som är byggt för att kunna installeras och köra på morgondagens smarta TV-apparater. Det ska funka precis som en av dagens TV-apparater, fast ändå inte; man ska kunna sköta allt från en fjärrkontroll; man ska inte behöva ha annan teknik inkopplad för att kunna hyra en film, kolla på YouTube, eller se på foton. Allt som behövs är en fjärrkontroll, resten fixar detta Unity-baserade gränsnitt.

Jag sitter nu med mitt PS3 som mediastation och är helt klart nöjd, men min nästa TV får gärna ha Ubuntu TV installerat.

Inbyggda funktioner:

  • Enkel integrering med broadcast, internettjänster och -applikationer.
  • Modernt TV visande med sökning, titta, spela in och spela upp.
  • Miljoner med filmer och TV-serier som kan streamas över internet när man vill.
  • Delad-skärmupplevelse med iOS, Android och Ubuntu-enheter.
  • Pausa på en enhet, fortsätt uppspelning på en annan.
  • Ubuntu One.
  • Ett ramverk för applikationer.

Läs mer

Review: SparkleShare.

I have a lot of images, code projects, documents, game saves and such, and I want to take good care of them, especially my images - they are the most valuable possession I've got. That's why I need a simple and safe backup solution. Earlier I just had an external harddrive, but thats not simple, nor have the security that I need. That's why I used Dropbox for a while. It was rather cheap and had everything that I needed, except encrypted transfer and I didn't know what happened with them across the Atlantic Ocean. So I started to look for alternatives - safe, secure, encrypted and I also wanted them to be Open Source so that I could have it running on my own server. GNU/Linux support and a client for Android was also needed.

I found SparkleShare that seemed to be a great solution and had pretty much all that I needed: Open Source, using SSH, rather simple to set up on my own server, webui and an Android client. I started to use it and have been using it since late september, 2011. But...

SparkleShare uses Git to store files and keep a history of changes made to my files. Git is created by the same author as of the Linux kernel, Linus Torvald, and were created for the development of the Linux kernel. Keep revision history, a linear development with the possibility to maintain paralell development branches - version control. For this, it's perfect! I use Git for my project nowdays (I used Bazaar before). The company I work for has started to use it, too.

That Git is created to development of software does, however, not make it capable as storing files, in my opinion. Now I have 60GB+ of images from the past ten year of my life - that is not optimal for Git and it's version control. For the everyday user that want's a Dropbox alternative, this is really not the best solution. Perhaps for a person writing his/her Ph D, it would be great. But with a lot of files, which itself creates much data and uses a lot of storage, you dont need to have a history larger then the files/directory itself.

Installation
Installing SparkleShare (server) is pretty straight forward (I'll post a guide soon). Just install SSH, Git and a few other packages on your server, and you're good to go. This is a real plus. Also the client is also very easy to install. It comes with packages for most of the well used GNU/Linux distros, and also Mac OS X - not Windows yet. It's also to build from source. You just install the client, copy the SSH key to your server and start a guide to add your share.

But I'd say this is too hard for new users. Well, if you're already running your own server, I suppose it's not that hard, but using its own SSH keys - without a password - is not something I like to do. But that can also be taken care of, altough it also might be a little to hard for the faint of heart.

Installing the WebUI - that is necessary for the Android client - is a little harder. It has a strict dependancy of package version, which I've had som issues with. Once up and running, it is incredibly easy to add your Android device, just by scanning a QR code.
The Android client is somewhat a different project - the WebUI too - then SparkleShare. It works to download your stored files, not anything more. You can't upload any files, which I very much would like. Perhaps in an later version.

Usage
Once installed and up and running, SparkleShare takes care of your files. By using Git the files are compressed before uploaded, and the transer is safe by it's usage of SSH. But I'm not satisfied. It's hard to upload a lot of files. I wanted to upload all of my 60GB+ images at once, but SparkleShare didn't seem understand that I added the files. Instead I had to remove them and upload them seperately. It worked, but the compression takes a long time, and if the connection between server and client gets broken during upload, the compression has to be restarted. Also, as I was saying, having a history copy of the files on the client, takes of a LOT of storage space.
Smaller files, like my documents is no problem - of course since the're smaller.
With the Nautilus addon, it is easy to get back an old version of an edited file just by right clicking on it.

SparkleShare is just a indicator applet, which is simple and works great. Altough I would like to see some info about the sync, like transfer speed, which files, just like the Dropbox indicator. Also I miss sync over LAN, bandwith limit and being able to pause specific shares - ie. so that I can start SparkleShare to only sync my documents while in school, when I don't want to use up my battery and all of my CPU to compress my images.

Besides that, SparkleShare runs fine in the bakground. If I were to already have uploaded all of my images, the compression wouldn't take so much time, nor would it be as big of a problem, but the local Git history copy, and Git itself, makes it a little less of "fun".

Conclusion
SparkleShare is great for easy sync of small files, not for bigger ones. It's also great if you're developing some small software, which you don't really use Git for yet, but still want's the version controll and being able to upload it - automatically - to GitHub or perhaps your own Git server.

I would say that SparkleShare is not yet ready for daily use and to drop out of you Dropbox use, or alternative.

Git is simply not the best way to get people from the closed, you-dont-know-where-or-what-theyre-doing-with-your-files, clients like Dropbox, and start to use free and open source ones. For me, version controll is not as important as a simple and secure backup solution. I'd say SparkleShare using Rsync would be a better way of doing this.

Perhaps Rsync could be used together with a simple script that saves a deleted file for a while, before it's completely deleted. And perhaps having preferences to set which files/dirs needs to have version control.

I'm sorry to say that I'm leaving SparkleShare to find, or develop, a new backup solution not using Git.

Dagens Kommando: Hantera skärmar enkelt med Disper Indicator.

För ett par år sedan skrev jag om Disper, som jag använde för att få igång min HDMI port på min gamla laptop, och hur man enkelt kunde hoppa mellan skärmar med ett skript jag skrev som använde Disper: Enkelt skärmbyte med Disper + ett tillhörande skript.

Sedan dess har Ubuntu lagt på sig en hel del sk. Indicator applets, och tanken slog mig att jag skulle vilja hoppa mellan skärmar igenom att ha en sådan applet. Men man ska gärna inte återuppfinna hjulet, därför tog jag mig en titt på the internets och fann att det, inte helt oväntat, fanns. Och vet ni vad? Den använder Disper.
Not: Initalt användes bara Disper dör nVidia-kort. Det ska dock funka på flera kort och det funkar med min Intel-grafik.
Såhär lägger du till den:

Vi behöver lägga till två PPAs (förråd) och sedan installera två paket:

$ sudo add-apt-repository ppa:disper-dev/ppa
$ sudo add-apt-repository ppa:nmellegard/disper-indicator-ppa

$ sudo apt-get update
$ sudo apt-get install disper disper-indicator

Kör nu Disper Indicator och där är den nu i indicatorfältet.

Thanks to Ubuntu Vibes for the info!

Howto: Re-connect 3G modem automatically using Cron.

I love GNU/Linux and what you could to with it - run it almost everywhere. I'm running GNU/Linux on my router (OpenWRT), which has a USB port and connected to it, a 3G modem.
Using that I share my internet connection with all my devices and it works great - except when it disconnects by itself.

Thats why I wanted to create a simple script that Cron could run and get the connection up again, without me having to do it, or even be at home.

Here's how you do it!
( I want to thank Ubot @ Ubuntu-se.org forums for the help )

This scipt pings Google four (4) times, and if it recives less then four of the pings (or, most probably: none) it re-connects the interface.
My interface' name is wan and I'm using the command ifup to get the interface back up. You should edit this based on your own system.

Copy the text below into a text document - its the script that we'll use:

#!/bin/sh
# 111204 - Daniel Holm <admin@danielholm.se>

# Ping set host too see if there is an internet connection or not. If not, do command
count=$(ping -c 4 google.se | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')

if [ "$count" != "4" ]; then
        # 100% failed
        echo "Connection down, setting up."
        ifup wan
else
        echo "Already up."
fi

exit 0

After that, save the file and add a new row to Cron.

If you, like me, are adding this to a router, or alike, and are just using the command line, here's how you do it: (as root)

  1. Create the file you'll be using:
    $ touch check-if.sh
  2. Edit the file and paste the script's code from above:
    $ nano check-if.sh
  3. Now make it executable:
    $ chmod +x check-if.sh
  4. We'll be adding it to Cron using crontab and it'll be run on the hour, every hour:
    $ crontab -e
    Add this row:
    0 */1 * * * /root/./check-if.sh
  5. Enjoy!

 

EDIT: Updated script coming up!

Back to nerd table.

Senaste tiden - sedan mars eller så - har varit brutalt fylld av så mycket jobb, skola eller privatliv, att jag inte funnit tiden till att nörda. Och vet ni vad? Jag vill/behöver få nörda. Koda lite eget, testa lite nya program som kanske kan ersätta ett tidigare (testar nu Tomahawk som erstättare till Banshee och Spotify).

Dels känns det som att man bara följer med i flödet - mainstream - och det är inte riktigt jag. Nu är ju förvisso LIbreOffice standard i Ubuntu, likaså Banshee. Men jag är inte helt okej med andra förändringar - Unity har jag inte ens skapat mig en ordentlig uppfattning om.

Sedan så förlorade jag kod till några av mina småprojekt som jag kodat på; bla. ett pythonskript som postar en bild till Twitter direkt ifrån Nautilus (eller stand-alone). Nu måste jag koda om den, eller göra något nytt. Eller måste - jag VILL!

Häromdagen - dagen innan jag skulle skriva en tenta - fann jag just Tomahawk och ville testa det. Det kommer mer test av det, men det finns ett plugin för bla. Spotify, som jag då ville testa. Som ett barn på julafton laddade jag ner koden och försökte kompilera, gick inte. Kollade beroenden igenom felmeddelanden och apt-cache search, försökte igen; gick inte. Gjorde om proceduren en gång till och fick igång kompileringen och lade in "resolvern" i Tomahawk; gick inte... Visade sig vara en bugg med nyare libspotify som nu ska fixas - jag blir sugen på att fixa det själv.

Jag ljög lite nu förresten... jag har faktiskt satt upp Sparkleshare på en egen server för att ersätta Dropbox och det kommer snart en review av detta.

Det är gött att nörda.

Sidor