Adding background picture with css, Symfony

Store your picture and css to the bundle folders


For access from outside you should use the command

php bin/console assets:install web --symlink


backround-image: url('../images/background.jpg');



{#load the css file#}

<link rel=”stylesheet” href=”{{ asset(‘bundles/my_project/css/style.css’) }}”>

{#using image#}
<img src="{{ asset('bundles/my_project/images/other_image.jpg') }}">

Solution 2 driver for HP Laserjet 1005 printers on Ubuntu 16.04

$ sudo apt-get install build-essential tix foomatic-filters groff dc

$ wget -O foo2zjs.tar.gz
$ tar zxf foo2zjs.tar.gz
$ cd foo2zjs
$ sudo make uninstall
$ make
$ ./getweb 1005
$ sudo make install install-hotplug cups

go to “printers” ,  add a new printer

Source ->


Solution for not working driver for HP Laserjet 1005 printers on Ubuntu 16.04

 sudo apt-get update
 sudo apt-get remove hplip cups-filters cups hplip-data system-config-printer-udev
 sudo apt-get install build-essential tix groff dc axel cups 
 sudo apt-get install cups-filters unp system-config-printer-gnome
 sudo rm -rf /usr/share/hplip
 cd /tmp
 rm foo*
 unp foo2zjs.tar.gz
 cd foo2zjs/
 ./getweb 1005 # Get HP LaserJet 1005 firmware file
 sudo make install
 sudo make install-hotplug
 # Unplug and re-plug the USB printer into the PC
 # add new HP Laserjet 1005 printer via printers

Available drivers:
Minolta/QMS magicolor 2300 DL
Minolta/QMS magicolor 2200 DL
Konica Minolta magicolor 2430 DL
Minolta Color PageWorks/Pro L
HP LaserJet P2035
HP LaserJet Pro P1606dn
HP LaserJet Pro P1566
HP LaserJet Pro P1102
HP LaserJet Pro P1102w
HP LaserJet Pro CP1025nw
HP LaserJet 1022
HP LaserJet 1022n
HP LaserJet 1022nw
HP LaserJet 1020
HP LaserJet 1018
HP LaserJet 1005
HP LaserJet 1000
HP LaserJet M1319 MFP



How to upgrade Filezilla [Ubuntu 16.04]

Few days ago my filezilla just stop working and had to install a new one.
The defaut filezilla may be not working on your current Ubuntu,
for this reason you will need a new version of the FTP client.

1.Add repository:

sudo sh -c 'echo "deb xenial-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'

2. Install the key:

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

3. Launch Software Updater and update.

4. Upgrade in the terminal:

sudo apt update

5. Install in terminal: ( if you have other version, this command will replace the old one )

sudo apt install filezilla

How to install php , mySQL ect tools on Xubuntu linux

1. Install different php versions on my platform and switching them.

$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0

Switch PHP version:

from php5.6 to php7.0:

$ sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart

from php7.0 to php5.6:
sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart

2. Install apache 2.4

$ sudo add-apt-repository ppa:ondrej/apache2
$ sudo apt-get update
$ sudo apt-get install apache2

3. Install MySQL 5.6

$ sudo add-apt-repository -y ppa:ondrej/mysql-5.6
$ sudo apt-get update
$ sudo apt-get install mysql-server-5.6

4.Command to find our available php 7 modules

$ sudo apt-cache search php7-*
$ sudo apt-get install libapache2-mod-php7.1 php7.1-mysql php7.1-curl php7.1-json

X. Checking versions:
$ php -v

$ mysql -V
or with file >>>


$ sudo apt-get remove --purge mysql*
$ sudo apt-get autoremove
$ sudo apt-get autoclean

$ sudo apt-get purge php.*