Edit the file
and add the line
sendmail_path = "/my_custom_path/exim -t"
without the option -i which will cause problems.
Usually, “/my_custom_path/” = “/usr/sbin/”. Use “whereis” to know where exim is intalled.
After installing exim4, run
sudo dpkg-reconfigure exim4-config
and use these config options:
- General type of mail configuration: mail sent by smarthost; received via SMTP or fetchmail
- System mail name: <your hostname>
- IP-address to listen on for incoming SMTP connections: 127.0.0.1
- Other destinations for which mail is accepted: <your hostname>
- Machines to relay mail for: <leave this blank>
- IP address or host name of the outgoing smarthost: mail.example.com::587
- Hide local mail name in outgoing mail?
- Yes – all outgoing mail will appear to come from your gmail account
- No – mail sent with a valid sender name header will keep the sender’s name
- Keep number of DNS-queries minimal (Dial-on-Demand)? No
- Delivery method for local mail: <choose the one you prefer>
- Split configuration file into small files? Yes (you need to edit one of the files next)
sudo gedit /etc/exim4/passwd.client
and add the following lines for your mail host, and any aliases it has (found through
nslookup). Substitute <email address> and <password> with the account you want to route mail through):
Once you edit the
passwd.client file, run
which will integrate your changes into your Exim4 config.
sudo /etc/init.d/exim4 restart
and make sure that the service stops and starts properly.
So, type that to test,
echo "Testing." | mail -s Test firstname.lastname@example.org
If you have dual boot system with Linux and Windows operating system, you can easily install the MS fonts from Windows C drive. All you have to do is mount the Windows partition (C:/Windows).
I assume you have mounted the C:/Windows partition at /Windowsdrive directory in linux.
Now, link the fonts location to your Linux system’s fonts folder as shown below.
sudo ln -s /Windowsdrive/Windows/Fonts /usr/share/fonts/WindowsFonts
After linking the fonts folder, regenerate the fontconfig cache using command:
Alternatively, copy all Windows fonts to /usr/share/fonts directory and install the fonts using the following commands:
sudo mkdir /usr/share/fonts/WindowsFonts
sudo cp /Windowsdrive/Windows/Fonts/* /usr/share/fonts/WindowsFonts
sudo chmod 755 /usr/share/fonts/WindowsFonts/*
Finally, regenerate the fontconfig cache using command:
Test Windows font
Open LibreOffice or GIMP after installing MS Fonts. Now, you will find the Microsoft coretype fonts.
MS Fonts in LibreOffice
Disclaimer: Microsoft has released its core fonts for free. But Please be mindful that usage of Microsoft fonts outside running Windows system is prohibited by Microsoft’s End User License Agreement. Read the EULA carefully before installing MS Fonts in any Linux operating system.
To enable XDebug, you need to edit the php.ini file in a text editor like gedit.
- Add the following section in “Module Settings” before the [Date] section:
; Remote settings
; Trace options
- Save the php.ini file and quit gedit.
If you get “a start job started by dev-disk-by..” followed by a 90 second delay during each boot, complete the following steps:
- Install Gparted using the Software Center
- Open Gparted and see what partition is the swap partition.
- Reformat the swap partition if necessary.
- Copy UUID of the swap partition.
- Edit the fstab file using the line below.
sudo -H gedit /etc/fstab
- Find the entry of the swap partition.
- Replace the UUID of the swap by the one you previously copied.
- Save the fstab file.
Reset your computer.
The reason why your system reboots normally instead of waking up from hibernate, is most likely that the configuration file “/etc/initramfs-tools/conf.d/resume” is missing the proper path to your swap partition.
To modify (or create) the proper resume entry and updating your system to reflect the changes, do the following.
Go into a terminal and switch on root access, by typing: “sudo -s” and entering your password. Then CD to the directory “/conf.d” mentioned above, and check if the file “resume” is missing. If it’s missing, create and save a new file (plain text) using the command “gedit resume” to edit or create the file.
The file “resume” must contain the text “RESUME=UUID=” + the actual UUID for your swap partition (locate it by viewing information on your swap partition using GParted). For instance my own configuration file lists (an example): “RESUME=UUID=79647610-c76d-4220-8c58-b4b9c71f9ead”. Yours should reflect the UUID that your own swap partition has.
Then save the “resume” file and check if it reflects the proper information, and use this command to update the system so that your changes is reflected: “update-initramfs -u”, alternatively “sudo update-initramfs -u” (the -u stands for update).
After this has been done, your system knowns the proper location to your swap partition and thus the proper location to wake up your system from hibernate properly.