Windows Subsystem for Linux display Linux distribution?

WinScreeny

I took one of the three Github WinScreeny bash scripts and modified it  to look like this:

Here is the modified code:

#!/bin/bash
#
# Windows Screenfetch (Without the Screenshot functionality)
# Hacked together by Nijikokun <nijikokun@gmail.com>
# License: AOL <aol.nexua.org>

# Downloaded from: https://github.com/nijikokun/WinScreeny
# Modified from Windows to Windows Subsystem for Linux (Ubuntu initially)

version='0.4'

# Displayment
display=( Host Cpu OS Arch Shell Motherboard HDD Memory Uptime Resolution DE WM WMTheme Font )

# Color Loop
bld=$'\e[1m'
rst=$'\e[0m'
inv=$'\e[7m'
und=$'\e[4m'
f=3 b=4
for j in f b; do
  for i in {0..7}; do
    printf -v $j$i %b "\e[${!j}${i}m"
  done
done

# Debugging
debug=

Debug () {
    echo -e "\e[1;31m:: \e[0m$1"
}

# Flag Check
while getopts "vVh" flags; do
    case $flags in
        h)
            echo -e "${und}Usage${rst}:"
            echo -e "  screeny [Optional Flags]"
            echo ""
            echo "WinScreeny - A CLI Bash Script to show System Information for Windows!"
            echo ""
            echo -e "${und}Options${rst}:"
            echo -e "    ${bld}-v${rst}                 Verbose / Debug Output"
            echo -e "    ${bld}-V${rst}                 Display script version"
            echo -e "    ${bld}-h${rst}                 Display this file"
            exit;;
        V)
            echo -e "${und}WinScreeny${rst} - Version ${version}"
            echo -e "Copyright (C) Nijiko Yonskai (nijikokun@gmail.com)"
            echo ""
            echo -e "This is free software, under the AOL license: http://aol.nexua.org"
            echo -e "Source can be downloaded from: https://github.com/Nijikokun/WinScreeny"
            exit;;
        v) debug=1 continue;;
    esac
done

# Prevent Unix Output
unameOutput=`uname`GARBAGE
if [[ "$unameOutput" == 'Linux' ]] || [[ "$unameOutput" == 'Darwin' ]] ; then
    echo 'This script is for Windows, silly!'
    exit 0
fi

# Begin Detection
detectHost () {
    user=$(echo "$USER")
    host=$(hostname)
    [[ "$debug" -eq "1" ]] && Debug "Finding hostname, and user.... Found as: '$user@$host'"
}

detectCpu () {
    cpu=$(awk -F':' '/model name/{ print $2 }' /proc/cpuinfo | head -n 1 | tr -s " " | sed 's/^ //')
    [[ "$debug" -eq "1" ]] && Debug "Finding cpu.... Found as: '$cpu'"
}

detectOS () {
    os=`uname -r`
}

detectArch () {
    arch=`lsb_release -a 2>&1 | awk '{ print $2 " " $3 " " $4}' | head -3 | tail -1`
    [[ "$debug" -eq "1" ]] && Debug "Finding Architecture.... Found as: '$arch'"
}

detectHDD () {
    size=`df -H |  awk '{ print $2}' | head -2 | tail -1 | tr -d '\r '`
    free=`df -H |  awk '{ print $4 }' | head -2 | tail -1 | tr -d '\r '`

}

detectResolution () {
    width=`/mnt/c/Windows/System32/wbem/WMIC.exe desktopmonitor get screenwidth | grep -vE '[a-z]+' | tr -d '\r\n '`
    height=`/mnt/c/Windows/System32/wbem/WMIC.exe desktopmonitor get screenheight | grep -vE '[a-z]+' | tr -d '\r\n '`
}

detectUptime () {
    uptime=`awk -F. '{print $1}' /proc/uptime`
    secs=$((${uptime}%60))
    mins=$((${uptime}/60%60))
    hours=$((${uptime}/3600%24))
    days=$((${uptime}/86400))
    uptime="${mins}m"

    if [ "${hours}" -ne "0" ]; then
      uptime="${hours}h ${uptime}"
    fi

    if [ "${days}" -ne "0" ]; then
      uptime="${days}d ${uptime}"
    fi

    [[ "$debug" -eq "1" ]] && Debug "Finding Uptime.... Found as: '$uptime${rst}'"
}

detectMemory () {
    total_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo)
    totalmem=$((${total_mem}/1024))
    free_mem=$(awk '/MemFree/ { print $2 }' /proc/meminfo)
    used_mem=$((${total_mem} - ${free_mem}))
    usedmem=$((${used_mem}/1024))
    mem="${usedmem}MB / ${totalmem}MB"

    [[ "$debug" -eq "1" ]] && Debug "Finding Memory.... Found as: '$mem${rst}'"
}

detectShell () {
    myshell=`bash --version | head -1`
    [[ "$debug" -eq "1" ]] && Debug "Finding Shell.... Found as: '$myshell'"
}

detectMotherboard () {
    board=`/mnt/c/Windows/System32/wbem/WMIC.exe baseboard get product | tail -2 | tr -d '\r '`
}

detectDE () {
    winver=`/mnt/c/Windows/System32/wbem/WMIC.exe os get version | grep -o '^[0-9]'`
    if [ "$winver" == "7" ]; then
        de='Aero'
    elif [ "$winver" == "6" ]; then
        de='Aero'
    else
        de=$winver
    fi
    [[ "$debug" -eq "1" ]] && Debug "Finding Desktop Environment.... Found as: '$de'"
}

detectWM () {
    vcxsrv=`/mnt/c/Windows/System32/tasklist.exe | grep -o 'vcxsrv' | tr -d '\r \n'`
    wind=`/mnt/c/Windows/System32/tasklist.exe | grep -o 'Windawesome' | tr -d '\r \n'`
    if [ "$vcxsrv" = "vcxsrv" ]; then
        wm="VcXsrv"
    elif [ "$wind" = "Windawesome" ]; then
        wm="Windawesome"
    else
        wm="DWM"
    fi
    [[ "$debug" -eq "1" ]] && Debug "Finding Window Manager.... Found as: '$wm'"
}

detectWMTheme () {
    themeFile="$(/mnt/c/Windows/System32/reg.exe query 'HKCU\Software\Microsoft\Windows\CurrentVersion\Themes' /v 'CurrentTheme' | grep -o '[A-Z]:\\.*')"
#   theme=$(echo $themeFile | awk -F"\\" '{print $NF}' | grep -o '[0-9A-z. ]*$' | grep -o '^[0-9A-z ]*')
    theme=$themeFile
    [[ "$debug" -eq "1" ]] && Debug "Finding Window Theme.... Found as: '$theme'"
}

detectFont () {
#   font=$(cat $HOME/.minttyrc | grep '^Font=.*' | grep -o '[0-9A-Za-z ]*$')
    font="Consolas"
    [[ "$debug" -eq "1" ]] && Debug "Finding Font.... Found as: '$font'"
#   if [ -z $font ]; then
#       font="Lucida Console"
#   fi
}

# Loops :>
for i in "${display[@]}"; do
    [[ "${display[*]}" =~ "$i" ]] && detect${i}
done

# Output

cat << EOF

$f1         ,.=:^!^!t3Z3z.,
$f1        :tt:::tt333EE3                  ${f6}${user}${f7}@${f6}${host}
$f1        Et:::ztt33EEE  $f2@Ee.,      ..,
$f1       ;tt:::tt333EE7 $f2;EEEEEEttttt33#   ${f6}OS: ${f7}${os} ${arch}
$f1      :Et:::zt333EEQ.$f2 SEEEEEttttt33QL   ${f6}CPU: ${f7}${cpu}
$f1      it::::tt333EEF $f2@EEEEEEttttt33F    ${f6}HDD free / size: ${f7}$free / $size
$f1     ;3=*^\`\`\`'*4EEV $f2:EEEEEEttttt33@.    ${f6}Memory used / size: ${f7}${mem}
$f4     ,.=::::it=., $f1\` $f2@EEEEEEtttz33QF     ${f6}Uptime: ${f7}$uptime
$f4    ;::::::::zt33)   $f2'4EEEtttji3P*      ${f6}Resolution: ${f7}$width x $height
$f4   :t::::::::tt33.$f3:Z3z..  $f2\`\` $f3,..g.      ${f6}Motherboard: ${f7}$board
$f4   i::::::::zt33F$f3 AEEEtttt::::ztF       ${f6}Shell: ${f7}$myshell
$f4  ;:::::::::t33V $f3;EEEttttt::::t3        ${f6}DE: ${f7}$de
$f4  E::::::::zt33L $f3@EEEtttt::::z3F        ${f6}WM: ${f7}$wm
$f4 {3=*^\`\`\`'*4E3) $f3;EEEtttt:::::tZ\`        ${f6}WM Theme: ${f7}$theme
$f4             \` $f3:EEEEtttt::::z7          ${f6}Font: ${f7}$font
$f3                 $f3'VEzjt:;;z>*\`        $rst

EOF

I won't spend a lot of time dissecting it but you will notice it's a hybrid of some Linux kernel stuff and some Windows kernel stuff.

For example this Linux kernel line displays your CPU information:

cpu=$(awk -F':' '/model name/{ print $2 }' /proc/cpuinfo | head -n 1 | tr -s " " | sed 's/^ //')

On the other hand this Windows kernel line displays your motherboard model:

board=`/mnt/c/Windows/System32/wbem/WMIC.exe baseboard get product | tail -2 | tr -d '\r '`

Weather, Calendar and Time

Some people like the top part of the Ubuntu Bash on Windows 10 (WSL) terminal splash screen. If you would like the Weather, Calendar and current Time to display you can find the instructions here: How can I get this terminal splash screen?


Game 'Five or More' simply crashes without opening in Ubuntu 12.04

This is a documented bug.

To fix it, download this patch.

Instructions on how to apply patches can be found here. You must first download the source code of the gnome-games package, and then apply the patch to the source code.

If the patch doesn't work, you can also do things manually.

First, download the source code and untar it.

Next, open up the file glines/glines.c in a text editor.

Modify this part:

guint i;
cairo_pattern_t *pattern;

for (i = 0; i < MAXNPIECES; i++) {

So that it becomes this:

guint i;
cairo_pattern_t *pattern;

if (preview[0] == 0)
  init_preview();

for (i = 0; i < MAXNPIECES; i++) {

Also, modify this part:

gtk_widget_show_all (app);

start_game ();

So that it becomes this:

gtk_widget_show_all (app);

reset_game ();

start_game ()

Save the file and exit the text editor.

Now, you can configure, build, and install the games.

./configure
make
sudo make install


pygi how to toggle button without running function

If you want the function to be run most of the time the toggle signal is emitted, and not when you manually toggle it (e.g. when loading saved settings and displaying the appropriate state), then you need to block and unblock the signal. To do so you'll need the handle_id that was returned when the signal was connected to the function.  Just assign a variable when you connect the signal. Here's an example:

#!/usr/bin/python
from gi.repository import Gtk

def on_toggle(widget,data=None):
    print "toggled, emitted signal"

def on_button1_clicked(widget, data=None):
    print "manually toggle, no signal"
    toggle.handler_block(handle_id)
    state=toggle.get_active()
    toggle.set_active(not state)
    toggle.handler_unblock(handle_id)

win=Gtk.Window()
win.connect('destroy', Gtk.main_quit)
box=Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
button1=Gtk.Button('Toggle with no signal')
button1.connect('clicked', on_button1_clicked)
button1.show()
box.pack_start(button1,True,True,10)
toggle=Gtk.ToggleButton('Toggle')
handle_id=toggle.connect('toggled', on_toggle)
toggle.show()
box.pack_start(toggle,True,True,0)
box.show_all()
win.add(box)
win.show()
Gtk.main()


Ubuntu 13.04 to 13.10: Filesystem check or mount failed

I think I've sorted it thanks to a post I found here: Root filesystem check fails after power failure during installation.

Run from maintenance shell one line at a time:

mount -o remount,rw /
dpkg --configure -a
mount -o remount,ro /
sync
reboot

Worked for me but only got the first 2 lines and couldn't do the rest as drive was busy. Rebooted and it seems to be working now.


Error: build-essential : Depends: g++ (>= 4:4.4.3) but it is not going to be installed

This is a good use for the APT Master Recovery Commands:

sudo apt update
sudo apt -f install
sudo apt full-upgrade

These commands will update your local package cache, attempt to fix any broken packages with dependency issues, and then run a full system upgrade.

Once all of these things are done, go ahead and try installing build-essential again.


I think you need to use the npm init command in the directory where your creating your project.
Except from npm:

This will ask you a bunch of questions, and then write a package.json for you.
It attempts to make reasonable guesses about what you want things to be set to, and then writes a package.json file with the options you've selected.
If you already have a package.json file, it'll read that first, and default to the options in there.
It is strictly additive, so it does not delete options from your package.json without a really good reason to do so.
If you invoke it with -f, --force, -y, or --yes, it will use only defaults and not prompt you for any options.

So when you run:
npm init

That .json file will be setup for your project.


How to make Tor Browser executable from the Xfce Whisker menu?

I just tried in Xubuntu 16.04.

All I did was execute

./start-tor-browser.desktop --register-app

And it worked like a charm. It shows up in Whisker Menu.

If you go to ~/.local/share/applications and open Tor Browser with Mousepad or any other text editor, make sure Exec looks like this

Exec=sh -c
'"/home/caligaris/Downloads/tor-browser_en-US/Browser/start-tor-browser" --detach
|| ([ ! -x "/home/caligaris/Downloads/tor-browser_en-US/Browser/start-tor-browser"
] && "$(dirname "$*")"/Browser/start-tor-browser --detach)' dummy %k


XFCE - Laptop monitor is not completely off when resuming from suspension (using external monitor)

This is a common bug when using a laptop with an external display. Without knowing your exact laptop model, I don't think I can provide an exact solution, but below is what works for me on one of my testing laptops that has the same issue.

You should be able to manually set the backlight by manipulating the device files in /sys/class/backlight, and then create a desktop/keyboard shortcut for this so that it's easy to do when you unlock your machine.

Run ls /sys/class/backlight to see which backlit displays are available. If you only have one, this will probably output something like acpi_video0.

To set the backlight, run echo 0 > /sys/class/backlight/acpi_video0/brightness. This should take effect immediately.

In XFCE, you can right click your desktop to create a launcher/shortcut, or use the settings menu to create a keyboard shortcut.

You'll need root/sudo access to edit the file, so you can set your launcher to xfce4-terminal -e "echo 0 | sudo tee /sys/class/backlight/acpi_video0/brightness" to make sure that you are prompted for your sudo password.


Playonlinux
As the initial Wine-only solution was rather complicated (see below) I have found a Playonlinux solution that I posted on U&L.

Wine-only
(without Playonlinux)

To be sure, remove the previous Wine installation from Synaptic.

rm -rf ~/.wine
sudo add-apt-repository ppa:ubuntu-wine/ppa -y && sudo apt-get update
sudo apt-get install wine1.8
export WINEARCH=win32

At this point winetricks is needed. You can install it with sudo apt-get install winetricks but that version is subject to a possible error described here.

To avoid that error the solution is (after removing winetricks if already installed) to use the github link:

sudo apt-get remove winetricks
wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks

Then move winetricks file from ~/ to /usr/bin by copy/paste in root file manager or
sudo mv winetricks /usr/bin/

Then, the Microsoft XML Parser file is needed. Download it and put it in ~/.cache/winetricks/msxml3 (create folder if it's not there).
Run the command:

winetricks vcrun2010 dotnet40 gdiplus comctl32 ie8

(If, as indicated in the source link posted at the end, the command is run before installing msxml3, you will be prompted in terminal to download it as indicated above.)
Do not approve updates and such from Windows.

Download, unpack the Captvty package on your home partition and execute captvty.exe ('open with' - Wine), it should work now.

The program has an option to watch the videos without downloading them using internal or external players. The internal player is flashplayer for Windows. To get that and be able to whatch the videos in this way:
Go to http://get.adobe.com/en/flashplayer/otherversions/
Download the Windows 7, Internet Explorer version, in ~/ then
 wine install_flash_player_ax.exe

The internal flash player works fine and seems totally preferable to external players, because the Linux native video players cannot be used (only Windows players in Wine).
(The latter can only theoretically be used in the same way, on the condition that Wine supports them, and then added through Captvty options. The only one that (kind of) worked when testing was the portable mpv for Windows, but compared to the 'internal' flash player there is a long/huge (5 minutes!) lag between the moment the command to start the video is made and the moment the video starts playing: otherwise it works fine... when it does... but it's not worth the effort:  to watch the video use the other methods presented in this answer to get the video url and play it in a native video player.)

To search & launch Captvty (from Dash in Unity, krun in KDE, Synapse, etc) and see it among other Internet applications in menu launchers, create a .desktop file like so:
Using gedit:
gedit ~/.local/share/applications/captvty-wine.desktop

and paste this, changing the path to the .exe file for Exec= line:
[Desktop Entry]
Categories=AudioVideo;
Exec=bash -c 'wine /path/to/the/program/folder/captvty-2.5.1/Captvty.exe'
Icon=captvty
Name=TV Downloader Captvty
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;System;

To have an icon for that, find a png, name it captvty.png and put it in ~/.local/share/icons

Credits:  the answer is based on these posts here and here.

Version update:
Tested the above with 2.3.8.2 version and also with 2.5.1. Testing the more recent 2.5.4.1 the arte 7+ option gave no results, while this worked with the older version.


How to install Gimp Toolbox Photoshop Theme

You can use sudo unzip 159293-PSIcons1.1.zip -d /usr/share/gimp/2.0/themes/.
sudo will give you the admin privileges after you enter your user password.


Recursively remove same files found with locate

Use sudo

And always do a dry run before deleting to ensure you are not removing more than bargained for.

sudo find -type f -name '*omero*'

Then, assuming list looks good

    sudo find -type f -name '*omero*' -delete

or specify a location to search (you already know these files are in /etc)

sudo find /etc -iname '*omero*' -delete

-delete is faster than -exec rm {} \; or -print0 | xargs -0 rm as it does not have to spawn another process.

EDIT: From the comments

for i in $(locate omero) ; do rm $i ; done


Error with tar command, cannot install xampp 1.8.1 on Ubuntu 13.04

to install XAMPP

# wget http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/1.8.3/xampp-linux-1.8.3-4-installer.run
# chmod 755 xampp-linux*
# ./xampp-linux*


Wifi not working after cleaning the computer?

I fixed the problem for myself using the following operations :
cd rtl8821ce
sudo make all
sudo make install
then i reboot and i see wifi icon back . Thanks for care


kernel version 440.31.0 does not match DSO version 440.33.1 -- cannot find working devices in this configuration

I have seen the same error message and it was fixed by the following commands:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get upgrade

Then reboot the computer.


remove files on NTFS with \n in the filename

The disk is likely corrupt, and causing alot of these issue - you may be able to resolve this by checking your disk for errors - this is possible using Windows [1] or Linux [2] [3]

However it may work if you escape the \s (place \ before each \ - also remember to "quote" the filenames as they have spaces in) e.g.

rm "3D Face Reconstruction from Single 2D Image based on Robust Facial\\nFeature Points Extraction and Generic Wire Frame Model\\n.pdf"

or using the -r option so rm recursivly removes directories, removing the 'Is a directory' error:

rm -r *

  WARNING: Use the above command VERY carefully, otherwise it will delete loads of stuff


terminal appears on hotkey but command not executed

As command substitutions are performed by the shell, you have to execute your command as an argument to the shell:

gnome-terminal -x /bin/sh -c "youtube-dl --extract-audio --audio-quality 0 --audio-format mp3 $(xclip -o)"


What could cause network lag (after latest update)

"Solution" was trivial: I reset main router (to which I connect with USB adapter) and now everything is back to normal.
Great driver :? If I could only knew this before spending time on resolving what I don't understand...


Can someone explain the way Ubuntu manages networking?

Ubuntu doesn't use Network-manager as the default network manager(as I
  kept tweaking settings in /etc/network/interfaces without those
  changes being properly reflected,

Why should they? Except for lo the loopback interface, /etc/network/interfaces is deprecated in 18.04 and later in favor of either (but not both) Network Manager or netplan.

In almost every case, in a desktop environment, Network Manager does a fine job. I recommend that you revert the changes you have made to /etc/network/interfaces as wel as /etc/netplan/* and make any changes you require in Network Manager.


You need to install bcmwl-kernel-source.

For installing this go to your terminal and give sudo apt-get install bcmwl-kernel-source command. Do a reboot after completing the installation and give this sudo modprobe wl command on the terminal.

Hope that's gonna fix your problem.


Have a look here and here for detailed instructions.


The menubar color and the color for some other things can derive from your desktop wallpaper. Unity color is chameleonic. So you don't need to explicitly change the color of the menubar.

First open CompizConfig Settings Manager, go to Ubuntu Unity Plugin, enable it and set Panel Opacity to 0 as in the following image:

Now, when you will change your wallpaper, the menu bar will take the color of the wallpaper. Some examples:

If you want it to be almost white (well, completely white can not get because otherwise would not distinguish the text and the icons from the menu):


I had the same issue.
Please review my document how I fixed it.

https://docs.google.com/document/d/1owDutg6nqRXI-IwXMfPQ-m3UY_GIHOnT_YgZ7rJJIrs/edit?usp=sharing

I hope it would be helpful.

Thank you,
Alexander


How do I access the windows spread programmatically?

I talked to one of the Unity developers and at this time it's not possible to talk to the spread programmatically in Unity 3d, sorry!


I think I've identified your problem. You're using 32-bit Ubuntu but google chrome is only available for 64-bit architecture. Thus by default when you want to install it, it will show

  E: Unable to locate package google-chrome-stable

So, the solution is using a 64-bit Ubuntu OS.

Here is the news http://www.omgubuntu.co.uk/2016/01/google-chrome-linux-32-bit-discontinued. However, it seems you can also use Chromium browser which supports 32-bit arch still. Also you can use Opera browser which is based on Chrome mostly.


Why do some packages require other seemingly optional semi-related packages?

It's a simplicity thing.  If you want to break dependency chains, use custom packages.  It COULD be that when that package is installed, things just work, but there's some weird dependency issue that happens when it's not.  Ubuntu has come a LONG(and I mean astronomically long) way in the last couple of years in sorting out dependency chain issues.  They still rock socks compared to rpm based distros.


ubuntu 19.04, headphones not working, right after installation

Well, i figured it out seems my headphone cord was damaged. sorry for wasting your time. really glad to be here.


Thunderbird keeps asking me for the password every time I login

Alternative issue is when transferring a profile from one machine to another, especially Windows to Linux, where some of the settings are 'hidden'. The error/dialog message simple asks for the password, and says nothing about failure to connect, if that's of note.

In particular the pkcs11.txt file contains a file path that needs converting to the linux absolute file path. Given that it's a convenience file, it's easier to delete/rename the file and let it be recreated at next start up.

It may also have line ending or special character issues if you try editing it.


After creating the partition (say under /dev/sda4) you can type sudo mount /dev/sda4 /mnt and you will be able to mount the partition inside /mnt. Then you can cd into /mnt and access the partition.
You can also create your own mount point. For example sudo mkdir /mnt/sda4 and then run sudo mount /dev/sda4 /mnt/sda4 to mount.


Installed Ubuntu into an old notebook, unreadable screen artifacts

This issue is likely an issue with your graphics driver. It may not be able to render the graphical user interface that Ubuntu sets up for you.

See if you can open up the terminal and reinstall your graphics driver from command line. There are many ways to do this, so instead of providing you a command that may or may not work, I will link you to a page that goes over installing a graphics driver on ubuntu. You can also just google that exact phrase.

https://help.ubuntu.com/community/VideoDriverHowto


Bose Soundlink Mini II - how do I output high-quality sound?

I experienced same problem with my bose soundlink mini 2 in Ubuntu 14.04
The problem was solved when I installed BlueDevil program and connected to bose using it. After connection established you need to open sound settings and there you will be able to chsnge to A2DP profile ;-)
Hope it will help, because I am not a computer guru.
Good luck!


The eth0:0 seems to be an alias interface for eth0. That's why not able to interface from alias name. Kindly assign an individual(either virtual or physical ) interface.


Newest gnome-terminal versions support

gnome-terminal --tab -e [command ...]


How to resolve LZMA data corruption when booting from USB?

Ran into this similar issue.

I used Rufus 12.08 to create USB Key installer to install Ubuntu 16.04.4 Desktop

Went into the BIOS and changed the boot order to USB drive as the first device and was prompted to install.

I selected try Ubuntu first instead of Install now for the root menu.

Let the loader do what it does, confirmed the OS worked and installed it from inside the trial.

Install went without any additional issues.

Hope this helps


Can I run Ubuntu on intel atom using virtualbox?

If you have good amount of memory, you probably could run it. However, it would run on a very slow performance.


How can I undo a recently closed tab in Nautilus?

I don't think Nautilus or any of the major file browsers have this feature.

The only File manger I have seen this feature is ranger.

According to ranger website:

  ranger is a file manager with VI key bindings. It provides a minimalistic and nice curses interface with a view on the directory hierarchy.

In ranger you can use uq keybinding to undo closed tabs.


If you had a working Ubuntu system before rebooting, it should be something to do with grub installation, booting, MBR, etc.
As a possible solution for such problems, you might give a try to rescatux:
www.supergrubdisk.org/rescatux


The command that adds the repository is

sudo add-apt-repository ppa:archivematica/1.4

If the add-apt-repository command isn't available on your system, the command won't work, and you will need to run

sudo apt-get update
sudo apt-get install python-software-properties

and try again. However, there's no harm running those commands even if add-apt-repository is already available: apt-get will simply report that package python-software-properties is already the latest version.

For your other query, see Nothing shows up in the terminal when I type my password.


How can I set default the background slideshow settings?

First get the default values by below commands

gsettings get org.yorba.shotwell.preferences.slideshow delay
gsettings get org.yorba.shotwell.preferences.slideshow show-title
gsettings get org.yorba.shotwell.preferences.slideshow transition-delay

Example:

pratap@i7-4770:~$ gsettings get org.yorba.shotwell.preferences.slideshow delay
3.0
pratap@i7-4770:~$ gsettings get org.yorba.shotwell.preferences.slideshow show-title
false
pratap@i7-4770:~$ gsettings get org.yorba.shotwell.preferences.slideshow transition-delay
0.29999999999999999

now set your preferred values by below commands

gsettings set org.yorba.shotwell.preferences.slideshow delay 1
gsettings set org.yorba.shotwell.preferences.slideshow show-title true
gsettings set org.yorba.shotwell.preferences.slideshow transition-delay 0.1

Example:

pratap@i7-4770:~$ gsettings set org.yorba.shotwell.preferences.slideshow delay 1
pratap@i7-4770:~$ gsettings set org.yorba.shotwell.preferences.slideshow show-title true
pratap@i7-4770:~$ gsettings set org.yorba.shotwell.preferences.slideshow transition-delay 0.1
pratap@i7-4770:~$

Alternatively you can install dconf-editor with below command

sudo apt update && sudo apt install dconf-editor

Once, Installed Open it and search for shotwell
you can see lot of options if you want.


Cannot execute Java program: UnsupportedClassVersionError

It looks like you've compiled the Java source with a newer version of Java (7) which cannot be executed by the older Java runtime (6). If you don't need/want Java 7, uninstall the openjdk-7-jdk package and install openjdk-6-jdk instead:

sudo apt-get remove openjdk-7-jdk
sudo apt-get install openjdk-6-jdk

The alternative is using the direct paths to the specific versions of the compiler or runtime:

Running the Java 7 runtime

It's possible that Java 6 is still the default (compatibility with older programs?). To force the use of the Java 7 runtime, use the direct path to it:

/usr/lib/jvm/java-7-openjdk-amd64/bin/java tes

(replace amd64 by i386 for the 32-bit version of Java)

Running the Java compiler version 6

If you want to have code compiled for Java version 6, use the full path to the Java 6 compiler:

/usr/lib/jvm/java-6-openjdk/bin/javac tes.java

Alternatives

Like I've said before, if you don't like version 7 or 6, uninstall it (openjdk-7-jdk and openjdk-7-jre for version 7, openjdk-6-jdk and openjdk-6-jre for version 6). It's possible to have both versions installed. Use the alternatives system to configure the default one. Run the below commands to configure the runtime and compiler. It'll provide you a choice for the default.

sudo update-alternatives --config java
sudo update-alternatives --config javac


How do I get KLIPS or NETKEY on 11.10 server?

Without an archival ISO and archived packages I don't think this can be solved.  The extract of the Contents-amd64.gz from Natty repos tells me grep 'linux-image-2.6.1' Contents-amd64 from 11.10 returns an empty set for that query. As far back as I can go is 2.6.38-8 as indicated by grep 'linux-image-2.6.3' Contents-amd64 | sort -r

With a kernel update to current it can be.  Will the OP please let me know if a kernel update to current is do-able.  It was indicated otherwise in chat.


Netplan does not have any support for network namespaces at this time.  You would need to manage this elsewhere on the system, not as part of netplan yaml.


Ubuntu Software only shows applications, i.e. basically programs with a graphical UI. Help packages, such as extra fonts, can be installed from a terminal window. If you want a graphical interface to browse all available packages and install those extra fonts you want, you can install Synaptic.

sudo apt install synaptic


How do I airport-utils to configure my Airport Extreme?

This is probably due to a non-supported java version. I got the same result until I used gcj-4.4. Install command:

apt-get install gcj-4.4-jre gcj-4.4-jdk fastjar

You will then need to use that version of java (i.e. launch with /usr/lib/jvm/java-gcj-4.4/bin/java instead of just java by setting $JAVACMD.)


How to install Ubuntu Software Center on Ubuntu 16.04

Try installing the package software-center with sudo apt install software-center :)


Properly set up java development environment

After some digging I managed to pull this url:

http://sukharevd.net/environment-for-j2ee-development-under-ubuntu.html

It shows how to install the most important components for JEE development under ubuntu.

Please also consider @Fabby's comment on FHS in the original question:

http://refspecs.linuxfoundation.org/fhs.shtml


I uninstalled Ubuntu 18.04LTS and installed Ubuntu 20.04LTS on windows 10, but now it is not working with virtual environment

Pretty obvious but have you tried sudo?

sudo apt-get install python3-venv


Install Gmail Watcher to receive email notifications.

First add the Gmail Watcher PPA:

sudo add-apt-repository ppa:loneowais/gmailwatcher.dev && sudo apt-get update

note: the above command also updates your package list, a necessary step.

Then install Gmail Watcher:

sudo apt-get install gmailwatcher

To add a new account, select the '+' (plus) sign.  Enter your account details, then click 'Load Gmail Folders'.  Select the folders you want to monitor and click save.


Ubuntu 18.04 LTS GUI is unusably slow with Matrox G200eR2 (Dell r720xd server)

Everything "works" if you uncomment
WaylandEnable=false
in
/etc/gdm3/custom.conf.

Source: https://linuxconfig.org/how-to-disable-wayland-and-enable-xorg-display-server-on-ubuntu-18-04-bionic-beaver-linux

I still however get some server-xorg-core crashes.


dd if=/dev/zero of=/dev/sd* bs=512 count=32 should clear your partition table. Then you should be able to use gparted. Replace /dev/sd* with your device (not your partition. e.g: /dev/sda, not /dev/sda1) MAKE SHURE YOU USE THE CORRECT DEVICE FOR of=... OR BAD THINGS WILL HAPPEN.


usb stopped working after making it a bootable device

You could try overwriting the MBR of the pendrive, with:

sudo dd if=/dev/zero of=/dev/YOUR_DISK bs=512 count=1

You can check the device of YOUR_DISK with sudo fdisk -l.

Notice that with this, you will lose the contents of the pendrive, but it should be detected again after that. You will have to format it again afterwards.


Install the drivers from the GPU Drivers PPA, which contains the latest official NVIDIA drivers.
This often leads to properly working graphics, especially on very new NVIDIA GEFORCE cards.

First uninstall the NVIDIA software you already have had installed before.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On login screen press Ctrl+Alt+F1 - enter your user name and password - then execute :

sudo apt-get purge nvidia*
sudo reboot

Install the latest stable NVIDIA drivers and Optimus support for GTX 950M.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On login screen press Ctrl+Alt+F1 - enter your user name and password - then execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358 nvidia-prime
sudo reboot


GRUB2 on a LiveUSB is designed to first show you the option of installation, and then the option to run Ubuntu from what the LiveUSB copies into memory. Only if you install Ubuntu to your internal drive will it boot Ubuntu from the internal drive.

Here's the installation procedure:

Download Ubuntu's ISO file at https://ubuntu.com/download

or for a supported 'flavour' with a different Desktop Environment, download from https://ubuntu.com/download/flavours .

Next, check for download errors by following https://tutorials.ubuntu.com/tutorial/tutorial-how-to-verify-ubuntu#0 .

Make a LiveUSB following these instructions on another Linux PC https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu#0

or on a Windows PC https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-windows#0 .

Once you make a LiveUSB, install it following these steps https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-desktop#0 .

If you have problems with the installation, please check back here and provide details.


In Unity, how do I make desktop shortcuts (a la Windows, OSX)?

Why Unity was made default in 11.04 despite of obvious short-comings? Easy, although I'm not a representative of either Canonical or anything like that.

In April, Ubuntu 12.04LTS will be released. It'll be supported on the desktop for 3 years. Gnome2 is deprecated and we needed something new. Supporting the old desktop until 2015 was not a real option. It was decided that Unity is the way forward and because of the extra importance of 12.04LTS, it was important to speed up development -- exactly because Unity isn't ready for the masses. The easiest way of doing that, is to get it into the wild as soon as possible, expose it to a large audience and get lots of feedback and bugreports. That way, it can be made rock solid and polished by the release of 12.04LTS -- which is when Ubuntu will hit the fa... masses.

10.04LTS has been quite nice since the day it was released and I'd say it's perfect for most users. However, it is not very appealing. Even if it's a modern operating system, it looks somewhat dated. And that matters to a lot of users. When 12.04LTS is released, it will be just as stable, user friendly and efficient -- but it will be much more appealing. Unity is a lot more efficient to work with too, which is very important to heavy desktop users.

But this was already a difficult cycle because of other changes in the "ecosystem", such as the transition to Gnome3. If the introduction of Unity was to be pushed into the 11.10-cycle, then that would leave absolutely no margin for error when it comes to 12.04LTS, which after all is much more important. If you gamble that nothing goes wrong, then I will take your bet.

So in essence, you might say 11.04 is something like a beta for 12.04LTS and the LTS-es have to have significantly higher priority. That's what most end-users will stick to, and that's what nearly all businesses will use. That's what third-party software developers will develop for, what computer manufacturers will bundle, etc. But even if non-LTS versions get a lower priority, that doesn't mean they shouldn't be of high quality. Going from 10.04LTS to 12.04LTS is likely to be much, much harder than from 12.04LTS to 14.04LTS, so even if 11.04 isn't quite as rock solid as we would like, I'm confident that it is an exception.

All things considered, I'm really impressed by how well Unity works. It's come a very long way in a very short time.

As you can see, I picked one of your questions and answered it. As to the other ones, I didn't really understand them. But the launcher is for applications, not for files, folders or other things. You have the files and folders lense for that.


View Files from mirrored RAID outside the device

You can mount the individual raid component partitions (if they were RAID 1), but this will change the contents of the partitions, so, be careful if you ever have to add them to a RAID set again. Just mount them by hand (mount command)


Laptop not booting after fresh ubuntu mate 15 install

You've clearly got an EFI-mode installation. That's fine, and helps identify the problem, which I believe is this:

=================== efibootmgr -v
Timeout: 10 seconds
No BootOrder is set; firmware will attempt recovery

Ordinarily, the EFI BootOrder variable tells the firmware what OS to boot. It's not set on your computer, though, so it can't tell what to boot. What brand and model computer do you have? I've got an older HP laptop (a ProBook 6470b) that's got a broken firmware that can't accept this variable. The solution is to copy the boot loader file to the fallback filename of EFI/BOOT/bootx64.efi.

One complication is that you've already got a file of this name; however, because the name is fixed and Boot Repair doesn't try to identify programs' contents, it's not clear what this file is in your case. Whatever it is, though, it's not doing anything useful. Thus, I recommend you replace it as follows:

Boot to an emergency system (whatever you used to run Boot Repair will probably work).
Open a Terminal window.
Mount the ESP (/dev/sda1) someplace convenient. For instance, sudo mount /dev/sda1 /mnt will mount it at /mnt.
Change to the EFI directory on the ESP (cd /mnt/EFI).
Rename the current Boot directory, as in mv Boot Boot-old. (Note that the ESP uses FAT, which is case-insensitive.)
Copy the entire ubuntu subdirectory to BOOT, as in sudo cp -r ubuntu BOOT.
Rename shimx64.efi in BOOT to bootx64.efi, as in sudo mv BOOT/shimx64.efi BOOT/bootx64.efi.
Verify that what should be present is by typing ls /mnt/EFI/BOOT. You should see several files, including bootx64.efi and grubx64.efi.
Reboot. With any luck, the computer will boot normally.

As a side note, this sort of problem was common in early EFI implementations (from 2012 and earlier). This problem should not exist in more recent computers. If the computer is new, I STRONGLY recommend you return it to the store for a refund and get something else, since any computer with such an egregious problem is badly broken, and you don't know what else might be equally badly broken. Even if everything else is fine, maintaining a boot loader like this will be an ongoing hassle for the rest of the life of the computer.


From what i know that means the resolution used by the application  is not supported by your monitor, try to change the resolution of the app or force it to run in window mode


Tab completion doesn't work for commands

Check whether you have the following fragment in your .bashrc (should be there by default)

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi


Having both gnome and kde without the need to switch between them

That depends what specifically you mean.

Of course, you can install both environments, the packages themselves are not mutually exclusive. You can start with one environment, and you will be able to run the programs from the other. For example, runnning KDE programs with Gnome is not a problem.

However, only one environment would be responsible for actually managing your desktop.


To avoid overwriting the output file for every new page, I did:

for i in *tif; do b=`basename "$i" .tif`; tesseract "$i" "$b" hocr; done

It worked fine.

(I found this solution here.)


How can i remove packages without other packages?

ubuntu-desktop is a metapackage. It is empty, and only contains metadata such as dependencies and a description, to provide a simple way to install a whole desktop environment. It will also make it possible for to "push" new packages to be installed. This can be very much helpful over the five years Ubuntu is supported when the development of an application has stopped and they want to provide an alternative by default.

As gnome-power-manager is a hard dependency of the ubuntu-desktop package, you can't simply remove it without breaking the ubuntu-desktop package installation. And this is what APT is telling you here: it can only proceed with your decision to break the metapackage requirements. You can proceed with removing both packages, but that will make upgrades a bit harder, as you will have to handle any new packages yourself.

$ apt-cache show ubuntu-desktop
Package: ubuntu-desktop
Priority: optional
Section: metapackages
Installed-Size: 57
[...]
Source: ubuntu-meta
Version: 1.267.1
Depends: alsa-base, alsa-utils, [...], gnome-power-manager, [...]
[...]
Description-en: The Ubuntu desktop system
 This package depends on all of the packages in the Ubuntu desktop system
 .
 It is also used to help ensure proper upgrades, so it is recommended that
 it not be removed.
[...]

In case you want a very minimal Ubuntu system with only the packages you really pick yourself, then:

Whenever installing new package, be sure to omit the recommended (but not required) packages, by using an apt-get option:

sudo apt-get install --no-install-recommends packagename

or when using aptitude:

sudo aptitude install --without-recommends packagename

This significantly minimizes the amount of packages installed as the result of the single package selected. However, not all packages have separated hard dependencies and recommended ones separated in the requirements.
don't install ubuntu-desktop, but ubuntu-minimal. You'll have to install Ubuntu using the Server CD and specify you want a minimal install by pressing F4 on the first screen (see below).

Then after installation, you'll have a non-GUI installation. Install the ubuntu-desktop desktop without the recommended packages (see above for how) for a minimal Unity installation, or consider a more minimal GUI installation with LXDE: lubuntu-core. Don't worry about having installed using the Server CD. The Ubuntu flavour is just a set of packages.


Changing the screen brightness of the external screen

It's very easy to do via the command line. First, type the following command in terminal to identify your screens:
xrandr -q | grep " connected"

and you'll get something like this:
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm

VGA1 connected primary 1366x768+1366+48 (normal left inverted right x axis y axis) 413mm x 234mm

LVDS1 is related to laptop's built-in display. I am using an external monitor (VGA1 in this case). If you want to reduce the brightness of external screen, you just type this, for example:
xrandr --output VGA1 --brightness 0.63


Recover data from unreadable NTFS partition

If you have an option to remove the HDD and connect it to another PC with Ubuntu, then please do and install the testdisk package which includes photorec (File Recovery) and testdisk (Partition Recovery).

sudo apt-get install testdisk (In case you do not have it)

NOTE: Do not recover the files you get with testdisk/photorec on the same HDD you are recovering from. This will most likely mess stuff up.

You need another HDD to recover the files to.

I also recommend running fsck to check that HDD for problems. If fsck says it is ok, then at least at hardware level you are ok. Software level it is better with either the ntfs-3g tools like ntfsck and ntfsfix. To run fsck do:

sudo fsck /dev/sda2 but be sure to boot either from the Ubuntu you have already installed (If it correctly loads up) or from a LiveCD/LiveUSB. If not, then proceed from another PC. The reason I mention is fsck is to not only verify that the HDD is ok at the hardware level (Because of so many bad sectors and the warnings you got) but also to know that, if fsck can read it, it means you can actually save the information in it.

Just in case, here are 2 good links to recovery information:

Fsck vs Chkdsk

Tools to Diagnose


As a new user of Ubuntu you should not have to download anything from anywhere to get almost all running smoothly without issues.

This is especially true for graphics. If there was a bug or any other incompatibility in such brand new and partly untested downloaded drivers they will let you alone with a system booting to a command line terminal only, or in the worst case with a system that can not boot at all. Then it may not be so easy to get rid of these drivers again.

There is a great effort from our community to provide you with almost all possible drivers to make sure your system boots. Amongst these the Open Source ATI driver "radeon" is very stable, and it is well supported by ATI (ATI engineers develop this driver for us).

Only very new graphic cards, or applications demanding a lot of GPU power may benefit from a newer, proprietary or untested driver. Only if we had issues with our present setup we may consider installing a newer proprietary graphics driver.

  This is not the usual case.

Many people are very happy with the default drivers installed from the installation CD. They would not have much if any benefit from a newer driver.

In your case after you had already seen that your computer runs well in the live system I recommend you just install Ubuntu and enjoy it as it is. Refrain from updating or upgrading things with downloads from the Internet.

  This will very likely break your system sooner or later.

In case you have graphical issues - look around for other people with the same problem to see how they solved it. Then you may consider installing a proprietary driver which is only a mouse click away.

Also see: Is my ATI graphics card supported in Ubuntu?


Had the same problem. Seems to me that this is due to a potentially incorrect update from this Monday. Please try to update your xserver-xorg-video-intel, a new version has been released now, maybe they realized this issue.

sudo apt-get install xserver-xorg-video-intel

I did this, so far so good, I could not yet reproduce the crash.


To solve the problem, just use cp:

cp file1 file2

For your solution to work, just wrap the evaluation sentence in " ", like:

echo "$(cat file1)" > file2

This happens because using " " to wrap the evaluation in $() preserves newlines, tabs, spaces, and without them it just don't. So the problem wasn't cat but the echo


11.10 very slow with Radeon HD 4290 onboard

Have the same problems while using Ubuntu, except that i have another ATI videocard, 5770 HD. Install the latest ATI driver from AMD website, i prefer to create deb files and install drivers this way.
I think this link is good for you: http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx?type=2.4.1&product=2.4.1.3.42&lang=English
Manual installing tutorial on this page: https://help.ubuntu.com/community/BinaryDriverHowto/ATI

And then after drivers installed try to replace the Device block in your xorg.conf file with this one:

Section "Device"
 Identifier "ATI Radeon"
 Driver "ati"
 Option "AccelMethod" "EXA"
 Option "MigrationHeuristic" "greedy"
 Option "AccelDFS" "true"
 Option "EnablePageFlip" "true"
 Option "EnableDepthMoves" "true"
EndSection

It's working for me and I have very smooth windows!
Also save Sync to VBlank off and auto frame rate count in composite off too.


How to monitor the status of shutdown sequence

This script controls the shutdown timer using sleep and a loop.

#!/bin/bash
# Read Password
read -s -p "Password: " password
echo
# Send messages
for i in {0..5}
do
    echo "Shutdown in" $((30- i * 5)) "minutes"
    sleep 300
done
echo "Shutdown now" | wall
# shutdown and screensaver Command
echo "$password" | sudo -kS shutdown -h +30 &
gnome-screensaver-command -a &
read -p "Press any key to continue... " -n1 -s


This is not really related to ubuntu. And what you are asking for is for the most part not as easy. Now days most of the video sites around uses flashplayers. This hides the real location of the video from the user. To find out the real location you could try to download the flashplayer from the site and try to figure out how to get a direct link to the video. It requires some knowledge and I think you're better of using an already existing software.


sound is not coming in my earphones but it is coming from my laptop speakers

Try to update your audio drivers using the following command:

sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils
sudo apt-get install linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop


Okular has support for highlighting and annotating PDF documents. Also see http://okular.kde.org/faq.php#HowcanIannotateadocumentandsendittoafriendcollegueetc


Open CCSM, go to Window Management -> Scale plugin.
Now, under the third tab - Bindings, you can configure the window picker you want with any corner of your desktop. If I understood you correctly, you would need to click on the fourth entry, "initiate window picker for all windows" and choose the Top-Left corner.


Lubuntu 18.04, rsync gives me ‘sh: rsync: command not found’ rsync version 3.1.2 is installed

The remote client has not rsync installed which generates the sh: rsync: command not found error.
Same question was asked here:
https://superuser.com/questions/1432412/rsync-installed-but-still-getting-an-error-command-not-found/1432433
An alternative would be to mount data from the remote on your local via NFS, SMB, SSHFS, ... There is an example here: https://unix.stackexchange.com/questions/204530/copy-from-remote-server-which-doesnt-have-rsync


For Ubuntu 10.04, 10.10 and 11.04

You can drag and drop the Shutter menu item (Applications ➜ Accessories ➜ Shutter) into
the Startup Applications window and it will be added to the list of applications that start on login.


Ubuntu 16 : Eclipse marse : Unable to add apache tomcat

Well its because you might already have one conflicting. You could accomplish this via

  Tools > preference > Server

On the right side list delete the one already have and add a new tomcat server.
That's it


Print terminal output in gedit automatically?

Without a path time is the shell built-in, and its output does not get redirected. Instead, you can use the time program, in /usr/bin/time which will write to stderr:

/usr/bin/time -p ./myprog 2> timing.txt && gedit timing.txt

I added -p so the output is similar to the output of the time built-in.


Subdomain and main domain showing the same website

As a commenter said:

  Just put them both in default.conf you should also check over your default.conf  for spelling mistakes...


All commands accept both a -v and/or --debug flag that will produce a very verbose output. The former will output INFO level log information while the latter will produce DEBUG level output.

Here's an example bootstrap against an EC2 environment with both -v and --debug (juju bootstrap -v --debug)

2013-09-19 19:46:22 INFO juju.provider.ec2 ec2.go:209 preparing environment "ondina"
2013-09-19 19:46:22 INFO juju.provider.ec2 ec2.go:187 opening environment "ondina"
2013-09-19 19:46:22 INFO juju.environs.tools tools.go:29 reading tools with major version 1
2013-09-19 19:46:22 INFO juju.environs.tools tools.go:37 filtering tools by series: precise
2013-09-19 19:46:22 DEBUG juju.environs.tools storage.go:41 reading v1.* tools
2013-09-19 19:46:22 INFO juju.environs.tools tools.go:44 falling back to public bucket
2013-09-19 19:46:22 DEBUG juju.environs.tools storage.go:41 reading v1.* tools
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.10.0-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.10.0-precise-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.10.0-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.10.0-quantal-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.10.0-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.10.0-raring-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.0-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.0-precise-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.0-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.0-quantal-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.0-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.0-raring-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.2-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.2-precise-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.2-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.2-quantal-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.2-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.2-raring-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.2-saucy-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.2-saucy-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.3-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.3-precise-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.3-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.3-quantal-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.3-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.3-raring-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.3-saucy-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.4-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.4-precise-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.4-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.4-quantal-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.4-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.4-raring-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.4-saucy-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.11.4-saucy-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.12.0-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.12.0-precise-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.12.0-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.12.0-quantal-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.12.0-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.12.0-raring-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.12.0-saucy-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.12.0-saucy-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.0-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.0-precise-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.0-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.0-quantal-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.0-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.0-raring-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.0-saucy-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.0-saucy-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.1-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.1-precise-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.1-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.1-quantal-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.1-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.1-raring-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.1-saucy-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.1-saucy-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.2-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.2-precise-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.2-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.2-quantal-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.2-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.2-raring-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.2-saucy-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.2-saucy-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.3-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.3-precise-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.3-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.3-quantal-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.3-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.3-raring-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.3-saucy-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.13.3-saucy-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.14.0-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.14.0-precise-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.14.0-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.14.0-quantal-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.14.0-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.14.0-raring-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.14.0-saucy-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.14.0-saucy-armhf
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.14.0-saucy-i386
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.10-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.10-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.10-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.11-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.11-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.11-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.12-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.12-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.12-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.13-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.13-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.13-raring-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.14-precise-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.14-quantal-amd64
2013-09-19 19:46:23 DEBUG juju.environs.tools storage.go:61 found 1.9.14-raring-amd64
2013-09-19 19:46:23 INFO juju.environs.tools tools.go:93 picked newest version: 1.14.0
2013-09-19 19:46:30 INFO juju.environs.boostrap bootstrap.go:57 bootstrapping environment "ondina"
2013-09-19 19:46:30 INFO juju.environs.tools tools.go:29 reading tools with major version 1
2013-09-19 19:46:30 INFO juju.environs.tools tools.go:34 filtering tools by version: 1.14.0
2013-09-19 19:46:30 INFO juju.environs.tools tools.go:37 filtering tools by series: precise
2013-09-19 19:46:30 DEBUG juju.environs.tools storage.go:41 reading v1.* tools
2013-09-19 19:46:30 INFO juju.environs.tools tools.go:44 falling back to public bucket
2013-09-19 19:46:30 DEBUG juju.environs.tools storage.go:41 reading v1.* tools
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.10.0-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.10.0-precise-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.10.0-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.10.0-quantal-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.10.0-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.10.0-raring-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.0-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.0-precise-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.0-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.0-quantal-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.0-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.0-raring-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.2-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.2-precise-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.2-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.2-quantal-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.2-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.2-raring-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.2-saucy-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.2-saucy-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.3-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.3-precise-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.3-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.3-quantal-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.3-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.3-raring-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.3-saucy-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.4-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.4-precise-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.4-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.4-quantal-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.4-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.4-raring-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.4-saucy-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.11.4-saucy-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.12.0-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.12.0-precise-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.12.0-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.12.0-quantal-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.12.0-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.12.0-raring-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.12.0-saucy-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.12.0-saucy-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.0-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.0-precise-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.0-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.0-quantal-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.0-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.0-raring-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.0-saucy-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.0-saucy-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.1-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.1-precise-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.1-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.1-quantal-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.1-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.1-raring-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.1-saucy-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.1-saucy-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.2-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.2-precise-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.2-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.2-quantal-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.2-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.2-raring-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.2-saucy-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.2-saucy-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.3-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.3-precise-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.3-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.3-quantal-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.3-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.3-raring-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.3-saucy-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.13.3-saucy-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.14.0-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.14.0-precise-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.14.0-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.14.0-quantal-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.14.0-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.14.0-raring-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.14.0-saucy-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.14.0-saucy-armhf
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.14.0-saucy-i386
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.10-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.10-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.10-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.11-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.11-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.11-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.12-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.12-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.12-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.13-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.13-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.13-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.14-precise-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.14-quantal-amd64
2013-09-19 19:46:31 DEBUG juju.environs.tools storage.go:61 found 1.9.14-raring-amd64
2013-09-19 19:46:31 DEBUG juju.environs.simplestreams simplestreams.go:356 read metadata index at "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson"
2013-09-19 19:46:31 DEBUG juju.environs.simplestreams simplestreams.go:491 candidate matches for products ["com.ubuntu.cloud:server:12.04:amd64" "com.ubuntu.cloud:server:12.04:i386"] are [0xc200476a80]
2013-09-19 19:46:31 DEBUG juju.environs.simplestreams simplestreams.go:836 finding products at path "streams/v1/com.ubuntu.cloud:released:aws.sjson"
2013-09-19 19:46:32 DEBUG juju.provider.ec2 ec2.go:393 ec2 user data; 11572 bytes
2013-09-19 19:46:34 INFO juju.provider.ec2 ec2.go:426 started instance "i-29949e50"
2013-09-19 19:46:34 INFO juju supercommand.go:284 command finished


How to correctly set permisions for all subfolders and files

Use command sudo tos-install-jni to avoid permission denied error.


Make environment variables available for all script and programming language

1. Profile and non-interactive use
profile-files are being loaded only for interactive shells/environments and thus not if a command is run non-interactively, e.g. by nginx in the background. The only way for a system-wide variable would thus be /etc/environment, however:
2. nginx-specific issues
nginx actually kills all environment variables. nginx documentation

By default, nginx removes all environment variables inherited from its parent process except the TZ variable.

In your nginx-config, use env variable=value; to redefine or env variable to inherit it from the system.
3. supervisor-specific issues
From SO: Environment variables are inherited from the shell that runs it, if there never was one, you will have to define them.
Add EnvironmentFile=/etc/environment to the systemd service file of supervisor. I assume you run it like that?


Using md5sum command, example:

md5sum MY_FILE.iso

And the same for SH1, with sha1sum command, example:

sha1sum MY_FILE.iso


how install wifi and bluetooth drivers for micromax ignite pc

I have a Micromax ignite LPQ 61408W laptop too.

After a long ordeal I found that the laptop has RTL8723 chipset (Realtek). Since the company doesn't have any support for Linux, the drivers here worked for me

Instructions on this website helped a lot (make sure you change the URL and driver name in the steps).

sudo apt-get install linux-headers-generic build-essential git
git clone https://github.com/lwfinger/rtl8723bu.git
cd rtlwifi_new
make
sudo make install

And reboot...

Its still a bit buggy on my 16.10 but better than having nothing at all.

I am now hunting for Micro HDMI driver for the device. I will start a separate thread for it.


Your Ubuntu seems to be using a LVM as its root. The ext2 partition you mounted contains the bare necessities to make your system able to boot and mount the lvm, the rest – including bash – is stored there.

In order to find the LVM volume containing your data, you need the lvm2 package, which is not installed on a live system. Thus, install it.

sudo apt-get install lvm2

Find the volume group containing your root partition by listing all volume groups.

sudo pvs

The output should look like

PV         VG   Fmt  Attr PSize PFree
/dev/sda2  vg1  lvm2 a--  1,64t 236,91g

The second column contains the volume group's name, in this case vg1. With that, you can get information about the volumes contained in that group by issuing

sudo lvdisplay /dev/vg1

The output will look like

--- Logical volume ---
LV Path                /dev/vg1/lv1
LV Name                lv1
VG Name                vg1
LV UUID                kE8qXE-bI4u-NLzZ-u37A-wZfx-NtaU-57PqRj
LV Write Access        read/write
LV Creation host, time ,
LV Status              available
# open                 1
LV Size                1000,00 GiB
Current LE             256000
Segments               2
Allocation             inherit
Read ahead sectors     auto
- currently set to     256
Block device           254:0

You are looking for the LV name, in this case lv1. In case there's just one volume, that should be your root drive. Otherwise, mount them all and see which one contains your system's data.

Mounting the volume is as easy as

sudo mount /dev/vg1/lv1 /mnt

Once you've done that, you should be good to continue with the instructions from the thread you've found.

Update: As mentioned in the comments, since you are using a separate boot partition (/dev/sda1), you will have to mount it to /mnt/boot/. The second answer in the thread you've found contains some more details on that.

Update 2: The latest error usually indicates that something is wrong with your grub installation. If you have access to a remote GUI, you might try using Boot Repair. If that doesn't help or you only have a terminal, I'd advise the creation of a new thread focused on this new problem.


Install the development library of libusb and libusbredirparser-dev:

sudo apt-get install libusb-dev
sudo apt-get install libusbredirparser-dev

and again

./configure
[...]
libusb            yes
usb net redir     yes
[...]


Is there a version of the wubi installer that can be used offline?

I believe the WUBI installer only works when you are connected to the internet.  Once you start it the installer will automatically download the operating system.  I just did it two nights ago and it was a surprisingly painless process. The only downside is that the installation is limited to 30GB. More then enough to get to better know Ubuntu.

If you wish to do several computers then you might want to just download the DVD and do it that way. I am not sure about the most recent versions but in the past I am believe there was an option to install Ubuntu 'alongside' Windows. Installation that way is pretty easy too barring hardware incompatibilities.


Media player sound not working, works fine in browsers

It suffised to go into Ubuntu sound settings and change the exit device to Analog headphones - Internal audio. Pretty obvious solution, thought I had already tried, apparently not.


find ~ -maxdepth 20 -type f -size -16M -print > t; for ((i=$(wc -l < t); i>0; i--)) do a=$(sed -n ${i}p < t); mv "$a" /dev/shm/d; mv /dev/shm/d "$a"; echo $i; done; echo DONE; rm t

for flash drives ( and external hard drives ), replace the "~" in "find ~ -maxdepth" with the location of the drive.

example:

find /dev/sdb1 -maxdepth 20 -type f -size -16M -print > t; for ((i=$(wc -l < t); i>0; i--)) do a=$(sed -n ${i}p < t); mv "$a" /dev/shm/d; mv /dev/shm/d "$a"; echo $i; done; echo DONE; rm t

this works in most cases. the script basically re-copies most data under 16 mb from the drive back to the drive. it works because most filesystems (including fat 32 ) will always try to keep new data contiguous when it is saved.

This is designed to defrag the ~/ directory. If you are really looking to get the job done, I suggest you try defraging the disk using a windows computer/program.

Wine maybe too?


Putty configuration
Window
Appearance
Font Settings
Font
Change
Size: pick the smallest one possible, which is 8 for me
Go back to "Sessions", select a "saved session" and click "Save". Terrible interface design!

https://serverfault.com/questions/12295/how-to-make-putty-settings-persistent
https://serverfault.com/questions/52068/is-there-a-way-to-permanently-set-the-font-and-window-size-in-putty

I wish I could go even smaller a bit, but it is already a huge improvement.

Tested on Putty 0.70, Windows 10 local, Ubuntu 16.04 remote.


Thanks for the suggestions.  It seems to be an issue that a few have come up against where the processor gets stuck in a throttled state.  I've tried the suggested solution of removing the battery and it is now running at full speed again.  Unfortunately this has the effect of clearing other bios settings.  This was on a Dell XPS 9550.


Ubuntu 12.10 Wireless Problem; only showing me Bluetooth option

follow the below link, It may be usefull..... :)
http://technotranz.blogspot.in/2013/02/ubuntu-1210-wireless-problem-solved.html


For Ubuntu >= 16.04
In a terminal type
ubuntu-software --search "first person shooter"

for a list of free games that come with Ubuntu. Choose install of those you like.
For Ubuntu 14.04
search the Ubuntu Software Center:


Using Chromium v52, Chromecast no longer works and can't find device

Works at least with Version 55.0 (the version shipped with 16.10).

So there are two ways to cast to Chromecast

one of them is with the extension
the other one is with the native functionality.

This should work natively with Google Chrome.

I do not believe Chromium supports the native cast. Disabling this native feature opens up the ability to use the extension. Or you can use Google Chrome.

Open up chrome://flags/#media-router, it should say Media Router Mac, Windows, Linux, Chrome OS: Enables Chrome to access external presentation-type displays and use them for presenting web content. #media-router
Change it from Default to Disabled
Restart chromium-browser
Install Google Cast extension if necessary

This should work. There is a Launchpad bug opened here. The answer is based off Bob Smith's suggestion on this Debian bug. You can now see this advice in the official faq How to turn off Media Router and use the Google Cast extension.


Had problems (terrible wifi connectivity) with an internal wifi card (same chipset: rtl8723bu) on a Medion Akoya laptop (Akoya S4219-MD60740, ubuntu 16.04). Installing the github driver helps only after blacklisting rtl8xxxu. Now works like a charm...


Since the latest version of Samba available on Ubuntu is 4.1.11 for 14.10, and the Samba team's PPAs are long dead, it looks like the only way you can upgrade to 4.1.13 is installing from source.


Go to System Settings.  Then to User Accounts. Now you should see Login Automatically flip it on.  If it is grey, click Unlock at the top then enter root password.


Understanding bbswitch and nvidia kernel module

Remove the NVIDIA drivers and remove "bumblebee" as well.

Open a terminal and execute :

sudo apt-get purge nvidia* bumblebee
sudo reboot

Install the latest official NVIDIA drivers 358 and "nvidia-prime".

Open a terminal and execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358 nvidia-prime
sudo reboot

Use NVIDIA X Server Settings (Prime Profiles) to switch between the intel and NVIDIA GPU.


This information is not provided by any specific kernel interface and has to be estimated (guessed) manually using statistics such as CPU run time, I/O activity etc.  This requires calibrating the system to get good estimates based on the hardware design, so there is no easy generic way of doing this.  So the answer is, in theory it is possible to get some kind of vague estimate, but in practice it is non-trivial and is not going to be implemented.


Text editor where unsaved files can be recovered after computer crash?

Scribes is like Text Editor.

But it saves files automatically in your home folder, with a name like:

oqiowdq - (2013-04-05 16:49:15)

Where "oqiowdq" is the first line you typed.
This file is removed when you really save your file.

Unfortunately, it does not have tabs, so feel free to post better answers.
Also, the line number on the left make the text less readable than Gedit.


use gksudo instead of sudo, i.e.,

 gksudo apt-get install clamav clamtk


Web Browsers can connect to WebDAV directory, but Cadaver and File Browsers cannot connect on Ubuntu 14.04 LTS?

I noticed that in my apache2.conf configuration file, there is a restriction which I included before about allowed http methods. I removed it and tried again to connect WebDav server with cadaver. Then finally cadaver will prompt me to login credentials. So problem is fixed.


What changes were made to Unity webapps in 13.04?

Here's a video demoing the new Web Apps integration in Ubuntu: http://www.youtube.com/watch?v=AUTNxi6b-hw . There are no new things about that in 13.04.


How do I add xfwm4-settings to the Preferences windows in Lubuntu?

Turns out it was a similar file:

xfce-wm-settings.desktop

I removed the following line:

OnlyShowIn=XFCE;

and it appeared.


Is Not Installed (Residual config) safe to remove all?

As this question merged to here, there is need to provide some information which may helpful

From man apt-get:

       remove
           remove is identical to install except that packages are removed instead of installed. Note
           that removing a package leaves its configuration files on the system. If a plus sign is
           appended to the package name (with no intervening space), the identified package will be
           installed instead of removed.

       purge
           purge is identical to remove except that packages are removed and purged (any configuration
           files are deleted too).

So, when you remove package(s) usually by using Ubuntu-Software-Center or by sudo apt-get remove, it leaves its configuration files on system.

From community help,

  While there is no built in way to remove all of your configuration information from your removed packages you can remove all configuration data from every removed package with the following command.

dpkg -l | grep '^rc' | awk '{print $2}' | xargs dpkg --purge

So, Run following command from terminal:

dpkg -l | grep '^rc' | awk '{print $2}' | sudo xargs dpkg --purge

This will removes configuration files from removed package.


First you need to install Apache 2 and PHP (since you are using index.php)

sudo apt-get install php5 apache2

That will install both apache2 and PHP

That should work after you installed it. Also, you don't need to make index.php executable. It just needs to be readable.


Synaptics touchpad detected but unresponsive - Ubuntu 18.04.1, Lenovo Yoga 11e

After recent update in 18.04.1 I also start to have issues with not working touchpad and changing brightness with keyboard, this solution for old version of ubuntu fixed it.

To be short, need to add blacklist ideapad_laptop in your /etc/modprobe.d/blacklist.conf file.


How to dual-boot Ubuntu alongside Windows 10? Ran into a roadblock

Your dynamic partitions are the first problem, they need to be "basic" for the Ubuntu installer to see them.  Search around for ways to convert/recreate them, which has nothing to do with Ubuntu.

Next problem is a likely MBR partitioned disk, with a max of four primary partitions (your dynamic partitions get around this but basic wont.  You need to make one of the primaries an extended, which should have all the free space, so the Ubuntu installer can make logical partitions as needed (root and swap probably all you need).

Then you're ready for the Ubuntu install, which is the standard legacy install, except the installer can boot both UEFI and legacy -- only a problem if your machine can boot both, and it decides to boot UEFI.  You need to ensure the BIOS is set to boot legacy only or legacy before  UEFI in that case.


You have plenty of room in your root. If root is just an ext4 filesystem, not raid and not encrypted, you just need to copy the existing files from the partition mounted at /boot there, unmount /boot, and run update grub.  You could simply copy everything in /boot to /tmp/tmpboot, unmount /boot, and copy everything from /tmp/tmpboot back to /boot (now on root), the run update-grub.  Edit the /etc/fstab file to comment out (put a # at the beginning of the line) the /boot mount, and try a reboot.  A more elegant way would be to use a mount --bind / /tmpboot  and copy files directly from /boot to /tmpboot/boot.

Probably for a beginner, it would be just as easy to to the reinstall, rather than learning how to edit files as root (and not mess up your own directory's files).

The /boot/efi is a mount from the EFI partition, so in the new /boot directory, just make a directory efi.  The lost+found directory is for dumping files recovered from a filesystem check, which may have lost their directory or even their name.  Since the root has a lost+found, another one is not needed in the /boot directory.  I can't think of any other files which would not be needed. /boot/grub is a directory, so a recursive copy would be needed and preservation of owner and permissions, so cp -R -a /boot/* /tmp/tmpboot  etc.
  I thought you could just unmount /boot (as long as your current directory was not set to /boot), but maybe not -- its not something I ever had to do.  The edit of fstab, and a reboot might work, but you should be prepared with an install media to reinstall grub to the hard disk (or understand which parts of grub.cfg like changed UUIDs) need to be edited (thats more work than just a reinstall).


Triyng to install driver for TP-Link USB adapter

For kernel 3.19 you can install the driver this way:

sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192cu-dkms linux-firmware

If you are offline, download these files

https://launchpad.net/~hanipouspilot/+archive/ubuntu/rtlwifi/+files/rtl8192cu-dkms_0.2~trusty_all.deb

http://security.ubuntu.com/ubuntu/pool/main/d/dkms/dkms_2.2.0.3-1.1ubuntu5.14.04.5_all.deb

http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.149.3_all.deb

Copy them to your Home directory and run

sudo dpkg -i rtl8192cu*.deb dkms*.deb linux-firmware*.deb


Can not upgrade from 12.04 using update manager

This is a summary of what I've found. We've no idea what you've tried so far as troubleshooting so don't get upset if this is something you've already attempted.

Visit HERE and generate the appropriate sources list. For your case, Your Country and Ubuntu 14.04 (the version you're trying to upgrade to)
Open a terminal and type sudo gedit /etc/apt/sources.list. Replace the contents with your newly generated sources list.
Run sudo apt-get update && sudo apt-get upgrade -y && update-manager -d


"Unable to locate package" error in Ubuntu 18.04 on Windows 10

First of all, try running sudo apt update. If that doesn't fix it, you might have an improperly configured /etc/apt/sources.list file.


Dual Boot Ubuntu 20.04 - Windows 10 on Lenovo Thinkpad X1 7Gen

Neither of the answers above were relevant for the simple solution of the question.

As it turned out the problem was that the USB HDD was EXCLUDED from the boot order and has to be added first.

In UEFI menu go to 'BOOT', select the USB HDD from 'Excluded from boot order' and hit '+'.
This adds the USB to the 'Boot priority order'. Then the USB can be selected to boot from at startup, when hitting F12 on the Thinkpad.

Then the rest of installing the DUAL BOOT worked flawlessly using this guide: https://www.tecmint.com/install-ubuntu-alongside-with-windows-dual-boot/


Yes you can.

Those folders are not created every time someone logs in to a guest session, but they are created as needed for instance if a guest user inserts a USB stick.

Personally I think it would make sense if the program tried to remove the possible /media folder at the logout from a guest session, so I have proposed such a code change.


Netflix auto play - makes my user log off

In system settings, click on "Brightness and Lock", then turn off the LOCK toggle switch.

It's locking because the video comes out of fullscreen for a second while switching episodes, and sets off the timer to automatically lock the screen.

Long explanation : Normally auto lock is prevented while playing fullscreen videos, but it seems the timer is still running, and as soon as the video comes out of fullscreen, the timer comes into effect (which has been running the whole time).  I think this is a bug, because in my opinion, the timer should only start after the fullscreen exits, and not based on the last user input.


OPs answer:

  I fixed it. I ran chmod 755 /usr && chmod 755 /usr/bin (as root).
  Thanks Tim, even though you didn't tell me how to fix it you told me
  that /usr and /usr/bin were set to permission 744.


Reset PATH variable from TTY command line

The whole reason I had this problem was because of an entry in /etc/environment.

I had added PATH recursively:

PATH=$PATH:

and was then running

export PATH

This would result in a recursive PATH, which I assume would never resolve.

Clearing this change in etc/environment fixed my issue and I can run Ubuntu again. :)


taking screenshot with menu activated using keyboard

After some research, I found out this is a won't fix bug described in Gnome's Bugzilla.

So the only way to do it is use the screen shot tool with a delay, as described before.

Thanks for the help.


Your ip should be on the br0, eth0 won't have an ip.
Something like this :

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
    address xxx.xxx.xxx.xxx
    netmask xxx.xxx.xxx.xxx
    gateway xxx.xxx.xxx.xxx
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0


Run nautilus as root by opening a terminal and typing sudo -H nautilus. Then you should be able to delete the file. (Substitute in your file manager (e.g nemo, caja, dolphin) as necessary).


Thanks to bodhi.zazen's help I was able to finally fix this issue.

What worked:

su
cd /var/lib/dpkg/info
rm clamav*
apt purge clamav*
apt-get install clamav

This fixed my problem and now clamav is working again and I'm now able to install other programs.


How did you install GVim? From terminal with

sudo apt-get install vim-gnome

or from software centre? I have installed GVim from software center and set my font as you said. Everything is fine!


"System program problem detected do you want to report problem now ? Cancel | Report problem..."

Step 1 : go to /var/crash folder.
-Step 2 : Check if any files are there.
If yes its because of these files OS is complaining
-Step 3 : based on the file name we can makeout which process has crashed and complaining.
-Step4 : In my case virtualbox process has crashed and was ok with deleting those files.
-Step 5 : When once all files are removed from the folder did not see any reporting by linux.

-Please check if this input works.


how do i format my hard drive to ntfs from ext4

The first thing is that this is not the right place to ask this question. This is Ubuntu Forum and not Windows Forum and this question should be placed in Windows Forum if there is any.

Another piece of valuable information is Ubuntu is not for developers. It is for everyone. My dad who is 65 uses this and he is comfortable with Ubuntu than Windows. I still recommend you should continue to use Ubuntu and not to switch back to Windows.

To answer your question, if you have a Ubuntu live CD or USB, you should boot it with that, run gparted from there, then delete the partitions. Then you can create NTFS partitions from there. Once you restart, windows should able to read the partitions.

NOTE: If Windows bootable USB still do not recognize your hdd, then you will left with no OS on the system. You have been warned.


How can I troubleshoot why my Desktop wallpaper is not being changed?

I found the solution from How to configure GNOME 3 to show icons on desktop.

The custom wallpaper is only shown if the following is being set true:

gsettings set org.gnome.desktop.background show-desktop-icons true

My ultimate question: Is it not possible to hide Desktop icons but use a custom wallpaper?


Ubuntu One FAQ:

  Where is the music I purchased from the Ubuntu One music store?

  You should also be able to see them in the web interface at
  https://one.ubuntu.com/files/ in the Purchased Music folder. If you
  can't, then please contact Ubuntu One support .

  If you want purchased music to download to your computer automatically
  then make sure you have the "Purchased Music" folder checked in the
  "Folders" tab of the Ubuntu One application. Once that is checked,
  music will download to your computer.

Source


The clean way would be to create a .desktop file for your script and then make it the default text editor.

Create a file called /usr/share/applications/foo.desktop with the following contents:

[Desktop Entry]
Name=foo
Exec=/usr/bin/foo.sh %U
Terminal=false
Type=Application
MimeType=text/plain;

Make it the default program for the text/plain mimetype:

xdg-mime default foo.desktop "text/plain"

As a dirty hack you could also simply call your script gedit:

sudo mv /usr/bin/gedit /usr/bin/gedit.orig
sudo mv /path/to/yourscript.sh /usr/bin/gedit

Then make your script call the original:

echo "Works!"
/usr/bin/gedit.original "$@"


Use of hdparm state in script works only manually and not by cron

Probably because your $PATH differs in cron jobs, and it cannot find hdparm. Specify the whole path to hdparm, which you can find via type -p hdparm.

I also suggest running a cron job like:

env | sort >$HOME/cron.env
echo $PATH | tr ':' "\n" >$HOME/cron.path

To see what your cron environment looks like. More generally, look at all your run environments.


Why should all world-writable directories be owned by a privileged group?

My only guess is that they are talking not about modifying the file
but about reading the file, deleting and then recreating it.

Yes, it sounds like this is exactly what they are talking about.  Whether the file is readable is irrelevant.  Deleting a file and recreating it with whatever you want in it is--practically speaking--the same as modifying it.  Sure, if you want to split hairs you could argue it's not the same file because it might have a different inode or take up different blocks on the disk, but that doesn't matter for security.  Either way, it has the same filename and different contents than the user who owns it is expecting.  That's a security risk.
For example, let's say this directory is a temporary directory where any user applications running can write out or read back in their own temporary files.  This works fine as long as nobody can modify each others' files.  But as soon as that becomes possible... whether or not they are readable... it opens up those applications to various attacks.  If the attacker understands how the application works and what it's expecting to read from that temporary file, then they could replace the file without the user who is using the application even knowing.  And in many cases, this allows them to control the behavior of the application, making it do something unexpected like send the user using it to a phishing site instead of a real site, or even send out fake emails to other people, etc.
This is a vulnerability even if the file is not readable.  But there are also legitimate cases where an application might want to write out a file that's world readable but only modifiable by the user who created it.  For example:  a public key which identifies them to others, or allows other applications to send secure information to them.


Try the following:

System settings -▸ Keyboard -▸
Launchers | Home folder
Press Super+E and close the dialogs.
Now press Super+E and it should open the /Homefolder in nautilus.

It worked for me.


Can one choose a specific repository for the Ubuntu setup process to use when installing from the live CD?

Boot into the live session (not installer), open synaptic, change repository, refresh and without restarting open Install Ubuntu from Desktop.

Ubuntu live cd has a virtual RAM drive where changes are recognised.


You are attempting to download the intel drivers from their website, but have not followed the full set of instructions.

You need to open a terminal and enter

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | \
sudo apt-key add -

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-2 -O - | \
sudo apt-key add -


How to create Template file which create a new file having file creation date and time?

This is not the solution for which I am looking for. But certainly good one.

Step-I

Create a file and put following command

#!/bin/bash

touch $(date +"%Y-%b-%d_%H:%M:%S")

Mark file for execution

chmod +x file

Or Right click on file and select properties. Under Permission tab, tick Allow executing file as program

Step-II

Install dconf-editor and run it.
Move to org/gnome/nautilus/preferences.
Right click on executable-text-activation.
Select launch from drop down menu.

Step-III

Put that file in Templates folder.

Step-IV

At any location (e.g. Desktop or Documents etc.), just right click and create that file there.
Now double click it, it will create file with Date&Time as name.

  Bash command for creating file with Name as DateTime and also as first line

#!/bin/bash

echo $(date +"%Y-%b-%d_%H:%M:%S") > $(date +"%Y-%b-%d_%H:%M:%S")