Sometimes when working with virtual images, R or python, I can see that the memory load is really high and then the system becomes completely unresponsive. This post will show you how to optimize memory management in linux so the system does not freeze.
To cancel a print job in the queue just use cancel. To see all the available jobs in the queue just use lpstat.
$ lpstat -o HP-Officejet-7610-2-128 user2 240640 mié 09 mar 2016 11:07:14 CET HP-Officejet-Pro-8620-137 jose 55296 dom 03 jul 2016 13:29:49 CEST $ cancel -a HP-Officejet-7610-2-128 $ cancel -a HP-Officejet-Pro-8620-137
Configure your WiFi Scanner for Brother DCP 7055W
How to createa Spring MVC web application using maven. We will start from scratch creating the project with maven, then we will add some depencencies and create the java code. Finally we will build the .war file.
I want to remove the 1st and the 5th columns of a text file of tab separated values. The file is as follows:
HEAD1 HEAD2 HEAD3 HEAD4 HEAD5 HEAD6 1.0 -3 3.4 2 7 9 -100 -30 -1 0 -80 7 70 7 8 0 3 0 71 4.5 2.1 0.6 37 4
If the size of your virtual disk inside Virtualbox is not big enough to save all your data you can always increase its size and resize the partition.
Download a kernel source from kernel.org and let’s suppose that it is extracted in the directory ~/linux-x.yy.zz
Sometimes it can be a good idea to start with a current kernel configuration. You can get this configuration from the text file /boot/config-xx.yy.zz or a compressed version from /proc/config.gz. Copy the text file into ~/linux-x.yy.zz/.config.
Now you can start configuring the new kernel by executing inside the dir ~/linux-x.yy.zz/:
Then compile the kernel, the modules and the image:
make make bzImage
If everything it’s ok the new kernel will be in ~/linux-x.yy.zz/arch/x86/boot/bzImage. Copy this file to the boot directory in the desired machine:
cp ~/linux-x.yy.zz/arch/x86/boot/bzImage /boot/vmlinuz-x.yy.z
Now you have to compile and install the modules:
make modules make modules_install
This will copy all the firmware and modules to /lib/firmware and /lib/modules/x.yy.z. If you want to change the directory you can do it by defining the INSTALL_MOD_PATH environment variable.
After install all the modules you have to go to /boot directory, create the initramfs and update the grub.
update-initramfs -c -k x.yy.zz update-grub