How to see whether installed CUDA is 32-bit or 64-bit?

file /path/to/cuda/bin/executable

I.e.,

file /home/user/cuda/bin/cudademo


How to check the integrity of downloaded big mkv files

As you do not have checksum info for the file (CRC32, MD5, SHA-1, SHA-256, etc), you could try to validate the Mastroska format itself.

  mkvalidator is a simple command line tool to verify Matroska and WebM files for spec conformance. It checks the various bogus or missing key elements against the EBML DocType version of the file and reports the errors/warnings in the command line.

To use:

mkvalidator --details your-big-mkv-file.mkv

However, mkvalidator could only validate the structure of the Mastroska container, not the "payload" (i.e. A/V data) in it. To validate the data portion, you still need a decoder to see if it decodes correctly. From https://superuser.com/a/100290 :

ffmpeg -v error -i file.avi -f null - 2>error.log

This command uses ffmpeg to read in the mkv file and tries to decode it frame by frame. Any errors found in the decoding process will be recorded in error.log file.


How can I install Google Play Store on Ubuntu Mobile

You can not install apps from Google Play Store on Ubuntu Touch, nor can you install google play on Ubuntu touch.
You can install a VPN on Ubuntu Touch, following this guide https://ubports.com/blog/ubports-news-1/post/vpn-on-ubuntu-touch-3022.
I do not know how well Ubuntu Touch is supported on the Samsung Note 4.


Installing python modules to non-default interpreter [Ubuntu 10.04]

You can get the source of the given python module and build it with python2.7:

$ python2.7 setup.py build
$ python2.7 setyp.py install --user --record files.lst

(You can then remove the thing with $ cat files.lst | parallel rm -rf {})


When you installed opam i think you used command :

wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin/
opam init

In this shell script it is using version 1.1.1. so every time you run

opam init

and it try to install same package. so if you have that shell script then open it and change

VERSION='1.2.2'

and rerun using

opam init

or
you can use PPA also.

sudo add-apt-repository ppa:avsm/ppa
sudo apt-get update
sudo apt-get install ocaml ocaml-native-compilers camlp4-extra opam

and try to upgrade or reinstall.

or

you can download latest per-compiled binary from opam binary
and copy downloaded file to /usr/local/bin

sudo cp <downloaded file> /usr/local/bin

and use it.

For more info : Opam install Documentation


There is a sshfs option.

SSH must be activated (there is a procedure that involves adb).

RSA authentication should be set up to avoid entering the password every time (there is another procedure that involves ssh-keygen and ssh-copy-id).

The phone on my WiFi has an IP 192.168.0.11.

It is accessible on the desktop Ubuntu through the file manager using address sftp://phablet@192.168.0.11/home/phablet


'Appearance' icon not showing in 'System Settings'

Along with screen shot as lucio said, also explain your last activity what you remember that may affect appearance. Before that check in Ubuntu software center weather the "appearance" was ticked(installed) or not. You may have uninstalled appearance accidentally.


Wireless interface stopped working after routine updates

"Hard blocked: yes" strongly suggests that the hardware switch and/or key combination, Fn+F5 on my Lenovo, is set to turn the wireless radio off. Please find the switch and turn the radio on. In some countries, including the USA, there is a key combination as well as a separate wireless slide switch.


I checked that repository and noted that the install file is not executable. Thus you must first take care of that:

chmod +x ./mn-ccnx/util/install.sh

And then you can run the script:

./mn-ccnx/util/install.sh

You will be prompted for your password for the changes required to the system.


How to get world clocks to show on the task bar in Ubuntu 18.04

GNOME Clocks should work fine if it's set up correctly. However, if you have installed the application from the (GNOME) Software application, there is a chance that you have installed the snap version of Clocks. You can verify that by running snap list and checking whether the output contains gnome-clocks.
If that is the case, this behaviour is not very surprising given the security restrictions of snap packages. To fix this remove the snap application by running
snap remove gnome-clocks

and install the traditional one by running
sudo apt install gnome-clocks

Then you should be able to find added time zones in the date & time dropdown tray (N.B. You may have to log out and back in).


Is it possible to use the Raring install image as a package repo (like the old alternate CD)?

I just answered a similar question, You can check the answer over HERE

To summarize the steps I described there,

You need to make a folder in /media and mount the iso to that folder. You can do so by running the following command as root

mount /path/to/iso /media/mountFOlder -o loop

Next you should add the following lines to your /etc/fstab file (Always make a backup before making any changes to this file)

/path/to/iso /media/mountFolder      iso9660 loop,ro,user,noauto 0 0

Then you need to make an entry in /etc/apt/sources.list pointing to the repos in the iso. I don't know what that should be for ubuntu, but for debian it should be

deb file:/media/mountFolder/ wheezy main contrib

where wheezy is the name of the current release of debian and main and contrib are the two repositorys. You should comment out everything else.

Next you should run apt-get update as root and then any installation using apt-get install packageName should run without internet now.

That's all. If you want to auto mount the iso everytime you boot, you should remove user,noauto from the entry you made in /etc/fstab


DVD drive can only read one DVD, 21 Jump Street

I performed an update and rebooted and that fixed the problem seemingly.


Stop gnome-screensaver from auto-launch with gnome session

Finally, used sudo find / -iname "gnome-screensaver.desktop", which showed me the presence of gnome-screensaver.desktop in /etc/xdg/autostart/, which was responsible for trying to load the uninstalled gnome-screensaver at each startup. Removing this file removed the error from syslog.


usb 3-4: device descriptor read/64, error -71 - But the device doesnt exist

Pathically reset bios (jumper) was a cure form me. Gigabyte m720 us3


How to prevent the "Flash is required" popup from showing in Firefox and Chrome?

You can install an extension that blocks the Flash plugin execution in Firefox.

I use NoScript, it has a lot of other functionality:

https://addons.mozilla.org/en-US/firefox/addon/noscript/

There is another simpler one called Flashblock that does just that:

https://addons.mozilla.org/en-US/firefox/addon/flashblock/


The last updated image "This kernel requires x86_64 CPU but only detected an i686 CPU" indicats that you are trying to run a 64-bit Linux guest but your host does NOT support VT-x or AMD-V.

Please run this command to make sure your CPU is capable of Intel VT-X or AMD-V

egrep -wo '(vmx|svm)' /proc/cpuinfo

Example on a Core i5 CPU

$ egrep -wo '(vmx|svm)' /proc/cpuinfo
vmx
vmx
vmx
vmx

Make sure 2 things

VT-x or AMD-V is enabled in HOST BIOS
In the VM settings - System Acceleration - tick Enable VT-x / AMD-V


No startup: "cannot find 'writable' partition"

I don't really know how my last few neurons got to this conclusion, but after hours of searching and staring at this mail and this diff, they concluded that maybe ubuntu-core was the culprit. So I uninstalled everything I found related to it:

2017-05-24 15:52:54 remove initramfs-tools-ubuntu-core:all 0.7.43 <nessuna>
2017-05-24 15:52:54 remove ubuntu-core-config:all 0.6.40 <nessuna>

And it worked eventually! Probably initramfs-tools-ubuntu-core put a bugged script into initrd somewhere in the past updates.

Other two words about this kind of bugs:

they're really hard to catch, debug=y and systemd.log_level=debug in the kernel command line are of some help, but tracking exactly who is doing what is really difficult.
to reinstall may sound as an attractive option after hours of debugging/rebooting, but it's a very short-term solution. Almost always the right approach is to understand what's causing the bug, solve it and write down the solution for your future self and others.


HP Mini (210-1000SA PC), fan always running

As in this questoin they might not exist Can not view fan speed rpm in hp 4530s laptop

Also what is the cpu useage on your netbooks fan running. Also on my hp pavilion dv 6 1230 us there is a bios option for turning always run fan on or off but the implementation of that is specfic to the netbooks motherboard. I also would see if your cpu useage on your netbook is high and maybe check the temperture and make sure it is not hot. If you turn the fan off during heavy load the laptop might overheat. One convient feature is lxpanel is you can add a temperture monitor to lxpanel by right clicking lxpanel panel settings panel applets and click add and select temperture monitor. However this does require hardware support and does not always work. You can check cpu useage in lxtask which can be started with the keyboard shortcut control alt delete. If you cpu is running hot like 70 or 80 degrees centigrade turing the fan off can cause overheating and damage your hardware.

If you are sure that the fan is running when it should not be under low load and temperture you may want to look into the fan control program but that may not always work.


Problem with unity-control-center in Ubuntu 16.10

It seems that you have broken packages. Try with the command

sudo apt-get -f install

in a terminal (Ctrl+Alt+t). This should solve the problem. If it doesn't, post the result of the command

unity-control-center

It should be helpful to solve your problem.


Install dconf-editor with

sudo apt-get install dconf-tools

hit Alt+F2 and dconf-editor.

go to org > gnome > desktop > applications > interface.

look for toolbar-style change it to both-horiz may be it is currently both in your case.

both-horiz = icon and text in horizontal line as it's in your 2nd screenshot
icons = only show icons
text = no icon only text
both = icon and text in a vertical line


On your host, visit: Oracle VirtualBox, look for

  VirtualBox 5.1.16 Oracle VM VirtualBox Extension Pack

Download the appropriate extension pack.
Once downloaded, install the extension pack.

Follow these instructions for Windows Host or Linux Host

Basically, the message above is telling you that a feature/setting which is enabled on the virtual machine requires the extension pack to start.


sluggish video. ubuntu 16.04, core 2duo 2.00Ghz

Ok there are a number of considerations with re-purposing older hardware (and congrats on re-purposing rather than throwing out!).

Any ability to upgrade RAM and HDD will provide a benefit. A lot of laptops have ready access to RAM and HDD compartments (just under a couple of screws on the underside of the laptop). Search on youtube/google for "Dell Inspiron RAM & Hard Disk Replacement / Upgrade" or similar. RAM is very cheap, just make sure you check on say Dell website or google for the Inspiron 1720 manual so you can see what RAM is compatible. SSD's offer a huge improvement over old spinning hard drive and are reasonably priced these days.
Desktop environment. Google for "linux desktop gnome, lxde, unity, kde ram usage", there are lists of how much RAM each kind of desktop environment uses. Lubuntu and Xubuntu are generally decent choices given your graphics card appears to have very limited RAM of 384Mb.
Unnecessary apps. Remove anything you don't need. Deja Dup backup is one I usually remove straight away as I personally find it slows my system down... a lot. Remove other things you don't need like printer deamons if you don't print, snap if you don't need containerized apps, etc
Lightweight app alternatives. Firefox and Chrome can be a bit heavy on memory usage. Lightweight browsers include IceWeasal and Midori. Again google for options. When streaming videos don't stream in 1080p, you'll have to be satisfied with lower resolutions (perhaps 480p or less).
Let another machine do all the heavy lifting. If you have another higher spec'd pc available you may be able to leverage that machine to do all the 'heavy lifting' for you. Use something like X2Go, Xpra, FreeNX, VirtualGL, etc to run applications on the better machine, with the output directed back to your laptop. This kind of scenario is generally referred to as a thin client solution.
Proprietary vs open source graphics drivers. I think given the age of your laptop this won't make much difference but perhaps if you've tried everything else without decent results then installing a proprietary graphics driver could assist.

Last resort is to actually choose a lighter distro. I've personally found Porteus OS to be very responsive on old hardware (I had it running in 384Mb of system RAM on a very very old laptop). Google for "linux lightweight distros"


Kubuntu: no display configuration tool after upgrade from 12.10

ok, so installing kscreen seems to solve the issue:

apt-get install kscreen

The dialog is also available in KDE System Settings > Display and Monitor

The old configuration dialog which I've used to run from krunner by command display seems to be broken.


No Wi-Fi Adapter Found on Ubuntu 18.04 (iwlwifi) - (Intel Wireless 3160)

We note that several of the "solutions" that you have tried involve compiling a driver for Realtek hardware. As we see from your lspci, your wireless driver is iwlwifi. You have an Intel wireless device, not a Realtek. Any driver you install for a Realtek device will be ineffective.

It is fairly common for new users of Ubuntu to read a forum post about solving a wireless issue and then blindly apply it to their system. They are usually disappointed when there is no improvement. While it is not dangerous to add a new wireless driver that your system doesn't even use, it is futile if you don't know what driver you have. I urge all Ubuntu users to determine what wireless driver they have before applying any fixes to the system. You can do so with the terminal command:

lspci -nnk | grep 0280 -A3

After determining, for example, that you are using the driver iwlwifi, if you are having difficulties, search only for answers applicable to iwlwifi, such as "slow wireless" iwlwifi or "connection drops" iwlwifi.

We also notice from your paste that you are running Network Manager and ConnMan. It is not surprising that you are getting confusing messages from Network Manager. It is telling you that it doesn't know what is happening as it is no longer in charge.

As ConnMan is really designed for embedded applications, Raspberry Pi, doorbells, routers, et al, and you appear to have an ordinary desktop installation, I suggest that you remove ConnMan. It is obviously not doing a good job for you.

sudo apt purge connman

Next, your resolv.conf file is faulty. Let's fix it:

sudo rm /etc/resolv.conf
ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

Reboot and let us hear the result. Do you connect and reach the internet?


Ubuntu 14.04LTS graphics driver: How do I revert to my former set up when I have no display?

Open a text-only virtual console by using the keyboard shortcut Ctrl+Alt+F3.
At the login: prompt type your username and press Enter.
At the Password: prompt type your user password and press Enter.
Now you are logged in to a text-only virtual console, and you can run terminal commands from the console. Remove the proprietary Nvidia driver:

sudo apt-get purge nvidia*

To reboot the system from the console run the command: sudo reboot. After you reboot, Ubuntu will revert to using the open source Nouveau display driver. Press the keyboard shortcut Ctrl+Alt+F7 to exit from the virtual console (without rebooting). In Ubuntu 17.10 and later to access the GUI from any virtual console press the keyboard combination Ctrl+Alt+F2.

Ubuntu has a built-in command-line utility, ubuntu-drivers-common, for detecting and installing additional proprietary Ubuntu driver packages and their dependencies. The autoinstall command of ubuntu-drivers installs drivers that are appropriate for automatic installation including their dependencies by running the following command:

ubuntu-drivers autoinstall

Ubuntu also has a built-in Additional Drivers GUI utility that will help you to choose the correct proprietary driver for your graphics card. You can always revert to using the open source graphics driver if the proprietary graphics driver doesn't work.

⠀⠀Additional Drivers


How to configure to record data to pendrive instantly?

Following the question (and answer) that @arrange shows in his comment, let's create a new file

/etc/udev/rules.d/11-media-by-label-auto-mount.rules

and write into it the following content (see udev::Mount under /media; use partition label if present)

KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"

# Import FS infos
IMPORT{program}="/sbin/blkid -o udev -p %N"

# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"

# Global mount options
ACTION=="add", ENV{mount_options}="relatime,sync"
# Filesystem-specific mount options
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,uid=1000,gid=1000,umask=002"

# Mount the device
ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"

# Clean up after removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"

# Exit
LABEL="media_by_label_auto_mount_end"

I have done some little modifications with respect to that reported on the website

added the sync option to ENV{mount_options}
modified the gid=100 option to uid=1000,gid=1000, where the number are relative to your used-id and group-id, as returned by id -u and id -g

The second one make you the owner of all files on the mounted partition, so no permission problem can arise. Obviously this is not the case if more than a single user should access the files, but this can be handled in other ways.

For non-windows filesystems, owner and group are metadata on the filesystem, and cannot be changed by a mount option.

The new rule is immediately active (udev uses inotify to detect new and modified rule files).

The mounted drive is not automatically opened in a file manager window, as you can see, and this is difficult to achieve, given that the mounting process is owned by root, and do not have access to your graphical login session. But the drive is on your desktop, so a simple double-click will open it.

Unfortunately I cannot get the desktop right-click unmount to work, but this is not a big problem: having the sync option in place, you can simply unplug the device, and the udev rule take care of removing the entry from /proc/mounts and removing the mount-point.


Why is wget much faster than downloading via Chrome?

wget normally works a little bit faster than Chrome because it's a terminal program so there is less resource usage overhead, but that would not explain such a large difference in download speeds between wget and Chrome. You probably have an issue with downloading that large file in Chrome. wget is a better tool than Chrome for downloading large files, if you don't have to solve a captcha in order to download the file.


Open a terminal, navigate to your folder and then try using this command:

./install.pl

if the perl script does not contain a path to the perl executable, you'll have to run it manually as a perl script:

perl install.pl

If none of above works, try setting executable permition to the file and try again.

chmod +x install.pl


Is there a way to automatically pseudo-randomize a MAC address?

Yes, there is such a tool and it's called MACCHANGER. It is available by default in the Ubuntu repos, so you can just install with

sudo apt-get install macchanger

See this section of the Ubuntu wiki, also for some caveats.


The package ntfs-3g has its own manual page available here.
In particular:

permissions: Set standard permissions on created files and use standard access control. This option is set by default when a user mapping file is present.


If you are OK with suspending instead of hibernating, you can try this:

Before you click "Power Button" - press "Alt"
OR

Click "Power Button" and hold it.


It is usually saved in the home folder.

To find it, run the following command in a terminal:

find Firefox_wallpaper.png


defining and activating my wifi for lenovo b5400 for noob

Just go to the drivers section and activate the driver. But as far as I'm concerned you'll need an Internet connection to install it (i.e. LAN). At least that worked for me, but I use Ubuntu GNOME 13.10

Why do you want to install Ubuntu 12.04?


Make a Linux install CD on a Mac but Use it to Install Linux on a Windows Machine

First, download Ubuntu either 32bit or 64bit, according to the CPU that you have  onto your MAC.  Then see How to burn a DVD, or How to create a bootable USB stick using OS X.  and follow the Guide here.


Ubuntu from USB on HP Stream 11 - initramfs mount failure

(initramfs) mount: mounting /cow on /root failed: Invalid argument

This is symptomatic of Ubuntu bug #1489855 which was only fixed in version 19.10.

Did you enable persistence in Rufus? Coz that won't work with 18.04 due to the bug above.

If this is what you did then you basically have two choices:

Use Ubuntu 18.04 and make sure to disable persistence when creating the drive in Rufus
Use Ubuntu 19.10


Thunderbird does not (always) ignore folders

I believe under the folder's Properties you also have to go to the Synchronization tab and uncheck Select this folder for offline use.


Touchpad stops working after desktop shows up

I encountered a similar issue on my MacBook Pro when upgrading to Ubuntu 11.04. On the off-chance that it's the same issue, have a look at the solution I posted on askubuntu.


Is there a way to paste shortcuts in Ubuntu as in Windows?

You can do it in Nautilus (the equivalent of Windows Explorer) within Ubuntu.

Let's say you want to make a shortcut of

/home/your_name/source_folder

inside another folder called

/home/you_name/dest_folder

1. Drag and drop

Hold down Ctrl+Shift and drag the source_folder with the Left mouse button into the dest_folder.

2. Right Click Menu

Right click on the source_folder and choose Make Link. A new folder called "Link to source_folder" will be created in /home/you_name/ and you can move it inside dest_folder and rename the link to what you want.


It sounds like you just need to switch to the PyDev perspective instead of the Java perspective. Do this using 'Window > Perspective > Open Perspective' and choose 'Other > PyDev'.


Reference Data 1.This cable can not work if your car uses a protocol ssystem like VPW,PWM or Can-bus

This is a direct copy/paste from the Amazon page for the cable you link to. It may be that the cable just doesn't work with your device, though I would think the programs should see a non-working cable attached.

Have you also tried Freediag?


May I use LibreOffice Writer 5.1.0.3 in Ubuntu 18.04?

Yes, you can.

Uninstall LibreOffice, then download this (from the official LibreOffice archive) and extract it, then install it.

If you need a 32-bit version instead, use this.


How to get memory type and manufacturer on AMD GPUs?

Maybe this will help
hwinfo

i.e. sudo apt install hwinfo
My readout:
19: PCI 100.0: 0302 3D controller
  [Created at pci.386]
  Unique ID: VCu0.1Fp8+gl5uYB
  Parent ID: vSkL.9Fa8KHWfiT6
  SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: graphics card
  Model: "Dell GeForce GT 630M"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x1140 "GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M]"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x054d "GeForce GT 630M"
  Revision: 0xff
  Memory Range: 0xd0000000-0xd0ffffff (rw,non-prefetchable)
  Memory Range: 0xa0000000-0xafffffff (ro,non-prefetchable)
  Memory Range: 0xb0000000-0xb1ffffff (ro,non-prefetchable)
  I/O Ports: 0x3000-0x307f (rw)
  Memory Range: 0xb2000000-0xb207ffff (ro,non-prefetchable)
  IRQ: 16 (291 events)
  Module Alias: "pci:v000010DEd00001140sv00001028sd0000054Dbc03sc02i00"
  Driver Info #0:
    Driver Status: nvidiafb is not active
    Driver Activation Cmd: "modprobe nvidiafb"
  Driver Info #1:
    Driver Status: nouveau is not active
    Driver Activation Cmd: "modprobe nouveau"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #16 (PCI bridge)


How to change the caret of the Gnome Terminal?

In recent versions of gnome-terminal, you can use the following escape sequences to change the cursor:

\e[0 q or \e[ q: reset to whatever's defined in the profile settings
\e[1 q: blinking block
\e[2 q: steady block
\e[3 q: blinking underline
\e[4 q: steady underline
\e[5 q: blinking I-beam
\e[6 q: steady I-beam

You can print these by e.g. echo -ne '\e[5 q'.

This has the advantage/disadvantage (based on your use case) compared to the gconftool method that it influences the given tab only, and not all the tabs that use the given profile.


Kernel missing after update, reappears after using Live USB

It seems that the install hadn't completed properly for some reason: specifically it had not updated the grub configuration to change the boot options.

This does not explain what fixed the problem, but it seem likely that a subsequent update finished the process. You could have run update grub to get it to update the list of kernels:

sudo update-grub


Can't access function after chown command

Once you chown it to owner root and group www-data, in order to access that folder you either have to be the root user, or in the www-data group.

You can add yourself to the www-data group by doing this.

usermod -a -G www-data [your username]

Or you can use sudo to perform any tasks as root.

sudo ls -l /var/www/example.com

Or, if you of course not let root own it at all, which there shouldn't be a reason to.

chown [your username]:www-data /var/www/example.com


USB Wifi Dongle not working on Ubuntu 20.04

You can install drivers from Cilynx's GitHub repo for RTL88x2BU that has worked well for me.
As detailed in the repo, I've installed the drivers using DKMS installation method:
git clone https://github.com/cilynx/rtl88x2bu.git
cd rtl88x2bu
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu


How to show all the Windows partitions on Ubuntu 12.04

list drives: sudo fdisk -l

list mounted: sudo mount -l

mount all: sudo mount -a

read more: MountingWindowsPartitions


Why updating from behind a proxy results in hash sum mismatch error while direct WiFi has no issues?

When running the update Debian/Ubuntu will download a list of all the meta-data about a package first, from this URL:

http://us.archive.ubuntu.com/ubuntu/dists/bionic/main/binary-amd64/Packages.gz

It will contain something like this for every package:

Package: aodh-common
Architecture: all
Version: 6.0.0-0ubuntu1
Priority: optional
Section: web
Source: aodh
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 97
Depends: adduser, dpkg-dev, python-aodh (= 6.0.0-0ubuntu1), python:any
Filename: pool/main/a/aodh/aodh-common_6.0.0-0ubuntu1_all.deb
Size: 17760
MD5sum: 8f0c651bcc7369034fea6c28653f51b9
SHA1: 7fc8dd248a5139f0f7dd3be5a49614c1b9af7186
SHA256: 98cbde3960701b083bc6744cb57fa2b3946d4d5f6c71512e2265f762d4650a3e
Homepage: https://github.com/openstack/aodh
Description: OpenStack Telemetry (Ceilometer) Alarming - common files
Description-md5: 4d4a9638c22eafe95e8cdbfdae651022

For this package it will then download this URL:

http://us.archive.ubuntu.com/ubuntu/pool/main/a/aodh/aodh-common_6.0.0-0ubuntu1_all.deb

It will then check the SHA256 hash of this similar to doing this:

$ sha256sum aodh-common_6.0.0-0ubuntu1_all.deb
98cbde3960701b083bc6744cb57fa2b3946d4d5f6c71512e2265f762d4650a3e  aodh-common_6.0.0-0ubuntu1_all.deb

Your proxy is modifying the data which breaks the integrity hash check, because the contents have been changed. You should step through the process of running these commands manually, such as downloading the file via your browser and running sha256sum on the command line to see the hashes don't match.

Next you should see what is actually different between the files and why. It's possible your proxy is able to determine that the .deb file is an "archive" that uses gzip compression and is re-packing the contents, even if that seems rather stupid in this context it could be used for a virus/malware scanning utility.

Let's assume you have two .deb files, one downloaded via the broken proxy and one downloaded via a proper working connection. You can compare the two by unpacking them and running diff on the two directories to see which files (if any) are different. If the diff outputs no differences, then it's likely the proxy is repacking. If the diff outputs something inspect what the differences are and why your proxy is making such changes as it's likely a security concern in addition to a usability problem.


How to recover lost data during upgrade from 12.10 to 14.04.1LTS?

Update:

Whether it was supposed to happen or not, it did; so I had to find a way to fix it. After lots of searching, waiting, and hoping for the best, I managed to recover my missing data!

Here's how it went down:
I determined that I really only needed to recover 2 spreadsheets as those were the files that I used most frequently and most recently since the version that was saved on the external HD. This alone was a HUGE step forward, especially since I knew what the files were named. My downloads folder was much larger, but I convinced myself that I could handle living without it if I really had to.

For the next steps, I switched over and ran Win7 since I already had the dual boot set up.

I searched all over the place online and found lots of programs claiming to have the capability of recovering lost data/lost partitions/etc. I eventually settled on one called Linux Reader for Windows, provided free by Diskinternals. I was considering a few others, and they may work just as well, but Linux Reader is the one I actually used to recover my data.

I downloaded the program to my Win7 partition, followed the directions available online and in the program (pretty easy to figure out/self navigate). It searched the partition I told it to. The search took longer than I wanted it to, partly because I started the search late at night, partly because Win7 decided to do an automatic update/restart mid-search so I had to start the search over again the following morning, and partly because of the volume of data it was searching (70Gb +/-). If I had to guess, it was probably 8-10 hours on the actual search.

Search finished, and the program asked if I wanted it to try to recover the data it found. (DUH...) The recovery took about 2.5 days and saved everything to the Win7 partition. Seriously slow. But, what it turned up was pretty awesome.

I was very hesitant at first because I was afraid it was going to only find/recover data that I had already put back on the linux partition as I noted in my original post/question.

But, it found EVERYTHING. Literally- not only the most recent versions of the two spreadsheets that I really wanted to recover, but also a few versions prior to that.

The downloads folder is still up for debate as I'm not sure I want to spend the time to go through that much random disorganized data file by file.

The only gripe I have about the program (other than the speed, but that was a worthwhile trade off since it found everything I wanted it to) is that it doesn't maintain file names or file structures. Instead, it saves everything in folders by file type (.doc, .docx, .xls, etc), and in some cases, just converts it to a common format (.mp3 ended up as .wav). From there, within each folder it saves everything using numerical values, i.e. "0000000016.doc", instead of the original file name, i.e. "dick and jane.doc". Pretty annoying, but I got lucky that I knew what files I was looking for (spreadsheets), and had a rough idea of what the file size was based on the backup that I had made to the external HD. So I just had to sort by file size, then open every file until I found the right one.

This may not end up working for everyone, but it's how I managed to successfully work around my situation. If it helps someone else, even better.


had the same problem today and found your thread^^, so I started myself to solve the problem.
I did the same as you did, except I used the conf file from the phone and put the psk in.
The file should look like this and is in /etc/NetworkManager/system-connections/

[connection]
id=<<<FILE NAME HERE(SSID>>>
uuid=<<< HERE IS A UUID>>>
type=802-11-wireless

[802-11-wireless]
ssid=<<<SSID HERE>>>
mode=infrastructure
mac- address=<<<MAC ADDRESS HERE>>>
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
auth-alg=open
psk=<<<PASSPHRASE HERE>>>

[ipv4]
method=auto

[ipv6]
method=auto

thats it. I copied the file with the shell app to ~/Documents so I could use Kate to edit it. chmod 777 is your friend. when you put it back chmod 600.
Then I restarted the phone, but I don't know if it's necessary.

P.S. This is for WPA/WPA2


Compare files in directories with different structures and show differences (20.04)

I don't really see how to do this without scripting, so here is a short python script to get you started

import hashlib
import os

def get_md5_file(filename, chunk_size=10240):
    ''' Returns md5 sum of the given filename
    '''
    md5_hash = hashlib.md5()
    with open(filename, 'rb') as f:
        while True:
            data = f.read(chunk_size)
            if not data:
                break

            md5_hash.update(data)

    digest = md5_hash.hexdigest()
    return digest

#print(get_md5('Dir-A/file1.txt'))
#print(get_md5('Dir-B/Dir-B/file1-duplicate.txt'))

def get_md5_dir(root, result=None):
    ''' Returns a dictionary with the md5 sum of every filename in directory root
    '''
    if result is None:
        result = dict()

    for root, dirs, files in os.walk(root):
        for filename in files:
            filename = os.path.join(root, filename)
            md5 = get_md5_file(filename)
            if md5 in result:
                print('Warning, duplicate md5 sum', result[md5], filename)

            result[md5] = filename

    return result

if __name__ == '__main__':
    import argparse

    parser = argparse.ArgumentParser(description='Compare directories by md5 sum')
    parser.add_argument('dirA', help='Specify first directory')
    parser.add_argument('dirB', help='Specify one or more directory to compare to',
                        nargs='+')
    args = parser.parse_args()

    # Get md5 sum for each file in dirA and each file in (possibly multiple) dirB
    md5_dirA = get_md5_dir(args.dirA)
    md5_dirB = dict()
    for root in args.dirB:
        get_md5_dir(root, md5_dirB) # update dict in place

    #print(md5_dirA)
    #print(md5_dirB)

    # print files in dirA, but not in dirB
    for md5 in md5_dirA:
        if md5 not in md5_dirB:
            print('%s (%s) not in dirB' % (md5_dirA[md5], md5))

    # print files in dirB, not in dirA
    for md5 in md5_dirB:
        if md5 not in md5_dirA:
            print('%s (%s) not in dirA' % (md5_dirB[md5], md5))

To use, save as a text file compare_files_by_hash.py, then, python3 compare_files_by_hash.py Dir-A Dir-B.

Bonus: if feasible, it would be nice to be able to check if Dir-A has everything from multiple other directories.

I am not sure I understood this, but the above allows multiple Dir-B directories, i.e. you can do python3 compare_files_by_hash.py Dir-A Dir-B Dir-B-2 Dir-B-3 and it will be as if Dir-B Dir-B-2 Dir-B-3 are all in Dir-B.


How can I install Ubuntu on my virtual harddisk (one of the feature of Windows 7)

Ubuntu can not be installed on a Windows VHD
From Microsoft Technet we can see the following note for a bootable Windows7 virtual hard drive (VHD):

"Bootable VHDs are VHDs that contain a Windows image."

This means that these drives are technically not meant to be able to boot any other OS, and they will be formatted with a Windows compatible format which is not the format Ubuntu needs for booting and running.
Someone may find a hack on how to boot to such a drive. But because Ubuntu provides a similar technology with booting from a virtual drive on Windows (see Wubi Ubuntu Wiki) there is not really a need for such a hack.
With Wubi, as with Microsoft VHD we do need to at least change the default bootloader in order to have an OS selection on boot. If you do not like this either you may want to consider installing Ubuntu in a virtual machine, but this will lead to a performance drop as compared to a real installation.


Madwifi can be installed with :

sudo apt-get install collectd-core collectd-dev collectd-dbg collectd-utils


Batch renaming files from the commandline

Try using the perl-based rename command e.g.

rename -n -v -- 's/tsb_p[.]mp3_\d+//' *.mp3

It will not actually rename your files until you remove the -n (no-operation) switch.


How do I fix the APT error "The following packages have unmet dependencies"?

Run this command on your system:

sudo apt-get update && sudo apt-get -f install && sudo apt-get dist-upgrade


No upgrade available for 19.04 from 18.10

Do not forget to make a backup of current system to prevent data loss.

Then do the following:

Make sure that you have the following contents in the /etc/update-manager/release-upgrades:

  Prompt=normal

or from Software & Updates (software-properties-gtk) GUI tab Updates:

set Notify me of a new Ubuntu version to For any new version.
Switch to the Main server in Software & Updates (software-properties-gtk):

Install all updates to your Ubuntu 18.10 by running:

sudo apt-get update
sudo apt-get upgrade

Reboot and then use one of the solutions

GUI solution:

update-manager

terminal solution:

sudo do-release-upgrade

Notes:

This method ended with warning message:

  Could not install 'linux-image-5.0.0-13-generic'
  The upgrade will continue but the 'linux-image-5.0.0-13-generic' package may not be in a working state. Please consider submitting a bug report about it.

  triggers looping, abandoned

and I have to run sudo dpkg --configure -a before reboot to prevent lock-up of new 19.04. Maybe it is VirtualBox guest issue. Reported as bug 1825420.
really I'll recommend to wait 2-4 days for official stable method with any mirror.


Moving '/home' from a partition to 'real' /home

I suppose, you can solve issue with booting to single mode.

This way you will get full root privileges and won't get problems with RO file system like in recovery mode. (Another way - boot to recovery and remount partitions with write permissions)

After booting to single mode check files /etc/passwd.lock /etc/gshadow.lock, /etc/shadow.lock. Delete them if exists and try to follow "Home/Moving" manual.


Open Nautilus, go to Edit → Preferences, select Behavior tab and tick Run executable text files when they are opened or (what I prefer) Ask each time:


How to go between partitions in terminal

Ok, this is one of the fundamental differences between windows and linux. The Windows file system uses devices as starting points for each section of the file system. So you have:

c:\
d:\
e:\

Linux/Unix systems use the concept of a unified file system. Everything is under the root folder, and can be arbitrarily mixed together. The user and programs do not know about devices because they have been abstracted away. So, all linux systems will have the same general hierarchy.

A linux system will look something like this:

/
|---var
|---lib
|---home
|---mnt

But these folder could be on the same hard drive, or separate hard drives. They can even be network folders! There is a special folder called /dev for if a program actually needs to talk to the physical device. So, anywhere that you want to go on a linux system will never require switching devices like on windows.

However, sometimes a device is not added to the filesytem! It will be plugged in, the OS can see it as a device, but it has not been mounted. Modern linux systems will try and do this for you as necessary. Sometimes it doesn't work, and you have to do it your self.  That is what the mount command is for. It is also the original purpose of the /mnt folder, so you can have an obvious place to mount new sections of the file system.

Before mounting a drive:

|---mnt
    |---temp

After mounting drive to /mnt/temp:

|---mnt
    |---temp
        |---docs
        |---programs
        |---tmp
        |---extra
        |---backups
        |---other stuff

So you can mount a drive, then use cd to move into it, or anywhere else in the file system. This allows for neat things, like having your /home directory on a separate hard drive, in case you want to switch linux distros later, or so you can back it up. The /tmp folder is often not on an actual device at all! It's could be some ram treated as a folder. That makes it easy to put stuff there, then have it cleaned up when you reboot.


RabbitMQ - Packages have unmet dependencies

The first step to solve your issue is to revert the effects of your commands.

Let's start with your first command.

echo "deb http://www.rabbitmq.com/debian/ testing main"  | sudo tee  /etc/apt/sources.list.d/rabbitmq.list > /dev/null

This is creating a the file /etc/apt/sources.list.d/rabbitmq.list. So you want to delete this file. To delete the file run the following command.

sudo rm /etc/apt/sources.list.d/rabbitmq.list

Your next command is downloading a file.

wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc

You can just delete the file if you know where it was downloaded. It should be downloaded in the directory from which your command was executed. If you just opened a terminal, it is very likely that it is in your home directory.

The next command is adding a gpg key with apt-key. So you have to remove the gpg key. See the answers to this How can I remove gpg key that I added using apt-key add -?.

Now that you have removed the gpg key. You should run sudo apt update

You are now ready to install RabbitMQ following the official instructions. The official instructions are not the best organized. However I have tried to distill the commands for ubuntu 16.04.

First step is to install Erlang. Run the following commands. Here I am just copying commands from the link.

curl -fsSL https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb http://dl.bintray.com/rabbitmq-erlang/debian xenial erlang-22.x" >  | sudo tee  /etc/apt/sources.list.d/bintray.erlang.list > /dev/null
sudo apt-get update -y
sudo apt-get install -y erlang-base \
                    erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \
                    erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \
                    erlang-runtime-tools erlang-snmp erlang-ssl \
                    erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl

Now you should have Erlang installed. Now you can install RabbitMQ. You should run the following commands.

sudo apt-get install curl gnupg -y
curl -fsSL https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc | sudo apt-key add -
echo "deb https://dl.bintray.com/rabbitmq/debian xenial main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list
sudo apt-get update -y
sudo apt-get install -y rabbitmq-server

You should have RabbitMQ installed now.


Mendeley desktop won't work on ubuntu 16.04

Open a terminal and run

sudo apt-get install libqtsvg4-perl libqtwebkit4

I had this exact error and after Mark Kirby's answer I still had the problem. After running the above, now Mendeley launches and syncs all my data (yeah!).

What I don't know is if it was just what I wrote above or if you need this and also Mark Kirby's answer both.

Source of answer: http://ubuntuforum-br.org/index.php?topic=120046.0


Ubuntu doesn't boot and shows blank screen or check signal cable, what is wrong?

There's a good chance that, if you're on a desktop, you've probably fried your video output.

The good news is, if that's the case, all of your data should be completely fine.
The bad news it that you'll have to buy a new video output/adapter for your computer.


Installing MS office in Ubuntu without CD-ROM

I've had that problem once too.

If you have an .exe file

It all depends on the type of setup file you have. Microsoft allows both .exe files as downloads and .iso files. If you have an .exe file you can just follow standard installation instructions using PlayOnLinux or just click or right-click on the file and use wine to process the install.

If you have an .iso file

Burn a CD

If you have an .iso file, there are a few easy solutions. The easiest being to write your .iso file to a CD. Just open the HUB, type brasero, open the brasero disk burner and choose the option to burn image. Then you can install from the CD (again using PlayOnLinux).

Or mount the .iso file

The other option is to mount the .iso file directly. You can do so as follows:

sudo mkdir /mnt/iso
sudo mount -o loop the-path-to-your-iso-file.iso /mnt/iso

Once the .iso file is mounted it is possible to install office using PlayOnLinux and use the /mnt/iso directory as if it were a CD.

In that case you need to select your directory in this dialogue box:

After the install you can sudo umount /mnt/iso.

The last screenshot comes from http://www.makeuseof.com/tag/easily-install-microsoft-office-2007-linux/ which also provides a nice HOWTO for installing Office 2007 using PlayOnLinux.


How to copy a subset of subfolders recursively

This kind of thing can be done with simple shell globs:

cp -rt path/to/destination/ /mnt/data2/Folder?/subjfolder2

(matches names in which Folder is followed by any single character)

cp -rt path/to/destination/ /mnt/data2/Folder[0-9]/subjfolder2

(matches names in which Folder is followed by any single decimal digit)

cp -rt path/to/destination/ /mnt/data2/Folder*/subjfolder2

(matches names in which Folder is followed by any string).

Alternatively, to match a specific set of folders you could use brace expansion

cp -rt path/to/destination/ /mnt/data2/Folder{1..17}/subjfolder2


How to retrieve file lost by the 'move' command

You did not delete the file. You just moved it into /~ (assuming the command did not return any error). Files on Linux can contain any strange characters. Just move the file back with the reverse command:

sudo mv /~ /media/creator/sumeeth/software/apache-tomee-1.7.0-plus.tar.gz


External HDD accidentally unlocked from launcher

when you connect your external hard drive open dash and type the drives names(partitions names of your external harddrive) then drag that drive to launcher


Just came across this same problem. I fixed it by changing the Download Location in Software & Updates settings. Seems that the UK Mirror has issues with this repo.


how to reset dual display to one screen from command line?

I would recommend installing disper, a command line display manager.

Then you can do disper -S to make secondary only, or disper -e -t left to extend to the left for example.


You need to have something reading from the FIFO.

Try this:

#!/bin/bash

mkfifo /tmp/stream_pipe
cat /path/to/transparent/or/splash/screen.png > stream_pipe &
cat stream_pipe
echo "done!"

You should get the contents of the file printed to the screen (same as if you do cat /path/to/transparent/or/splash/screen.png).


It's a bug in the kernel.  The only thing you can do is to await a newer kernel being distributed by Canonical (the company behind Ubuntu) after Linus Torvalds' team gets to fix it.


Nautilus not generating thumbnails for GIF images

Create your own thumbnailer:

sudo nano /usr/share/thumbnailers/gif.thumbnailer

Add the following content:

[Thumbnailer Entry]
TryExec=convert
Exec=convert %i[0] -resize %sx%s %o
MimeType=image/gif;

Install imagemagick (just in case it's not installed by default):

sudo apt-get install imagemagick

Clear the cache:

rm -r ~/.cache/thumbnails

source


Ubuntu 16.04 not waking up after suspend on HP Elitebook 8440 (and spamming kern.log)

After an

  apt-get update; apt-get upgrade; apt-get dist-upgrade

yesterday, suspend started working again.

And booting from the default kernel stopped the "failed to disable graphics turbo" messages.

And I haven't had any crashes since then either --- so I think all is well again.

TL/DR:  'apt-get update; apt-get dist-upgrade' fixed everything


Restart your computer and go into its BIOS (press Del, F10 or F12 -- read what it says -- when you boot up) and under one of the first parts of it, you should be able to disable the floppy drive by setting it disabled.

Save and exit. Ubuntu will then stop auto-detecting it.

Just as a quick explanation for this: Old floppy drives (not the USB ones) lived on amazingly unsophisticated buses. There wasn't an "auto-detect floppy drive" like there became for hard disks. You therefore had to explicitly state whether or not you had a floppy drive plugged in if you wanted to use it.

Seeing as nothing bad (apart from the behaviour you're experiencing) happens when BIOS told there is a drive when there isn't, motherboard manufacturers played it safe and left the option on, assuming (I assume) that people building their own systems would inevitably forget to go into BIOS and turn the floppy drive on and select its type.


To get the latest GPG key for TeamViewer's repo, their .asc key file needs to be converted before passing it to apt-key.
curl -L https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc | gpg --dearmor | sudo apt-key add -


What happens to the storage capacity when I uninstall Ubuntu?

Files in Windows’ aptly named “shadow storage,” also known as “shadow copies,” don’t appear here. The shadow storage contains System Restore points and previous versions of files for the Previous Versions feature in Windows Explorer.

To view the exact amount of storage used by shadow files on every hard drive attached to your system, you can run the command below. You’ll need to run it as Administrator – to open a Command Prompt window as Administrator, search for Command Prompt in the Start menu, right-click the Command Prompt shortcut, and select Run as administrator.

Run the following command in the Command Prompt window:

vssadmin list shadowstorage

To know more Why Do Hard Drives Show the Wrong Capacity in Windows visit this


How to check my quota from terminal using LDAP

You question is not completely clear to me but the generic method to view a users quota on a Linux system would be with:

quota -u $USER

If you use samba and NTFS shares you can also use

smbcquotas -u $USER

from the users side.

But both are not related to LDAP: LDAP is a directory access protocol; Quotas are not a part of that but can be a part of the total setup if you include samba or the native quota tools on Ubuntu.


Ctrl + Alt act like Super for some bindings

Exploring related questions here, I found the answer on SO. Just install CompizConfig Settings Manager and look for additional key bindings in Ubuntu Unity Plugin section. You might remove those bindings or change them according to your needs.


Could NOT find HDF5 (missing: HDF5_HL_LIBRARIES) (found version "1.8.11")

ParaView : I saw openmpi mentioned somewhere ...

... so it will be $ sudo apt-get install libhdf5-openmpi-dev

Ubuntu 14.04 - 64bits : I also installed libqt4-dev , and the cmake configuration is OK : The Makefile was created ... and make runs OK so far. One thing to mention : A lot of small files are downloaded to 'build/ExternalData/ while the "make" runs. About the ParaView-v5.0.1-source/build/ folder : The most "cmake applications" require a 'build/' folder : cd ParaView-v5.0.1-source/ && mkdir build && cd build/ && cmake ../


Ubuntu Gnome and application icon in top bar?

You can use one of the following Gnome shell extentions:

AppIndicator Support: https://extensions.gnome.org/extension/615/appindicator-support/

only for applications with AppIndicator support (most applications for Ubuntu)
good Gnome shell integration
configure what icons to show in panel

TopIcons: https://extensions.gnome.org/extension/495/topicons/


Calendar / unity integration / thunderbird WITHOUT a google account

You have the anwser ! Owncloud actually offers a CalDav link to its calendars...

So you have 2 solutions :

1- Add a calendar feature to Thunderbird by installing "xul-ext-gdata-provider" available in the Ubuntu App center.

2- install evolution and add a calendar using its CalDav address

I didn't tried but I think it should work.
[Edit] I tried the first solution, it works pretty well ! [/EDIT]

(Btw, owncloud is a great project and already offers lot of functionnalities despite its early development stage :o)


Complete Installation Guide for Android SDK / ADT Bundle on Ubuntu

Actually, I think you should use Android Studio to develop android application. However, if you have your reason to use eclipse, you can follow the following guide.

Target     : Super Newbies
IDE        : Eclipse
Description: Provide a GUI method to install Android IDE using Eclipse

1. Installing Java Runtime (JDK) and Eclipse IDE

Search Software on Ubuntu and launch Ubuntu Software Center

Search Java on Ubuntu Software Center and then install the OpenJDK Java Runtime.

Search Eclipse on Ubuntu Software Center and then install it.

If you have successfully installed eclipse and JDK, it will appear in the search result on your computer.

For the JDK, you can also press CTRL + ALT + T to open a terminal and type command java -version to check again.

Tips : Lock the eclipse icon on launcher.

2. Downloading SDK

Go to http://developer.android.com/sdk/index.html to download the latest version of SDK.

Scroll down and click DOWNLOAD FROM OTHER PLATFORMS

Click android-sdk_r22.6.2-linux.tgz under Linux 32 & 64-bit of SDK Tools Only.

Tick I have read and agree with the above terms and conditions and click Download android-sdk_r22.6.2-linux.tgz.

Wait for the download process.

3. Preparing for Installation

Go to the location where you set to download the file.
Rigth click the file[.tgz] and select Extract Here.

Now you can see that a file called android-sdk-linux appears as if the following.

Enter the folder android-sdk-linux.

Enter the folder tools and then copy the folder location.

Press the keys CTRL + ALT + T to open a terminal and then use the following command. Where /home/casper/Downloads/android-sdk-linux/tools is the location I copied previously. You can just type cd and right click to past the location to the terminal.

    cd /home/casper/Downloads/android-sdk-linux/tools
    ./android

Now the Android SDK Manager will be run.

4. Installing Packages

Click Install [Number] packages....

Click Accept License and then click Install.

Wait for the installation process.

Finally, this message will be shown.

5. Editing ".bashrc"

Press CTRL + ALT + T to open a new terminal and type : gedit ~/.bashrc

Now the following text will appear.

Add the following to the top of the entire text and then save it. (Do not close the file)

    export PATH=${PATH}:~/android-sdk-linux/tools
    export PATH=${PATH}:~/android-sdk-linux/platform-tools

Example :

[Recommended] Move the whole file android-sdk-linux to your eclipse's workspace and under a folder that you create named Android. Moreover, you have to copy the location.

Now back to the ".bashrc" file and the replace the '~' with the location you copied previously and then save it and close it.

Logout and relogin your Ubuntu system.

6. Setting Up an Android Virtual Device

Press CTRL + ALT + T and type android avd to open  the Android Virtual Device Manager.

Click New.... Set up like the following and click OK.

Click your virtual device and then click Start....

Click Launch.

Launching your virtual device

7. Installing ADT Plugin on Eclipse

Start Eclipse and go to Help -> Install New Software...

Click Add....

Type the following and then click OK.

 Name     :    ADT Plugin
 Location :    https://dl-ssl.google.com/android/eclipse/

Tick the checkbox of Developer Tools and then click Next>.

Click Next>.

Click "I accept the..." and click Finish.

Wait for the installation process.

Restart eclipse.

Click Open Preferences.

Copy your own SDK location (The location of the file android-sdk-linux).

Paste to the SDK Location: textbox and then click Apply and OK.

Enjoy to create any android application with your Ubuntu.


How do I install Sublime Text 2/3?I tried but I am getting error

Examine the error that is being displayed when you execute that command. It is telling you "No command 'get' found". This is due to the fact you are trying to download that key file from the web. You want to use the wget (web get) command.

  wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo
  apt-key add -

This install guide will help you with your install.

http://tipsonubuntu.com/2017/05/30/install-sublime-text-3-ubuntu-16-04-official-way/


installing pathos (python3) on ubuntu 16.04

Try sudo pip3 install pathos. It seems like a Permission Denied error.


How do I get a TP Link WN725 Nano wireless adapter working?

the first step when you should preform is update your system. this may solve your problem already by itself.
open a terminal (Ctrl + Alt + T)
type in:

sudo apt-get update

press enter and insert your password. your system should start updating

sudo apt-get upgrade

press enter and the system should start upgrading (may take a while)

after that reboot and check if your wireless network driver is working.
If not try the Ubuntu software centre, type in "tp link wn725n nano adaptor" or something alike. Many wireless drivers are available here.

Let us know how this turns out!


error when logging in flashes by too fast for me to read it

You can view logs :

 tail -f /var/log/syslog

After you login just view this file and see what is the error .


Is it possible with Gedit or the command line to modify every fourth line of a text file?

You could use a command-line editor such as sed

sed 'N;N;N;s/\n/\t/g' file > file.tsv

or, more programatically, by adding backslash line continuation characters to each of the lines you want to join using GNU sed's n skip m address operator and following it with the classic one-liner for joining continued lines:

sed '0~4! s/$/\t\\/' file | sed -e :a -e '/\\$/N; s/\\\n//; ta'

See for example Sed One-Liners Explained :

  Append a line to the next if it ends with a backslash "\".

sed -e :a -e '/\\$/N; s/\\\n//; ta'

However IMHO itwould be easier with one of the other standard text-processing utilities e.g.

paste - - - - < file > file.tsv

(the number of - will correspond to the number of columns) or

pr -aT -s$'\t' -4 file > file.tsv

(you can omit the -s$'\t if you don't mind the output to be separated by multiple tabs).

The strange re-import behavior that you are observing is almost certainly because the original file has Windows-style CRLF line endings. If you need to work with files from Windows, then you can roll the conversion into the command in various ways e.g.

tr -d '\r' < file.csv | paste - - - -

or

sed 'N;N;N;s/\r\n/\t/g' file.csv

The former will remove ALL carriage returns whereas the latter will preserve a CR at the end of each of the new lines (which may be what you want if the intended end user is on Windows).


Try to install Jupiter with eee support:

sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter jupiter-support-eee

It has support for some eee pc features


Is there a list of all the possible configuration options for lightdm?

For reference, lightdm.conf.gz contains the following:

#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
# backup-logs = True to move add a .old suffix to old log files when opening new ones
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-check-graphical=false
#log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=/usr/share/lightdm/greeters:/usr/share/xgreeters
#backup-logs=true

#
# Seat configuration
#
# Seat configuration is matched against the seat name glob in the section, for example:
# [Seat:*] matches all seats and is applied first.
# [Seat:seat0] matches the seat named "seat0".
# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
#
# type = Seat type (xlocal, xremote, unity)
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
# xserver-config = Config file to pass to X server
# xserver-layout = Layout to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option)
# unity-compositor-timeout = Number of seconds to wait for compositor to start
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
#
[Seat:*]
#type=xlocal
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-command=X
#xmir-command=Xmir
#xserver-config=
#xserver-layout=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
#greeter-session=example-gtk-gnome
#greeter-hide-users=false
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
#user-session=default
#allow-user-switching=true
#allow-guest=true
#guest-session=
#session-wrapper=lightdm-session
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
#autologin-user=
#autologin-user-timeout=0
#autologin-in-background=false
#autologin-session=
#exit-on-failure=false

#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn.  Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#listen-address=
#key=
#hostname=

#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#listen-address=
#width=1024
#height=768
#depth=8


Double quotes suppress brace expansion:

$ echo Hello t{i,a,o}k
Hello tik tak tok
$ echo "Hello t{i,a,o}k"
Hello t{i,a,o}k

You can quote the rest of your expression. Possibly usefully, if you quote the space before the brace part it stops wordsplitting, so you get something like:

$ echo "Hello "t{i,a,o}k
Hello tik Hello tak Hello tok


Make internet app available only within VPN?

Couple different ways to do this. If you have no intentions of hosting any other site except for vpn access the quickest and easiest way would be to use a firewall and only allow from local network. Anyone that connects to vpn will be given a local address such as 192.168.1.x. So using UFW

 sudo ufw allow from 192.168.1.0/24 to any port 80

If you intend to have other sites and are setting this up as a vhost, usually you can throw in an

 Allow from 192.168.1.0/24

Or

 Allow from 192.168.1.*

In the vhost configuration. I forget the exact format for ip range, but it one of the two referenced above. Just look up info on Apache vhosts


I just had this problem with Debian 10 running openmediavault (OMV). After a restart (where the system had been running for months), the nginx instance that serves the OMV web interface on port 88 suddenly also served an nginx welcome page (from /usr/share/nginx/html/index.html) on port 80. Pretty annoying as I have a Nextcloud instance supposed to be available on that port.
The reason was that some time during some upgrade process, the following lines had been added to the end of the http config in /etc/nginx/nginx.conf:
...
http {
    ...

    client_max_body_size 0;

    server {
        client_max_body_size 0;
    }
}
...

Because the server part doesn't specify a listen directive, it defaults to port 80. And because no root directive was specified, it defaults to /usr/share/nginx/html on my particular system.
Edit It turns out that I actually did the change myself when following this guide to setup my system.


How do I create Ubuntu Virtual Machines using KVM?

If you do not already have KVM installed, you will need to do that. There is a kvm metapackage in the repos.

sudo apt-get install kvm

To create VMs the easy way, use virt-manager (available in the repos). It provides a nice GUI to walk you through it.

sudo apt-get install virt-manager

Keep in mind you can use virt-manager either on your local KVM server, or on a remote one. Once you have it fired up and pointed to the right KVM server, just click the "Create New Virtual Machine" button. The rest of it is fairly self-explanatory.

Also, if you want to use a bridged interface for KVM, follow my guide here: http://john.wesorick.com/2012/01/setting-up-bridged-network-interface.html

Bridged mode works better for any kind of networking on the virtual machine.


How to add pydf to /etc/update-motd.d/10-help-text

At least with Ubuntu 16.04 the method used to update the /run/motd.dynamic from the /etc/udpate-motd.d scripts seems to be a bit broken. The update should happen from /etc/init/mounted-run.conf upstart job. Since Ubuntu 16.04 does use systemd this upstart job is not run.

Nevertheless, I would recommend to put that into a script in /etc/profile.d/ instead of fiddling around with the basic configuration
in Ubuntu and break things.

root@xenial:~# cat /etc/profile.d/my-motd.sh
#!/bin/sh

echo
/usr/bin/pydf
echo


Off-line Repository and software removal

There is a bash script for removing the dependencies after removing the packages.

#!/bin/bash

OLDCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
CURKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
LINUXPKG="linux-(image|headers|ubuntu-modules|restricted-modules)"
METALINUXPKG="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL)
YELLOW="\033[1;33m"
RED="\033[0;31m"
ENDCOLOR="\033[0m"

if [ $USER != root ]; then
  echo -e $RED"Error: must be root"
  echo -e $YELLOW"Exiting..."$ENDCOLOR
  exit 0
fi

echo -e $YELLOW"Cleaning apt cache..."$ENDCOLOR
aptitude clean

echo -e $YELLOW"Removing old config files..."$ENDCOLOR
sudo aptitude purge $OLDCONF

echo -e $YELLOW"Removing old kernels..."$ENDCOLOR
sudo aptitude purge $OLDKERNELS

echo -e $YELLOW"Emptying every trashes..."$ENDCOLOR
rm -rf /home/*/.local/share/Trash/*/** &> /dev/null
rm -rf /root/.local/share/Trash/*/** &> /dev/null

echo -e $YELLOW"Script Finished!"$ENDCOLOR

Copy the script and paste it in your text editor.And save the file with .sh extension(ie cleaner.sh)Right click the file choose properties>>permissions and check execute..

To run this script,type the following in terminal.

sudo bash /path/to/the/script


How can I disable the DNS that Network Manager uses?

Edit /etc/NetworkManager/NetworkManager.conf with the following command:

gksu gedit /etc/NetworkManager/NetworkManager.conf

Enter in your password when prompted.

Comment out the line dns=dnsmasq, so it looks like this:

#dns=dnsmasq

and then restart Network Manager with

sudo restart network-manager
# if you get /com/ubuntu/upstart: Connection refused, try:
sudo service network-manager restart

Ta-da! You're all set!


How to make Windows 7 based Virtual machine running on Ubuntu 14.04 host machine detect a USB device?

If you are using Oracle VM VirtualBox - then you should install VirtualBox Extension pack (on host), Guest Additions (on guest) and enable USB Device Filters in the properties of virtual machine.

Steps:

Insert the device into host machine
Ensure that device is detected with lsusb
Change the settings of virtual machine to enable USB device filter - click on  to add device from host machine:

Apply settings
Start the virtual machine


Copying second sceeen to be displayed on first screen

First, open up monitor config - it's in Start > Settings > Settings Manger, then open the Display item.
http://i.stack.imgur.com/ayCTI.png
Make sure both your displays are on.

Then, open a terminal and run this:

xrandr

The output will look something like this:

Screen 0: minimum 320 x 200, current 2464 x 900, maximum 4096 x 4096 LVDS1 connected 1024x600+1440+0 (normal left inverted right x axis y axis) 220mm x 129mm 1024x600 60.0*+ 65.0
800x600 60.3 56.2
640x480 59.9
VGA1 connected 1440x900+0+0 (normal left inverted right x axis y axis) 408mm x 255mm 1440x900 59.9*+ 75.0
1280x1024 75.0 60.0
1280x960 60.0
1280x800 74.9 59.8
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1

Then, run the following, changing VGA1 and LVDS1 to match the appropriate display:

xrandr --output VGA1 --left-of LVDS1

Note that you can move change --left-of to --right-of.

Now, it should work, but you've still got one problem.

It will disappear after you logout. So, you need to add it to your login items.

Head over to Start > Settings > Settings Manger, then open "Session and Startup", add the above command to your login items, and you're good to go!
http://i.stack.imgur.com/UudgY.png


I did a quick search for the valac-0.26 deb file.  Here is a download link.

http://packages.ubuntu.com/vivid/amd64/valac-0.26/download

If there are any other problems, feel free to let us know what error messages you are seeing.  Happy Conkying!


openstack installer missing on new install

Here is the solution:

sudo apt install conjure-up
conjure-up openstack


Graphics driver not keeping up under Ubuntu 20.04

It seems that the problem might not be related to the graphics driver.
I did the following. I tried selecting Ubuntu on Wayland when logging in. This did not change the problem.
I have 5 options when logging in to my machine:

Gnome (no problem)
Gnome on Xorg (no problem)
Ubuntu (problem)
Ubuntu on Wayland (problem)
Unity (problem)

Similar to the two options displayed in the picture below (from: https://linuxconfig.org/how-to-enable-disable-wayland-on-ubuntu-20-04-desktop)

I think I have selected to install Gnome manually earlier, but I am not completely sure. I first tried with Ubuntu on Wayland, but this did not solve my problem.
But running Gnome (which is Wayland in the default option) seems to fix the problem.
If you do not have Gnome installed I think you can follow this guide:
https://www.wikihow.com/Install-Gnome-on-Ubuntu
https://www.wikihow.com/Install-Gnome-on-Ubuntu


See in nautilus which videos have already been watched

As a slight variation of the suggestion of @type - you can set "emblems" on files, which are small overlay icons, available through the Properties dialog.

And, if you feel really adventurous (but not adventurous enough to write your own plugin), you can "automate" the process:

investigate where Gnome stores file emblems. See this link for some initial details (update - the info there is obsolete, see below).
write a simple script which adds an emblem to the file and then launches the media player. The above link even has a sample script for reading the emblems
set up the script as the preferred application for opening video files

Of course, the script won't be able to tell whether you finished watching the video, whether you were watching carefully or if you want to re-watch it again - you can set emblems manually for that.

UPD: Actually, here's how to set emblems on a file. The rest is trivial...

UPD2: Here's a simple script which labels a file and opens it in totem:

#!/bin/sh
gvfs-set-attribute -t stringv "$1" metadata::emblems favorite
totem $1 &

Save it somewhere and set executable bit. Then you just right-click on a video - Open with - Other application - Use a custom command - [x] Remember this application - enjoy! :)


Generally, the same command used to copy a bounce of files with rsync could be used unmodified to update the destination directory every time the source directory change.

But the two directories do not become identical, because files deleted on the source are not deleted on the destination, if you don't ask explicitly for that. If you want that you would have to use additionally the parameter --delete.


Self answer;  sorry about the poor form.
My problem was a combination of not serving all of the collected repos, and general organization.

In the end, the client sources.list (and matching mirror layout) looks more like:

deb http://{{custom_mirror}}/archive.ubuntu.com trusty main universe
deb http://{{custom_mirror}}/apt.dockerproject.org ubuntu-trusty main

I gave each mirrored repo a subdirectory off the http root using it's original name. Hope this helps someone else!


How can I set system time as regular user via cmd line?

You have two options, for both you'll need root access (sudo) to setup.

Use sudo to allow a specific user to run /bin/date as root. man sudoers and man sudo to learn more.
Use Linux' capability CAP_SYS_TIME to let /bin/date set time without root. man capabilities and man setcap to learn more.

Complete guide could be found here: (read the two answers) https://unix.stackexchange.com/questions/78299/allow-a-specific-user-or-group-root-access-without-password-to-bin-date


It seems that I was able to solve it myself. I installed the following Polkit related packages on my Ubuntu system using apt-get:

policykit-desktop-privileges
policykit-1-gnome.

Then I added the following to my i3 config file:

exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &


Download Abiword from Ubuntu Software Center or you can install it by typing following command in terminal:

sudo apt-get install abiword

Then perform the conversion:

abiword --to=doc example.pdf


Pressing 'D' shows the desktop, how to disable?

As an alternative to the above answer, what I did in my remote session was edit the dconf for ubuntu 12.10 on the gnome-fallback ui.

open Applications\System Tools\dconf Editor

navigate to org\gnome\desktop\wm\keybindings

then change the show-desktop keybinding to [].

I then rebooted the machine, but you probably could just restart the service, and everything worked.


Yes, you can partition a USB flash drive to boot into a Ubuntu Live Session and use it as a regular USB drive (accessable to windows) on separate partitions.  I was able to do this with a 32GB PNY USB 2.0 flash drive on a Sony Vaio T Series Ultrabook laptop with UEFI and Windows 8.0 installed.  I also tested this from Ubuntu server 12.04 on my 16TB RAID5 i7-290 server.

I partitioned the USB flash drive using GParted in this configuration:

sdh1 is the "Storage" partition that's accessible from Windows.  sdh2 is the Ubuntu desktop 12.04 boot-able partition.  These were my steps:

 1. Created a new 10 GB, ntfs, logical partition, with 25 MB Free space preceding     and 0 MB following, labeled Storage (must be first on the drive)
 2. Created a new 5 GB, fat32, logical partition, with 0 MB preceding and following
 3. Set a boot flag for the second partition
 4. (Created the other partitions which are not needed)
 5. Booted to a Ubuntu Live Session loaded on a DVD and selected Try Ubuntu     without installing from the GRUB menu
 6. Opened Startup Disk Creator with the USB flash drive pluged-in
 7. The Ubuntu-Desktop 12.04 Image and pny USB 2.0 flash drive (/dev/sdh2) 5.0 GB     partition were already selected, moved the How much slide to store documents     and settings in reserved extra space and selected Make Startup Disk

Without selecting the boot flag, the Startup Disk Creator would only recognize the entire flash drive as /dev/sdh, instead of the desired second partition /dev/sdh2.

Without putting the Windows partition first, the Removable Media Bit...

"The removable media device setting is a flag contained within the SCSI Inquiry Data response to the SCSI Inquiry command. Bit 7 of byte 1 (indexed from 0) is the Removable Media Bit (RMB). An RMB set to zero indicates that the device is not aremovable media device. An RMB of one indicates that the device is a removable media device. Drivers obtain this information by using the StorageDevicePropertyrequest."

...would mean only 1 partition shows up in Windows:

"Q. What is a superfloppy?

A.
Removable media without either GPT or MBR formatting is considered a "superfloppy." The entire media is treated as a single partition.
The media manufacturer performs any MBR partitioning of removable media. If the media does have an MBR, only one partition is supported. There is little user-discernible difference between MBR-partitioned media and superfloppies.
Examples of removable media include floppy disk drives, JAZ disk cartridges, magneto-optical media, DVD-ROM, and CD-ROM. Hard disk drives on external buses such as SCSI or IEEE 1394 are not considered removable."

Here are some tools that flip the RMB (which is unnecessary in this case): Laxar's USB Format Tool
Bootice
RMPrepUSB

These are software approaches (again unnecessary in this case):
Create a dummy.sys Driver
Use the Hitachi Microdrive Filterdriver

Credit:
TSJNachos117 Live USB on a 2-partition usb-drive
http://ubuntuforums.org/showthread.php?t=1020293
https://stackoverflow.com/questions/2598502/howto-flip-removable-bit-on-usb-drive-in-c
http://www.rmprepusb.com/tutorials/multipartufd


Ubuntu Software (gnome-software) opens and closes right away

It looks like a bug (more information).
The proposed solutions :

Solution 1:

  sudo killall gnome-software
  sudo rm -r ~/.local/share/gnome-software

This will first, end (kill) the process of gnome-software if it is running, then remove gnome-software from the ~/.local/share folder, then it will be recreated automatically when you launch it (gnome-software or ubuntu-software) again.
Now launch ubuntu-software or gnome-software from the Unity Launch Button.

Solution 2:

  sudo apt-get autoremove gnome-software
  sudo apt-get install gnome-software -f


Is your host's CPU arch 64-bit?
I had the same issues trying to install docker on 32-bit Ubuntu 18.04. On 32-bit hosts, you need to follow this answer.


Cannot log in after 15.10 Update, cannot use recovery mode

Check whether you have some conflicting xserver-xorg-video-intel-lts-* packages installed.

dpkg -l xserver-xorg-video-inte* | grep '^ii'

I would apt- get purge all installed xserver-xorg-video-intel packages, and then try

sudo apt-get install --reinstall ubuntu-desktop

That should reinstall the newest version of the missing (purged) xserver-xorg-video-intel package


Why the same .sh does not work with 2 different users executing it?

The line

if [ 2 > 1 ]; then

causes the shell to try and open a file named 1 for writing. Read the section REDIRECTION in the bash man page for an explanation. Your user1 apparently is allowed to write to that file, and user2 isn't.

You were probably thinking of this:

if [ 2 -gt 1 ]; then

Which tests whether 2 is greater than 1, which is obviously true except for very large values of 1.


Ubuntu 12.04: Changing Hotkey for “Activities”

You should be able to simply do that in Keyboard settings:

Gnome 3.10 - should be the same for most versions of Gnome 3

Gconf is deprecated - you are supposed to use dconf - which can be done simply using dconf-editor.

You need to look for:

org.gnome.desktop.wm.keybindings panel-main-menu

It should be in this format - it might cause problems otherwise:

['<Super>s', '<Alt>F1']

You can get the current value using:

gsettings get org.gnome.desktop.wm.keybindings panel-main-menu

And you can set the current value using:

gsettings set org.gnome.desktop.wm.keybindings panel-main-menu 'VALUE'

In this case, 'VALUE' would equal "['<Alt>space', '<Alt>F1']":

gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "'<Alt>space', '<Alt>F1'"

You can reset it using:

 gsettings reset org.gnome.desktop.wm.keybindings panel-main-menu

As you can see, you can also use gsettings to change things - for a manual page on it run:

man gsettings

But it does the same thing as the keyboard settings dialogue.


Can I make Shutter use standard notifications?

Open up the Preferences window (Edit -> Preferences or Alt+P ) and click on the Behavior tab, change the Notification agent combobox from Built-in to Desktop Notifications.

Shutter will now use the standard (In this case Notify OSD) notifications:


File system for intermediary data storage between Linux and Windows

Currently NTFS is the best choice (supported and it doesn't have the limitations of FAT). But you have to disable fast boot on Windows 10 so it won't send the partition to a half-hibernated state on shutdown. After doing this, you can also mount it permanently on Linux without problems.


Meizu Pro 5 Ubuntu Phone how reinstall the device

Yeah, maybe you need to reinstall the Ubuntu system, and I encountered similar issue a few days ago, I upgraded it on my Ubuntu desktop, but unfortunately, it failed, and then the phone can not launch any more.

and finally I have re-installed the Ubuntu system for my pro5 by following this solution How to install Ubuntu on Meizu Pro 5 that was originally with Android? . Hope it help you.

and the main steps that I used is as below (I did that under the Ubuntu desktop environment):

flash the recovery to pro5
(sudo fastboot flash recovery TWRP_3.0_m86.img)
prepare the kernel*.zip
remember to replace the 4 files, which come your device*.tar.xz.
prepare the Ubuntu*.tar.xz, device*.tar.xz, customer*.tar.xz, version*.tar.xz
reboot to recovery mode, and than install the kernel, mount the system folder, uncompress Ubuntu*.tar.xz, device*.tar.xz, customer*.tar.xz, version*.tar.xz
reboot the phone, and then my phone is back to work.


You can try legacy mode or try to order your Ubuntu drive on top.


Copying files from a GParted live session doesn't show them properly on Windows

your problem is that gparted doesn't copy files, it copies partitons -- raw data sector by sector.

Thus if you are going to copy data  from an ext partition and paste it into an ntfs partition, you will end up with a bunch or garbage since the two file systems are radically different.

You need to copy to idendical file systems or use cloning software, such as clonezilla.


Can I non-manually add a comma to the end of hundreds of lines of text?

With sed

$ sed 's/$/,/' file
aaabbbccc,
dddeeefff,
ggghhhiii,

It should be possible to do the same with gedit's search and replace by checking Regular expression box; if that doesn't work then replace \n by ,\n and modify the last line if necessary.

Some other command-line ways:

awk -vORS=',\n' 1 file

or similarly

perl -lpe '$\=",\n"' file


I write to SANE project's mailing list and get answer:

  Hi Orkhan,

  Orkhan Guliyev writes:

    Hello.

    I install printer driver for this device from Canon official site. All
    is good, and I can print documents. But with scanner situation is bad. I
    see inSANE project page
    http://www.sane-project.org/sane-mfgs.html#Z-CANONthat Canon MF231 is
    fully supported but system doesn't see any scanner device from USB.

  It is fully supported since 2017-04-26.  sane-backends-1.0.27 was
  released 2017-05-22, so based on

    [...]
    And finally this is report of apt list libsane-dev -a:

> > libsane-dev/xenial 1.0.27+git20171029-xenial0 amd64 [can be updated: 1.0.25+git20150528-1ubuntu2.16.04.1]
> > libsane-dev/xenial-updates,now 1.0.25+git20150528-1ubuntu2.16.04.1 amd64 [installed, can be updated: 1.0.27+git20171029-xenial0]
> > libsane-dev/xenial 1.0.25+git20150528-1ubuntu2 amd64

  I'd say you have to upgrade your libsane package as you appear to have
  1.0.25+git20150528-1ubuntu2.16.04.1 installed 'now'.

  The output you show is a bit misleading as it shows all the packages
  that are available, not just the ones that are installed.  Check
  with

  apt-cache policy libsane

  to see what version is installed and upgrade to a 1.0.27 version.

  BTW, you don't need libsane-dev, just libsane.

Know, I only install libsane in Ubuntu 16.04, not libsane-dev (for Ubuntu 17.04.

Thank you!


How to remove transparency in KDE without disabling all desktop effects?

Go to: System Settings->Desktop Effects->All Effects and scroll down to "Translucency" or search from the search bar which is there and just disable it and hit Apply. - that's for disabling Opacity while u move the window.

If your window is transparent even if u don't move it, just press Alt+F3 on the selected window and go to: Opacity->100%


Ubuntu 16.04 freezing when I power off external hard disk

You must umount the disk first, so Ubuntu has a chance to finish writing the data that's buffered in RAM. Either use the umount command, or Right-Mouse-Button hold on the disk's icon, and select "Eject". What you're doing (powering off the disk while Ubuntu has it mounted) confuses the system.


Is there a free option for playing WMA files?

Another good thing is to install the package ubuntu-restricted-extras

sudo apt-get install ubuntu-restricted-extras

It will install a lot more than just codecs for wma files. But you shouldn't have any problems with media files after the installation.


-[20.04, 2008 White Unibody Macbook] Battery charges to 55%, then declares it is full until it is unplugged showing it at 55%

As said by u/michaelMATE on Reddit:

  I have this “issue” on my Macbook Pro as well, the truth is Linux is more honest about your actual capacity, while Mac OS gives you the percentage based on the the remaining capacity. If you download Coconut Battery on Mac you’ll see what I mean. Sorry mate, you probably just have a really old battery and Linux is just honest with you :D

Coconut Battery gave a 55% battery life. It seems he was 100% correct here.


When Tab doesn't work, you can always try Alt+/, or whatever else bound to complete-filename.


How can I install deb packages on Ubuntu 17.04?

sudo dpkg -i [some deb file]

This will install a deb.

If you are trying to install packages try using apt-get. E.g.  sudo apt-get install   postresql
Use apt-cache to search for packages, etc.


MySQL Workbench GUI problems in Ubuntu 14.10

Just luck that I saw your question. This happened about 2 weeks ago to a friend at work. Since I saw the version was 14.10, I suggested to upgrade to 15.04 and then we could proceed on figuring out what was wrong.
After upgrading, his issues with Workbench were gone. So there might be a couple of things that could be causing this:

Version of the Libraries used for Workbench in 14.10
Version of MySQL Workbench (On 15.04 it is 6.2.3)
Fixes on 15.04 that impacted how Workbench and it's look behaved.

This is how it looks right now for me:

So my recommendation, before doing anything else, try to upgrade to 15.04 to avoid the End of Life and gain many fixes, enhancements and a newer workbench while you are at it.


You don't need a second Java version. Open your project settings

Right Click on project
Select Properties
In the dialog set the compiler compliance level to 1.4.


Which Android file should I install on VirtualBox in Ubuntu?

Before you boot a new guest OS for the first time in VirtualBox you must choose a virtual optical disk file and that file must be an ISO image, the same as for making an Ubuntu live DVD/USB. Click on the guest OS -> click Settings yellow gear icon -> Storage -> after where it says Optical Drive select an .iso file.


Universal USB Installer is a Live Linux USB Creator that allows you to choose from a selection of Linux Distributions to put on your USB Flash Drive.

The Universal USB Installer is easy to use. Simply choose a Live Linux Distribution, the ISO file, your Flash Drive and, Click Install. Other features include; Persistence (if available), and the ability to fat32 format the flash drive (recommended) to ensure a clean install.

Upon completion, you should have a ready to run bootable USB Flash Drive with your select Linux version installed.

You need to make the USB installation Persistent

Additional information Here : https://wiki.ubuntu.com/LiveUsbPendrivePersistent


How to set Fn+F2 to show battery's status throug OSD and not power statistics?

Gnome has dropped this feature in Gnome 3.2 but seems to be willing to add a small OSD notification back. Please see https://bugs.launchpad.net/bugs/884038 for more details.


How to find PCI address of an ethernet interface?

lshw and lspci are both capable of showing that information. As you have found out already, you can do lshw -class network -businfo. For instance, here's my output:

$ sudo lshw -c network -businfo
Bus info          Device      Class       Description
=====================================================
pci@0000:0e:00.0  wlan0       network     RTL8187SE Wireless LAN Controller
pci@0000:14:00.0  eth0        network     RTL8101E/RTL8102E PCI Express Fast Ethernet controller

What you also could use is lspci -D and pipe it to grep to filter out the ethernet controller specifically. Here's my example:

$ lspci -D | grep 'Network\|Ethernet'
    0000:0e:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8187SE Wireless LAN Controller (rev 22)
    0000:14:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)

Note that with the transition to systemd, one could use of Predictable Interface Naming to just look at the interface name to find out PCI information.


I now have my headphones working in Ubuntu 19.10.  This issue was answered 7 years ago right here on AskUbuntu at 3.5 audio jack issue doesn't work on a Dell Studio 1749.

To resolve the issue, you have to add a line to the /etc/modprobe.d/alsa-base.conf file to specify the sound card and laptop model. In my case, the line is 'options snd-hda-intel model=dell-m6-dmic.

Thanks all.


Ubuntu 13.10 and up: Instead of removing, try disabling?

Open the Application Scope (Super+A).
Scroll down to Dash plugins.
Select “See X more results”
Click on the Scope you want to disable.
Click “Disable”.

Tip: Toggle multiple scopes at a time using the left and right arrows in the Dash interface.


HD video problem with Ubuntu 14.04 on my HTPC

Just un update to my querry regarding HD video playing problem and Ubuntu. Actually, problem had nothing to do with Linux, but with the broken support bracket for CPU cooler and fan. Due to broken bracket CPU cooler and fan weren't properly attached to CPU, so the CPU temperature was too high. It took me some time to find replacement bracket and now everything works fine.


External audio is not working perfectly after suspend

English

At length I am able to solve the problem. At first try to load current driver setup, and check if it works.

alsactl restore

If loading current driver setup does not work, then reinstall the ALSA packages.

Remove the ALSA packages.

sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils

Reinstall the same packages.

sudo apt-get install linux-sound-base alsa-base alsa-utils

Check if works, you can try loading current driver setup another time.

alsactl restore

Hope it will be solve your problem, as like me.

বাংলা

অবশেষে সমস্যার সমাধান হলো।  প্রথমেই চলতি ড্রাইভার সেটাপ লোড করে দেখুন কাজ হয় কিনা।

alsactl restore

চলতি ড্রাইভার সেটাপ লোড করেও কাজ না হলে আলসা (ALSA) প্যাকেজগুলো আপনার সিস্টেমে পুনঃসংস্থাপন করুন।

প্রথমে আলসা প্যাকেজগুলো অপসারণ করুন।

sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils

সিস্টেমে সেগুলো পুনরায় সংস্থাপন করুন।

sudo apt-get install linux-sound-base alsa-base alsa-utils

এতে কাজ হবে, না হলে চলতি ড্রাইভার সেটাপ আরেকবার লোড করে দেখতে পরেন।

alsactl restore

আশা করি আমার মতো আপনার সমস্যা সমাধান হয়ে গেছে।


AutoKey can do everything you're asking for. You can find it in the Ubuntu Software Centre.


Tomboy cannot synchronize since updated to 11.10

You need to change the https address in the UbuntuOne parameters from https://one.ubuntu.com/notes/ to https://edge.one.ubuntu.com/notes/.

See the online Ubuntu online documentation for UbuntuOne installation.


How would I increase the size of my root partition in this case?

add it to the front of sda5, finish this task.
take it away at the end of sda5, finish this task.
add it to the front of sda6, finish this task.

Since sda5 is largely full it will probably take some time to finish.
A few comments:

There is an easier method: remove the swap partition, add it to sda6 and start using a swapfile. That way doing this becomes a lot easier: next time you can take it from the front of sda8 (sda7 after removing swap) and add it to sda6 in 1 task in gparted.

Mind that you also should examine your /. A desktop with 15Gb in root tends to have files there that do not belong in it. Like a database or website. Our base install is not 15Gb (not even close to it) and even installing every piece of software from the software center is going to be less than 15Gb.


What causes an issue with desktop elements losing focus when I move my mouse cursor on the left and top screen edges?

OK, there's a workaround for this issue. This bug report tells a lot more about it - https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1795135

I put export GDK_CORE_DEVICE_EVENTS=1 to /etc/X11/Xsession.d/56xubuntu-session and my Xfce panel items aren't blinking any more, and that works with Plank too. Tested on Xubuntu 18.04.


How to establish pppoe connection in Ubuntu?

Operating systems doesn't care what operating system the router uses. The standards are open and vendor-neutral. In general the relevant standards are:

Ethernet for providing physical connectivity. The NIC in your computer has to be supported by the OS you're using, but every Ethernet card can talk to all other Ethernet devices, generally speaking.
IPv4, the most-common protocol today on the internet. This is well supported by Linux, and most other modern operating systems.
IPv6, the next generation Internet Protocol, with increased address space to accommodate more devices on the Internet.

When it comes to configuration, the software used by Mikrotik, winbox, is only supported on Windows. It is purported to be well supported in Wine. I also believe mikrotik devices have a command line interface which can be used.