A reminder to myself » Linux http://simionbaws.ro Stuff I might need later. Mon, 06 Jul 2015 13:25:52 +0000 en-US hourly 1 http://wordpress.org/?v=4.3.1 Improve font rendering for IntelliJ IDEA / Pycharm in Ubuntu http://simionbaws.ro/linux/improve-font-rendering-for-intellij-idea-pycharm-in-ubuntu/ http://simionbaws.ro/linux/improve-font-rendering-for-intellij-idea-pycharm-in-ubuntu/#comments Wed, 26 Nov 2014 15:25:02 +0000 http://simionbaws.ro/?p=409 Stock font rendering in Pycharm / Intelliji IDEA is horrible on Ubuntu. To improve it, change the following:

 

First of all, we need to install Infinality fonts:

sudo add-apt-repository ppa:no1wantdthisname/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fontconfig-infinality

sudo /etc/fonts/infinality/infctl.sh setstyle linux
sudo gedit /etc/profile.d/infinality-settings.sh
# and set
USE_STYLE="UBUNTU"

Installed the patched OpenJDK with fontfix:

sudo apt-add-repository -y ppa:no1wantdthisname/openjdk-fontfix
sudo apt-get update
sudo apt-get install openjdk-7-jdk

In

$IDEA_HOME/bin/*.vmoptions
  add the following: (PS: $IDEA_HOME is the path to IntelliJIdea or Pycharm)

-Dawt.useSystemAAFontSettings=lcd
-Dswing.aatext=true
-Dsun.java2d.xrender=true

and in 

~/.profile
  add

export PYCHARM_JDK=/usr/lib/jvm/java-1.7.0-openjdk-amd64"

 

or whatever the installed java path is.

Reboot.

Start the IDE and enjoy perfect fonts.

Google+
]]>
http://simionbaws.ro/linux/improve-font-rendering-for-intellij-idea-pycharm-in-ubuntu/feed/ 7
Ubuntu – Fix large fonts for Google Chrome in Address Bar and Bookmarks bar http://simionbaws.ro/linux/ubuntu-fix-large-fonts-for-google-chrome-in-address-bar-and-bookmarks-bar/ http://simionbaws.ro/linux/ubuntu-fix-large-fonts-for-google-chrome-in-address-bar-and-bookmarks-bar/#comments Mon, 24 Nov 2014 08:32:56 +0000 http://simionbaws.ro/?p=404 Since version 35, chrome switched to Aura framework and does not follow GTK theme anymore. This leads to large font size in address bar, and bookmarks bar.

However, it grabs font size settings from org.gnome.desktop.interface “font-name” property. To fix this, run the following command:

gsettings set org.gnome.desktop.interface font-name 'Ubuntu 10'
# or
gsettings set org.gnome.desktop.interface font-name 'Ubuntu 11'
# depending on your preferences

You must restart chrome for this to work.

Google+
]]>
http://simionbaws.ro/linux/ubuntu-fix-large-fonts-for-google-chrome-in-address-bar-and-bookmarks-bar/feed/ 0
Command/Shortcut to Lock Screen with “away message prompt” in Linux Mint 17 / Cinnamon http://simionbaws.ro/linux/commandshortcut-to-lock-screen-with-away-message-prompt-in-linux-mint-17-cinnamon/ http://simionbaws.ro/linux/commandshortcut-to-lock-screen-with-away-message-prompt-in-linux-mint-17-cinnamon/#comments Tue, 24 Jun 2014 09:50:09 +0000 http://simionbaws.ro/?p=371 If you want to have a shortcut with for locking the screen, but with prompt for lock message, here’s what you need to do:

  1. Go to Settings -> Keyboard, then click on Keyboard shortcuts tab

  2. Click on Add custom shortcut button, and enter the following command:

    python /usr/lib/cinnamon-screensaver-lock-dialog/cinnamon-screensaver-lock-dialog.py

    example:
    Screenshot from 2014-06-24 12:41:27

  3. Click Add and then assign it a shortcut.
    For example, the default lock screen shortcut is Ctrl+Alt+L. For the one with prompt, you can assign Ctrl+L.
  4. You’re done.
    When you want to lock your screen with a custom “away” message, just press the shortcut you assigned (Ctrl + L)

Screenshot from 2014-06-24 12:47:44

Google+
]]>
http://simionbaws.ro/linux/commandshortcut-to-lock-screen-with-away-message-prompt-in-linux-mint-17-cinnamon/feed/ 0
Install Skype 4.3 in Arch Linux / Manjaro http://simionbaws.ro/linux/install-skype-4-3-in-arch-linux-manjaro/ http://simionbaws.ro/linux/install-skype-4-3-in-arch-linux-manjaro/#comments Wed, 18 Jun 2014 21:46:56 +0000 http://simionbaws.ro/?p=356 Hi there,

Skype just released version 4.3 for linux. You can read this article  from OMG Ubuntu! to see what’s new in 4.3

Long story short:

  • native notifications
  • UI improvements (new toolbar, better login screen, design changes)
  • floating widget for Call
  • cloud based Group Chat
  • support for PulseAudio 3.0 and 4.0

Currently, the AUR “multilib/skype” package is not upgraded to 4.3. If you don’t wish to wait, here’s what you must do:

  1. Download Skype -> http://www.skype.com/go/linux (Choose “Dynamic” from distribution dropdown)
  2. Extract the archive
    cd Downloads
    
    tar -xjf skype-4.3.*
  3. Move the contents of the extracted folder to /opt/skype
    sudo mkdir /opt/skype
    
    sudo mv skype-4.3.*/* /opt/skype
  4. Edit
    /usr/bin/skype
     , and change the
    exec
      command path to
    exec "/opt/skype/skype" "$@"
     

    #!/bin/bash
    
    LIBDIR="/usr/lib32"
    
    if [[ -e "$LIBDIR/libv4l/v4l2convert.so" ]]; then
            export LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}$LIBDIR/libv4l/v4l2convert.so"
    fi
    
    if [[ -e "/usr/share/skype/lib/libQtWebKit.so.4" ]]; then
            export LD_PRELOAD="${LD_PRELOAD:+$LD_PRELOAD:}/usr/share/skype/lib/libQtWebKit.so.4"
    fi
    
    # exec "$LIBDIR/skype/skype" "$@"  # (old one)
    exec "/opt/skype/skype" "$@"

Google+
]]>
http://simionbaws.ro/linux/install-skype-4-3-in-arch-linux-manjaro/feed/ 4
Ubuntu 14.04 ctrl+alt+del shutdown dialog http://simionbaws.ro/linux/ubuntu-14-04-ctrlaltdel-shutdown-dialog/ http://simionbaws.ro/linux/ubuntu-14-04-ctrlaltdel-shutdown-dialog/#comments Fri, 25 Apr 2014 06:08:16 +0000 http://simionbaws.ro/?p=310 Currently , in Ubuntu 14.04 if you press Ctrl+Alt+Del, it pops out the logout or lock dialog.
Many of us were used to have the shutdown/restart dialog prompted on Ctrl+Alt+Del.

Here’s how you get the shutdown dialog:

open System Settings -> Keyboard, click on the second tab “Shortcuts“,  and then click on the “+” icon to add a new shortcut.

Give it a name (ex: “Shutdown dialog”) and in the command field enter 

gnome-session-quit --reboot
 .

Create new shortcut
After creating the shortcut, you need to assign it a keybind. Click on “Disabled” in the right side of the shortcut, then press “Ctrl+Alt+Del”. A conflict dialog will show up. Click on “Reassign”.
Conflict alert

Now, when pressing Ctrl + Alt + Del, you will have this dialog shown:

Shutdown dialog

 

Alternatively, you want to have all the “quit” options in one dialog (lock, suspend, restart, shutdown) you can replace the command with 

gnome-session-quit --power-off
  and get this result:

Dialog with all 4 quit options

 

Google+
]]>
http://simionbaws.ro/linux/ubuntu-14-04-ctrlaltdel-shutdown-dialog/feed/ 4
Wine – Diablo 3 via Battle.net launcher error on Ubuntu 14.04 http://simionbaws.ro/linux/wine-diablo-3-via-battle-net-launcher-error-on-ubuntu-14-04/ http://simionbaws.ro/linux/wine-diablo-3-via-battle-net-launcher-error-on-ubuntu-14-04/#comments Thu, 24 Apr 2014 11:26:25 +0000 http://simionbaws.ro/?p=298 This error occurs on ubuntu 14.04 when trying to run Diablo III from battle.net launcher:

Wine – Diablo 3 via Battle.net launcher error: Please try again after logging on as an administrator

Screenshot from 2014-04-24 14:14:15

To avoid this error, you must launch Diablo 3 using the following command:

setarch i386 -3 -L -B -R wine '/path/to/Diablo III.exe' -launch -opengl

Alternatively, if you want to create a shortcut, run:

sudo gedit /usr/share/applications/diablo.desktop

and paste the following content (don’t forget to update the path to diablo .exe file, and the icon file)

[Desktop Entry]
Name=Diablo III
Comment=Run Blizzard Diablo III via Wine
Exec=setarch i386 -3 -L -B -R wine '/path/to/Diablo III.exe' -launch -opengl
Icon=/path/to/d3.png
Terminal=false
Type=Application
Categories=Application;

You can download the icon file here: http://simionbaws.ro/wp-content/uploads/2014/04/d3.png , save it somewhere and point the location in diablo.desktop file created previously.

Google+
]]>
http://simionbaws.ro/linux/wine-diablo-3-via-battle-net-launcher-error-on-ubuntu-14-04/feed/ 0
Fix ugly Skype theme on Ubuntu 14.04 http://simionbaws.ro/linux/fix-ugly-skype-theme-on-ubuntu-14-04/ http://simionbaws.ro/linux/fix-ugly-skype-theme-on-ubuntu-14-04/#comments Sat, 19 Apr 2014 09:52:02 +0000 http://simionbaws.ro/?p=290 Because Skype is a 32bit app and the GTK theme engine is not installed by default for 32bit, skype uses Clearlooks theme instead of the ubuntu’s gtk Ambiance theme.

To fix this, install the following:

sudo apt-get install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386

Before:

Before fixing skype

After:

Screenshot from 2014-04-19 12:54:16
After

Google+
]]>
http://simionbaws.ro/linux/fix-ugly-skype-theme-on-ubuntu-14-04/feed/ 3
Ubuntu 14.04 installing external .deb fails “Package operation Failed” http://simionbaws.ro/linux/ubuntu-14-04-install-external-deb-files-gives-package-operation-failed/ http://simionbaws.ro/linux/ubuntu-14-04-install-external-deb-files-gives-package-operation-failed/#comments Thu, 10 Apr 2014 11:02:26 +0000 http://simionbaws.ro/?p=278 For some reason, installing external .deb files from ubuntu software center fails. The bug is reported on launchpad.

It doesn’t really matter why it is not working, because the Ubuntu Software Center itself is slow and heavy.

The workaround given on launchpas is to use “dpkg -i <file.deb>” but the issue with this is that it does not resolve dependencies.

My recommendation is to use “Gdebi” as an alternative. It’s extremly fast and lightweight, and it comes with a command line tool, and a GUI tool.

Once you install Gdebi (

sudo apt-get install gdebi
 ), edit the default applications file:

sudo gedit /usr/share/gnome/applications/defaults.list

find the following lines:

application/x-deb=ubuntu-software-center.desktop
application/x-debian-package=ubuntu-software-center.desktop

and replace with

application/x-deb=gdebi.desktop
application/x-debian-package=gdebi.desktop

Google+
]]>
http://simionbaws.ro/linux/ubuntu-14-04-install-external-deb-files-gives-package-operation-failed/feed/ 0
Ubuntu 14.04 lock screen asking password twice http://simionbaws.ro/linux/ubuntu-14-04-lock-screen-asking-password-twice/ http://simionbaws.ro/linux/ubuntu-14-04-lock-screen-asking-password-twice/#comments Thu, 10 Apr 2014 10:44:08 +0000 http://simionbaws.ro/?p=272 So, everyone loves the new Ubuntu 14.04 lock screen, which looks exactly as the login screen.

But there is an issue with it. If you lock your screen manually (Ctrl + Alt + L) and leave your computer a couple of minutes (untill it locks the screen automatically), when you unlock it, it will ask for your password twice.

Workaround: Go to Settings -> Brightness and Lock -> Lock [OFF] (switch it to off).

Google+
]]>
http://simionbaws.ro/linux/ubuntu-14-04-lock-screen-asking-password-twice/feed/ 0
Top things to do after installing Manjaro KDE http://simionbaws.ro/linux/top-things-to-do-after-installing-manjaro-kde/ http://simionbaws.ro/linux/top-things-to-do-after-installing-manjaro-kde/#comments Tue, 18 Feb 2014 20:29:19 +0000 http://simionbaws.ro/?p=180 In this article I’ll explain what you should to after installing Manjaro Linux with KDE  (current version 0.8.8)

Overview on my desktop

So, here’s my current Manjaro KDE desktop look:
snapshot2

 

Here are the most important things I’ve done after installing Manjaro linux:

Appeareance

Fonts

First thing, and the most important, was to fix fonts. Default KDE fonts aren’t that pretty, so I’ve installed “infinality fonts” and cairo ubuntu.

Here’s my current font configuration:

snapshot3

To achieve this, you must do the following:

yaourt -S freetype2-ubuntu fontconfig-ubuntu cairo-ubuntu

yaourt -S fontconfig-infinality-ultimate

Backup and empty your /etc/fonts directory. Then download and extract this archive to /etc/fonts

Edit the following file, and edit “USE_STYLE” to “WINDOWS7”

gedit /etc/profile.d/infinality-settings.sh

Reboot.

Theme & Icons

1. Go to System Settings -> Workspace Appeareance -> Desktop Theme and click “Gew new themes”.
In the filter, type “opensuse”. Install the first theme in search results.

2. Install Kfaenza Icons

yaourt kfaenza

and enable them from Settings -> Application Appeareance -> Icons

Fix network management applet

The current network management appelt is way too ugly and non-practical. You can install the old and cool one, by running the following command and choosing option 1 from yaourt.

yaourt kdeplasma-applets-networkmanagement

Restart the computer or the xserver to apply the changes and enjoy a cooler network management applet.

 

[[ TO BE CONTINUED ]]

]]>
http://simionbaws.ro/linux/top-things-to-do-after-installing-manjaro-kde/feed/ 3