Ubuntu black screen after driver installation on Nvidia 630M
Let's try to cure the black screen when booting Ubuntu after installing proprietary nvidia-340 driver on Nvidia 630M laptop.
Ubuntu does not come with packages for sending emails. Consider a method that saves messages to a folder in separate files.
1. You need to create a shell script in /usr/bin/f_mail.sh :
sudo nano /usr/bin/f_mail.sh
In which we will add the code:
#!/bin/sh
prefix=" /var/www/sendmail/new "
numPath=" /var/www/sendmail "
if [ ! -f $numPath/num ]; then
echo "0" > $numPath/num
fi
num=`cat $numPath/num`
num=$(($num + 1))
echo $num > $numPath/num
name="$prefix/letter_$num.html"
while read line
do
echo $line >> $name
done
chmod 777 $name
/bin/true
/var/www/sendmail/new - the path where files with emails will be saved.
/var/www/sendmail - shared folder for the script.
2. Grant rights to the script (perhaps not for everyone this is required):
sudo chown root:root /usr/bin/f_mail.sh
sudo chmod 755 /usr/bin/f_mail.sh
3. Let's create the folder structure required for work:
sudo mkdir /var/www/sendmail/new && cd /var/www/sendmail/new && sudo mkdir cur && sudo mkdir new && sudo mkdir tmp && sudo chmod -R 777 /var/www/sendmail/new
4. Recipe in php.ini :
v5.6 :
/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini
/etc/php5/cgi/php.ini
v7.2 :
/etc/php/7.2/apache2/php.ini
/etc/php/7.2/cli/php.ini
/etc/php/7.2/cgi/php.ini
In the required version, in the php.ini files, add the code to the end or find the line ;sendmail_path and replace it with:
sendmail_path = /usr/bin/f_mail.sh
Let's try to cure the black screen when booting Ubuntu after installing proprietary nvidia-340 driver on Nvidia 630M laptop.
When USB 2.0-3.0 stopped working after updating Ubuntu on a laptop.
Ability to run Skype in multiple windows. Installed on Ubuntu skypeforlinux run in 2 windows.
Let's consider one of the ways to dos-attack on bluetooth through the basic l2ping tools in linux. Let's analyze a simple python script.
Let's analyze one of the reasons for the initramfs error when starting Linux Ubuntu 18.04. Let's try a system restore. fsck exited with status code 4.
Unsatisfied links when installing npm, after installing node.js. Consider an alternative installation option.
Let's consider one of the possibilities to set the monitor resolution via xrandr. Analysis of a connected second monitor via VGA. Unknown display in Ubuntu 18.04.
Adjusting mouse wheel scroll spacing using the imwheel app in Ubuntu
alex