Wipe Windows 8 and replace it with Ubuntu

You should just be able to burn the ISO (ubuntu) to a DVD and boot from it, you may have to hit F12 or F1 some F key to get into your boot order menu to select the DVD drive but after that you're home free.

I'm not too sure what Safe boot function your talking about? What laptop model is it (HP Envy etc)

Also if I remember correctly my wifes HP automatically booted the DVD before the harddrive so you might not need to go into the menu


Booting Ubuntu On Live USB Gives Black Screen after GRUB

From what I know most Macbooks running on an Intel processor and maybe you downloaded the wrong version for the wrong processor. Maybe you downloaded the version for AMD Processors.


When running apt-get update I receive checksum errors

This could occur due to issues with the mirror you are using (in this case us.archive.ubuntu.com) Sometimes these issues are quickly resolved and simply trying again is effective. If not you need to edit your /etc/apt/sources.lst file and replace us.archive.ubuntu.com with another up-to-date mirror from this list or perhaps the main server at archive.ubuntu.com

then run sudo apt-get clean (which has nothing to do with your hostname) to clean the apt cache

Then proceed as normal with:

sudo apt-get update; sudo apt-get upgrade


Application resolution problems with Macbook Pro retina

Okay, I found the solution for my case. Just post here if someone needs it.

Very simple, open System Setting > Displays

Then change the resolution to the lower ones until it perfectly fit your screen.

Maybe change the scale for better results.

Hope this helps!


How to install Windows 7 inside Virtualbox of Ubuntu?

Yes, you need an ISO or cd of the os that you want to install inside the virtualbox.

VirtualBox supports 64-bit guest operating systems, even on 32-bit host operating systems, provided that the following conditions are met:

   You need a 64-bit processor with hardware virtualization support .

    You must enable hardware virtualization for the particular VM for which you want 64-bit support; software virtualization is not supported for 64-bit VMs.

If you want to use 64-bit guest support on a 32-bit host operating system, you must also select a 64-bit operating system for the particular VM. Since supporting 64 bits on 32-bit hosts incurs additional overhead, VirtualBox only enables this support upon explicit request.

Read more here: http://www.virtualbox.org/manual/ch03.html#intro-64bitguests


how to disable keyring prompt when you don't know the current /old password

If you want to delete the keyrings

rm ~/.local/share/keyrings -fr

The next time it is needed a new one will be generated and you will be prompted for a new password. You will loose all the information that was stored in the old keyring.


Terminal Command for Purge of Nvidia and Install New Package

To find out what nvidia driver is installed, run the following command:

dpkg -l | grep nvidia

To purge the driver (nvidia-340 for example) run the following command:

sudo apt-get purge nvidia-340

To install version 331.89 run the following command or skip this command and install the ppa for version 331.104:

sudo apt-get install nvidia-331

Save any unsaved files before you begin.

To install version 331.104 go to this website http://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/XFree86/Linux-x86_64/331.104/NVIDIA-Linux-x86_64-331.104.run&lang=us&type=geforcem

Click to agree to the terms and conditions and download the file to your home folder (~/). Then, press Ctrl + Alt + F2 login with your username and password and execute the following command:

sudo service lightdm stop

If you use GDM, type this command instead:

sudo service gdm stop

Then run the following commands:

sudo apt-get update
sudo apt-get install dkms gcc build-essential linux-headers-generic linux-headers-`uname -r` linux-source
sudo chmod +x NVIDIA-Linux-x86_64-331.104.run
sudo ./NVIDIA-Linux-x86_64-331.104.run

Follow the instructions and reboot when you are done.


Use -m state --state ESTABLISHED,RELATED to match returning traffic. Also, you don't have to include a "drop all" rule, just change INPUT's chain policy to "DROP".

sudo iptables -F INPUT
sudo iptables -P INPUT DROP
sudo iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT


If your system sound is working perfectly and your sound issues are game specific, its possible you may have unmet dependenies. (Have you considered this?)

libgtk1.2 must  be installed

sudo apt-get install libgtk1.2

Also even if you are running 64-bit you need top install the 32-bit libraries

sudo apt-get install ia32-libs

I tried to recreate this issue on a friends machine last night (as i knew he plays Enemy territory) with out success and i am all out of ideas if my answer here isnt the solution.


Installing Ubuntu from Live iso to hard drive

My suggestion is that:

Download Clonezilla live, select the following CPU architecture and file type.

Clonezilla site download

Install Tuxboot to copy Clonezilla to a USB stick.

sudo apt-add-repository ppa:thomas.tsai/ubuntu-tuxboot
sudo apt-get update
sudo apt-get install tuxboot

Once you get Tuxboot installed, use it to create your  live bootable Clonezilla USB stick.

First create a FAT32 partition of at least 400 megabytes.

Then run Tuxboot, check Pre-downloaded and click the button with the ellipsis to select your Clonezilla file.

Boot up your Clonezilla USB stick on the computer that you want to backup,  at the Start Clonezilla menu select Start Clonezilla.

In the next menu select device_image, then go to the next screen.

This is where you select the location for your backup image to be copied to.

An attached USB hard drive is a nice fast and easy option.

In the next screen you can choose savedisk, which creates an image of an entire hard disk, or save_parts.

After making your selections, the next screen gives you the option to do a filesystem check and repair.

Restoring your image is similar to creating it.

Again, boot up Clonezilla, go through the same initial steps, select dev_image, and then on the local_dev screen select the location of your image that you want to restore, whether it's on a local device or network share.

Source


How to kill X server using a key combination?

Yes, it is possible. In the past the key combinationCtrl Alt backspace was used to kill the X-server.

However:

This no longer seems to be the default on many modern installations. You might have to re-enable this by editing a config file.
Many modern systems also enable X out of the box and restart it once it terminates. In that case you would kill the x server (and possibly many running programs you started), but a fresh one would start up again.

This post has answers on how to enable the key combination.

Especially the answer "13.10+, type the following on the terminal:
dpkg-reconfigure keyboard-configuration" seems relevant.

(That should trigger this screen:)


Unable to change any of the settings of ubuntu 18.04

I solved the issue by deleting .config

Step1:

cd .config

Step2:

rm -R *

suraj@suraj:~$ cd .config

suraj@suraj:~/.config$ ls
 dconf                      gnome-session   menus              update-notifier
 enchant                    goa-1.0         mimeapps.list      user-dirs.dirs
 eog                        google-chrome  'MongoDB Compass'   user-dirs.locale
 evolution                  gtk-3.0         nautilus           yelp
 gedit                      ibus            pulse
 gnome-initial-setup-done   libreoffice     Slack
suraj@suraj:~/.config$ rm -R *


Hibernate on power button - login screen

I don't know the answer to the specific question you asked, but you can set the computer to automatically suspend after a set idle time:

Open "System Settings" from the power/gear menu (top right in Unity).
Click "Power"
Choose a suitable timeout.

Suspend isn't quite the same as hibernate, and there's no manual "do it now" feature, but it'll still save you power.

(Alternatively, you could log yourself in, and suspend it from your own session. Your SO would have to switch back to her own session when she returns.)


Accessing host LVM partition from Windows XP through Virt.manager 0.8.5 / Qemu / KVM

Ok, [SOLVED]

point is the device mapper does not create a mapping to the XP guest (or Ubuntu guest) partition which the guest created in the LV on Ubuntu host, automatically :-) (how should it now the guest did this ?)

in order to do fix this I found this other post: http://forums.gentoo.org/viewtopic.php?t=128781 and took the following items out of it to solve my issue.

1) do a sfdisk -d /dev/mapper/storage-sdc1 (the name of the LV in which XP created the partition
should print something like this:

partition table of /dev/mapper/storage-sdc1
unit: sectors
/dev/mapper/storage-sdc1p1 : start=       63, size=  2116737, Id= c
/dev/mapper/storage-sdc1p2 : start=        0, size=        0, Id= 0
/dev/mapper/storage-sdc1p3 : start=        0, size=        0, Id= 0
/dev/mapper/storage-sdc1p4 : start=        0, size=        0, Id= 0

2) Create a mapping file for each partition, in my case this is just one line (I named it devmap.sdc1p1) Use start (last column) and size (second column)

cat devmap.sdc1p1
#start      size    type    destination start
0 2116737 linear /dev/mapper/storage-sdc1 63

3) run dmsetup create sdc1p1 devmap.sdc1p1
this creates the ned DM device sdc1p1 (watch out, it creates it as sdc1 not storage-sdc1 as is convention)

4) mount the partition as mount -t vfat /dev/mapper/sdc1p1 /media/sdc1

5) :-) and some coffee


That was the term used back in 2012. Nowadays it is called "Ubuntu advantage". It is not a download but a support agreement for larger companies. If you are asking this as a single user you are suppose to get support from the community. A 1 year support costs about 440 British Pounds and you will need to contact Canonical. Below several snippets from the Ubuntu website with links to the pages and a link to the contact form.

Systems management and support
Ubuntu Advantage is the professional support package from Canonical, with Landscape, a systems management tool, built for running large-scale Ubuntu deployments on desktop, server or cloud.

Ubuntu Advantage: what’s included?

Systems management: Landscape

With the Landscape systems management tool, you can automate updates and manage physical, virtual and cloud-based systems from a single interface. It's easy to set up, easy to use and requires no special hardware. It features:

Management at scale
Deploy or rollback security updates
Compliance reports
Role-based access
Informative monitoring

Learn more
Try Landscape for free for 30 days
For a limited period, you can try Landscape without subscribing to Ubuntu Advantage. Register for your 30 day free trial, to see the features for yourself. Login into landscape as a new user.

Contact Canonical
Considering Ubuntu for your business? Just fill in the form below and a member of our team will be in touch within two working days.
You need to fill in this form.

Regarding comments:

this ISO available for download, or is it only available for subscribed customers ?

There is no ISO.

regarding the link mentioned "introducing ubuntu business desktop remix desktop"

This seems a page from 2012 to me. If you click the "enterprise" link below it you go to some more older pages all referring 2012.


Ethernet adapter is recognized but isn't able to connect

Well the ping 192.168.1.254 does not work because your eth0 interface only has an ip6 address. You probably should try to ping your router using ip6 with ping6 <your routers ip6 address or hostname>

If you want to use ip4 in your local network, you should configure your dhcp server (I suppose your local network is initialized using dhcp). Usually that should be part of the router configuration.

In general you can check $ route -n to see all the networks that you can reach.


No sound on Ubuntu 18.04 (Spotify and YouTube don't work either)

Probably this will solve your problem.

killall pulseaudio
rm -r ~/.config/pulse/*


Yes, Ubuntu should work for your computer. It's hard to say for sure until you have tried it, but I can't think of any reason why it would not work. I would say to try 12.04 if you can. I am assuming that this computer is a netbook from the information I have seen about it online. As such, you may have to use the Ubuntu alternate text-based installer. You can find this on their website.
http://www.ubuntu.com/download/desktop/alternative-downloads

For more specifics on whether or not this will work on your laptop, here's a link to a forum talking about it:
http://ubuntuforums.org/showthread.php?t=2041487

I hope this helped you. I hope Ubuntu works on your laptop.


Assuming installation from a USB drive:
Insert USB drive containing Ubuntu install files.
Boot the machine and press the appropriate key/combination (depends on manufacturer) to take you to boot options menu.
Use the arrow keys to select the USB drive and press Return, then immediately press and hold Shift.
You will be presented with a list of options:

Try Ubuntu without installing
Install Ubuntu
OEM install (for manufacturers)
Check disc for defects


"You are not the owner..." message when trying to access folder

This is not telling you that you don't own the computer on which the folder exists. It's telling you that you don't own the folder. This is a very different concept of ownership.

On your Ubuntu system, your user account doesn't automatically have the ability to perform any possible action--some administrative actions can only be performed by root, the superuser. However, this user is not any real person and, in Ubuntu, you don't log in as this user. Instead, Ubuntu provides facilities like sudo and gksu to perform actions as root.

You should check out the three links above. Once you've read that, if you still want to change the permissions on that folder, here's one way to do it:

Press Alt+F2.
Type in the command gksu nautilus and press Enter.
Now you have a file browser window running as root. You can change the permissions with this. Any program you open from this will run as root too. You should use this carefully and sparingly.
Make sure to close this root Nautilus window when you're done, so you don't accidentally use it for something that you don't need to be root to do.

Before you change the permissions (and/or ownership) on this folder, you should be aware that doing this to system files in Ubuntu can have negative consequences: you can make your system insecure...or even stop your system from working.

If these files have the wrong ownership/permissions because you brought them over from another system and did so as root (for example, if these are recovered documents), then go ahead.

But if these are systemwide configuration files, programs, or you're not sure what they are but you're trying to follow instructions that tell you to do something with them ...then you'll be much better off to ask specifically about them. You can edit your question or post a new question to ask if it would be safe for you to change ownership/permissions for this specific folder (provided that you can disclose what this folder is and what you are trying to accomplish).


How to schedule a script to be run as soon as the system is booted?

This should not be done by a script. You can achieve your goal by

echo "options psmouse proto=imps" | sudo tee /etc/modprobe.d/psmouse.conf

Do it once and your touchpad will work after reboot.

But you can get your touchpad working a normal way too.

If you decide to install an Elantech driver, you will have to revert this setting. It can be done by

sudo rm /etc/modprobe.d/psmouse.conf


How do I determine the location of the debian package for an installed application?

You could look for it:

locate --regexp 'chef.*deb'

Or, you could get a new copy, if /var/cache/apt/archives has been cleaned out.

See man apt-get, which says, in part:

NAME
       apt-get - APT package handling utility -- command-line interface

SYNOPSIS
       apt-get [-asqdyfmubV] [-o=config_string] [-c=config_file] [-t=target_release] [-a=architecture] {update | upgrade | dselect-upgrade | dist-upgrade |
               install pkg [{=pkg_version_number | /target_release}]...  | remove pkg...  | purge pkg...  |
               source pkg [{=pkg_version_number | /target_release}]...  | build-dep pkg [{=pkg_version_number | /target_release}]...  |
               download pkg [{=pkg_version_number | /target_release}]...  | check | clean | autoclean | autoremove | {-v | --version} | {-h | --help}}

Especially the download pkg [{=pkg_version_number | /target_release}] part, later on:

   download
       download will download the given binary package into the current directory.

So, apt-get download chef=11.2.0-1.ubuntu.11.04 is where I would start. I HAVE NOT TESTED THIS COMMAND


Is it possible to boot Ubuntu on a TrueCrypt root partition?

It's not possible, only Windows is supported by Truecrypts system encryption.


If you installed Ubuntu and its boot loader on an external (or secondary) drive, you need to go into the BIOS settings to then boot from that drive, that's all!  ;-)

If that's not what you wanted, have a look here.


My best Guess if your Firefox is corrupt. the easiest way to test this is to try another browser. go to http://chrome.google.com and install chrome, or open your software center and get chromium. if you can access putpat.tv in either of those, your firefox is corrupt.

how to fix firefox:

in a terminal:

sudo apt-get purge firefox firefox-globalmenu firefox-gnome-support

this will uninstall FF, to reinstall:

sudo apt-get install firefox firefox-globalmenu firefox-gnome-support


Ubuntu 14.04 wifi not working Lenovo G560

Install the package linux-firmware-nonfree via cable:

sudo apt-get install linux-firmware-nonfree

and reboot:

sudo reboot

Enter


Do you have access to a machine running Ubuntu already?

If so hit the Windows/Meta key and type 'disk' in to unity

the first option should be 'Startup Disk Creator' - choose this.

then point the creator to an iso you would like make bootable and choose the USB drive (plugged in to your machine) that you would like to boot from.

Put your USB disk into you USB slot at boot time - hit F12 (or the options that allows you to choose your boot device).  This should boot your live disk

Does this answer you question?  Is this what you are asking


I have Dell Inspiron 5559 Signature Edition which came with Windows 10 Home pre-installed. Its been a year since I've dual booted my laptop. No issues were faced as far as crashes or license is considered.


Run simple bash script to start applications at login

Go to System → Preferences → Startup Applications, then click Add. Under Command just enter spotify, instead of the script. There's no need to start a terminal for it.

If you need the output, you can change your script:

#!/bin/bash
echo "start spotify"
spotify > /home/username/spotify.log

and set it as the command, rather than Spotify itself.

Make sure the script is executable by opening the file's properties, going to permissions and setting "Allow executing file as program".


As far as I can tell, the latest version for Linux available at this moment is Version: 11.2.202.451 (I obtained this information from the about:plugins page in Firefox and verified at https://get.adobe.com/flashplayer/ ).

It's entirely feasible that the update recommendations are based on the erroneous assumption that everyone is running a copy of Windows (which IMHO has more security holes than swiss cheese).

I'm running the version stated above and haven't had any issues. I do not recommend removing it. It doesn't appear as if Adobe feels the need to update the version available for Linux (although they are still providing security back-ports AFAIK)

Since both plugins are listed in firefox it seems to be handling them fine seperately. I don't think you are losing anything by leaving them as is. Be that as it may, if you do decide to remove one of them and later discover that you need it it worst you'll have to do is reinstall firefox and a plugin or at best a plugin. As I recall flashplugin-installer is what's responsible for putting 11.2 on your system. I can't speak to your safety concerns as AFAIK either way your looking at closed source. You can choose to trust Adobe or Google, the choice is yours. It's interesting to me that firefox picked up the extension as it supposedly only works for Chromium or Chrome) according to this.

Source(other platform availability): https://get.adobe.com/flashplayer/otherversions/


Guest Additions itself may have been causing an additional uninvited issue you were unaware of.

The ticket for the issue can be found here https://www.virtualbox.org/ticket/12879 and has been resolved in Guest Additions 4.3.12

Guest Additions 4.3.10 has an incorrect symlink for which the workaround is to create a new symlink:

sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions

Once the symlink is in place you can use the Virtualbox GUI > Settings > Shared Folders to create a shared_folder_name with read or read/write permissions and check automount if desired.

then in the Guest terminal create your mount point:

sudo mkdir /mnt/shared_folder_name

and then mount:

sudo mount -t vboxsf Share /mnt/shared_folder_name

You should then be able to navigate to /mnt/shared_folder_name and see the contents of the shared folder as anticipated.


Unable to Connect MTS Mblaze modem in Ubuntu 12.10?

I have been using MTS Mblaze connection for quite sometime. I have never felt the need of a third party tool to get to use MTS Mblaze connection in India. Once you connect your usb-modem at system startup, you should be able to see your MTS Mblaze usb device listed under your network. All you need to do is chose the MTS Mblaze connection. Ubuntu does automatically configure it for you. If necessary, have a reboot and wake up your USB modem connection up and running.


Can't sudo after removing password from administrator account

The behaviour you're describing is normal, because the root account is locked by default in Ubuntu. If you need an interactive root shell you should use sudo -i instead of su

For further information, see the discussion at RootSudo


Quite often, the weak signal is a symptom of the antenna wire being connected to connection #1 on the card when the default driver is expecting to see the signal at connection #2. Of course, you could open the laptop and switch the wire or you could implement antenna selection at the driver level.

From the terminal:

sudo -i
echo "options rtl8723be ant_sel=2"  >  /etc/modprobe.d/rtl8723be.conf
exit

Reboot. Is there any improvement? If not, run the sequence again with ant_sel=1 and reboot again.


Are you trying to use the latest/bleeding edge changes in Laravel? It looks like that tutorial wants you to pull the latest files from git, which may not be production-ready. Have you tried following the official instructions here: https://laravel.com/docs/5.2/installation?


Ubuntu 18.10 don't recognize a formatted SDD

After troubleshooting it was concluded that the SATA mode in UEFI settings was set to "RAID" mode which isn't supported by Ubuntu and other Linux distros.

That was the reason why the drive wasn't being recognized by Ubuntu.

Solution:

Change SATA mode to AHCI.


In a typical (and Ubuntu's default) configuration the two network interfaces will not interfere, not even when they're connected to the “same” network (e. g. when the Ethernet connection goes to a router/switch that is also the access point associated with the wireless network adapter).

There are ways to make them interact in various useful (or not so useful) ways but it doesn't seem like you're looking for any of them.


How to install multiple Linux Distros and Windows 8 on UEFI?

To install them I create a / and a /home partition for each distribution, but the EFI boot partition which is created by W8 at the beginning of the disk is unique.

Looks good to me, I would have done the same.

  Is there any problem with installing various linux bootloaders in the same boot partition (maybe because kernels get mixed or something)?

There are usually no kernels on the EFI partition. Regarding Ubuntu there are some EFI applications (the bootloader) and minimal grub.cfg files involved that point to the corresponding root partition and the individual complete grub.cfg maintained by update-grub.

Ideally both installs should have created different folders in \EFI\ (mounted as /boot/efi/EFI) like ubuntu and ubuntustudio and os-prober should have properly detected other existing operating systems. If there is an issue with the complete grub.cfg having malformed entries, then we need to take a closer look that this file.

  Is there any problem with installing various linux bootloaders...

Sorry I digress. Yes, I know that installing Ubuntu several times (on separate disks) on a T530 like mine causes issues with the boot order entries in the firmware menu (another installation of Fedora has no problems, just the 2 Ubuntus interfere with each other).

If all OS are on one partition, so you can't boot them even if a default loader exists, then a possible workaround is to create a configuration in the default space that can boot all installed OS.

Install the EFI loader with the removable option:

grub-install --target x86_64-efi --removable /dev/sda

Edit the newly created config file (nano /boot/efi/EFI/boot/grub.cfg) and replace the content with matching menu entries like this for example:

set timeout=3
menuentry 'Ubuntu' {
    chainloader /efi/ubuntu/grubx64.efi
}
menuentry 'Ubuntu Studio' {
    chainloader /efi/ubuntustudio/grubx64.efi
}
menuentry 'Windows' {
    chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Firmware Setup' {
    fwsetup
}

Select to boot from the harddisk instead of an OS entry.

If that doesn't work, pick the grub-mkimage line from my answer in UEFI machine doesn't boot Ubuntu through NVRAM bootcatalog. How to fix? and copy the resulting bootx64.efi to /boot/efi/EFI/boot/.

If there doesn't exist a folder for each OS in /EFI/ make a copy of the existing Ubuntu and replace the UUID of the root filesystem with the UUID of the actual root filesystem in grub.cfg of that folder.

If you need secure boot fucntionality rename EFI/boot/bootx64.efi to EFI/boot/grubx64.efi, copy EFI/ubuntu/shimx64.efi to EFI/boot/bootx64.efi and replace grubx64.efi with shimx64.efi in the example above.

Helpful questions:

How to edit files in a terminal with nano?


I just purchased a Lenovo ThinkPad X1 Carbon Touch and replaced the installed Windows 8 with Ubuntu 13.04. Everything worked out of the box, including the touchscreen. 13.04 isn't really touch-optimized -- you have to hit the scroll bar to scroll a window with touch, for instance -- but that's not the hardware's fault, it recognizes the touch event just fine.

I haven't tried the 13.10 betas on it so I can't say for certain how well they will work on the hardware, but given how solid 13.04 is on the Carbon Touch I'm optimistic that 13.10 will work well too.


how do i access files i do not have permissions for?

You can change the ownership using the following command:

sudo chown newusername.newusername -R /path_to_folder

then you should be able to access your old files.


Yes.  You can change the size of the swap partition, by using GParted.  You can install it from the Ubuntu Software Center.

Remember that gparted won't work on a mounted partition. When you are working on the swap partition, you have to unmount it first with swapoff.  When you are done, to active the new swap space you do it with swapon.

NOTE: You might want to consider doing this from a live/bootable CD or USB, to be safe.  Also keep in mind that anytime you deal with partitions, there is risk involved in doing so.

NOTE: When dealing with partitions, always make sure that a backup is available in case something goes wrong.  You may consider Clonezilla


Xubuntu 16.04 Chrome and Chromium asking for keyring. I want this right, not deleted

"But as far as I know, if I disable it (keyring), the browsers will not be able anymore to save my web passwords in encrypted format."

Not at all

The keyring is just to distinguish different users that may or may not have access to the session.

basically office multi-user machine vs. personal computer. which case are you in? I'm guessing the former.

in which case entering a blank password is the right way to go for you if you are the only user on your system and that noone needs to SSL or other to a session on your machine.

the answers on internet are correct for your case :)


Open a terminal by pressing Ctrl+Alt+T.
Connect the printer to the computer--but don't start it!--and run  these commands:

sudo apt-get install libpng3
sudo apt-get install alien
sudo apt-get install libxml2

Now download the driver for your printer and install it with these commands:

cd ~
wget http://files.canon-europe.com/files/soft24301/software/24301.tgz
tar -xvf 24301.tgz
mkdir iP2200_Linux_260
mv iP2200_Linux_260.tar.gz iP2200_Linux_260
cd iP2200_Linux_260
tar -xzf iP2200_Linux_260.tar.gz
sudo alien --to-deb --scripts *i386.rpm
sudo dpkg -i *.deb

Now:

cd /usr/lib
sudo ln -s /usr/lib/i386-linux-gnu/libpng.so.3 libpng.so.3
sudo ln -s /usr/lib/i386-linux-gnu/libtiff.so.4 libtiff.so.3
sudo ln -s libxml2.so.2 libxml.so.1
sudo ldconfig

Now you have to change the file /usr/share/cups/model/canonip2200.ppd. So you have to run this command in terminal:

sudo gedit /usr/share/cups/model/canonip2200.ppd

Add these lines at the end:

*OpenUI *CNQuality/Quality: PickOne
*DefaultCNQuality: 3
*CNQuality 2/High: "2"
*CNQuality 3/Normal: "3"
*CNQuality 4/Standard: "4"
*CNQuality 5/Economy: "5"
*CloseUI: *CNQuality

Now in the same file (still /usr/share/cups/model/canonip2200.ppd) in the text editor, find these lines:

*OpenUI *Resolution/Output Resolution: PickOne
*DefaultResolution: 600
*Resolution 600/600 dpi: "<</HWResolution[600 600]>>setpagedevice"
*CloseUI: *Resolution

Delete them, and replace them with these lines:

*OpenUI *Resolution/Output Resolution: PickOne
*DefaultResolution: 600
*Resolution 600/600 dpi: "<</HWResolution[600 600]>>setpagedevice"
*Resolution 1200/1200 dpi: "<</HWResolution[1200 1200]>>setpagedevice"
*Resolution 2400/2400 dpi: "<</HWResolution[2400 2400]>>setpagedevice"
*Resolution 4800/4800 dpi: "<</HWResolution[4800 4800]>>setpagedevice"
*CloseUI: *Resolution

Now you have to restart the cups deamon with this command in terminal:

sudo service cups restart

Turn on the printer.
As the printer starts up, the system will automatically search for driver. Select Canon for manufacturer and select iP2200 Ver.2.60 for the printer model. If the procedure for automatically search the driver don't start, open the dash (for open the dash click the windows key on the keyboard) and search for printer.


Putting an & at the end of the command line is detached from the shell and the program continues in the background even though quitting the shell.
Try this:

compiz --replace &
exit

type compiz --help or man compiz for more options.


I'm not sure where you're getting these drive names from but have you tried manually mounting it???

To find all connected drives you can run something like:

sudo fdisk -l

Then, find the drive you are looking for... You can then mount it by running something like:

sudo mount drive_you_found_here  location_you_want_to_mount_to_here

I hope this solves your problem, but again I wasn't sure where you were getting these drive names from...


"STR: Command not found" while assigning a value to a variable

What are you using to create that script? The quote characters you have in your question are wrong. They're not regular double quotes (") but ”. The regular quotes are:

$ uniprops '"' | head -1
U+0022 ‹"› \N{QUOTATION MARK}

While yours are:

$ uniprops '”' | head -1
U+201D ‹”› \N{RIGHT DOUBLE QUOTATION MARK}

So, just use regular quotes and you'll be fine:

#!/bin/bash
echo Hello World
STR="Hello Again"
echo "$STR" ## Get into the habit of ALWAYS quoting your variables as well


Something else is the correct option if you want to dual boot ubuntu with some other OS.
if you can try ubuntu with the bootable USB stick,then you can try to reinstall it.while installing it delete the partition which you install ubuntu last time and recreate it.

as you mentioned that step was also failed try pressing left shift while booting.that will lead you to the grub menu if the installation was correct.if you proceed to that one then select advanced option(recovery mode) like something from the menu.then you can try on variuos options there.

correct way to dual boot ubuntu with windows here


The plymouth service usually isn't to blame because it is simply waiting for other services to finish first. The biggest time drain is from: systemd-journal-flush.service which is described here:

What is the use of systemd-journal-flush.service?

After removing journal flushing at boot time, another helpful thread is here:

Systemd logs (`journalctl`) are too large and slow


Why has my audio suddenly stopped working in 14.04?

In alsamixer, you see HDMI soundcard, (press F6 to access the 2nd soundcard) .
If soundcard order has changed, install pavucontrol (pulseaudio volume control)  , go to "output device tab" and set 2nd soundcard as default with green button.


Does anybody build the lastest sawfish version on lastest ubuntu dist?

Can you try and follow the instructions provided here: http://sawfish.wikia.com/wiki/Compilation_from_source

How exactly does it fail when you tried to build it before?


Nvidia dedicated graphics slower than Intel integrated

Using legacy drivers worked.

I was trying different things and noticed

sudo apt-get install nvidia-current

installs Nvidia 304.125 and not 331.113 drivers. So I did the install.

After that, I was unable to switch graphics with Nvidia Prime. So I removed it

sudo apt-get remove --auto-remove nvidia-prime

and installed Bumblebee instead, as described here: https://wiki.ubuntu.com/Bumblebee

sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic

Note: I restarted my pc after each step just to be safe.

Now my GPU behaves as expected.

It had terribly low performance and was heating up a lot using 331.113 drivers, I guess something is wrong with those, even though it says tested under additional drives window.


Black screen after update was interrupted by laptop switching off

Such a situation can come if the installation is stopped midway. Good news is that all your files are safe there. Also, during update all the required files were already downloaded to your laptop (otherwise installation would not have started.)

So, now you just need to complete the installation process. First, Ctrl+Alt+F1 (or F2, f3, f4 anyone is fine.) Then you would reach the linux console. Login with your username and password there. Then issue the following command:
    sudo dpkg --configure -a

This should complete your update and your system should be back up after a reboot.
If the above gives errors of broken packages, issue the below command:
    sudo apt-get install -f

And then run the above command again.

P.S: Did you really mean Ubuntu 14.10 ?  That's an alpha-release software, NOT meant to be used for daily use. You must switch to 14.04 as soon as possible.


You won't be able to get Windows back as a functional system. Or at least, it's too unlikely to even attempt. However, you have good chances of finding your files. You might want to have a look at the testdisk package for a utility called photorec. It's very good and not too difficult to use, although you should read up before using it.


Serious Problem after upgrading to ubuntu 14.04 to 13.10 while booting

Hold shift during boot to enter advanced options and reset the read mode like in this:
Source

Moved into an answer for clarity's sake for future readers and so it can be answered.


How to find proxy settings used with MATE Terminal or via a web browser

You can go to System --> Preferences --> Other ---> Network Proxy on Ubuntu Mate 15.04


How do I use multiple AMD graphic cards?

Try to install additional driver from system settings>aditional drivers.


Installed wrong teamvierer package now I have unmet dependency problems, how to revert back?

I finally resolved this.  There was a circular dependency: ia32-libs-multiarch:i386 depends on libsane:i386 and vice versa.  apt-get refuses to remove either one because it depends on the other.  Also it refuses to remove them both, if you specify both on the same command line.  For example:

sudo apt-get remove libsane:i386 ia32-libs-multiarch:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libsane:i386 is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 ia32-libs : Depends: ia32-libs-multiarch
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

However it will allow you to install both if you specify them on the same command line:

sudo apt-get install libsane:i386 ia32-libs-multiarch:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
ia32-libs-multiarch:i386 is already the newest version.
The following packages were automatically installed and are no longer required:
  language-pack-kde-en kde-l10n-engb language-pack-kde-en-base
Use 'apt-get autoremove' to remove them.
Suggested packages:
  hpoj:i386 hplip:i386 libsane-extras:i386 sane-utils:i386
The following NEW packages will be installed
  libsane:i386
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
2 not fully installed or removed.
Need to get 0 B/3,554 kB of archives.
After this operation, 8,503 kB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 479536 files and directories currently installed.)
Unpacking libsane:i386 (from .../libsane_1.0.22-7ubuntu1_i386.deb) ...
Setting up libsane:i386 (1.0.22-7ubuntu1) ...
Setting up ia32-libs-multiarch:i386 (20090808ubuntu36) ...
Setting up ia32-libs (20090808ubuntu36) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

After that things are back working and I can remove ia32-libs-multiarch:i386 again.


Music Library will not load in Ubuntu One Music app for Android

Could you look up your mobile username (available at https://one.ubuntu.com/phones/) and email it to me?   martin.albisetti@canonical.com

I'll look into these issues for you.


How to browse by albumartist with rhythmbox or any other gnome musicplayer?

This is a bug in Rhythmbox.

As for alternatives, Banshee
 is very popular, so you could give this a try. I don't use it so I can't give you my experience of it but I hear it has the feature you want.


Should I choose KDE or Qt for an Ubuntu application?

Choosing pure Qt/QML will make it easier to also sell your application on the Phone and Tablet versions of Ubuntu, once the software store is available on Ubuntu Touch, as the KDE libs will not necessarily be available or usable, on those devices.

Choosing to use KDE frameworks may make some things easier when developing, but will also result in a lot more dependencies being pulled in by your package, many of which may be wholly unnecessary for the most part.

Deciding what to use is up to you. You'll have to decide where you want to compromise, and what the target market you want to sell your app to, is.


How can I activate a Panel-icon via a script (or get its screen co-ordinates; to click it)?

How about:

#!/usr/bin/env python

import dbus

# Get a D-Bus interface to Skype
bus = dbus.SessionBus()
skype_object = bus.get_object('com.Skype.API', '/com/Skype')
skype = dbus.Interface(skype_object, dbus_interface='com.Skype.API')

# Ask for permission to control Skype
response = skype.Invoke("NAME " + __file__)
response = skype.Invoke("PROTOCOL 8")

# Issue commands
response = skype.Invoke("SET WINDOWSTATE NORMAL")

It's not as generalized as you wanted, but it might get the job done. For anything other than simple personal use it will need some error handling added in.

Source: Skype Public API Reference


Full screen mode in virtual box. Nothing helps

Had a similar issue and found using this command worked. This was run on the VM not the host.

sudo apt-get install virtualbox-guest-dkms

After that just restart the the virtual machine.


Adobe Reader problem in running: internal error

This seems to be a problem with file permissions for the acroread program. Specifically, on starting up it tries to create a folder .adobe in your home directory. However, due to some reason (perhaps during install) a symlink file of the same name already exists: .adobe --> /dev/null. So, the program throws and error and quits, as seen by running it from the terminal:

  $ acroread

  Acroread was unable to create the directory .adobe in your
  home directory. There may be a permission problem with the parent
  directory.

ls -l ~/.adobe
.adobe -> /dev/null

So to solve this problem, just remove the symlink with:

rm -v ~/.adobe

Now try starting acroread, and it should work fine.


Every Vulkan application crashes on RADV in swapchain creation in Ubuntu 17.10

I got it working by using drivers from a PPA:

sudo apt purge mesa-vulkan-drivers vulkan-utils
sudo apt-add-repository ppa:oibaf/graphics-drivers
sudo apt update && sudo apt install mesa-vulkan-drivers vulkan-utils

According to Phoronix Ubuntu's own repository's driver is broken because of their Mir patches:

  If you have been trying to use the RADV Radeon Vulkan driver that's
  packaged for Ubuntu but find it not working, chances are it's caused
  by Canonical's patches for Mir support.

David Airlie (RADV developer) also blogged about this breakage.


What is netstat -r command used for?What does the different flags mean: MSS, window, etc

From man netstat:

--route , -r
   Display  the kernel routing tables. See the description in route(8) for
   details.  netstat -r and route -e produce the same output.

From man 8 route:

MSS    Default  maximum  segment  size  for  TCP  connections over this
       route.

Window Default window size for TCP connections over this route.


2 Kernels after upgrade to 20.04. One boots (with issues), other doesn't at all

I read in one of the threads to re-install the kernel.

I did sudo apt install --reinstall linux-image-5.4.0-37-generic, rebooted, and worked, including the extra monitor working.


File sharing lost when upgrading to Ubuntu 14.04 from 12.04

Change the ownership with the command:

sudo chown user:group /path/to/disk/folder -R

where user - your username, group - a group the user is belonging to.

Sample:

sudo chown marthy:marthy /Media/main1/3TB2-Extra/* -R

For accessing files locally the samba does not need to be running.


The best way to hide my computer on a network

Obviously the best way is to disconnect it.

When that is not an option, second best is to deny all incoming connections using DROP.

iptables -I INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -p INPUT DROP

This way all incoming attempts to connect to your computer fails. Connections initiated by your computer works. Some special protocols do not, for example you'll encounter problems with UDP. By dropping all incoming connections, active attacker from another network can't find your computer, except if you specifically open connection to attackers computer.

In LAN your computer is still broadcasting ARP packets. You can't prevent that, if you want it working connection.

You should also disable for example avahi-daemon, which is sending MDNS broadcasts.


Persistent locale-related errors and crashes

Even if your /etc/default/locale looks correct, I recommend that you change it to just contain

LANG=en_GB.UTF-8

(which in effect is the same thing).

But the problem seems to be that something in your user settings messes up the locale. I don't know anything about Chrubuntu, but assuming that you have access to the Ubuntu GUI for setting languages, I suggest that you go to System Settings -> Language Support and explicitly set both the language and the regional formats from there.

In any case, it's never ever a good idea to set LC_ALL via /etc/default/locale.


Those folders may be using chinese characters.  Try renaming them to something in English, to remove the special characters.


Losing drivers from try version to installation

Problem solved !

I just had to install the package xserver-xorg-input-libinput. apt told me it was already installed but asked me to launch an autoremove.

I did it, it did some cleaning, some reconfigure. And I got my touchscreen back.


I had a similar issue on lubuntu 18.04.
I needed to change to the corresponding output under configuration tab.


Re-enable working PPA's after ubuntu upgrade

worst upgrade I have gone through (13.10 to 14.04) [i386 version].  Upgrade portion before reboot went fine.  After it restarted, it broke grub, wouldn't boot.  Had to go through the following steps to rebuild grub from a 13.10 LiveCD;  This was in VirtualBox 4.3.10 r93012 VM.

sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev && sudo mount --bind /dev/pts /mnt/dev/pts && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
grub-install /dev/sda
grub-install --recheck /dev/sda
update-grub
exit && sudo umount /mnt/dev && sudo umount /mnt/dev/pts && sudo umount /mnt/proc && sudo umount /mnt/sys && sudo umount /mnt

then had to re-enable PPA's  through "Software and Updates">Other Software and clamtk's ppa can't be found.


As others have mentioned in the comments,you've most likely uninstantiated the gnome-terminal , the default terminal app for Ubuntu and Unity.

In that case the solution is sudo apt-get install gnome-terminal

On the other hand, the possibility could also be that it was replaced with xterm as default terminal app. Ubuntu by default ships with two terminal apps, gnome-terminal and xterm (the last one being the classic terminal app, and is installed pretty much across the linux distros with Xorg graphical server).

To fix the defaults issue, run sudo update-alternatives --config x-terminal-emulator and select gnome-terminal.wrapper from the list of choices.

For instance, here's my output. Don't be surprised - I've installed a lot of terminal apps

$ sudo update-alternatives  --config x-terminal-emulator
[sudo] password for xieerqi:
There are 9 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).

  Selection    Path                             Priority   Status
------------------------------------------------------------
  0            /usr/bin/terminator               50        auto mode
* 1            /usr/bin/gnome-terminal.wrapper   40        manual mode
  2            /usr/bin/koi8rxterm               20        manual mode
  3            /usr/bin/konsole                  40        manual mode
  4            /usr/bin/lxterm                   30        manual mode
  5            /usr/bin/mlterm                   20        manual mode
  6            /usr/bin/sakura                   40        manual mode
  7            /usr/bin/terminator               50        manual mode
  8            /usr/bin/uxterm                   20        manual mode
  9            /usr/bin/xterm                    20        manual mode

Press enter to keep the current choice[*], or type selection number:


I'm not sure why I haven't thought of this before, however the solution was simple.

I just had to modify my grub and add modeset=1 to GRUB_CMDLINE_LINUX_DEFAULT and now can use all 3 ports as I used to (almost but still)

It looks like there is a small glitch though. After login, about a second screens go black. However overall the speed of OS is not effected.


Force Kate to open all files in the same instance

I'm using Kate Version 17.12.3 in Kubuntu 18.04.

For me, if I have an existing instance of Kate running, the default behavior is to open additional documents in additional tabs in the existing instance. This happens whether I click on a file in Dolphin and choose to open it with Kate or if I run kate .bashrc, for example, from Konsole.

Looking at /usr/share/applications/org.kde.kate.desktop, the Exec= line has:

Exec=kate -b %U

For completeness, the .desktop file with extra languages is this:

[Desktop Entry]
GenericName=Advanced Text Editor
Name=Kate
Comment=KDE Advanced Text Editor
MimeType=text/plain;
Exec=kate -b %U
StartupNotify=true
X-KDE-HasTempFileOption=true
Icon=kate
X-DocPath=kate/index.html
Type=Application
Terminal=false
InitialPreference=9
X-DBUS-StartupType=Multi
X-DBUS-ServiceName=org.kde.kate
Categories=Qt;KDE;Utility;TextEditor;

Perhaps you could try this .desktop file in ~/.local/share/applications?

man kate has this in the OPTIONS section:

   -s, --start name
       Start Kate with a given session.

   --startanon
       Start Kate with a new anonymous session, implies -n.

   -n, --new
       Force start of a new Kate instance (is ignored if start is
       used and another Kate instance already has the given
       session opened), forced if no parameters and no URLs are
       given at all.
       given at all.

   -b, --block
       If using an already running Kate instance, block until it
       exits, if URLs given to open.

   -p, --pid  pid
       Only try to reuse kate instance with this pid (is ignored
       if start is used and another Kate instance already has the
       given session opened).

   -e, --encoding  name
       Set encoding for the file to open

       You can use this to force a file opened in utf-8 format,
       for instance. (The command iconv -l provides a list of
       encodings, which may be helpful to you.)

   -l, --line  line
       Navigate to this line

   -c, --column  column
       Navigate to this column

   -i, --stdin
       Read the contents of stdin

   --tempfile
       The files/URLs opened by the application will be deleted
       after use

   file
       File to open

Kate config files

I have the following Kate-related config files:

~/.config $ ls | grep kate
katemetainfos
katemoderc
katepartrc
katerc
kateschemarc
katesyntaxhighlightingrc
katevirc
~/.config $

Perhaps you could temporarily move them elsewhere and see if Kate behave properly then?

Edit:
In view of the revision to the question indicating that the desire is to have only one instance of Kate across all open virtual desktops, the following links are relevant:

Bug 371001 - Kate opens new window rather than tab if on different virtual desktop
Bug 383125 - single window mode is not respected across virtual desktops
Is it possible to respect single window mode across desktops in kde?


Hyper-V host Ubuntu shared folder E514 write error on second write

I ran into the same issue.  I wasn't able to resolve it on the VM side, instead I created network shares for the folders I needed access to and mounted those from the VM.
So far this has been pretty painless, a guide is available for the windows side here:
https://linuxhint.com/shared_folders_hypver-v_ubuntu_guest/
And for the Ubuntu side to enable permanent share mounting here:
https://wiki.ubuntu.com/MountWindowsSharesPermanently


Android should be able to unpack zip archives, at least using additional apps, but that is not related to Ubuntu.

How tightly a file can be compressed depends mainly on its file type. Formats like mp3 are already strongly compressed by themselves, putting them in a zip will not gain much, if anything. Uncompressed formats like wav though can shrink significantly when compressing them.

Other than this rough separation in internally compressed/uncompressed file formats, you can't get an approximate number of how small your files really become other than by simply trying it out.


How to prevent windows from being translucent when switching with alt-tab in KDE?

Answer was found elsewhere:
Open System Settings->Window management->Task switcher (or run kcmshell5 kwintabbox), uncheck "show selected window".


If the raid array is partitioned, then you can use gparted to shrink and/or move the filesystems within it until the second half of the disk is unused.  If it is not partitioned, then you need to shrink the filesystem with resize2fs ( assuming it is ext[234] ).  Give yourself a little extra room just to be sure.  Then you can convert the raid0 into a degraded raid4, which supports reshaping ( raid0 does not, but a degraded raid4 is essentially the same thing as a raid0 ).  Then you can reshape the array down to only one disk, and remove the second disk.

resize2fs /dev/md2 2800M  # 2 3gb drives, left an extra 200mb of margin
mdadm -G /dev/md2 -l raid4
mdadm -G /dev/md2 -Z 2900M
e2fsck -f /dev/md2 # make sure you didn't break things
mdadm -G /dev/md2 -n 2 --backup=backup
mdadm -D /dev/md2 # watch until it is done reshaping
mdadm -G /dev/md2 -l raid0 # drop the second disk and go back to ( single disk ) raid0
mdadm -G /dev/md2 -Z max
resize2fs /dev/md2  # maximize the fs to use the full disk

In the process of testing this, I found that resize2fs would not let me shrink the fs to half of its original size even though it was only 33% used.  I have submitted a patch to fix this minimum size calculation bug.


Use

xterm -xrm 'XTerm.vt100.allowTitleOps: false' -T whatever


after installing Ubuntu 16.04.1 LTS from a bootable drive I can't get the system to run without the pen drive

The problem is almost certainly that your GRUB installation is split across both disks -- the GRUB binary itself resides on your hard disk (either on the EFI System Partition [ESP] if the computer boots in EFI/UEFI mode or in the MBR and post-MBR sectors if the computer boots in BIOS/CSM/legacy mode), but because your main installation is on the USB flash drive, the GRUB configuration file and some other critical files reside there.

If I'm right, there are, broadly speaking, at least three ways to fix this problem:

Move GRUB entirely to the hard disk -- To do this, you should create a /boot partition on your hard disk. Such a partition can be fairly small (~500MB is likely to be enough). You'd need to adjust /etc/fstab to mount this partition automatically, move the current /boot directory's contents to the new partition, and re-install GRUB. The trouble with this approach is that your USB drive will no longer be portable; it will work only on the computer on which you install the system.
Move GRUB entirely to the USB drive -- You can move GRUB so that it resides entirely on the USB drive. Once done, you may need to use the computer's built-in boot manager to select which OS to boot. Details of how to do this depend on whether your system uses BIOS-mode or EFI-mode booting:

BIOS -- In BIOS mode, simply doing a sudo grub-install /dev/sdb (or whatever the USB device is) will re-install GRUB; however, you must then restore the MBR of /dev/sda (or whatever the hard disk is) so that it holds the Windows boot loader. This is basically a Windows task.
EFI -- In EFI mode, you must ensure that the USB flash drive has an ESP, then reconfigure /etc/fstab so that the USB drive's ESP is mounted instead of the hard disk's ESP and re-install GRUB with sudo grub-install. You may also need to delete the EFI/ubuntu directory from the hard disk and/or adjust EFI boot options using the efibootmgr utility.

Abandon GRUB -- Most boot loaders don't spread their configuration files across disks the way GRUB does, and so are likely to work better. Details vary depending on what boot loader you use, though. For EFI, my page on the subject covers available options. I don't know of a page that succinctly summarizes BIOS options, though. In either event, you'd need to install the new boot loader using whatever procedures it requires, and possibly clean up the old GRUB installation in some way. You may also need to re-install the Windows boot loader in some cases.

There are some other hybrid or more exotic options, but I'll leave it at these since they're the most practical and broadly applicable.


Second connected bluetooth speaker always in HSP profile

I managed to solve this problem.
I wrote a script, that monitors bluetooth connections and when the headset connect, I disconnect the speakers via the dbus.
Source
Check out this post to for the original script that I've adapted.
Further, if you run into the problem and want to debug it yourself, d-feet is an amazing tool available on most unix systems to see which interfaces are available via the dbus


How can I control indicator and webapps in unity?

Web apps are basically launchers on your system, along with some code that is run in your browser to provide notifications and other system integration features.

The web apps you have installed are stored in ~/.local/share/applications and in some cases in /usr/share/applications (this is in the case of applications you install using the Ubuntu Software Centre). You can search for Webapps from the Dash and add them to your launcher as well, but you cannot really control them as such by default.

There is an application called Unsettings which allows you to enable and disable specific web applications, or you can do so manually by removing their .desktop files.


USB filesystem not "safely remove"d - file, folder recovery

USB sticks are usually FAT filesystem, I'm not sure what tools there are that might repair FAT filesystem, but you might find that you can read most/all of the files just from Ubuntu (ignoring the I/O errors) then recreate the filesystem to copy them back.

Quite often my partner brings Windows laptops home belonging to people she works with where the filesystems are knackered and Windows won't boot. Usually I can just boot a Ubunu live CD on them and even though you get lots of I/O errors at least Ubuntu will make a "best effort" to read the files where Windows seems less inclined to... so far I've always been able to recover the important stuff (photos, music, work documents etc.) for people.

So long as you don't try to write to the filesystem (you could even mount it read-only to be sure) it won't cause any further damage to just try to copy the files you need off there.


Cannot install Android 2.3 libs dies to missing ia32-libs-multiarch

I've got the same problem with 12.10, and it seems to be this bug: https://bugs.launchpad.net/ubuntu/+source/ia32-libs/+bug/1016294 . The outputs of dpkg --get-selection and dpkg --print-foreign-architectures (as requested in comments to the OP) are empty.

I have resorted to running the 32-bit version in a VM for now, rather than trashing my system as several seem to have done by trying to downgrade :-(


Note: make sure that you have no needed data on the USB, because this is not reversible.

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo umount -l /dev/sdbx
sudo dd if=/dev/zero of=/dev/sdbx

Replace x with your device ID.

Make sure that you format the drive after that.


Setting the hard drive to AHCI but leaving the optical drive as an IDE did the trick.  Installing now.


I think the problem at your Multichannel Output haven't been to configuration completely.

before pulseaudio read from the system-wide file, you need copying /etc/pulse/default.pa to .config/pulse/default.pa. and edit your  .config/pulse/default.pa with adding following :

load-module module-remap-sink sink_name=headphones remix=no master=alsa_output.pci-0000_00_03.0.stereo-fallback channels=2 master_channel_map=front-left,front-right channel_map=front-left,front-right sink_properties=device.description=Headphones
load-module module-remap-sink sink_name=speakers remix=no master=alsa_output.pci-0000_00_03.0.stereo-fallback channels=2 master_channel_map=rear-left,rear-right   channel_map=front-left,front-right sink_properties=device.description=Speakers

update-sink-proplist 0 device.description="Both"

update-sink-input-proplist 0 media.name="Headphones"
update-sink-input-proplist 1 media.name="Speakers"

Hope this helps.


How do I automatically install repast on Ubuntu 12.04?

You can download any version of Eclipse from eclipse website and install it locally from the tarball. Then you will be able to install any plugin, even the ones which are not available in Ubuntu repositories.

Actually, here's a nice answer detailing how to build your own .deb from an Eclipse tarball - just follow the instructions and then install the resulting file. However, Eclipse runs just fine when installed from a tarball too. You also can have more then one version of Eclipse installed this way.


How can I encrypt tar file while it is not created

OpenSSL is somewhat bad for this purpose, first and foremost you would have to give the command a passphrase to be able to decrypt your backed up data afterwards. This password could been read in the log-files then and is only advised where security is not a concern, which is I assume your concern to have the archives packed securely. So my advise is to use GPG for encryption. You can use like done in the commands below gpg(which is actually GPG2 on newer Ubuntu installations) or gpg2 (which needs to installed first on older Ubuntu installations; simply change below command to gpg2). See as well Key generation: Differences between GnuPG classic, stable, modern?.

To do that you need to create a gpg key first with the following command:

gpg --gen-key

You will then be prompted for your 'Real name' which can be any name and for your email address (best using a single name without spaces; see below how this output looks like). Then you will be asked if your given information is correct which you should confirm with 'o' if it is.

$ gpg --gen-key
gpg (GnuPG) 2.1.15; Copyright (C) 2016 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Note: Use "gpg --full-gen-key" for a full featured key generation dialog.

GnuPG needs to construct a user ID to identify your key.

Real name: Videonauth
Email address: videonauth@example.com
You selected this USER-ID:
    "Videonauth <videonauth@example.com>"

Change (N)ame, (E)mail, or (O)kay/(Q)uit? o

After this you will be prompted to give a password to protect the key by a GUI dialog where you have to enter the password twice to make sure it is correct. You should remember that password since its the only way to get your files decrypted later on.

The output goes on like this:

We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: key 338E09237C58EFA0 marked as ultimately trusted
gpg: revocation certificate stored as '/home/videonauth/.gnupg/openpgp-revocs.d/891E441008DE443C53B44AB2338E09237C58EFA0.rev'
public and secret key created and signed.

pub   rsa2048 2017-12-06 [SC]
      891E441008DE443C53B44AB2338E09237C58EFA0
uid                      Videonauth <videonauth@example.com>
sub   rsa2048 2017-12-06 [E]

Now it is a good idea to backup your newly created key into a file which you should store on an USB-Stick which you can keep in a drawer etc. so you have access to this key in case you need to setup a new system and want to import your key. The following commands will create a backup of your keys and important bits which then can be found in ~/Download.

Create an general revocation certificate:

# generate a copy of the revoke certificate
# you need the key ID for this which you can find in
# the before output. In this example this would be
# 891E441008DE443C53B44AB2338E09237C58EFA0
gpg -o ~/Download/key-revocation-cert.asc --gen-revoke 891E441008DE443C53B44AB2338E09237C58EFA0

This will give you the following dialog which I filled out to give an example:

$ gpg -o ~/Download/key-revocation-cert.asc --gen-revoke 891E441008DE443C53B44AB2338E09237C58EFA0
sec  rsa2048/338E09237C58EFA0 2017-12-06 Videonauth <videonauth@example.com>

Create a revocation certificate for this key? (y/N) y
Please select the reason for the revocation:
  0 = No reason specified
  1 = Key has been compromised
  2 = Key is superseded
  3 = Key is no longer used
  Q = Cancel
(Probably you want to select 1 here)
Your decision? 0
Enter an optional description; end it with an empty line:
> Example Reason
>
Reason for revocation: No reason specified
Example Reason
Is this okay? (y/N) y
ASCII armored output forced.
Revocation certificate created.

Please move it to a medium which you can hide away; if Mallory gets
access to this certificate he can use it to make your key unusable.
It is smart to print this certificate and store it away, just in case
your media become unreadable.  But have some caution:  The print system of
your machine might store the data and make it available to others!

Create a copy of your public key:

# This will create a copy of your public key
gpg -o ~/Download/key-public.gpg --export 891E441008DE443C53B44AB2338E09237C58EFA0

Create a copy of your private key:

# This will create a copy of your private key
gpg -o ~/Download/key-private.gpg --export-secret-keys 891E441008DE443C53B44AB2338E09237C58EFA0

To use gpg with your public key you need to import the public key file on your server:

gpg --import key-public.gpg

Let's start with creating a proper line first and testing encrypting and decrypting to make sure a decrypt will work before you put it into crontab or scripts. With all of the above out of the way you can now generate directly encrypted archives with the following command (you need to change the username accordingly to the 'Real Name' you have created your key with).

tar -cv <directory-to-archive> | gpg -e -r Videonauth -o backup.tar.gpg

This creates an encrypted file without ever creating an unencrypted file beforehand, to decrypt it you need to put the file on your machine where you have the private key in your keyring and do the following:

gpg -d backup.tar.gpg | tar -xv

You will be prompted for your key password which you should supply and this unpacks the backup.tar.gpg file on your hdd.

Of course this can as well used to create compressed tar archives if you want to do that, just change the tar commands in the above lines accordingly. For further reading see man gpg and man tar.

You can put those commands directly into your crontab or creating scripts for them.


How to mount an eCryptfs directory on samba access?

This is a long standing bug

https://bugs.launchpad.net/ecryptfs/+bug/277578

  ecryptfs does not work properly over nfs, cifs, samba, WebDAV, or aufs

Workaround - use sshfs : https://bugs.launchpad.net/ecryptfs/+bug/277578/comments/8

Other options: File a bug report re: sudo / su if you wish.


Installation problems concerning available drive space

(For some reason commenting doesnt work :/ )

You will have to re-format your hard drive to a filesystem that linux can use.

Gparted is a great tool for this. Once you have
booted into your live USB connect to the internet, open up a terminal and type in "sudo apt-get install gparted" after its finished installing simply type in "sudo gparted" into the terminal. This should bring up a partion editor, go ahead and re-format the ntfs partion to ext4, click apply and you're finished.

The partion editor can be a bit confusing at first so just use google if you get stuck.


Allow webrick server to be accessed over wifi

If I remember correctly, webrick (I guess you're using script/server) binds only to the local interface. In order for it to be accessible from the outside, start it like this:

script/server -b <your-ip-address>

Obviously you need to enter your ethernet (or wi-fi) IP address for this to work.


I think I've permanently fixed it. This is what I did.

First, I uninstalled all sound components and tools:

sudo apt remove --purge alsa-base pulseaudio* gnome-control-center
killall pulseaudio
rm -r ~/.config/pulse/*
rm -r ~/.pulse/*

Then I identified my buggy kernel:

uname -r

Mine was 4.4.0-131-generic.

I then rebooted and held down shift to enter the Grub screen, and selected the last working kernel, which was 4.4.0-130-generic.

I selected this good kernel, and booted using that. I then purged the bad kernel, updated Grub, re-installed all sound packages and marked the current kernel package as hold so a future kernel update wouldn't break everything all over again, with:

sudo apt-get purge linux-image-4.4.0-131-generic
sudo update-grub2
sudo apt install alsa-base pulseaudio gnome-control-center
sudo apt-mark hold linux-image-generic linux-headers-generic
sudo reboot

I'm not sure if it's important, but the "Additional Drivers" dialog said I was using the driver "oem-audio-hda-daily-dkms". At various times when I was debugging the problem, that dialog would say I was using nothing or something else. I don't remember what my original working setup used, but my current working setup seems to work fine with this package.

After the reboot, sound worked perfectly again, even across suspend/resume.


What is the path to the kernel header files for the 3.13.0-27-generic kernel?

Just give the below path,

/usr/src/linux-headers-3.13.0-27-generic

All the stuffs which are related to a kernal are located inside /usr/src directory.


Utopic cannot detect the second HDD in a USB docking station

The solution was to force the kernel to rescan SCSI bus and look for a specific LUN on the specific SCSI host.  The command in my case was:

rescan-scsi-bus --luns=1 --hosts=15

After that the second had drive appeared in /proc/partitions and I was able to mount it.

To find the id of the SCSI host (in --hosts=15) on your system use the command lsscsi.


NOTE: As there were too many comments to the OP, thus this answer.

Open Grsync from Dash.
Navigate to the folder you want to copy from (highlighted):

Navigate to the folder you want to copy to (highlighted):

Then, click the "gear" icon on the top left beside "i" icon.

A new window will open and if there are any errors it will be shown there. Tell us the error that you receive there.


Libraries are binary files, so you won't be able to see the contents using a text editor or any regular text file reading program like cat, less etc.

Your best bet would be to use strings to read the readable contents from the library.


After some investigation here in the comments, the bug turned out to occur only if the terminal is started up from Rofi's daemon mode. Rofi blocks SIGINT and forgets to unblock it prior to launching the application. Terminal emulators don't unblock it either, except for VTE as of the (now brand new) version 0.44. Rofi has also fixed its behavior.


Partition names in /media change frequently, how to force stable name?

They are stable names, they're just not cool with humans being all hexadecimal. You can write a script to create soft links called disk-01, disk-02 etc


Installing a GUI application in LXD/Docker with a GUI installer

You could use "ssh -X" to SSH into the container and redirect X11 traffic back to your client. That may not be very fast but it should be good enough to go through the installer and get it going.

Alternatively you could use xpra and x11vnc to run the application attached to a fake X11 server and be able to see what's going on through VNC.


Lenovo ThinkPad L520 slows down when AC power adapter is plugged in

Most likely there is some program that runs when AC is plugged in which is taking too much CPU.

The best way to determine the cause is to use the terminal and one of the tools top, atop, or htop. If you understand processes, then what these tools show you will probably make sense; even so, these tools will show you the most CPU-intensive processes at the top when you run them with no switches or options.

If you are new to the command-line, here is a description of what to do:

Run the terminal application.
When you get a display, run the following command string: sudo top (or sudo atop or sudo htop)
Look at the list of processes and see what the top ones are.

The top processes will be taking all of the CPU when your problem arises.


Has the "xkill" command been replaced or removed entirely in Ubuntu 18.04?

This looks like a bug under x11 in 18.04. I've tried this in at least 3 systems before landing to this conclusion. xkill if run in a "Run Command" dialog which appears after using Alt+F2 seems to occasionally don't actually execute the command and return "the cursor" instead of X (cross sign). I haven't found a bug report yet and still searching for it.

As of now you can switch to "Wayland" and xkill seems to work normally under Wayland. To switch to wayland, click on gear icon and select "Ubuntu on Wayland".


Displaying a welcome notification at login

I'm not sure why it isn't working for you, maybe because it runs before Unity is fully loaded. You could try adding a time delay using the sleep command.

I got it work by creating this script:

sleep 2s
notify-send "Hello User" "Welcome back to Ubuntu 12.10" --icon=/usr/share/unity-greeter/cof.png -a "Computer" -u critical

Save this to a file, set it as executable using chmod +x <filename> and add it to your start applications list.

If this doesn't work, try increasing the delay before the notify-send command runs.


Are system-wide Thunar custom actions possible?

I created the software package thunar-custom-actions that provides  system-wide Thunar custom actions. The actions are merged into the per-user .config/Thunar/uca.xml files on every update or on demand.

It's available as a debian package.

This is exactly what I wanted :-)


It is recommended that you install ubuntu last.

So, first you install windows 8 and then install ubuntu. Because when you install windows 8 after installing ubuntu, it will messed up linux GRUB (something like bootloader for ubuntu), and you will be in difficulty on going into your ubuntu OS.

But, when you're ready to handle this, it is not a problem. You can follow a guide from here (that will led you download boot-repair-disk from here).


error: symbol 'grub_file_filters' not found [upgrade Ubuntu18.04 to 20.04]

Great question, this actually just happened to me and I got it working, I did find some really useful information online and I am happy to share it with you. Being that you asked this a month ago I am sure you are most likely not in the same situation but if you are here is what worked for me.
Firstly I have my Ubuntu 18LTS running inside a VM on a ESXI server. This is the one that had the same issue. I also want to mention that my brother had Ubuntu 18LTS running on a raspberry pi 4 and was able to complete the update to Ubuntu 20LTS without any issues which was great to see.
I found the solution that worked for me at: https://help.ubuntu.com/community/Grub2/Installing#via_ChRoot
I was directed to this by finding the help article posted on:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1848797
I did not have anything raided or complicated on my VM so essentially I could skip a lot of the steps, essentially I followed these steps:
Downloaded the same Ubuntu 20 iso from Ubuntu's site (Desktop Image):
https://releases.ubuntu.com/20.04/
Then I attached it to my VM and then forced the VM to boot to bios so that I can set the boot priority for a cd first instead of a HDD.
Then I saved and when it rebooted it allowed me to boot from the iso. I then selected the "Try Ubuntu" selection which gets you into the live Ubuntu version.
Then open a terminal and type in:
sudo fdisk -l

this gave me the needed info for the next step. Then you can mount the HDD you have via:
sudo mount /dev/sdXY /mnt

for me the command ended up being
sudo mount /dev/sdb1 /mnt

Then I mounted the critical virtual filesystems, run this as a single command:
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done

Then Chroot into your normal system:
sudo chroot /mnt

Reinstall GRUB 2:
grub-install /dev/sdX

For me it was:
grub-install /dev/sdb

Recreate the GRUB 2 menu file (grub.cfg):
update-grub

Exit chroot: CTRL-D on keyboard then reboot by using:
sudo reboot


If I modify a note locally in Tomboy, can I upload those changes into the notes in UbuntuOne?

Solution under test: Assign an specific notebook to your notes and you should be able to synchronize them (commit and download changes).

Edit: After two months seems to be working fine. Tested with two computers through ubuntu one.


It worked for me after I opened the console and entered:

winetricks d3dx9_36 dotnet20

I believe that dotnet20 couldn't be installed, so probably the trick was in installing d3dx9_36. I'm running CK2 2.1.4 with ALL DLCs, and it works great. It takes longer to load the files at the beginning, but that's all.


Storing Scripts vs Storing Symbolic Links in /usr/local/bin

Whether you store the executable themselves or a symbolic link to them in /usr/local/bin is essentially just a matter of your personal preference. If it were me, I would probably work with symbolic links to the actual files in a folder under my Documents folder. That way, 1) I would be able to edit them without needing to be root, and 2) they would be safeguarded anytime along with my backup of the Documents folder.
If you are the only one using your scripts, it may be more convenient to store your scripts in ~/.local/share/bin or in ~/bin in your home folder. In Ubuntu, both of these folders are automatically added to your PATH if they exist. Advantages: 1) you do not need to be root to change/update scripts 2) you are the only user having access to them.
If other users need also access to the scripts, /usr/local/bin is the perfect location for that. That folder is not used/managed by the operating system. It is specifically there for your custom home made scripts.
Using these folders prevents the need of having to change the PATH environment yourself.


JRE Unmet dependencies, already have oracle JDK

Yes, the command apt-get -f install installs a new JRE, but that's not a problem, you can correct, if necessary, the default JRE with the command below

sudo update-alternatives --config java

And yes, you could change the dependencies of the package. But that's not really necessary. Read more here, for a solution.


What're the differences between "display", "display-device", "monitor", "screen" in /etc/X11/xorg.conf and the $DISPLAY environment variable?

The physical "screen" is "monitor" in Xorg.
If you have multiple monitor, all of the monitor must fit into your current screen.
For example, I will query my current value with command xrandr
$ xrandr --query

I got the output like
Screen 0: ... current 8960 x 2160, maximum 32767 x 32767
HDMI-0 connected 5120x2160+3840+0 ... 673mm x 284mm
DP-0 connected primary 3840x2160+0+0 ... 597mm x 336mm

screen size 8960 is result of my two monitor resolution 5120+3840
Display
The "display" composed of many screen. Normally we don't have many screen.
You can see your current display by the command w
USER     TTY    LOGIN@   ...
...      :1     13:52   ...

You can see the current display is :1.
Alternatively, you can check it with environment variable.
echo $DISPLAY
// :1


Since Ubuntu 9.10, you just have to follow those few steps :

Install ibus-anthy
Go to System -> Preferences -> Keyboard input methods
Accept to activate iBus (pop-up window)
Add Japanese-Anthy in the Method tab
Disconnect and reconnect
Open an input field (like Gedit for instance), hit Control + Space ; you should be able to type Japanese characters

In order to have iBus launched automatically on boot, go to System -> Administration -> Languages and select iBus as the input method.


laptop overheating also after installing latest kernel

If you have not removed the older kernel versions then you can remove newly installed kernel and then try using older kernels!
See if your laptop still overheats!


Its not possible like that. Job itself doesn't know it is restarting.

I suggest you simply use two different jobs. Job A that does the first variant and Job B that starts up when Job A fails. There is extra information attached to stoppingevent of Job A in case it fails (see http://upstart.ubuntu.com/cookbook/#id109 ), so Job B should have start on stanza such as:

start on stopping JobA RESULT=failed

and

respawn

to keep it up. respawnshould not be added to Job A at all.

This was the job will not start if Job A successfully exits, but only on an error condition.


While updating the ubuntu 16.04 does not have a Release file Error

Remove the erroneous repository with

sudo add-apt-repository -r ppa:linuxgndu/adt-raring

and update your sources:

sudo apt update


Unable to change display resolution Ubuntu 18.04 on Xenserver VM

1.Shutdown your VM.

2.From the command line, find the UUID of your VM:

xe  vm-list  name-label='Name of your VM'

3.Taking the UUID value, run the following command:

xe  vm-param-remove  uuid=UUID  param-name=platform  param-key=vga

4.You can always switch back to the default driver with the following command:

xe  vm-param-set  uuid=UUID  platform:vga=std


Can you help me to understand this explanation of shell quoting?

I've tried to break this down a little bit for you, using your own examples/text as well, check it out:

$ cat fred
#!/bin/bash

fred='Four spaces between these    words.'

echo "The value of \$fred is $fred"

echo "The next line being printed is simply the results of # echo \$fred"

echo $fred

Running the bash script above prints the following to the terminal/stdout:

The value of $fred is Four spaces between these    words.
The next line being printed is simply the results of # echo $fred
Four spaces between these words.

As well, you can view a terminal video of this here:
http://showterm.io/98f56243f60551b338b9f


Installation problems with GRUB, can only install by reinstalling Windows in legacy mode but need to keep in UEFI mode

Boot Live USB in UEFI Mode
If you install Windows in UEFI mode, you will have to install Kubuntu also in UEFI mode.
You should select the boot from "UEFI something USB" or "USB something UEFI" when you boot from the Live USB to install Kubuntu.
If you boot from the LiveUSB in the UEFI mode you will see this screen:

On the other hand if you boot from the USB in the BIOS/Legacy mode you will see:

Immediately followed by:

See for more details https://help.ubuntu.com/community/UEFI
Also make sure Fast Boot is disabled in Windows.


Simply Burn/make Your Bootable CD/USB and then boot off of them :)

Then Click Install Ubuntu And FOllow Up Adn If it Says Install Windows Alongside Ubuntu Just Click On that

If the Option is not available click Something Else adn then shrink your Main Partition and instlal ubuntu there

grub Will configure itself And at each boot you will be able to chose what you want to boot

If this answered your question click answered :)


cannot change keyboard layout any longer

Found it--my bad:

I had tried recently to change some definitions in the layout file (/usr/share/X11/xkb/symbols/se) without any effect, so I gave up. Obviously, I made a mistake which somehow disabled the whole chain of setting the layout properly. That was only activated by the reboot. Reverting the changes and rebooting brought the keyboard layout back.

I still do not understand how this all is connected and why it had this effect, but this issue is solved. Nothing to do with the Ubuntu update other than that I rebooted.


How to change from the Unity DE to Xfce? (Ubuntu 16.04.1)

You should see a small ubuntu logo next to your username on the log-in screen. When clicking it, a drop down menu should present you with the selection of all installed DEs. make your choice and enter your username/password after that.


To most "logical" thing you can do is:

Expand your 4th and last Primary Partition (sda4) which is an
Extended Partition (which merely serves as a container for Logical Partitions) so as to include the unallocated space at the end.
Then create another Logical Partition (or more) at the end of sda4.

However, you can only do this if and when the Extended Partition is (i.e. sda5 and sda6 are) not mounted.

Therefore, I would suggest you use an Ubuntu (or any other Linux, e.g. Parted Magic) Live CD/DVD/USB to boot your computer for this purpose.


How do I get the version number of a snap package?

snap info is in theory what you want. However, it's up to the developer to tell the store what version they've uploaded. The vlc developers haven't done this:-

alan@gort:~$ snap info vlc
name:      vlc
summary:   "The ultimate media player"
publisher: videolan
contact:   https://www.videolan.org/support/
description: |
  VLC is the VideoLAN project's media player. It plays MPEG, MPEG-2, MPEG-4,
  DivX, MOV, WMV, QuickTime, WebM, FLAC, MP3, Ogg/Vorbis files, DVDs, VCDs,
  podcasts, and multimedia streams from various network sources.

channels:
  stable:    daily (4) 120MB -
  candidate: daily (4) 120MB -
  beta:      daily (4) 120MB -
  edge:      daily (4) 120MB -

However with other snaps the developer has, e.g:-

alan@gort:~$ snap info atom
name:      atom
summary:   "A hackable text editor for the 21st Century."
publisher: flexiondotorg
contact:   snappy-canonical-storeaccount@canonical.com
description: |
  Atom is a free and open source text editor that is modern,
  approachable, and hackable to the core.

commands:
  - atom
tracking:    edge
installed:   1.16.0 (2) 150MB classic
refreshed:   2017-04-21 16:35:56 +0100 BST
channels:
  stable:    1.16.0 (2) 150MB classic
  candidate: 1.16.0 (2) 150MB classic
  beta:      1.16.0 (2) 150MB classic
  edge:      1.16.0 (2) 150MB classic

I would consider this a bug in the upstream package and the developer should resolve it.


Try this:

Download: http://www.linuxliveusb.com/ and run it;
Use linuxliveusb to extract and modify the contents of your Ubuntu ISO to your USB drive (make sure to select 'format to FAT32');
When linuxliveusb is finished, close out of the window and continue reading >>>

Because you haven't given me specifics on your machine, I have no idea weather your PC uses UEFI or regular BIOS and what key it uses to access those menus, so I'll try to help you with as many key combinations I know. Here are the instructions to UEFI:

Reboot your PC. When the screen goes blank, press and hold 'F9'. If a menu pops up, go to step (). If not then try rebooting with this list of key combinations (one per boot, though):

"F1", "F2", "F6", "F8", "F10", "F11", "F12", "DELETE", "BACKSPACE", "ESC".

If this works, use your up and down arrow keys to select different devices. You will want to look for the USB drive you named or linuxlive named (linuxlive will most likely name it 'MYLINUXLIVE'). When you find it, select it using the 'ENTER' key and look for a folder named 'boot'. Enter that that folder then look for a folder named 'grub'. If there is another folder, enter it and select the top most file. If that doesn't work, try the next file. If that doesn't work then navigate back up to the 'MYLINUXLIVE' folder and enter the folders 'EFI' then 'BOOT'. Select the top most file again, and if that doesn't work try the next.
If none of these options worked for you, consider finding details about your PC (like manufacture and model), and post your specs back to askubuntu. Sorry if I could be no help. :C


How do I use gdrive to upload a file to a Google Drive directory?

I think this is because the -p flag is looking for a Parent ID and "Ward" isn't a valid ID. Unfortunately life is not as simple as just using the plain English folder name!

You can find the ID of a folder by navigating to it in Google Drive, then look at the URL. It will be something like:

https://drive.google.com/drive/folders/1dJqBRKIgUMKPipCtsAifIHpEmOUfRd7j?ths=true

The ID is this bit:

1dJqBRKIgUMKPipCtsAifIHpEmOUfRd7j

Try finding that for the Google Drive folder you're wanting to upload to, then use that in the -p flag instead of "Ward" and it should work.


Bursts of white noise sound when playing videos

To confirm if this is a pulseaudio issue, I would temporarily disable pulseaudio:

echo autospawn = no|tee -a ~/.pulse/client.conf && killall pulseaudio

Then in MythTv - Utilities/Setup - Setup - General change your Audio settings to ALSA:default

To revert to pulseaudio:

change the value of autospawn=no to autospawn=yes in ~/.pulse/client.conf

Then logout and login

Once confirmed as a PulseAudio issue, you perhaps have three choices:

File a bug report with the MythTV developers and hope that they fix the issue.  You'll need to be proactive with them to enable them to help you etc.
Look at the existing 10.04 pulse-audio bug report and see if the same or similar patch can be done to the Oneiric MythTV sources - not for the faint-hearted!
Look at just use ALSA:Default as the MythTV audio-setting.  You shouldnt need to kill the host pulse-audio - thus multicasting etc should still work.  You may need to enable the MythTV software controls to change sound settings.  Alternatively/Additionally, install gnome-alsamixer or just alsamixer to control your audio settings such as volume, enabled speakers etc.


Can't move windows to another workspace anymore

You can install this extension to enable this.

NOTE:

Before you install the extension, you will need to install the GNOME Shell integration for your web browser and you will need to install the chrome-gnome-shell package using sudo apt install chrome-gnome-shell

Then you need to flip the switch in the top right corner of this webpage.

To answer the first part: ctrl-alt-shift + up/down works, but left and right don't


Unable to install Win font on Ubuntu. couldn't be accessed by user '_apt'

It's two things mixed up:

"Can't drop privileges..." is a warning, which you can just ignore. That warning is usually followed by a confirmation that the file was downloaded.

However, the attempt to fetch arialb32.exe was a real failure ("Hash Sum mismatch"). May be caused by a temporary server glitch; you can try again by reinstalling:

sudo apt install --reinstall ttf-mscorefonts-installer


Ubuntu 16.04.1 Install does not activate network adapter

wl is a wrong driver for your wireless adapter. Remove the wl driver by

sudo apt-get purge bcmwl-kernel-source

and reboot. Wired network should work after that. Connect by wire and run

sudo apt-get install firmware-b43-installer

After reboot both wireless and wired adapters should work.


BTRFS partition's data usage is double the amount shown by DU or NCDU

Have a look at the output of btrfs fi usage /. Especially note what's indicated on the Device allocated: and Used: lines.
Because btrfs uses a two-stage allocator, it first allocates disk space into block groups (such as DATA), and then allocates extents within them for actual file data. After some use, it's possible to end up with a lot of data allocated but not used - by itself this is not a problem, but can be fixed with a balance (which would reclaim the unused space to be used for other block groups, such as METADATA).
Also, since you mentioned ncdu, you may want to check out btdu, an ncdu-like tool I made for btrfs. It may help you better visualize what disk space is being used for.


How to edit the NetworkManager connections while not live

In Ubuntu Server 16.04, running headless, that is, with no running desktop environment, Network Manager will not be running and will therefore not be the location of network settings.

I suggest that you edit the file /etc/network/interfaces to change the WPA2 password. The file will probably read something like:

auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet static
address 192.168.1.150
netmask 255.255.255.0
gateway 192.168.1.1
wpa-ssid <your_router>
wpa-psk <your_old_wpa_key>
dns-nameservers 8.8.8.8 192.168.1.1

Change the password, save and close the text editor and you should be all set.


Speakers still on when headphones are present (RealTek ALC 262)

I also have a Lifebook E8110.
I had the same sound bug on Ubuntu 12.10 OS.

I can switch sound output to the audio jack plug from internal speakers via hda-jack-retask application.

Type

gksu gedit /etc/apt/sources.list

in terminal.

Add the appropiate strings according to "Technical details about this PPA" on https://launchpad.net/~diwic/+archive/hda link.

Save the file and quit the text editor.

Then type

sudo apt-get update
sudo apt-get install hda-jack-retask
hda-jack-retask

Check the override boxes in "Black Headphone, Front side" and "Black Headphone, Docking station, Left side" sections.

Press "Apply now" and "Install boot override" buttons.

Source forum:

http://voices.canonical.com/david.henningsson/2011/11/29/turn-your-mic-jack-into-a-headphone-jack/


How to monitor my data limit on a mobile broadband connection?

There is a package for this called modem-manager-gui:

Canonical's repositories currently contain recent versions for Ubuntu Trusty and newer. For Precise (and earlier) use this PPA:

sudo add-apt-repository ppa:linuxonly/modem+manager+gui
sudo apt-get update
sudo apt-get install modem-manager-gui

See the official site.


How to resize a partition on a server without a display?

Use parted:

parted device resize minor start end

Resizes the partition with number minor from device device. The partition will start start from the beginning of the disk, and end end from the beginning of the disk. resize never changes the minor number. Extended partitions can be resized, so long as the new extended partition completely contains all logical partitions.

Note that parted does not require a file system to be "defragged" (parted can safely move data around if necessary).

Supported file systems:

ext2, ext3 - restriction: the new start must be the same as the old start.
fat16, fat32
linux-swap
reiserfs (if libreiserfs is installed)

Example:

sudo parted -i /dev/sda resize 3 200 850

Resize partition 3 from /dev/sda, so that it begins 200 megabytes and ends 850 megabytes from the beginning of the disk. -i (--interactive) prompt for your intervention, where necessary.

Source: Parted User's Manual.

See also man parted for more info.


What you're missing here is NAT rules so the system knows how to route traffic from inside the network to outside.  However, we have a problem here:  You've provided us to network interfaces, both of which have private IPv4 addresses.  This makes handling the NAT rules a little trickier.

Given, though, that only one interface has a gateway (enp0s31f6) I will be operating under the assumption that that interface is the Internet-connected interface.

NAT stands for Network Address Translation.  If you want to know more about how NAT works, there is a decent layman's guide to NAT produced by the How Stuff Works (.com) website if you want to learn a little bit more about how NAT works.

The actual description of how NAT behaves is not as relevant to answering this question, but basically, it takes packets going to the Internet from the private IP space (with the source address of 192.168.0.10 for example), and translates the packet before rebroadcasting to the Internet (typically) so that the 'Source' address looks like the public IP address of the router.  This NAT 'session' is remembered until the connections for that session are terminated, which means the router can also do the reverse NAT rules so the Internet's packets end up properly at the internal IP address.  (The How Stuff Works guide is better than this at explaining NAT; this is just a quick and dirty description)

Now, to make your 'router' work.

You need to add NAT rules so that the private subnet (on enp5s0) is permitted to go out to the Internet posing as the server.  This is called a MASQUERADE in iptables terminology.  This is how the standard off-the-shelf routers work, and they all use NAT to translate the private IPv4 addresses into public ones so that communication with the Internet behaves seamlessly.

This is the command you should start with:

sudo iptables -t nat -A POSTROUTING -s 192.168.1.0/24 ! -d 192.168.1.0/24 -j MASQUERADE

Let me break down this so you can understand what this rule is actually doing.

sudo iptables - Execute the iptables command as superuser.
-t nat - Adjust the NAT rules on the system instead of the Firewall access control/filtering lists.
-A POSTROUTING - Add to the post-routing NAT table.
-s 192.168.1.0/24 - Match on traffic originating from the private IP subnet...
! -d 192.168.1.0/24 - ... where the destination IP address is not the private IP space of the subnet...
-j MASQUERADE - ... and retransmit this packet over the primary network interface (in this case, enp0s31f6), translating the packets' IP address so it looks like it originated from the 'router' / server to anything seeing the packet outside of the private IP space.

So, a packet originating from 192.168.1.10 going to a server on an IP address outside of 192.168.1.0-255 will look like, to that other server, that the packet originated from 192.168.0.5 (your server), instead of the origin of 192.168.1.10.  The system will remember this translation, though, so that it can take response packets destined to 192.168.0.5 and make sure they are properly addressed to return to your 192.168.1.10 address.

However, there is one problem: this will not be saved after a reboot.

So you should install the iptables-persistent package so that this NAT rule is reloaded every single time you boot.**

sudo apt install iptables-persistent

When it prompts you to save current IPv4 and IPv6 rules, you should select "Yes".

Also, this 'default' of not having any firewall rules, while good in theory, makes your system vulnerable to attack from the Internet at large, and you should really touch base with any of the basic iptables guides on how to properly secure the server/router so that the outside can't directly attack the server.  This is, however, outside the scope of your original question, and if you want assistance with better securing the private network from the Outside ("Internet"), then you should consider asking that as its own question.


New Install Ubuntu 13.04 renders laptop slow and weak Help me with my hardware

I've installed Ubuntu 13.04 in such specs and it works fine. Make sure you've done a full installation without errors and why not try the 64bit version of Ubuntu


plymouthd crashes on startup - Intel HD 3000 - 15.10

The solution for me was to tell plymouth to use framebuffer with these steps:

echo "FRAMEBUFFER=y" | sudo tee -a /etc/initramfs-tools/conf.d/splash && sudo update-initramfs -u -k all


Docky is closing when I plug/unplug the AC cable

You should write a pm script as described in this page:

http://www.linux-compatible.com/tutorial/docky-closes-after-waking-suspend-ubuntu