background preloader

Linux

Facebook Twitter

Google Hacking Database, GHDB, Google Dorks. Auto install a Simple Samba Setup | cymplecy (simplesi) Updated 21Aug12 V1.1 Following on from previous blog I’ve tried to emulate MrEngmans brilliant concept of providing a single install script that does as much of the work as possible His idea is to copy a file onto the SD while its plugged into a PC/Mac etc and then put the card into your RPi and issue one simple command So this is the file simply copy it to the SD card while its in your PC/Mac and then put it in your RPi and issue this command Alternatively (thanks to Jason Powell) and then run Note-some parts of the script can take a bit of time as the Pi needs to download stuff – just answer Y if asked questions BTW :) When it sits there with New SMB passord: showing , enter raspberry as the password and then repeat it.

Good luck Like this: Like Loading... I log di sistema - mimante.net. Gosh! Gulp! Log! Uno dei software meno conosciuti e più sottovalutati dai nuovi utenti Linux è certamente syslog , il preziosissimo sistema di log che ogni distribuzione decentemente completa fornisce. Grazie a questo silenzioso aiutante un utente esperto è in grado di diagnosticare problemi di ogni genere del kernel 1 e dei principali daemon 2 e sottosistemi (come mail, news e web server). In questo articolo cominceremo analizzando a grandi linee il sistema di log, concentrandoci prima di tutto sulle parti più visibili al normale utente, in particolare sulla configurazione e personalizzazione; in seguito potremo addentrarci maggiormente sul funzionamento di questo sistema piuttosto complesso, per concludere con accenni alla programmazione. I file di log Mar 26 12:18:04 snoopy fetchmail[12106]: starting fetchmail 4.3.9 daemon Dec 27 12:39:39 snoopy fetchnews[1717]: error writing groupinfo file (disk full?)

/etc/syslog.conf mail.err /var/log/mail.err Cosa è possibile loggare Priorità uucp. *. mail. Seminario CNTC: Sistemi Operativi. UNIX tips: Learn 10 good UNIX usage habits. Break bad UNIX usage patterns Michael StutzPublished on December 12, 2006 When you use a system often, you tend to fall into set usage patterns. Sometimes, you do not start the habit of doing things in the best possible way. Sometimes, you even pick up bad practices that lead to clutter and clumsiness. Adopt 10 good habits Ten good habits to adopt are: Make directory trees in a single swipe Listing 1 illustrates one of the most common bad UNIX habits around: defining directory trees one at a time. Listing 1. It is so much quicker to use the -p option to mkdir and make all parent directories along with their children in a single command. Listing 2. You can use this option to make entire complex directory trees, which are great to use inside scripts; not just simple hierarchies.

Listing 3. In the past, the only excuse to define directories individually was that your mkdir implementation did not support this option, but this is no longer true on most systems. Listing 4. Listing 5. Listing 6. Creating Custom init Scripts. Background Novell/SUSE Linux uses a system of scripts to determine which services to run on system boot. These scripts exist in /etc/init.d/ (or the symbolic link /etc/rc.d/), and are referred to as 'init scripts.' They help dictate which services are active in each runlevel, and also allow the services to be manually controlled. For more information on runlevels, see this article. Each service that ships with Novell/SUSE Linux installs a script in /etc/init.d/.

How init scripts are used init scripts are essentially just shell scripts with options for performing basic actions on a service. /etc/init.d/service parameter For example, to start the Apache2 service, execute: # /etc/init.d/apache2 start Starting httpd2 (prefork) done There are several default parameters which can be used with an init script. Table 1: The Standard init Script Parameters For example, to start service /etc/init.d/foo in runlevel 5 the link may be /etc/init.d/rc5.d/S10foo -> /etc/init.d/foo. Enabling an init script. Linux Command Line. Guida Linux: indice. An A-Z Index of the Bash command line for Linux.