← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 136
  1. How to change the description of the Stream in Liquidsoap

    output.icecast( %mp3(bitrate=96), mount="/radio-96.mp3", genre="electronic", description="ITUnix Radio Electronic Music", name="ITUnix Radio", url="http://radio.itunix.eu", host="localhost", port=8147, password="PASSWORD", radio) example 2 output.icecast(…

  2. Rsync backup remote server to local

    What can I say, a simple way to backup remote server on the local machine rsync -aHxv root@remote.example.com:/* /local/backup/server/ \ --exclude=/dev \ --exclude=/proc \ --exclude=/sys \ --exclude=/tmp

  3. Setting up Nagios Server to Remotely Server on Debian

    Step 1.

  4. Find and replace text in multiple files using geany

    To open all files, in which a specific string is found, from inside of a directory (and subdirectories) open Geany, select Terminal tab from Message Window and run next command inside: grep -rHIF --exclude='/home/modinfo/bitcoin/*~' -- 'text_to_find' /bin…

  5. FIX: make: Nothing to be done for `first`.

    following error: make: Nothing to be done for `first`.

  6. Liquidsoap: AutoDJ for icecast

    Wonder it’s called “Liquidsoap”.

  7. Own IRC Server on Debian with Anope and MySQL

    ** Pre-Installation ** First, download the UnrealIRCd source, located here wget http://www.unrealircd.com/downloads/Unreal3.2.10.1.tar.gz wget http://www.unrealircd.com/pgp/Unreal3.2.10.1.tar.gz.asc After you install it, run a few checks on the gzip file…

  8. Nginx proxy_pass

    From synchtube.itunix.eu:1337 to synchtube.itunix.eu server { # listen 66.225.195.83; server_name synchtube.itunix.eu; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; location / { proxy_pass http://synchtube.itunix.eu:1337; proxy…

  9. FIX ping: command not found

    root@nsa310:~# ping -bash: ping: command not found here is simple solution # aptitude install inetutils-tools inetutils-ping test it root@nsa310:~# ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.…

  10. SSH Tunel to your Proxy Webbrowser

    $ ssh -4 -N -D 1025 root@server.com 1025 is a proxy port (localhost:1025)

  11. Notification of the new linux kernel on your Android in PHP

    how to use?

  12. Screenshot with date and Countdown

    Install: save code to /usr/bin/screenshot Usage: screenshot 5 five us for 5sec countdown #!

  13. Create md5 from string im Linux

    How to install?

  14. List crontab for all users

    for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done

  15. Own IRC Server on Debian

    aptitude install ircd-irc2 nano /etc/ircd/ircd.conf M:irc.

  16. if echo

    $value = 'aaa'; echo $value=='aaa' ?

  17. Autostart in Linux - made easy

    add or remove programs from startup without effort, thanks rcconf!

  18. iptables simple ban ip rules

    Ban an IP address (IP address cannot be entered on the server) # iptables -A INPUT -s 1.2.3.4 -j DROP Ban an IP address (cannot be accessed from the server on the IP) # iptables -A OUTPUT -s 1.2.3.4 -j DROP Delete Rule by Chain and Number # iptables -L --…

  19. Convert ogg to mp3 and mp3 to ogg

    install sox and mp32ogg from you repository convert ogg to mp3 sox file.ogg file.mp3 convert mp3 to ogg mp32ogg musicsong.mp3

  20. Generate a checksum of the files in a directory

    find .

  21. Change photos to pencil sketch in CLI

    convert input.jpg -colorspace gray \( +clone -blur 0x2 \) +swap -compose divide-composite -linear-stretch 5%x0% output.jpg

  22. Play music on a remote computer via SSH

    On the “music server” sudo apt-get install openssh-server mplayer On the your computer ssh <username>@<serverip> cd /path/to/music/files If you want to play only one song mplayer song.mp3 If you want to play the whole directory mplayer *.mp3 In case of mu…

  23. Quick crontab man

    #minute (0-59), #| hour (0-23), #| | day of the month (1-31), #| | | month of the year (1-12), #| | | | day of the week (0-6 with 0=Sunday). #| | | | | commands */5 2 * * 0,4 sh /home/mod/script.sh >/dev/null 2>&1`

  24. Disable ping reply on GNU/Linux

    Disable ping reply temporarily echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all Enable the ping reply back echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all

  25. Generating passwords in cli

    -c = length of the password < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c10 generating random txt < /dev/urandom tr -dc [:print:] | head -c10000 > lol.txt

  26. Swap file creation

    A simple way to add extra memory to your machine .

  27. Change all string on new im VIM

    :%s/OLDTEXT/NEWTEXT Example :%s/192.168.0.101/192.168.0.110

  28. Create GIF animation in CLI from images

    convert -delay 200 -quality 20 -size 200 -loop 0 <images> <gifImage.gif> Example convert -delay 200 -quality 20 -size 200 -loop 0 /home/images/*.png ~/gifImage.gif

  29. scp - copy files over ssh in linux

    scp filename.zip user@server:path Example cd /home/dates/ scp data.zip root@192.168.0.100:/var/www/

  30. nmap - scan an ip range for a single open port

    nmap -p80 192.168.0.0/24 -oG - | grep 80/open Example [modinfo@arch-pc ~]$ nmap -p80 192.168.0.0/24 -oG - | grep 80/open Host: 192.168.0.1 (router) Ports: 80/open/tcp//http/// Host: 192.168.0.100 (aaa) Ports: 80/open/tcp//http/// Host: 192.168.0.126 (nsa3…

  31. Linux tar Command - Creating tar file via CLI

    Creating a tar archive tar -cvf archiveName.tar directoryToPack/ or tar -cvf archiveName.tar /dir1 /dir2 file1 file2 or tar -cvf archive.tar /dir/music /dir/photos /dir/text.txt Unpacking tar tar -zxvf archiveName.tar You can also unpack single files or d…

  32. PHP Security - disabled the exec, etc.

    In /etc/php5/apache2/php.ini as someone already can upload phpshell it will not do too much… disable_functions = exec, shell_exec, system, popen, passthru, escapeshellarg, escapeshellcmd, proc_close, proc_open, ini_alter, dl, popen, show_source, set_time_…

  33. Own XMPP/Jabber Server on Debian

    Installing ejabberd: aptitude install ejabberd Configuration: nano /etc/ejabberd/ejabberd.cfg Find and change the line: {acl, admin, {user, "YOURNAME", "YOURDOMAIN"}}.

  34. Connection Limit Linux

    iptables -A INPUT -p tcp --syn --dport 80 -m connlimit --connlimit-above 10 -j REJECT --reject-with tcp-reset

  35. Show all php Errors

    Show all php error in php file error_reporting(E_ALL); ini_set('display_errors', '1');

  36. Linux commands to help me work

    Search for files and directories given text grep -i -n -r 'Search string' /var/www/path/ Shows how many times is the search text in the text and returns the result in numbers. cat access.log|grep 'Search string' | wc -l Remove all .gz from /var/log/ find…