Try it out.
This is the only real answer — there is enough variation in hardware specifics (even in a given model), and software changes too often, for any specific answer to remain valid long enough. Conversely, the many different components involved can cause many, different and unrelated, problems, so a post about what will happen with a specific device doesn't fit well with the Stack Exchange Question & Answer format:

You should only ask practical, answerable questions based on actual
problems that you face. Chatty, open-ended questions diminish the
usefulness of our site and push other questions off the front page.
Help: What types of questions should I avoid asking?

We can't handle open-ended questions about what problems you could face, but questions about specific problems are much better.

Live
You can make a bootable USB from the Ubuntu installation ISOs, and then try out a live session instead of installing. The live session doesn't make changes to your system by itself, so it's a safe way to test drive Ubuntu. However, even a successful run of the live session is not a certain indicator - there have been cases where the live session worked fine but the installed Ubuntu didn't.

As a minimal check, first see: What are the system requirements for each flavour of Ubuntu Desktop? and the list of Ubuntu certified devices. Certified devices might rely on proprietary drivers, and so may work best with the specific Ubuntu release for which they were certified.
If your system is underpowered, then see: How do I find out which version and derivative of Ubuntu is right for my hardware in terms of minimal system requirements? Pick a lightweight flavour like Lubuntu or Xubuntu and proceed. Hardware support is the same across flavours (same kernel, same repositories) but hardware requirements can differ.
You can try a normal release, or an LTS release: What's the difference between a Long Term Support Release and a Normal Release?

Now, proceed to the first few steps of: How do I install Ubuntu? You should see an option to "Try Ubuntu":

UEFI boot:

BIOS/UEFI legacy boot:

Once the live session starts, play around a bit with Ubuntu to see how much of your hardware works and how well it works. Try to narrow down any problems that you faced, and post individual questions with relevant details. Then we can help you with the specifics.

What follows is a set of links, both to posts here on Ask Ubuntu, and elsewhere, that can help you in your quest. I'll try to avoid passing judgement on any particular manufacturer, but instead try to link to canonical posts that's likely to be kept updated. The major tag for each section is also given next to heading, use them when asking questions. So, for example, a WiFi problem with a Qualcomm Atheros chip would be tagged networking wireless atheros and include the output of the wireless info script.
Common problem points
Hardware support can be hit and miss. It is helpful if you can lookup the exact hardware configuration of your system (i.e., not "3GB graphics" or "Killer WiFi", but "NVidia GTX 670MX" or "Qualcomm Atheros QCA6174 802.11ac" - the exact model number is important).

I have a hardware detection problem, what logs do I need to look into?
How can I find my hardware details?

Dual-boot dual-boot

How can I install Ubuntu without removing Windows?
You might have problems accessing the Windows partitions. See Unable to mount Windows (NTFS) filesystem due to hibernation

UEFI uefi
Recent releases of Ubuntu tend to play well with UEFI. See How do I install Ubuntu alongside a pre-installed Windows with UEFI?

Networking networking
WiFi wireless
Post a question with the information from My wireless/WiFi connection does not work. What information is needed to diagnose the issue?
Broadcom broadcom

Installing Broadcom Wireless Drivers
Kernel Wireless Wiki's list of supported devices (and for the legacy driver)
Release Notes - look for your device in the Release Notes

Qualcomm atheros

Kernel Wireless wiki's list of supported devices

Intel iwlwifi

Kernel Wireless wiki's list of supported devices
Intel's page on Linux* Support for Intel® Wireless Adapters

Ethernet ethernet

Is there any way to install Atheros e2400 drivers?

Graphics graphics

My computer boots to a black screen, what options do I have to fix it?

NVidia nvidia

How do I install the Nvidia drivers?
NVIDIA Unix Drivers - this page links to specific driver versions. Each version has a list of supported devices.

AMD amd-graphics

Ubuntu 14.04.5/16.04 and newer on AMD graphics
Which graphics cards are supported by the new AMDGPU driver in Ubuntu 16.04?
AMDGPU-PRO Release Notes (see section on product compatibility)

Intel intel-graphics

No version of Ubuntu can be installed with any Skylake 6th generation Intel processor (not really, it just needs a kernel version > 4.3 so a new enough Ubuntu should work out-of-the-box).

CPU cpu
Intel intel

Is the 64-Bit version of Ubuntu only compatible with AMD CPUs? (Spoiler: no.)
Possible missing frmware /lib/firmware/i915
System freezes completely with Intel Bay Trail (is fixed now in 20.04)

ARM arm
If you have an ARM device, these might be informative:

Can a Raspberry Pi run Ubuntu?
True Ubuntu on Chromebook ARM

Fingerprint reader fingerprint-reader

How do I install a fingerprint reader on Lenovo ThinkPad? (it's actually more general than just Thinkpads)
Driver for Validity Sensors Fingerprint scanner

Webcams webcam

Integrated webcam not detected after update to 14.04

Webcam (Ubuntu Community Wiki)

UVC driver homepage has a list of all officially supported webcam models by this one universal driver.

SSDs ssd

How to enable TRIM? (spoiler: you probably don't have to)

Touchpad touchpad

Synaptic touchpad on laptop not working
How do I make modprobe changes permanent? - if you keep having to run modprobe to activate your touchpad.

Sound sound

Ubuntu refuses to output audio via HDMI


How do I find my USB location when it doesn't show up on the side panel even though it is mounted?

If it is mounted, then in Ubuntu it will most likely have its mount point in the /media directory. It may be under a username there So try

ls /media/*

or

ls /media/<user>/*

If it is there, then you can put a link to it on your desktop with

ln -s /media/<disklocation> ~/Desktop


System hangs on shutdown if Windows network drive in fstab

This is a well known bug :
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/211631?comments=all

It's one of those thankfully-rare, but nonetheless embarrassing, high impact, over-two-years-old bugs that negatively impact Ubuntu's sheen.

It should only affect WIFI connections, but I don't see any detail about that in your question.  If you're experiencing this over a wired connection then something else is in play here.

Until Network Manager is fixed (it shuts down wifi connections too quickly - before any of the init scripts are triggered), the only feasible workaround I could find is to use AutoFS.

Paraphrased from http://www.howtoforge.com/accessing_windows_or_samba_shares_using_autofs

sudo apt-get install autofs

Create /etc/auto.cifs with these file contents :

#!/bin/bash
# $Id$
# This file must be executable to work! chmod 755!
key="$1"
# Note: create a cred file for each windows/Samba-Server in your network
#       which requires password authentification.  The file should contain
#       exactly two lines:
#          username=user
#          password=*****
#       Please don't use blank spaces to separate the equal sign from the
#       user account name or password.
credfile="/etc/auto.smb.$key"
# Note: Use cifs instead of smbfs:
mountopts="-fstype=cifs,file_mode=0644,dir_mode=0755,uid=user,gid=users"
smbclientopts=""
for P in /bin /sbin /usr/bin /usr/sbin
do
        if [ -x $P/smbclient ]
        then
                SMBCLIENT=$P/smbclient
                break
        fi
done
[ -x $SMBCLIENT ] || exit 1
if [ -e "$credfile" ]
then
        mountopts=$mountopts",credentials=$credfile"
        smbclientopts="-A "$credfile
else
        smbclientopts="-N"
fi
$SMBCLIENT $smbclientopts -gL $key 2>/dev/null \
   | awk -v key="$key" -v opts="$mountopts" -F'|' -- '
        BEGIN   { ORS=""; first=1 }
    /Disk/  { if (first) { print opts; first=0 };
          gsub(/ /, "\\ ", $2);
          sub(/\$/, "\\$", $2);
          print " \\\n\t /" $2, "://" key "/" $2 }
        END     { if (!first) print "\n"; else exit 1 }
        '

(edit the mountops line to reflect your real user name)

Make it exectuable with sudo chmod 755 /etc/auto.cifs

Then add this line to your /etc/auto.master, at the bottom :

/smb /etc/auto.cifs --timeout=60 --ghost

Finally, restart autofs with this line (or a reboot would work, of course) :

sudo service autofs restart

And you should then be able to open nautilus to /smb/server/share (or ls -l /smb/Server/Share)

Shutdown, suspend, hibernate should all be seamless.

If you use passwords to connect to your shares, you have to add another file in /etc/ for each server you connect to, with username and password specified.  Do a "man autofs" for more detail on that, but here's the gist :

You need one credentials file for each password-protected share that you're connecting to.  In your case, your server is called "Server", so create the relevant file with gksudo gedit /etc/auto.smb.Server.  Then put this into that file :

username=myusername
password=mypassword

(obviously editing the fields as required).

Then you'll need to make sure that this file is only readable by root with sudo chmod 600 /etc/auto.smb.Server.

Then restart autofs as above and try browsing /smb/Server - you should see a list of your shares.

If you connect using an IP address, you'll need to repeat this process for /etc/auto.smb.192.168.1.10 or whatever.


How to install Mozilla Firefox on kubuntu 12.04?

If you want to install software graphically in Kubuntu you need to use an application called Muon. You can also install packages from the command line by opening a terminal and typing, for the example related to your question, sudo apt-get install firefox. sudo tells the computer you want to do the following action with administrative privileges, apt-get is an application to install software and firefox is the name of the package you want to install. The terminal will ask for your password and, once you give it, apt-get will do the rest.


I managed to get it working: I had to do following changes in bios:

enable thunderbolt assistant
enable preboot
disable all thunderbold related security

after that my docking station of P52 works. But I'm using only USB ports (did not work before, works now), ethernet (same), and HDMI (worked even before). So it might have been related to that security, as I did not allow any of these devices, and out hdmi probably do not need authorization. Nevermind, it's working now.

but if someone have some hints how thunderbold device authorization (~security) works in linux, I'd be thankful for that.


Error in terminal for libinput despite removing it (Uubuntu 18.04)

deleted the last line in my .bashrc line:

 xinput --set-prop 11 'libinput Accel Speed' 0.2

Thanks guiverc and mostafa for the advice


Is there an application that can show memory usage in a similar manner to top?

The closest I could find is memtop, a Python script available here on Google Code.

Screenshot:

How to use memtop

It's a Python script, so simply do a sudo mv memtop-1.0.0.py /usr/bin/memtop.py and a chmod +x /path/to/memtop.py to make it executable
Default update period is 15 min; use switch -p 1 to make it 1 minute, etc. (can't go lower than that unless you modify the source)
Use -l N, where N is the number of processes you want to show, depending on the size of your terminal.
Use -m to show "more" information, i.e. the Swap/Page stats at the bottom of the screenshot.

The htop disguised as memtop option

If you don't use htop otherwise, it's pretty easy to set it up with the F2-setup option to look like memtop:

htop config is stored in ~/.config/htop/htoprc, so just delete htoprc to restore normal htop.


What does mean - in `netstat -tupn` output?

This means, that it is not connected, so there is no programm running behind the port and this means there is no PID (Process ID) for the programm.

The Port is open but not connected to any software. But a software is listening on the specific port, i.e. Apache2 on port 80 or SSH on port 22.


citrix workspace not working on ubuntu 20.04

Surprising, installing the tarball package works ! But debian package was giving the error .

Go to Citrix Workspace app 2006 for Linux
Scroll down and goto Tarball section
Download Citrix Workspace app for Linux (x86_64) package . This is for 64-bits system. If your system is 32-bits then download the package below this one (x86 version)
Create a empty folder and put the dowloaded tar.gz file there
Run tar xvfz file.tar.gz
You will see a file named setupwfc (something like this)
Run it as ./setupwfc
Follow the instruction
At last it will ask for usb package something . Just skip that
Now search citrix in dash
Now it should work


What programs can edit rich text fields in a PDF?

I found some leads - haven't used any of these myself:

Master PDF Editor for Linux seems the most promising
Install the latest version of the Adobe Reader in Ubuntu or wine
Adobe Reader for Linux hasn't been supported since 2013
pdftk seems to be more of a batch processing tool

Let me know if any of them work for you.

Also the PDF needs to support "rich text formatting" in form fields. Source


The problem in not that you don't have ctype.h because you need it to compile your program. In your case it depends on the way gdb is locating includes. Maybe you need to use "locate ctype.h" and set inside gdb the include-directory like:

set substitute-path /usr/src/include /mnt/include

please have a look here:https://sourceware.org/gdb/onlinedocs/gdb/Source-Path.html


Mount Multiple NFS Server Drives mount to single NFS client drive

Overview:

Let’s say we have three disks but you wish to share with NFS clients and may be such situation when you want to mount multiple drives to single drive,..

Solution:
Of course we can mount the disks on three separate mount points and export those. Or we can mount the three disks on three mount points inside the same directory and export the parent directory.

The problem with both solutions is you have to “balance” the data among the disks - and it will make navigating your TViX, WDTV or Popcorn more annoying. You could use RAID or LVM to handle all this for you. But. What if you already have data on the disks? What happens if one of the disks dies? With RAID0 or LVM your data is gone.

Luckily we have the best of both worlds: mhddfs

mhddfs is a FUSE plugin that combines data from several directories and present it in one directory. The only downside is that you do not know (or control) where a file is created.

Let’s say you combine /dir1, /dir2 and /dir3 under /virtual. Previously you had /dir1/my_content. This is now /virtual/my_content. If you write a file to /virtual/my_content it will not necessarily end up in /dir1/my_content. This also mean you can not predict what data is lost if you lose a disk.

The plugin is available in Ubuntu

$ sudo apt-get install mhddfs

Using it is pretty simple

$ sudo mkdir /export/hest
$ sudo mhddfs /dir1,dir2,dir3 /export/hest
[sudo] password for alj:
mhddfs: directory '/dir1' added to list
mhddfs: directory '/dir2' added to list
mhddfs: directory '/dir3' added to list
mhddfs: mount to: /export/hest
mhddfs: move size limit 4294967296 bytes

The “move size limit” deserves an explanation:

if free space size threshold if a drive has the free space less than the    threshold specified then another drive will be chosen while creating a new file. If all the drives have free space less than the threshold specified then a drive containing most free space will be chosen.

/dir1;/dir2;/dir3
                      589G  329G  260G  56% /export/hest

To mount the combined directory during boot, at this to /etc/fstab:

mhddfs#/dir1,/dir2,/dir3 /export/hest fuse defaults,allow_other 0 0

we can export the combined directory using NFS or Samba. If you export the combined directory using NFS you need to add the fsid option in /etc/exports

/export/hest 192.168.1.0/24(fsid=2,ro,sync,crossmnt,no_subtree_check,insecure)


How can I change my cursor to a .cur file cursor?

Install imagemagick -> sudo apt-get install imagemagick and convert the cursor to a .png file:

convert icon:file.cur file.png

Then use xcursorgen:

  xcursorgen [config-file] [output-file]

So you'll need to convert each png individually.


what is the difference between installing raid form bios and from disk utility in installing system?

Unless you have a very expensive hardware raid card, the raid functions offered by the bios are known as fakeraid because they are really software raid pretending to be hardware.  It is in fact, a bog standard AHCI sata controller with special software built into the bios and a special driver for Windows to perform raid in software.  As such, there is no performance advantage over pure software raid, which is what you get when you set it up with the Ubuntu installer or disk utility.  The only reason to use the fake raid is if you must dual boot with Windows, since Windows will not recognize Linux software raid.  Otherwise, it is not as well supported as plain software raid, and so should be avoided.


Yes, ACPI should be supported on the Inspiron 1525 and hibernate should be available as an option on the shutdown menu.  I don't own a 1525, but do own a variety of other similar Dells (1420, 1425, 1505) all of which have functioning (albeit sometimes buggy) hibernate.

It is possible the hibernate feature was disabled for the particular model due to bugs.  That's really the only reason I could imagine it to be missing.  For instance, it might be you have a proprietary driver loaded that can't do it.

If you're curious if ACPI is present at all, look in /proc/acpi.

If you want to check if hibernate works manually, the kernel command to enable it is:

echo -n 4 | sudo tee /proc/acpi/sleep

If that doesn't work then it's likely hibernate is either disabled or not supported.  Check the ubuntu kernel bug reports for your card.


It is easy. Just don't use the xpra version from the Ubuntu repos, it is out of date, has security holes and is missing the HTML5 client.


I can't click on things with my mouse anymore [Ubuntu 15, Ubuntu 16, Unity, Gnome]

I had a similar issue after upgrading from Ubuntu Gnome 15.10 to Ubuntu Gnome 16.04.  I was unable to click windows with my mouse pointer or select menu items after hitting the start key.

I found a guide on How do I install the Nvidia driver for a GeForce GT 630 by Corey Goldberg that worked flawlessly for me.  The downloads took a while, but my Gnome GUI is working much better know.

Good luck!


One way to narrow down the cause of your problem is to boot into a LiveCD/LiveUSB by selecting the "Try Ubuntu" option when booting from installation media.

If your audio is working on the LiveUSB, then this will indicate that the problem exists within your currently installed OS.

If the audio still is not working in the LiveUSB, it is possible that the problem is hardware related.  It is also still possible that the problem has to do with drivers.  ie: the drivers for your audio devices are not automatically configured and need additional set-up.  In this case, try to research or look for Linux drivers for your specific hardware device(s).


Can't Use Audio in One Application Because Another Has Taken Full Use of Sound Card

From the command line,

man lsof
sudo lsof +D /dev/snd

will list all the open files in /dev/snd, and which program has them open. See also man fuser.


sudo nano /etc/crontab

... will let you add cronjobs. It has a bit off a comment in there to explain the basics. It also already contains methods for daily, weekly, and monthly jobs.

edit: here is the file:

 more /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repor
t /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repor
t /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --repor
t /etc/cron.monthly )
#


I got the answer . The gtk-x11-2.0.so is a gtk2 function only. I should use libgtk-3 instead of that .
If you will type pkg-config --libs gtk+-2.0 it will show the gtk2 libraries and if you will type pkg-config --libs gtk+-3.0 it will show gtk3 libraries .


How do I figure out how to run applications in Wine?

I recommend checking out the Wine HQ AppsDB.

They categorize apps by compatibility. Reviews include Wine version and Linux distro (and version) the app was tested on, so you may have more success than indicated in old reviews.

In my experience, Wine has been pretty good for my windows apps needs. Generally, it's not very good at running commercial equivalents to the big stock apps in Ubuntu (it's always tricky to install Internet Explorer, MS Office, Adobe Photoshop, at least their latest versions, in Wine). Some apps run flawlessly, whereas a lot of apps need just a hint of tweaking (missing DLL or font file, some apps try to run from CD). Compatibility for most apps improves with every new version of Wine. Best check out the apps DB, you could ask here again or take it to the forums. Good luck!


Can I install Ubuntu touch in a Yarvik tablet?

According to https://wiki.ubuntu.com/Touch/Install#Supported_devices_and_codenames, only these devices are officially supported:

Galaxy Nexus
Nexus 4
Nexus 7
Nexus 10

There are also community-contributed models here.

If your device is not on these two lists, then it's currently not possible.


apt-get aborts after I type Y to continue

This can also happen (or happens with a higher frequency) if you wait a couple of minutes before typing 'Y'. In case it happens just repeat the command and it will run fine.


Wirless network disabled by hardware switch

I ran into an issue that reminds me of what you're experiencing. In my case, switching off the wireless with the hardware switch switched off a software switch. Try to type the following command in a terminal:
$ sudo rfkill unblock all

That solved the issue for me (with Ubuntu 11.04).


Minitube is not working? Minitube problem?

Install the latest version via PPA:

sudo add-apt-repository ppa:noobslab/apps
sudo apt-get update
sudo apt-get install minitube

Source

This PPA is updated more frequently. Additionally you need QT 4.5 or better.


Why do rules I create in graphic firewall (gufw) get deleted (force deleted)?

The rules are still in place after 3 days and have not been deleted. I believe I did this inadvertently while trying to setup the rules I needed.


Why does my burned Ubuntu DVD have a different hash/checksum than the iso?

Please burn it again, this time setting the lowest possible speed (in Properties) and also turn the image checksum option on, if it isn't.


Can't login after installing LXQt on 14.04

sudo add-apt-repository ppa:lubuntu-dev/lubuntu-daily
sudo add-apt-repository ppa:gilir/q-project
sudo apt-get update
sudo apt-get install lxqt-metapackage lxqt-panel openbox

Or you can read tutorial here: http://ubuntuportal.com/2014/05/how-to-install-lxqt-0-7-0-in-ubuntu-14-04-lts-trusty-tahr.html (include video)


Download the 12.04 multiarch version from here
then you can both double click on it or execute from the Download folder

sudo dpkg -i skype-ubuntu...

you can just type skype then press tab


Disable Touchpad of Logitech TK820 on Xubuntu 14.04.2 LTS

If you want to disable "TPPS/2 IBM TrackPoint", just run in terminal

 xinput disable 15

To make it permanent you can run this command as an "Automatically started application".

There are some other ways to automatically run this command at session start, but IMHO this is the easiest one.


Try install mplayer

sudo apt-get install mplayer

and run

mplayer -vo caca <movie_file

and check whether you are able to play the video


Rhythmbox control buttons not displayed properly

Gnome icons
Rhythmbox has been for many years developed under the Gnome umbrella.
It inherits many of the requirements of other Gnome applications for the required packages.  This also includes the icons.
Since you've installed KDE/Kubuntu, this by default does not include the Gnome icon-sets - different code-base, different organisation.
Thus, to ensure a gnome-based application such as Rhythmbox looks and feels as the Gnome developers envisaged, you'll need to install their required packages.
To install the main icon-sets for Gnome-based application such as Rhythmbox will require you to install the following packages:
sudo apt-get install gnome-icon-theme, gnome-icon-theme-symbolic

If you intend to install more of the obscure Gnome based applications available, gnome-icon-theme-extras will also be required.


Accessing second hard drive Ubuntu 16.04

You need to deactivate the fast start up function in windows under power options. Once you do that the drives become accessible on Ubuntu.


the latest version of Gnome on 14.04 is 3.10 and trying to upgrade Gnome past 3.12 would crash your system.
If you would like a more recent version of Gnome you should upgrade to 16.04.1 which ships with 3.18 out of the box.

In short: Gnome 14.04 won't go past Gnome 3.10 despite the distro's life cycle is ongoing.


Although this does not answer your direct question, as a simple workaround or for others looking for a simple way to install the drivers, you can use this PPA

sudo add-apt-repository ppa:ubuntu-x-swat/updates
sudo apt update
sudo apt dist-upgrade

If it goes wrong, remove it with

sudo apt install ppa-purge
sudo ppa-purge ppa:ubuntu-x-swat/updates

Source


How to select language keyboard by hotkey?

The way unity/gnome change their language settings is through gsettings schema org.gnome.desktop.input-sources, and the key current. I've used it in several other scripts before to answer questions on Askubuntu.

Basic idea is that you run command

gsettings set org.gnome.desktop.input-sources current $1

Where $1 is the number of the language source. Language sources are ordered starting from 0, just like shown in your drown down menu with all the languages. So suppose my language order is english, chinese, russian. English is source 0, chinese is source 1, russian is source 3.

So what can one do is go to System Settings -> Keyboard -> Shortcuts -> Custom. By clicking plus mark, create 3 shortcuts, for 3 numbers. I suggest you use Ctrl+Shift+number, because Ctrl+number may be taken by an application, like firefox for it's own internal usage.

This I bind Ctrl+Shift+1 to gsettings set org.gnome.desktop.input-sources current 0 for english. Repeat same process for chinese:  Ctrl+Shift+2 to gsettings set org.gnome.desktop.input-sources current 1. Repeat the same for other sources


How to change/remove the Ubuntu version overlay from the lock screen?

If you want to change the logo/text used by the Unity Greeter, you can edit or replace the file found at /usr/share/unity-greeter/logo.png.

One simple way to remove the logo altogether would be to replace the image with a transparent one.


GRUB command line appears on boot after deleting Ubuntu partition from Windows 10

You can use EasyUEFI http://easyuefi.com to delete the Ubuntu option from boot menu http://www.easyuefi.com/faq/en_US/Delete-UEFI-Boot-Entries.html

This will remove the Ubuntu boot option. To remove the grub files follow these instructions:

http://www.easyuefi.com/faq/en_US/Rebuild-EFI-System-Partition.html


The SE Runtime means that you're running Java Standard Edition, rather than Enterprise Edition (AKA Servlets/JSP, which need an application server). You should be just fine with what you have installed right now! If you want to develop Java programs, just make sure that javac is installed on your system.

EDIT
Also, make sure that javac is being provided by java-6-sun, otherwise you'll probably be using the GNU Java compiler which doesn't seem to be what you want.


KDE, GNOME, XFCE, Unity, ad-nauseum... Can a GUI app run in X without any of these?

X is a service that listens to requests from its clients (= applications) to paint windows and also passes on input device events to those applications.  One of these applications is the window manager (e.g. in case of GNOME that's Metacity or Compiz).

And a desktop environment like GNOME, etc. is actually a collection of applications that are meant to be used together to provide a more or less comfortable user experience; usually it includes a window manager, a session manager, some sort of application launcher, etc.

And yes, it's possible to start any GUI application (if it is an X client of course) on a bare X, but e.g. without a window manager all windows will have no frame (no border, no titlebar) and are put in the same position by default (the upper left corner).  X itself is rather "dumb" when it comes to such things...


Can't connect to a server via SSH (with my PC only)

I've finally found a way to fix the issue I had.I found this article about iptables It helped me a lot to fix the issue.

The only thing I did is run the command

sudo iptables -F

Doing that has allowed me to push again on remote repositories and thus using ssh. But I had to save that.

For this I run this other command to make all the changements due to the previous command persistent

sudo apt-get update
sudo apt-get install iptables-persistent

I found that thanks the article linked previously. I rebooted in the meantime and everything is working correctly.


Is it necessary to download UNetBootin or other softwares to create a live os on a usb?

General answer
You can download an iso file or [compressed] img file with a live operating system, in your case Tails, via your standard web browser, but it does not work directly from the downloaded file. You must

clone it or
extract it and create a bootloader

in order to make the USB drive boot and run a live system.
You need some software to create a live operating system in a USB drive, and you can use software that is included in your current system. But many people (and I am one of them) recommend that you use some dedicated software because it makes the process safer and easier.
Unetbootin is one alternative, and there are versions for Ubuntu, Windows and MacOS.
The following link will give you more alternatives as well as more details,
https://help.ubuntu.com/community/Installation/FromUSBStick
You may want to look at one of the sub-pages and follow some links.
Specific answer about Tails
I browsed the instructions for installing Tails from Ubuntu, and saw that they recommend using dd, which is a cloning tool. This tool is risky, because it does what you tell it to do without any question, even if you overwrite the internal drive with your family pictures and other valuable data. For this reason many people use the nickname 'Data Destroyer'.
If you want to use the cloning method from Ubuntu, I suggest that you use mkusb, which 'wraps a safety belt' around dd: There is help to identify the target drive (the USB drive), and there is a final checkpoint, so that you can double-check, that you will install to the correct target drive.
If you want to use the cloning method from Linux (not specifically Ubuntu), the instructions at the Tails web page recommend 'Disks' alias gnome-disks. This tool has a final checkpoint, and can be recommended (but I think it is more difficult to use for this purpose compared to mkusb). An advantage with Disks is that it is already there as a standard tool in many Linux distros (including Ubuntu).
If you want to use the cloning method from Windows or MacOS, the instructions at the Tails web page recommend Balena Etcher, which is a cloning tool. This tool has a final checkpoint, and can be recommended.


How can I enable international keyboards on 12.04?

You can add additional layouts via System Settings/Keyboard Layout. Chosing that should open a window with a list on the left, which you can extend via the "+"-button. Afaik, the uppermost entry in the list in the Settings-window is the one being used as default.

You can also choose a shortcut to switch between these keyboard-layouts via the "options" button in the same window ("Keys to switch layout"). If the Keyboard-Icon is shown in the top panel (not sure if that is shown by default), you can also use its menu entry "Keyboard Layout Settings..." to get to the aforementioned window and you can also switch between all layouts that you added to the list.


Check out Lubuntu the light weight version of ubuntu.

They specify System requirements as follows:

System Requirements

A Pentium II or Celeron system with 128 MB of RAM is probably a bottom-line configuration that may yield slow yet usable system with a standard lubuntu desktop.
14.04 32 bit ISO require your CPU to have Physical Address Extensions, or PAE. "PAE is provided by Intel Pentium Pro and above CPUs, including all later Pentium-series processors (except most 400 MHz-bus versions of the Pentium M)." - If you have an error with Celeron M reporting "NON-PAE CPU" and would like to install Lubuntu 14.04, please see this page
For PowerPC, it is known to run on a G4 running at 867MHz with 640MB RAM.
For Intel based Macs, lubuntu should run on all models.

So I think it is perfect for your needs!


How to make Touch Painting work in Krita?

I 'fixed' this problem by using the snap (currently version 4.2.x) whereas the apt version (4.1.x) did not work on my Inspiron.


I had this issue too, but fpoehler ( http://ubuntuforums.org/member.php?u=1174921 ) solved it here: http://ubuntuforums.org/showthread.php?t=1466473&page=4 .

"
The themes that work should be the ones which have the same panel background as normal application windows. That's why the problem is not apparent there. However, newer themes often use a different color or a background image for the panel.

The fix is to apply the panel's properties (background color or background image) to GtkPlug widget class, which is not considered in most stock themes.

Steps:
1) Find out your panel's background color or the path to its background image (in case it has one).
For the color the hexadecimal value is needed (e.g. "#A1B2C3).
The image in most cases resides in /usr/share/themes/<Your_Theme's_Name>/gtk-2.0/ or a subfolder of that.

For Radiance theme it is

/usr/share/themes/Radiance/gtk-2.0/apps/img/panel.png

2) (In case there is a background image) copy the background image to your home folder (or a subfolder of your home folder).

3) Open (or create) the file named ".gtkrc-2.0" in your home folder.
4) Copy the following into the file:

style "GoogleDesktopIconFix" {
    # In case your panel has a background image, add this line
    bg_pixmap[NORMAL] = "subfolder/panel.png"     # replace "panel.png" with the actual file name or (relative) path

    #In case your panel has no background image, add this line
    bg[NORMAL] = "#000000"              # replace "#000000" with your color value
}
class "*oPlug"    style "GoogleDesktopIconFix"

5) Open a terminal and type
    Code:
    pkill gnome-panel
"

Results:
 (color)                                                  (Background)

ps.: if it doesn't work:
1) Change  class "*oPlug" for class "GtkPlug"
2) Put the "relative" path to the background (example: if I put the background image at "~/gdesk/panel.png" I had to put the path "gdesk/panel.png")


Wallpaper upload button missing - Ubuntu 18.04?

The 'Pictures' tab in the wallpaper selection window as in your screenshot gets populated by images in your ~/Pictures/ directory (or the 'Pictures' folder in your home directory). So if you want a specific image to appear here, you simply need to copy/move the image to ~/Pictures/.

Note that The Pictures tab shows images only from the 'Pictures' folder, not even from any subfolder of the Pictures folder.

If you're unhappy with the limited options this wallpaper selection window provides, you may use (GNOME) Tweaks. Install it by running

sudo apt install gnome-tweaks

Tweaks let you select image from any folder and also provides extra options to tile/zoom/centre/scale/fill/span the background image.


Why so many "removed but not purged" packages?

They haven't been purged because there's no reason to. The kernel files left are mostly those concerning dpkg. There's no harm in having them around.

As for purging them:

aptitude purge '~c'


I have extracted the tar warzone2100-0.2.1 but don't know how to install

First, read the README file (less README). Follow the instructions contained in the README. Make sure you have installed any requirements specified in the README. Then, it's simple (check for errors at each step, fix errors before proceeding):

./configure
make
make check
make test
# The previous 2 make commands may fail with "No rule to make target"
# then the install command from the README
# I've previously installed the installwatch package, so I would
sudo installwatch --logfile=installwatch.log make install


Unit gunicorn.service failed to load: No such file or directory

You need to create gunicorn.service in /etc/systemd/system.
Next, add this code to it and replace user , myproject and myprojectenv accordingly.

[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=user
Group=nginx
WorkingDirectory=/home/user/myproject
ExecStart=/home/user/myproject/myprojectenv/bin/gunicorn --workers 3 --bind unix:/home/user/myproject/myproject.sock myproject.wsgi:application

[Install]
WantedBy=multi-user.target


Pitfalls of using an old home directory with a new install?

What will happen is that you will simply preserve your settings and find you lost nothing.


Summary

Wubi is definitely free, although it hasn't yet (as of 2014-04-20) been updated for Ubuntu 14.04 LTS.

The best place to download Wubi for the old Ubuntu 12.04 LTS is from releases.ubuntu.com/12.04 (wubi.exe direct link).

Detail

A bug was introduced on April 10th when we released changes to the Ubuntu.com download section, which both hid the "skip" link on the Wubi contributions page, forcing you through Paypal, and broke the Wubi thank-you page so even if you did pay the download wouldn't start - pretty catastrophic. This is what led to the confusion.

I've now redirected the Wubi contribute URL directly to the download. Now if you click "Get the installer" on the Windows Installer page, your Wubi download will start immediately, so you never see the contributions page and don't even have the option to pay.

Edit: Now that Ubuntu 14.04 is out, the old Windows Installer URL on ubuntu.com now redirects you to the main desktop download page, as Wubi has not been updated for the new Ubuntu 14.04 yet.

I've answered and closed @JorgeCastro's bug.


Get Non matching string from file1 to file2

Here's one way in awk:

$ awk 'NR==FNR{a[$1]++; next}{for(i in a){if($0 ~ i){found[i]++}}}END{for(i in a){if(!found[i]){print i}}}' file1 file2
YUI
I8O

Or, a bit more legibly:

$ awk 'NR==FNR{
        a[$1]++;
        next
       }
       {
        for(i in a){
            if($0 ~ i){
                found[i]++
            }
        }
       }
       END{
        for(i in a){
            if(!found[i]){
                print i
            }
        }
       }' file1 file2
YUI
I8O

Explanation

NR==FNR : NR is the current line number and FNR is the current line number of the current file. When processing multiple files, the two will be equal only while reading the first file. So this is an easy way of saying "do this for the 1st file only".
a[$1]++; next : while reading the first file, save each word (the first and only field) in the array a and then skip to the next line. The next also ensures that the rest of the command is not run for the first file.
for(i in a){  if($0 ~ i){  found[i]++  }  }: For each of the words found in the first file (the keys of array a), check if the current line matches that word. If it does, save the word in the found array. This is run for each line of the second input file.
END{ }: do this after you've processed all input files.
for(i in a){  if(!found[i]){  print i  }  }: for each of the words in a, if the word is not also in the found array, print that word.

Alternatively, you can use some of the core Linux utilities:

$ grep -hoP '\w+' file1 file2 | sort | uniq -u | xargs -I{} grep {} file1
I8O
YUI

Explanation

$ grep -hoP '\w+' file1 file2
ABC
YUI
GHJ
I8O
dfghjo
ABC
kll
njjgg
bla
bla
GHJ
njhjckhv
chasjvackvh
ihbjhi
hbhibb
jh
jbiibi

This will print all the words found in each file. The -o flag means "only print the matching portion of the line", the -P enables Perl Compatible Regular Expressions (PCRE) which let us use \w to mean "any word character" (so letters, numbers, _).

$ grep -hoP '\w+' file1 file2 | sort | uniq -u
chasjvackvh
dfghjo
hbhibb
I8O
ihbjhi
jbiibi
jh
kll
njhjckhv
njjgg
YUI

Now we pass the output of the previous command through sort and uniq -u to keep only unique matches: these are the words that are only present in one of the two files.

$ grep -hoP '\w+' file1 file2 | sort | uniq -u | xargs -I{} grep {} file1
I8O
YUI

Finally, we feed this list of unique words to xargs and have it grep each of them in file1. Only those unique words that are present in file1 will be returned, and unique words present in file1 are therefore not present in file2.


Does bash (or any shell, for that matter) have an 'overwrite' mode?

Not what you asked for directly, but you can use various forms of history interaction to simplify your task:

$ cat path/to/dir/file01.txt
cat: path/to/dir/file01.txt: No such file or directory
$ different-command !$
different-command path/to/dir/file01.txt
bash: different-command: command not found
$ cat !$:s/1/2/
cat path/to/dir/file02.txt
cat: path/to/dir/file02.txt: No such file or directory
$ ^2^3
cat path/to/dir/file03.txt
cat: path/to/dir/file03.txt: No such file or directory
$ !-3:s/1/3/
different-command path/to/dir/file03.txt
bash: different-command: command not found
$ !diff:s/3/4/
different-command path/to/dir/file04.txt
bash: different-command: command not found

Ignoring the errors, each time I used history interaction (!$, !$:s/1/2, ^2^3), you can see how bash expanded it.

!$ - the last word of the previous command
:s/1/2 - replace the first occurrence of 1 with 2 in the selected word (in this case, that was !$ again).
^2^3 - replace the first occurrence of 2 with 3 in the entire previous command.
!-3 - run the third-last command.
!diff - run the last command that started with diff.


Went down for restart, won't come back up

Third
Gnome-3 installed from ppa is know to cause bugs for some people. Let's revert to Gnome-2 and after we have a functional Graphical environment then you may re-install Gnome-3, what do you think?

Run these commands at terminal successively one by one:

sudo apt-get remove libgtk-3-common
sudo apt-get install ppa-purge
sudo ppa-purge ppa:gnome3-team/gnome3
sudo apt-get install gnome-panel
sudo reboot now

If you still have problems then run:

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

Reference: here.

Second
Try to re-set the default Desktop Manager. At terminal, run this:
sudo dpkg-reconfigure gdm

First
After the boot you can go to a terminal (Ctrl+Alt+F1) then try to reconfigure xorg pasting this:
sudo dpkg-reconfigure xserver-xorg


Followup question: How to get fix for trackpad bug from 3.15 kernel?

It is queued for 3.15, so it should be present in that version.
Utopic will get kernel 3.15.
I think you'll have to request the fix be backported to the 3.12 kernel. As part of Ubuntu policy, kernel versions remain the same on a given release.
Because this is an LTS release, you'll be able to use newer kernels in Trusty. If the 12.04.x schedule on this page is to be followed, you'll get 3.15 about 3 months after Utopic is released.


According to:

https://help.ubuntu.com/13.04/serverguide/preparing-to-install.html

these are the minimum hardware requirements for 13.04:

    Install Type      CPU        RAM             Hard Drive Space
                                            Base System     All Tasks Installed

Server (Standard)    1 GHz      512 MB         1 GB               1.75 GB

 Server (Minimal)   300 MHz     128 MB       700 MB               1.4  GB


I'm using LAME to convert .wav files to .mp3 how I can append the passed arguments in terminal to output .mp3 name?

Original version

I suggest that you use a shellscript.

Use for example the name wav2mp3
Store the command line and all other relevant information in the shellscript.
I suggest that you avoid characters with a special meaning (space [ and ]) in the file name, replace with _

#!/bin/bash

options="-b 128 -m j -h -V 1 -B 256 -F"
OptInName=${options//\ /_}

# only testing here, so making it an echo command line

echo lame "$options" *.wav "mymp3_$OptInName.mp3"

Make it executable

chmod ugo+x wav2mp3

Run it (it is 'only' echoing here, showing what the real thing would look like),

$ ./wav2mp3
lame -b 128 -m j -h -V 1 -B 256 -F hello.wav hello world.wav mymp3_-b_128_-m_j_-h_-V_1_-B_256_-F.mp3

Version with a parameter

If the b-value is the only option, you want to change, you can have that as the only parameter, when you call wav2mp3.

#!/bin/bash

if [ $# -ne 1 ]
then
 echo "Usage:    $0 <b-value>"
 echo "Example:  $0 128"
else
 options="-b $1 -m j -h -V 1 -B 256 -F"
 OptInName=${options//\ /_}

# only testing here, so making it an echo command line

 echo lame "$options" *.wav "mymp3_$OptInName.mp3"
fi

Examples:

$ ./wav2mp3 128
lame -b 128 -m j -h -V 1 -B 256 -F hello.wav hello world.wav mymp3_-b_128_-m_j_-h_-V_1_-B_256_-F.mp3
$ ./wav2mp3 256
lame -b 256 -m j -h -V 1 -B 256 -F hello.wav hello world.wav mymp3_-b_256_-m_j_-h_-V_1_-B_256_-F.mp3

Version with arbitrary number of parameters

#!/bin/bash

if [ $# -eq 0 ]
then
 echo "Usage:    $0 <parameters>"
 echo "Example:  $0 -b 192 -m j -h -V 1 -B 256 -F"
else
 options="$*"
 OptInName=${options//\ /_}

# only testing here, so making it an echo command line

# When using parameters without white space (and this is the case here),
# you should use $* and when calling the program (in this case 'lame')
# I think you should *not* use quotes (") in order to get them separated.
# So $options, not "$options" in the line below.

 echo lame $options *.wav "mymp3_$OptInName.mp3"
fi

Example:

$ ./wav2mp3star -b 192 -m j -h -V 1 -B 256 -F
lame -b 192 -m j -h -V 1 -B 256 -F hello.wav hello world.wav mymp3_-b_192_-m_j_-h_-V_1_-B_256_-F.mp3


Amazon repositories are only available to Amazon registered systems. You can't use them if you are not using Amazon EC2 services (one of their farms), so it denies access to anything that tries to use them.

Change your repositories to the official http://archive.ubuntu.com/ and you will be fine:

sudo sed -i 's/\.s3\.amazonaws\.com//ig' /etc/apt/sources.list{,d/*.list}
sudo apt-get update

That should remove Amazon's servers from your list.


Is there a command-line equivalent to gnome-disks?

I cant speak to the old udisks benchmarking report but perhaps fio will be of use to you. fio is currently available for all versions of Ubuntu from Precise To Zesty

You can install it with sudo apt-get install fio after activating the Universe repository

Some quick testing indicates that you can choose the partition to test simply by insuring that the pwd (Present Working Directory) is on the partition that you wish to test.

For instance, here's the results I get running it on my root partition which is on a Toshiba THNSNH128GBST SSD (my /dev/sda)

$ sudo fio --name=randwrite --ioengine=libaio --iodepth=1 --rw=randwrite --bs=4k --direct=0 --size=256M --numjobs=8 --runtime=60 --group_reporting
randwrite: (g=0): rw=randwrite, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=1
...

  randwrite: (groupid=0, jobs=8): err= 0: pid=15096: Wed Feb 15 13:58:31 2017
  write: io=2048.0MB, bw=133432KB/s, iops=33358, runt= 15717msec
    slat (usec): min=1, max=223379, avg=232.82, stdev=4112.31
    clat (usec): min=0, max=16018, avg= 0.30, stdev=22.20
     lat (usec): min=1, max=223381, avg=233.25, stdev=4112.55
    clat percentiles (usec):
     |  1.00th=[    0],  5.00th=[    0], 10.00th=[    0], 20.00th=[    0],
     | 30.00th=[    0], 40.00th=[    0], 50.00th=[    0], 60.00th=[    0],
     | 70.00th=[    0], 80.00th=[    1], 90.00th=[    1], 95.00th=[    1],
     | 99.00th=[    1], 99.50th=[    1], 99.90th=[    2], 99.95th=[    3],
     | 99.99th=[   31]
    bw (KB  /s): min= 3473, max=241560, per=12.42%, avg=16577.30, stdev=28056.68
    lat (usec) : 2=99.79%, 4=0.18%, 10=0.02%, 20=0.01%, 50=0.01%
    lat (usec) : 100=0.01%, 250=0.01%, 500=0.01%
    lat (msec) : 20=0.01%
  cpu          : usr=0.52%, sys=1.08%, ctx=3235, majf=0, minf=228
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued    : total=r=0/w=524288/d=0, short=r=0/w=0/d=0

Run status group 0 (all jobs):
  WRITE: io=2048.0MB, aggrb=133432KB/s, minb=133432KB/s, maxb=133432KB/s, mint=15717msec, maxt=15717msec

Disk stats (read/write):
  sda: ios=0/197922, merge=0/84378, ticks=0/37360, in_queue=37324, util=93.41%

Running in my home directory which is on a Western Digital WD2003FZEX-00Z4SA0 HDD with the same command results in the following output:

randwrite: (groupid=0, jobs=8): err= 0: pid=15062: Wed Feb 15 13:53:32 2017
  write: io=1299.6MB, bw=22156KB/s, iops=5538, runt= 60062msec
    slat (usec): min=1, max=200040, avg=1441.http://meta.stackexchange.com/questions/122692/moderator-tools-make-merging-questions-a-little-easier74, stdev=11322.69
    clat (usec): min=0, max=12031, avg= 0.41, stdev=32.24
     lat (usec): min=1, max=200042, avg=1442.29, stdev=11323.05
    clat percentiles (usec):
     |  1.00th=[    0],  5.00th=[    0], 10.00th=[    0], 20.00th=[    0],
     | 30.00th=[    0], 40.00th=[    0], 50.00th=[    0], 60.00th=[    0],
     | 70.00th=[    0], 80.00th=[    1], 90.00th=[    1], 95.00th=[    1],
     | 99.00th=[    2], 99.50th=[    2], 99.90th=[    3], 99.95th=[    9],
     | 99.99th=[   14]
    bw (KB  /s): min=  426, max=282171, per=13.12%, avg=2906.99, stdev=17280.75
    lat (usec) : 2=98.88%, 4=1.03%, 10=0.05%, 20=0.04%, 50=0.01%
    lat (usec) : 100=0.01%, 250=0.01%
    lat (msec) : 10=0.01%, 20=0.01%
  cpu          : usr=0.09%, sys=0.25%, ctx=7912, majf=0, minf=227
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued    : total=r=0/w=332678/d=0, short=r=0/w=0/d=0

Run status group 0 (all jobs):
  WRITE: io=1299.6MB, aggrb=22155KB/s, minb=22155KB/s, maxb=22155KB/s, mint=60062msec, maxt=60062msec

Disk stats (read/write):
  sdb: ios=0/94158, merge=0/75298, ticks=0/116296, in_queue=116264, util=98.40%

I trimmed out the output produced while it's running to keep this answer a readable size.

Explanation of output that I found interesting:

You can see that we get min, max average and standard deviation for all of these metrics.

slat indicates submission latency -

clat indicates completion latency. This is the time that passes between submission to the kernel and when the IO is complete, not including submission latency. In older versions of fio, this was the best metric for approximating application-level latency.

lat seems to be fairly new. It seems that this metric starts the moment the IO struct is created in fio and is completed right after clat, making this the one that best represents what applications will experience. This is the one that you'll probably want to graph.

bw Bandwidth is pretty self-explanatory except for the per= part. The docs say it's meant for testing a single device with multiple workloads, so you can see how much of the IO was consumed by each process.

When fio is run against multiple devices, as I did for this output, it can provide a useful comparison regardless of the fact that it's intended purpose is to test a specific workload.

I'm sure it comes as no surprise that the latency on the hard drive is much higher than that of the solid state drive.

Sources:

https://tobert.github.io/post/2014-04-17-fio-output-explained.html

https://github.com/axboe/fio/blob/master/README


I had a similar problem, and probably due to the same mistake (adding a PPA to install IceCat). I've solved it by following answer https://askubuntu.com/a/733383/767716 which instructs you to reinstall base_files from https://launchpad.net/ubuntu/+source/base-files

You should look in section Built files, Files resulting from this build, something starting with base-files_ and ending in .deb

After downloading it, again following the instructions, you should
run:

sudo dpkg -i /your/path/to/base-files_*.deb

And make a test run with:

sudo apt-get install --reinstall base-files

After that, I needed to change some files, for example, remove and re-add items under /etc/sources-list.d as some of them were pointing to the trisquel/toutatis version.


How do I install Ubuntu if the installer can't locate the hard drive?

Are you using the 64 bit version?
Are you making the USB stick bootable? Just putting the .iso on there does not work. You need to use something like universal pen drive to make it bootable.
Also, you may need to hold down option, command, CTL, ect, at the time of boot to select your boot drive. It may also be an F12 key, I'm not sure with your exact computer but Google how to choose drive at boot.


Problems with mtp on Nexus 4 and Ubuntu 13.10

My answer, found here, discusses how to get MTP working.  I've learned, however (due to downvotes) that this answer is no longer valid.

I believe that, after 12.04, this is no longer required and Ubuntu should handle MTP natively without the help of other resource/library.

Maybe you should attempt to set this up without go-mtpfs, even though it used to be advised.


you have to replace eth0 with the name of your internet card (device)
just run ifconfig alone , you will get list of your devices with information of each device ,on the left is the name of the device then there is : and couple of lines of information, replace eth0 with the name of your device


I keep running out of space and I have a second disk that I can use, how to format and make accessible

You can format it in every readable aand writeable format like ext2/3/4 for just Linux as the're native for it and if used by Windows too - to FAT32 or NTFS. Tgen you may just move files/folders. The file manager is able to mount the partition just with one click.

The formatting may easily be done with GParted.
To install it, use the following command:

sudo apt-get install gparted


You can just reinstall ubuntu (on nvme) and set your grub location to the ssd. Next, you can set your bios boot device to your nvme ssd. This will then boot to the new grub with the new ubuntu. O jea, and also don't install any os on a hard drive except when you don't have ssd. Its always slow :)


Ubuntu fails to boot after updating nvidia drivers

I think you need to reinstall drivers from terminal. Reboot and select recovery mode in GRUB. Log in. Run

sudo ubuntu-drivers devices

It will list drivers that fit your card. Select a version and run

sudo apt purge nvidia*
sudo apt install nvidia-???

to install.


Follow this instructions to upgrade to kernel 3.2. Works like a charm and you can have 3.2 in your current ubuntu installation.

http://www.liberiangeek.net/2012/01/install-upgrade-to-linux-kernel-3-2-in-ubuntu-11-10-oneiric-ocelot/


Can I run this on a usb hard drive on my desktop that is currently running windows xp I do not have enough space to partition my drive?

You can run as a live USB, some applications even allow persistence so that you can keep files. It is always recommended to install to a HDD however as you will receive crucial security updates.


You have to edit the file ~/.config/user-dirs.dirs.

To find it, open your Home folder, press Ctrl+H in order to see hidden files, navigate to .config and open the user-dirs.dirs file.

You'll see something like

    XDG_DESKTOP_DIR="$HOME/Desktop"
    XDG_DOWNLOAD_DIR="$HOME/Downloads"
    XDG_TEMPLATES_DIR="$HOME/Templates"
    XDG_PUBLICSHARE_DIR="$HOME/Public"
    XDG_DOCUMENTS_DIR="$HOME/Documents"
    XDG_MUSIC_DIR="$HOME/Music"
    XDG_PICTURES_DIR="$HOME/Pictures"
    XDG_VIDEOS_DIR="$HOME/Videos"

Just replace $HOME/yyy with \path\to\the\folder\you\want

Note that:

in order for the changes to take effect, you have to log out and log back in.
I wasn't able to add or remove entries, just change them.


Networking indicator missing in Ubuntu 14.04

Does it appear if you type in a terminal

nm-applet

In this case the applet will run until you close the terminal.

If it appears it could be an autostart problem.


Install of Ubuntu 15.04 hanging at "ACPI PCC probe failed" and then "failed command: Read Fpdma Queued"

For anybody reading this some time in the future, the issue has been Solved! My DVD drive was plugged into a Sata port on my motherboard that did not support ATAPI so the installation was freezing when that functionality was called on (or something like that). I simply moved the DVD drive to a supported Sata port.


This is impossible. Every time you will be disconnect when your adapter powers off. This times are:

sleep
hibermode
close times.


Does apt-get automatically check digital signatures?

You are trusting that canonical compiled the program so it did not have any tampering that is not evident in the source code, and that they verified the signature on the source code from the ubuntu developer that uploaded it, or that debian did the same for the debian developer who uploaded it, if the package came from debian.  You are trusting the developer who uploaded the source package, who of course, can not thoroughly review all of the upstream code, so you are also trusting all of the upstream open source contributors.


How to properly migrate your private and public keys

First make sure that your keys you copied are not corrupted.
You can check and compare md5sum or sha256sum in both systems. It should be same for source and destination systems and each key you copied. If it is not case, Please copy again.
md5sum <filename>

sha256sum <filename>

If checksum is same, You need to make sure that proper permissions and ownership are in place.
sudo chmod 700 ~/.ssh
sudo chmod 600 ~/.ssh/*
sudo chown user: -R  ~/.ssh/

Best way to copy keys by preserving permissions and ownership is rsync.
You can run below command in your new system. Here I assume that you are using in same network.
rsync user@{ip address or hostname of old system}/home/user/.ssh/* /home/user/.ssh/

In case user is different in your new system, you need to follow above step for fixing ownership.


If you already know the .deb file link, then download that deb file by,

wget https://url.to.package.deb

If you want to download a package then run,

apt-get download <package-name>

It will download all the .deb files related to the package.Finally install all the .deb files by running,

sudo dpkg -i filename.deb


How do i get the active user if more are logged in

i found a dirty code.. but works for now:

#!/bin/bash
tty=$(cat /sys/class/tty/tty0/active)
active_user=$(w | grep $tty | awk '{print $1;}')

#to get the display also:
disp=$(who | awk -v term="$tty" '/\(:/ $0 ~ term { gsub(/\(|\)/, "", $0); print $5 }')


Hard-link /home/myuser to its new location?

Hard links in general are not particularly problematic. But hard links to directories are, which is why you have to use the -d flag to attempt to make one, and why you will probably not succeed anyway; the kernel is probably configured (or hard-coded, I'm not sure) to prohibit them.

Furthermore, as you've suspected you cannot hard link anything across volumes, so you won't be able to hard link /home/myuser to a directory on a different partition.

There are two types of links supported by the ln command--hard links, and soft links (also called symbolic links or symlinks).

A hard link to a file is the file. When you make a hard link, you're making it so that another filename identifies the file. Files in a Unix-style filesystem (like ext4, which Ubuntu uses by default) are identified uniquely by their inode number. When a file has multiple names, that is, multiple hard links (or, we can say, just multiple links), it continues to exist even if one or more of them are deleted, so long as at least one remains. (Then it continues to exist on disk until it is no longer open by any process.) The name of the low-level system function that does the work of rm is called unlink for this reason.

A soft link is not the file. It is instead a special kind of filesystem entry that points to a file by the target file's location and name. If you delete a file pointed to by a soft link, the soft link does not cause the file to continue to exist. If you delete or move/rename a file pointed to by a soft link, the soft link stops working to access the file, and is said to be broken.

Hard linking files across volumes does not work because a hard link is the file, and must be on the volume where the file's data is physically stored.

Hard linking directories (that is, having more than one name corresponding to the same directory inode) is generally a bad idea, and is usually prohibited, because it makes it possible to break basic (and reasonable) assumptions about how directories behave. For example, suppose I am in a directory called foo and I cd to a directory called bar. If directory hard links are not allowed, then I know I can get back to foo with cd ... But if directory hard links are allowed, then bar could actually be a hard link to a directory somewhere else. Furthermore, and much more seriously, a hard link is the file, and a hard link to a directory is the directory, so there can then be ambiguity about what directory really is the parent of bar.

On the other hand, soft links to directories are perfectly permitted. A directory foo can contain a soft link called bar which links to a directory somewhere else, but this doesn't cause problems because it is always clear what to do. It is always clear because there is an answer to the question what directory am I in really? So when you are treating the present working directory as the name you used to get there, it's the name of the symbolic link. And when you need to know what directory you're really in (for example, to compare two different paths to see if they're the same or one resides in the other), that works too.

So, you can make a soft link, or symbolic link, from /home/myuser to the new home directory. To make a soft link, use ln -s target source. You do not need to (and should not) specify the -d flag to make a directory soft link.

That might help ameliorate your problem. You could try it. But it would be even better to fix the problem itself. I recommend that you post a new question asking for how to solve the problem of some of your programs not working properly since you migrated your home directory to another partition (assuming that's what you did). Make sure to include specific information about all the programs that are having problems, including the full and exact text of any error messages, and also a description of exactly what changes you made to your Ubuntu configuration that triggered these problems and the complete contents of /etc/fstab and the output of echo $USER $HOME. (You should also link to this question, so people don't answer telling you just work around the problem by making a symbolic link.)


How to turn off auto-accent (e.g. 'e creates é)

Your current keyboard layout is English (US, international with dead keys). So you should switch to the basic English (US). The command line way is:

gsettings set org.gnome.desktop.input-sources current 0

You may want to check out the documentation about input sources, including how to switch between them. In your case it sounds as if you don't need any other keyboard layout but English (US), and in that case you may want to open Text Entry and remove the other in order to prevent more accidents. ;)


How should I mount the main partition when using "set partitions manually"?

NO, you're on the right way. Just proceed the installation process.


Valve's aware of the issue, and they're working on fixing it.

http://forums.steampowered.com/forums/showthread.php?t=3125849


choppy / laggy bluetooth mouse ubuntu 18

I found an answer that worked well for me here. You need to reduce the min poll time for Bluetooth devices. First, forget the mouse from Bluetooth settings, then set conn_min_latency like so:

sudo echo 6 > /sys/kernel/debug/bluetooth/hci0/conn_min_interval

Reconnect the mouse and it should move smoothly. I have some suspicion that this is for improving battery life on my ultrabook, so be aware.


I found the problem. I was trying to run a 32-bit binary on a 64-bit system that doesn't have 32-bit support installed. This was why the output was "No such file or directory" each time i tried to run it. To fix this, I installed 32 bit libraries with this command

sudo apt-get install ia32-libs

after that I followed the steps of installing g95 from the beginning and worked perfectly fine

to determine problem:
No such file or directory? But the file exists!

Running 32bit apps in 64 bit linux: http://www.maketecheasier.com/run-32-bit-apps-in-64-bit-linux/2009/08/10


Ubuntu 16.04 tile windows no longer working

I had the same problem after upgrading to 16.04 from 15.10. I was able to solve it as follows:

access "CompizConfig Settings Manager"
you might have to install it via

sudo apt-get install compizconfig-settings-manager

I had installed it previously already in 14.04.
In "CompizConfig Settings Manager", category "Window Management", the option "Grid" was disabled (probably due to conflicts with new settings in the "General Options"). After activating it and accepting to overwrite the settings in the "General Options" part, I got the previous behaviour restored.


Here is the official wiki, with the compatible devices, the working devices and the work in progress : wiki ubuntu

I think this is the most (if not the only) reliable source for ubuntu touch compatibility.


How do I turn off or repurpose the CAPSLOCK key?

If you can be satisfied with it just being disabled, here's what you can do.

Run sudo apt-get install gnome-tweak-tool.
Open Tweak Tool by searching for it in the Dash.
Select the Typing menu and change Caps lock key behavior to Disabled.

Source: https://mkaz.com/2014/02/08/disable-caps-lock-in-ubuntu/


How to install latest version of CUDA on Ubuntu 18.04

Use the installation guide provided here by eromod. This worked for me on 18.04 on different computers, other than the official version.

sudo add-apt-repository ppa:graphics-drivers/ppa

sudo apt update

sudo ubuntu-drivers autoinstall

reboot

sudo apt install nvidia-cuda-toolkit gcc-6

nvcc --version


A lot of mail servers don't accept incoming connections from systems with dynamic IP addresses because most of them are systems infected with malware that tries to send spam or spread itself.

Use your ISPs mailserver as relay (sometimes called "smarthost"). Here is a short guide for that. The server name, user and password are the same as you'd use for a mail client like Thunderbird.


It is straightforward. Use the s command in sed to search and replace.

sed 's/# autologin=dgod/autologin=ubuntu/' /path/to/file

If you see what you want, add -i to change the file in place

sed -i 's/# autologin=dgod/autologin=ubuntu/' /path/to/file


Alternatives to restart nautilus, besides killall and -q?

You can restart GNOME by pressing AltF2 then r.
Nautilus is the default file manager for GNOME.
reference


The release of the ISO has only just occurred; the update from prior releases doesn't get opened until a decision is made on the stability of the new release (watching bug reports etc) & a decision is made to turn the taps (where people are offered the upgrade).  I'd recommend being patient and waiting until you're offered the upgrade.
You can use -d to force... but refer to the Ubuntu 21.04 Release Notes where you'll note

Upgrades from Ubuntu 20.10 to Ubuntu 21.04 are not enabled as it is possible for some systems to end up in an unbootable state if they use EFI version 1.10 - bug 1925010. Release upgrades will be enabled once an updated version of shim is available which is compatible with EFI version 1.10.


Matlab can be installed as :

sudo apt-get install matlab-gdf dynare-matlab libpdl-io-matlab-perl matlab-support matlab-support-dev matlab2tikz


python-pydot and graphviz are in the default Ubuntu repositories in all currently supported versions of Ubuntu. In all currently supported versions of Ubuntu, open the terminal and type:

sudo apt install python-pydot python-pydot-ng graphviz # python-pydot-ng isn't in the 14.04 repos

This flowchart was created with graphviz in Ubuntu. Because graphviz uses the built-in dot programming language which is included in the graphviz package, the source code of the linked flowchart is editable in any text editor even if python-pydot is not installed.

I don't know why you would want to install pydot with pip when you can get it from the Ubuntu repositories, but to answer your question I tried installing pydot anyway in a Python virtual environment with pip3 install pydot and it worked, so it is possible that you need to update pip to the latest version with sudo -H pip3 install --upgrade pip. I used pip3 instead of pip because you wrote in your question that you are using Python 3.5.


Neither of this is possible today (and it would need changes on both sides, the store and snapd to support this), but if you re-ask the question on https://forum.snapcraft.io/ in the snapd category, the snapd developers will see and discuss it ...

There is also some work done by the snapcraft team to include manifest files in snaps ( https://forum.snapcraft.io/t/use-a-separate-manifest-file-or-save-everything-in-snap-snapcraft-yaml/1152 and https://forum.snapcraft.io/t/record-machine-information-in-the-manifest/1961 ), perhaps this feature could be extended to include searchable files lists too ...


Ubuntu 18.04: graphics card driver fails

I would highly suggest installing the latest NVIDIA driver through apt package manager.

To do this, you would add the graphics driver PPA with the following commands in terminal:

sudo add-apt-repository ppa:graphics-drivers/ppa

sudo apt-get update

After this, you should now remove any current NVIDIA drivers by entering the following into your terminal:

sudo apt-get purge nvidia*

Now that you have done this, it is safe to install the latest version:

sudo apt-get install nvidia-driver-396

Please note that it is nvidia-driver-396 on Ubuntu 18.04, it is nvidia-396 on Ubuntu 16.04 but you are not using 16.04.


Well I had the same problem. So to tell you right away you cant fix this. You can only run it on default Ubuntu drivers. That's because AMD do not support 2xxx-4xxx graphic cards anymore. The only thing you can do is install proprietary legacy driver which downgrade your X Server(1.13) to 1.12.
You can either buy a new graphic card 5xxx->, or wait for other solutions. Sorry to be a bearer of bad news. You can find some solutions but they all downgrade the X server...


How to purge psmouse-alps-dst-0.4 driver?

Try this command:

sudo dkms remove psmouse/alps-dst-0.4 --all


lvm2 pv format option is grayed out in gparted

In order to format a partion as lvm2 pv, gparted needs the package lvm2 to be installed.

In a terminal run

sudo apt-get install lvm2

Then restart gparted


Suddenly, I Can't login with correct password (greeter & tty)

Problem solved.
Here are the actions I carried out before the problem got solved:
In order to revert back to supported gnome packages like nautilus, etc, run
sudo ppa-purge ppa:gnome3-team/gnome3

Create directory /var/lib/samba
sudo mkdir -p /var/lib/samba
sudo smbpasswd -a myusername

Then run
sudo pam-auth-update

All the authentication modules were already selected, so I just clicked okay.
Troubleshooting here: http://ubuntuforums.org/showthread.php?t=2115288


Reinstalling 12.04 and preserving encrypted /home. Possible?

If your /homeis on a separate partition, then when you install make sure that you don't format that partition.

I'm not sure if the installer will try to mess with the partition, so the safest thing would be to make a copy of /home (from the Live CD using either dd or cp -a) and then restoring that copy after the reinstall. You'll also need to make sure that your user information in /etc/passwd is the same before and after the reinstall.


how do I go about removing all the language packs I don't need

You can check which locales are generated and configured on your system using the locale command:

locale ... list the current locale configuration
locale -a ... lists all all locales that were generated on your system
locale -a -v ... list all locales and show useful additional information (such as directory names that contain the locale information data files)

The last command from above makes you see that all generated locales are located in /usr/lib/locale/, you may remove any of them if unneeded. Each pack of locale information is a directory containing text files and other directories.

All locales that you want your system to support are listed in the text files in /var/lib/locales/supported.d/. These files have two columns, language tag and character map.

I want my system to know US-English only, so I have only one file there, called en, which contains just a single line:

en_US UTF-8

Error messages
If error messages are displayed when issuing the locale command, e.g:

locale: Cannot set LC_ALL to default locale: No such file or directory

make sure the file /etc/default/locale exists and has proper content, such as:

LANG="en_US"
LANGUAGE="en_US:en"

Get rid of unneeded locale data - Step by step

Now we know all the necessary details to get started with cleaning up our system's locale information:

Edit the locale file(s) in /var/lib/locales/supported.d/, and remove all unneeded locales (one locale per line)
Create and edit /etc/default/locale (see above for an example)
Delete all generated locale data: rm -rfv /usr/lib/locale/*
Re-generate new locales: locale-gen

That's all! Reboot your machine to make your changes take effect. Then run one or more of the locale command examples from above to ensure yourself that the result is as expected.

~# locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
~#
~# locale -a -v
locale: en_US.utf8      directory: /usr/lib/locale/en_US.utf8
-------------------------------------------------------------------------------
    title | English locale for the USA
   source | Free Software Foundation, Inc.
  address | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    email | bug-glibc-locales@gnu.org
 language | English
territory | USA
 revision | 1.0
     date | 2000-06-24
  codeset | UTF-8

There is a package for Debian/Ubuntu that can take care of removing locales and locale related files (e.g. man pages):localepurge. You can install/run it issueing:

sudo apt-get install localepurge

once installed, you should run this:

dpkg --configure localepurge

to ensure your language settings are set correctly.

to run it manually once installed (although you shouldn't really need to as it should run after every dpkg run automagically) you can just do:

sudo localepurge

Read the man page before using it, though. If you can get your stuff done without it it's probably safer to let go.

from this forums

ref:
1. LocaleConf on official documentation
2. Linux man page
3. Locale on wikipeadia
4. man localepurge


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

sudo apt-get install zram-config

Once the installation is done go ahead and reboot your machine.

To check whether it works:

cat /proc/swaps

You can download it here.

And to install

sudo dpkg -i zram-config_0.5_all.deb

Or use Gdebi


Ubuntu Server 12.0.4 VSFTPD connection timeout using external IP

If you use pasive mod you need port 20 also be forwarded on router to your server.


It sounds like Ubuntu's gui isn't completely starting up, or is mis-configured. I don't know what exactly could be wrong, you could be missing graphic or other hardware drivers or something mysterious. Maybe Ctrl+Alt+F7, or ...F8 ...F1 etc might have some interesting messages or get you to a terminal to see how mount looks or read logs or whatnot? But I'd take the opportunity now to backup any important data you don't want deleted, if it isn't too late already, Booting from a live CD/DVD/USB should be up to the backup task.

I've always read that upgrading Ubuntu has historically been a bad idea, it might often work, but it might often mess things up, like this. A better upgrade strategy advised has been to backup your home directory/data, backup any other data (maybe put them on a separate partition or disk, and if they're really important make a REAL backup to something that can be unplugged or some cloud) and then erase your old 13.04 (probably not 13.03 right?) and install 14.04. Then you can use your old home files if you want. If it were me, I'd backup, install 14.04 fresh, and then use old home.

Here's some good-looking info I found about Help for booting problems, the linked answer is specifically what to do "If an update or something else caused your boot problem" https://askubuntu.com/a/162078/129271  It's too much info to copy & paste here, 9 different steps/tips based on your specific hardware & type of problem, and the main question looks helpful too.


How to replace an atypical pattern in a text file using sed

What you need is a capturing group - you capture what you need in parentheses, and can reference it in the substitution. Like so:

 grep ^[[:space:]]*Target file | sed 's/\(#Gi[1-9]\/[1-9][0-9]*\):/ifInErrors\1\&ifInErrors\1:/'


Many of the answers above are much more reliable, but in case you've really messed it up, like I've done in the past, then you can try this as a last-resort option.

For this, you'll want to use TestDisk. Once you have installed and launched TestDisk on a LiveCD/USB:

Select [Analyse]
Select the disk that you want to recover from
Select the partition table type. For most people it will be Intel/PC
Following the analysis, TestDisk may find some partitions. If it finds your old data partition, simply have it written to the disk, and that should be that.
If TestDisk doesn't find any/the right partition, try a deeper search. Once again, if this finds the partition, simply write it to the disk, and you're done.
If, like in my case, TestDisk is unable to write the partition to the disk, you can try creating a new partition with the exact specifications (cylinders, heads, sectors, type) your old one had, and that should be able to recover it.

If data has been written to the disk where the old partition was, which is probably the only reason you would ever need to resort to step #6, then it is likely that some/many files will be corrupted; results may vary.

If you want to read the original tutorial where I found these steps, which includes descriptive pictures, click here.


Use local button styles during forwarded X11 session over SSH

This has apparently been discussed on SuperUser as well;
Suppressingfire's answer looks to me like the correct one:

Install your favorite Ubuntu GTK theme on the remote host as well;
Create a ~/.gtkrc-2.0 on the remote host, and include the theme's own gtkrc from it; e.g., if you're running Ubuntu with the ClearLooks theme on the remote host, you can add use this line:

include "/usr/share/themes/ClearlooksClassic/gtk-2.0/gtkrc";

Update from comments

The GUI way:

sudo apt install lxappearance gnome-themes-extras
lxappearance

With this method you also can change other properties like icons


dpkg: error: reading package info file '/var/lib/dpkg/updates/0228': Is a directory

Try to remove problematic objects

sudo rm -rf /var/lib/dpkg/updates/0228

and then continue the upgrade process

sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get dist-upgrade

If AppStream error persists, then follow solutions in this Q&A.

Some notes on your commands:

The command rmdir /0228 - is wrong. First / means addressing from root, so this path is not existent.


Which type of webcam to buy for skype v. 4.1.20 on Ubuntu v. 12.10?

A webcam for ubuntu 12.04 shut work for ubuntu 12.10 but for ubuntu 11.10 or older sometimes dosent work.
If your internet speed is quik i recomend you a one with HQ if it isn't d'ont buy it becouse de image is going slow, some seconds after. The most webcams are cometivile with ubuntu but it dosen't said.


If you upgrade kernel to 3.19.0-26, you won't need to do anything. This bug has been fixed there.

I suggest removing blacklist ideapad-laptop from /etc/modprobe.d/blacklist.conf if you did that.


Note: Make sure that the drive is empty; otherwise make sure that you have a complete backup of its content, because creating a partition will erase all data on the drive.

Open Dash, and search for Gparted, and click on it.  If its not installed, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install gparted

Once installed open the application, and enter your password.  Once it open, follow the step below:

If the drive is new, Click on Device, and choose Create Partition Table; otherwise skip to the step in the third image.

Keep the Default, and click Apply

Right click on the Unallocated space, and choose New

Create a 60GB partition.  Once you enter all the info, click Add

Then Right click on the Unallocated space, and choose New

Create a 20GB partition.  Once you enter all the info, click Add

Click on the Green check mark to Apply pending operations

And just click Apply to start.

Once done, just click Close, and that's it.


To turn off monitor in console, the command is the following:

sudo vbetool dpms off

To regain control of the console on pressing Enter key, I suggest

sudo sh -c 'vbetool dpms off; read ans; vbetool dpms on'


Configuring oracle 11g database on ubuntu 14.04 /u01/app/oracle/product/11.2.0/xe/config/log for details

See if Oracle-xe installation on ubuntu 14.4 helps ... I list a pdf document you can download that goes through step-by-step from the official download through conversion to .deb and installation to testing with SQLPlus.

-Frank


The --batch* options provide the features for scanning documents using document feeders. --batch [format] is used to specify the format of the filename that each page will be written to. Each page is written out to a single file. If format is not specified, the default of out%d.pnm (or out%d.tif for --format tiff) will be used. format is given as a printf style string with one integer parameter.

--batch-start start selects the page number to start naming files with. If this option is not given, the counter will start at 0.
--batch-count count specifies the number of pages to attempt to scan. If not given, scanimage will continue scanning until the scanner returns a state other than OK. Not all scanners with document feeders signal when the ADF is empty, use this command to work around them.
With --batch-increment increment you can change the amount that the number in the filename is incremented by. Generally this is used when you are scanning double-sided documents on a single-sided document feeder.
A specific command is provided to aid this: --batch-double will automatically set the increment to 2. --batch-prompt will ask for pressing RETURN before scanning a page. This can be used for scanning multiple pages without an automatic document feeder.


You can just install TkInter library from software-center or via synaptic.

(TkInter is standard GUI library for python)


Can't connect to Internet via D-Link Dir-600 Router on Ubuntu 14.10

Since it will connect with wifi at work, I would look at your wifi router settings and see if the encryption is set for WPA2 only with no TKIP or WEP as it seems that Linux has issues when WEP or TKIP is used


You just have messed up the MBR of windows. Just try to put a window DVD or USB(window setup on it) and start a system repair and fix the MBR of windows by the command at system repair:

c:\>bootrec /fixmbr

this command also worked for me to get back windows:

c:\>bootrec /fixboot

After that, you have to reinstall the grub loader. Just try a live CD of ubuntu and open terminal and write:

mount /dev/your_boot_partiton /boot
grub-install --root-directory /boot /dev/hda

Now You can dual boot both operating system properly. For me it worked well.
EDIT:
You can view your windows partitions on linux as fdisk-l and listing out the ntfs partitions.
On windows, similar can be achieved by

x:\>diskpart.exe
diskpart>select disk 0
diskpart>list volume

and from there you can come up to know the partition of the window


How do I increase the resize margin on windows?

As others have mentioned, it depends on the theme. Try a few out. What I frequently do instead is hold down Alt and middle-click (right-click in some environments) and drag to resize, which works anywhere on the window.

Note that many themes that seem to have a 1px border (or no border at all) actually do tend to have a generous invisible border just outside the window. You usually don't have to pinpoint a tiny window border to resize.


Which programs are tweakable in gconf-editor? and: What governs which ones end up there?

This is the original document for gconf. It's similar to the registry in that it's a centralized location for applications to store configuration information. Some apps abuse it and put data in there.

gconf-editor is just an application that shows you the keys and the values, it's not meant to be an end user tool. If an application is designed for GNOME you'll find it's configuration in there.

Note that gconf will be superceded by dconf in GNOME 3.


The quick answer is: No, it does not matter.

The format of a startup disk and the format of your hard drive is two completely different things. Ubuntu itself cannot be installed on a FAT or a NTFS partition and the installer will help you select either unpartitioned space or reduce your NTFS partition to allow for a Ubuntu system to be installed alongside of whatever you have already installed.

You may access you files on any FAT or NTFS partitions from Ubuntu after installation given that you didn't choose to destroy it in the installation process.

PS: If you already have Ubuntu installed the recommended way of upgrading is with update-manager. Press ALT+F2 and enter update-manager or write update-manager in dash.


As found here in this previous post:

How can I save settings on a Live USB?

You could use the USB stick as the boot device and even save documents and settings on the USB.

The article above references this entry from the Ubuntu wiki that should be helpful:

https://wiki.ubuntu.com/LiveUsbPendrivePersistent


Your OS is almost at it's end of it's support life and is currently in late maintenance support, so OS upgrades may not be available for your OS. Take a look at this link for more info.


The snap command gathers system configuration information and compresses the information into a pax file. The file may then be written to a device such as tape or DVD, or transmitted to a remote system. The information gathered with the snap command might be required to identify and resolve system problems.


Keybinding Alt+Right Arrow to Function Key

To change Ubuntu keyboard shortcuts, open the Keyboard settings, and go to the Shortcuts tab.

For changing Chrome mappings, see this superuser link.

For key-to-key bindings, see dconf-editor.


Yes It is safe, Lenovo and Dell have better support for Ubuntu and other linux distros. If you are a new user ubuntu installer gives and option of "erase disk and install ubuntu", "Install it alongside windows", "manual partitioning". I would recomend you use the "Install Ubuntu alongside windows" option, as you are new and can't do manual partitioning. Ubuntu will automaticaly give you dual boot space, boot and all partition setup. It wont disturb any of your windows don't worry. You will have 2 options when you boot windows or ubuntu. Have Fun !


dpkg can't find libicu even though it is installed

libicu52 and libicu42 are two distinct packages, therefore no: >=4.2-1 has no effect here.

You can grab the latest version of libicu42 from Lucid (Ubuntu 10.04), but use with care: that package is more than 4 years old, is unmaintained and may contain security bugs.


Change screen resolution in login screen and text console

Thank you, you got me almost all the way there with your line:

video=eDP-1:1920x1080

However it took me a while to figure that eDP-1 was your monitor.  You can see all the potential monitors in /sys/class/drm/

This one-liner, will show you what's connected:

for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done

In my case, the 4k panel was on DVI-D-1 and I no longer have eyestrain, so thanks again, Andy


Depends on what you mean. But if you REALLY deleted them and they are not in trash you could try with: http://www.cgsecurity.org/wiki/PhotoRec

I would definitly run it from a boot cd (and not install it on the harddrive) if the home-partition are the same as the root partition. Otherwise you will likely overwrite the lost files.

But you will need luck...


Use Startup Disk Creator instead of UNetbootin. It's already installed. See full instructions on the official site: Create a bootable USB stick on Ubuntu


Ubuntu 16.04 - are nouveau drivers or NVIDIA drivers in use?

To answer your question first, you are using the open source nouveau and not the NVIDIA drivers. This means that your attempt to install the proprietary NVIDIA drivers failed for whatever reason. If you want to use the NVIDIA drivers - use a different method from how you tried it by using the GUI.

First completely uninstall the NVIDIA drivers which you have tried to install in your attempt before.

Start the laptop, mark the Ubuntu entry in the GRUB boot menu and then press the E key.
Add nouveau.modeset=0 at the end of the linux line. Press the F10 key to boot the system.
Do not miss to set a Space between the last letter in the linux line and nouveau.modeset=0.

When the login screen appears press Ctrl+Alt+F1. Enter user name and password - execute :

sudo apt purge nvidia*
sudo reboot

Now install the latest stable NVIDIA drivers 378.13 and nvidia-primefrom the GPU Drivers PPA.

After the restart mark the Ubuntu entry in the GRUB boot menu again and press the E key.
Add nouveau.modeset=0 at the end of the linux line. Press the F10 key to boot the system.
 Do not miss to set a Space between the last letter in the linux line and nouveau.modeset=0.

When the login screen appears press Ctrl+Alt+F1. Enter user name and password - execute :

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

Execute lspci -k | grep -EA2 'VGA|3D' ... now you'd see : Kernel driver in use: nvidia

In case you still have problems to get the NVIDIA drivers working, you should consider to opt-in to the Ubuntu LTS enablement stacks, which provide newer kernel and X support for existing Ubuntu LTS releases. This could generally be a good idea, because you are having a quite new notebook. Opt-in to the Ubuntu 16.04 LTS - HWE - enablement stacks by executing the following command :

sudo apt install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04
sudo reboot

Before you perform it, remove all NVIDIA software as described in step 1 and reinstall the drivers as described in step 2 after you have installed the new kernel and rebooted the operating system.

Additional information : Boot into the BIOS to make sure that Secure Boot is disabled and that the NVIDIA graphics chip and NVIDIA Optimus are enabled (in some machines this option is available).


I assume cuz you are missing a / in front of dev?

fd = open("/dev/ttyUSB0" , O_RDWR | O_NOCTTY | O_NDELAY);

If I was you I would make a variable for this

/dev/ttyUSB0

That way the open and the error can show the same file name. Saves confusion.


Cannot run compiled files on file exchange partition on a MBP 3,1

Oh, well. I found a solution:

I reformatted the partition in MAC to HFS+ and disabled Journaling.
A bonus effect includes: Time Machine will also backup this partition!

Maybe I should have mentioned that the exchange partition was formatted FAT32.
I think the problem with FAT32 is that it cannot handle permissions so well.


Restart ubuntu in recovery mode. Select option 'run command line as root'. And revert changes to common-auth file.

I'm glad it helped me out, but I guess at the same time this is a huge security vulnerability as 2fa (or worse) can be disabled by anyone at any time.


The network setting in VirtualBox OSE (Ubuntu server on Ubuntu)

So, lets see if I understand your requirements:

Other LAN computers must not be able to access your server.
Your server must be able to access the internet.
Your host (Ubuntu box with virtualbox) must be able to access the internet (of course).
Your host must be able to access the server (which is a VM).
It's OK if your server can access other hosts on your LAN.

Probably the easiest way to do this is using the bridging option. Then on your server, set up UFW (Uncomplicated FireWall) to Drop (the GUI for UFW, called GUFW, calls this DENY) traffic from your LAN. Of course, make an exception for the host. This should block traffic to your VM from your LAN except pings. If you want to block pings, you may have to tweak some of UFW built in rules. (I could add more about this if you need it).

The other option is to set up a shared interface between the host and VM. Then on the host make an /etc/network/interfaces with a static address. You would do the same on the VM (except with a different address). Then you would login to your router for your LAN and add a route to the address block you used for your VM/Host shared interface using the host computer as the gateway. (You will probably want to have the host connect to the router with a static address so that you don't have to change the route all the time). You'll want to edit /etc/sysctl.conf as root and set ip.forward to =1. You would then set up UFW on the Host to Drop packet from the LAN destined for your server. (I'll expand+add details to this second option if you decide you want to do it this way and ask).


When can we expect Plasma 5.3 to be available for Kubuntu users

Kubuntu PPA

A list of available Kubuntu ppa's: https://launchpad.net/~kubuntu-ppa

The Kubuntu Backports PPA: https://launchpad.net/~kubuntu-ppa/+archive/ubuntu/backports is

  Backports of new versions of KDE Platform, Plasma and Applcations as
  well as major KDE apps for Kubuntu.

Main PPA

What is a 'main ppa' ?
Do you mean the Ubuntu repositories main ?: https://help.ubuntu.com/community/Repositories/Ubuntu

Or do you mean the Ubuntu backports: https://help.ubuntu.com/community/UbuntuBackports

By a Kubuntu developer: http://irclogs.ubuntu.com/2015/05/21/%23kubuntu-devel.html#t13:39

  BluesKaj  is plasma 5.3 in the regular kubuntu-backports yet or is the
  ppa still needed ?    13:39

  ...

  yofel BluesKaj: PPA, it won't get into
  backports 14:14


Click and drag it into the terminal, you will see it as:

mehmet@mehmet-ThinkPad-W530:~$ '/home/mehmet/Desktop/tsm'


How to turn-off the wifi power management in Ubuntu 18.04 live

If you create a Live version of Linux with "persistence" (Unetbootin, MultiSystem, etc...) then you can make changes that will persist even after rebooting. Otherwise, you can fully install Linux to a USB stick or USB drive which is more secure.

Easy Linux Tips Project: Speed Up your Mint!

When WiFi Power Management is on, proceed as follows.

In order to prevent typo's, copy/paste this line into the terminal (it's one line!):

sudo -i gedit /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Press Enter.

Now a text file opens. In that text file, you see the following content:

[connection]
wifi.powersave = 3

Change 3 into 2.

Save the modified file and close it.

Reboot your computer.


The user who asked the question Dual Boot Issue, Windows 7 64 bit Ubuntu 12.10 64 bit confirmed (further down in the comments section) that Grub2 can load Win7 even after the System Reserved partition is deleted.

But perhaps you can first make a backup of the partition, format it and make sure it works for you as well before deleting the partition.


root login - user@user:/home$ sudo -i root@r00t:~# Voila, I am root and I don't have root password, right?

Firstly, the example from your PC is a fake example because the hostname doesn't change when you do sudo -i, obviously. Here is a real example:

zanna@monster:~$ sudo -i
[sudo] password for zanna:
root@monster:~#

(I entered my own user password). Now since I don't actually need this root shell to do anything the first thing I'm going to do is exit it.

The main point of disabling root login is to prevent reckless behaviour by users. There's no reason to use root privileges unless you really need to: logging in as root all the time reduces the security of the system to that of a virus- and malware-prone Windows system.

If someone with malicious intent manages to get the password of a user with sudo privilege, then you're in just as much trouble as you would be if they had the root password. Ubuntu's design decision in disabling root login makes no difference to that.


dkpg "diversion" error after trying to install nvidia-340

Had the exact same hang onthe exact same kernel while trying to install nvidia-390.
Following this thread it seems like the install is waiting for a password, so I blind-typed it several times and the installation continued.

You should probably purge the package you installed and try to re-install it. Installing as root user would eliminate the need to type the password.