Startup Disk Creator Uncaught Exception Error

Actually, this is not the documented bug mentioned by @SirCharlo.  In fact, it's not really a bug at all.  Startup Disk Creator is designed to only make Ubuntu startup disks. If you read the description of the program, it does actually say this, as I found out after the fact.

In my case, I was trying to make a Debian startup disk, and it has an OS Version labled "Debian GNU/Linux...", and therefore the app will not use it to make the disk.  Making a Ubuntu disk works perfectly.

It would be nice if it gave a better error message, but the behavior is evidently by design.


Keyboard not working on desktop in Ubuntu 20.04

I had just the same problem with keyboard and mouse not working
I can changed the grub file
1.Open terminal by pressing E while booting Ubuntu
2.Change the below command in grub file.
GRUB_CMDLINE_LINUX_DEFAULT="acpi=noirq text nomodeset"

In case only mouse is working you can login to Ubuntu using Accessibility icon and switch on the screen keyboard.


Unable to copy and paste from Google Calendar App

This is a known bug in launchpad. I am experiencing the same problem - and it is present for all application based on the webbrowser-app package i am using in ubuntu 14.04.

https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1264493

Therefore it is much better to use applications in chrome or chromium. These can also be launched as separate applications and can be present in your menu as standalone programs.
(If you do not have chrome or chromium you can search for chromium in the Ubuntu Software Center and install it from there)

To install the google calendar app in chrome/chromium:

Open your chrome / chromium browser
Click on the apps tab
Click on web store
Search for google calendar
Install it by pressing the "Free" button

Now you have the application installed. This guide is to make a standalone application for it:

Back in the Apps tab you see now that you have Google Calendar
Right click the application to see the context menu
Click create shortcut - and select applications menu

The application will now be searchable from your unity dash, and you can move it to your menu if you like.
Note that the names and icons for the old calendar application is somewhat similar so be sure to select the right one. The Chrome/Chromium one is called Google Calendar and the webbrowser based is called GoogleCalendar without a space.

This procedure also works for gmail, google docs and other google applications.

Good luck.


Lubuntu 15.04 live (with 6gb persistent) don't boot after installing Intel and nvidia drivers

I might need some more info, but here is what I know on how to fix this:
During the boot logo, press ctrl + alt + f1 and login with your user name (UNIX user name, not the greeter user name) and run sudo apt-get purge <insert driver package name here>. This should clear the drivers and fix the computer.


.desktop launcher - keep different chromium apps separate

[Edit: this workaround doesn't work for Snap packages, which is how the new chromium is installed]

Ok I hacked around it by creating copies of the executable (had to be the /usr/lib/ executable and not the /usr/bin/ script):

sudo ln /usr/lib/chromium-browser/chromium-browser /usr/lib/chromium-browser/chromium-browser-soundcloud
sudo ln /usr/lib/chromium-browser/chromium-browser /usr/lib/chromium-browser/chromium-browser-fastmail

Then updated the .desktop files to point to e.g. /usr/lib/chromium-browser/chromium-browser-fastmail instead of /usr/bin/chromium-browser

I also added a TryExec=/usr/bin/chromium-browser

Let me know if anyone has a better way of doing it according to the desktop spec at https://specifications.freedesktop.org/desktop-entry-spec/


Looks like a bug.Well it has been solved.
Install the bug fix:

sudo apt-add-repository ppa:a7x/bug1041063
sudo apt-get update
sudo apt-get upgrade


Error When Installing Nginx on Ubuntu 16.04

Something is already running on port 80, so when nginx tries to start and take that port it fails. Check to see what is running on your port 80 and stop it. You can find out what is using port 80 with:

sudo netstat -lnp | grep 0.0.0.0:80

Once you find what is using the port, do a systemctl stop to stop it and try to start nginx again. Keep in mind that you will have to disable that other service permanently in order for nginx to work properly.


Strange Language in the Login Screen for Unity and GNOME

Try changing your language you can follow this steps:

sudo su
dpkg-reconfigure console-data
pkg-reconfigure keyboard-configuration
service keyboard-setup restart

Sometimes (ubuntu login screen for me) just running dpkg-reconfigure console-data is not sufficient.


Terminal command

To turn on natural scrolling : synclient VertScrollDelta=-111

To turn off natural scrolling : synclient VertScrollDelta=117


Disk /dev/root full, but cannot identify the reason

Do you have any other partitions that you occasionally mount? I just tried to help a guy with a similar problem a few hours ago: 14.04 disk mount problem came our of left field As we found out together, he once mounted a partition for backup and it crashed (power fail I think). After that, the partition somehow stayed in a mounted state as an unaccessible folder in /media/ and also counted to the disk usage info. He finally just deleted the corrupted mountpoint to solve the issue.
So do you also have any dead mounts? Then you can try removing them (backup is always recommended! I take no responsibility for eventually damaged data!).


Where to change default + keyboard switch key by a terminal?

You can change this setting by going to System Settings -> Keyboard, then go to the Shortcuts tab and choose Typing on the left. The setting you're looking for is Switch to next source.

This setting is stored by GSettings. I think these settings are stored in ~/.config/dconf/user, but this is a database file managed by some applications and I would not touch it. Better to use dconf to change the setting if you would like to do it via the command line.

You can use dconf watch / to see settings that are being changed while you change Ubuntu's system settings via the GUI. E.g., if I run this command, then change the keyboard switcher to Super+Tab via the GUI, that command outputs:

/org/gnome/desktop/wm/keybindings/switch-input-source
  ['<Super>Tab']

So, you could change this switch to Super+Tab (as an example) via the command line by issuing the command

dconf write /org/gnome/desktop/wm/keybindings/switch-input-source "['<Super>Tab']"


I'm stuck after "Installation Complete" message

I'm going to assume that you just quickly pressed the power button, since you must have had a way to turn the laptop on in the first place. Therefore use the following in order of precedence:

Try pressing Alt+SysRq+B. This will get the laptop to Boot.
On some laptops, you may need to press the Fn key to  get SysRq to work.
On some laptops there is no SysRq, use PrtSc instead.
You should be able to simply hold down the power button for at least 10 seconds.
If all else fails, just let the battery run dry. In this case, you probably have more to worry about than the system not restarting, and I'd suggest getting the power button checked out whether or not it has a hardware error.


sudo apt update always finds updates-issue

That is completely normal. All apt update does is that is updates the package list from the Ubuntu repositories. If there are no updates, then it does not have to update anything.


How can clients authenticate to a proxy without user intervention?

Change your point of view.
Don't configure the authentication task on the clients, do it on the server side.

The approach is either to set up an restricted web proxy with either no or an "static" password. This web proxy should use a white-listing that allow access to well-known package repositories, but inhibits the use of custom web sites. This way the approach should not interfere with the web access policies for the users in your organization.

As an alternative to a traditional web proxy like squid you may have also a look at something like apt-cacher.


$num (or ${num}, the braces aren't necessary, references the files. $num.ostat will produce 1.ostat.ostat, 2.ostat.ostat ...

for num in *.ostat; do cut -d " " -f 6- $num > $num.1; done

should work.


How to create a database directory structure for MySQL?

I managed to solve the problem using a previously answered question,
How to install mysql on Ubuntu 16.04, but I needed to modify the solution to work for me.

When I deleted/moved /var/lib/mysql directory, mysqld --initialize couldn't create the database directory I want in replacement for /var/lib/mysql , and it gave me Errcode: 13 - Permission denied even though I preceded it with sudo.

I deleted/moved the content of /var/lib/mysql/, but not the directory itself. I tried again to run sudo mysql --initialize, and it worked, and created new content within the /var/lib/mysql/ directory. The content produced by mysql --initialize is different than the previous content I deleted/moved.

I continued the rest of the steps in the tutorial, and worked perfectly.

P.S. I needed to use sudo -i to access /var/lib/mysql.


Bump Noise/Sound Before Audio Starts Playing

Had the same issue on ubuntu 19.10, Card: HDA Intel PCH, Chip: Realtek ALC887-VD.
After searching online it looks like in my case it had something to do with power-save feature of the card.

Bump noise was gone after disabling power-save by adding

options snd-hda-intel power_save=0

at the bottom of /etc/modprobe.d/alsa-base.conf and rebooting. Now using

cat /sys/module/snd_hda_intel/parameters/power_save

shows 0 (zero). If you don't have /etc/modprobe.d/alsa-base.conf you can also try adding the same line at /etc/modprobe.d/snd_hda_intel.conf.
Commenting out load-module module-suspend-on-idle as mentioned here https://bbs.archlinux.org/viewtopic.php?id=116978 may also be needed. I didn't do that in my case.


Error trying to install dependencies for gnat

I figured out the problem. It turns out the error message on apt-get was completely useless and misleading (and if someone can point me in the right direction I'm happy to submit a bug report). But by downloading the package and trying to install it with dpkg -i, I found that gnat required a version of gcc less than 7. So 'all' I had to do was get rid of gcc-7 and downgrade all its dependencies to versions that use gcc-5.


How to exit(close to be specific) the terminal window through Java in Linux after the termination of the Java Program

As you already mention, System.exit() just exits the Java program,
not the invoking shell.  There are two ways to close the terminal window
after the Java program has stopped:

Either run the Java program and add the exit command in one line:

java -jar filename.jar; exit

This will invoke java -jar filename.jar and when that command returns,
the shell's exit command is executed (effectively closing the terminal
window).

Or replace the current shell with the Java process by issuing

exec java -jar filename.jar

This way the current instance of bash is replaced with an instance of
java. Hence, when the Java process stops, the terminal window will
close.


How can I install ‘Theme Selector’ GNOME Shell extension?

Run the following in a terminal:

sudo add-apt-repository ppa:webupd8team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell-extensions-user-theme


How can I set the installer to use my NFS server instead of a mirror while PXE installing?

The documentation I can find seems to be out of date but it seems setting netboot and nfsroot should do the trick, modify to your needs:

netboot=nfs nfsroot=192.168.0.10:/mnt/u01/tftpboot/ubuntu-desktop

Instructions are here:

https://help.ubuntu.com/community/Installation/LocalNet
https://wiki.ubuntu.com/LiveCDNetboot

I have no way to test if this work, so if you cold leave a comment if it worked or not we could keep trying different things.


Find and replace text in multiple files using Geany

Select all the files that you want to edit, and open them with Geany.
From the Geany menu select Search -> Replace.
A new Replace window will open up. Under the Replace All section select In Session as shown in the picture below. In this example I have chosen to globally replace the string "search-text" by the string "replace-text".
From the Geany menu select File -> Save All.
From the Geany menu select File -> Close All and close Geany, or select File -> Quit.

This is the way to replace text in multiple files in Geany. If you want to find all the instances of text in multiple files before you replace them, you can select Search -> Find from the Geany menu, and the file names and line numbers of the lines in the files containing the search term will appear in a list in the bottom pane of the Geany window. Any open tabs in Geany whose file names are not found in this list in the bottom pane of Geany can be manually closed one at a time, or you can leave all the tabs open since it doesn't make any difference to the result of your replace operation.


Make the Unity top panel look like the one on the lock screen/greeter

You can do that. Install Unity Tweak Tool for more customization options.

sudo apt install unity-tweak-tool

Open UTT and navigate to the tab Panel where you can set the transparency level of the top bar.

However, the menu items will still be opaque.


How to make Wavlink USB wifi adapter work again in Ubuntu 18.04.2 LTS after kernel upgrade

Wifi adapter works again. Here's how to make it work again.
Problem: Driver version 4.3.8.12175 for RTL8812au chipset was not compatible with kernel 5.0.0-23.
Solution: Search for newer driver version for RTL8812au and install.
How To: Download and install gordboy's RTL8812au-5.6.4.1 driver on GitHub and follow readme file for installation : https://github.com/gordboy/rtl8812au-5.6.4.1
Installation with dkms: In short, open terminal (CTRL+ALT+T) and use the following commands in terminal:
sudo apt install git build-essential dkms
sudo git clone https://github.com/gordboy/rtl8812au-5.6.4.1.git
sudo cp -r rtl8812au-5.6.4.1 /usr/src/rtl8812au-5.6.4.1
sudo dkms add -m rtl8812au -v 5.6.4.1
sudo dkms build -m rtl8812au -v 5.6.4.1
sudo dkms install -m rtl8812au -v 5.6.4.1
sudo dkms status

Output for dkms status should be:
rtl8812au, 5.6.4.1, 5.0.0-23-generic, x86_64: installed

And Wifi adapter should work until next unsupported kernel version upgrade.
To uninstall and remove: Use the following command in terminal:
sudo dkms remove -m rtl8812au -v 5.6.4.1 --all

01/06/2021 Edit:
Installation of gordboy RTL8812au driver: v.5.9.3.2 (for Linux kernel 5.4) from GitHub.
sudo apt install git build-essential dkms
sudo git clone https://github.com/gordboy/rtl8812au-5.9.3.2.git
sudo cp -r rtl8812au-5.9.3.2 /usr/src/rtl8812au-5.9.3.2
sudo dkms add -m rtl8812au -v 5.9.3.2
sudo dkms build -m rtl8812au -v 5.9.3.2
sudo dkms install -m rtl8812au -v 5.9.3.2
sudo dkms status

To uninstall and remove this version:
sudo dkms remove -m rtl8812au -v 5.9.3.2 --all


I am trying to download Adobe Flash 10 for Ubuntu 16.04.03 - 64 bit OS

adobe-flashplugin is available in the Canonical Partners repository, so you need to enable Canonical Partners.

P.S. It should be noted that the apps.ubuntu.com site is severely outdated. Canonical Partners currently provides Adobe Flash 28, not 10, and it's Adobe Flash 28 you'll install when you click that button.


GnuCOBOL not generating dynamic link library ELF references

Path to fix posted to the StackOverflow question linked above.

export COB_LDFLAGS='-Wl,--no-as-needed' is the easy fix to get around this change to linker optimization.  The real fix will be a little deeper, but Petesh offered the hint that fills the immediate need.


Is it possible to have Windows 8 and Ubuntu on the same hard drive?

You can have several file systems on your hard drive, each one on their own partition. For example:

In this image we can see a hard drive (SDD) which has 4 partitions:

sdd1 - Which holds an ext2 filesystem partition.
sdd2 - Which holds an ext4 filesystem partition.
sdd3 - Which holds an Fat32 filesystem partition.
sdd4 - Which holds an NTFS filesystem partition.

As you can see, we have 4 filesystems on the same hard drive, each one on their own partition. What you can't have is 2 filesystems on the same partition, since a partition gets assign a particular filesystem (One filesystem to rule the whole partition).

I am showing you 4 here since this is the max partitions a single hard drive can have as primary. This is only true for MSDOS Partition Schemes. If you use GPT you can have as many as 128 primary partitions.

If you stay on the MSDOS Partition Scheme and still want more than 4 partitions, then you would create what is called a Logical or Extended partition, which holds more partitions inside of it and takes 1 from the total number of primary partitions. So you can have for example 3 primary partitions and 1 logical partition which holds 4 more partitions inside of it.

You could even get to a crazy point like this:


dd: warning: partial read (512 bytes); suggest iflag=fullblock

Without seeing the full command and error, I can only guess that you need to add iflag=fullblock and increase the buffer size. Here is a good overview of some of the options for dd.


Is it okay to mess around with Python that comes with Ubuntu?

As I've asked and advocated before, I'd suggest using a virtualenv. It looks like more work but it's actually a ton less in the long run.

How can I install Django for Python 3.x? This contains everything you need to get up and running.
easy_install/pip or apt-get
How to install pip for python 3 in ubuntu 12.04 LTS
Drag forward installed Python packages when upgrading really highlights the pain you get into using pip with the system's site packages. Don't do it.


i think you could turn on/off your fan by running the following command:

# turn off
echo suspend > /sys/bus/usb/devices/usbX/power/level

# turn on
echo on > /sys/bus/usb/devices/usbX/power/level

replace usbX with usb1, usb2 or whatever

then you would have to check the temperatur periodically, for example by running a script every minute using cron job. You can take a look at this german article to see how to implement it. Don't worry if you do not speak german. The bash script from the example is pretty easy to understand without the surrounding text.


Broken file type associations after running update-mime-database

I had a similar problem and I solved it reinstalling the shared-mime-info package with

sudo apt-get install --reinstall shared-mime-info


Does failing to build the "dell-laptop-natty-dkms" module on 12.04 matter?

No, you don't have to worry about this. It's a DKMS version of the dell-laptop module for Natty (11.04), and it seems to me from a Google search that it was only available via PPA.

Since the 12.04 kernel series (3.2) is not available for Natty, the DKMS build fails. It's harmless, and I would remove it with sudo apt-get --purge remove dell-laptop-natty-dkms to get rid of the warning.


Install latest version of dotnet-sdk by script

To keep packages upto date I would expect sudo apt-get update sudo apt-get upgrade should suffice.   I use python to find the highest version number returned by a command
import re, sys
from distutils.version import StrictVersion

def get_release(out):
    r = re.compile(f'.*([v]?[0-9]+\.[0-9]+\.[0-9]+)$')
    maxrel = "0.0.0"
    for rel in out:
        if r.match(rel) is not None:
            rel= r.split(rel)[1]
            if StrictVersion(rel) > StrictVersion(maxrel): maxrel = rel

    return maxrel

if __name__ == '__main__':
    print(get_release(sys.stdin.read().split("\n")))

the command you have noted doesn't return same results for me.  I pasted text to a file
$ cat dotnet.txt | python3 maxver.py
3.1.301

getting highest available version from git:
$ git ls-remote --tags --refs https://github.com/jquery/jquery.git | python3 maxver.py
3.5.1

putting it together to download latest version
$ wget -nv https://github.com/jquery/jquery/archive/$(git ls-remote --tags --refs https://github.com/jquery/jquery.git | python3 maxver.py).zip
2020-06-16 10:49:01 URL:https://codeload.github.com/jquery/jquery/zip/3.5.1 [1520729/1520729] -> "3.5.1.zip" [1]


gedit is a graphical program, so just as you would not run it as root with straight sudo, you shouldn't run it as another user with straight sudo or straight su.

Instead, if you (i.e., foo) have the power to run programs as another user with sudo, this is probably the easiest way for footo run gedit as bar:

xhost +local:bar
gksu -u bar gedit

If you don't have the power to run programs as another user with sudo but you can su to bar, then this is the easiest way:

gksu -w -u bar gedit

The -w flag (equivalent to --su-mode) makes gksu (which is a frontend for both sudo and su) use su instead of sudo.

You shouldn't need to run any corresponding xhost command to make gksu -w ... work.

If you want a graphical terminal instance (gnome-terminal) from which you can run anything as bar including graphical applications, you should consider just running a new instance of gnome-terminal as bar (which you can do the same way as running gedit, detailed above).


Adding user in the Image (using Ubuntu Customization Kit)

Whatever user you created at the time of creating the image, the Ubuntu installer apparently ignored it, because it didn't create a /home directory for that user. So apparently you have just one regular user on that system, and that is the user you created when you were installing the customized Ubuntu OS and you also should be able to login without a password as a guest user.

While installing the customized OS, the Ubuntu installer asked you to type your user name so that it could create a /home directory for a new user with that user name. Then it asked you to type a password for that user or else if you left the password field blank you can login without a password just by pressing the Enter key.

If for some reason, the Ubuntu login screen does not accept your password for the new user that you created in the Ubuntu installer, then you can change the password for that user from an Ubuntu live DVD or live USB. The login password is normally the same (by default) as the administrative password which is used to run sudo commands in Ubuntu. The instructions for resetting the administrative password are found in the answers to this question: How do I reset a lost administrative password?.


Multi monitor setup reverts to clone after login on Kubuntu 14.04

Why are you using nvidia settings on Kubuntu? The KDE settings do it great.
Remove your xorg.conf completely, reboot, and go to KDE System Settings - Display configuration.

If settings do not persist, try setting them to mirror, reboot, and change again. Make sure that you do not have some leftover configs or scripts from your previous attempts. Especially, check at "Startup and Shutdown" "Background services" that KScreen is running.

Finally, there is a "rude way". Disable KScreen maybe. Look up your monitor names by typing xrandr in console. Then run a configuration command like

xrandr --output "VGA1" --primary --mode 1920x1200 --output "HDMI2" --right-of "VGA1" --mode 1920x1200

If it helps, just put it in autostart somewhere.


I used ** to indicate it is important.
from man wget

-O file
   --output-document=file
       The documents will not be written to the appropriate files, but all
       will be concatenated together and written to file.  ** If - is used as
       file, documents will be printed to standard output, disabling link
       conversion.  (Use ./- to print to a file literally named -.) **

       Use of -O is not intended to mean simply "use the name file instead
       of the one in the URL;" rather, it is analogous to shell
       redirection: wget -O file http://foo is intended to work like wget
       -O - http://foo > file; file will be truncated immediately, and all
       downloaded content will be written there.

and from man apt-key

add filename
       Add a new key to the list of trusted keys. The key is read from
       filename, or ** standard input if filename is -.**

this explains your command.


Recommended desktop sharing setup on same network segment

I would go 100% sure for a NX connection. I use NoMachine a lot and works great.

www.nomachine.com

Just download the three .deb for ubuntu. Install and you're ready to go. Easy and fast.


ubuntu will not let me set login page background

Ubuntu Tweak will most probably work.

Possible reasons of your problem:

Permissions to your Image file is wrong.

The Image file should have the following permissions:

Owner: Root
Access :Read and Write
Group: Root
Access: Read-only
Others: Read-only

Your File location is not suitable

I strongly recommend you to copy your Image file to  /usr/share/backgrounds

Step-wise Solution

First of all, let's make it easy to open folders with Admin Privilege:

press Ctrl+Alt+T to go to a terminal and type (Enter Password if prompted):

sudo add-apt-repository ppa:noobslab/apps
sudo apt-get update
sudo apt-get install open-as-administrator
nautilus -q

Now you can open any folder with permission by right-clicking on the folder and choosing open_as_Administrator (Enter Password if prompted).

Open the background folder with Admin Privilege.
Now Copy your image and Paste it to this folder.
Right click on the Image and go to Properties
Go to the Permission Tab and Change the permissions as listed above.

(Note: Once you Open the folder as Admin, Owner will be shown as Me instead of Root)
Close the window.
Now Use ubuntu-tweak and select the file from the Backgrounds folder.
(Assuming that you know to use Ubuntu Tweak).


I was struck with the same problem.  Fixed it by adding:

--scale 2.0x2.0

to my xrandr arguments.

A scale of 1.0 will make all things the size they would be on a 1080p display.  Scale 2.0 sizes for a 4K display.


How to remove a wifi-hotspot on ubuntu gnome 14.04?

To delete a hotspot connection go to the "network" icon in the right side of the Panel and choose  Edit Connections. In the new Network Connections window you can edit and delete connections.


Windows 8.1 Partition not visible in ubuntu 14.04 installation

Go to Try Ubuntu (start live distribution), start GParted, make new partition table (i recommend 2GB linux-swap, 40GB linux, 250GB ntfs) and file system set ms-dos (not GPT). Go to install Ubuntu (40GB and bootloader to sda), next windows (250GB) and check it. (sorry for my english)


Hardware Enablement Stack (HWE) out of support

I had the same problem, this is what worked for me

Command:

For amd64:

sudo apt-get install -V libglapi-mesa-lts-trusty libgl1-mesa-glx-lts-trusty xserver-xorg-lts-trusty xserver-xorg-input-all-lts-trusty xserver-xorg-video-all-lts-trusty libgl1-mesa-dri-lts-trusty x11-xserver-utils-lts-trusty libglapi-mesa-lts-trusty:i386 libgl1-mesa-dri-lts-trusty:i386 libgl1-mesa-glx-lts-trusty:i386 libgles2-mesa-lts-trusty libglapi-mesa-lts-trusty mesa-vdpau-drivers-lts-trusty

For i386:

sudo apt-get install -V libglapi-mesa-lts-trusty libgl1-mesa-glx-lts-trusty xserver-xorg-lts-trusty xserver-xorg-input-all-lts-trusty xserver-xorg-video-all-lts-trusty libgl1-mesa-dri-lts-trusty x11-xserver-utils-lts-trusty mesa-vdpau-drivers-lts-trusty libgles2-mesa-lts-trusty libglapi-mesa-lts-trusty


How to find if my hardware supported by Ubuntu?

Your best way to know if your hardware will work is to download ubuntu from here then burn the image and set your computer to boot from that image whether it is in livecd or liveusb format and run it in the try mode and see for yourself if your hardware works. You may have to install a driver for your wireless to work it all depends on your wireless card type.


Wireless is disabled by hardware switch on Lenovo Z470

My friend tried installing a new instance of Ubuntu but the problem persisted.

He, then, installed Windows along with the drivers. He activated wireless using key-combination Fn+F5. On installing Ubuntu this time, it worked.


Thumbnails for certain formats not appearing in Nautilus

To have LibreOffice documents in Nautilus while using Ubuntu 11.10 you need to install an extension to it since those are not supported by default.

The only one I know of is ooo-thumbnailer from this PPA, it can be installed using these commands in a terminal:

sudo apt-add-repository ppa:flimm/ooo-thumbnailer
sudo apt-get update
sudo apt-get install ooo-thumbnailer

When its done installing you should need to log off or restart Nautilus with nautilus -q.

It should be safe to use this PPA but you should always remember there are no warranties using PPAs.

For more information on what are PPAs and risks involved in using one please have a look at the following posts:

What are PPAs and how do I use them?
Are PPA's safe to add to my system and what are some "red flags" to watch out for?


How to create a bootable USB from a .iso file?

Try Ubuntu Startup disk creator, I don't think it discriminates about which input ISO you give it.  (System->Administration->Startup Disk Creator), then select the .iso you want to burn and the output USB drive.  I've used it several times now for creating a boot environment on both a thumb drive and a backup USB hard drive.

You haven't told us anything about the USB drive itself though, it might be handy to::

print the output of sudo fdisk -l /dev/sdX (where sdX is the device (sda/sdb/sdc etc) name given to the USB drive upon plugging it in, you can find this at the bottom of dmesg as you insert the drive)

Mine (in a MacbookPro):
Device      Boot    Start         End      Blocks   Id  System
/dev/sdb1               1          26      204819+  ee  GPT
/dev/sdb2   *          26        3065    24414064   af  HFS / HFS+
/dev/sdb3            3082        3212     1048576   82  Linux swap / Solaris
/dev/sdb4            3212        9291    48827392   83  Linux

  (Make sure a partition on the drive is actualy marked as bootable (* in the boot column)

attempt to boot from a bootable USB thumb drive or similar on your machine to test it, maybe its not capable or not setup to boot from an external USB device (check BIOS for more info)
also, try the bootable drive on another machine as this will at least tell you if the drive itself is working correctly


"HtmlConverter doesn't exist." error when installing Sun Java 6

Not a final answer, but I wanted to properly format it. I'm on Ubuntu 11.04 and use OpenJDK. This works well by installing it using apt:

sudo apt-get install openjdk-6-jdk
sudo apt-get install openjdk-6-source

First, get the JDK, then install the JDK sources (for some reason they are not included in the JDK). This worked for 11.04 and 10.04 LTS... maybe it's possible for you to give OpenJDK a try - it's the future anyway.


All Monitors of the second GPU are disconnected. Ubuntu 18.04 - Nvidia 396.54

2019 report

A year later I had some time to spend in this issue and although I did not find a proper solution I found a workaround:

Rig update:

one external video card with 4 monitors connected (3 hdmi and 1 dvi)
and the Intel HD530 embedded in my motherboard connected to the rest of the monitors (1 dvi and 1 vga).

OS update:

ubuntu 19.04,
kernel 5.0.0-20-generic,
gnome 3.32.1,
xserver-xorg-core | 2:1.20.4-1ubuntu3 | amd64,
nvidia driver 418.56.

It just worked out of the box after the Ubuntu installation.


Theme issue after re-install Unity in Ubuntu 12.04

I had a similar problem when I apt-get install unity on top of a Ubuntu 12.04 Server installation. The problem was "solved" after I apt-get install ubuntu-desktop. So I think your system is missing some packages.

First thing you should do is run sudo apt-get -f install to ensure there's no broken package and install ubuntu-desktop (sudo apt-get install ubuntu-desktop). If the problem persists, install synaptic (sudo apt-get install synaptic) and proceed to the next paragraph.

Open synaptic and select "Repositories" in the "Settings" menu, then change to "Other Software" tab and remove any PPA you added to install Unity 7. Back to synaptic's main window press the "Reload" button (on the toolbar).

Still on synaptic, press "Custom Filters" button (left bottom panel), then select "Missing Recommends" filter (left top panel). You should see a list of recommended packages that are not installed. Mark them all for installation and press the "Apply" button in toolbar.

Now press "Origin" button and select "Local" filter. You'll may get a list of packages that don't belong to any repository. Review the list and (for every package you know you didn't manually installed from a .deb file) select it, open "Package" menu, select "Force Version..." and choose the highest version that is available from the precise (or precise-updates, or precise-security) repository (the repository name will be between parentheses). When you're done, press the "Apply" button.


What is the difference between the group root and the group sudo? Why root user by default is not a member of the group sudo?

You're correct that root has all privileges, but saying that sudoers have all privileges is not quite correct. They are allowed to attain all privileges by using sudo to run a command as root. That includes running a root prompt, using a command like sudo -i.

root is not a sudoer because it is already root - it doesn't need to become root to run commands.


look here

solution booting and installing on mac


Failed to load listeners: can't create unix socket /var/run/docker.sock: is a directory

I spend about one hour trying to figure out why, and this is totally my own mistake for not reading the error message. the error message clearly states

can't create unix socket /var/run/docker.sock: is a directory

the first thing i do, is to enter root. (this is how i prefer to not do this, if you dont like to work this way. just add sudo infront of all the commmands )

sudo su

I check the path, using the following command.

ls -la /var/run/docker.sock

It shows that, the path is in fact a directory. So i delete the directory

rm -fr /var/run/docker.sock

then i restart the docker.service

systemctl edit docker

Docker starts, and the output of systemctl status docker is all good.

Conclution: if you get this error message, and run ls on docker.sock and it does not look like this. then remove the directory and restart docker.

ls -la /var/run/docker.sock
srw-rw---- 1 root docker 0 Nov 15 09:47 /var/run/docker.sock


Solved by @heynnema in answer https://askubuntu.com/a/1333040/1282, many thanks!
Briefly,
sudo apt install linux-headers-5.8.0-48 linux-headers-5.8.0-48 linux-image-5.8.0-48-generic linux-modules-5.8.0-48-generic linux-modules-extra-5.8.0-48-generic
sudo update-initramfs -c -k 5.8.0-48-generic
sudo update-grub
reboot

Solved my issues for now, until -51 is available.


Any risk in creating encrypted ext4 partition to shared drive?

All the usual partitioning tools in Ubuntu will preserve existing partitions (including their partition number) by default ensuring that any partition you don't specifically modify should continue to function in other operating systems even when referred to by partition number only.  It would take extra steps to damage or change other partitions.  You just need to ensure that you don't generate a new partition table (which wipes all partitions) and you don't specifically delete a partition you want to keep (or an extended partition containing it).

Even if you do accidentally delete a partition or generate a new partition table, the old partition should still be recoverable by creating a partition with the same partition number and start and end sectors (eg if you write them down first).  Deleting a partition in an Ubuntu based disk partitioning tool won't wipe the data in that partition.


PDF reader suggestion in Ubuntu 17.10 (that supports wayland session)

https://apps.ubuntu.com/cat/applications/okular/

  "Okular is a universal document viewer with support for advanced
  document features, such as annotations, forms, and embedded files."


Actually, Frank is only partially correct. The problem is not that MiB alignment was chosen; that's actually the correct alignment. (Selecting cylinder alignment would definitely be wrong.) When using MiB alignment, partitions are aligned to 1MiB boundaries -- that is, they start on sectors whose numbers are multiples of 2048. Since 2048 is a multiple of 8, this means that all partitions begin on multiples of 8, which is required for optimum performance on Advanced Format disks. Most modern hard disks are Advanced Format models, so as a general rule you should use 1MiB (or at least 8-sector) alignment on modern disks. For further information on this, see this article I wrote on the subject for IBM developerWorks.

If you check the start sector numbers, you'll see that they all align on 2048-sector boundaries, except for one: /dev/sda2. It seems that fdisk is now providing a warning about this, with its Partition 2 does not start on physical sector boundary message. This message is a false alarm. Yes, it's true that it doesn't fit on an 8-sector boundary (30001150 / 8 = 3750143.75); but /dev/sda2 is also an exception to the rule I've just laid out. It's an extended partition, which means that it's a placeholder for logical partitions. The speed problems associated with misaligned partitions occur because filesystem data structures are read and written in 4KiB (8-sector) chunks; but the only data accessed directly through /dev/sda2 is the pointer to the first partition it contains, and that's a 512-byte data structure, so it occupies only part of a physical sector no matter what the extended partition's start point is. What's more, this data structure is read once when the computer boots and is rarely written. Thus, it doesn't matter what the alignment is on extended partitions, and any tool that complains about their misalignment is causing concern without reason.


Terminal shows that my user is only a member of its group, but it is not true - how to fix?

This problem was linked with my other question about PAM warnings in /var/log/auth.log.

The problem was caused by manually installed PAM KWallet modules. I have installed both (libpam-kwallet4 and libpam-kwallet5), but they can't be installed in the same time as described in the bug 1781418 on launchpad.

I fixed my problem by removing two PAM modules:

sudo apt-get purge libpam-kwallet4 libpam-kwallet5

and then rebooted.


how come kde4-config package is not found?

Should there be a package kde4-config ?

Ubuntu Packages Search: http://packages.ubuntu.com/

http://packages.ubuntu.com/search?keywords=kde4-config&searchon=names&suite=all&section=all

  You have searched for packages that names contain kde4-config in all
  suites, all sections, and all architectures.

  Sorry, your search gave no results

There are packages: kde-config-*

http://packages.ubuntu.com/search?keywords=kde-config&searchon=names&suite=all&section=all

The command kde4-config is:

NAME
       kde4-config - Prints KDE installation paths

SYNOPSIS
       kde4-config [--expandvars] [--prefix] [--exec-prefix] [--libsuffix] [--localprefix] [--version]
                   [--types] [--path type] [--userpath type] [--install type]

DESCRIPTION
       kde4-config is a command line program used to retrieve information about KDE installation or user
       paths.

       Use this program to determine where the various aspects of the KDE installation reside on your
       system.

It is part of the kdelibs-bin and kdelibs5-dbg:

http://packages.ubuntu.com/search?searchon=contents&keywords=kde4-config&mode=exactfilename&suite=precise&arch=any


Running 32Bit Application on 64Bit Ubuntu

sudo add-apt-repository ppa:gnome3-team/gnome3

sudo apt-get update

sudo apt-get install libcanberra-gtk-module

sudo apt-get install ia32-libs

I had this same problem because i was missing libcanberra-gtk-module. This worked for me.


How do I use cloud-init to apply netplan?

The cloud-init confuguration files are not the place the change your network configuration after first boot, because the network configuration will only be generated once by cloud-init (on first boot).

You can however change the netplan config file directly. Then use the following commands as root to enable your changes. They will stick across boots.

netplan generate
netplan apply

Only the command 'cloud-init clean' will regenerate the 50...yaml file, but I dont think you want that. That would reset everything, including hostname en machine-id (resulting in a new max-address and a new dhcp ip address).


USB blocks suspend on a Gigabyte GA-890GPA-UD3H with ATI SB700/SB800

Try different kernels from kernel PPA, you may be lucky. Try 2.6.32, 2.6.35, 2.6.36 final versions (without rc), and 2.6.37.rc1 too.
http://kernel.ubuntu.com/~kernel-ppa/mainline/

Install only linux-image-x.x.x-generic_...(i386 or amd64).deb


How do I install another desktop on ubuntu Gnome

Yes there is a way, but I should start with a warning:

It is easy to install another desktop environment and to switch between them at the login screen - they are often called 'sessions'. But there can be problems, that the two desktop environments interfere with each other, and there are duplicate application programs, which will clutter the menus. And finally, it is very difficult to reverse the operation, to get only one single clean desktop environment again. So you should backup your current system if you want to get back.

Install KDE with

sudo apt-get install kde-full

See this link for more details,

help.ubuntu.com/community/InstallingKDE


/var/log/syslog owned by syslog:adm and permission denied with truncating it

While writing this question I discovered the answer.

For this you need to login as root:

sudo -i

Then run your command, it my case:

> syslog

Always make sure to exit your root shell once you're done with it

exit


virtual box doesnt shows 64 bit os in ubuntu14.04 64 bit

In order to have a X86-64 based guest operating system you must have a X86-64 host cpu with virtualization support (eg Intel VT-x and AMD-V). Virtualization support obviously must be turned on in order to use it. This is done in your BIOS or UEFI.

Sources:

http://www.virtualbox.org/manual/ch10.html#hwvirt


I had this same problem and it was driving me nuts trying to fix it because whenever I booted into Windows 10, sound worked fine. Meanwhile, on Ubuntu 18.04, I found a number of helpful web pages with suggestions for troubleshooting audio problems.

The suggestion that worked for me was running 'sudo alsamixer' in a terminal window. I didn't even have success with this until I started to approach the problem with the expectation that things were gonna work realized I needed to be able to tell when they did.

I have provided some very basic instructions below that I hope might help someone troubleshooting audio problems. While steps 3 and onward are specific to alsamixer (version 1.1.3), steps 1 and 2 may help a person detect when things are working for other changes. If you are already familiar with alsamixer, then I'm sure you will understand that we are looking for any playback settings that may be muting output or producing output at a volume to low to be heard. In my case, it was the muting of one particular item that actually produced audio through the speakers.

Turn speakers on to HALF volume, NOT full volume
Start the audio source you want to hear through the speakers. It is important that the audio source provide continuous test audio so that you will hear the audio through the speakers once the correct setting is discovered and adjusted.
Open a terminal window
Enter the following command: sudo alsamixer
Assuming the application launches and you can see the UI, proceed with the remaining steps.
Press F6 to select the desired soundcard
Press F3 to ensure we are only exploring [Playback] settings

We're gonna change the volume level or mute status of various items to see if the change causes audio to come through the speakers. The currently selected item is the one on the left. By moving the right arrow key we can select the item to its right. We will slowly explore each item until we go all the way to the right. You will see the name of the currently selected item appear in the upper right of the screen next to "Item:"

Use the right and left arrow keys to move to different items.
Note the current volume level or mute status.
If the item volume indicator has a little box with "MM" or "0", try toggling the mute status with the "M" on the keyboard. If you do not hear audio from the speakers, then toggle the item again to put it back to its original state.
If the item volume has a vertical box, use the up and down arrow keys to raise the volume level all the way to the top. If this does not result in audio being output from the speaker, then lower the volume back to its original value.
Repeat steps 7 through 10 until you hear the test audio from the speakers or until you reach the last item on the right.

My apologies if you get all the way to the right without any improvement in your audio configuration.

In my case, I have an ancient Creative Labs SoundBlaster Audigy 2 ZS sound card. Everything worked right out of the box when I first installed Ubuntu, but some later actions on my part broke the audio configuration to where I could hear audio through headphones but nothing came through the speakers, even if I physically disconnected the headphones (which I also tried since some cards auto-toggle speakers when headphones are connected/disconnected).

When I followed the steps above, I came to the item: Audigy Analog/Digital Output Jack, which was set to "0" (enabled), I toggled to mute ("MM"), thereby turning the item "[Off]". The moment I did this, I actually got sound output through the speakers. Makes no sense to me at all why enabling this item would DISABLE output to speakers and vice-versa, but I'm so happy to have finally found this setting and fixed my audio configuration, and can now listen through speakers or headphones as I choose.


You are having temporary difficulty reaching http://ir.archive.ubuntu.com I've found that one good way to resolve this problem is by opening Software And Updates. Choose Download from Other.

Choose Select best server

You'll see this:

Click Choose Server to select the recommended server


How to set primary monitor with AMD Catalyst Control Center installed

In Ubuntu's System Settings in the Display panel, the selected monitor is set as the primary monitor. It's pretty unintuitive.


What is a "failed to create a symbolic link: file exists" error?

This is a classical error... it's the other way around:

ln -s Existing-file New-name

so in your case

ln -sv /media/mariajulia/485f3e29-355c-4be3-b80a-1f5abd5604b6/mariajulia/Downloads/saga..doc ~/Documents/saga

should work. Note though:

if ~/Documents/saga exists and is not a directory, you will have the error too;
if ~/Documents/saga exists and is a directory, the symbolic link will be ~/Documents/saga/saga..doc (are you sure about the double dot?)
if ~/Documents/saga does not exists, you symbolic link will be ~/Documents/saga (as it is, no extension).


Stop monitor from going to sleep in ubuntu 16.04

You can use gsettings for enabling and disabling monitor from going to sleep:

Disable turning off screen

gsettings set org.gnome.desktop.session idle-delay 0

Enable turning off screen with 5 min delay

gsettings set org.gnome.desktop.session idle-delay 300


which ubuntu version to download for toshiba C850 laptop with rtl8723 ?

Ubuntu 13.04 (64bit for your UEFI machine) comes with a working alx driver for ethernet and rtl8723 driver for wireless.  You don't have to build anything to get networking anymore. I have no direct experience with the 32 bit distribution, but since they are build from the same sources, I'd expect that the drivers would be present there too.  You can download the 13.04 iso from http://www.ubuntu.com/download/desktop.


Yes, there is but a direct one (not from any log).

sudo udevadm monitor

or for cleaner output only from udev:

sudo udevadm monitor -u

Reference: man udevadm:

udevadm monitor [options]
   Listens to the kernel uevents and events sent out by a udev rule and
   prints the devpath of the event to the console. It can be used to
   analyze the event timing, by comparing the timestamps of the kernel
   uevent and the udev event.

   -u, --udev
       Print the udev event after the rule processing.


For me this card works only with nvidia driver version 173.14.39. (partialy, e.g. steam is unusable) So if you are using another proprietary driver, first remove it.
If you are not able to do it in graphical mode, you can do it in recovery mode. When pc starts press shift key and grub menu should appear. Select recovery mode, first run fsck, and than go to root console and run:

apt-get remove --purge nvidia-*
shutdown -r now

Pc should restart with opensource drivers loaded. Than go to settings and change drivers to nvidia 173.1.39.


Follow this guide:

http://blog.bloke.com/2010/06/howto-build-gimp-2-7-1-from-source-step-by-step-ubuntu/

but used babl version 0.1.4, gegl version 0.1.6, and gimp version 2.7.3.

You also might need to use sudo make install instead of make install


Ubuntu 16 netboot (diskless) freeze in virtual console

It looks like it was all about setting kernel parameters. I tried upgrading the kernel to 4.7.4 but this didn't help.

It works if I set the following parameters:

video=uvsesafb:mode_option=1680x1050-24,mtrr=3,scroll=ywrap,noedid

I'd prefer to not hardcode the screen resolution though.


Systemd service script fails to write into a file

I finally solved it. I had to add WorkingDirectory directive, with value ~. It now works without any permissions issue.

Thanks to @muru


How to remove all Desktop Environments except GNOME?

Without access to your computer, no one can tell you exactly which packages you should remove.  This is the general approach I would take, but there is risk of removing too much and getting stuck at a command line.

Find potential packages to remove.

aptitude search '~i' -F '%p' | grep unity
aptitude search '~i' -F '%p' | grep compiz
aptitude search '~i' -F '%p' | grep metacity
aptitude search '~i' -F '%p' | grep wayland

Remove them.

aptitude remove [package]

Repeat until you cannot find any more packages to remove.
Install and run deborphan and debfoster to sweep up any left over packages.
If you remove too much and get stuck with a command line:

nmcli device wifi   # check for internet access
nmcli device wifi connect "ssid" password "password"
sudo aptitude install ubuntu-desktop
sudo aptitude install [whatever you think will get the GUI back]


openmpi installation fails locally and on remote server

Per the comment above, sudo ldconfig I read on that link after the steps provided by @NOrbert.


Systray applets disappeared in Gnome (flashback) classic desktop

I found the solution here:

dconf reset -f /org/gnome/gnome-panel/
killall gnome-panel

Which did the trick.


In order to fix packages, and install unmet dependencies, you can download the Ubuntu Software Install from https://packages.ubuntu.com/xenial/software-center. Before you downlaod this, try:
sudo dpkg --configure -a

and
sudo apt-get -f install

This is cited from How to fix dpkg error [2]?.
There may be a better explanation on there for you. I hope this helps.


Open up a terminal and type

apt-get --purge remove wine

This may not do anything but it should remove any parts of wine that may have been incorrectly installed.

Then to install wine type

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update && sudo apt-get install wine1.5


According to the Wiki page for Unity2D it's architecture is very close to Unity and shares all the same backend components so the documentation for Unity would be relative.

The Unity2D version's only difference is it uses Qt/QML for the UI portion while utilizing the existing Unity core components for indicators, places etc.

Having said all that there is currently no documentation for Unity and is filed as a bug report.

There is a useful list of keyboard and mouse shortcuts here What are Unity's keyboard and mouse shortcuts?


Strange, worked for me.

Right click Parcellite icon (for running program) > choose Preferences

or press <Ctrl><Alt>P, which should be default key combo for Options > choose Preferences

Go to Keyboard shortcuts tab
put Insert instead of <Ctrl><Alt>H
Enjoy.

Just tested.


Can I use USB tethering to update during installation?

and I connect USB cable as net cable(USB tethering) will it work

Generally: yes. USB tethering depends on the ability of the phone to connect to the internet.

USB tethering you can test it with the live session: set it up, open a browser and an internet page. When you see the page it will also be available for updates.

  or it will require some drivers to install.

No. The part that is used for this is USB and USB uses generic drivers.

  While installing Ubuntu if I tick an option stating "download updates while installing"

Mind that it as a slow and a probably untested method. If the connection drops so does your install. As there is no reason to download updates while installing why would you want to tick it? You can also do it afterwards when the system is installed or at any moment you do have a cable or wireless connection to the internet.


Multi-user remote desktop from windows to linux machine

You probably want to look into xrdp. You can install it with:
sudo apt install xrdp
You might want to do some configuration afterwards, for example hook it up to a specific desktop environment such as xfce. Google is your friend here, for example: https://www.hiroom2.com/2018/05/07/ubuntu-1804-xrdp-xfce-en/
You can directly connect to the xrdp server with the "Remote desktop connection" tool that ships with Windows itself.
Small addition: if you want to have hardware 3D acceleration in these remote sessions, you will have to combine xrdp with VirtualGL. This can get fairly complex though, so only go there if you really need it.


What's the difference between getting graphics drivers from the new ppa vs from Additional Drivers?

from the new PPA you get more updated, easer to install Drivers. and be sure you won't break your system, :D


Disabling/removing volume notification in Ubuntu 12.04?

The volume notification from your screenshot is generated by the media-keys plugin to gnome-settings-daemon. Unfortunately, after browsing through the code for a bit, it doesn't appear that there is a way to disable the OSD without breaking the functionality for the keys (without of course editing the code and recompiling, which is of course a viable option).

However, I did notice that it is suppressed when the Ubuntu notifications are enabled. That doesn't immediately help us of course, because you wanted to and have removed notify-osd. But I came up with a sort of silly solution. Instead, we create our own simple notification daemon which says it supports the volume messages, and then silently eats all notifications. The code:

from __future__ import print_function

import dbus
import dbus.service
import dbus.mainloop.glib

from gi.repository import GObject

SERVICE_NAME = "org.freedesktop.Notifications"
SERVICE_PATH = "/org/freedesktop/Notifications"

class Notifications(dbus.service.Object):
  @dbus.service.method(SERVICE_NAME,
      in_signature="susssasa{sv}i", out_signature="u")
  def Notify(self, app_name, id, icon, summary, body, actions, hints, timeout):
    print(app_name, summary, body)
    return 1

  @dbus.service.method(SERVICE_NAME,
      in_signature="u", out_signature="")
  def CloseNotification(self, id):
    pass

  @dbus.service.method(SERVICE_NAME,
      in_signature="", out_signature="as")
  def GetCapabilities(self):
    return ["x-canonical-private-synchronous"]

  @dbus.service.method(SERVICE_NAME,
      in_signature="", out_signature="ssss")
  def GetServerInformation(self):
    return ("empty", "empty", "empty", "empty")

if __name__ == "__main__":
  dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)

  session_bus = dbus.SessionBus()
  name = dbus.service.BusName(SERVICE_NAME)
  path = Notifications(session_bus, SERVICE_PATH)

  mainloop = GObject.MainLoop()
  mainloop.run()

You can of course comment out the print function in the Notify method, I just thought it would be nice to include some output so you could see it is working. GetCapabilities is where the magic happens, gnome-settings-daemon thinks we support it so it doesn't use its own OSD.


How do I install the proprietary AMD R9 390 drivers in Ubuntu 14.04 if the GUI option in 'Additional Drivers' fails to do so

First you have to install Ubuntu and after having finished it, boot into the installed system. Now you can install the AMD drivers from the Additional Drivers tab. Alternatively you can install the proprietary drivers by using the terminal, open a terminal and execute the following commands:

sudo apt-get update
sudo apt-get install fglrx
sudo reboot

Update addressing your comment that the open source drivers prevent you from installing:

When booting from the installation media, select Try Ubuntu without installing, press the E key and add radeon.modeset=0 at the end of the linux line ... press F10 to boot. Install Ubuntu.

Reboot - select the Ubuntu menu entry, press the E key and add radeon.modeset=0 at the end of the linux line ... press F10 to boot. Install the proprietary AMD drivers as described before.

Important : Put a Space between the last character of the linux line and radeon.modeset=0.
After the proprietary AMD drivers are installed, adding the boot parameter is not necessary.

Note: fglrx will not be available in the repositories of Ubuntu 16.04 LTS, which will be released in a few days, so when you want to upgrade you may want to consider not to install these drivers. Ubuntu 16.04 most probably will offer the new amdgpu (replacement) drivers in the repositories.

As a workaround you can can deactivate the radeon open source drivers by adding the parameter to the /etc/default/grub file, so that the GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" line reads -> GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.modeset=0". Save these changes you have made and update GRUB afterwards - open a terminal and execute: sudo update-grub.


How to set a default volume? Ubuntu 16.04

As mentioned in this post, Set the volume to your desired level and then:

sudo alsactl store

This does what you want, system-wide.


How to uninstall Call of Duty Black Ops?

I would just burn your entire Wine config to the ground. It's easy and about as effective as you can make it. Note that this will delete any Wine apps you have installed, and any files you have stored in your Wine prefix.

From a terminal, just run:

rm ~/.wine

If deleting your wineprefix isn't an option, you could just delete the folder from ~/.wine/drive_c/Games, but there's no guarantee that this actually cleans up all of the files left behind by the "installer."

To get rid of any excess shortcuts, navigate to ~/.local/share/applications and delete anything that looks like it doesn't belong.

Also, just to be on the safe side, I'd run an antivirus check using clamav or similar on your entire drive, just to be sure you weren't infected. Linux can get viruses, still.


Controlling a loop and saving the output for each event

Make your script to look something like:

#!/bin/bash
time=$(date)
HOST=$(hostname)

if [ -n "$(lsusb | grep SiGma)" ];
then
    echo "SiGma connected at { $time }   Hosted by: $HOST" >> ~/sigma.log
else
    echo "SiGma disconnected at { $time }   Hosted by: $HOST" >> ~/sigma.log
fi

After follow this post or this post to autorun the script after you've plugged or unplugged an USB device. You will see the results in~/sigma.log file when an USB device having the "SiGma" string in the short plaintext description will be plugged or unplugged.


How can I change the default Export As file path in Inkscape?

The export path is stored in your SVGs. Not only that, when you launch Inkscape, it opens one of the bundled empty 'template' SVGs. You can edit the template to override the default export path.

For now I'm assuming your Inkscape opens the default template and not one of the many internationalized versions.

Make a copy of the bundled template (you may need to mkdir some):

cp /usr/share/inkscape/templates/default.svg ~/.config/inkscape/templates/default.svg

Edit with your favorite editor:

nano ~/.config/inkscape/templates/default.svg

Add a new attribute (inkscape:export-filename) to the top-level SVG tag. e.g:

<svg
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:cc="http://web.resource.org/cc/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   inkscape:export-filename="/your/desired/absolute/path/"
   width="210mm"
   height="297mm"
   viewBox="0 0 210 297">
  <defs />
  <sodipodi:namedview


How do I enable SLI on an Alienware m9750?

Try changing mode of file from read-only to read and write:

sudo chmod +rw xorg.conf

and then after editing you can make it read-only:

sudo chmod -w xorg.conf


How do I remove an incomplete or broken snap installation of nextcloud on a Raspberry Pi?

The snap command is actually made up of two components, server and client. You're interacting with the client. When you cancelled the install operation on the client side that's the only place you cancelled it-- the client. So it stopped showing you that it was installing, but it was still installing (this is a bug). (Update: This bug was fixed in snapd v2.20.1.)

On the server side, all of this stuff is happening in "changes." You can read more about them here, but for your purposes, you want to just abort this specific change. To do that, run:

$ snap changes
<snip>
203  Doing   2016-06-24T12:17:45Z  -  Install "nextcloud" snap

Note the ID, 203, and the fact that it's "Doing" it right now. To abort that operation, you use the change ID:

$ sudo snap abort 203

And the change should stop. However, I must say that the fact that the change froze partway through does not bode well for your ability to abort it. If it doesn't work, perhaps try rebooting. If that still doesn't seem to have fixed it and you're okay losing all your snaps and their data, you can completely reset the snapd state with this script.


Restore EFI from Windows after Windows 10 upgade broke boot list?

Assuming that your Ubuntu installation is intact (not a safe assumption), you should be able to get up and running again as follows:

Download the USB flash drive or CD-R version of my rEFInd boot manager.
Prepare a medium from the downloaded files.
If necessary, disable Secure Boot. (There are ways to do this with Secure Boot active, but they require adding more steps.)
Boot to the rEFInd medium. It should present you with options to boot both Windows and Ubuntu.
Highlight an Ubuntu option and hit the Enter key to launch it. (Caveat: If you have a separate /boot partition, you'll have to hit F2 or Insert twice, rather than Enter. This will open up a text editor in which you must add a root={something} option, where {something} is your root [/] filesystem, such as /dev/mapper/ubuntu or /dev/sda6.)
Once Ubuntu appears, you can either:

Re-install GRUB, probably by typing sudo grub-install at a command prompt.
Install rEFInd to the hard disk by installing the Debian package or PPA, as described in the rEFInd documentation.

If you disabled Secure Boot, you should be able to re-enable it at this point, although you might need to jump through some extra hoops if you replace GRUB with rEFInd, as described in the rEFInd Secure Boot documentation.

If you go through this process and install GRUB at the very end, the result should be very similar to using Boot Repair; it's just that the steps to get there are different. Either way, if Windows has deleted your grubx64.efi file (and related files on the ESP), then those file(s) must be restored.

Getting back to the first word of this answer, though, checking the current state of the Ubuntu installation may be in order. To be sure, the procedure I've just outlined will fail miserably at step #4 if Ubuntu is missing -- rEFInd will show no Ubuntu entries (or possibly a GRUB entry that will ultimately fail). Furthermore, it's possible that everything remains installed, but your boot order has simply changed. You might think that GRUB has been deleted if you're looking on the wrong partition. Ubuntu sometimes installs GRUB to one partition even though Windows uses another one for its boot loader, so such confusion can occur pretty easily. In this scenario, it would be more efficient (but not necessarily more effective) to use efibootmgr in Linux to adjust the boot order. For all of these reasons, running the Boot Info Script and pasting a link to the RESULTS.txt file that it generates (posted on a pastebin site) may be worthwhile.


Acer C720P Touchpad and Touchscreen are not working

The linux-3.13 kernel in Ubuntu 14.04 does not have drivers for the C720P touchpad and touchscreen. You will need to install linux-3.16.7-ckt4 or later. You can upgrade the kernel by following these instructions.


Distribution upgrade from 8.04 not working

Ubuntu tries to support upgrading an unsupported release if the release you're upgrading to is supported, and furthermore Ubuntu 8.04 LTS has some support because the Server version is still supported (without a GUI or any community-maintained applications).

You should upgrade to the subsequent LTS release (10.04 LTS) rather than the very next non-LTS release. Ubuntu 10.04 LTS is still supported, whereas Ubuntu 8.10 has not been supported for a very long time.


Just download the zipped binaries, unzip it and run the bin/antlrworks2 shell script.


Create GUID partition table (GPT) during Ubuntu Server install

Test this:

You switch to a text console via Alt + F2.

Try to create a partition start GNU parted as follows:

sudo -i
parted /dev/sda

Output:

GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)

Creates a new GPT disklabel i.e. partition table:

mklabel gpt

Sample outputs:

Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes

Next, set the default unit to TB, enter:

unit TB

To create a 2TB partition size, enter:

mkpart primary 0.00TB 2.00TB

To print the current partitions, enter:

print

Sample outputs:

Model: ATA ST33000651AS (scsi)
Disk /dev/sda: 2.00TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system  Name     Flags
 1      0.00TB  2.00TB  2.00TB  ext4         primary

Quit and save the changes, enter:

quit

Use the mkfs.ext4 command to format the file system, enter:

mkfs.ext4 /dev/sda1


In Ubuntu 18.04 and newer, Python3 is installed by default, Python2 is not.The command python refers ONLY to Python2. Use the command python3 for Py3. Avoid mixing them up.

When using pip, it's the same: pip uses Python 2, pip3 uses Python 3.

Make sure you have both versions of Pip installed.

    sudo apt install python-pip      // Python 2 example
    sudo apt install python3-pip     // See the difference?

List the Python 2 (pip) packages that you have installed

pip freeze

Install the Python 3 versions

pip3 install package another_package yet_another_package

Uninstall the Python 2 versions

pip uninstall package another_package yet_another_package

Using Pip won't affect debs or other kinds of packages. If you had Python 2 deb packages installed, then you still have them installed.


VS Code ON ubuntu 16.04 not showing the right launcher icon after installation

Based on VS Code developers on github we can solve this by changing the path to the right icon like so:

sudo nano /usr/share/applications/code.desktop

And change the Icon link to :

Icon=/usr/share/pixmaps/code.png

It should Look like so:

[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/share/code/code --unity-launch %U
Icon=/usr/share/pixmaps/code.png
Type=Application
StartupNotify=true
StartupWMClass=Code
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;
Actions=new-window;
Keywords=vscode;

X-Desktop-File-Install-Version=0.22

[Desktop Action new-window]
Name=New Window
Name[de]=Neues Fenster


How can I actually adjust the brightness of my display?

Try changing it with xrandr
xrandr --output <display> --brightness <value between 0 and 1>

If you are unsure about the display name just press tab once you get to it.
For example I would use:
xrandr --output eDP-1-1 --brightness .5

You can try to use xbacklight
Or you could try the application brightness-controller .
See the Github page or install with
sudo add-apt-repository ppa:apandada1/brightness-controller
sudo apt update
sudo apt install brightness-controller


qt4-x11

The coming Precise Pagoling is having the Qt 4.8.1, at the moment. The PP will be released: https://wiki.ubuntu.com/PrecisePangolin/ReleaseSchedule -> April 26th.

Backported

The Kubuntu developers ( http://www.kubuntu.org/ )have backported the Qt 4.8 to the Oneiric Ocelot: https://launchpad.net/~kubuntu-ppa/+archive/backports .

PPA

From the Personal Package Archives for Ubuntu: https://launchpad.net/ubuntu/+ppas?name_filter=qt4-x11

Earlier

qt4-x11 4.4.7.0 in Lucid


When in bridged mode, for network purposes the virtual machine behaves exactly as if it were another physical machine on the network. So, in order to connect it to your office wifi, you need to ask your management about how to connect a new machine to it (depending on their policies, it may not even be possible).


Connect to the internet by Wi-Fi and run in a terminal

sudo apt install r8168-dkms

then reboot.

This will install the Realtek driver for this new revision 0a


NS2 tracegraph installation in Ubuntu 16.04

"tracegraph202linux" http://www.4shared.com/archive/z_iw9icn/tracegraph202linuxtar.html
mglinstaller.gz https://drive.google.com/file/d/0B7S255p3kFXNZV9fQnpIbm1aYU0/view?usp=sharing

tar xvf tracegraph202linux.tar.gz
cp mglinstaller.gz tracegraph202/
cd tracegraph202/
gunzip mglinstaller.gz
./mglinstaller

export LD_LIBRARY_PATH=./bin/glnx86 && ./trgraph

... and the tracegraph GUI will open.


In your ubuntu system, give an ip address to br0 in the same network range as Computer A & Computer B
lets say:

sudo ifconfig br0 192.168.10.5/24

the below article would be more helpful for further debugging:
https://help.ubuntu.com/community/NetworkConnectionBridge

Hope this helps.. cheers


You're probably running into a graphics issue. If you press E to edit you will see:

then press F6 and select nomodeset. This will allow you to continue to the next screen and finish the installation.

After that, you will probably have to update your graphics drivers.  If you would run into problems there, just ask a question and have your graphics hardware details ready.


What is the difference between themes stored in "/usr/share/themes" and "~/.themes"?

The difference is that themes installed in /usr/share/themes are global, but the ones in ~/.themes are available only to the current user.


Enabling window switcher in Ubuntu Budgie 17.04

Not literally an answer to your textual question, but an answer to what you refer to in the image:
Window Previews
In the meantime, Ubuntu Budgie got his own Window Previews (17.04 >):

Usage is simple: after adding the applet to the panel, simply

press Alt+Tab to get an overview of all windows (on current workspace), or
Super+Tab to get an overview of all windows of the currently active window's application.

Simply Tab will subsequently browse through the overview.
Installation
...is best done from Budgie Welcome > Install Software > Budgie Applets


That command is copying an ar archive from

out/native/obj.target/tools/gyp/libv8_libplatform.a

to

/tmp/v8-install/lib/libv8_libplatform.a

Here's an explanation:

echo -e "..." prints on standard output the string .... Every \n is replaced with a new line.
The | (pipe) operator sends the output from echo to ar -M.
ar is an archive utility (similar to tar or zip). The option -M is used to read commands from the standard input.
sudo is used to run ar as root.

That command is equivalent to running sudo ar -M and manually typing these lines:

create /tmp/v8-install/lib/libv8_libplatform.a
addlib out/native/obj.target/tools/gyp/libv8_libplatform.a
save
end

create (unsurprising) creates a new archive.
addlib copies all the contents of an archive to the newly created archive.
save and end are self-explanatory.

If you want to learn more, check out the documentation for AR.


Do I need mkfs.ntfs for making a windows 10 bootable device?

What exactly is mkfs.ntfs meant to do?

NTFS is a file system, the file system used by Windows. A file system helps you keep track of your data, to create directory trees and files.

fdisk creates partitions, containers of file systems. So you need to create a file system in the partition. Many tools can help you do it, but you can also use crude tools and do each step separately, which helps understanding what you are doing, and mkfs.ntfs can create an NTFS file system.

I conclude that you want to create a USB boot drive, that can install Windows 10 into an internal drive. You can use a tool for it or you can 'do it yourself'.

Use the tool woeusb according to the following link answering another question at AskUbuntu,

WoeUSB Error Code 256 with NTFS formatted USB

In this case you need not create any NTFS file system yourself, woeusb will do it for you.
Do it yourself according to the following link to an Ubuntu help page,

help.ubuntu.com/community/Installation/iso2usb/diy/windows-installer-for-big-files

In this case you need two partitions, one with a FAT file system and one with NTFS in order to get a USB drive that is bootable in most computers and with most Windows 10 versions.

Some conputers will boot directly from NTFS (so you need no FAT32).
Some Windows 10 versions will be happy with only a FAT32 file system (if there is no file exceeding the size limit 4 GiB of FAT32).

If you want to boot only in UEFI mode, you need no bootloader in BIOS mode, and furthermore, if your computer can boot from an NTFS partition, things will be really easy.

You can simply extract the content from the Windows 10 iso file into a partition with the NTFS file system in the USB pendrive.


Ubuntu Live USB doesn't boot on Dell Dell Inspiron 17r

I was able to find this amazing blog post that gave instructions on how to boot correctly from the USB. You can find it here.


ACPI startup error on ubuntu 11.10 but worked on 11.04

Boot from a live medium and follow the instructions here to install boot-repair. Then go here and follow the instructions to run boot-repair, using the "Advanced options" section of that article to help you automatically add acpi=off to the default boot options.


Launches the audio player whenever trying to open any directory

Been answered before ...happened to me to, here is answer
http://ubuntuforums.org/showthread.php?p=9520970#post9520970


Short answer:
No.
You can however use rtcwake. With rtcwake, you can wake up the computer, set it up to run commands and scripts afterwards etc.
Options include both waking up at an absolute time, as well as waking up at a specific time span from now:
-s seconds | --seconds seconds
    Sets the wakeup time to seconds in future from now.
-t time_t | --time time_t
    Sets the wakeup time to the absolute time time_t. time_t is the time in seconds since 1970-01-01, 00:00 UTC. Use the

An example of how rtcwake can be used is in this answer.
See also, as always, man rtcwake


Dell laptop USB 3.0 external hard drive boot

If you can't even see the drive when plugged in USB3 (in bios), then the bios simply can't trigger a boot from that port.

You can try two things:

Set up a grub on your hard drive, and boot to it. Hopefully, GRUB can now read drives in usb3. However, last time I tried, GRUB wouldn't detect my usb keyboard when plugged in USb3, so I would expect the same for using an external hard drive.
Find if there is a bios update for your motherboard. This probably easiest to do from a Windows partitions, as most updater will exist in a convenient .exe form. No guarantee support has been issued for your specific motherboard.

Hope it helps


Ubuntu 12.04.1 becomes unresponsive and frozen

One method (nearly as extreme as shutting off): altSysReqK  restarts the X Server (and kills your complete session of course)
If you are able to open a terminal session (ctrlaltT)
try pkill firefox or even pkill -9 firefox.
If you are able to open a virtual terminal (ctrlaltF1)
you can login there (you don't see any feedback when typing your password), and then you can use pkill like above.


System monitor network speed monitor not working for LAN but works for my Wi-fi

It could well be a bug. Other people seems to have this issue as well, as reported in this bug report: https://bugs.launchpad.net/ubuntu/+source/gnome-system-monitor/+bug/1310583.

A user reported it as fixed in kernel version 3.14rc1.


What is the best way to start developing ubuntu touch apps?

Please note that your question is subjective. Therefore this answer is subjective to me.
Level #1
Get yourself familiarized with QML.
Resources:

Watch Joseph's QML Video Training

Download the Qt5 Cadaques QML book

Level #1.5
At this level, you are ready to make a small application. You can get started with Ubuntu Development. Install the Ubuntu SDK , go though design guidelines and make a small application from QML or HTML5:

Official Ubuntu Developer Tutorials

Learn how to publish your application to the Click App Store from HERE.

Level #2
Just knowing QML is not always enough. It's time to learn QT along with C++
Resources:

C++ GUI Programming with QT Book
An Introduction to Design Patterns in C++ with Qt 4

Feel free to checkout other books on QT/C++/QML


How can I write text to a file in bash while keeping its previous contents?

In Bash, there are two ways of writing to a file (technically, there are a lot more, but for all intents and purposes for this answer, there are two):

First off is the > operator, as you're using in this line:

echo Course Attendees > list

The > operator will overwrite anything existing in the file with the new contents of the file. In effect, it deletes the file, and creates a new one with the same name.

Secondly is the >> operator, as used here:

echo $name >> list

This will append lines to an existing file, or create a new one if it doesn't exist.

When you run your script, you're always overwriting your course list with the "Course Attendees" header, causing this error. Alter your program to only append lines if the "Course Attendees" header is present. My personal suggestion would be to check if the file exists. If it does, use only the append operation. Otherwise, give it the header and create it.

Or, more elegantly, only run echo Course Attendees > list if the file does not exist. See this SO answer for more info as to how to run a check like this.


How do I get past the libc dependency issues on 12.04

Problem is appearing because you have added Debian repository( i.e http://ftp.us.debian.org/debian/...) in your source list.

So first remove it from  /etc/apt/sources.list

Then execute following commands in terminal

sudo apt-get clean
sudo apt-get update
sudo apt-get install -f

It then should solve your problem.


My question is how can i install flash player without changing the admin password

If your account is part of the sudoers group and allowed to switch to the root user account you might be able to get root permissions with sudo su -without having to know or enter the root account's password.


Move WUBI installation of Ubuntu to a different partition in Windows

Make backup copy of all important data in Ubuntu into an external device. If the following does not work, you may lose all your data.
Copy the root.disk file from D:\Ubuntu\Disks to a safe place.
You may put it in your "My Documents" for the time being.
Uninstall Ubuntu using Control Panel.
Reboot.
Install Ubuntu in C: using WUBI. Make sure when installing to C: that you choose the same Disk Size as the Disk you already have. This prevents errors.
Replace C:\Ubuntu\Disks\root.disk with the root.disk you had
copied before.
Reboot.

One more step

See https://askubuntu.com/a/55029/14916 for details (Thanks to @bcbc for pointing out this part.) The following is taken from that answer:

e.g. if D: is /dev/sda2 and C: is /dev/sda1, then you'd hit 'e' on the first entry of the grub menu and change:

set root=(hd0,2) becomes set root=(hd0,1)

Delete the line - search --no-floppy xxx (as this overrides the previous set root command using the old UUID)

linux /boot/vmlinuz-xxxx root=/dev/sda2 ... becomes linux /boot/vmlinuz-xxx root=/dev/sda1 ...

This is a one-time override - hit Ctrl+X to boot, and make sure you run sudo update-grub after booting to fix the grub.cfg menu so it works the next time.

PS: There may be some variations. (hd0,2) could be (hd0, msdos2) or (/dev/sda, msdos2) depending on the version of Grub. Also root=/dev/sda2 may be root=UUID=xxxxx


How to create a mountable ISO image file

You could have a look to the application called mondorescue

This is a recovery tools that will allow you to create bootable CD or DVD images that can be reused to reinstall your system even if you insert a new hard disk into it.
The software consists intot two main executable mondoarchive and mondorestore.

Options are foreseen in the tools to

split the image into multiple files if the total size exceed the size of a CD or DVD,
exclude some directories
specify different destination media like network share, USB, ...

Of course, read carefully the documentation and test because some special disk layout may not be able to be archived using this tools.

During the restore of such an image, you can be prompted to enter dialog where you can alter the disk partitions layout, in case you do the restoration on a system where the disk is smaller (of course it cannot be smaller that the total used size of the orginal system !)


Nvidia driver issues on Xubuntu 18.04, can't reach login screen

I used Xubuntu 16.04 and it worked good, just one time issues with NVIDIA drivers, but since then i didn't have issues. Well with coming of Xubuntu 18.04 i had no cuda support in Blender. I though it was a problem with Quadro GPUs... then i removed Quadro, got a new Gigabyte GTX 750 ti 4GB Ram, did a fresh reinstall and configured the drivers, but on rendering in Blender was running in Xeon CPU. Tried to install drivers from NVIDIA and setup failed in TTY1. I formatted again the machine, downloaded again NVIDIA drivers and still it failed. During these installations and tests, it i had several bugs.

Probably i will install old Xubuntu 16.04 again. I think there is something wrong on new LTS versions of Ubuntu family and between loosing all this time trying to make it work... instead of install and get back to the work there is a huge difference. Of course this is not the kind of way i like to spend my time or getting other GPU cards hopping this or that might work.

I hope someone fix this soon.


How do I crop from the default image viewer?

Once the image is opened you can right click on it and choose to open with Shotwell Image Viewer. It will open up a new window where you can crop/edit the image and save it.
Once saved you can close the 2nd window and see the changes in the default image viewer.

Alternatively you can set Shotwell Image Viewer to be your default image viewer.


Having trouble installing LogicalDoc Community--cannot unzip install file

I suggest you to try with version 7.7.1 of LogicalDOC Community
https://sourceforge.net/projects/logicaldoc/files/distribution/LogicalDOC%20CE%207.7/logicaldoc-community-installer-7.7.1.zip/download

get the zip with the installer
uncompress it
open a command shell and cd to that directory
launch the command: sudo su
launch the command: java -jar logicaldoc-installer.jar
proceed with the installation steps

Note: you need an Ubuntu with a Desktop (GUI), because that is a graphical installer. If you doesn't have one, add the parameter -console to the command

java -jar logicaldoc-installer.jar -console

See also the installation of LogicalDOC Enterprise on Ubuntu https://youtu.be/Al2Pi5e1wi0

Or else https://www.unixmen.com/setup-logicaldoc-ubuntu-15-04/


Try reformatting it with gparted. If it doesn't work, try to just wipe everything (including MBR) with

dd if=/dev/zero of=/dev/sdb

(making sure that your device is associated to sdb...)

usb-creator does not always work for me... you can alternatively try with unetbootin or just

dd if=/path/to/your/iso  of=/dev/sdb


Execute script before specific wireless disconnect?

Of course you understand that your system can't figure out when will a wireless connection drop unless you press a button that tells it.

From what I have seen you just want to get rid of the mount when the network goes down, for that you can use

  umount -l /mnt/folder

Its considered dangerous by many since it will unmount a file system that might still be in use but since your network is already down I don't see much of a problem.


How install Nvidia drivers in Ubuntu 13.04?

There is a bug with nvidia on the 3.8.0-19-generic kernel, a workaround is to use the mainline kernel

Here is a easy installer/updater for the mainline kernel
https://github.com/GM-Script-Writer-62850/Ubuntu-Mainline-Kernel-Updater
then the nvidia driver should work

The bug results in some times not booting and broken HDMI audio


rc.local was set to immutable by the hacker.

Used chattr to change the file attributes and I was able to edit it.

As for the permission denied errors upon login, the hacker inserted lines into the motd scripts to delete log files to hide any trace of his yam program. removing those lines resolved the problem.

I hope that helps anyone with a similar problem.
I recommend you edit your ssh/iptables to allow only certain IPs to log in via ssh to avoid such problem, I learned the hard way.


Should I use wubi ubuntu 12.04 for my academic studies like writing docs, programming, etc?

You should have no problems with writing docs or programs in an Ubuntu Wubi installation. Als always you should frequently backup your important files on an external storage. This can easily be done when you have booted Ubuntu.

To share files with Windows however it may be better to have a shared NTFS formatted data directory that can easily be accessed from both operating systems.

Still it is also possible to mount your Wubi file container from Windows located in C:\ubuntu\disks\ to access data but I would only recommend to do that with read access. To do so you need to install ext2read in Windows.

Note that for hibernating, and file encryption a dual boot solution may be better. Please also keep in mind that if your Windows file system gets corrupted (which could also be from malware running in Windows) you may lose your Ubuntu Wubi installation as well.

See also: What's the difference between Wubi and a regular "alongside Windows" installation?


hash of lubuntu-14.04.1- desktop-amd64.iso

The CD images repository also includes a file with all the hashes. The MD5SUMS file contains:

d3181e58212e62b6656c8cf5f9b922a7 *lubuntu-14.04-alternate-amd64+mac.iso
dc6d7ee644b825cae63f59c91d707852 *lubuntu-14.04-alternate-amd64.iso
35a41aa73bfe3c47a57d49a5182e9891 *lubuntu-14.04-alternate-i386.iso
4d9e511daf41dbc44f4506958f0e70f9 *lubuntu-14.04-alternate-powerpc.iso
2cfdcc5162f70515f4b59c80a142e36b *lubuntu-14.04-desktop-amd64+mac.iso
c138cedb0f72cbd115c55e3f14a98f5e *lubuntu-14.04-desktop-amd64.iso
b0d1c58c8515ab40382d01f59655ba85 *lubuntu-14.04-desktop-i386.iso
2ca3784e4575214c13c85effca9dd4ae *lubuntu-14.04-desktop-powerpc.iso
2bf5abe48007c247ec214ec4e7681558 *lubuntu-14.04.1-alternate-amd64+mac.iso
a5f97cd6a9f171c70cf816de8728f13b *lubuntu-14.04.1-alternate-amd64.iso
a7c153f1101fb8a181ccda01a448ffd1 *lubuntu-14.04.1-alternate-i386.iso
69d8c99a4724ddb281c9076fd9c8d771 *lubuntu-14.04.1-alternate-powerpc.iso
ebb98a27efd717fee62077e2d492c704 *lubuntu-14.04.1-desktop-amd64+mac.iso
4a6555869fbbe11fa6a17f83be046455 *lubuntu-14.04.1-desktop-amd64.iso
281fc36d625f7ca0704297b3b811fa66 *lubuntu-14.04.1-desktop-i386.iso
0af2df006d5220832f5a713bd9ba9d82 *lubuntu-14.04.1-desktop-powerpc.iso

So the MD5 hash of the 14.04.1 amd64 desktop image is 4a6555869fbbe11fa6a17f83be046455. This file is more reliable than the community help site, which has been known to be out-of-date before. There's also the SHA1SUMS file with SHA1 hashes.


"No executable specified." Ubuntu SDK Unity8

Try this:

Go to Tools > Options > Build & Run > Qt Versions.
Check if there is a version mentioned there.
If not, select Add... and choose /usr/lib/i386-linux-gnu/qt5/bin/qmake and try to build again.

Note: Please adjust the above path according to your installation, especially i386-linux-gnu, which might be something like amd64-linux-gnu if you're on a 64-bit system.


I gave up and installed a new version of Ubuntu. No more display problems. So it was an OS display code/driver issue.


Accessing one encrypted boot drive from another in 18.04

I found a solution, so I am posting it. I had not tried this solution so it might or might not have been possible when I posted the question above.

I plug in the extra external encrypted boot drive. Nothing shows on the left bar of the file manager, except the small boot partition. The big encrypted partition never shows. Here are the steps.

Step 1: Launch Disks (from Dash for example)
Step 2: Select the extra encrypted boot drive
Step 3: Select the locked partition on the right, click the unlock button
Step 4: Enter the password
Note: It still does not show up on the
left side bar of the file manager (where other USB drives show)
Step 5: On the left side bar of the file manager, select "Other Locations"
Step 6: Under "On This Computer" you should see the encrypted
partition of the extra drive, open it

That's it. It works.


If you still have Segmentation fault (core dumped) message when trying to start uGet,
a quick fix is

backup and delete uGet folder in .config/uGet.
Then restart uGet

and  it will be working again.
Most likely issue is with DownloadList.xml (for some  reason a error there dump uget core).
However by doing so You will lose all your categories, settings and list of downloaded files.


How to get the menu to display in the panel rather than in individual windows in Xfce?

Run this command to install some packages:

sudo apt install xfce4-topmenu-plugin libtopmenu-client-gtk2-0 libtopmenu-server-gtk2-0 libtopmenu-client-gtk3-0 libtopmenu-server-gtk3-0 topmenu-gtk2 topmenu-gtk3

Create a file by using this command:

pkexec mousepad /etc/profile.d/topmenu-gtk.sh

In the text editor that appears, paste the following:

#!/bin/sh
export GTK_MODULES=$GTK_MODULES:topmenu-gtk-module

Save the document. Log out and in from the system. Right click on the Xfce panel and select Panel, then Add new items. From the list, select "TopMenu". Done!

Attribution: Everything is from this tutorial, which features instructions for MATE and Lubuntu too.


How to install Estru3D - Structural Analysis Software?

Workaround:

Uninstall the newest version of Gambas3:
sudo apt-get remove --purge gambas3

Install Gdebi:
sudo apt-get install gdebi

Download these files:
gambas3-gb-qt4_3.8.4-28.47-ubuntu14.04.1_amd64.deb
gambas3-gb-qt4-webkit_3.8.4-28.47-ubuntu14.04.1_amd64.deb
(download)

Install them by right-click on it and choose "Open with Gdebi".

Install Estru3d by right-click on it and choose "Open with Gdebi".

On first run Estru3d might display an error message with some language files/folder missing. This happens if your Ubuntu interface uses other language than en or es. Just make a copy of the en folder (and all its' contents) and rename it with the language name of your Ubuntu (e.g. fr, ge, etc). And, of course, accept the GPL licence. This will make it start, but the interface language will still be es (spanish).
Any help with an english translation is most welcomed.


Wine gets its fonts from four places:

The standard system fonts at /usr/share/fonts.  You can add fonts here by installing font packages from Software Center, if they're available. Avoid manually copying files here.
Wine's private /usr/share/wine/fonts folder. You shouldn't add fonts here, but if you see a font in Wine and not in the system - it's probably here. Examples of these fonts include Wine's private marlett, symbol, and tahoma fonts, which are needed for application compatibility but otherwise aren't the best.
The ~/.fonts folder in your Home directory. This is where you should manually copy self-installed fonts, either downloaded from the Internet or copied from a Windows install.
The equivalent of the C:\Windows\Fonts folder within the current Wine prefix.   Unless you specified the WINEPREFIX environment variable when running Wine, This will generally be located in ~/.wine/drive_c/Windows/fonts.

In the case of conflicts (eg you install the real Tahoma font into your home directory), Wine is smart enough about it and uses the manually-installed ones.


What you have is known as fakeraid as it doesn't have any hardware acceleration at all, it's just a gimmick that moves simple RAID creation out of the operating system and into the firmware. It's only real benefit is sharing the RAID between multiple operating systems, but that also means you're trusting multiple operating systems to update the metadata consistently and not barf on each other. I try to avoid it like the plague.

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

Should answer all your questions. The original intend supporting this was to help new users migrate from Windows without having to nuke their hard drives. However once you get established, it's probably a good idea to migrate to a more robust raid driven by mdadm or even a HW RAID.

So assuming dmraid is installed, what happens after it scans your disks? Something should show up in /dev/mapper. The intel metadata format is the defacto standard for this, so it should "just work", unless that is the drives are already in use by the operating system.
Be sure to reboot after installing dmraid, backing up critical files before hand is also a good idea.


How do I download Ubuntu using BitTorrent on Windows?

Canonical provides detailed instructions on how to use BitTorrent as well as how to obtain their official torrents for their ISO images here. Below is a brief summary on how to obtain a copy of those torrents to download.

Where should I go to download an Ubuntu torrent?

The torrent files needed for downloading an Ubuntu ISO are made available by Canonical as an alternative to downloading the entire ISO directly.

From the Ubuntu homepage, select the Download tab.
Next, scroll down to the bottom of the page and select the link:

Take a look at a full list of our previous versions and alternative downloads
On this page, you will see the links for the currently available Ubuntu torrents.

If you would prefer, you can select a local mirror that is geographically closer to your region to obtain the torrent.

Direct links to all ISO torrents:

These will open directly in your torrent client (uTorrent, Vuze, etc.)

Ubuntu 12.04.2 Precise Pangolin

Desktop

32-bit
64-bit

Alternate (text-based installer)

32-bit
64-bit

Server

32-bit
64-bit

Ubuntu 12.10 Quantal Quetzal

Desktop

32-bit
64-bit

Server

32-bit
64-bit

Ubuntu 13.04 Raring Ringtail

Desktop

32-bit
64-bit

Server

32-bit
64-bit

Source: http://www.ubuntu.com/download/desktop/alternative-downloads

See also: Previous AU Q&A

What programs should I use to download torrent files on Windows?

uTorrent
Vuze
BitTornado
BitComet

What is the bare minimum I need to know about BitTorrent for this use-case?

After installing your preferred BitTorrent client, all one needs to do is download the torrent file from the one of the direct links mentioned above. Your browser should ask you what you want to do with the file. Instead of saving it, have your browser open the file with your newly installed torrent client.

See also: A Beginner's Guide to BitTorrent


How can I partition a flash drive after wiping it? "you may need to update fstab"

Problem Solved. There was a drop-down button in the upper right-hand corner in Gparted that allowed the usb-drive to be displayed, so it could be partitioned. Worked like a charm.


stop web integration to unity in Ubuntu 13.10?

Install Unity tweak tool and then open it.. From there at Unity tab choose webapps . from there you can disable and enable it as you want.

hope that helps.


fingerprint-gui can not recognize my upek reader (147e:1002)

I have the same device in my System 76 Serval. fprint_demo, fingerprint-gui, fingerprint-identifier will only recognise my fingerprint reader when I run them with gksudo.

I suspect it needs a udev rule created for it in order to run properly.