This is how!
chown -h myuser:mygroup mysymbolic
This is how!
chown -h myuser:mygroup mysymbolic
Some of my servers have a fancy motd…
I like them… unfortunately my new server didn’t had it.
I had to run
apt-get install landscape-common
dpkg-reconfigure landscape-common
On dkpg-reconfigure I’v selected Run sysinfo on every login.
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-63-generic x86_64) * Documentation: https://help.ubuntu.com/ You have new mail. Last login: Fri Oct 23 10:28:37 2015 from es2-84-XXX-XXX-XXX.netvisao.pt System information as of Fri Oct 23 10:28:59 CEST 2015 System load: 0.06 Processes: 245 Usage of /: 81.9% of 411.33GB Users logged in: 1 Memory usage: 9% IP address for em0: 195.154.XXX.XXX Swap usage: 0% Graph this data and manage this system at: https://landscape.canonical.com/ pjrfigueiredo@sd-48392:~$
To have the number of updates/security updates we need to run the following apt-get command….
sudo apt-get install update-notifier-common
This way we will see also
20 packages can be updated. 8 updates are security updates.
For a long time that I’v wanted to install logstalgia….
Todays is the day!
So, we need to download Xcode 5.1.1 (Mountain Lion) from https://developer.apple.com/downloads/.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget
wget https://github.com/acaudwell/Logstalgia/releases/download/logstalgia-1.0.6/logstalgia-1.0.6.tar.gz tar -zxvf logstalgia*.gz cd logstalgia* brew install pkg-config glew sdl2 SDL2_image sdl SDL_image boost GLM freetype pcre
./configure make make install
This should do the work.
Other way to install is using MacPorts – logstalgia @ macports -.
Via terminal
sudo port -p -u install "nolstalgia"
Using GUI?
You can try jportsui Java based, graphical user interface to MacPorts 2.0+.
If you have an old GCC verion (prior to 4.6) you might get the following errors…
Unfortunately while making “make” I had an error f*ck!
cc1plus: error: unrecognized command line option "-Wno-unused-but-set-variable" cc1plus: error: unrecognized command line option "-std=gnu++0x" make: *** [src/logstalgia-ncsa.o] Error 1
Why?
According to some pages GCC is to old. We need GCC 4.6, mine is 4.2.1.
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
http://logstalgia.io/
http://robido.com/mac/install-logstalgia-on-mac-and-use-with-ssh-tunnels/
https://developer.apple.com/downloads/
This tutorial explains how to jail a user for sftp.
It works! 🙂
A nice tutorial for linux users can be found here http://www.tecmint.com/add-users-in-linux/.
paulao@sd-XXXXX:~$ sudo dd if=/dev/zero of=/root/output conv=fdatasync bs=384k count=1k; rm -f /root/output 16: 1024+0 records in 1024+0 records out 402653184 bytes (403 MB) copied, 1.74116 s, 231 MB/s paulao@sd-XXXXX:~$ dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync; unlink test 16384+0 records in 16384+0 records out 1073741824 bytes (1.1 GB) copied, 5.53976 s, 194 MB/s
Forbidden
You don’t have permission to access /galleries/ on this server.
Ubuntu 15.04
Apache/2.4.10 (Ubuntu)
nano /etc/apache2/conf-enabled/security.conf
On ServerTokens uncomment the line with ServerTokens Prod or add it.
Uncomment the ServerSignature Off entry or add it.
I guess that by default they are disabled, but in any case you can remove it by editing the php.ini and set expose_php to off.
sudo nano /etc/php5/apache2/php.ini
-O – specify the path and the filename
wget <file.ext> -O /path/to/folder/file.ext
-P -specify the path where you want to download to
wget <file.ext> -P /path/to/folder
I had to copy almost 10Gb from one server to another.
Usually I use rsync but this time the user that I have on the remove server is just an FTP user.
My first and dumb option was to use wget to fetch the content! *DUMB!*.
After a few hours/day… I got Write failed: Broken pipe.
OK!, I’v decided to use lftp.
So… I needed to install simply by doing….
apt-get install lftp
Let’s go!
Connect to the server
lftp storage.domain.org
Enter the username
user userexport
then enter the password…
and the the magic command!
mirroc -c -p
-c – resume option
-p – download files in parallel
HOORAY!, thats kinda it.
lftp [email protected]:~> mirror -c -p Total: 2184 directories, 97729 files, 0 symlinks New: 25548 files, 0 symlinks 9900721069 bytes transferred in 2750916 seconds (3.5 KiB/s) lftp [email protected]:/>
Remove an IP address from the banned SSH list
sudo iptables -D fail2ban-ssh -s banned_ip -j DROP
Remove an IP address from the banned FTP list
sudo iptables -D fail2ban-pure-ftpd -s banned_ip -j DROP
Check if IP address is blocked:
iptables -L -n --line | grep [IP_Address]
If IP address appear as DROP or REJECT, it is blocked.
Unblock IP address from incoming connections
iptables -I INPUT -s [IP_Address] -j ACCEPT
Block IP address from incoming connections
# iptables -A INPUT -s [IP_Address] -j DROP