The quick and easy solution is to kill any/all processes which may have a lock, so…
killall aptitude; killall apt-get
killall dpkg; killall frontend
sudo dpkg --configure -a
The quick and easy solution is to kill any/all processes which may have a lock, so…
As per this serverfault answer, use the following syntax:
I have been using an Epson TX110 for all of my at home printing needs for about three years. While its scanning function is good, I am absolutely sick of the way I need to keep on replacing colour cartridges even though I only ever print in black and white. My colour usage has, in fact, almost entirely been taken up by routing cleaning of the printer heads.
So, rather then spend another dollar on colour cartridges I will never use, I finally bit the bullet and purchased a laser printer.
Being a linux-geek, the first thing I did was connect it to my home server and share it with my laptop and desktop.
The next thing I wanted was the ability to link the scanner function on the Epson TX110 with the Brother laser printer, to be able to quickly photocopy a page. This is amazingly easy with bash and the right tools installed:-
All that remains is to have the ability to scan documents to PDFs…and again, bash and the command line comes to the rescue…you can download my scanpdf.bsh. It is designed for flatbed only scanners. Try running it with --help to see available options. You may click here to view the code.
Take note of the “DISPLAY” variable, this is the local port (on the machine called “desktop”) which is forwarding X11 server commands to the X11 client running on the machine called “laptop”.
This sets the “DISPLAY” variable to the first screen on the desktop, and starts VLC as a background process. For this to work you must be logged into the server with the same user account, and have an X11 client running on the desktop.
This sets the “DISPLAY” variable to the laptop, and starts Gedit on the server, but displaying it on the laptop.
This is a bash script I wrote which will read an m3u play list, copy all files into a specified directory, and optionally change the “album” and “track number” tag.
I use it as an intermittent step to copy or burn the LastFM play lists which Exaile generates.
The script requires id3tag to tag mp3 files and AtomicParsley to tag m4a files.
Check that the md5 sum matches fb893b406c9eb6379bd0b09ed0e38345.
DO NOT DOWNLOAD IT FROM ANY OTHER SOURCE.
Click here to download.