How to customize the font and color of the panel clock in Ubuntu and Linux Mint Mate

If you are using the Mate edition of Linux Mint ( either 13 or 14), the default clock at the right corner will look like this
I will show you a small trick to change the font and color of this clock widget to make it look somehow like this:
The trick is pretty simple. First, you will need to get the Digital font. Just download it here then install it.

Next, create a file named .gtkrc-2.0 in the home folder and copy-paste the following lines into it:
 style "my-panel-clock"  
 {  
 fg[NORMAL] = "#272727"
 font_name = "DS-Digital Bold 12"  
 }  
 widget "*.clock-applet-button.*" style "my-panel-clock"  

After that, just hit Alt+F2 and run the following command to reset the bottom panel:
 pkill mate-panel  

Note: You can edit the font, size and the color code in the .gtkrc-2.0 file to meet your preference.


source: http://www.linuxandlife.com/

Ubuntu Got 2 Windows 7 (loader) entries in Grub2

What was the cause of the problem:

Grub2 looks for the Windows boot files for detecting Windows entries. Though you removed Windows 7, the Windows 7 boot files aren't removed (which are "Boot" folder and "bootmgr" file). And as Windows 7 boot files are there, grub2 simply assumes that, there are Windows 7 installation also. Hence the dual entry.






You should find what you're looking for inside of /boot/grub/grub.cfg. This file is dynamically generated by update-grub2. I am dual booting Ubuntu 32bit and 64bit. If I wanted to remove one, I would simply delete it's section from this file.


menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
 ### BEGIN /etc/grub.d/30_os-prober ###



menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos2)'
    search --no-floppy --fs-uuid --set=root C08C7F598C7F4944
    chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos2)'
    search --no-floppy --fs-uuid --set=root C08C7F598C7F4944
    chainloader +1
}
menuentry "Windows Recovery Environment (loader) (on /dev/sda4)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos4)'
    search --no-floppy --fs-uuid --set=root C22A7EEA2A7EDB3D
    drivemap -s (hd0) ${root}
    chainloader +1


Changes should take effect immediately, so make a backup and be careful. Also, anything you change in this file will be completely over written if you run update-grub2 again.

make sure you're delete the right one or you'll be sorry...

OR


Mount the /dev/sda1 drive. Then in that drive look for a folder named Boot and a file named bootmgr. Remove both the folder and file. Then run update-grub2 command again.
You might want to install grub2 again. As I see your Ubuntu installation is at /dev/sdb, the commands will be

sudo grub-install /dev/sdb
sudo update-grub 


Bye..

Open the terminal in a specific size and position in Ubuntu/ Linux Mint

In Ubuntu or Linux Mint and many other distros, when you open the terminal, the window will appear at the top left corner of the desktop screen and I usually have to drag it down to the bottom left of the desktop. If you dont like the default position and size of the start up window, you can edit it easily.


There are in fact many methods to customize the start up position of the terminal, but in this article I will show you a simple way to do the task without installing anything. In Ubuntu or Linux Mint Cinnamon, just open the terminal and run the following command:

sudo gnome-desktop-item-edit /usr/share/applications/gnome-terminal.desktop

If you use MATE, the command will be

sudo mate-desktop-item-edit /usr/share/applications/mate-terminal.desktop

After you hit enter, you will see the properties window of the launcher for the terminal.
 

In the command tab, just append this option after the part "mate-terminal" (or "gnome-terminal"):
 
--geometry=100x50+800+300

 What this means:
100: the width of the terminal ( in characters)
50: the height ( in lines)
800: x position of the terminal when you open it up
300: y position


Just change the numbers into whatever values you prefer then click on the Close button and everything is done. Next time you open the terminal, the terminal window will appear at the new position instead of the top left corner of the desktop screen  


source http://www.linuxandlife.com

Easy way to download Potenza and install

Potenza was updated on Gnome-look two days ago and this icon set has been rated positively. All icons in this set have a squircular shape and the bright colors make Potenza go together with dark GTK themes very well.

Here are some screenshots of Pontenza

 This is an easy way to download and install
  • sudo wget http://mystras.cloudfactory.eu/Downloads/Potenza.deb
  • sudo dpkg -i Potenza*
  • sudo apt-get install -f

How To Setup Static DNS Servers in Ubuntu

To get started, press Ctrl – Alt – T on your keyboard to open the terminal. When it opens, run the commands below to open dhclient.conf file.

sudo gedit /etc/dhcp/dhclient.conf
Then change the line highlighted to:
prepend domain-name-servers x.x.x.x, y.y.y.y;

Replace xx and yy with the primary and secondary DNS server addresses. Separate each address with a comma. Save the file and you’re done.

i COPY AND PASTE this from here for my own knowledge.

Find Us On Facebook

Related Posts Plugin for WordPress, Blogger... Linux Directory