Ubuntu 13.10 Saucy Salamander – Dropbox issues on GUI panel indicator. LXDE and Unity

Dropbox

Dropbox logo

I have had some problem on trying to let work the dropbox application under Ubuntu 13.10 after I performed a dist upgrade from 13.04, so after spending some times in searching a method to let it work again I am reporting what I have tryed to do.

Continue reading

Advertisements

“Job found still running after platform shutdown eclipse” Problem with my Eclipse Juno

English: Total Solar eclipse 1999 in France. *...

(Photo credit: Wikipedia)

Hi, it is some times that I don’t write new articles on my blog, this time I would like to report how I solved this problem on my running Eclipse workspace.

First of all I have deleted (as I have read in the past in many other sites ) the .snap files inside the org.eclipse.core.resources folder with a command like:

rm YOUR_WORKSPACE_FOLDER/.metadata/.plugins/org.eclipse.core.resources/.snap

but for me this has not been sufficient, so trying with every folder inside the .plugins I discovered that I simply need to delete (or rename) the folder org.eclipse.e4.workbench:

rm -rf YOUR_WORKSPACE_FOLDER/.metadata/.plugins/org.eclipse.e4.workbench

Starting again Eclipse this time worked and now I can again use it with all my previous configuration.
I have not googled to know what is the purpose of the data inside the org.eclipse.e4.workbench and also I have to say that of course I have tested only on my Eclipse Juno instance

Have a nice day

Eclipse & SVN on Linux : How to add files to ignore list automatically

Eclipse (software)

Eclipse (software) (Photo credit: Wikipedia)

First of all you need to create a new file on the root of the project with the list of file to ignore like the following (this is a typical list of file that we need to exclude from an Eclipse project)

target
target/**
bin
bin/**
.classpath
.project
.settings

and after on the console (shell) you have to run the following command assuming that you have called the previous file ignore.txt

svn propset svn:ignore -RF ignore.txt .

(Please note the “.” at the end of the command). The -R is the recursive option

Now you can run eclipse and access to the SVN View and commit all the local changes

This is very usefull if you have alread a large project that you want to import on Eclipse and do you want to avoid to ignore every file manually by means of eclipse

Opening ports using iptables

Screenshot Firestarter: Das Logfile von iptabl...

Image via Wikipedia

To open a port by using iptables you can use the iptables command, assume for example that you want to open port 25, you have to issue on the shell the following command

iptables -I INPUT -p tcp –dport 25 -j ACCEPT

where -I instruct to not add the rulle after the deny all rule avoiding to not be checked by iptables. At the end you have to save your changes with

service iptables save

and restart the service with

service iptables restart

However you can also edit directly the configuration file that in CentOS is in /etc/sysconfig/iptables

Continue to run script even when closing a remote shell

mplayer running from a command line prompt, vi...

Image via Wikipedia

When you run a remote shell (for example putty) and you start a remote cli program (e.g. tomcat, servicedesk, jboss and so on) when you close the remote shell normally they would terminate. To avoid this situation you can try to run the program in background (adding & at the end of the command or using the combination CTRL-Z and after the command bg)  but there are some cases in which the child process will continue to receive signal from the parent process (e.g. SIGINT), so you can overcome this by using the nohup command (which will cause the program to ignore signals sent from the shell).

Example think that you have a run.sh script to run,  to avoid to be interrupted when you close the remote shell just write this:

nohup run.sh &

How to mount LVM partition on Ubuntu

Creating the main partition for ubuntu

Image via Wikipedia

Mounting is an easy process to do, provided the filesystem type you are using is supported. What happen when you have an LVM formatted disk, and you need to mount it because the disk cannot be booted and a hell lot of valuable data kept inside?? Do not worry, because the solution is here…….

1. Get a live cd, for example, Ubuntu. For this article, I use Ubuntu 6.06 (I cannot find any latest version of ubuntu at my place)

2. Boot using the live cd. Search for these tools: lvm2. If the cd do not have it, install it.
# apt-get install lvm2

3. To make sure the harddisk is recognised, you can use fdisk
# fdisk -lu

4. Once installed, run pvscan to scan all disks for physical volume. this to make sure your LVM harddisk is detected by Ubuntu
# pvscan
PV /dev/sda2 VG VolGroup00 lvm2 [74.41 GB / 32.00 MB free]
Total: 1 [74.41 GB] / in use: 1 [74.41 GB] / in no VG: 0 [0 ]

5. After that run vgscan to scan disks for volume groups.
# vgscan
Reading all physical volumes. This may take a while…
Found volume group “VolGroup00” using metadata type lvm2

6. Activate all volume groups available.
# vgchange -a y
2 logical volume(s) in volume group “VolGroup00” now active

7. Run lvscan to scan all disks for logical volume. You can see partitions inside the hard disk now active.
# lvscan
ACTIVE ‘/dev/VolGroup00/LogVol00’ [72.44 GB] inherit
ACTIVE ‘/dev/VolGroup00/LogVol01’ [1.94 GB] inherit

8. Mount the partition to any directory you want, usually to /mnt
# mount /dev/VolGroup00/LogVol00 /mnt

9. You can access the partition in the /mnt directory and can backup your data

Note

This post is a copy of http://linuxwave.blogspot.com/2007/11/mounting-lvm-disk-using-ubuntu-livecd.html. This is a valuable info, so to avoid to not be able to reach the site in the future I have copied it instead to just link it. If the author feels that its copyright are beeing violated can ask me to remove the post.

How to generate an SSH key on Windows using PuTTY?

In an asymmetric key encryption scheme, anyone...

Image via Wikipedia

You can generate an SSH key on Windows using the PuTTY SSH client. You can download PuTTY for free from this URL.

To generate a key with PuTTY, you should:

1. Download and start the puttygen.exe generator.

2. In the “Parameters” section choose SSH2 DSA (if your server uses RSA you have to choose SSH2 RSA) and press Generate.

3. Move your mouse randomly in the small screen in order to generate the key pairs.

4. Enter a key comment, which will identify the key (useful when you use several SSH keys).

5. Type in the passphrase and confirm it. The passphrase is used to protect your key. You will be asked for it when you connect via SSH.

6. Click “Save private key” to save your private key.

7. Click “Save public key” to save your public key.

For more information on how to load the key and connect via SSH using PuTTY, please check this article.
Ref:http://kb.siteground.com/article/How_to_generate_an_SSH_key_on_Windows_using_PuTTY.html