software:linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:linux [2014/03/06 14:00] – [You didn't say the magic word!] Michele Porelli | software:linux [2021/12/06 10:54] (current) – [Quick HTTP server] Michele Porelli | ||
---|---|---|---|
Line 11: | Line 11: | ||
# apt-get clean ; apt-get update ; exit</ | # apt-get clean ; apt-get update ; exit</ | ||
* [[http:// | * [[http:// | ||
- | * Manual remove of a package | + | * Manual remove of a package |
- | - First try:< | + | - The cleanest way to remove the package is:< |
- | - If still no joy:< | + | - If the process fails:< |
$ dpkg -L nagios-common | $ dpkg -L nagios-common | ||
Line 27: | Line 27: | ||
to finish up, remove all files you found previously with 'dpkg -L'</ | to finish up, remove all files you found previously with 'dpkg -L'</ | ||
* [[http:// | * [[http:// | ||
+ | * < | ||
+ | * < | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// | ||
==== Packages outside repositories ==== | ==== Packages outside repositories ==== | ||
* [[http:// | * [[http:// | ||
==== How-Tos ==== | ==== How-Tos ==== | ||
- | * [[software: | + | * [[software: |
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Line 42: | Line 45: | ||
nautilus -q | nautilus -q | ||
Alt-F2 -> nautilus</ | Alt-F2 -> nautilus</ | ||
+ | * Fix Debian annoying locales problems: [[http:// | ||
* Configure PulseAudio: (NOTE: Wheezy is pulseaudio ready, this guide is Debian >=6.x only) | * Configure PulseAudio: (NOTE: Wheezy is pulseaudio ready, this guide is Debian >=6.x only) | ||
- INSTALL PULSEAUDIO< | - INSTALL PULSEAUDIO< | ||
Line 67: | Line 71: | ||
search " | search " | ||
* To automatically mount NFS shares at boot time put in / | * To automatically mount NFS shares at boot time put in / | ||
+ | * [[https:// | ||
===== Kernel related ===== | ===== Kernel related ===== | ||
* [[http:// | * [[http:// | ||
- | |||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Line 100: | Line 103: | ||
==== Defend your server against DDoS, Bruteforce, ecc.. ==== | ==== Defend your server against DDoS, Bruteforce, ecc.. ==== | ||
- | * fail2ban | + | * [[software: |
* libapache2-mod-evasive | * libapache2-mod-evasive | ||
* libapache2-mod-security | * libapache2-mod-security | ||
Line 106: | Line 109: | ||
==== Quick DHCP server ==== | ==== Quick DHCP server ==== | ||
< | < | ||
+ | ==== Quick HTTP server ==== | ||
+ | < | ||
+ | python3 -m http.server 8080</ | ||
+ | |||
+ | ==== Quick FTP server ==== | ||
+ | < | ||
===== Useful commands ===== | ===== Useful commands ===== | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
* Scheduled shutdown/ | * Scheduled shutdown/ | ||
# shutdown -h 23:20 # 23:20 = hh.mm, system wait until system clock is 22.30 then shutdown | # shutdown -h 23:20 # 23:20 = hh.mm, system wait until system clock is 22.30 then shutdown | ||
Line 125: | Line 135: | ||
* [[http:// | * [[http:// | ||
* [[https:// | * [[https:// | ||
- | | + | |
+ | ==== Reverse dynamic proxy ==== | ||
+ | | ||
+ | |||
+ | ==== Authenticate with USB/SD device with automatic lock/unlock - libpam-usb ==== | ||
+ | This is based on [[http:// | ||
+ | | ||
+ | - Add support for SD cards readers with [[http:// | ||
+ | - Plug-in your device and create a new token< | ||
+ | - Add pamusb-agent to your startup applications< | ||
+ | Name=pamusb-agent | ||
+ | GenericName=PAM USB Auth | ||
+ | Exec=/ | ||
+ | Terminal=false | ||
+ | Categories=Tools | ||
+ | Type=Application | ||
+ | StartupNotify=false | ||
+ | X-GNOME-Autostart-enabled=true" | ||
+ | - Change automated actions< | ||
+ | |||
+ | Look for the row containing <user id=" | ||
+ | <agent event=" | ||
+ | < | ||
+ | </ | ||
+ | - Logout/ | ||
==== Fixed (and automatically) mountpoint for external drives ==== | ==== Fixed (and automatically) mountpoint for external drives ==== | ||
- Edit your fstab specifying UUID, mountpoint and options (including " | - Edit your fstab specifying UUID, mountpoint and options (including " | ||
Line 139: | Line 174: | ||
- Restart udev | - Restart udev | ||
- Enjoy automatically mount :) | - Enjoy automatically mount :) | ||
+ | ==== Make your Gnome 3 terminal transparent ==== | ||
+ | - Install Devil' | ||
+ | - Create devilspie2 configuration folder< | ||
+ | - Paste this devilspie2 script inside a new file< | ||
+ | if (get_application_name() == " | ||
+ | | ||
+ | | ||
+ | | ||
+ | end</ | ||
+ | - Run devilspie2 at login< | ||
+ | [Desktop Entry] | ||
+ | Type=Application | ||
+ | Exec=/ | ||
+ | Hidden=false | ||
+ | X-GNOME-Autostart-enabled=true | ||
+ | Name[en_US]=devilspie2 | ||
+ | Name=devilspie2 | ||
+ | Comment[en_US]=devilspie2 | ||
+ | Comment=devilspie2</ | ||
==== You didn't say the magic word! ==== | ==== You didn't say the magic word! ==== | ||
If you are a real hacker you can't imagine something better then [[http:// | If you are a real hacker you can't imagine something better then [[http:// | ||
- | | + | |
+ | === Automatic installation (deb package for Debian based distribution fully automatized and Makefile for others without PAM configuration) === | ||
+ | * See instructions on [[https:// | ||
+ | |||
+ | === Manual installation === | ||
- edit / | - edit / | ||
Line 205: | Line 263: | ||
- Now every 3 login failed the video shows up! It works without xorg too! | - Now every 3 login failed the video shows up! It works without xorg too! | ||
+ | ==== Backup a lot of data from a remote (not directly accessible) VM with minimum overhead ==== | ||
+ | - Connect to server< | ||
+ | - Then connect to your VM< | ||
+ | - Start the listener< | ||
+ | - Open a new terminal and start the receiver< | ||
+ | |||
+ | ==== Copy a big amount of data as fast as possible ==== | ||
+ | * < | ||
+ | ==== Add a disk to extend a LVM logical volume ==== | ||
+ | - Mark your disk/ | ||
+ | - Extend the VolumeGroup containing your logical volume< | ||
+ | - Extend the logical volume< | ||
+ | - Extend the filesystem< |
software/linux.1394110805.txt · Last modified: 2014/03/06 14:00 by Michele Porelli