Friday, November 2, 2012

Copy files on Linux shell that have been modified or added within the last X minutes



Here is a short script that helped me to copy files that have ben modified within the last 60 minutes to a new directory. The script uses a combination of the find and cp commands, it has to be run inside the directory that contains the new files.  In this example, I will copy all files that have been modified within the last 60 minutes from /var/www to the directory /var/newfiles, you can replace the timespan or target directory in the script to match your reqzĂșirements.
First, enter the /var/www directory which contains the files:
cd /var/www
Then execute this command to find the latest files and copy them to /var/newfiles:
find ./ -type f -mmin -60  -exec cp -pf {} /var/newfiles/ \;

Tiny Core Linux 4.7


Robert Shingledecker has released version 4.7 of Tiny Core Linux, a minimalist but extensible graphical Linux distribution for desktop computers. From the release announcement: "I am pleased to announce the release of Core 4.7. Change log: updated ondemand to support scm extensions and icons from both tcz and scm; updated wbar - to support scm ondemand icons; updated scmapps GUI for new ondemand maintenance and download option; updated scm-load - new option -wo ondemand download; updated tc-functions - added new support functions; updated scm to interface to updated scmaps GUI; new scm-run to support scriptable load and launch scm style extensions; updated filetool - new GUI access to filetool.lst, .xfiletool.lst, and backup options; updated filetool.sh to interface to updated filetool GUI; updated apps GUI - New Check Onboot Unneeded and changes required by ondemand scm support...." Download links: TinyCore-4.7.iso (12.0MB, MD5), CorePlus-4.7.iso (66.0MB, MD5).

Thunar Dropbox: Enable Dropbox Context Menu on Thunar File Manager



I have written about step-by-step post on how to get Dropbox "Copy Public Link" works on Thunar File Manager. I have found easier way to do that by installing Thunar Dropbox. Thunar Dropbox is a plugin for Thunar file manager which adds Dropbox context-menu.



Unfortunately, the plugin doesn't come with Dropbox itself and there is no PPA or any repository yet. So you have to download and compile it manually to get things done. So, please follow this guide to install Thunar Dropbox on your system. I assume that you have installed and configured Dropbox properly. Grab the ZIP archive of Thunar Dropbox here. Once downloaded, extract the file and open Terminal.

Installing dependencies
  • sudo apt-get install libthunarx-2-dev

Now, it's time to compile Thunar Dropbox:
  • ./waf configure --prefix=/usr
  • ./waf build
  • sudo ./waf install
Thunar Dropbox uses Python 2 as its interpreter. So, please make sure to use Python 2 when compiling.

Once installed, login and log out back in order to change to takes effect.

This plugin has been tested on Xubuntu 12.10 Quantal Quetzal and everything looks well :)

Thursday, November 1, 2012

Install Google Earth 7 In Ubuntu 12.10/12.04/Linux Mint 13

 
In this tutorial we will help you install Google Earth 7 in Ubuntu/Linux Mint. This latest version includes more exciting new features such as 3D imagery and tour guide. These features allow the user to view some cities in 3D which will be amazing for owners of HDTV and widescreen monitors. For more information about this latest release, click here.

The installation will be for the following Linux distributions:


  • Ubuntu 12.10/12.04/11.10
  • Linux Mint 13/12
  • Debian 6.0 Squeeze
Google Earth 7 Installation

In a 32-bit system, issue these commands from the terminal:

sudo apt-get install lsb-core 
cd /tmp 
wget -c http://goo.gl/YEqTf -O google-earth-stable_i386.deb 
sudo dpkg -i google-earth-stable_i386.deb
For 64-bit systems, run these commands:

sudo apt-get install lsb-core 
cd /tmp 
wget -c http://goo.gl/t6E3i -O google-earth-stable_amd64.deb 
sudo dpkg -i google-earth-stable_amd64.deb

You can also download Google Earth from its website here.

Install G-Xiria 3.0 Icon Theme From PPA In Ubuntu 12.10/12.04/Linux Mint 13



G-Xiria 3.0 is an amazing icon theme for Gnome Shell and Unity. In this tutorial we will help you install it under Ubuntu/Linux Mint from PPA. Here are some screenshots of G-Xiria 3.0 icons under Ubuntu Unity:




The PPA is supported by these distributions:

  • Ubuntu 12.10/12.04/11.10
  • Linux Mint 13
G-Xiria 3.0 Installation

Open the terminal and run these commands:

sudo add-apt-repository ppa:upubuntu-com/icons 
sudo apt-get update 
sudo apt-get install gxiria-icons

To enable it, use Gnome Tweak Tool or run this command:

gsettings set org.gnome.desktop.interface icon-theme 'G-Xiria'

Credits for this icon theme go here.

Wednesday, October 31, 2012

How to Full GNOME Shell Package Installation on Ubuntu 12.10



Are too loyal to Ubuntu , but you just can not digest Unity and prefer GNOME Shell ? Well, then this article is just for you! If you are using Ubuntu 12.10 with Unity or some other desktop environment, and want to switch to a full desktop experience without installing GNOME Shell Ubuntu GNOME Remix 12.10 , you can just simply install some packages . Using the instructions below, not only will install GNOME Shell but the default settings and applications that you find with Ubuntu GNOME Remix. There are also some optional steps for installing some applications, then it’s up to you to decide whether to opt for the installation or not.

Install GNOME packages necessary

The first thing to do is type in the terminal the following command:
sudo apt-get install ubuntu-desktop ubuntu-gnome-gnome-default-settings
Now it’s up to you to choose whether you want to GDM or LightDM because during the installation you will be asked if you want to install GDM. In the event that this does not happen, and you want GDM instead of LightDM, you would type:
sudo dpkg-reconfigure gdm
and select GDM instead of LightDM. At the end of installation just get out of the current session and select from the screen to enter GNOME GNOME Shell, at this point, it will be the version 3.6.1 ! Now the advice is to remove the following metapackage will not involve any system problem:

sudo apt-get remove ubuntu-settings
The package “ubuntu- settings ‘sets different default values of Ubuntu, as the order of the buttons in the window, some plugins Rhythmbox and so on.

Optional: Install the missing packages

Some packages in the repositories of Ubuntu 12.10 are not updated to the latest version 3.6.x. (As you already long ago we described, for example, Nautilus). To overcome this problem, open the terminal and type:
sudo add-apt-repository ppa: gnome3-team/gnome3
sudo apt-get update sudo apt-get
dist-upgrade
packages that will be upgraded are Aisleriot 3.6.0, Brasero 3.6.0, Nautilus 3.6.1, Totem 3.6.0, Transmission 0.7.1, Transmageddon 12:23 and Sound Juicer 3.5.0 .
Finally, if you like, you can also remove the overlay scrollbars:
sudo apt-get remove overlay-scrollbar *
attention now! If you have any problems with Plymouth try typing the command from the terminal:
sudo update-alternatives - config default.plymouth
and choose ubuntu-gnome, now given a nice:
sudo update-initramfs-u
and everything should be solved!