It doesn’t happen a lot but it does sometimes when the Gnome Panel freeze. If you are a former windows user you might be used to restart the computer when something in you desktop stuck. This is not the way with Linux. We can fix the problem by restarting the desktop session (restarting the X server) pressing the Ctrl+Alt+BackSpace but this will destroy everything we worked on so far. A more elegant way will be to restart only the Gnome Panel.
Getting access to the Linux command line shell
In order to restart the Gnome Panel we will need to execute the Linux kill command. Once the Gnome Panel process is killed Gnome will restart it automatically so the only thing left for us is to kill the Gnome Panel process. In order to execute the Linux kill command we will need to get access to the Linux shell. This can be done by one of the following:
Pressing Alt+F2
Using an opened console window using the Alt+Tab buttons to navigate to it.
Using a console session by pressing Ctrl+Alt+F1
Killing the Gnome Panel
In each of these options we will need to execute the Linux kill command in order to kill the Gnome Panel process. There are two ways to use the kill command:
Using the application name will kill all the applications with the same name
Using the process id (pid) will kill only the process with the specified id.
Back to our case with the Gnome Panel, we can use both of the options.
I am a new Debian Linux v.7.x / Ubuntu Linux LTS user. How do I reinstall a package using apt-get command line?
The Advanced Packaging Tool (APT) works on both Debian / Ubuntu and it can handle the installation and removal of software. You need use apt-get command as follows to forcefully reinstall package. The syntax is:
apt-get --reinstall install PackageNameHere
OR
apt-get --reinstall install Package1 Package2
The --reinstall option re-install packages that are already installed and at the newest version.
Pro tip: Backup configuration files before you reinstall packages. For example, if you are reinstalling nginx web server package, backup /etc/nginx/ with cp command i.e. mkdir /root/nginx.mmddyyyy/; cp -avr /etc/nginx/* /root/nginx.mmddyyy/
Examples
The following command will reinstall rsync package. Open a terminal and then type: $ sudo apt-get --reinstall install rsync OR # apt-get --reinstall install rsync Sample outputs:
Fig.01: Debian / Ubuntu Linux reinstall a package using apt-get command
If above method failed for you, try the following syntax. Make sure you backup config file before typing the following commands. Please note that the --purge option is identical to remove except that packages are removed and purged including any configuration files are deleted too.
Comment rendre la commande ssh-copy-id disponible sur Mac OS X
Si vous avez tenté d’utiliser la commande ssh-copy-id sur Mac OS X, vous avez dû vous rendre compte que, même si openssh est installé nativement, cette commande n’est pas disponible.
Heureusement, cette commande est un simple script qu’il suffit de copier au bon endroit, de lui donner les bons droits et SURPRISE la commande est disponible.
Et comme je suis sympa, eh bien je vous donne tout ça. 😉 Pour commencer le script ssh-copy-id
Ensuite, la méthodologie à suivre pour le mettre en place:
Télécharger le fichier
Déplacer le fichier dans le répertoire /usr/bin
Lui donner les droits nécessaires
$ chmod 755 /usr/bin/ssh-copy-id
Edit
Si vous utilisez homebrew, il existe un package pour faire la même chose : brew install ssh-copy-id
How can I mount remote directory with ssh on a Linux bases system? How do I use SSHFS to mount remote file systems over SSH on a Ubuntu or Debian/RHEL/CentOS/Arch Linux system?
SSH is a secure protocol and you can use it to mount a directory on a remote server or local laptop with the help of the SSHF service. With SSHFS you can mount remote server file system to your local
More on SSHFS
sshfs is a filesystem based on the SSH file transfer protocol. It is used on a client system i.e. you need to install sshfs package on your local computer/laptop powered by CentOS/RHEL/Ubuntu/Debian/Arch Linux. No need to install anything on server (server1.cyberciti.biz). You only need an openssh server installed on server side. Our sample setup:
Both Debian and Ubuntu Linux provides a number of package management tools. This article summaries package management command along with it usage and examples for you.
apt-get : APT is acronym for Advanced Package Tool. It supports installing packages over internet using ftp or http protocols. You can also upgrade all packages in a single operations, which makes it even more attractive.
dpkg : Debian packaging tool which can be use to install, query, uninstall packages.
Gui tools: You can also try GUI based or high level interface to the Debian GNU/Linux package system. Following list summaries them:
aptitude: It is a text-based interface to the Debian GNU/Linux package system.
Red hat Linux package names generally end in .rpm, similarly Debian package names end in .deb, for example:
apache_1.3.31-6_i386.deb
Where,
apache : Package name
1.3.31-6 : Version number
i386 : Hardware Platform on which this package will run (i386 == intel x86 based system)
.deb : Extension that suggest it is a Debian package
Remember, whenever I refer .deb file it signifies complete file name, and whenever I refer package name it must be first part of .deb file. For example, when I refer to a package sudo it means sudo only and not the .deb file i.e. sudo_1.6.7p5-2_i386.deb. You can find out debian package name with the following command:
Finally, most of the actions listed in this post are written with the assumption that they will be executed by the root user running the bash or any other modern shell. Lire la suite…