2014-06-29

Close Steam to Tray on Linux

Closing Steam client just makes it minimized. It's possible to change this behavior, so it would go to tray.

Just write this in terminal and log out:
echo 'STEAM_FRAME_FORCE_CLOSE DEFAULT=1' >> ~/.pam_environment

or for all users:
echo 'STEAM_FRAME_FORCE_CLOSE=1' | sudo tee -a /etc/environment

2014-06-20

Create Bridge Network With Your Xbox 360

You will need second network card (you can get one really cheap).

Connect computer and Xbox 360 with ethernet cable.

Install bridge-utils
sudo apt-get install bridge-utils

Edit file
sudo gedit /etc/network/interfaces

Add this to the end of file and save it
auto br0
iface br0 inet dhcp
  bridge_ports eth0 eth1

It should look something like this
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto br0
iface br0 inet dhcp

  bridge_ports eth0 eth1

Restart computer.

* eth0 and eth1 may be different on your machine

Connect Xbox 360 Controller on Linux

sudo apt-add-repository ppa:rael-gc/ubuntu-xboxdrv
sudo apt-get update
sudo apt-get install ubuntu-xboxdrv

jstest-gtk is used to configure controller.
Works with third-party wireless receivers and wireless controllers.

2014-02-05

Reboot To Windows From Ubuntu

  1. sudo gedit /etc/default/grub
  2. Change line GRUB_DEFAULT=0, to GRUB_DEFAULT=saved
  3. sudo update-grub
  4. sudo grub-reboot 4
  5. Number at the end is GRUB menuentry position. To find out what number it should be, restart computer and look at the GRUB. For example if Windows entry is 5th, then you should write 4, because it starts from 0.
      You can also make a script:
  1. sudo apt-get install gksu
  2. Create text file with text
  3.     #!/bin/bash
        gksu grub-reboot 4
        gksu reboot

  4. Make it executable sudo chmod +x file
      And even .desktop file:
  1. Create text file with text with .desktop extension
  2.    [Desktop Entry]
       Type=Application
       Name=Restart to Windows
       Exec=(path to script)
       Categories=System;

  3. Put it in /home/user/.local/share/applications

2014-01-12

Small Linux Wallpapers Collection

I have selected some nice Linux wallpapers (mostly Ubuntu), and put them in one archive.
Some examples:

2013-06-27

(Another Method) Fix Ubuntu Boot Screen (Plymouth) After Installing Nvidia Drivers

  1. sudo apt-get install v86d hwinfo
  2. sudo hwinfo --framebuffer
  3. If if 1st point doesn't work, in Grub press C and enter vbeinfo. It will show supported resolutions
  4. Choose highest resolution
  5. sudo gedit /etc/default/grub
  6. Change line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to look like this GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1920x1080-32,mtrr=3,scroll=ywrap"
  7. Uncomment and change line GRUB_GFXMODE=1920x1080-32
  8. sudo gedit /etc/initramfs-tools/modules
  9. At end of file add line uvesafb mode_option=1920x1080-32 mtrr=3 scroll=ywrap
  10. echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
  11. sudo update-grub
  12. sudo update-initramfs -u
  13. Restart computer.

2013-05-09

Fix Ubuntu Boot Screen (Plymouth) After Installing Nvidia Drivers


After installing Nvidia drivers in Ubuntu you lose that beautiful Plymouth boot screen. Here's how to fix that:

  1. In Grub press C and enter vbeinfo. It will show supported resolutions
  2. Boot Ubuntu and in terminal write sudo gedit /etc/default/grub
  3. After line #GRUB_GFXMODE=640x480 write GRUB_GFXPAYLOAD_LINUX=1920x1080-32 (here your supported resolution)
  4. Next in terminal: echo "FRAMEBUFFER=y" | sudo tee -a /etc/initramfs-tools/conf.d/splash
  5. sudo update-initramfs -u -k all
  6. sudo update-grub
  7. Reboot and look at that beautiful screen again.
P.S.: If this didn't work for you, try this method.

2013-02-09

Install Subliminal in Ubuntu (Command Line Subtitle Downloader)(Constantly updating)

Subliminal is nice tool for downloading single or multiple subtitles from:
  • Addic7ed
  • BierDopje
  • OpenSubtitles
  • SubsWiki
  • Subtitulos
  • TheSubDB
  • TvSubtitles

To install in linux terminal write:
  1. sudo apt-get install git-core python-pip
  2. git clone https://github.com/Diaoul/subliminal.git
  3. cd subliminal
  4. git checkout -t origin/0.7.x
  5. sudo pip install guessit==0.7.0
  6. sudo python setup.py install

2013-01-07

XFCE Wallpaper Changer

  • Open "Desktop Settings", select "Image list" and add wallpapers that you want to see;
  • Open terminal and write contrab -e (select nano if it's your first time using this command);
  • Write 0,5,10,15 * * * * export DISPLAY=:0; /usr/bin/xfdesktop -reload, press Ctrl+X, the Y and Enter.
Your wallpaper will change every 5 minutes.

2013-01-05

Change Default Paper Size in LibreOffice

  • Go to Format > Page. Set your size to to what you want.
  • After that go to File > Templates > Save. Name it.
  • Go to File > Templates > Organize.
  • Double click on "My Templates" and right click on your template. Choose "Set as Default Template".