Can't access Windows 10 after Ubuntu installation

I just discovered that I installed Windows with Legacy Mode and not UEFI. Since I have all my personal data on another disk, I just reinstalled Windows 10 on the same physical disk as Ubuntu and with UEFI. Now GRUB and Dualboot is working great!


Is removing memtest entries from GRUB a bad idea?

There is no harm in removing them.  I would suggesting leaving them there. Memtest is for checking your RAM. It is very easy to use. You just set it running and watch the results. Basically, a healthy RAM should show no errors.

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

sudo chmod -x /etc/grub.d/20_memtest86+
sudo update-grub

Or just use Grub Customizer.

You can always run memtest by downloading the boot CD from memtest.


How to get colored output from bash script?

Using the --color option works for me out when I run grep inside of shell scripts.

Here is an example of what you want.

grep -n --color=auto "PATTERN" FILE


Can't upgrade Ubuntu 17.04 or download any Ubuntu software

Your syntax for apt reinstall is incorrect. Try
sudo apt install --reinstall mount


It would be application specific and depend on whether the application exposes ways to communicate with it through the command line or D-bus (the dbus-send command offers an interface through the terminal). Then, it would still depend if the application allows to save and close a file this way.

It will likely not be obvious to find ways to do this through the command line. Practically, the bottom line with GUI applications remains to hit Ctrl+S often enough.

For your information, although this may not work if the GUI is unresponsive, one can send keystrokes to an application through the command line using xdotool. For example:

xdotool search --name Untitled key ctrl+s ctrl+q

would search a window with "Untitled" in the name, and issue a save and then a close command.


The error is;

  /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such
  file or directory

This mainly indicates you are building 32bit on a 64 bit machine so to solve that

try to install the package gcc-multilib

sudo apt-get install gcc-multilib

if you already have it or this doesn't work then try to install

sudo apt-get install libc6-dev-i386


Problem to upgrade from Ubuntu 19.10 to 20.04

Try this command before you run do-release-upgrade -d

sudo apt-get install --reinstall ubuntu-keyring


The packages for the usages of MySQL will not vary at all.  For a basic MySQL server (and client program so you can use the server), you will run the following:
sudo apt-get install mysql-server mysql-client

That will install both the server and the client program, as well as any dependencies that those programs require.  The client program will allow you to interface with the database server.  You may install the server without mysql-client, if you are going to not use the mysql command via the server's terminal (such as with a remote mysql client, or using the mysql command in a terminal from another computer).

NOTE: This stuff was originally in comments on @mbx's answer, but this is actually an answer, not a comment :P


Access packages in distributions from Launchpad API

I can get the source files through the following pathway:

Call https://api.launchpad.net/1.0/ubuntu/+archive/primary?ws.op=getPublishedSources&pocket=Release&source_name=grep&exact_match=true to get all source packages for grep (this can be filtered down in the URL itself by specifying the link to the distro series)
In any source_package_publishing_history, call the sourceFileUrls operation. For example, for the latest version of grep in Trusty, call https://api.launchpad.net/1.0/ubuntu/+archive/primary/+sourcepub/3832982?ws.op=sourceFileUrls.


Press ALT+F2
Write: gnome-session-properties and press ENTER
In the Startup applications window add a startup program
In the Edit startup program window fill the fields:

Name: Nitrogen
Command: nitrogen --restore
Comment: Set the wallpaper using Nitrogen

Save the startup program and restart your session.


Booting problem with windows 7 and ubuntu 12.04

You cannot see ext4 partitions within windows 7 by default. You can try installing a bootloader entry for ubuntu in windows using command prompt or using a free tool like EasyBCD which provides you a clear gui. Add a new entry for Ubuntu in windows using EasyBCD and set bootloader as grub 2. Then you will get a new entry for ubuntu in windows boot manager list. I can give this answer as a help but I am lack of knowlege to tell you much technical details.

EasyBCD for windows : http://www.softpedia.com/get/System/OS-Enhancements/EasyBCD.shtml


My PC has both Windows XP and Windows 8 installed. If I use Wubi to install Ubuntu, where should I  run the Wubi installer? XP or Win8?

Wubi installs Ubuntu inside Windows, so theoretically you should be able to install it either in XP or Windows 8. However, I would play it safe and try installing it in Windows 8 first since you're using that bootloader.


Xubuntu 16.04 - set mouse to *always* single click?

Single click to access items is done in two parts for Xfce.  Your Desktop and File Manager are set separately.

For the Desktop itself single click, go to your Applications > Settings > Desktop and in the Icons tab choose Single click to activate items.

Then in your Applications > Settings > File Manager in the Behavior tab, choose Single click to activate items and that should make it single click for you.

Hope this helps!


Can't install .deb packages in Ubuntu 16.04.1 or 16.10

Open a terminal (press Ctrl+Alt+T) and run:

cd Downloads
sudo dpkg -i sublime-text*.deb
sudo apt install -f


Update gitg without apt-get? Will I break something?

The only thing that could happen is that there are missing dependencies for v3.26, other then that, remember to apt-get remove gitg before installing the higher version.

If something does go wrong, which I highly doubt will, you can always reinstall the previous version.


multitouch support for magic mouse on further releases?

Ubuntu does not have a driver or any compatibility written in yet. That is the most basic answer there is. Someone might have written a driver for the magic mouse, but I haven't seen any drivers yet. 12.04 will probably have support for it since it is a LTS, so there is hope.

Also the reason it only supports basic functions is because that is all that is written for it, since the average mouse only has those features.


"Waiting to install" for ever - Ubuntu Software - 16.04

Install .deb packages from the terminal:

$ sudo dpkg -i <path/to/deb.deb>
$ sudo apt-get install -f

The reasoning behind apt-get install -f from the man page:

 -f, --fix-broken
           Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can
           omit any packages to permit APT to deduce a likely solution. If packages are specified, these have to completely
           correct the problem. The option is sometimes necessary when running APT for the first time; APT itself does not allow
           broken package dependencies to exist on a system. It is possible that a system's dependency structure can be so
           corrupt as to require manual intervention (which usually means using dpkg --remove to eliminate some of the offending
           packages). Use of this option together with -m may produce an error in some situations. Configuration Item:
           APT::Get::Fix-Broken.

Credit: Mohit Rajan's comment


tr is contained in the coreutils package, but if this package was installed before a simple apt install will not restore it. To reinstall the package use apt-get’s --reinstall option:

sudo apt install --reinstall coreutils

If you didn’t (re)move the missing binary /usr/bin/tr there might be something wrong with your system, run fsck on the partition for a filesystem check and (if necessary) repair.


If you have a good internet connection, you could install the minimal version of ubuntu first and then install all necessary packages once installed.

You can get help regarding burning it to a CD and installing it on this wiki page:

Ubuntu Minimal CD

With this you could even install the latest version of ubuntu (Trusty Tahr) on your system.


How to open the terminator with 4 window?

In Terminator you can right click and then choose "Preferences".

When you add a new layout (left button "add") terminator will add your current windows settings.

Give it a name and close the preferences window.

Now in ~/.config/terminator/config your new layout is added.

You can now start terminator with:

terminator -l yourLayout

If you want terminator to always start with your layout, have a look at that file (~/.config/terminator/config). Should be easy to copy your settings to the [default] section.


Viber won't start in Ubuntu 15.10 due to missing shared libraries libgstreamer-0.10.so.0 How to fix this?

The accepted answer is a little off

The package that needs to be installed is actually

libgstreamer-plugins-base0.10-0

so

`sudo apt-get install libgstreamer-plugins-base0.10-0`

Running the accepted answer gave additional error about libgstapp
PS: I do not have enough points to comment, so I answered the question


dma_alloc_coherent() and physical addresses

Additional testing shows that dma_hndl does map to the same physical address as dmabuffp.  Apparently virt_to_phys(bus_to_virt(dma_hndl)) does not resolve as expected and instead is circular, returning the original dma_hndl value instead of the physical address that is mapped by the IOMMU.


vpnc cannot connect to VPN due to vpnc-script

I saw that this bug was fixed and relased only for Ubuntu Precise and I think you should mark it as affecting you and ask there for a possible solution to the problem in Oneiric (a merge of the released fix in Oneiric or another solution).


Recover of important files on hard drive impossible

Open a terminal and type:

sudo apt-get update
sudo apt-get install gksu
gksudo nautilus

Now copy the files.


You need to end it with a "done", like:

for f in *.jpg
do
    gsettings set org.gnome.desktop.background picture-uri "file:$f"
done

But I think the best way to do it is like this:

for f in /path/to/dir/*.jpg
do
    gsettings set org.gnome.desktop.background picture-uri "file://$f"
done

Okay, I edited the second code. Try with this.

If you want to get random wallpapers from the Internet, you can execute this code:

#!/bin/bash
while true
do
    img=http://www.wallpaperup.com/wallpapers/download/$RANDOM/1920/1080
    wget -O /tmp/1080.jpg $img
    gsettings set org.gnome.desktop.background picture-uri "file:///tmp/1080.jpg"
    sleep 60
done

This script will change the wallpaper every 60 seconds.


Samsung Xpress M2026 on Ubuntu 18.04 lts

please see here to install SAMSUNG ULD printer drivers: https://forum.ubuntuusers.de/topic/samsung-clx-3305-laser-drucker/

Note: the driver will be shown as "M2020-Series", but it works also for M2026.


After Login there is a strange window asking for a password

The window comes from gcr-prompter and seems to be this bug:

https://bugs.launchpad.net/ubuntu/+source/gcr/+bug/1044549

I will try the workaround mentioned there (removing ~/.config/goa-1.0/accounts.conf)


How to close notifications with the keyboard?

I don't have an answer to closing it with the keyboard but if you edit the /usr/share/gnome-shell/js/ui/autorunManager.js and change the line

this.setUrgency(MessageTray.Urgency.CRITICAL);

to

this.setUrgency(MessageTray.Urgency.NORMAL);

It will only pop up for a few seconds and then disappear.  You will still have the Icon in the panel, it will just not bug you down below.


How do I recover my username and password on a persistent LiveUSB?

For the live cd (and media made from the cd) the username is 'ubuntu' and the password is blank - just hit enter when asked for a password.

That will work unless you have changed the password or created another user, which I understand that you have not.


On Boot: "The disk drive for UUID=... is not ready yet or not present"

Yes, that is exactly what you need to do.

sudo nano /etc/fstab

then remove the line that says

UUID=d4b17eae-c547-4d02-8d1d-0279069d35f0 none swap

Then save (Ctrl+X)
And the problem should be gone.


The officially supported version (in other words, the version in the official repos) is 7.6.2 for 13.04 and 7.6.3 for 13.10 and 14.04, according to this website.

If you wish to use a different version, you can compile it from source or use a PPA that supplies the one you prefer, for example, check out this PPA. (For more information on PPAs, see this question.)


rest api ubuntu 17.10 apache mod_rewrite .htaccess

Another atempt worked.
With this explanation https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite-for-apache-on-ubuntu-14-04
I could set up the  000-default.conf file in /etc/apache2/sites-available correctly.
Restart apache2 don't just reload.


history is what's known as a builtin. It's essentially a bash function that operates within your session (like the rest of the logging that feeds ~/.bash_history too).

When you run sudo something, that's happening within your session, not root's. Additionally, when something is run with sudo, it' doesn't spawn a separate bash session and then run the command. It's just executed with the correct privileges (I'm simplifying the truth somewhat).

This mildly undercuts Lekensteyn's different shell point. It's true, it just doesn't matter. Neither root bash or dash is the shell running the command. You can prove this by running something like sudo -u $USER whoami and then looking at ~/.bash_history. There is only one command. If this were another shell, I would expect to see sudo -u $USER whoami followed by whoami.

Also sudo su -c 'echo $0' outputs the parent shell (bash in my case) though I'm not sure if this is as significant.

Anyway, when you run sudo something it just goes into your own ~/.bash_history. If you want to see the command that you've run with sudo, run:

grep -E '^sudo' ~/.bash_history


What is difference between install desktop-environment and run directly distro?

They are not different

Suppose you have already installed Ubuntu and want to try Kubuntu. Most of the stuff is already there. Install the Desktop Environment (DE), option 1.

Now you have both. Each DE comes with some default applications. You can use any application in any DE. You can log out of one DE and log back into the other DE. Your files will be in the same place, just the environment will look and work different.

Now suppose you like KDE better and don't like Unity. You have another computer, and you want the KDE on that one. Install Kubuntu directly on the computer. Go for option 2. Kubuntu uses the KDE Desktop Environment, Ubuntu uses Unity by default. But they are both the same distro (Ubuntu).

Default Applications

The default applications are different in different DEs. Some DEs have more common default applications than others. For example Unity and Gnome have many common default applications. The default applications in Unity and KDE are somewhat different. If you start with Unity, and install the Kubuntu-desktop, option 1, you will have the default applications of both the DE.

If you go for option 2 and install Kubuntu, you can still install some default applications of Unity if you like them better. For example, you can install Firefox, the default browser in Ubuntu in a fresh Kubuntu installation.

The difference between the flavors are in the set of packages installed. However, all flavors of Ubuntu use the same repository for downloading updates, so the same set of packages is available regardless of which flavor you have installed. New flavors have to go through a process to become a Recognized Flavor.

Reference: Ubuntu Flavors

Hope this helps


A relatively safe way to test the "something in .gconf doesn't like me" hypothesis is

cd
mv .gconf dot.gconf

where the obvious inverse

mv dot.gconf .gconf

will set things back to the way they were if this doesn't help. Also useful for testing this hypothesis is to adduser a dummy account and see if a fresh user is also so afflicted.

Incidentally .gconfd contains very little information, perhaps you misread the original recommendation?


Unfortunate resolution change. Xrandr refuses to switch

I fixed my issue! After trying the commands you suggested to me (thanks by the way) I tried the command

sudo nvidia-xconfig

which backed up the existing xorg and created a new one, and I used startx to boot back up and it worked fine (albeit at 640x480)

Thanks again


What does "Too many recursive configuration includes" mean when trying to connect to a ssh server?

I (the asker of this question) confirm that this problem has been solved by the user steeldriver (see comments).
When using the following command to enter nano editor (nano -w /etc/ssh/ssh_config), I presumbably accidently removed the hashtag of the line that says Include /etc/ssh/ssh_config.d/*.conf, since I am new to Linux and the controls of the nano editor.
This (probably) caused the saved file (e.g. copy of the modified /etc.ssh.ssh_config) to try to include itself in /etc/ssh/ssh_config.d/*.conf, which then most likely resulted in the error 'Too many recursive configuration includes'.


I have the exact same issue and unfortunately, no one but you and I seem to recognize this is the problem behind the "slow wired connection" problems in all the blogs.

I have not found a solution other than plugging it into a 100Mb switch instead of a gigabit switch and running at 100 full duplex.

You can add to /etc/network/interfaces:

pre-up /sbin/ethtool -s eth0 speed 100 duplex full autoneg off

EDIT: Found a solution!!!

You can download and install an updated driver from this link

I am now (finally) at gigabit.


os update and firmware update fails through gnome-software

There appears to be a bug with Debian that is affecting Gnome Software.  There does not seem to be a fix yet or a clear workaround to use Gnome Software.  Rather, it is suggested to use APT, at least for the time being.
Os update error


How do I set the prompt to use two colors?

Run the following command in a terminal:

gedit ~/.bashrc

When .bashrc opens, locate and uncomment force_color_prompt=yes (that is, remove the hash, so it no longer looks like: #force_color_prompt=yes).

Save the file, and open a new terminal window, and you should already see a change (the prompt should be Light Green, which is defined by 1;32). You can then change any colour value you like; eg: 0;35 = Purple.

To edit the colour values, locate the following section, and change the default values with some of the examples listed further down:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;31m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi

You can check out this Bash colour chart for a full range of colour values, but here are a few basic ones you can play around with (note that “Light” isn’t what you might think – it actually means “bold”): Black 0;30 – Dark Gray 1;30 – Blue 0;34 – Light Blue 1;34 – Green 0;32 – Light Green 1;32 – Cyan 0;36 – Light Cyan 1;36 – Red 0;31 – Light Red 1;31 – Purple 0;35 – Light Purple 1;35 – Brown 0;33 – Yellow 1;33 – Light Gray 0;37 – White 1;37

For example, here is the line that I use it:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;35m\]\u@\h\[\033[00m\]:\[\033[01;34m\] \w\[\033[01;37m\] > '

or, my girlfriend, use:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;36m\]\u\[\033[01;31m\]@\[\033[01;36m\]\h\[\033[01;33m\]:\[\033[01;31m\]\w\[\033[01;33m\]\# '

Feel free experimenting by setting your prompt by changing the value of the PS1 environment variable in Terminal, as follows:

export PS1="...your values..."

or, just

PS1="...your values..."

Here is how my terminal look:

Source: http://ubuntugenius.wordpress.com/2011/07/11/how-to-change-the-command-line-prompt-colour-in-the-ubuntulinux-terminal/


How to select the operating system to start first on a dual-boot installation

Edit /etc/default/grub, in terminal...

gksudo gedit /etc/default/grub

and edit/add these two parameters near the top of the file...

GRUB_DEFAULT=saved     <--- this line requires an edit
GRUB_SAVEDEFAULT=true  <--- this line needs to be added

...so that GRUB will remember your last selected OS as the default OS.

Then, in terminal...

sudo update-grub


You could maybe structure it using a case construct, like this:

#!/bin/bash

shopt -s nullglob

echo 'The following `*.ics` files were found; select one:'

select f in *.ics "Quit"; do
  case $f in
    "Quit")
      echo "Quitting"
      break
      ;;
    *)
      if [ -z "$f" ]; then
        echo "Invalid menu selection"
      else
        echo "Doing something with $f"
      fi
      ;;
    esac
done

Change the echo "Doing something with $f" to do whatever you want with the selected file - if it's relatively complex, I'd suggest moving it to a shell function. Remember to quote it i.e. "$f" to prevent word splitting.


Run this from Ubuntu:

sudo update-grub

And reboot.

Windows should be in the Grub menu now.


Broadcom B4311 Drivers Installed and Non-Functional

Found an answer on this site and got my card working.  I had installed the correct driver, but apparently 14.04 had by default installed the bcmwl and broadcom-sta stuff which was overriding the b43 packages I had installed.

The answer can be found at: Broadcom B43 WiFi not working in Ubuntu 14.04 LTS


Why does Disk Utility show 8 bad sectors on a 2-months old harddrive?

A small number of bad sectors is normal for any hard drive and are likely to be detected once you start using the drive.  The time to be concerned is if the number of bad sectors increases which could be the result of a manufacturing defect and imminent total failure.  For the small number of bad sectors that occur on drives normally the controller in the drive will automatically remap those to free space held in reserve for exactly this purpose.


How to automatically reboot out of emergency mode?

Add the nofail-option to the mount options in your fstab-line.

From man fstab:

nofail     do not report errors for this device if it does not exist

With the nofail-option added you will be able to boot successfully whether the removable drive is connected or not.


Try:
    sudo apt-get purge netflix-desktop && sudo apt-get autoremove && sudo apt-add-repository ppa:ehoover/compholio && sudo apt-get update && sudo apt-get install netflix-desktop

This should (in theory) purge the entire netflix-desktop package and, since it sounds like you removed the ppa as well, add it back and reinstall the package. Omit sudo apt-add-repository ppa:ehoover/compholio && sudo apt-get update && if you did not remove the ppa.

Instructions as per http://ubuntuforums.org/archive/index.php/t-2084592-p-2.html and http://www.itworld.com/software/358908/install-netflix-ubuntu-1304


There doesn't seem to be an active run configuration for your project. (The arrow on the bottom left is not green)

You can change the settings under Projects->Build & Run


Hardware acceleration on chrome kiosk using ubuntu server

This is how I got hardware acceleration on my intel device and it should work on your kiosk.
Since your kiosk is intel based, you can try vdpau hardware acceleration.
you can download my hardware acceleration script here Then use sudo cp path/to/file/haccel /bin/ and run sudo chmod +x /bin/haccel allow it to run. Then run chrome with haccel google-chrome <Whatever settings you need/want> or run vdpau_driver=va_gl google-chrome <Whatever settings you need/want> if you don't want to use my script.


Slow and unresponsive wireless on an Atheros AR5212

I doubt it's an issue with linux or the ath5k driver(it's a really mature driver).  Distance between you and the AP and Tx/Rx power are where I would look.


Installed package, lsleases, giving bash "No such file or directory" error

The author of lsleases (that's me) uses nix for his development env.

Dynamic linked binaries consults the dynamic linker/loader to provide the shared libs. This path is fixed at compile-time in the binary:

 root@debian8:~# readelf -l /usr/bin/lsleases  | grep interpreter
  [Requesting program interpreter: /nix/store/pv9sza1cf2kpawck7wbwdnhlip5h57lg-glibc-2.23/lib/ld-linux-x86-64.so.2]

But this path only exists under nix.

The go compiler creates statically-linked binaries by default (if cgo isn't used) - so this is no problem. BUT - I'm currently not sure why, the go compiler created a dynamic linked binary.

I have released a new version (1.4.3) which is statically linked.

So a simple solution (if you have the bintray repo configured):

apt-get update && apt-get install lsleases

The actual packages can you found here.

Sorry for the breakage!


How do I change the VLC icon on the launcher?

If it isn't an issue with the theme you're using, then have you tried updating the icon cache with sudo gtk-update-icon-cache /usr/share/icons/hicolor ? (replace "hicolor" by whichever theme you're using. You'll need to put the icon in the appropriate theme folder as well)

As a bit of extra information. In /usr/share/applications you'll find a vlc.desktop file. You could change the following line:

Icon=vlc

With another Icon of your choice (I prefere to set a svg file in the "scalable" directory rather than a rasterized x by y png ). After that you have to do the update command I gave earlier.

If you encounter any issues with the update command try appending the -f -t options.


Too short for an answer, but I'll risk it:

Yes, you have to patch the kernel every time. This is logical, and comparable with the update of proprietary modules, such as Nvidia. To automate patching, you could use DKMS, as does Nvidia.


Import/configure SSL inspection certs (regulatory)

RHEL and UBUNTU are very different when it comes to this also. SO be careful, I finally found an UBUNTU only tutorial that provided me the steps I needed even though my proxy is from a different vendor, I just adjusted these instructions for my environment. https://www.sonicwall.com/en-us/support/knowledge-base/171225202320465.

NOTE: Hope this helps the next poor Windows Admin trying to figure this out for their environment, nobody understood me when I originally asked for help. I see people are stickers for process.


Which ports do I need to forward for my ubuntu server?

You need to forward port 80 and port 8080 (alternative for port 80) so you can access your web server. You can forward ports like 21 (if you want to have access to ftp from outside world) and 22 (access to ssh).


First off, you should install the official Java. Install openjdk-7-jre.

The default-jre package doesn't really do much. I don't think it really does anything.

If this doesn't work, check your PATH variable and make sure it contains the Java install path. You can check where it is installed by running dpkg-query -S 'openjdk-7-java*' and look for the java binary. It is usually named java and is usually in a bin folder. Add that to the PATH variable.


Video player is not working.. in Ububtu 14.04

Open terminal and type

  sudo dpkg --configure -a

If it doesn't help then do this

  sudo apt autoremove <packagename>

If this doesn't help then you
Need an internet connection.Type in terminal

  sudo apt-get autoclean

remove sources.list file.and create new sources.list...

sudo rm /etc/apt/sources.list

Then, type in

sudo software-properties-gtk

This will open software-properties-gtk and a newsources.list will be created automatically.

Then change the server to US or to any other server of your choice. You must enable repositories from the new dialog in order to create new sources.list.

Tick all the boxes then click on Revert then click close.

Need to restore default repositories

 sudo apt-get update && sudo apt-get dist-upgrade -y

(it is good practice to backup this file before installing to recover if such things happen)

Now install your video player plugins :)


How to reinstall Ubuntu in a dual boot system with more storage space?

Essentially yes, it is safe. However, you still should make sure your personal data are backed up, because there is always a risk that something goes wrong during the manipulations of partitions, either through human error or a hardware or software problem.

The approach you propose is essentially OK, except that there is no need to format both partitions first because you will be deleting them to free the space for two new partitions.

You can do everything from the Ubuntu partitioning gparted, from which you showed a screenshot. Alternatively, you may change the partitions from within the Ubuntu Installer (after choosing "something else").

Before you start, make sure all partitions are properly closed. This implies that you need to fully shut down Windows (no hibernate!) before proceeding.

Essentially, you need to delete sda5 and sda6, then shrink sda3. Then, Ubuntu can be installed in the free space.


What's the terminal command for finding out a process's id

The command to find out a process's id (given its name) is pidof. However since your intention is to kill the process, there are better/easier ways than using pidof to find its pid first:

Assuming the process you want to kill is uniquely identified by its name (or you want to kill all the processes with that name), you don't need to know its pid. You can simply do killall processname.

If there are multiple processes with the same name, but you only want to kill one of them, using pidof won't help you much, because it will give you the pids, but it won't give you any information to determine which of the pids belongs to the process you actually want to kill.

In this case you can do ps aux | grep processname which will shows all processes with the given name as well as the console they're running on (if applicable) and the arguments they were invoked with, which hopefully allows you to identify the process you're looking for.

If the process opened any X-windows, you can also use xkill to kill (invoke xkill and then click on the window).


fatal: read error: Connection reset by peer

The problem that you're experiencing is caused by the host, it's  down, temporary o permanently.

You can try pinging anongit.kde.org and you'll see that is not responding.

If you don't have any particular reason for using that URL, take a look at this:

http://community.kde.org/Plasma/Plasma_Media_Center

They provide all the information you'd need.

The first stable release of the Plasma Media Center was release 4 months ago and the git for the code is https://projects.kde.org/projects/extragear/multimedia/plasma-mediacenter/repository


Could not find platform independent libraries

The issue is probably due to multiple python installations in your system. You have two variables PYTHONPATH and PYTHONHOME. The py3compile module looks up different resources using these two variables. The PYTHONPATH variable augments the default search path for module files. PYTHONHOME is used for standard python libraries. The format is the same as the shell’s PATH. You need to set these variables as follows:

export PYTHONPATH='/path/to/pythondir:/path/to/pythondir/lib-dynload:/path/to/pythondir/site-packages'
export PYTHONHOME='/path/to/pythondir'


Need help with file copying in command line

try this:

cd [folder_name]
for file in ./*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
do
    if [ -e [destination_folder]/"$file" ]; then
        if [ `du -s "$file" | cut -d ' ' -f 1` -eq `du -s [destination_folder]/"$file" | cut -d ' ' -f 1` ]; then
            false
        else
            cp "$file" [destination_folder]/"$file"...
        fi
    else
        cp "$file" [destination_folder]/
    fi
    echo "$file copied"
done


find command to remove files says that some files don't exist

Don't use xargs without -0.

 (Yes, there are other safe ways of using xargs, but if you care about them, read them up elsewhere. If you don't care to memorize a lot of options and scenarios, just don't use xargs, there's usually a better way anyway.)

The problem with xargs is that its input must be quoted in a peculiar way that no other tool produces. In particular, it can't cope with spaces in file names. You don't say what the error are (for future reference, copy-paste error messages), but chances are that one of the matching file names contains a space, and xargs choked on it.

xargs -0 copes with any strange character you may have in a file name. Pass -print0 to find to make it print the names in the right format:

find . -name "*.csv" -print 0 | xargs -0 rm

Note that sudo find … only runs the find command as root, not the rm command. If you want to run rm as root, use

find . -name "*.csv" -print0 | sudo xargs -0 rm

Under Ubuntu (and also under OSX), you can use find's built-in -delete option to delete matching files.

find . -name "*.csv" -delete

If you know that the files you want to delete are empty, better make the find command only look for empty files, so that you don't accidentally delete other files.

find . -name "*.csv" -type f -empty -delete


The WineHQ Database is where you should check for compatibility before deciding whether or not it's worth the trouble. Anything below gold is a waste of time.

Corel VideoStudio Ultimate X5 isn't even mentioned.

Only a handful of other Corel software and suits of software work.

Bottom line: Don't waste your time trying to make work something that probably never will.


You can use ecryptfs-utils to encrypt a folder, and it asks for password under Ubuntu. Not sure about Windows though.


How do you install a file in a tar archive?

Many of the less-popular applications for Linux systems don't ship as deb or rpm packages; in face, most ship as source files, usually in a tar archive. The first thing to do if you want to install one of these programs is to navigate to the directory where you downloaded the archive using the cd command. Once there, extract the archive with:

tar -xfv filename.tar.x

where filename.tar.x is the name of the downloaded archive. The -x option indicates that you want to extract the archive and -f indicates that you want to unarchive a file. -v tells tar that you want a verbose list of the files it extracts; this command could be run without it, you just wouldn't get a list of all the files that are unarchived.

Next you need to run the configuration script, for most applications. Some applications have special instructions, so you should skim the README file first, which you can do by navigating to the extracted directory and typing ls, which will list the files in the directory. Assuming that the readme file is named README as most are, just type nano README to read it (ctrl+x to exit.)

To run the configuration scripts, first navigate to the extracted directory (if not already there) and type ls to view a list of files. You should see a file named configure or config, which may or may not have a file extension. Type:

./configurefile.name

where configurefile.name is the name of the file with its extension, if present. This will usually just be ./configure. Depending on your distro, you may need a sudo or a su or a # before the ./, if you get a permissions error. The configure script will check to make sure that your computer is able to support the application (dependencies, hardware requirements, etc) and then, assuming that all criteria  are met, will create a makefile.

Up next we have to compile the source code presented in the archive. You can do so by running

make

with a sudo or su if applicable. This will find the makefile created by the configure script, giving it the ok to compile the application. This step can be pretty lengthy, depending on the software.

The last step is to install our compiled application. This is done with the command

make install

again using superuser if needed. After this step is complete, you can run the application and delete its files (the archive and the extracted directory.) Congratulations!

If you just want the quick way that works for most applications (not all), extract your file using tar -xfv filename.tar.x, switch to its extracted directory, and paste this into your terminal:

sudo ./configure
sudo make
sudo make install

This assumes you are using Ubuntu of course. If you aren't, you shouldn't need this guide. Good luck!


How to run Unity at startup on Ubuntu 18.04

If you don't select an option by means of the gear icon, then Ubuntu will start with whatever desktop was used for the last startup. Thus, once you have selected unity explicitly by means of the gear icon, it will always start unity until it is explicitly changed to something else.


Tomboy sync; local folder resets to wrong path

This problem has been driving me nuts! Glad to say I've found something that works.

It looks like there is a bug in the "Other" file locations dialogue. If you try to set it using that it messes up and defaults to your home directory. Not useful.

I use Ubuntu One for my synching, so I'll put things in those terms. It'll work just as well for Dropbox.

In your file manager, go to the Ubuntu One directory, create your new directory, I used the imaginative name "Tomboy Notes".

Now bookmark the location so it appears in the menu on the left.

Go into Tomboy.

Clear any sync settings you have, click on "Folder Path" and click on the "Tomboy Notes" (if that's what you called it) directory.

Click save.

Click yes to synch.

Job done.

Edit: Optional clean-up: Now the link to the right directory has been established, you don't need the bookmark any more, it's safe to delete.


Windows installed Windows Boot Manager on Linux SSD. Linux doesn't boot blue Windows screen

Disconnect the windows drive and use the procedure here.
https://help.ubuntu.com/community/Boot-Repair
If the windows needs repair to boot, disconnect the linux drive and here.
https://www.howtogeek.com/howto/33433/restore-the-windows-boot-loader-after-an-ubuntu-update/


How well does the built-in GPU in a Intel Core i5 2500K support unity?

Even tough there are many people running Unity3D around with the builtin GPU's from Intel the results can be a bit slow or not as snappy as with a discrete card.

Some people have no complaints over using it but if you feel it is not as fast as you would like then you can always try Unity2D, which will mostly not care what card you are using.

Unity3D's compiz takes a heavy toll in the system's performance and if not compensated with a fast GPU it can feel slow. (It can feel slow even with a dedicated GPU).

Your GPU's driver come directly from Ubuntu repo's and should be installed by default when you install Ubuntu 11.10.


How can i set domain name on my localhost?

You need to setup a dns server somewhere within your domain, which any clients are pointed towards. This questions on how to use bind in your lan should help.

Failing that, there are a number of questions regarding bind already.


Problem using a custom .desktop file for launching Discord

I copied this desktop file for discord and had no problem:


Can the Python apt API detect, a package is "held"?

Ok, I found it -- by looking inside /usr/bin/unattended-upgrade. The apt.Package-object, actually, has a member named _pkg, which is of type apt_pkg.Package. That one has a selected_state member -- a numeric constant (an enum). This is, what I use in my code now:

    import apt
    import apt_pkg
    ...
    if package._pkg.selected_state == apt_pkg.SELSTATE_HOLD:
        pkg['hold'] = True


Install Postgresql-server-dev on RaspberryPi (armhf) running Ubuntu Server 16.04 from source

Never mind, figured it out. wget to download, apt-get to install dependencies, and dpkg -i to install package itself. Pretty simple.


Make certain programs in Xfce not go to the Notification Area

This takes care of the issue. I set this script to run from Whisker Menu instead of just Task Manager. It launches Task Manager and records its PID. Every five seconds it checks if the Task Manager window is still open. If it is closed, it kills the program and exits the script.

#!/bin/bash

xfce4-taskmanager & taskmgr_pid=$!

while true; do
    sleep 5
    status=$(wmctrl -l | grep "Task Manager")
    if [ -z "$status" ]; then
        kill "$taskmgr_pid"
        exit
    fi
done


How to install Ubuntu server with basic VGA only instead of loading graphics card driver

Turn it off, remove your graphics card, plug the VGA into the Motherboard directly, and turn it back on.


Problem solved!
The issue origin was because some days ago I installed gnome glib-2.0 for c development purpose. I don't know why only after the update the problem arose.
To discover the problem:
from command line after doing:

$ unity-control-center

I can see the error:

GLib-Gio-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

The problem is that in the search path the installed glib (under usr/local) is searched before the library referenced by unity.

To solve the problem I ran sudo make uninstall from the directory where I downloaded gnome glib. After reboot every icon and setting was restored automatically.

Eventually it would be possible to change the search path of dynamic libraries defined in /etc/ld.so.conf.d/.

See also My dconf/gsettings installation is broken. How can I fix it without Ubuntu reinstall?


I've deleted all initramfs files (like an idiot) How to restore them?

This tutorial will walk you through rebuilding. To summarize the steps in the tutorial:

Boot your machine with a Live Media
Open a terminal console and get partitions path
Mount the filesystems
Chroot /mnt and creating a Backup of the initrd image
Building Initrd Image
Finalizing Grub Loader and unmounting

Note because you have other partitions you can boot with you can likely skip step 1.


What does mysql -u root -p mean while logging in?

These are command line options passed to mysql.

-u stands for the username and -p stands for the password

Whatever comes immediately after -u will be the username and after you press Return you need to enter your password (the password won't be visible and you need to type in your complete password followed by again a Return, you won't see * too in place of the password, it would be completely invisible).

See the manual page of mysql for more.


As already mentioned, it is probably an issue with Indian Server.
Just change server to Main server.

Open Software & Updates, in section Ubuntu Server, and adapt Download from: to Main server.

You can also open the Software & Updates app by running a terminal and enter software-properties-gtk


I'm not sure exactly what that particular sequence, especially "keydown/keyup" is supposed to do, but xdotool looks like it will do anything you need.

xdotool key ctrl+shift+z

xdotool key m; xdotool key KP_Enter

xdotool key does one character at a time. That's why it is invoked twice in the second line with the ; telling your shell that these are two separate commands.

If what you want is to type Ctrl+shift+z and have the system emit mEnter, then your script would have to read the keyboard, detect your trigger phrase, and then run the second xdotool command above. That's a bit tricky to do when the window you're displaying is a web page in a browser, but see below. Also, Ctrl+shift+z might not be the best trigger phrase because it has special meaning in a terminal window and, perhaps, elsewhere.

However: If you're coming from AutoHotKey (AHK) and want similar functionality on Linux, then AutoKey is what you want.

What you get are phrases (you can define purely in the GUI), where pressing a hotkey or typing an abbreviation will cause the contents of your phrase to be typed or pasted into your application with the abbreviation optionally removed.

That's fairly similar to AHK.

When you need more control or more complexity, you have AutoKey scripts. These are also triggered by hotkeys and abbreviations, but instead of being written in an application specific language, they are written in Python 3 and have the full power of that language and all its extension modules available for your use.

AutoKey provides an API for generating keyboard and mouse events, using the clipboard, getting window information, and displaying dialogs.

Your two examples above would each need to be one line scripts:

keyboard.send_keys("<ctrl>+<shift>+z")

and

keyboard.send_keys("m<enter>")

In the first example, the + tells AutoKey to press those keys at the same time so that the first two keys act as modifiers. In the second example, there is no +, so the m and Enter keys are pressed sequentially.

In practice, the things your scripts type would usually be longer or determined by more logic.

Note: If you are using a release of Ubuntu prior to 20.04, you need to install AutoKey from GitHub to avoid getting a very old, unsupported version. It's quite easy to do in Ubuntu and instructions are available here.


How to prevent apt-get install from removing package holds?

This is a dpkg change, not an apt change:

# dpkg --get-selections  | grep hold
google-chrome-stable                            hold
# dpkg -i google-chrome-stable_44.0.2403.125-1_amd64.deb
(Reading database ... 318187 files and directories currently installed.)
...
# dpkg --get-selections  | grep hold
#

After doing some git bisect, this change was introduced in https://anonscm.debian.org/cgit/dpkg/dpkg.git/commit/?id=fb8997a460a0ef2909199b4603604a4e855003e0 as part of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=162541


Attempt to install libimobiledevice-1.2.0 throws error: "libimobiledevice4 missing files (usr/lib/*/*.so.4*), aborting"

I was not able to solve it for that way of installing, but this one worked:

https://askubuntu.com/a/672018/350308

With one change, his line:

https://github.com/libimobiledevice/libimobiledevice.git

Should be:

git clone https://github.com/libimobiledevice/libimobiledevice.git


It sounds like you want a Full install to flash.
Unplug/disable your internal drive, plug in your flash drive and install to it using Live DVD or Live USB.
I make the first partition FAT32 or NTFS so I can also use the flash drive for data on a windows machine.

Here is the long version step by step for 12.04:

Turn off and unplug the computer. (See note at bottom)
Remove the side from the case.
Unplug the power cable from the hard drive.
Plug the computer back in.
Insert the flash drive.
Insert the Live CD or Live USB.
Start the computer, the CD/USB should boot.
Select language
Select install Ubuntu.
Select Download updates while installing and Select Install this third-party software.
Continue
At "Installation type" select "Something else".
Continue
Confirm Device is correct.
Select "New Partition Table"
Click Continue on the drop down.

(Optional partition for use on Windows machine)
Click "Free space" and "Add".
Select "Primary".
Make "New partition size..." about 1000 megabytes.
Location = Beginning.
"Use as:" = "FAT32 file system".
And "Mount point" = /windows.
Select "OK"

Click "free space" and then "Add".
Select "Primary", "New partition size ..." = 4000 to 6000 megabytes, Beginning, Ext4, and Mount point = "/" then OK.

(Optional home partition)
Click "free space" and then "Add".
Select "Primary", "New partition size ..." = 1000 to 4000 megabytes, Beginning, Ext2, and Mount point = "/home" then OK.

(Optional swap space, allows hibernation)
Click "free space" and then "Add".
Select "Primary", "New partition size ..." = remaining space, (1000 to 2000 megabytes, or same size as RAM), Beginning and "Use as" = "swap area" then OK.

(Important)
Confirm "Device for boot loader installation" points to the USB drive. Default should be ok if HDD was unplugged.

Click "Install Now".
Select your location.
Continue.
Select Keyboard layout.
Continue.
Insert your name, username, password, computer name and select if you want to log in automatically or require a password.
Selecting "Encrypt my home folder" is a good option if you are worried about loosing your USB drive.
Select Continue.

Wait until install is complete.
Turn off computer and plug in the HDD.
Stick the side panel back on.

Note:
You may omit disabling the hard drive if, when partitioning you choose to install grub to the root of the usb drive you are installing Ubuntu to, (ie sdb not sdb1). Be cautious, many people have overwritten the HDD MBR.
You can revise grub later, if you wish.

Edit:
If you install ATI drivers to your Full install flash drive it should boot on computers using ATI graphics, but not on computers using Intel or Nvidia graphics.
You can not install graphics drivers to a persistent flash drive.


Applications not showing up in Gnome 3 Activities > Search after .desktop configuration file created

If you've created a new Desktop Entry configuration file and the new application/link/directory doesn't show up in Activities search, your .desktop file is not configured, saved or located correctly.

Desktop Entry configuration files must be:
Saved as UTF-8
Saved in either;
~/.local/share/applications (single user: /home/$USERNAME/.local/share/applications)
or
/usr/share/applications (all users)
Contain the correct information
For applications the following minimal key=value pairs;

Type=application
Name=name of application
Exec=absolute path to application

By way of example, I downloaded the latest generic Firefox (firefox-60.0.1) to a USB drive and extracted it there.
I then created the following working minimal Desktop Entry configuration file called usb-firefox.desktop in folder ~/.local/share/applications;

[Desktop Entry]
Version=1.0
Type=Application
Name=USB Firefox
Exec=/media/user/usbDrive/firefox/firefox
Icon=/media/user/usbDrive/firefox/browser/chrome/icons/default/default128.png
Terminal=false

Gnome desktop entry specification from the developers can be found here.


Transmission and deluge fail in ubuntu 16.04 LTS saving to external usb hard drive connected to another machine

I had the same issue with permissions and Transmission (Debian 9). Automounted cifs share in Gnome Nautilus works perfectly everywhere except Transmission.

I solved this issue by manually mounting with options as follows:

sudo mount -t cifs //server/share /mountpath -o user=cifs_user,password=cifs_pw,uid=1000,gid=1000,iocharset=utf8

uid and gid are those of the user you log in as and can be obtained by running

id

or

cat /etc/passwd


Graphics problems after upgrade to 13.04

I had the same problem with my Radeon HD 7750 both upgrading from 12.10 64 bits and trying Ubuntu Gnome 13.04 booting from a USB stick.

The solution was pretty simple: to install fglrx-updates.

Go to the system settings (or similar, my Ubuntu is in Portuguese), click on software and updates icon, go to the additional drivers tab and choose fglrx-updates.

I played Anomaly 2 beta today perfectly well. :)


How would I prepare Ubuntu for a non-graceful shutdown?

You can hold Ctrl+Alt+PrintScreen and then type the keys REISUB for emergency unmounting of drives and rebooting.


By the looks of it, Nautilus is reporting GiB ( = 1 073 741 824 bytes) and PCMANFM is reporting GB ( = 10^9 bytes).

In other words:

81.3 GiB = 81.3 * 1 073 741 824 bytes = 87.2952103 × 10^9 bytes = 87.2 GB


LUbuntu OEM instalation "Prepare for Shipping to End User" missing

There is a way to run this script by hand by the command oem-config prepare.   Here is the man page. http://manpages.ubuntu.com/manpages/wily/en/man8/oem-config-prepare.8.html

Although for oem config of lubuntu it will unfortantely use the ubuntu with unity oem slideshow as noted here https://bugs.launchpad.net/ubuntu/+source/lubuntu-artwork/+bug/1442817


You can do this using the "Synaptic Package Manager". You find the program under "System > Administration". Find the mysql-server package you have installed and select "Package > Force version..." as shown in the screenshot below.

This will show you a list of the available versions. If the version is not in the list you might need to add a new PPA for that, but I suggest you try this first.


I disabled login options, how do I reset my password?

You can still set a simple password by using the passwd command:

sudo passwd <username>


Unfortunately, you've hit a bug so the best you can do is to subscribe to the bug list, and say that you've got the problem too so that it "affects multiple users" so that the bug can be closed quicker...

Sorry to be the harbinger of bad news...


It would be helpful if you could mention which version of Java you're using. I am running Ubuntu 14.04 with Oracle Java 8. To test transparent window handling, I downloaded, compiled, and ran Oracle's shaped translucent window demo:

$ mkdir misc
$ cd misc
$ wget -q https://docs.oracle.com/javase/tutorial/uiswing/examples/misc/ShapedWindowDemoProject/src/misc/ShapedWindowDemo.java
$ javac ShapedWindowDemo.java
$ cd ..
$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
$ java misc.ShapedWindowDemo

A transparent window was successfully created, as the screenshot shows:

So my first suggestion would be to try the program with Oracle Java 8, if you haven't already done so.


Permanently alter touchpad sensitivity settings

Running the following in the terminal:

synclient TouchpadOff=0

turns it off. Then to turn it on you turn the zero to 1.

You can then setup a bash script to toggle the touchpad on and off quickly.


What Fibre Cards can I use with Ubuntu 10.04 LTS Server

I don't have any personal experience, but this should get you going in the right direction: Intel Gbit NICs.  They are controlled with the e1000e module.  It supports the Intel PCIe adapters.


Command not found when trying to run a script with sudo while configuring Arduino

To achieve this:

Open a terminal with ctrl+alt+t
Make the file executable with:

chmod u+x ~/.arduino15/packages/Intel/tools/arduino101load/1.6.4+1.18/scripts/create_dfu_udev_rule

Type the command and press enter

sudo ~/.arduino15/packages/Intel/tools/arduino101load/1.6.4+1.18/scripts/create_dfu_udev_rule


HP Paviliion g6 with WiFi button always disabled

Please open a terminal and do:

sudo modprobe -r hp-wmi
sudo rfkill unblock all
rfkill list all

Is your wireless now unblocked? If so, let's make the change permanent:

sudo -i
echo "blacklist hp-wmi"  >>  /etc/modprobe.d/blacklist.conf
exit


Unable to install OpenVas in Ubuntu 12.04

Ok, seems that you are trying to install a virtual packages that is confusing apt. Also, you must make sure that you have the universe repository is activated:

$ grep universe /etc/apt/sources.list
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ precise main universe

The first command should return you something like that, if it don't you should add the repository.

sudo apt-add-repository "deb $(grep main /etc/apt/sources.list | grep -m1 http | gawk -F ' ' '{print $2}') universe"
sudo apt-get update
sudo apt-get upgrade

Once this is done, if you want the client:

sudo apt-get install openvas-client=2.0.3-4

This has no problem whatsoever in the packages page.

But if what you want is the server:

sudo apt-get install openvas-server=2.0.3-4

Again, this has no problem whatsoever in the packages page.


No video/display in logon screen after user logoff (4k display, nvidia)

I figured out, when I use a DisplayPort cable instead of the HDMI cable, I do have a display in the logon/logout screen with no problem. Before, I didn't have a DP cable, so I was using HDMI.

This is a solution for me, and hopefully for others it can be too. Although it doesn't actually solve the technical problem.


I've decided to remove all packages that apt was suggesting me, including (muon-updater, qt-propeties and others as you can see on screenshot). I was afraid to do that, because it's very important packages, but all works just fine ;) But not every purge/remove command would suggest you to delete a huge amount of packages.

I used this one:

  sudo apt-get remove --purge mysql-server mysql-client mysql-common

After uninstallation packages, I was able to install mysql-server without any errors.


Hash sum mismatch error while installing node js and npm

I figured out the problem...it was my internet connection...when I connected to my mobile data(or any other internet service)..it was flawless...
If the hash sum error persists after trying many solutions try changing your internet connection. I believe it applies some network filters which changes the hash.


Since you only will install the software once, even you have different classes you use them in/for i would put all the .debfiles in one single folder so when you download them from ftp/server on a new install you only need to do:

dpkg -i /path-to-the-downloaded-files/*.deb

For having them seperated for each class you could create a folder structure which contains .desktop files for each application on your desktop.

This folder structure you could then pack with a compression tool (tar, 7z, etc.) and put this on the server aswell which makes restoring that pretty easy. More information about .desktop files can be found here.


No need to reinstall Ubuntu. You can install Unity and the other desktop related packages by installing ubuntu-desktop with the packages it suggests.

1) Go to TTY (Ctrl + Alt + F1)

2) Install desktop: sudo apt-get --install-suggests install ubuntu-desktop

3) Reboot: reboot


Can I use Amazon Glacier as the backup location?

Not yet, however there's been progress in this area, follow this bug report:

https://bugs.launchpad.net/duplicity/+bug/1039511


dpkg: error processing package google-cloud-sdk (--configure): subprocess installed post-installation script returned error exit status 1

The root cause may be a lack of memory. Try to add swap before upgrading.

sudo dd if=/dev/zero of=/var/swap bs=1024 count=1524288
sudo chmod 600 /var/swap
sudo mkswap /var/swap
sudo swapon /var/swap
sudo apt upgrade

Credit: https://stackoverflow.com/a/46029031/3685419


steam fatal error "steam needs to be online to update, but was set to offline movies."

Make sure steam isn't running at all in ~/.steam/.

Delete ~/.steam/steam.pid
Edit ~/.steam/registry.vdf line 29 from "Offline" "1" to "Offline" "0"

Source


How do I switch between Xubuntu and Ubuntu, based on convenience?

Ubuntu 17.10 and later (Gnome)
On login screen, click wrench icon and select your favour DE.

Taken from linuxconfig.org
Ubuntu 17.04 and below (Unity)
On login screen, click Ubuntu icon and select your DE.

Taken from tecmint.com


A possible Java problem causing a java program to not work?

You don't need Wine to run Minecraft - it's a Java program, which means it's supposed to be platform-independent. Wine is a compatibility layer for Windows programs .. which means you're trying to run a Java program using a Linux Java runtime inside a compatibility layer for Windows.

Unless you installed Java inside Wine, nothing will happen... and it's going to run better in the native Linux Java runtime anyway.

This question appears to cover it.

How can I install Minecraft?


How to disable KDE suspend/screen lock notifications?

Go to System Settings. In the window that opens, choose Common Appearance and Behavior, then Application and System Notifications, then Manage Notifications. Then be careful to choose the right drop down menu under "Event Source" which is a selector just under the tabs in the main (right) pane. It comes up in the first one, Accessibility, but if press the down arrow at the extreme right, there are some twenty other categories. One of those is Notifications for KDE Power Management System.

After that marathon, go take a rest. (Honestly. Why do they have to make it so convoluted!)


I can't get my Lenovo Yoga 13 wifi driver to blacklist?

The correct driver to blacklist is r8723au.


Swapping the HDD should work fine. The BIOS is not modified by a Windows installation. I did this for myself some time ago on an IBM Thinkpad.


Which package provides -lGL on Ubuntu 18.04?

This is rather two questions. If I take your question literally, an approach would be using apt-file to search for packages containing the file you are looking for:

$ apt-file search libGL.so
libgl1: /usr/lib/x86_64-linux-gnu/libGL.so.1
libgl1: /usr/lib/x86_64-linux-gnu/libGL.so.1.0.0
libglvnd-dev: /usr/lib/x86_64-linux-gnu/libGL.so
nvidia-340: /usr/lib/i386-linux-gnu/libGL.so
nvidia-340: /usr/lib/i386-linux-gnu/libGL.so.1
nvidia-340: /usr/lib/i386-linux-gnu/libGL.so.340.106
nvidia-340: /usr/lib/x86_64-linux-gnu/libGL.so
nvidia-340: /usr/lib/x86_64-linux-gnu/libGL.so.1
nvidia-340: /usr/lib/x86_64-linux-gnu/libGL.so.340.106
primus-libs: /usr/lib/x86_64-linux-gnu/primus/libGL.so.1
virtualbox-guest-x11: /usr/lib/virtualbox/additions/libGL.so
virtualbox-guest-x11: /usr/lib/virtualbox/additions/libGL.so.1
virtualbox-guest-x11-hwe: /usr/lib/virtualbox/additions/libGL.so
virtualbox-guest-x11-hwe: /usr/lib/virtualbox/additions/libGL.so.1

If you haven't got apt-file installed, install it and initialise its database first using:

$ sudo apt install apt-file
$ sudo apt-file update

To check if the linker can actually find the installed library, run this:

$ ldconfig -p | grep libGL.so
libGL.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGL.so.1
libGL.so.1 (libc6) => /usr/lib/i386-linux-gnu/libGL.so.1
libGL.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGL.so

As to why the wxPython build using pip3 is not picking up either of them is a question I can not answer.


What you are looking for is an init script: take a look at the Upstart How to.

You basically need to place your script in /etc/init.d and create a link in /etc/rc?.d, where "?" is the runlevel you want to execute it.

The name of the link determines the order and when (start or shutdown) it's executed.
Links beginning with K are run on shutdown, beginning with S on startup. You should put the shutdown scripts in /etc/rc0.d/, and the startup scripts in /etc/rc2.d/. Restart scripts should be placed in /etc/rc6.d.

You could also execute a script when X ends or gnome logs you out, but I think init scripts are the cleanest solutions.

If going with the first option Debian based systems like Ubuntu provide the command line tool update-rc.d to assist with installing /etc/rc?.d scripts.


Reboot and select proper Boot Device after ubuntu 16.04 installation wiping Windows 8

After 17 days..

My computer is a desktop  acer aspire x3950 with windows 8 and EFI boot

Make your Windows recovery just in case.  I did not and I have to keep looking for a solution for long period without even be able to work in my computer. At one point I really just wanted to recover my computer..
Create a bootable usb.

This is the important part.  I have create a bootable USB with disk creator in UBUNTU without taking into consideration that my computer boot with EFI mode.  After the installation and   computer reboot I got the message: Reboot and select proper Boot Device

I have tried several things, in particular, I used the Boot repair tool.

SOLUTION:

2.1  Follow the General Principles in UEFI  In particular, disable fast boot.

2.2. Create the bootable usb following the steps in How to create UEFI-only bootable USB live media?

I  created this usb using RUFUS with GPT partition for UEFI

Install ubuntu using the USB and restart your computer

Done!!!


How can i make the Firefox Totem Plugin open VLC instead of Totem when opening an online video in a new window?

You can configure Firefox to always ask which application to use when opening such content. If the application you want to use has the needed plugin already installed, it should be listed as one of the options. If not, you can usually "Browse" to the executable file of the app you want to use, usually located at /usr/bin. Here's how to make sure Firefox prompts to ask which application you want to use:

1.) open Firefox and go to Edit > Preferences

2.) select the "Applications" section

3.) find the "AVI video" listing

4.) under the "Action" heading, select "Always ask"


How to add libreoffice 5.0 links to dash

I did it by uninstall all 4.4 packages via synaptic. After logout and login again short-cuts to 5.0 where in dash


SSH and router port forwarding Ubuntu Server 16.04

Well I found quite an interesting situation when I checked the ARP table of some other local machines. I had the server temporarily connected via WiFi through a WiFi extender that I keep in the garage. When an ARP request was sent out asking who had the IP address of my server, the WiFi extender was answering with it's own MAC address. The ARP table for any other host had the extender's MAC address associated with the IP address of the server. This doesn't usually seem to cause a problem even with multiple devices connected behind the extender, but apparently the NAT on my router was forwarding frames to the extender and it was simply discarding them for a reason that is not immediately clear.

What IS clear is that my understanding of range extenders is maybe not as great as I thought... also don't run servers off Wifi/Range Extenders even during setup.

Thanks for the tip Doug!


Libreoffice Base reports not working after upgrade to Ubuntu 12.04

I had a similar problem recently. Following the steps in the third post here resolved it for me:

http://en.libreofficeforum.org/node/2589

EDIT: Resource appears to have disappeared. Here was the original text:

  Possible solution to opening legacy database reports in LO v3.5 After
  much trial-and-error sleuthing, I may have hit upon a solution to this
  apparent problem (reported here by me several weeks ago). It involves
  adding a 'missing' hidden form control (see steps below). I'll be
  interested to know if this actually helps anyone with problems running
  legacy database reports under LO.

  Open your legacy report for EDITING in the usual way (right-click and choose 'Edit').
  Now open the FORM NAVIGATOR (button).
  Under the 'Report source' item you should see these controls - CommandType, QueryName, Command, GroupFieldNames, FieldNames,
  RecordFieldNames. If there is NOT an item named 'Sorting', you must
  add it. I found it 'missing' in my legacy reports (created in OO), and
  when I added it, the reports run properly! (Perhaps this 'Sorting'
  hidden control has been added at some stage of LO development?)
  To add the 'Sorting' item, just do these steps:

  Right-Click on the enclosing item 'ReportSource'
  Under the NEW item pop-up menu select 'HiddenControl', and a new control will be created in the end of the list of existing controls
  (probably under the item 'RecordFieldNames').
  Now, change the name of this new control to 'Sorting'.
  To do this, right-click on the new item, and choose PROPERTIES from the pop-up menu.
  In the resulting window/pane, change the (Hidden Control) name to 'Sorting' (type exactly - no quotes, and with a capital 'S') and close
  the window.
  You should now see an item called 'Sorting' at the end of your list of hidden control for your report source item.
  Close the Form Navigator window and SAVE the report.

  Your legacy report should now run/open as it used to under OpenOffice.


What podcast/streaming tools are available?

Internet DJ Console is great for

talking to your computer and be heard over a network
live audio streaming

http://idjc.sourceforge.net/tour_main.html

VLC media player is great for

Live Video streaming

http://www.videolan.org/doc/streaming-howto/en/


project and workspace on same pane when switching change project in sublime text3

I find the way to rid out this on ubuntu 14.04

Close sublime text 3
go home > .config > sublime-text-3 > Local folder
open Session.sublime_session file in gedit ( i.e. other than sublime text )
search recent workspaces block (find at the bottom of the file ) and remove the un necessary  workspaces from this list

 "workspaces":
{
    "recent_workspaces":
    [...here listed all workspaces..]
}


Clean Install after 15.10 video driver problem

If you are looking to backup settings and programs, I can recommend the answers to this post: How to backup settings and list of installed packages.

As far as the drivers issue goes, I'm not sure I can help. I'm running NVidia GTX 980M, and it updated fine, but it seems you might have a different issue considering you've tried many drivers.


Ubuntu core keeps logging me out after successful login

Running

chmod go+rx /

while chrooted solved the login error. Still trying to fix the network.

Thanks to Alex! What commands are needed to install Ubuntu Core?


Ubuntu 16 cannot boot after a clean install, although boot repair shows fixed

HP does not like to be UEFI boot friendly. It violates UEFI specification that says not to use Description as part of boot. And of course only valid description is "Windows Boot Manager". But there are multiple work arounds.

Most with HP and dual booting can copy /EFI/ubuntu/shimx64.efi to /EFI/Boot and then rename shimx64.efi to bootx64.efi. That should allow boot of fallback or hard drive boot entry. Some have to add a new entry into UEFI.

Some HP do have a way to change settings, but buried pretty deep.

https://ubuntuforums.org/showthread.php?t=2332681&p=13527216#post13527216

Boot-Repair now copies shimx64.efi to bootx64.efi and backs up an existing bootx64.efi if you check 'Use the standard EFI file' in advanced options.

https://help.ubuntu.com/community/Boot-Repair

If Windows is only operating system you can use "Windows Boot Manager" description but specify that that entry uses shimx64.efi to boot.

If ESP is sda1, see man efibootmgr for added parameters when ESP is not default sda1.

    sudo efibootmgr -c -L "Windows Boot Manager" -l "\EFI\ubuntu\shimx64.efi"


The power savings in the freeze state are almost nothing, so if you have a working suspend to ram, you should stick with that.  It normally only takes around 3-4 seconds so should be plenty snappy.  Most of that time is usually dominated by waiting for the hard disk to spin up, so if you really want fast suspend/resume, you can disable that with:

sudo -s
cd /sys/block/sda/device/scsi_disk/*
echo 0 > manage_start_stop

This will leave the disk off when you resume until you actually try to access it, giving more power savings and faster resume.


Problem linking igraph: ImportError: libigraph.so.0

Two solutions worked for me (tested on both Ubuntu 14.0.1 installations).

Following a clue on a stackoverflow question, the error went away after adding the following line to my ~/.bashrc file:

export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"

From a suggestion on the igraph mailing list, running the following command after make install solved the problem:

sudo ldconfig

I don't understand the problem enough to know which of these solutions is preferred, nor why the error is happening and appears to be specific to Ubuntu.


I asume the OS installed in your internal hard drive is still there and you only formatted the external drive.

Try entering to the BIOS and enabling boot from external drives, or disabling the "safety mode" which cause you can not boot from a USB drive (read the manual provided by the manufacturer for any question).


bash script using espeak only says first word

Instead of:

espeak -k cantonese $line

Use:

espeak -k cantonese "$line"

When you omit the double quotes around $line, the shell performs word splitting on the result of parameter expansion, and each word is passed as a separate command-line argument to espeak. The espeak command only speaks the first argument. Writing "$line" instead of $line suppresses word splitting, causing all the text stored in the line parameter to be passed as a single argument to espeak. (It also suppresses globbing, which is another thing you don't want to happen in this situation, though your test inputs have most likely not triggered it so far.)

This happens even in simpler uses of espeak. For example, espeak hello world says just "hello," while espeak 'hello world' or espeak "hello world" says "hello world."

As for what kind of quotes to use, the reason to write "$line", rather than than '$line', is that single quotes are too powerful for what you need. They would suppress word splitting and globbing, but they would also suppress parameter expansion. So with '$line', the espeak command would see the literal text $line instead of whatever text is held in the line parameter.


How to copy a folder to multiple folders using command line?

I'd suggest using a while ... do loop

while read -r d; do
  cp -R -- foo/ "$d"
done < destinations.txt

Alternatively, using xargs

xargs -n1 -a destinations.txt cp -R foo --


Ubuntu 18.04 LTS refuses to install on a 64-bit Dell with 3 GHz Intel 64-bit Core 2 Quad CPU it says is "i386"

Your Intel Q9650 64-bit Core 2 Quad CPU is not supported by Windows 10 either. It was released in 2008 and considered too old for modern operating systems.

Looking at your specs on Intel's Website I noticed it doesn't have hyper-threading. Also it doesn't have Turbo-Boost which is probably less of a concern.

More importantly there is the 64-bit instruction set which has evolved over time. Linux tests each CPU during boot to see if certain instructions are supported. I can't find the reference I was looking for but this one outlines the kernel checks:

After we have set up the stack, next step is CPU verification. As we are going to execute transition to the long mode, we need to check that the CPU supports long mode and SSE. We will do it by the call of the verify_cpu function:

call    verify_cpu
testl   %eax, %eax
jnz     no_longmode

This function defined in the arch/x86/kernel/verify_cpu.S assembly file and just contains a couple of calls to the cpuid instruction. This instruction is used for getting information about the processor. In our case, it checks long mode and SSE support and returns 0 on success or 1 on fail in the eax register.

If the value of the eax is not zero, we jump to the no_longmode label which just stops the CPU by the call of the hlt instruction while no hardware interrupt will not happen:

no_longmode:
1:
    hlt
    jmp     1b

If the value of the eax register is zero, everything is ok and we are able to continue.

To summarize there are many things your decade-old CPU doesn't support that modern 64-bit processors support.


Differences between Gnome Classic Session and Gnome 2?

Well there is the obvious answer, that the libraries are very different and often incompatible with each other, but since GNOME 3 uses the newer libraries that is preferable. At this point considering the work that has gone into Gnome Classic for 12.04, I would say no, that there isn't really much of a difference at this point. Maybe a few taskbar applets that haven't been ported yet, but aside from that there isn't really much point in using Gnome 2 anymore.

Article here from OMGUbuntu showing the Gnome Classic mode in 12.04


I think the security concern you are referring to comes from the fact that if you use sudo, with or without the -i, you have an active permission to run sudo commands, for 5 minutes. If you were to do sudo vim /file.txt then leave, your computer unattended the sudo session would still be active. someone could come along and type sudo rm /file.txt or worse.

pkexec will prompt you for a password every-time, which would seem a little more secure.

I think Elementary OS is intended for schools, where the physical environment shouldn’t be considered secure. Students may well show up at your desk moments after you leave.  Comparatively, in my Business office, where only 3 folks have the key, and my computer is moderately secure in the physical sense, I'm less concerned with untrusted individuals running in and using my PC unsupervised. If I run sudo command, then leave, I'm assuming no one will come in and give malicious sudo commands.

I make no claim to be a security expert, but I think that is what the elementary OS folks are thinking.


Ubuntu18.04: Logging in loop after mounting sdb5 on /home

First of all, we should ensure that /home/username has a non-root owner...

ll /home/username

if "root" exists in the 3rd or 4st column, run:
sudo chown username:username /home/username -R

It works for me.


Error while following kurento installation guide

Edit: Note that Kurento Media Server (KMS) has to be installed on Ubuntu 14.04 LTS (64 bits)

echo "deb http://ubuntu.kurento.org trusty kms6" | sudo tee /etc/apt/sources.list.d/kurento.list
wget -O - http://ubuntu.kurento.org/kurento.gpg.key | sudo apt-key add -
sudo apt-get update

Try with the above method and then:

sudo apt-get install kurento-media-server

I think it will resolve your issue.

Source:

http://builds.kurento.org/dev/master/latest/docs/installation_guide.html


Turning off color management seems to have resolved the issue. The setting can be found at:
Settings → Devices → Device Colour Profiles
A restart is required to see the changes.


Firefox on wine crashes on startup on Ubuntu

It turned out that the best way was to install firefox ESR, which is more stable and would not crash.

I tried Firefox ESR 17 and 24 and they both worked very well. I could then install flash player and the Widevine addon and have it running without any problem.


Have windows key (meta) trigger Gnome-do instead of Unity Dash (12.04)

Alright, partly found my answer.  The keyboard shortcut for launching the dash is not in the "Keyboard Settings" app, but you can change it from "CCSM" (Compiz Config Settings Manager).

Install ccsm sudo apt-get install compizconfig-settings-manager
Run ccsm, open "Desktop / Ubuntu Unity Plugin" settings page
Change "Key to Show Launcher" setting
In "All Settings / Keyboard", add a custom shortcut that launches gnome-do

This mostly works, for any shortcut other than the Windows (Super) key.  When I enter the shortcut as "Super L", it fails to launch.  Any other shortcut appears to work.


My mistake. I had additional </VirtualHost> tag by mistake in my domain1.com.conf file. You suppose to have it twice like open and close tag but in my file i had this tag again in the middle and i didn't pay attention to it, maybe it got too late working on this last night. Fix the file and all three sites are working fine. Apache2 service is also restarting without any errors. Your original 000-default-conf should look like this
<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/site1
        ServerName domain1.com
        ServerAlias www.domain1.com

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Run a2ensite <domain name> on all your sites. Restart apache2 service by running sudo systemctl restart apache2. Check sites-enabled folder and it should show your conf file pointers. Make sure you got your multiple sites placed in their respective folders in /var/www folder prior to this.


Nexus 4 cannot pass the X screen after uninstalling Ubuntu Touch

I managed to fix the situation by doing the following:

Going into the bootloader mode and selecting "Recovery"
Holding volume up and power button until a new screen is opened
Do a factory reset
Wipe out partition cache
Do a factory reset again

Everything seems to be working properly now.


A virtual package is a generic name that applies to any one of a group
of packages, all of which provide similar basic functionality. For
example, both the tin and trn programs are news readers, and should
therefore satisfy any dependency of a program that required a news
reader on a system, in order to work or to be useful. They are
therefore both said to provide the "virtual package" called
news-reader.
Similarly, smail and sendmail both provide the functionality of a mail
transport agent. They are therefore said to provide the virtual
package, "mail transport agent". If either one is installed, then any
program depending on the installation of a mail-transport-agent will
be satisfied by the existence of this virtual package.
Debian provides a mechanism so that, if more than one package which
provide the same virtual package is installed on a system, then system
administrators can set one as the preferred package.Debian Manuals


Easiest method:

tar cz {folder} | openssl enc -aes-256-cbc -e > {folder}.tar.gz.enc

After that remove the original folder.

This:

openssl aes-256-cbc -d -in {folder}.tar.gz.enc -out {folder}.tar.gz

will get you the compressed {folder} without a password back.

You can also go with zip...

zip -e {name}.zip {files}

will zip it with a password and ask for it when restoring.


Partitioning with Windows 7, no free space

If you installed Windows with click-click-finish mode, then it took up all your space for Windows the way you mentioned. You have to repartition the main partition (the largest) inside Windows (right-click on My Computer, then Management, then Disk) to make space for your Ubuntu install.

First you need to make sure that at least 10-20 Gbyte is free at all on your disk, but more is better. If you have sufficient free space then shrink the main Windows partition to 10-20 less than its current size.

Based on the fragmentation of your disk (and the placement of the files and the size of the disk) this could run several hours.

Now that you have a partition with free space, you can install Ubuntu (which will split this single partition into 2 to 5).


Why don't my extensions show up in Banshee?

Once you've installed Banshee and the Community Extensions, you can control which extensions are active in Banshee through Edit > Preferences > Extensions (tab).

The Last.fm Shuffle Modes extension -- I think that's the one you're looking for -- should be listed there.  If you turn it on, it won't add an entry to Banshee's sidebar, though.  Instead, you can use it to generate songs from within the Play Queue by choosing "Fill by Similar Artists" or "Fill by Your Top Artists" (options that are only available if you've turned on the Last.fm Shuffle Modes extension).

If you've installed an extension through Synaptic or the Ubuntu Software Center and it isn't showing up in Banshee's extension list, I'd file a bug against the Banshee package in Ubuntu.  If the extension is showing up in the list and the box next to it is checked, but it doesn't seem to be active in Banshee, I'd file a bug against the upstream Banshee project.


Any examples of how to write an application that is executable from the terminal like git?

Put your Python program in a text file. The first line of that file should be

 #!/usr/bin/python

 print "Hello world"

(I put the "Hello world" line just as an example of Python code). Save it as a text file, for example test.py. Make that file executable

 chmod a+x test.py

Presto, you can now run it:

 ./test.py

To be able to access it from any directory and for every user, put it in /usr/local/bin, which is the default location for executables not installed with package managers:

sudo cp test.py /usr/local/bin

Alternatively, you can make a directory called "bin" in your home directory; it will be automatically appended to your PATH variable from through the $HOME/.profile file.

mkdir $HOME/bin
mv test.py $HOME/bin

In both of these two last cases to run your script in the terminal, you have to write only:

test.py

The extension ".py" is here only for you to indicate that it is a Python script. You can call it "susan" and run it by typing

susan

It will work the same.


Why can I run command, but not using sudo?

I think the Problem is in the permissions of the file /etc/abc.xyz/Sphinx.config:

I guess you have set permissions for the user rails but when you call

sudo -u rails searchd --config /etc/abc.xyz/sphinx.conf

As far as I know you only call the command searchd --config as user rails while the user from which you call it might not have access permissions to the file /etc/abc.xyz/sphinx.config.

so giving the sudo user permissions on this file should solve it.


Configure Universal Access options from the command-line

The xkbset package is what you want; latchlock doesn't work in 12.04, though.

man page:

http://pwet.fr/man/linux/commandes/xkbset

The author's home page:

http://www.math.missouri.edu/~stephen/software/


How can I change xfce bottom panel to the top?

Right-click on the panel.
Expand Panel.
Click Panel Preferences
Uncheck Lock Panel.
Click Close.

On the leftmost or rightmost side of the panel will be a double dotted line, which acts as a handle. Next:

Click the handle and drag the panel to the top.
Optionally, re-lock the panel.


I hope I got you right on what you are trying to do.

Network Connections is in Preferences but you can also start is from the terminal using nm-connection_editor.

Users and Groups is in Administration you can start this one from the terminal too using users-admin.

To manage applications which should start automatically on a system start you use the Startup Applications Preferences application which is in Preferences again.


How can I change the Unity launcher delay in Ubuntu 13.04?

use Ubuntu tweak tool so there you can configure your unity as you want.To install it

sudo apt-get install ubuntu-tweak

then open it from unity dash by typing as ubuntu-tweak


list all the ppa repositories added to my system

From How can I get a list of all repositories and PPAs from the command line into an install script?

Part of the answer looks to have what you are looking for:

#! /bin/sh
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name \*.list`; do
    grep -o "^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+" $APT | while read ENTRY ; do
        USER=`echo $ENTRY | cut -d/ -f4`
        PPA=`echo $ENTRY | cut -d/ -f5`
        echo sudo apt-add-repository ppa:$USER/$PPA
    done
done

Save this as listppa.sh

listppa.sh > installppa.sh

This creates a script that you can backup somewhere, then run to add your PPAs on a fresh install by simply running:

installppa.sh


Problem during Installing Ubuntu 18.04.02 LTS alongside windows

Your Windows is on an MSDOs partitioned disk, so it's installed in legacy mode. You should install Ubuntu in legacy mode too.  How you install is determined by how you boot the install media, so check your BIOs/UEFI settings and select the preferred boot mechanism -- legacy.  You wont need an efi partition.  You wont need a grub-bios partition either. All your Ubuntu install may on on logical paritions.  You made one 214G ext4 (and a swap).  Are the ntfs logical partitions ones you made?
This should be a standard legacy install, but your UEFI capable machine complicates things.  A Windows 7 (legacy) upgraded to W8 then W10 will result in your type of setup -- Windows 10 on a MSDOS parttiioned disk.

The FAT32 partition is not needed, and if you don't delete it, you should at least remove the boot and esp flags.  Windows may need the boot flag on its partition, Ubuntu doens't care.  If you get rid of the swap partition too, think about how you want to divide the 222GB for Ubuntu -- 25-50GB for root, rest a data partition ( or /home).  Or just keep it all one big partition, whatever meets your needs best. There are many recommendations for disk partitioning.

ESP warnings are a sure sign you are booting the install media in UEFI mode.  Recheck your BIOS/UEFI settings, they vary by machine. Some allow you to select a preferred mode (select legacy) when both are present. Some are more obscure, like selecting CSM mode.  Legacy knows nothing about ESPs, so shouldn't complain.


Problem during installation with manual partitions?

You need to install the boot loader on the hard disk device (/sda) and not on the boot partition. So select your hard disk device for "Device for boot loader installation".


From the comments a likely cause for your problem is a shorted wire in the mouse.
As the mouse gets older the movement of the wire will lead to wear so you might get a short circuit or a bad conection,to avoid this you can use a wireless mouse but they come with their own set of problems.
You can get the same problem if too many power hungry devices is on the same usb ports.
This is not the only cause for power problems in usb ports,it is the most likely cause so unpluging all the usb connectors is the first step in diagnosing this.


Copying and pasting files. Nothing new here

Please try:

    sudo cp Downloads/skin.cantrell /usr/share/xbmc/addons/

Use 'sudo' to gain administrator's rights in order to copy to system folders, such as /usr.


Minimizing Or Closing Apps Cause Ubuntu To Freeze

First, make sure you have the ubuntu desktop fully installed by opening a terminal and executing the following commands:

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop

Now, execute the following commands to reset unity and compiz (remember, unity is a compiz plugin; if you disable the plugin, you disable unity):

dconf reset -f /org/compiz/
nohup setsid unity

Your screen will flash and it might take few moments for things to return to normal. If you want to, you can go ahead and reboot instead.

You should also take a look at these:

Switching window manager/desktop environments?

How to remove Plymouth Boot Animation manager and keep the default boot screen

http://ubuntuhandbook.org/index.php/2014/04/reset-unity-and-compiz-settings-in-ubuntu-14-04/


How to identify Ubuntu VM is running on VMware on-premises cloud or VMware cloud in AWS?

Use dmidecode to determine the technology

See https://unix.stackexchange.com/questions/89714/easy-way-to-determine-virtualization-technology for details

Then traceroure to determine location , assuming you know the network architecture on premises as you say, the Amazon vm will have a different gateway


Running Magic the Gathering Online Beta?

Here is the link for the installer, hbdgaf:
http://mtgoclientdepot.onlinegaming.wizards.com/setup.exe

And no, I can't get it to run.

Have only tried wine though, and not for a while.
There have been some updates this summer, maybe it's worth another go?
http://www.wizards.com/Magic/Magazine/Article.aspx?x=mtg/daily/other/10082013/kiritz

I use a Windows 7 virtual machine currently :(


How to make Libreoffice autocorrect in Hirsute Hippo (21.04)

I can confirm the issue using default English language while running LibreOffice on Ubuntu 21.04 installation live media (tested on MATE, but others may be also affected). Confirmed on 21.04 minimal system with OpenBox as window manager.
I have reported this bug at LaunchPad as https://pad.lv/1926083 .


I cant exit fullscreen on spotify, and f11 just skips songs

I've had this issue for a while now, and @Sadaharu Wakisaka commented that for someone, it's already resolved by deleting $HOME/.config/spotify, but for me, with the snap version, I had to delete $HOME/snap/spotify/current/.config/spotify while Spotify was not running, and then sign in again


How to upload and download file in hadoop?

for putting files on hadoop use

 hadoop fs -put /<local machime path> /<hdfs path>

and to get files from hadoop use

 hadoop fs -get /<hdfs path> /<local machime path>

for more information see this


Updating from Ubuntu 13.04 to 14.10 with no XP

you can do fresh installation by downloading the ISO from other computer(since you are having problem downloading on present computer).

or you can do upgrade right from 13.10. for this you will need good internet connection. link on How do I upgrade to a newer version of Ubuntu?


I had a problem with radomly freezes on Ubuntu 18.04 but with Geforce 9600M GT graphics but only with proprietary driver 340. Problem was in Adaptive Mode. This graphics have three or four clock levels. When I set up only full performance mode on boot I had never more any freeze.

Try adding this to autorun:

nvidia-settings -a [gpu:0]/GpuPowerMizerMode=1


I have had a similar issue (not identical though). I had to remove both steam and my Nvidia drivers. Rebooted.

I then reinstalled my Nvidia drivers with sudo ubuntu-drivers autoinstall, rebooted, and then installed Steam.


Can Google Sheets be opened/edited in Ubuntu?

Use Google Drive files offline
This answer requires Google Chrome web browser to be installed and regularly updated.

If you aren't connected to a Wi-Fi or mobile network, you can still
view and edit files, including:

Google Docs
Google Sheets
Google Slides

Open files offline
To turn on offline access:

You must be connected to the Internet.
Use  the Google Chrome browser.
Don't use incognito mode.
Install and enable Google Docs offline Chrome extension. The Google Docs extension makes it possible to edit your documents, spreadsheets and presentations when you aren’t connected to the internet. Plus, you can copy and paste between Docs, Sheets and Slides.
Make sure you have enough free space on your device to save your files.

Open your Google Drive files offline

Open Chrome. Make sure you're signed in to Chrome.

Go to drive.google.com/drive/settings.

Check the box in the Offline category next to "Sync Google Docs, Sheets, Slides & Drawings files to this computer so that you can edit offline."

Source: Use Google Drive files offline – Google Drive Help


you set a new hostname with

sudo hostnamectl set-hostname new_hostname

You can also do so by editing BOTH /etc/hostname and /etc/hosts` . Direct editing is discouraged because if you do not edit both you can break sudo.

  panther@Ubuntu:~$hostname Ubuntu
  panther@Ubuntu:~$sudo hostnamectl set-hostname it_works

  panther@Ubuntu:~$hostname

  it_works

  panther@Ubuntu:~$ping -c1 it_works

  PING it_works (10.0.0.8) 56(84) bytes of data. 64 bytes from it_works
  (10.0.0.8): icmp_seq=1 ttl=64 time=0.020 ms

  --- it_works ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.020/0.020/0.020/0.000 ms

  panther@Ubuntu:~$sudo hostnamectl set-hostname Ubuntu

  panther@Ubuntu:~$hostname

  Ubuntu


Can't Change the default python 3.5 to 3.7 in ubuntu 16.04

After install Python 3.6.x and/or 3.7.x you need to make python3 use the new installed python instead of the default 3.5 release.

Run following commands to add the alternatives:

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 3

Then you can switch between the python versions for python3:

sudo update-alternatives --config python3

  BUG: There is a bug for this method: gnome-terminal won’t launch after switch to newer version.

To solve this, you need to recreate the symlink:

sudo rm /usr/bin/python3

sudo ln -s python3.5 /usr/bin/python3

Check version with:

python3 -V


Unity not loading on 13.04 with nvidia-current

For me, resetting compiz and unity a few times worked.

dconf reset -f /org/compiz/
unity --reset-icons &disown


Taking screenshots during installation of Ubuntu

The easiest way would be to do the install within a virtualbox guest installation.

You could snapshot the virtualbox guest window using either standard gnome-screenshot or better still, with Shutter.


Ubuntu 13.10 running very slow unlike former win xp professional

I assume the hardware of your laptop is too old for ubuntu 13.10. I'm not absolutely sure beacause an important information for judging this is the size of the RAM, which you don't tell. But at least the CPU is not strong. Note that Ubuntu needs more performance than Win XP.

If RAM is even lower than 1 GB, it is better to take another *buntu. Even with 1 GB your system will be slow with Ubuntu. Best will be Lubuntu. This variant is made for old hardware like your. The variant is not "weaker" than Ubuntu, but it fits to older CPUs and lower RAM size. There is e. g. no 3D-graphics in the desktop integrated. Lubuntu is much more like Win XP concerning the performance of the system. As a last remark: It's not true that Linux generally has lower hardware needs than Windows. It depends on the variant of Linux.


Do I need to install kernel source to apply a patch?

The short answer is: Yes.

The long answer is, that you will need to compile your own kernel. So after installing your sources from repo, you need to patch them. This is the point, where to use the patch command from above. I think here you can find a good start as documentation how to do it on your Ubuntu system.


what should I do...? I cannot install avro on 14.4

Open up your terminal and run these commands:

sudo add-apt-repository "deb http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./"
wget -q http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/Release.key -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install ibus-avro-trusty

Now logout and log back in or restart Ubuntu.

Click in the En icon in the top panel.

In the Text Entry Settings, click the + icon to add a new keyboard. find Avro from there and add that.

Now switch between English and Avro keyboard by pressing Super + Space (super means the key with windows/ubuntu logo)

You are done!

For the error E: Unable to lock the administration directory, please restart your computer once.

Hope it'll help.


Is there a way to install a package available in Ubuntu Karmic on Ubuntu Precise Pangolin?

As mentioned in @Registered User comment:
The answer is there is no  way to install a package available in Ubuntu Karmic on Ubuntu Precise Pangolin.

You CAN however build from the Karmic source code.

You can also run Karmic on a VM under Virtual box and install and run your favourite Karmic apps in that fashion.