sudo dpkg-reconfigure lightdm
sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install kubuntu-desktop
| # HTTP — redirect all traffic to HTTPS | |
| server { | |
| listen 80; | |
| listen [::]:80 default_server ipv6only=on; | |
| return 301 https://$host$request_uri; | |
| } | |
| # HTTPS — proxy all requests to the Node app | |
| server { | |
| # Enable HTTP/2 |
| sudo apt-get install curl openssh-server ca-certificates postfix | |
| curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash | |
| sudo apt-get install gitlab-ce | |
| curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce-XXX.deb/download | |
| dpkg -i gitlab-ce-XXX.deb | |
| sudo gitlab-ctl reconfigure |
| cmake_minimum_required(VERSION 3.6) | |
| set(PROJECT_NAME "OpenGL_01") | |
| project(${PROJECT_NAME}) | |
| set(CMAKE_CXX_STANDARD 11) | |
| set(SOURCE_FILES main.cpp) | |
| add_executable(${PROJECT_NAME} ${SOURCE_FILES}) |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
| /****************** SERVER CODE ****************/ | |
| #include <stdio.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> | |
| #include <string.h> | |
| #include <arpa/inet.h> | |
| int main(){ | |
| int welcomeSocket, newSocket; |
| [Desktop Entry] | |
| Comment=Start and Stop XAMPP | |
| Name=XAMPP Control Panel | |
| Exec=gksudo /opt/lampp/manager-linux-x64.run | |
| Icon=/usr/share/icons/Humanity/devices/24/network-wired.svg | |
| Encoding=UTF-8 | |
| Terminal=false | |
| Name=XAMPP Control Panel | |
| Comment=Start and Stop XAMPP | |
| Type=Application |
| sudo apt-get update | |
| sudo apt-get upgrade |
| [Unit] | |
| Description=High-performance, schema-free document-oriented database | |
| After=network.target | |
| Documentation=https://docs.mongodb.org/manual | |
| [Service] | |
| User=mongodb | |
| Group=mongodb | |
| ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf |