↓
 

A Pipe and a Keyboard

A sort of Linux scrapbook

  • Home
  • About
  • Software
  • List of posts

Category Archives: Linux

Post navigation

<< 1 2 3 4 5 6 … 10 11 >>

Running a live image on the desktop

A Pipe and a Keyboard Posted on April 28, 2016 by RichardApril 28, 2016

Things have been somewhat quite here of late?

Occasionally I like to set myself little mental exercises to keep the brain ticking over.  My latest bright idea was to replace my desktop background wallpaper with a live [or nearly live] image from the Internet.

There is a site with a live webcam pointing to a view that I love.  The webcam updates roughly once a minute producing a JPG image.  My task was to use that image as a desktop background.

For the purposes of illustration, I have used imaginary URLs but you can take it from me that it works.

The first part was to write a shell script to retrieve the file from the website.  This was short and simple –

#!/bin/bash
# retrieves newest image from web camera
# and sets this as desktop background in cinnamon 

wget "http://webcamerasite.com/webcams/cameraoutput.jpg" -O /home/username/Images/camera.jpg

gsettings set org.cinnamon.desktop.background picture-uri "file:///home/username/Images/camera.jpg"

Note that the final line is for Linux Mint Cinnamon edition. Modify it for other versions.

Save the script and make it executable.  Running the script will replace the background image with the latest from the website.

The next task is to set up a Cron job to run the script.

In Terminal, type crontab -e

Select the editor (I chose 2 – Nano).

Add the following line at the bottom –

* * * * /home/username/location of shell script

This will run the script once a minute.

Press Ctrl-o to save the file, press Enter to confirm the file name and Ctrl-w to exit.

Your desktop will now refresh every minute with the latest view.

Desktop image

The latest image on my desktop

 

 

Posted in Linux, Tech stuff | Tagged Linux | Leave a reply

Auto mounting an NTFS partition in Linux

A Pipe and a Keyboard Posted on December 3, 2015 by RichardDecember 3, 2015

I have a simple setup on this machine.

It has a 1Tb hard disk so I allocated 500Gb for Windows and 500Gb for Linux [Mint 17.3 Cinnamon].

My problem was that I wanted to be able to permanently access the Windows NTFS partition from Linux as there were some files that I wanted to be able to edit from either OS, and it made sense to retain those files on NTFS where they can be accessed seamlessly from either OS.

So how do I get Linux to automatically mount the NTFS partition on boot?

Simple.

In Linux, select Menu -> Preferences -> Disks.

Disk management

[Click to enlarge]

Select the NTFS partition and then click on the cog icon below the selection (not the one at the top right corner) as shown above.

Select "Edit Mount Options…"

Mount options

[Click to enlarge]

Simple set the Automatic Mount Options to "OFF", and make sure Mount at startup is selected, as above.

Reboot and the partition is mounted.

 

Posted in Linux, Tech stuff | Tagged Linux | 1 Reply

Replacing Windows with Linux

A Pipe and a Keyboard Posted on August 25, 2015 by RichardAugust 25, 2015

Quite a few times I have been asked about Linux and why I use it in preference to Windows.

There are quite a few reasons which I will attempt to explain without going into any technicalities.

It's not technical

Probably the biggest fear people have is that they have heard about Linux in the past and that it's "all technical" and they have visions of having to type in reams of commands to do anything.  Modern Linux distributions are nothing like that at all.  Not only does the modern Linux distribution have a desktop that will immediately be familiar to any Windows user, it actually proves a whole series of desktops, such as KDE, Unity, Cinnamon, Mate and many more to suit the user's taste.  Probably the biggest criticism of Windows 8 was its desktop, and Windows 10 still provides only one – if you don't like it, that's too bad.  That problem doesn't exist in Linux.

Our Windows user will be immediately familiar with the desktop layout.  It has all the usual features such as the desktop itself, the task bar at the bottom and the "Start" button.  One thing that is different is that programmes tend to be grouped by function, so media programmes will be grouped under "Sound & Video". games under "Games" and office suites under "Office" which makes programmes easier to find.

Price

One enormous advantage of Linux is that it is of course free.  Not only is the base operating system free but also the vast majority of the applications and programmes.  Do you want a programme for a specific purpose?  Search the repositories [a very simple procedure] and install it.  It really is that simple.

Updates

Possibly my greatest frustration with Windows is the Update.  Every time I fire up Windows [a rare occasion these days] there are updates and patches to be applied to the operating system.  These invariably are very slow to download but nearly always require a lengthy reboot during which, a power outage can destroy the whole system.  Windows updates are frustrating in the extreme.

Linux updates are a different matter.  A little icon on the panel [Task Bar] informs me there are updates available.  I click on the icon, provide my password and off it goes.  I can continue to use my machine without interruption.  When the update is installed, that's it – no reboot except on extremely rare occasions.  And not only does Update take care of my system, it also updates all the programmes I have installed.

Security

Another downside to Windows is security.  Only the foolhardy will run Windows without an anti-virus programme [some are free but most you have to buy].  That anti-virus has to do its work every time a programme is run, a website opened or a file downloaded.  This of course slows things down.  Under Linux, they can send me all the .exe and .scr files they want and none of them will affect my system, as Linux doesn't run .exe or .scr files.  None of their viruses will run, and even if somehow a Windows virus did end up an my system it would find a completely different environment and wouldn't be able to do its nasty stuff.

Compatibility

Probably the biggest real fear people have is that their programmes and files won't work under Linux.  This is true, and it isn't!

Most files created by Windows products such as Microsoft Office files can be opened, read, edited and saved without any loss of compatibility.  All your Word Documents and Excel files are safe and are compatible with OpenOffice or LibreOffice.  There are some provisos though.  For example, Office macros won't work under Linux.  So what happens if you really need Microsoft Office [or indeed any other programme that is only designed for Windows]?  There are two options.  One is to try installing your programme using Wine [a Windows emulation programme], or if you want to be really fancy, you can install Windows within Linux!

Installing Windows within Linux may sound crazy but it has its advantages.  Using a Virtual Machine programme such as VMWare, you can create a virtual PC and can install any version of Windows [or indeed DOS] on it.  So for example if you really had to have AutoCad, you could install it on its own Virtual Machine and run it on that – no reboots, and you can switch tasks between your AutoCad and any other Linux programme you happen to be running.

Try it out

Most Linux distributions [as far as I am aware] will run directly from a DVD.  All that is necessary is to download the distribution, burn it onto a DVD and then boot into that DVD.  The distribution will happily run and give you the chance to play around with it and examine its features.  Granted that has its limitations – you can't for example install any software as it is running purely off memory and DVD, but it does give a chance to get the feel of the distribution and possibly allay any fears.

Several years ago, I tried it.

I installed it.

I never looked back!

Posted in Linux, Tech stuff | Tagged Linux | 1 Reply

Photos not displaying in Google Earth Linux Mint 64-bit

A Pipe and a Keyboard Posted on April 24, 2015 by RichardJuly 3, 2016

LINUX MINT 18

If you are running Mint 18, none of the following advice will work.

Please head over to the new instructions.

This page also contains a script to fix the Panoramio images problem!

UPDATE WARNING:

Recently [5th June 2015] the repositories released Google Earth V 7.1.4.1529.  This overwrites the fix below and breaks it once more.

The fix is to just repeat lines 5, 6, 7 and 8 below.  [With thanks to KirkM below in the comments]

———————————————

I finally discovered the fix to enable photos and Panoramio images in Google Earth running on Linux Mint 64-bit.

sudo apt-get install libc6:i386 lsb-core

wget -O google-earth64.deb http://drive.noobslab.com/data/apps/google-earth/google-earth_amd64.deb

sudo dpkg -i google-earth64.deb

rm google-earth64.deb

sudo apt-get install libfreeimage3

cd /opt/google/earth/free

sudo wget https://googledrive.com/host/0B2F__nkihfiNalQzN0ZmcjBPTGs/ge7.1.1.1580-0.x86_64-new-qt-libs-debian7-ubuntu12.tar.xz

sudo tar xvf ge7.1.1.1580-0.x86_64-new-qt-libs-debian7-ubuntu12.tar.xz

sudo apt-get install gufw

sudo apt-get install flashplugin-installer

Posted in Linux, Tech stuff | Tagged Linux | 42 Replies

Connecting Mint to an Android device

A Pipe and a Keyboard Posted on March 4, 2015 by RichardMarch 4, 2015

I recently got myself a Samsung Galaxy Trend Plus mobile phone.

I also bought a 32Gb microSD card with a view to storing some sound files.  However, on connecting the device to my laptop I discovered that though I could see and read files on the SD card, I was unable to transfer files onto it.  The only way to load files to the SD card was to physically remove the card and plug it into the laptop using a card adaptor, which was messy and tedious.

There is a solution however, and that is to install gMTP.

First run the following –

sudo apt-get install libmtp-common libmtp-dev libmtp-runtime libmtp9 mtp-tools gmtp python-pymtp

Then this –

sudo apt-get install libusb-dev

You should now see gMTP available on the main Menu (under All Applications).

Connect the phone and run the programme.  Click "Connect".  In the event it says that no RAW devices are found, just wait a few seconds for it to detect the phone.

Once connected you will be presented with an drop-down option of connecting to the phone or the card.

Files can now be transferred as normal.

Posted in Linux, Media, Tech stuff | 3 Replies

Post navigation

<< 1 2 3 4 5 6 … 10 11 >>

Recent Posts

  • Updating Linux Mint 21.1 Beta
  • Failed to mount Windows share
  • Dell Inspiron 3000 intermittent boot problem
  • Installing Linux Mint 20
  • To kill or not to kill

Categories

  • Blogging
  • General
  • Linux
  • Media
  • Tech stuff
  • Writing

Blogroll

  • Head Rambles
  • Kirk M's Just Thinkin'
  • Wordpress Beginner
  • Wordpress Development

Archives

RSS Head Rambles

  • A friend in need February 2, 2023
  • February February 1, 2023

RSS Just Thinkin'

  • An Abundance of Noise September 12, 2021
  • Laptops Young and Old March 2, 2021
©2023 - A Pipe and a Keyboard - Weaver Xtreme Theme
↑