To see got commit log, type
git log
To see logs in one line, run
git log --oneline
To see one line grap, use
git log --oneline --graph
or
git log --oneline --graph --decorate
xrdp allow you to connect to Linux Desktop using Windows Remote Desktop.
First you need to install desktop environment. Installing something light weight like XFCE is better if you are using a remote server.
apt-get install xfce4
This will download approx 500 MB of files and install on Ubuntu 16.04.
Next install xrdp
apt-get install xrdp
You need to open port 3389 in firewall.
Some of the configuration files are
/etc/default/xrdp /etc/xrdp/startwm.sh /etc/xrdp/xrdp.ini
To create a user, run
useradd -m -s /bin/bash USERNAME
-m = create home directory.
-s = specify location of shell.
To create a user with custom home directory, use
useradd -d /var/www -s /bin/bash USERNAME
Create user with sudo privileges
useradd ubuntu --comment Ubuntu --groups adm,cdrom,dip,sudo --shell /bin/bash -m
Create the user “serverok” with uid 4223, run
useradd -u 4223 serverok
-r option select gid/uid for running system service.
groupadd -r prometheus
useradd -r -g prometheus -s /sbin/nologin -d /usr/hostonnet/prometheus/ -c "prometheus Daemons" prometheus
Create, delete, and modify local user accounts
Add: useradd
Delete: userdel
Modify: usermod
Create, delete and modify local groups and group memberships
Add: groupadd
Delete: groupdel
Modify: groupmod
To add a user to sudo/wheel group, see usermod
mod_rpaf is an apache module that translate proxy IP to real IP when apache web server is behind a proxy server.
https://github.com/gnif/mod_rpaf/
To install on Ubuntu, run
apt install -y libapache2-mod-rpaf
Config file available at
root@vps528168:~# cat /etc/apache2/mods-enabled/rpaf.conf RPAFenable On # When enabled, take the incoming X-Host header and # update the virtualhost settings accordingly: RPAFsethostname On # Define which IP's are your frontend proxies that sends # the correct X-Forwarded-For headers: RPAFproxy_ips 127.0.0.1 ::1 193.70.86.5 # Change the header name to parse from the default # X-Forwarded-For to something of your choice: RPAFheader X-Real-IP root@vps528168:~#
To install pure-ftpd on Ubuntu, run
apt install pure-ftpd -y
Create a system user
useradd -d /var/www -s /bin/bash USERNAME chown -R USERNAME:USERNAME /var/www passwd USERNAME
To allow system user to login using FTP, edit file
vi /etc/pure-ftpd/pure-ftpd.conf
Uncomment the line
UnixAuthentication yes
Or
echo 'yes' > /etc/pure-ftpd/conf/UnixAuthentication
On Ubuntu, after default install, you have following settins.
root@server:/etc/pure-ftpd/auth# ll total 8 drwxr-xr-x 2 root root 4096 Jan 28 05:52 ./ drwxr-xr-x 5 root root 4096 Jan 28 06:20 ../ lrwxrwxrwx 1 root root 26 Feb 5 2018 65unix -> ../conf/UnixAuthentication lrwxrwxrwx 1 root root 25 Feb 5 2018 70pam -> ../conf/PAMAuthentication root@server:~# cat /etc/pure-ftpd/auth/65unix no root@server:~# cat /etc/pure-ftpd/auth/70pam yes root@server:~#
PAMAuthentication enabled. UnixAutehticiation disabled. This allow system users to login using PAM.
To install Pureftpd on CentOS, run
yum install pure-ftpd
To start/stop, use
systemctl start pure-ftpd systemctl stop pure-ftpd
To enable system users to login, edit /etc/pure-ftpd/pure-ftpd.conf, un comment the line UnixAuthentication yes.
To force delete a package, run
dpkg --purge --force-depends PKG_NAME
List all Installed packages
dpkg -l
List all files in a package
dpkg -L PKG_NAME
To find which package provides a file
dpkg -S /usr/bin/nmap
pydio
Pydio is open source share sharing application. Source code available in github https://github.com/pydio
You can download latest source code from
https://downloads.asterisk.org/pub/telephony/asterisk/
To install latest 15.x version, run
cd /usr/local/src wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-15-current.tar.gz tar xvf asterisk-15-current.tar.gz cd asterisk-15.2.2 ./configure make && make install
You will need to install dependency.
Ubuntu repository provide Asterisk, to install, just run
apt install asterisk
On Ubuntu 16.04, it come with asterisk 13.1, while newer version is 15.2.
It is better to install from source if you want latest software.
configure: error: *** uuid support not found (this typically means the uuid development package is missing)
yum -y install libuuid-devel
configure: error: *** JSON support not found (this typically means the libjansson development package is missing)
apt-get install libjansson-dev yum install -y jansson-devel
configure: *** Please install the ‘libxml2’ development package.
yum -y install libxml2-devel
/bin/sh: 1: pkg-config: not found
apt -y install pkg-config