Thursday, April 16, 2015

Maple: Display plots several plots together

with(plots);
p1 := plot(sin(x), x = 0 .. 2*Pi, color = red);
p2 := plot(cos(y), y = -Pi .. Pi, color = blue);
display({p1, p2});

Saturday, April 11, 2015

How to create a bootable USB on Linux

Installation


1. Using UNetbootin

2.

sudo mkdir /media/iso/
sudo mount -o loop /path/to/ubuntu.iso /media/iso

cp -a /media/iso/. /media/xxx/

sudo apt-get install syslinux mtools
sudo syslinux -s /dev/sdd1

Then rename the isolinux directory in media/xxx/ to syslinux, rename the file isolinux.cfg to syslinux.cfg.



In case of the message:

"The installer has tried to mount image #1, but cannot find it on the hard drive.Please copy this image to the drive and click Retry.Click Exit to abort the installation."

press Ctrl-Alt-F2

mount /dev/sdc1 /mnt/foldername

ps -ef | grep sd

copy /mnt/foldername/centos.iso /mnt/isodir/centos.iso

press Ctrl-Alt-F6

How to Encrypt and Decrypt Files With GPG on Linux

https://www.howtogeek.com/427982/how-to-encrypt-and-decrypt-files-with-gpg-on-linux/