- Check whether 32 or 64 bit – System Settings > Details > Overview – then download from https://www.eclipse.org/downloads/
- Right click on eclipse-inst-linux32.tar.gz and select Extract Here
- cd into eclipse-installer/ then run ./eclipse-inst
- Choose top item (standard Java version of eclipse)
- Make desktop icon for launcher as per step 7 here – How to install Eclipse using its installer remembering to point to java-neon instead of java-mars etc. Drag file onto launcher and icon will add itself and be operational
- If you don’t see toolbars in eclipse modify exec line Exec=env SWT_GTK3=0
as per eclipse doesn’t work with ubuntu 16.04
- I also added pydev in the usual way using link to http://www.pydev.org/updates as per http://www.pydev.org/download.html
I have lots of images in my Pictures folder that I wouldn’t want to use as wallpaper. So I like to keep a separate wallpapers folder. But selecting from that via the standard Unity interface is a bit of a pain. I like to look at all the images at a reasonably large scale and choose what I feel like at the time. The answer is in http://askubuntu.com/questions/808736/set-as-wallpaper-right-click-option-in-nautilus-does-not-work.
gsettings set org.gnome.settings-daemon.plugins.background active true
gsettings set org.gnome.desktop.background show-desktop-icons true
xdg-mime default nautilus-folder-handler.desktop inode/directory
I use Shotwell for managing my photos and generally it works really well as a replacement for f-spot on my Ubuntu system. My work flow is to put photos in a folder ready to import, import them into Shotwell, and then empty the folder. I discovered very early on that it is important to copy photos rather than accept the default of linking to them otherwise they disappear from Shotwell after the input folder is cleared.
Unfortunately, after an upgrade, Shotwell stopped presenting the option of copy vs link and I imported anyway. Big mistake ;-). It seems to be important to locate the input folder (if using a work flow of add to input->import->clear input) outside of the folder Shotwell is storing its Photos under. E.g. if Shotwell is putting its images under ~/Pictures then don’t have your input folder anywhere like ~/Pictures/images to import.
Fixing the problem was a bit complicated because deleting the imported photos from Shotwell, relocating the input folder so it was outside the Shotwell storage path, and reimporting the images didn’t actually copy them even when the copy option was selected. It seems that Shotwell treats the image as already having been imported and so only does a link. Looking at the source code (yay for open source) gave some useful hints about how Shotwell was actually working esp https://github.com/GNOME/shotwell/blob/809b4cdd20ec6ec795c51ec046999f6f5106c07a/src/BatchImport.vala#L1857
The solution was to delete all records from the PhotoTable table in ~/.local/share/shotwell/data/photo.db Sqlite database where the filename field started with the poorly-located input folder. Obviously I copied the database file first ;-). E.g.
DELETE FROM PhotoTable WHERE filename LIKE '/home/username/Pictures/0 images to import/%'
Reimporting worked as it should have after this step. “DB Browser for SQLite” is brilliant, BTW.
My SOFA Statistics git repo was in a location that made sense at the time but became increasingly annoying. And I needed to restructure things anyway to prepare for snap packaging. Time for a shift.
Step 1 – shift existing .git folder and .gitignore
Step 2 – shift all the folders and content
Step 3 – git mv to relocate all folders and files relative to new .git location so git recognises that the files are the same but relocated i.e. will keep all the history
The goal – to turn a Windows 10 laptop into a dual boot which retains Windows but makes Ubuntu 16.04 the primary OS. Work being performed on parents-in-law’s new laptop.
The solution overview:
- Make recovery disk (on USB)
- Shrink Windows partition from within Windows 10
- Downgrade BIOS
- Set supervisor password on BIOS
- Disable Secure Boot (but not UEFI)
- Make successful 64-bit, EFI-friendly USB
- Install Ubuntu alongside Windows 10
- Add Ubuntu efi files and change boot order so Ubuntu grub efi comes first
- Re-enable Secure Boot, enable F12 Boot Menu, remove supervisor password
- Set up Qualcomm Atheros QCA9377 Wireless Network Adapter.
Make recovery disk (on USB)
Just in case. And you’ll need over 16GB so a 32GB USB should be right. Format as FAT32.
Open Windows, click on Windows button on screen (bottom left), All apps > Acer > Acer Recovery Management > Backup > Create Factory Default Backup. Tick “Back up system files to the recovery drive.”
Wait a long time while system backup prepared.
Shrink Windows partition from within Windows 10
From Windows button on screen > All apps > Windows Administrative Tools > Computer Management > Storage > Disk Management. Right-click on main NTFS partition and select Shrink. The empty space left over will be used by Ubuntu later.
This really matters. Without it I got black screen after getting USB startup disk to provide GRUB option. No amount of mucking around with nomodeset or noapic or noacpi helped. It was the BIOS!
I’ve repeated the content below in case the link ever disappears:
I figured out how to downgrade the bios.
Go to: http://us.acer.com/ac/en/US/content/drivers
Search by Product Model:
Aspire E5-573G (EDIT – or whatever you have)
Change boot order so Ubuntu grub efi comes first
Select the right OS and download a bios. In my case I downloaded 1.15.
Run the ZRT_115.exe.
It will fail.
But before you close the installer, go to C:\Users\name\AppData\Local\Temp\
Search for a folder (random letters).tmp
There should be a H2OFFT-W.exe and zrt.rd file in there.
Just copy this folder and close the failing install.
In that copied folder, edit the platform.ini file.
The VersionFormat value now has ‘XN.DD’ instead of ‘XN.NN’.
This will ignore the fact that 1.25 -> 1.15 is a downgrade.
Prepare for a reboot. I.E. close unnecessary applications. Because it’ll happen automatically after running the installer.
Set supervisor password on BIOS
Upon reboot, you’ll see a bios installing progress bar.
After that is done, press F2 during startup to get to bios. The version should now be 1.15.
At this point I set a password, turned off UEFI, and swapped my hard drive out for a fresh SSD. Ubuntu finally installed.
Set supervisor password on BIOS
The laptop has InsydeH20 BIOS Rev. 5.0 – access this by pressing F2 quickly after bootup. Then move to Security > Set Supervisor Password e.g. ‘a’ (we’ll be removing this later so a short password for convenience makes sense in this use case).
It is necessary to set this password (on Acer machines at least) to alter UEFI settings.
Disable Secure Boot (but not UEFI)
In the BIOS move to the Boot section and disable Secure Boot.
Don’t disable UEFI – that may have been necessary a few years ago but it probably causes more problems that it solves now (assuming it works at all). See http://www.rodsbooks.com/linux-uefi/
Make successful 64-bit, EFI-friendly USB
Download 64-bit ISO image. 32-bit apparently won’t work with UEFI.
I had trouble with unetbootin and the Ubuntu Startup Disk Creator. So I used good old dd to make my startup USB drive. This is probably what solved the “Missing operating system” problem I was having.
Format USB as FAT32 (maybe using Gparted or the general Gnome disk utility Disks).
sudo dd if=”/home/g/Downloads/ubuntu-16.04-beta2-desktop-amd64.iso” of=/dev/sdd
Note — won’t necessarily be sdd. Open Disks, select USB DISK, look at Device setting e.g. /dev/sdc1.
Install Ubuntu alongside Windows 10
In BIOS under Boot change boot order so USB HDD (that’s the USB stick actually) comes above Windows Boot Manager. Insert startup USB and reboot. Choose to install Ubuntu alongside Windows. I needed to do this with an ethernet cable plugged in given wireless wasn’t working for Ubuntu out of the box.
Add Ubuntu efi files and change boot order so Ubuntu grub efi comes first
In the BIOS, Security > Select an UEFI file as trusted for executing. Approve all ubuntu efi files. HDD0 >
I had 4 files to set (unlike 3 in some docs I found) – namely: grubx64.efi, fwupx64.efi, shimx64.efi, and MokManager.efi.
Re-enable Secure Boot, enable F12 Boot Menu, remove supervisor password
All straight forward. Remover supervisor password by setting it to an empty string by entering orig password then Enter (to register current password), Enter (to submit empty string as password, Enter again to confirm.
Set up Qualcomm Atheros QCA9377 Wireless Network Adapter.
Identify wireless first:
03:00.0 Network controller: Qualcomm Atheros Device 0042 (rev 30)
Installing the required driver was explained here by @chili555. As another grateful person said “You rock!”.
open a terminal and do:
sudo mkdir /lib/firmware/ath10k/QCA9377/
sudo mkdir /lib/firmware/ath10k/QCA9377/hw1.0
If it reports that the file already exists, that’s fine, just continue.
With a temporary working internet connection:
sudo apt-get install git
git clone https://github.com/kvalo/ath10k-firmware.git
sudo cp board.bin /lib/firmware/ath10k/QCA9377/hw1.0
sudo cp firmware-5.bin_WLAN.TF.1.0-00267-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin
sudo modprobe -r ath10k_pci
sudo modprobe ath10k_pci
Your wireless should be working; if not, try a reboot.
I installed the system load indicator (set to traditional colours with Processor, Network, Harddisk), VLC, Shotwell (loading all photos with copy as the option), and brought thunderbird and firefox data over from old computer (merely copying xxxxxxx.default folders and updating profiles.ini Profile > Path settings. Then setting up icons on launcher and we’re done!
I’ve stored my SOFA Statistics code on launchpad since 2009 and used bazaar (bzr) to do it. But a lot has changed since then and I know use git on a daily basis in my job. So I’d much rather use git for SOFA. Fortunately that is now possible on launchpad.
I found https://help.launchpad.net/Code/Git to be useful apart from the migration instructions. These didn’t work for me. For example, I had no luck installing sudo apt-get install bzr-fastimportInstead I found https://design.canonical.com/2015/01/converting-projects-between-git-and-bazaar/.
If plugins folder not there, cd ~/.bazaar; mkdir plugins
bzr branch lp:bzr-fastimport fastimport
bzr fast-export --plain . | git fast-import
YES! It’s all there
Archive .bzr in case
USER is launchpad-p-s in my case (yes – a strange choice which made sense at the time)
PROJECT is sofastatistics
So as per
insteadof = lp:
added the following to ~/.gitconfig
insteadof = lp:
Note – if not using lp: etc I had trouble with my ssh key – possibly something to do with confusion between user g and user launchpad-p-s.
I own my own project so to implement git remote add origin lp:PROJECT I ran:
git remote add origin lp:sofastatistics
Note: would only work if insteadof setting added to ~/.gitconfig as described earlier https://help.launchpad.net/Code/Git
Otherwise I would have to git remote add origin git+ssh://git.launchpad.net/sofastatistics
As per https://launchpad.net/PROJECT/+configure-code. I.e.
Confirmed by making a check folder then cloning the code in: git clone git://git.launchpad.net/~launchpad-p-s/sofastatistics
Another problem with my parents-in-law’s printer – it looks like an update broke the printer on two separate machines (an ancient desktop running Lubuntu 14.04 and an Asus Eee PC netbook running Ubuntu 14.04). Yet when I took the printer home it instantly worked with the default drivers on my Ubuntu 15.10 system there, albeit with the colours a bit off (see http://p-s.co.nz/wordpress/printer-driver-for-canon-mg-7100-on-ubuntu/). I fixed this by downloading and unpacking the driver at http://support-th.canon-asia.com/contents/TH/EN/0100551202.html. Then, from the terminal prompt I ran ./install.sh, answered some questions e.g. what I wanted the printer called, and voila – I had a working printer with the correct colours using Driver: CNMG7100.PPD.
Some things to note about setting up the printer:
1) the touchscreen on the top of the printer lets you swipe left and right to see more icons. The WiFi icon is where you can tell your printer the SSID and password/passphrase for you secured WiFi access point.
2) another setting lets you change the name of the printer e.g. to something user-friendly like MG7160.
3) on some routers (192.168.1.254 in the case of the one my parents-in-law were using as opposed to 192.168.178.1 on mine and 192.168.1.1 or 192.168.0.1 on many IIRC) you will be able to see the printer connected. Having given it a useful name in step 2) made this easier to spot. I could see it on my own router but not on my parents-in-law’s router for some reason but there did seem to be some connection. After I renamed the printer it was detected on the PC as a network printer under the new name so something was getting across.
BTW the error messages I was getting when trying to run the printer on my parents-in-law’s computers were inconsistent. More on that when I update this post from their place.
We’ve all done it – messed up something so badly while trying to do something clever we’d sell our first-born just to get back to where we were (see https://xkcd.com/349/). And if we succeed at merely restoring the status quo, we’re pitifully grateful.
It all started with trying to find some lost photos that Shotwell couldn’t find the originals of. Presumably they had been linked to only and then the originals deleted leaving only the reference and the thumbnail behind. So here was the plan:
- Identify all email attachments which are images
- See if any of them have the same name as the missing images
- Open email based on date and sender to recover image
The good news is the plan worked for lots of the missing photos. Thanks to Python3, import mailbox, and import email. The bad news was when I opened Thunderbird the next day. The folder I had been working on was missing. So in addition to my missing photos I also had seemingly lost 1.8GB of emails.
tldr; 1) Close TB; 2) rename the missing folder in your file system and delete the .msf version; 3) Open TB; 4) Close TB; restore original name; 5) Open TB – success? Inspired by http://kb.mozillazine.org/Empty_folders
Now back to the original problem. But I should probably run a full backup first.
It really was this simple:
Download zip from here:
Unzip folder e.g. as “/home/mythbuntu/rtl8812AU_8821AU_linux-master”
sudo make uninstall
sudo make install
Restart and enable wireless and enter password when prompted (after selecting your own ssid).
I had trouble copying a audio file (wav) from a CD to my computer – the copy process was always getting stuck at exactly the same point 153MB in. And it didn’t matter whether I was using sound-juicer or nautilus. The answer was to install rdd (sudo apt-get install rdd). rdd copes with errors by supplying blanks (assuming multiple careful attempts to read the data have all failed) rather than halting.
The required command was rdd-copy src dest. But what to supply as src? I tried /media and similar but no luck. The final answer was ‘/run/user/1000/gvfs/cdda:host=sr0/Track 3.wav’. But how to find it? http://askubuntu.com/questions/222622/cdrom-is-mounted-but-where. Just drag the file from nautilus to the terminal and see what is displayed there. The following worked even though it took a long time to get the file:
rdd-copy '/run/user/1000/gvfs/cdda:host=sr0/Track 3.wav' /home/g/Desktop/track3.wav