For virtualization we are using Proxmox Virtual Environment. You can VM create VM with any Operating system you may like. Here we are using ubuntu for regular development uses. So we have wrote script to install necessory packages & configure ubuntu to be used remotely.
Use install script to initialise your ubuntu VM. Just copy & paste below line in terminal. Then hit enter & sit relax untill script finished its work.
wget -qO init-vm https://raw.githubusercontent.com/tycheventures/vm-automations/main/init-vm/install.sh && sudo chmod +x init-vm && sudo bash init-vm
You can go with manual approach, if you want to modify packages.
- Step 1: Download install.sh file. You many do changes to install.sh file.
- Step 2: Run shell file using terminal as sudo ./install.sh
sudo apt-get update
sudo apt-get upgrade
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils OR sudo apt install xubuntu-desktop
sudo apt install xrdp
sudo systemctl status xrdp (for testing)
sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp
sudo apt install samba
XRDP – New “AxRDP – New “Authentication Required…” Popup showing up in Ubuntu 19uthentication Required…” Popup showing up in Ubuntu 19.04
Always ask for authentication
* Switch to administrator mode. Sudo -s
* Go to directy cd /etc/polkit-1/localauthority/50-local.d/
* Create file
* cat > 45-allow-colord.pkla
* Edit file
* nano 45-allow-colord.pkla
* Paste below code
```
[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes
[Allow Package Management all Users]
Identity=unix-user:*
Action=org.debian.apt.*;io.snapcraft.*;org.freedesktop.packagekit.*;com.ubuntu.update-notifier.*
ResultAny=no
ResultInactive=no
ResultActive=yes
```
While you are connected remotely ubuntu dock is not showing.
Install following softwares and perform commands:
-
Genome-shell extension
sudo apt install gnome-shell-extensions
After that change settings using:
gnome-extensions enable ubuntu-dock@ubuntu.com gsettings set org.gnome.shell.extensions.dash-to-dock autohide true gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed true gsettings set org.gnome.shell.extensions.dash-to-dock intellihide true gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
-
Dconf-editor
sudo apt-get install dconf-editor
After that change settings using:
dconf write /org/gnome/shell/extensions/dash-to-dock/extend-height true dconf write /org/gnome/shell/extensions/dash-to-dock/custom-theme-shrink true dconf write /org/gnome/shell/extensions/dash-to-dock/force-straight-corner true dconf write /org/gnome/shell/extensions/dash-to-dock/autohide true
-
Dconf-editor
sudo apt-get install dconf-editor
After that change settings using:
dconf write /org/gnome/shell/extensions/dash-to-dock/custom-theme-shrink true dconf write /org/gnome/shell/extensions/dash-to-dock/force-straight-corner true dconf write /org/gnome/shell/extensions/dash-to-dock/autohide true```
-
samba
sudo apt install samba sudo service smbd restart sudo ufw allow samba
-
git, filezilla, kruler
sudo apt-get install git filezilla kruler
-
Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo apt install ./google-chrome-stable_current_amd64.deb
-
Opera
sudo snap install opera
-
Gimp
sudo snap install gimp
-
Slack
sudo snap install slack --classic
-
Skype
wget https://go.skype.com/skypeforlinux-64.deb && sudo apt install ./skypeforlinux-64.deb
-
Adobe reader
sudo apt install gdebi-core libxml2:i386 libcanberra-gtk-module:i386 gtk2-engin> wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i38> sudo gdebi AdbeRdr9.5.5-1_i386linux_enu.deb
-
npm
sudo apt install npm --assume-yes sudo npm install -g npm sudo npm install -g brewer sudo npm install -g grunt-cli
-
sublime text & sublime merge
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https --assume-yes
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text sublime-merge --assume-yes
- Visual studio code
sudo snap install --classic code
You can install packages unging following commands:
code --install-extension ms-vscode.cpptools
code --install-extension bajdzis.vscode-database
code --install-extension bmewburn.vscode-intelephense-client
code --install-extension eamodio.gitlens
code --install-extension ecmel.vscode-html-css
code --install-extension felixfbecker.php-debug
code --install-extension felixfbecker.php-intellisense
code --install-extension ikappas.phpcs
code --install-extension ms-vscode.cpptools
code --install-extension ms-vsliveshare.vsliveshare
code --install-extension mtxr.sqltools
-
note pad++
sudo snap install notepad-plus-plus
-
npm
npm install -g npm
-
composer
sudo apt install php-cli unzip cd ~ curl -sS https://getcomposer.org/installer -o composer-setup.php HASH=`curl -sS https://composer.github.io/installer.sig` php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
-
sublime merge
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - sudo apt-get install apt-transport-https echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list sudo apt-get update sudo apt-get install sublime-merge
-
simplerecorder
sudo apt-get update sudo apt-get install simplescreenrecorder
-
Webinoly
wget -qO weby qrok.es/wy && sudo bash weby 3
-
composer
sudo apt install php-cli php-zip php-curl php-mbstring --assume-yes sudo service nginx restart curl -sS https://getcomposer.org/installer -o composer-setup.php && HASH=`curl -sS https://composer.github.io/installer.sig` && php -r "if (hash_file('SHA384', 'composer- setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer