Posts

Showing posts with the label Linux

New blog domain: kula.blog

It's still work in progress but new posts will be published on  https://kula.blog/ Thanks to 11ty base blog RSS is working from the start so it should be easy to add to your reader if you still use any :) If now then I hope you can sign up to the newsletter where I'll be publishing new posts and interesting articles to it from time to time. Please use  kula.blog  from now on.

Repair GRUB2 Boot

After installing Ubuntu next to Linux Mint, Ubuntu started to be default option. It was annoying :) I started to search how to deal with GRUB2, but the problem was about installing grub from Mint partition. The easiest solution is to install Boot Repair:  http://sourceforge.net/p/boot-repair/home/Home/ I've found it on Ubuntu forum:  http://ubuntuforums.org/showthread.php?t=1769482 I can recommend it, really worked from first try :) Install in Ubuntu: sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update && sudo apt-get install -y boot-repair && boot-repair

Missing GPG keys

Recently I've been annoyed by missing GPG keys in Linux Mint. Fortunately there are existing solutions: http://community.linuxmint.com/tutorial/view/172 But it worked when I changed keyserver to:  $ sudo apt-get update 2> /tmp/keymissing; for key in $(grep "NO_PUBKEY" /tmp/keymissing |sed "s/.*NO_PUBKEY //"); do echo -e "nProcessing key: $key"; gpg --keyserver keyserver.ubuntu.com --recv $key && gpg --export --armor $key | sudo apt-key add -; done Or You can try:  http://www.howtogeek.com/72934/how-to-automatically-import-missing-gpg-keys-in-ubuntu/ But first command worked for me.

Linux Mint 12

Yesterday I installed new Linux Mint with Gnome 3 user interface and Mint extensions. For now it really feels like Gnome 2 UI. There are differences of course, but they really make Gnome Shell more friendly! I have some problems, one of them is still not fixed, I even don't know how to search for a fix. After creation of USB drive i have error after boot: "vesamenu.c32: not a COM32R image" 1: hit TAB button 2: type "Live" in console Then I find impossible to install Chrome in Linux Mint 12: 1: Install Chromium 2: Install Chrome It looks like new Mint doesn't have something important that Chrome needs, fortunately Chromium installs it, and this is enough for me to now that now it just works :) Last problem is probably caused by video drivers. I use two monitors, on Laptop and second attached to VGA port. This is strange but after blocking screen I have problem with the screen in Laptop. It fills with gray noise and is unusable :/ It happe...

PL: Wstęp Do Programowania w Linuxie (Ubuntu)

Bardzo ciekawy i wyczerpujący artykuł o podstawach programowania w Linuxie. http://czytelnia.ubuntu.pl/index.php/2008/07/30/wstep-do-programowania-w-linuksie-na-przykladzie-ubuntu/ Przegląd przez popularne języki i edytory. Wszystko czego potrzeba by zacząć programować w Ubuntu.

Easily renaming many files

From:  http://www.debian-administration.org/articles/150 for i in "Pre - "*; do mv "$i" "${i/Pre - }"; done; 

Linux: search and replace recursively

 find ./ -type f -exec sed -i 's/staystring/nowystring/' {} \; source: http://www.jonasblog.com/2006/05/search-and-replace-in-all-files-within-a-directory-recursively.html

JavaScript Linux Emulator

http://bellard.org/jslinux/ Description:  http://bellard.org/jslinux/tech.html

Grep many files at once

http://www.cyberciti.biz/faq/unix-linux-finding-files-by-content/ simple version: grep 'string' *.txt

Vi, Python and Bash in learning queue

From a month I doesn't have a Windows System even installed, and after finishing some books I want to learn more about using Linux and programming in Linux. I think that for a beggining I want to : Learn  Vi , Learn  Bash , and more about Linux  terminals , and Linux System as... System ;) Learn  Python . I have started reading about Python some time ago at:  http://pl.wikibooks.org/wiki/Zanurkuj_w_Pythonie/  in Polish to get it easier, but after That I think about reading a whole book in English. Anyway I started from Python, but now I think that while learning Python I want to use Linux Editor, I have to choose from Vi and emacs but Vi wins for me, without  a reason - I just fight with it a couples of times, and at least know basics :) It is good idea as I think to write Python in Vi instead of NetBeans, gedit(good with addons), or Eclipse. I can't use them in terminal ... Generally I must learn more about Linux, I use only some basics command and ...