Archive

Archive for September, 2016

Create a Windows installer USB stick from an ISO under Linux

September 30, 2016 Leave a comment

Problem
I decided to try Windows 10 and install it on a laptop of mine (worry not, it’ll be dual boot :)). Having an ISO, how to put it on a USB stick? In addition, Windows should install itself from the stick…

Solution
The software winusb did the job. Its usage is clear and simple:

$ winusb
Warning: you should run this script as root !
Error: No install method specified !

winusb usage
Install a windows ISO on an NTFS partition and edit MBR of the device
  winusb --install <iso path> <partition>
  Example: winusb win7_amd64.iso /dev/sdd1

Completely format a drive and install the ISO on it
  winusb --format <iso path> <device>
  Example: winusb win7_amd64.iso /dev/sdd

Options
 --verbose, -v        Verbose mode
 --help, -h           Show this help message and exit
 --noColor            Disable color

I had an empty USB stick with an NTFS partition, so I chose the “--install” method. The preparation of the USB stick is long, it took 15 minutes. Sometimes I had the impression that it got frozen but then it continued. So don’t worry, give it some time to finish.

Tip from here.

Categories: linux, windows, windows 10

A “read it later” add-on for Firefox

September 29, 2016 Leave a comment

Problem
At my workplace I found two interesting links that I decided to read at home. I didn’t want to save their URLs and e-mail them to me, so I made a search if there is a good “read it later” add-on for Firefox. And then I got surprised.

Solution
It turned out that Firefox has such an add-on by default! That is, such an add-on is included in Firefox and it is called Pocket. Read more about it here.

So I put its icon next to my search bar and started to use it. It’s awesome! It also has a mobile app. so I can read the saved articles anywhere.

Hmm, I’m sure there are lots of other gems in the softwares that we use on a daily basis and we have no idea about them…

Categories: firefox

Konsole: highlight the current tab

September 19, 2016 Leave a comment

Problem
Holy shit, this problem has been bugging me for years… But at last I found a solution.

So, I use the terminal emulator Konsole, which is very nice, I love it, but the current tab is not highlighted enough. Thus, if you have several tabs opened, it’s always difficult to figure out which is the current one.

konsole_off

Solution

It turns out that Konsole can be customized via a CSS stylesheet file. Here is an example (konsole.css) that you should save somewhere:

QTabBar::tab:selected {
    background: lightgreen;
    color: black;
    font: bold;
}

Then, in Konsole, go to Settings -> Configure Konsole… -> TabBar, and there specify this CSS file:

konsole_settings

And here is the result:

konsole_on

Links

Categories: linux Tags: , , , ,

git: revert “git add .”

September 7, 2016 Leave a comment

Problem
You run “git add .” and you manage to add 100+ files :( How to “unadd” them with one command?

Solution

git reset HEAD --

I found it here. Click on it for a detailed explanation.

Categories: bash Tags: ,

Ubuntu: assign a better screenshot tool to the Print button

September 5, 2016 Leave a comment

Problem
The Ubuntu default screenshot tool (gnome-screenshot) is lame. In Manjaro there is a better tool called xfce4-screenshooter, which allows you to select a region, open it with Gimp, upload to Imgur, etc.

How to assign xfce4-screenshooter to the Print button?

Solution
First, install the software (sudo apt install xfce4-screenshooter). Then, open System Settings, select Keyboard, and go to the Shortcuts tab. Here ignore the “Screenshots” entry and select Custom Shortcuts. Click on the “+” sign and add the command xfce4-screenshooter. As a result, a new entry will appear. Click on its right side and assign the Print button to it. It’ll complain a bit but click on Re-assign. Done.

I found this nice solution here: http://askubuntu.com/a/609060/53599 . Click on this link for screenshots.

Categories: manjaro, ubuntu Tags: ,