Complete Linux Desktop setup for Dvelopers (php)


Desktop installation Ubuntu 14.04 and Ubuntu 16.04

List running processes ordered by RAM usage

ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 20 false
#install SSH service for root access
Sudo apt-get install ssh
Sudo apt-get install vim
Sudo vim /etc/ssh/sshd_config
Find PermitRootLogin without-password change to PermitRootLogin yes
Service ssh restart

#Install Flash Player

sudo apt-get install ubuntu-restricted-extras
sudo apt-get install flashplugin-installer //Package install Like
sudo apt-get install flashplugin-installer

#Install Ubuntu and Required Softwares

sudo apt-get install tasksel

in Tasksel select Lampp and openssh-server and sambha file
After install Lampp and Sambha server install phpmyadmin

#Install Spark Clients
Install Spark in Ubuntu
Step 1: Download Spark Zip File


Step 2: Extract spark files

tar -zxvf spark_2_6_3.tar.gz

Step 3:create directory spark in opt path

sudo mkdir /opt/spark

Step 4: cp -rv Spark/* /opt/spark/

Step 5: cd /opt/spark/

Step 6:craete Desktop Icons

sudo vim /usr/share/applications/spark.desktop
[Desktop Entry]
Comment=ignite realtime Spark IM client
Exec=/bin/bash Spark

Step 7: download Spark png files

sudo wget

Step 8: Install Library Files

sudo apt-get install libxtst6:i386 libxi6:i386

For spark file transfer issue please do this:-

Chown -R username:root /opt/spark
Chmod -R 755 /opt/spark

Then restart spark and it will done

#Setting For Apache
Allow Htaacess file in apache

sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
Alow All Html Folder
sed -i 's/denied/granted/' /etc/apache2/apache2.conf
Enable Rewrite Modules
a2enmod rewrite
Restart Apache
service apache2 restart

#Tar Ball Document
1)How to show content in tar ball by using this Command

Tar -tf tar.tar

2) How to Delete Particular File in Tar Ball

tar --delete -f crybit.tar file4.txt

#Install Vlc Media Player

sudo apt-get install vlc

install JDK

apt install default-jre

How to get serial Number from Laptop

wmic bios get serialnumber

Get mac address of a remote computer
netstat -a ip-address(IP Address)
getmac /v /fo list

URL:- how to import large DB

innodb_buffer_pool_size = 512M
innodb_log_buffer_size = 500M
innodb_log_file_size = 512M
innodb_write_io_threads = 8
innodb_flush_log_at_trx_commit = 0

For more info:-
System Performance Increasing steps
sudo vim /etc/sysctl.conf

Scroll to the bottom and just add these lines to it.

net.core.rmem_default = 524288
net.core.rmem_max = 524288
net.core.wmem_default = 524288
net.core.wmem_max = 524288
net.ipv4.tcp_wmem = 4096 87380 524288
net.ipv4.tcp_rmem = 4096 87380 524288
net.ipv4.tcp_mem = 524288 524288 524288
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1

run the sysctl to take effect.

sudo sysctl -p
sudo vim /etc/default/grub &
sudo update-grub
sudo apt-get install preload
sudo add-apt-repository ppa:apt-fast/stable
sudo apt-get update
sudo apt-get install apt-fast
sudo vim /etc/apt/apt.conf.d/00aptitude
Acquire::Languages "none";


#Install Sublime Text Editor

sudo add-apt-repository -y ppa:webupd8team/sublime-text-3

sudo apt-get update && sudo apt-get install -y sublime-text-installer

curl -sS | sudo php -- --install-dir=/usr/local/bin --filename=composer

Install Apache open office

$ wget

$ tar -xzvf Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_en-GB.tar.gz

$ cd en-GB/DEBS

$ sudo dpkg -i *.deb

$ cd desktop-integration

$ sudo dpkg -i *.deb

Install Google-Chrome In Linux

wget -q -O - | sudo apt-key add -

sudo sh -c 'echo "deb stable main" >> /etc/apt/sources.list.d/google-chrome.list'

sudo apt-get update

sudo apt-get install google-chrome-stable
getmac /s system /u username /p password

Install Notepad+ In Ubuntu

sudo add-apt-repository ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqq

Install ionCube in Linux

cd /usr/local/src
tar zxvf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube
mkdir /usr/local/ioncube
cp /usr/local/ioncube
echo “zend_extension = /usr/local/ioncube/”
service apache2 restart

sudo add-apt-repository ppa:klaus-vormweg/bluefish
sudo add-apt-repository ppa:klaus-vormweg/bluefish-gtk2

Install SmartGIT

sudo add-apt-repository ppa:eugenesan/ppa

sudo apt-get update

sudo apt-get install smartgit

Libra office

sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install libreoffice
tar xvf LibreOffice_5.0.0_Linux_x86-64_deb.tar.gz
sudo dpkg -i DEBS/*.deb

Sql Group By Command is not Working
If you want to disable permanently error sql_mode=only_full_group_by do those steps:
sudo nano /etc/mysql/my.cnf
Add this to the end of the file
sudo service mysql restart
This will disable ONLY_FULL_GROUP_BY for ALL users
Install Apache open-Office
tar -xvzf Apache_OpenOffice_incubating_3.4.0_Linux_x86_install-deb_en-US.tar.gz
● The Extracted directory will be named after the Language you selected to download like
● en-US
● Navigate into DEBS folder
● Install the .deb files by typing
● sudo dpkg -i *.deb
By default, this will install Apache OpenOffice in your /opt directory.
For installing the desktop integration features for your setup navigate to desktop-integration in the DEBS installation directory and do
sudo dpkg -i *.deb
NOTE Be careful ppa:upubuntu-com/office refers to older version of open office.


Thank You

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.