Home / Linux

Linux

How to fix qualified domain name

When you restart your apache server using the command

sudo /etc/init.d/apache2 restart

Someone get the following error:

Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2:
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Let’s go fix this issue !

This is just a friendly warning and not really a problem (as in that something does not work).

If you insert a

ServerName localhost 

in either httpd.conf or

apache2.conf in /etc/apache2 

and restart apache the notice will disappear.

If you have a name inside

/etc/hostname

you can also use that name instead of

localhost

And it uses

127.0.1.1

if it is inside your

/etc/hosts
127.0.0.1 localhost
127.0.1.1 myhostname

Use a text editor such as “sudo nano” via command line or “gksudo gedit” on the desktop to create a new file,

sudo nano /etc/apache2/conf.d/fqdn 

or

gksu "gedit /etc/apache2/conf.d/fqdn" 

then add
ServerName localhost
to the file and save. This can all be done in a single command with the following:

echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/fqdn.conf 
sudo a2enconf fqdn 

How to fix network service discovery disabled

It looks like avahi-daemon is started when the network connection is established (

/etc/network/if-up.d/avahi-daemon

). This notification is informing you that mDNS (Avahi) has been disabled. It’s only used for a small number of applications that only work on the local network, it won’t adversely affect your internet connection or DNS.

The most well known use for mDNS is sharing music with Rhythmbox (or iTunes) over your LAN. It’s an Apple technology, but it’s largely been ignored in favour of uPNP or DLNA.

To disable it, you must edit the file /etc/default/avahi-daemon as root:

sudo -i
gedit /etc/default/avahi-daemon

and add this line (or change it if already exists to):

AVAHI_DAEMON_DETECT_LOCAL=0

Better one:

In /etc/avahi/avahi-daemon.conf uncomment and change the line with domain name to

domain-name=.alocal

sudo gedit /etc/NetworkManager/NetworkManager.conf
sudo service network-manager restart

How to fix GPG or KEYEXPIRED error in ubuntu

If you have been using ibus-avro for a while, you may have encourtered this error when running apt-get update.

W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1366357218

Lets see how to fix that.

  1. Open Ubuntu Software Center.
  2. From Top bar goto Edit > Software Sources
  3. Goto Authentication Tab and select the sarimkhan OBS Project key.
  4. Press Remove and confirm by entering your password.
  5. Now open up terminal and add the correcponding key for your OS, for example ubuntu 13.04
  6.  wget -q http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_13.04/Release.key -O- | sudo apt-key add -
    
    
  7. Now you can update your software sources without any problem.
  8.  sudo apt-get update
    
  9. Have Fun and keep rocking.

If the command are not doing it for you, you have to do it on your own. After a long research on this problem i finally decided that the best thing to do was manually download the key and add it.This is how i did it. Go to Ubuntu Key-server(Click here). Here you can search your key. In my case it was 6AF0E1940624A220. Note while searching for key pre-append the key with 0x. So search for 0x6AF0E1940624A220

Click on the link provided in the pub section. Copy the whole text(highlighted in below screen shot) from the page and save it in a file(say filename is key1)

Once you have copied the data to file. Save it. Then run the following command

 sudo apt-key add key1

You will get an “OK” response.

And you are done. Repeat the procedure of other keys that might be missing. Then you can run sudo

apt-get update

and you will not get any error. Update happens smoothly. Do let me know if you still have any doubts.

How to install Laravel 5 with Virtual Host configurations

I am sharing steps below with terminal command run screenshots that how to install laravel5 with Virtual Hosts configurations. we need to install composer to download laravel from remote server. for this first command will be for download composer using curl then second one move composer to local user directory for make composer globally use .

# installing composer
curl -sS https://getcomposer.org/installer | php
# move composer globally
sudo mv composer.phar /usr/local/bin/composer
# check composer working
composer

Composer

Now we’ve composer installed successfully!!. and then there are two method to install laravel
1. Via Laravel Installer
2. Via composer

1. Via Laravel Installer :

laravel installer is a new method to install added for laravel 5. itโ€™s much faster method than installing via Composer.

# Download installer

Rasel Khan:~$ composer global require "laravel/installer=~1.1"
Changed current directory to /home/khan/.composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

#Setting up path

Rasel Khan:~$ export PATH="~/.composer/vendor/bin:$PATH"

# If you’ve successfully configure then command type ‘laravel’ , you’ll see your laravel installer version 1.2.1

Rasel Khan:~$ laravel
Laravel Installer version 1.2.1

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help  Displays help for a command
  list  Lists commands
  new   Create a new Laravel application.

#Change dir where to install

Rasel Khan:~$ cd /var/www/project/

# Download and installing

Rasel Khan:~$ laravel new laravel5

# giving permission

Rasel Khan:~$ sudo chmod -R 777 laravel5

2. Via Composer :-

After install composer you can directly install laravel by create-project command and give your destination path where you want to install laravel.

# checking composer is successfully installed

Rasel Khan:~$ composer

# Create a ditectory where to install

Rasel Khan:~$ sudo mkdir /var/www/project/laravel5
[sudo] password for khan: 

# downloading and install via composer

Rasel Khan:~$ sudo composer create-project laravel/laravel /var/www/project/laravel5

# setting up writable permission

Rasel Khan:~$ sudo chmod -R 777 /var/www/project/laravel5

Another way you can do manually download and install

Now, let’s go configure with Virtual Hosts, create a config file into /etc/apache2/sites-available/ directory, i’ve create this file name called laravel5.com.conf, another way you’ll use Vagrant environments

Rasel Khan:~$ sudo mkdir /etc/apache2/sites-available/laravel5.com.conf

# now open laravel5.com.conf file using any editor, I’m using nano editor .

Rasel Khan:~$ sudo nano /etc/apache2/sites-available/laravel5.com.conf

# past below this code into laravel5.com.conf file and save .


<VirtualHost *:80>
    ServerName laravel5.dev
    DocumentRoot "/var/www/project/laravel5/public/"
    DirectoryIndex index.php
    <Directory /var/www/project/laravel5/public/>
        AllowOverride All
    </Directory>
</VirtualHost>

# Enable this file

Rasel Khan:~$ sudo a2ensite laravel5.com.conf

# Reload apache server

Rasel Khan:~$ sudo service apache2 reload

# go to hosts file

Rasel Khan:~$ sudo nano /etc/hosts

# create a new one 127.0.0.1 laravel5.dev

127.0.0.1       localhost
127.0.1.1       raselkhan
127.0.0.1       symfony.dev
127.0.0.1       laravel5.dev

# If you’ve all configuration is ok then need to restart your server

Rasel Khan:~$  sudo service apache2 restart

# now go any browser addressbar url and type

http://laravel5.dev/

you’ll see laravel5 successfully install and configuration with virtual hosts.

laravel5

Enjoy ๐Ÿ™‚

Fix phpmyadmin on Ubuntu

Your LAMP server not work with phpmyadmin? let’s go fix this problem, before you’ve LAMP server install, if still not install LAMP you can simply install via command

$ sudo apt-get install lamp-server^

What do you mean LAMP ?

LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual private server is already running Debian, the linux part is taken care of. Here is how to install the rest.

when you type address in browser

http://localhost/phpmyadmin/

it show โ€œPage not foundโ€

Now see your “apache2.conf” file

Rasel Khan:~$ cat /etc/apache2/apache2.conf
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#	/etc/apache2/
#	|-- apache2.conf
#	|	`--  ports.conf
#	|-- mods-enabled
#	|	|-- *.load
#	|	`-- *.conf
#	|-- conf-enabled
#	|	`-- *.conf
# 	`-- sites-enabled
#	 	`-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.
#
# * ports.conf is always included from the main configuration file. It is
#   supposed to determine listening ports for incoming connections which can be
#   customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
#   directories contain particular configuration snippets which manage modules,
#   global configuration fragments, or virtual host configurations,
#   respectively.
#
#   They are activated by symlinking available configuration files from their
#   respective *-available/ counterparts. These should be managed by using our
#   helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
#   their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
#   the default configuration, apache2 needs to be started/stopped with
#   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
#   work with the default configuration.


# Global configuration
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5


# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
	Options FollowSymLinks
	AllowOverride None
	Require all denied
</Directory>

<Directory /usr/share>
	AllowOverride None
	Require all granted
</Directory>

<Directory /var/www/>
	Options Indexes FollowSymLinks
	AllowOverride None
	Require all granted
</Directory>

#<Directory /srv/>
#	Options Indexes FollowSymLinks
#	AllowOverride None
#	Require all granted
#</Directory>




# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^.ht">
	Require all denied
</FilesMatch>


#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" vhost_combined
LogFormat "%h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

Include /etc/phpmyadmin/apache.conf

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

I’ve include this one line, see below at last on the top

Include /etc/phpmyadmin/apache.conf

If you’ve not include this line edit your “apache2.conf” file, I’m using nano editor for file include

Rasel Khan:~$ sudo nano /etc/apache2/apache2.conf

After include this line, you should restart your server

Rasel Khan:~$ sudo service apache2 restart

Now try

http://localhost/phpmyadmin/

it’ll works fine !! ๐Ÿ™‚

Fix Skype install problem on Ubuntu

Sometimes your Skype installation problem on Ubuntu, let’s go fix it

Step 1: Remove previous version.

sudo apt-get remove skype skype-bin:i386 skype:i386
sudo apt-get install sni-qt:i386

It is Important if you installed older version of Skype on your Ubuntu, Clear the old Skype folder before installing latest version. Then clear that by using:

rm -rf ~/.Skype

Step 2: Preparing to Installing Skype.

Users of 64-bit Ubuntu, should enable MultiArch if it isn’t already enabled by running the command

    sudo dpkg --add-architecture i386

Update repositories and “updates” list:

    sudo apt-get update

Optional, install GDebi (see below):

    sudo apt-get install gdebi #(read Why you need to install gdebi...)

Step 3: Installing Skype

Method 1: Download and install from file

wget download.skype.com/linux/skype-ubuntu-precise_4.3.0.37-1_i386.deb
sudo gdebi skype-ubuntu-precise_4.3.0.37-1_i386.deb

Method 2: Install Skype from Canonical Partner Repository

So add the Canonical Partner Repository to “updates” list by following the command:

sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

Then install Skype via the Software-Center or via the Terminal.

sudo apt-get update && sudo apt-get install skype

Broadband connection set up in Ubuntu

If you’have installed Ubuntu 14.04 LTS alongside Windows Xp or Windows 7. Your broadband connection working ok in Windows Xp or 7, but sometimes it is not working in Ubuntu. Let’s go how can you solve this problem, Open your terminal and type ifconfig you’ll see all configuration in your network.

Rasel Khan:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr e0:69:95:12:b0:4c  
          inet addr:10.0.1.86  Bcast:10.0.1.86  Mask:255.255.255.255
          inet6 addr: fec0::b:751e:ae5e:9810:845d/64 Scope:Site
          inet6 addr: fe80::e269:95ff:fe12:b04c/64 Scope:Link
          inet6 addr: 2002:2d74:f8a1:b:e269:95ff:fe12:b04c/64 Scope:Global
          inet6 addr: 2002:2d74:f8a1:b:751e:ae5e:9810:845d/64 Scope:Global
          inet6 addr: fec0::b:e269:95ff:fe12:b04c/64 Scope:Site
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36202 errors:0 dropped:1 overruns:0 frame:0
          TX packets:14115 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10454044 (10.4 MB)  TX bytes:2518480 (2.5 MB)
          Interrupt:20 Memory:fe400000-fe420000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2182 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2182 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:115203 (115.2 KB)  TX bytes:115203 (115.2 KB)

Step-1: Open network connections by searching for it in the dash.

Now Click on the Add button.

Step-2: Choose the network type as DSL and then click create.

Step-3: Now type the username and password and save.

You can also choose to connect automatically in the general tab.

If still not working ๐Ÿ™ , let’s go another way …

Step-1: Open your terminal simply type command sudo pppoeconf you’ll build step by step your network configuration !

Rasel Khan:~ sudo pppoeconf
[sudo] password for khan: 

Step-2: After type your valid password for sudo user then you’ll show for “dsl-provider” configuration..then type “” !

 If you continue with this program, the configuration file          โ”‚     
     โ”‚ /etc/ppp/peers/dsl-provider will be modified. Please make sure     โ”‚     
     โ”‚ that you have a backup copy before saying Yes.                     โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚ Continue with configuration?                                       โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                  <Yes>                     <No>        

Step-3: Change your network configuration settings via enter ““for configuration..

 Most people using popular dialup providers prefer the options      โ”‚     
     โ”‚ 'noauth' and 'defaultroute' in their configuration and remove the  โ”‚     
     โ”‚ 'nodetach' option. Should I check your configuration file and      โ”‚     
     โ”‚ change these settings where neccessary?                            โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                  <Yes>                     <No>     

Step-4: Enter your valid internet(Broadband) connection username (i.e my username “khancse” ) , then “” for continue.. ..

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค ENTER USERNAME โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          
          โ”‚ Please enter the username which you usually need for the โ”‚          
          โ”‚ PPP login to your provider in the input box below. If    โ”‚          
          โ”‚ you wish to see the help screen, delete the username and โ”‚          
          โ”‚ press OK.                                                โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚ username___khancse_____________________________________________ โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                          <Ok> 

Step-5: Enter your valid internet(Broadband) connection password, then Ok for continue.. .. .

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค ENTER PASSWORD โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          
          โ”‚ Please enter the password which you usually need for the โ”‚          
          โ”‚ PPP login to your provider in the input box below.       โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚ NOTE: you can see the password in plain text while       โ”‚          
          โ”‚ typing.                                                  โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚ password________________________________________________ โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                          <Ok>     

Step-6: If you’ve entered valid information for username and password, then you’ll got
useable servers when the connection is established . Enter “” for configuration..

 USE PEER DNS โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          
          โ”‚                                                          โ”‚          
          โ”‚ You need at least one DNS IP address to resolve the      โ”‚          
          โ”‚ normal host names. Normally your provider sends you      โ”‚          
          โ”‚ addresses of useable servers when the connection is      โ”‚          
          โ”‚ established. Would you like to add these addresses       โ”‚          
          โ”‚ automatically to the list of nameservers in your local   โ”‚          
          โ”‚ /etc/resolv.conf file? (recommended)                     โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚               <Yes>                  <No>  

Step-7: Now need to byte allocation for pppoe clamp MSS, then “” for continue, (If you still get problems described above, try setting to number of byte in the dsl-provider file.)

LIMITED MSS PROBLEM โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     
     โ”‚                                                                    โ”‚     
     โ”‚ Many providers have routers that do not support TCP packets with a โ”‚     
     โ”‚ MSS higher than 1460. Usually, outgoing packets have this MSS when โ”‚     
     โ”‚ they go through one real Ethernet link with the default MTU size   โ”‚     
     โ”‚ (1500). Unfortunately, if you are forwarding packets from other    โ”‚     
     โ”‚ hosts (i.e. doing masquerading) the MSS may be increased depending โ”‚     
     โ”‚ on the packet size and the route to the client hosts, so your      โ”‚     
     โ”‚ client machines won't be able to connect to some sites. There is a โ”‚     
     โ”‚ solution: the maximum MSS can be limited by pppoe. You can find    โ”‚     
     โ”‚ more details about this issue in the pppoe documentation.          โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚ Should pppoe clamp MSS at 1452 bytes?                              โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚ If unsure, say yes.                                                โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚ (If you still get problems described above, try setting to 1412 in โ”‚     
     โ”‚ the dsl-provider file.)                                            โ”‚     
     โ”‚                                                                    โ”‚     
     โ”‚                  <Yes>                     <No>    

Step-8: Your PPPD is configured now, then “” for continue..

โ”ค DONE โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          
          โ”‚                                                          โ”‚          
          โ”‚ Your PPPD is configured now. Would you like to start the โ”‚          
          โ”‚ connection at boot time?                                 โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚               <Yes>                  <No>                โ”‚          
          โ”‚                                              

Step-9: In this step ESTABLISH A CONNECTION with “dsl-provider”, then “” for continue…After complete all the steps you’ll got your connection !!

 ESTABLISH A CONNECTION โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          
          โ”‚                                                          โ”‚          
          โ”‚ Now, you can make a DSL connection with "pon             โ”‚          
          โ”‚ dsl-provider" and terminate it with "poff". Would you    โ”‚          
          โ”‚ like to start the connection now?                        โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚                                                          โ”‚          
          โ”‚               <Yes>                  <No>   

Check your “dsl-provider” file, you’ll show all configuration with your username, i’m using nano editor .

Rasel Khan:~ sudo nano /etc/ppp/peers/dsl-provider
[sudo] password for khan: 

# Minimalistic default options file for DSL/PPPoE connections

noipdefault
defaultroute
replacedefaultroute
hide-password
#lcp-echo-interval 30
#lcp-echo-failure 4
noauth
persist
#mtu 1492
#persist
#maxfail 0
#holdoff 20
plugin rp-pppoe.so eth0
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@user "khancse"
usepeerdns
user "khancse"

The network applet shows device not managed, but my internet connection works fine.
Enjoy ๐Ÿ™‚

Install photoshop cs6 on ubuntu 14.04

Step 1. Install the Wine Team Ubuntu PPA

First start by installing Wine btw it’s a utility to install windows apps in linux :

open the Terminal and :

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install wine1.7 winetricks

Step 2. Using winetricks to get install dependencies for Photoshop CS6

Now that we have the most recent build of wine, we can get started on fetching the necessary build packages to run the Photoshop installer.

Hereโ€™s the command to issue and pull those dependencies

winetricks atmlib gdiplus msxml3 msxml6 vcrun2005 vcrun2005sp1 vcrun2008 ie6 fontsmooth-rgb gecko

If a few errors pop-up, donโ€™t worry โ€“ chances are this install will still work.

Step 3. Running the Photoshop CS6 installer

Now that you have all dependencies required to run Photoshop CS6, you can now run the Adobe setup. Either right click Setup.exe, or from the terminal:

   cd /home/user/path/to/installer    
   wine Set-up.exe

If everything worked as intended, you are now done. Photoshop should install like any other program via wine โ€“ It should even automatically appear in your programs list!

How to remove PATH variable on Ubuntu

the PATH stores all the places where the terminal looks for your applications/scripts etc… If you set the PATH to some “unfriendly” directory, the system will not be able to find /bin/sudo and others. You will have to type the whole path like /bin/sudo. The best way to fix this is to open your bash_profile and insert this line:

 
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games 

I think changing the profile will work just after the next reboot, so do this and after that use the command

 export 
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games 

to fix it for the current session.

You’ll still be left without a PATH that includes the necessary system directories. When you set your own PATH, in most cases you will want to append your new entry to the old PATH variable, not replace it entirely, as you have done.

Set your PATH variable back to the system default by typing

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

and then go edit your .bashrc and .bash_profile to have the correct entry, which will be something like

export PATH="$PATH:~/.composer/vendor/bin"

Notice the variable is set to begin with the existing $PATH. This way, you’ll still have all the original system directories in your PATH, and your addition will be on the end. Also note that I removed lumen from the end of your example, because lumen is apparently the name of the binary you are trying to execute, and your PATH should include only directories containing binaries, not the binaries themselves.