For a list of software packages installed on your Linux machine (Ubuntu / Debian):
dpkg-l | awk '/ ^ ii / {print $ 2}' | grep-v-e ^-e-dev-lib and $ (uname-r)> lista.txt
![]() | ||
For a list of software packages installed on your Linux machine (Ubuntu / Debian):
dpkg-l | awk '/ ^ ii / {print $ 2}' | grep-v-e ^-e-dev-lib and $ (uname-r)> lista.txt
Here's an example of how to resume downloading a partially downloaded file via scp or rsync. Since scp does not support the resume, if siè started to download the file with this command, we still have to replace it with an alternative based on rsync:
rsync-partial-progress-rsh = "ssh-p 1022" root @ remotehost :/ ~ / filename filename
In the example above is also shown how to compose the command if you are using a port other than the traditional 22 for the SSH protocol.
With screen you can share among multiple users sonsole connected locally or via ssh. To do so, just follow these steps, the instructions are typical for a debian system, but likewise apply to other distributions.
1. Install screen
sudo apt-get install screen
screen-S screen-test
4. The remote user (guest) uses SSH to connect to remote computer (remotehost)
guest @ ssh remotehost
5. The host (remotehost) consents to the connection in multi-user screen session by typing CTRL-A: multiuser on (all 'command screen' to start with the escape sequence Ctrl-A). CTRL-A: multiuser on
6. Then, the host (remotehost) must grant permission for the remote user (guest) to allow him access to the screen session with commadn CTRL-A: acladd user_name where user_name is the user's remote login.
CTRL-A: acladd guest
7. The remote user can connect to the host session. The syntax to connect to the screen session of another user is host_username screen-x / sessionname.
screen-x username / screen-test
In the shell you can specify the date format as follows:
date + FORMAT
For example, typing:
$ Date + "% m-% d-% y"
You get:
04-17-10
If you want the annoa 4 digits:
$ Date + "% m-% d-% y"
You get:
04-17-2010
In order to obtain the current time by typing:
$ Date + "% T"
You get:
19:55:04
In order to obtain the hour based on 12 hours:
$ Date + "% r"
You get:
07:56:05 PM
To view the time in HH: MM:
$ Date + "% H-% M"
You get:
07:56
Full list of options to format the dates wonder:
Local's full weekday name (eg, Sunday)
dates, exact as% m /% d /% y
hour (00 .. 23)
minute (00 .. 59)
24-hour hour and minute, exact as% H:% M
Week number of year, with Sunday as first day of week (00 .. 53)
last two digits of year (00 .. 99)
To view the active sharing of advice do before this command:
smbclient-L-U <windows-box> <username>
Then we can proceed to map the condivisionewindows in our linux box in segunete way:
If you can not view the content of websites like www.rai.tv on your linux box `and` why these websites have videos and content developed for SilverLight. To solve our problem we encounter is Moonlight.
Moonlight is an open source implementation of Silverlight for Microsof t. Thanks to plug-in so you can `see the much longed-for content in your FireFox and above all you can do in your Linux Box.
Vederee went to try this link: http://www.go-mono.com/moonlight/
If Ubuntu Server after you install and configure webmin + VirtualMin there appears the error:
The procmail command procmail has 0 permissions, When It Should Be setuid and setgid to root. Email may not be properly delivered or checked for spam.
Can be resolved by following these steps:
Here are some links from which to take inspiration for most cases, but in my case these three steps have solved the problem, tested on Ubuntu Server 10.04 and 10.10.
To add syntax coloring to nano in the first instance you must create the configuration file. Nanorc on their home page, as a second finding from this address: http://code.google.com/p/nanosyntax/source/browse/ # svn / trunk / syntax-nanorc files. nanorc be included in the configuration to achieve the desired effect.
Example text to be added to. Nanorc:
include "/ usr / share / nano / php.nanorc"
include "/ usr / share / nano / sh.nanorc"
include "/ usr / share / nano / java.nanorc"
include "/ usr / share / nano / patch.nanorc"
include "/ usr / share / nano / python.nanorc"
include "/ usr / share / nano / html.nanorc"
include "/ usr / share / nano / perl.nanorc"
include "/ usr / share / nano / ruby.nanorc"
include "/ usr / share / nano / js.nanorc"
Ctrl + A Go to the top of the line you are typing.
Ctrl + E Go to the end of the line you are typing.
Ctrl + L Clear the screen.
Ctrl + U Clears the screen before the cursor. If you are at the end of the line, clears the entire line.
Ctrl + R allows you to search through previously used commands.
Ctrl + C Stop whatever you are doing.
Ctrl + D Exit the current shell.
Ctrl + Z starts the suspension in the background whatever you are doing.
Ctrl + W Delete the word before the cursor is.
Ctrl + K Clear the line after the cursor.
Ctrl + T Reverses the last two characters before the cursor.
Esc + T Swap the last two words before the cursor.
Alt + F Move cursor forward one word in the current row.
Alt + B Move cursor back one word in the current row.
Tab Auto-Complete the names of files and folders.
Paste Ctrl + Y (as in copy and paste) all the text before the cursor.
Note: Some of these commands do not work if shell access is via telnet, or SSH session if the keyboard is a particular configuratain
For all those who have a Linux server with Sendmail service is now necessary to grant the possibility of transmission through authentication. Indeed it is quite easy to activate the option, although you should be aware that some distributions like CentOS does not make it available by default, here is how to fix it:
Install the sendmail-cf package cyrus-sasl if not present in the system, for redhat / centos:
[] Yum install sendmail-cf cyrus-sasl
Then edit the sedmail.mc (/ etc / mail / sendmail.mc) and uncomment these lines:
define (`confAUTH_OPTIONS ',` A') dnl
TRUST_AUTH_MECH (`LOGIN PLAIN ') dnl
define (`confAUTH_MECHANISMS ',` LOGIN PLAIN') dnl
For safety check anchequesta setting:
DAEMON_OPTIONS (`Port = smtp, Addr = 0.0.0.0, Name = MTA ') dnl
At this point you need to recompile the sendmail.cf file with m4 program:
[] M4 / etc / mail / sendmail.mc> / etc / mail / sendmail.cf
Check and if necessary, edit the file / usr/lib/sasl2/Sendmail.conf as follows:
pwcheck_method: saslauthd
Now restart your sendmail and saslauthd
[] / Etc / init.d / saslauthd start
[] / Etc / init.d / sendmail restart
Finally we check that our work has been corrected:
[] Telnet localhost 25
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is '^]'.
220 ESMTP Sendmail 8.12.11/8.12.11 xxxxx.xxxxx.xx; Mon, 23 Aug 2004 12:36:30 +0200
As we introduce sendmail responds by typing:
ehlo localhost
which will be answered if all goes well (red line that tells us that sendmail accepts authentication, in addition to plain login may be other methods, it is correct):
250-xxxxx.xxxxx.xx xxxxx.xxxxx.xx Hello [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-AUTH PLAIN LOGIN
250-DELIVERBY
250 HELP
Filter on our cisco router the right doors to protect our servers is certainly an indispensable duty. In the example below reporting filter as the only ssh port:
To get to this nutshell you must pass to wider horizons, to this link you can find the know-how which I fed to filter the cisco router at least part of what you should.
ModSecurity is an Apache module that allows your truly effective ways to increase the defenses from malicious attackers.
This real firewall for apache is recoverable:
http://www.modsecurity.org/download/index.html
The module is very rich and willing to be honest alquantocomplicato to implement, but for this to lift a massive barrier against the aggressors of our websites, please refer to the documentation for the correct setting.
Updated filters can be found at: http://downloads.prometheus-group.com/delayed/rules/