Clone Your Ubuntu installation

If you want to create a system that is similar to a different system you have already set up, it can be difficult to remember each and every package you had installed.This method works best when you are exporting to and importing from the same distribution and, specifically, the same releasefor example, exporting from Ubuntu Dapper to Ubuntu Dapper or ubuntu edgy to ubuntu edgy.

Ubuntu uses the APT package management system which handles installed packages and their dependencies. If we can get a list of currently installed packages you can very easily duplicate exactly what you have installed now on your new machine. Below is a command you can use to export a list of your installed packages.

sudo dpkg --get-selections | grep '[[:space:]]install$='| awk '{print $1}' > installedpackages
Now you should end up with a file called “installedpackages” which consists of a long list of every package your currently have installed.

The next step would be to tell the clone machine to install each of those packages. You’ll have to copy that file to the clone machine (via network, usb drive, email, etc) and also make sure to duplicate the /etc/apt/sources.list file. Without the same access to repositories it may not be able to find the packages.

To tell your system to use the previously exported package list use the following command (after making sure to also clone your /etc/apt/sources.list file).

Update the source list using the following command

sudo aptitude update

Import the package list using the following command

cat installedpackages | xargs sudo aptitude install

 

Arethusa le test

08/05/2021 Categories: Réseau, Sécurité Tags: , , , Aucun commentaire

Un nouveau test VPN publié par le blog du VPN. Ici les VPN sont testés , configurés par créer une base de données la plus fiable possible. Arethusa à ses adeptes, il a déjà été l’ objet d’ une publication par alipaxe. Comme toujours on essayera d’ insister sur les particularités: méthode de configuration – protocole rare – tutos techniques.

Arethusa est proposé par S6N.org: une organisation internationale à but non lucratif fondée en 2003, pour promouvoir liberté d’expression sur Internet. La juridiction dont dépend ce VPN est celle des îles Seychelles: « Applicable jurisdiction for the handling of personal data is the Republic of Seychelles. Only Seychelles authorities can ask us to reveal your personal details. The only details we have about you are the ones you entered yourself. » Le whois de S6N.org confirme l’ enregistrement de nom de domaine de  l’ organisation à Victoria, capitale de cette République. Bien que le site soit en Anglais, le support technique et l’ interface sont en français. Lire la suite…

cssh: un outil pour les paresseux…

08/05/2021 Categories: Système Tags: , Aucun commentaire

Cluster ssh

Cluster ssh

Cluster ssh est un outil merveilleux ! Combien de fois ai-je du retaper les mêmes commandes dans deux fenêtres shell différentes sous prétexte que les serveurs faisaient la même chose… Je pense à mes deux serveurs DNS, par exemple.

Évidemment, il faut faire attention à ce qu’on tape car la moindre erreur est reproduite en double… Mais quel bonheur de faire deux fois le travail et surtout d’avoir des configurations identiques quand on le désire.

Autre avantage: si on ouvre plusieurs sessions ssh dans la même commande shell, cssh redimensionne les fenêtres automatiquement.

Attention: si vous ajouter des fenêtres après coup sur Ubuntu, il les superposera sur les précédentes ce qui n’est pas folichon… Il faut prévoir votre nombre de session au départ. Par contre, sur Mac OS X, l’excellent csshX fait le boulot correctement.

Categories: Système Tags: ,

15 Linux Find Command Examples (Part2)

07/05/2021 Categories: Système Tags: , Aucun commentaire

Find Files Based on Access / Modification / Change Time

You can find files based on following three file time attribute.

Access time of the file. Access time gets updated when the file accessed.
Modification time of the file. Modification time gets updated when the file content modified.
Change time of the file. Change time gets updated when the inode data changes. Lire la suite…

Categories: Système Tags: ,

irssi : Startup HOWTO

07/05/2021 Categories: Logiciel, Réseau, Tutoriel Tags: Aucun commentaire

To new Irssi users (not to new IRC users ..)

Copyright (c) 2000-2002 by Timo Sirainen, release under GNU FDL 1.1 license.

Index with some FAQ questions that are answered in the chapter:

  1. For all the lazy people
    • This window management is just weird, I want it exactly like ircII
  2. Basic user interface usage
    • Split windows work in weird way
    • How can I easily switch between windows?
    • But alt-1 etc. don’t work!
  3. Server and channel automation
    • How do I automatically connect to servers at startup?
    • How do I automatically join to channels at startup?
    • How do I automatically send commands to server at connect?
  4. Setting up windows and automatically restoring them at startup
  5. Status and msgs windows & message levels
    • I want /WHOIS to print reply to current window
    • I want all messages to go to one window, not create new windows
  6. How support for multiple servers works in irssi
    • I connected to some server that doesn’t respond and now irssi keeps trying to reconnect to it again and again, how can I stop it??
    • I want to have own status and/or msgs window for each servers
  7. /LASTLOG and jumping around in scrollback
    • How can I save all texts in a window to file?
  8. Logging
  9. Changing keyboard bindings
    • How do I make F1 key do something?
  10. Proxies and IRC bouncers
    • What’s this irssi-proxy?
  11. Irssi’s settings
  12. Statusbar
    • I loaded a statusbar script but it’s not visible anywhere!

Lire la suite…

Categories: Logiciel, Réseau, Tutoriel Tags: