IPtables dans Webmin

10/02/2024 Categories: Logiciel, Réseau, Sécurité, Système Tags: , , , Comments off

Lorsque vous utilisez Webmin pour administrer votre serveur, les paramètres de votre firewall iptables sont visibles et manageables depuis la console Webmin.

Toutefois, les règles iptables présentées par Webmin sont celles qui ont été préalablement sauvées par /sbin/iptables-save dans le fichier que vous avez choisi.

Donc si vous utilisez un script depuis le shell pour changer les règles de iptables, ce ne seront pas ces règles que Webmin vous présentera mais celles que vous avez sauvées préalablement avec Webmin.When using Webmin as an administration tool, iptables rules visible for Webmin are those previously saved through Webmin.

So when you use a shell script to change iptables rules on the fly, these rules won’t be the ones Webmin present to you.

The solution is to use:

iptables-save > the_file_used_by_webmin_last_time_you_backed_up_rules

to retrieve the exact actual state of iptables rules.

MailRecent (Mail Plugin for Mac OS X)

09/02/2024 Categories: Logiciel Tags: , , Comments off

Source: Gregory F. Welch

Adds « Copy to Recent, » « Move to Recent, » and « Go to Recent » menu items to Apple’s Mail application. These menu items contain dynamically-updated lists of recently used mailboxes. The number of mailboxes kept in the list is determined by the « Number of Recent Items » setting for Documents in the Appearance panel of the OS X System Preferences.

screenshot

 

Usage

Once installed (see instructions below) as you drag or option-drag a message to a mailbox, that mailbox should then appear under

  • « Copy to Recent » and « Move to Recent » submenus under the « Messages » menu, and
  • a « Go to Recent » submenu under the « Mailboxes » menu.

Similarly if you use Mail’s built-in « Move To » or « Copy To » menus to move a message to a mailbox, that mailbox should then appear in the lists. The recent mailboxes will be sorted alphabetically, the same as OS X does for recent documents. (You can change the sorting behavior using the Terminal application as described below.)

Lire la suite…

Categories: Logiciel Tags: , ,

Un serveur web intégré à OSX

09/02/2024 Categories: Logiciel Tags: , , , Comments off

Si vous êtes sous Mac OSX et que vous avez besoin d’un petit serveur HTTP sur le pouce afin de mettre à dispo quelques pages web statiques (pas de PHP, uniquement du HTML), il n’est pas nécessaire d’installer un Nginx ou un Apache.
Il suffit d’ouvrir un terminal et d’entrer la commande suivante :

python -m SimpleHTTPServer 8000

Ensuite, avec votre navigateur sur la machine distante, rendez-vous sur http://IP_DE_LA_MACHINE:8000 (ou localhost:8000 si vous êtes en local) et naviguez dans les répertoires jusqu’à atteindre le fichier HTML que vous souhaitez afficher. A noter que vous pouvez changer le port dans la commande.

Rien de sécurisé là-dedans, donc faites attention, mais l’astuce est toujours bonne à connaitre.

Source

Categories: Logiciel Tags: , , ,

Mac OS X Lion power user keyboard shortcuts

08/02/2024 Categories: Logiciel Tags: , Comments off

key commands-1 (finder command)

mac_os_x_lioncmd + space ===== highlight menu
cmd + opt + space ===== highlight window
cmd + delete ===== move/go to trash
shfit + cmd + delete ===== empty/clean trash
shfit + opt + cmd + delete =====force/immediate empty trash
cmd + n ===== new finder window
shift + cmd + n ===== new folder
cmd + tab ===== get/view info
opt + cmd + tab ===== show/display inspector
cmd + y/space bar ===== quick look
cmd + e ===== eject volume
cmd + j ===== view options show/display
cmd + k ===== server connect
shift + cmd + a ===== applications folderopen
shift + cmd + c ===== computer folder open
cmd + up arrow ===== enclosing folder open
cmd + f ===== find/search

key commands-2 (text editing)

cmd + left arrow ===== go/move to start/end line
cmd + up arrow ===== go/move to start/end document
opt + left arrow ===== go/move to previous/next word
opt + up arrow ===== go/move to previous/next paragraph
cmd + x ===== cut
cmd + c ===== copy
cmd + v ===== paste
cmd + a ===== select all
cmd + l ===== with selection web search
cmd + y ===== with selection sticky note

key commands-3 (power shortcuts)

opt + cmd + eject ===== sleep
ctrl + cmd + eject ===== restart
ctrl + opt + cmd + eject ===== shut down
shift + ctrl + eject ===== sleep appear/display
ctrl + eject ===== power options dialog

key commands-4 (screen capture)

shift + cmd + 3 ===== screen/appear to file
shift + ctrl + cmd + 3 ===== screen/appear to clipboard
shift + cmd + 4 ===== area to file space to get window
shift + ctrl + cmd + 4 ===== area to clipboard space to get window

key commands-5 (mission control)

ctrl + up arrow ===== mission control view/display

ctrl + down arrow ===== appʼs windows show/display
f11 ===== desktop show/display
f12 ===== dashboard show/display
ctrl + left/right arrow ===== between spaces move
tab ===== windows show/display for next app   then press ctrl + down arrow
spacebar ===== window enlarge under cursor   then press ctrl + up arrow

key commands-6 (keyboard control focus)

ctrl + f2 ===== menu bar focus
ctrl + f3 ===== dock focus
ctrl + f5 ===== window toolbar focus
ctrl + f8 ===== menu bar status icons focus
left, right, up & down arrow ===== navigate 21a9 (return)
esc ===== exit

key commands-7 (switching applications & windows)

cmd + tab ===== advance/go next app
cmd + ` ===== current app’s next window
opt + cmd + d ===== dock hide/show

key commands-8 (universal access display controls)

opt + cmd + 8 ===== zoom feature toggle
opt + cmd + =  ===== zoom in
opt + cmd + – (minus) ===== zoom out
ctrl + opt + cmd + 8 ===== screen reverse

key commands-9 (application commands)

cmd + n ===== new window
cmd + , ===== app preferences
cmd + o ===== open
cmd + h ===== app hide
cmd + w ===== close
opt + cmd + h ===== others hide
cmd + s ===== save
cmd + t ===== fonts panel show/display
shift + cmd + s ===== save as
shift + cmd + c ===== colors panel show/display
cmd + p ===== print
shift + cmd + / ===== help
cmd + q ===== quit/exit
ctrl + cmd + f ===== full screen mode

key commands-10 (startup keys)

opt ===== boot volume choose
opt + cmd + p + r ===== reset pram
cmd + s ===== boot single user mode
cmd + r ===== internet & disk utility recovery
cmd + t ===== go into target disk mode

Categories: Logiciel Tags: ,

Monitoring Ubuntu Desktops and Servers Using Monit

monit is a utility for managing and monitoring, processes, files, directories and devices on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.

Monit Features

  • Daemon mode – poll programs at a specified interval
  • Monitoring modes – active, passive or manual
  • Start, stop and restart of programs
  • Group and manage groups of programs
  • Process dependency definition
  • Logging to syslog or own logfile
  • Configuration – comprehensive controlfile
  • Runtime and TCP/IP port checking (tcp and udp)
  • SSL support for port checking
  • Unix domain socket checking
  • Process status and process timeout
  • Process cpu usage
  • Process memory usage
  • Process zombie check
  • Check the systems load average
  • Check a file or directory timestamp
  • Alert, stop or restart a process based on its characteristics
  • MD5 checksum for programs started and stopped by monit
  • Alert notification for program timeout, restart, checksum, stop resource and timestamp error
  • Flexible and customizable email alert messages
  • Protocol verification. HTTP, FTP, SMTP, POP, IMAP, NNTP, SSH, DWP,LDAPv2 and LDAPv3
  • An http interface with optional SSL support to make monit accessible from a webbrowser

Lire la suite…