Will "Ubuntu for Android" (12.04) work with the Samsung Galaxy S2?

As mentioned on the Ubuntu for Android page, the product is marketed towards handset manufacturers rather than end users.  It is intended to be integrated into the firmware rather than act as an after market addition to existing phones.

None of the phones you've listed include the code in their firmware, and I don't think any have yet been released.


What's the best software to draw algorithms in Ubuntu

You could try a vector drawing application such as Inkscape. It is very versatile and should be suitable for any of your diagram drawing needs. GIMP, is also very good but is a raster editor and so is more suited to photo editing than diagrams.

Additionally, there are several specialised tools for drawing specific kinds of diagrams. For example, Graphviz is commonly used for drawing node graphs. Mermaid is a node module for drawing flow diagrams which also has a command line interface. Also, if you are writing your thesis in LaTeX then you could look at the Tikz and algorithms package.


wacom tablet crashes on first stylus click

I had the same problem with this exact model (Wacom 6100WL) on Ubuntu 20.04. When connected via usb tablet freezes the moment you touch the pad with stylus. Sometimes it resulted in desktop reboot.
Looking for solution I've done several things like installing input-wacom driver from source:

https://github.com/linuxwacom/input-wacom/wiki/Installing-input-wacom-from-source

or resetting X Driver configuration:

https://github.com/linuxwacom/xf86-input-wacom/wiki/Tablet-Configuration-3%3A-GNOME-3#remove-existing-configuration

However, in my case while moving the stylus I also noticed that my tablet incorrectly maps the screen. Additionally, the xsetwacom --list devices command was returning only two positions, when connected via USB:
Wacom Co.,Ltd. Intuos BT M stylus   id: 20  type: STYLUS
Wacom Co.,Ltd. Intuos BT M eraser   id: 21  type: ERASER

I found solution to this problem described here:

https://github.com/linuxwacom/xf86-input-wacom/wiki/Known-Issues#android-misdetect

It seems this Wacom model is affected by some detection issue that puts the tablet into "Android mode" when connecting it to Ubuntu system. So if the status led on your tablet is dimmed you have to hold two outermost buttons on the tablet for approximately 4 sec to switch it back to "PC mode". The led will brighten up and the device should work fine after that. Unfortunately, you have to repeat this procedure every time you connect your device.


Will resetting my Windows 10 (which is installed along with Ubuntu), mess up boot settings files?

As far as I know resetting Windows doesn't touch the boot partition. It should only remove installed programs, check Windows files, and if the option is selected remove user files.
It should be safe to reset Windows without affecting Grub or Ubuntu.


How do I configure mount for my new hard drive?

For doing it graphically, a simple way would be to use this in terminal:

gksudo nautilus

And then modify these to be Read & Write:


The problem is running 32 bit apps on a 64 bit machine. Try setting elf_i386 while linking:

ld -m elf_i386 -o file.o file


'Invalid or corrupt kernel image' error while booting from USB stick

You can verify downloaded Ubuntu images using md5sum. Here's a simple example to get the hash for a DVD image:

$ md5sum edubuntu-11.10-dvd-amd64.iso
f323d7e7b9686eb9c5babd94961e5df1 edubuntu-11.10-dvd-amd64.iso

Now you can compare that against the Ubuntu Hashes page. In this case they match up meaning what I downloaded matches the original copy (with 99.99something percent accuracy).

If you downloaded an ISO not on that list you can usually still find a hash but it depends on the ISO's source. If you grabbed it from the daily page, there is a MD5SUMS file in there but it obviously changes every day.

If you can't verify the image, download it again and check it right away. It might be worth using the Bittorrent download options as that has built-in checking.

The following doesn't apply to you (you've already swapped out USB sticks, strongly suggesting it's an image issue), but it might help people in the future.

If your image verifies correctly but still doesn't work, just try copying it to the USB stick again. In some cases you might find you have a stick that just refuses to work (I've had a couple of old, cheap disks not boot Ubuntu. I later found out that they were just shredding any data going in and out of them so chucked them. In other words: you might want to try another stick.


Yes, these error occurs because there is no xorg.conf in the directory /etc/X11/. You have to create a file or download it from somewhere else.Then you have to edit the file like you tried before.

To make your changes work, you have to restart your xserver by using this command sudo restart lightdm


Have the Linux kernel bugs that caused data loss when using a Samsung 850 Pro SSD been resolved?

Here is the patch for the SSD corruption bug. The bug was only for queued TRIM, not synchronous TRIM. Ubuntu either used the latter or has the SSD blacklisted. The older Samsung SSDs (including the 850 Pro) got a bugged firmware update introducing queued TRIM.
Slashdot article on the bug (link from the patch found in the article). It has some interesting comments. One of the conclusion back: If you do not use discard in /etc/fstab and just rely on the fstrim cron job, you should be fine.

So yes, fixed (in 2015).


Virtualbox Windows 10 Guest installation is freezing up in 14.04

Although this question is quite close to being off-topic here ...

Install VirtualBox 5.0 which has improved Windows 10 support.

Remove the old VirtualBox version :

sudo apt-get purge "^virtualbox-.*"

Update the software repositories :

sudo apt-get update

Download and register the ORACLE public key:

wget -q -O - https://www.virtualbox.org/download/oracle_vbox.asc | sudo apt-key add -

Add the ORACLE VirtualBox repository :

echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" | sudo tee /etc/apt/sources.list.d/oracle-vbox.list

Update the software repositories again :

sudo apt-get update

Install ORACLE VirtualBox 5.0 :

sudo apt-get install dkms virtualbox-5.0

Download the Oracle VM VirtualBox Extension Pack and install them by opening the Preferences.

To avoid any problems - it is recommended to restart the Ubuntu system before using VirtualBox.

Note for other users reading this answer, in case they use another Ubuntu edition as 14.04 :

You have to replace trusty with the Ubuntu edition you are using when adding the repository !

As of Ubuntu 16.04 the ORACLE public key to download and register has  changed :

oracle_vbox.asc has to be replaced with oracle_vbox_2016.asc !


I'm guessing that at any setting above zero "some" sound is being transmitted, albeit at a db level too low to be audible.  Turning up the gain on your speakers to max will of course help.

It sounds like you want to more rapidly increase the amplifier bias on the sound circuit.  Or just more amplification, at lower volume setting.  If the sound is being generated on the mobo this likely can't be done.  If you have an add-on sound card there may be ways to adjust the sensitivity to obtain the results you want.  SoundBlaster has been around forever so I'm sure they've had lots of user issues similar to yours that they've long since solved.

I have a BSEE and many years as an FCC Commercial Engineer.  I'd love to earn the bounty but I just don't see this as a Linux solution.


Try the minimal CD from here (choose the powerpc options) - when booting from the CD, use the option "install" and follow and accept the text prompts.  Eventually you will be offered a selection of stuff to install - one of which is xubuntu.

Remember to be connected to the internet via a wired connection - the minimal CD downloads all its stuff from the internet.


You can always use a for loop to iterate over a number of host names:

for machine in hostname1 hostname2 ... hostnameN; do
  ssh user@$machine <<< 'lshw; cat /etc/resolv.conf'
done

(<<< string is Bash here-string syntax, which can be used instead of a short here-document.)


Micromax 3G mobile internet modem not being detected

Since we have the same vendor & product ID, create your config same as what i have:

gksudo gedit /etc/usb_modeswitch.d/1c9e:9605

Paste this code on the editor

DefaultVendor = 0x1c9e
DefaultProduct = 0x9605
TargetVendor = 0x1c9e
TargetProduct = 0x9605
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"

Save and exit, then log in as root to your terminal:

su

Type & confirm your root password, and do:

modprobe usbserial vendor=0x1c9e product=0x9605

usb_modeswitch -c /etc/usb_modeswitch.d/1c9e\:9605

If you didn't receive any error messages, you'll then see a new Mobile Broadband Connection on your Network Manager (top right wifi icon)

you need to run this code every session but you can just add the code below to your /etc/rc.local (insert before the 'exit 0') so it will be part of your startup programs:

 sleep 10
 modprobe usbserial vendor=0x1c9e product=0x9605
 usb_modeswitch -c /etc/usb_modeswitch.d/1c9e\:9605
 sleep 20
 nmcli nm wwan on
 sleep 10
 nmcli con up id "your connection name here"

Hope this helps ..


I hope on opening it, you can see items like apps, ca, com, desktop etc. Clicking on them won't do anything. Click on the arrow next to them to load the submenu. This really pissed me off too.

click here for a similar question


Kubuntu 16.04 Themes do not apply correctly

Anwar answered in this post:

  I'm guessing you've installed some other GTK based Desktop
  Environments (Such as Lubuntu or Xubuntu) in your Kubuntu
  installation. Though the theme changes, they revert back to the ugly
  Striped look after a reboot.The solution is installing
  gtk3-engines-breeze.

  sudo apt-get install gtk3-engines-breeze kde-config-gtk-style

  After installing, Open System Settings -> Application Style -> Gnome
  Application Style and Change the theme for both Gtk2 and Gtk3 to
  Breeze Dark.

  If the theme don't change immediately after applying:

  If all the theme component doesn't change to Breeze Dark immediately,
  Go to Settings -> Workspace Theme and select Breeze Theme by clicking
  it, this will activate the Apply button. Now, change the selection
  back to Breeze Dark Theme by clicking it and finally Click the Apply
  Button.

I had the same problem as you, but already had gtk3-engines-breeze, and switching to breeze dark in gnome application settings worked for me.

Hope it helps.


Upgrade from 11.10 to 12.04 seems stuck at "Preconfiguring packages...." stage of installation

I encountered the same problem. But when I just about to abort the process, I saw a dialogue asking me to configure MySql's password. This dialogue was hidden and only showed up when I switched around with different application windows.


Unable to have Internet Connection with Huawei E367, Mobile Broadband

"How To:connect Huawei e367 modem with Ubuntu" - http://techspear.com/2011/08/connecting-huawei-e367-modem-with-ubuntu/


how to boot into Windows 7 if I only have grub now

You must restore the hard disk mbr.

Boot with a live-cd.

Download at:
http://sourceforge.net/projects/ms-sys/

The file:
ms-sys-2.2.0.tar.gz

Open a terminal.

Execute:

cd /home/ubuntu/Downloads
tar -xzvf ms-sys-2.2.0.tar.gz
cd ms-sys
make
sudo su
make install
ms-sys --mbr7 /dev/sda

For write a Windows 7 MBR to device.

This program is used to create Microsoft compatible boot records.

It is able to do the same as Microsoft "fdisk /mbr" to a hard disk.

It is also able to do the same as Microsoft "sys d:" to a floppy or FAT partition except that it does not copy any system files, only the boot record is written.


How to edit the interval of autosave feature on gedit?

To enable autosave -

gsettings set org.gnome.gedit.preferences.editor auto-save true

To change autosave interval

gsettings set org.gnome.gedit.preferences.editor auto-save-interval n

where n is the duration in minutes.


I don't usually answer my own question but in this case, the best solution was to use the Apache Traffic Server. See more at http://trafficserver.apache.org/.


How do I get IPv4 of the host OS(Windows) from the guest OS(Ubuntu) in Oracle Virtualbox?

You could install netdiscover

  sudo apt install netdiscover

after the installation just enter "sudo netdiscover" and it will give every IP of you LAN with the hostname and MAC Address


FFMPEG: Merge two audio and reduce noise in one of them

Combined command:
ffmpeg -rtsp_transport tcp -i "rtsp://input" -re -stream_loop -1 -i audio.m4a -filter_complex "[0:a]highpass=f=200,lowpass=f=3000[mic];[mic][1:a]amix=duration=shortest[a]" -map 1:v -map "[a]" -c:v copy -b:a 320k -c:a aac -f flv "rtmp://a.rtmp.youtube.com/live2/<stream-key>"

Changes:

YouTube needs audio, so -f lavfi -i anullsrc is often used to create silent audio for inputs with no audio. But you have audio, so this is not needed. Removed.
Added -re to audio.m4a for real-time speed.
You are stream copying with -c:v copy, so -preset veryfast is ignored. Removed.
You can optionally replace lowpass and highpass with bandpass=f=1400:width_type=h:width=2800.


How do you install ubuntu 13.04 on a custom built computer using a cd?

That hardware should work fine, but you'll need to set your BIOS to boot from a (1) USB drive, (2)  a DVD drive, or, worst case, (3) a CD which will do just enough of an install to get online and finish the job. The only reason you'd choose (3) is if your hardware won't boot from a USB and only includes a CD drive, not a DVD.

You'll need to download the .iso file, then create a bootable image on the USB or DVD. Simply copying the .iso file to a DVD or USB will not do. Assuming you're using Windows for this step on another system, you'll need software to do this. unetbootin has a Windows version and is free. Google is your friend.

When you've got the bootable DVD or USB, boot to it. Try to have a WIFI card installed, or ethernet plugged in. Play around with it, get online. When you're ready, double click on the Install icon on the desktop, and follow directions. You'll want to take over the whole hard drive. Don't be shy about starting over and re-installing a couple of times, there are several options you have to choose from, like whole-disk encryption, that you'll wish you'd chosen otherwise.


Windows play/pause keys on Xubuntu Spotify

Xfce/Xubuntu actually already includes the functionality to map multimedia keys to custom commands, so this can be done without having to install any extra packages or create any files:

Bind the keys
(This can also be done manually through Settings → Keyboard → Application Shortcuts)

xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioPlay -s "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" -n -t string
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioNext -s "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" -n -t string
xfconf-query -c xfce4-keyboard-shortcuts -p /commands/custom/XF86AudioPrev -s "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" -n -t string

Log out and log back in (alternatively you can close any apps that may be intercepting multimedia keys, in my instance this meant Google Chrome)

It worked for me on two different computers: A Dell Optiplex running Xubuntu 14.04 and a Thinkpad running Xubuntu 16.04.

I also added a few additional notes with more detailed troubleshooting, etc. here: https://gist.github.com/bmaupin/acc566ff44a8ebf20c2aa2707789e6ea


Ubuntu 11.04 and slow internet experience

I've had that problem in the past, and in my case found it was because I had IPv6 turned on and my service provider doesnt support it yet. Turning off IPv6 and relying solely on IPv4 fixed the issue for me.

Alternatively I've begun using openDNS For resolutions instead of using the servers from my provider.


Your new ~/.bashrc file overwrote a default one that was copied from the /etc/skel directory when the user account was created. Among many other things, that file provided the color prompt and aliases for ls and grep.

Instead of creating a new ~/.bashrc, re-copy the default one and add your function definitions to that - or create a separate file for the functions and source it from the original ~/.bashrc


Differences between AWS Ubuntu Image and a fresh install?

If you're trying to run a virtual environment as similar to AWS as possible, then the easiest thing to do is to use the exact images that you'd boot on EC2.  Ubuntu "cloud images" are made available for download at http://cloud-images.ubuntu.com/releases/.

The "cloud images" are pretty much vanilla Ubuntu Server installs with the cloud-init package added.  In 12.04, they also have a 'ubuntu' user already added, but in 12.10 and beyond, cloud-init creates that user on first boot.

For information on how to use the images outside of a cloud, see wiki doc, or a blog post that I wrote.


You can install gnome-tweak-tool and customize more than just icons (fonts, window decoration etc.).

The 'bad' thing is, it will also download some gnome-shell dependencies, but there aren't a lot of them (about 25MB in my case). (The good thing is that you can test gnome-shell, which is kinda cool ;)).


newbie question - postfix and s-mail - ""Can't canonicalize""

I was having the exact same issue but fixed this by doing the following:

opening my postfix main.cf file:

sudo nano /etc/postfix/main.cf

and adding the following to the end of the file:

home_mailbox = Maildir/

and restarting postfix.

sudo /etc/init.d/postfix reload
sudo systemctl restart postfix

At that point running

echo 'init' | mail -s 'init' -Snorecord my_username

returned

Can't canonicalize "/home/my_username/Maildir"

but when I ran

ls -R ~/Maildir

The mail directory was there!! Success!!

Apparently, when you change parameter home_mailbox in postfix, you need to adjust the configuration so it will search mail in new location. With home_mailbox = Maildir/, postfix will store the email in Maildir directory relative with user home directory.

Hope this helps future mail pioneers.


Where did the easy_install and pip packages go?

pip has always been in package python-pip and easy_install in python-setuptools.

Ubuntu 10.04 has a package pip but that's a different program ("Perl Installation Program").

You seem to have installed your own version of setuptools in /usr/local/.


what text editors are available for ubuntu

If you want something like an alternative for Notepad++ the best option is Gedit or Emacs:

Geany
Emacs
Aptana
Bluefish
gedit (default in Ubuntu)


Language error prevents me of creating folders at Desktop

It sounds like when the system changed the names of the folders, it didn't update the links to the old folders. This would explain the problem with your desktop.

All I can recommend at the moment is going to each folder, right clicking and selecting "make link", then renaming the link to the old, spanish name for the folder. It's not an ideal solution but it's all I know of.


What does Ubuntu do when all RAM gets used up and there's no swap?

Ubuntu 20.04 kills a process.
I noticed it myself on a new GCE 20.04 server: I got a notification one of our instances was acting up and before I could log into it Ubuntu had already killed one of 9 MySQL processes. After some investigation it was the one consuming more than 70% of the memory of the server.
This will give you information about "killes processes":
journalctl -a | grep -i "killed process"

dmesg and syslog will also show notifications from oom-kill
kernel: [{timestamp}] Out of memory: Killed process {id} ({name}) {process information} oom_score_adj:{number}

I did not see that happen in 18.04 or older versions. The server would just stay slow until I killed a process myself. This works on processes, not when you hibernate/suspend: that will require swap and if there is not hibernate/suspend won't work

Story on out of memory killer:

Whenever your server/process is out of memory, Linux has two ways to handle that, the first one is an OS(Linux) crash and your whole system is down, and the second one is to kill the process (application) making the system run out of memory. The best bet for the second option is to kill the process and save the OS from crashing. In short, the Out-Of-Memory Killer is the process which is responsible for terminating the application to save the kernel from crashing, as it only kills the application and saves the entire OS from crashing. Let’s first discuss how OOM and works and how to control that, and later we will discuss how OOM Killer decides which application to kill.

Personal comment: "as it only kills the application" is probably wrong. I noticed it killed a process and not restart the mysql service.


AMD Ryzen 2500 here
I have to frequently edit my /boot/grub/grub.cfg file for the timeouts to get Grub menu to appear.

sudo nano /boot/grub/grub.cfg

ctrl=w    "timeout" enter

and edit these two to a positive number in seconds. they default back to zero with grub update, and did it this week with nothing else done.

if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi

to edit it though you need to boot onto a live CD  and mount your main partition


Trouble with getting edimax ew-7811un drivers installed on older dell desktop

Try opening Additional Drivers to see if Ubuntu proposes proprietary drivers for this wireless device.

See also:

edimax EW-7811Un USB wireless - sees network but fails to connect to it
Compile and install rtl8192cu driver


bash terminal/console strange overlapping behavior

[SOLVED]
I tested for this behaviour using the Ubuntu 11.10 live cd and did not have the same
problems in terminal, so I guessed that a change I had made was likely to be the cause.

I had made some changes to the .bashrc file while following a tutorial on customising the
bash user prompt, which must have caused this problem.

After restoring the original .bashrc file from backup, the problem with overlapping lines
is resolved.

Thanks for your response Huckle.
Cheers


Does 32-bit PAE with more than 4GB RAM improve speed?

PAE with 8GB RAM may be faster than a machine with 4GB RAM, by avoiding paging.  PAE with 8GB RAM will also probably be slower than a 64-bit kernel with 8GB RAM, due to PAE overhead.  Just how much faster or slower depends on what you use the machine for.

Flash works reliably on 64-bit Ubuntu, so it's no longer a reason to install a 32-bit OS. 32-bit binaries will just run on 64-bit Ubuntu without you needing to do anything special.  So the short story is, today, if you have 4GB or more of memory, you should just install a 64-bit kernel.

Phoronix did some benchmarks showing a substantial disadvantage to PAE on some tasks.

More RAM uses more power, and gives more opportunities for something to fail.  The main benefit is that with more RAM, your machine needs to do less physical disk IO, but this is only a benefit up to the point that all the data it touches fits in memory.  So, there is no point installing more memory than will actually be useful to fit your typical working set.

  specifically for watching streamed movies, playing videos, video encoding etc

The first two don't need a lot of memory; only enough to make sure your browser and video player are not paging.  The second is mostly cpu-bound, not ram-bound.

So, either 4GB or 8GB memory would be fine.  If you expect to do development or other more memory-intensive tasks later, get 8GB.  Either way, install a 64-bit kernel.

The AMD deck "Myths and facts about 64-bit Linux" from 2008 makes these points:

64-bit mode allows more registers, wider registers, and new instructions, so both applications and the kernel can be more efficient, even ignoring the issue of memory use
64-bit mode is often faster even on machines with under 3GB RAM
32-bit apps run very well on 64-bit kernels

Since 2008 most applications will be primarily developed in and tuned for 64-bit mode.


Why is Rosetta Stone the wikipedia page on Ubuntu install?

This is just a web-page showing that there is a built-in web-browser called Firefox...

From this bug-report the representation of "web" was discussed - one proposal for later versions of ubuntu was the One Laptop per Child

From that bug report - it's going to be interesting if this "web" part of the slideshow will be updated to OLPC for 12.04.

If you were looking for a left field answer - the Ubiquity developers were presenting a subliminal message about Launchpad's Online translation tool called Rosetta aka "Rosetta Stone".

Either way I wouldnt read too much into this.

N.B. if you are interested in installing Rosetta Stone - according to wineHQ the older versions of Rosetta works well in Wine.


This isn't a certain solution, but it may help you narrow it down and possibly fix it. If you have a USB thumbdrive, pull "Multisystem" off the Software Center. It allows you to install live (and persistent) Linux OSs to the stick you can boot up with (you just need the .ISO images to feed it. Other Operating Systems too).

Then, just tell your system to boot from USB. Typically re-booting and hitting either F2 or F11 while the first flash-screen appears will drop you into BIOS, and you can put USB temporarily at the top of the boot device list.

This accomplishes two things... Multiboot comes with its own GRUB (and GRUB tools). It can give you a totally independent assessment of your partitions. Then when you boot up into a distro, you'll have a clean OS to compare to working OS.

Sorry I can't be more help, but that's how I figured out I had a corrupted GRUB2. I then just re-ran GRUB from the USB key and that fixed it.

When you're done, go back to BIOS and re-set your primary boot device. Leaving USB or CD ROM at top leaves you vulnerable (but you already know that : ) Hope that helps. I'm far from a linux guru; but it did it for me. First thing I do on any stick is install Puppy Linux using Multiboot. Just for hell or high water...


Problems with instalation of Zend-framework

You could try another route:

Rather than installing Zend Framework system wide, you could use composer and pull ZF as your project dependency. Usually it is much cleaner way to install ZF and similar packages.

Once you have composer up and running, all you need is this in your composer.json file:

{
    "require": {
        "zendframework/zendframework1": "1.*"
    },
}

This article might help you going: http://adamcod.es/2013/05/10/composer-and-zend-framework-1.x.html


Forcing Nautilus to use Kerberos (Active Directory) authentication

I'm not too familiar with Microsoft's Active Directory or Kerberos, but hopefully this will help you out.

Nautilus uses gvfs as it's backend for mounting everything. Anything mounted with gvfs shows up in the navigation pane on the left. I'm not sure if it supports Kerberos authentication, but it does support mount smb shares.

sudo apt-get install gvfs-bin
gvfs-mount smb://<server name>/$USER


Ubuntu 13.04 not booting after clean installation

Seems like you have to reinstall. Use a 64bit disk of Ubuntu. Set up your firmware (BIOS) to boot the disk in UEFI mode.

In your BIOS, disable QuickBoot/FastBoot and Intel Smart Response Technology (SRT). If you have Windows8, also disable FastStartup.

Boot your PC using the LiveDVD or LiveUSB and choose "Try Ubuntu". If you get a Secure boot or signature error, you may wish to disable SecureBoot as described here, then retry to boot the disk.

If the other systems (Windows Vista/7/8, GNU/Linux...) of your computer are installed in EFI mode, then you must install Ubuntu in EFI mode too.

If the other systems (Windows, GNU/Linux...) of your computer are installed in Legacy (not-EFI) mode, then you must install Ubuntu in Legacy mode too. Eg if your computer is old (<2010), is 32bits, or was sold with a pre-installed Windows XP.

Partitioning:
Mount point: /boot/efi (remark: no need to set this mount point when using the manual partitioning, the Ubuntu installer will detect it automatically)

Size: minimum 100Mib. 200MiB recommended.

Type: FAT32

Other: needs a "boot" flag.

Source:
https://help.ubuntu.com/community/UEFI
https://help.ubuntu.com/community/UEFIBooting


Upgrading to Ubuntu 20.04 is showing problems

Your description is incomplete, but it seems like you have two possibilities:

You have discovered an issue with the VLC package.
Answer: Test to see if you can reproduce using a LiveUSB's "Try Ubuntu" environment. If so, file a bug report. If not, move on to #2.

Your system is broken due to a botched unsupported dist-upgrade.
Answer: Backup and clean-install. Next time, use do-release-upgrade, which is the tested and supported method.


This could be caused by nautilus. I had the same problem, when I used nautilus, in xfce the same problem happened.Instead of using nautilus in terminal or in your key board settings, use Thunar, then your file manager starts.


Considering it is a laptop, try plugging it into your wall port (cat5e)If it connects through a wired connection, It might be your wireless driver. If this is the case, find your brand/model wireless card and find a Linux driver then install from there
If all else fails, just buy a wireless adaptor from a raspi retailer and you should be good;)


What's the difference between a PPA and a repository?

I have to disagree with the accepted answer to this question. I would have written the following as a comment to that answer, but it's too lengthy.

A repository is a collection of packages, hosted on an arbitrary server.

A PPA is also a collection of packages, hosted on the Launchpad servers.
In particular, a PPA is not a single package, as that very ambiguously formulated point "PPAs are packages (/collections of software)." in the accepted answer may lead to believe. Additionally, a package is not (necessarily) a collection of software, which makes that point even more confusing.

Thus, a PPA is a special kind of repository. Like a square is a special kind of rectangle.

The main difference is the hoster. Basically, if you are a programmer and want to develop and distribute your own packages, and you have your own root server in the Internet, you can set up your own repository on it. Great! But what if you don't have a root server, and you don't want to pay for one, but still want to develop and distribute your own packages? Well, then there's Launchpad. It's offering PPAs as a service for exactly that use case. You can basically create your own repository on Launchpad, and manage your own packages there.
Let's have a look at an illustrating example.

First, assume you want to install the MATE Desktop Environment (a Gnome 2 fork) on Ubuntu Saucy Salamander. It is not contained in the official repos, nor do the devs maintain a PPA. Instead, they have their own repo. You could add it like so:
 $ sudo add-apt-repository http://packages.mate-desktop.org/repo/ubuntu

This would result in the following entry being added to /etc/apt/sources.list:
 deb http://packages.mate-desktop.org/repo/ubuntu saucy main

Second, assume you also want to have a look at Cinnamon  (another Gnome 2 fork). This is contained in the official repos since 13.04, but there's still a PPA maintained by the devs, useful for instance if you're interested in getting new releases quicker. You could add it like so:
 $ sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable

This would result in the following entry being added to /etc/apt/sources.list.d/gwendal-lebihan-dev-cinnamon-stable-saucy.list:
 deb http://ppa.launchpad.net/gwendal-lebihan-dev/cinnamon-stable/ubuntu saucy main

As you can see, the latter entry is quite similar as the one made in point (1). In fact, both are just URLs of repositories from Ubuntu's perspective.

In fact, you could even add the Cinnamon PPA with the same syntax as in point (1), although this is not the typical way for adding PPAs:
 $ sudo add-apt-repository http://ppa.launchpad.net/gwendal-lebihan-dev/cinnamon-stable/ubuntu

This would result in the following entry being added to /etc/apt/sources.list:
 deb http://ppa.launchpad.net/gwendal-lebihan-dev/cinnamon-stable/ubuntu saucy main

This is the exact same entry as in point (2). Only the files that these entries are written to are handled slightly differently, but in the end, it makes no real difference. In both cases, you will end up with the packages from the Cinnamon PPA being available on your system, always after the canonical sudo apt-get update, of course.


grep: etc/resolv.conf: The archive or directory does not exist

You will find the file at /etc/resolv.conf. The initial / is important, and specifies the root of the Linux/Unix file system. etc/resolv.conf looks for a directory called etc in your current directory, and looks for resolv.conf there (where it's not).


Open file with any application using xdg-open

If you want to open a file with a specific application, use that application's command directly instead of xdg-open. xdg-open's purpose is to open the file with the associated application.

For example, with the default media player, Totem, the command is totem, so you'd do:

totem path/to/file.avi

If you want to use mplayer, do:

mplayer path/to/file.avi

and so on.


Why does NumLock LED not shine while NumLock mode is on?

This is a known little bug -> Num LED state does not correspond with actual state after boot.
It happens when starting to type too early after booting the computer.
It also happens when opening an application with root privileges too early. If you wait about one or two minutes, it works flawlessly. As it is one of them 'not so important' bugs ... it still seems to be not solved.
You may want to confirm the bug on launchpad to increase the importance. You may want to check out this answer as well -> Num-Lock LED state does not correspond with internal state.


ubuntu on 14.04 hyper-v connection problem

Just delete the bridge connection ( between your real NIC and your virtual vEthernt (of Hyper-v))Share internet connection like in the link below and it will work. https://superuser.com/questions/489746/ubuntu-not-connecting-to-network-in-hyper-v


Revised, incorporating Dmytro's insight regarding the necessary xhost commands, better use of sudo making this much simpler, & equiping /home/foxy/ with the necessary files.  Works for me on 16.04 with plain Openbox (like a leaner Lubuntu).

Yes, you could do that. Create another user account, we'll call it "foxy", either with something like System Settings, or from a command line:

sudo adduser foxy

Now you need to provide that user with the config files needed to use Firefox. You can probably do that most properly by relogging as foxy and doing it from there, but I found it was sufficient to copy the "hidden" "dot files", like .config and .mozilla from my home directory into /home/foxy/ & then:

chown -R foxy:foxy /home/foxy

At this point, since you shouldn't need to ever log in as foxy any more, it might be a good idea to reset foxy's password to some absurdly long and random string. Seriously long and random since you won't need to remember it. This is similar to the approach used by Ubuntu to semi-disable the root account. This isn't a real big deal since foxy isn't going to be in the sudoers file anyway, but as long as we're being seriously hard-ass 'noid, let's go all the way. Since you will need to enter it twice you'll want it in the clipboard or in an open terminal or editor to copy it from. But be careful not to write it to a drive. You could even make and mount a ramfs filesystem and write a text file to it, then open the text file and create your long random string in it and copy from there. For special high security purposes ramfs is superior to tmpfs because it never gets written to swap. (But be careful using it more generally because it will cheerfully use ALL your RAM if you keep putting things in it.) Anyway, to change foxy's password, use:

sudo passwd foxy

Now we make 2 tiny scripts. We'll call the first one ffx and put it in some directory on the path. Like this:

#!/bin/bash
# This file, ffx, needs to go in a directory on the path
sudo /path/to/a_password_exempted_directory/ffx_2.sh

(You could probably do that as a function or alias and load it with your bash profile or one of the similar files, instead of making it a script on your path, if you prefer, but I haven't tested that.)

The other we'll call ffx_2.sh and put in a directory that has been exempted from the requirement of typing a password with sudo with the appropriate lines in /etc/sudoers. Like this:

#!/bin/bash
# This needs to go in a directory that is exempted from password requirement in /etc/sudoers

# Allows foxy to access the logged in user's xserver
xhost nis:foxy@

# starts firefox as foxy with home set to /home/foxy
sudo -u foxy --set-home firefox

# Removes foxy's privilege to use the xserver
xhost -nis:foxy@

I'm following Dmytro's 'noid approach and turning on foxy's access to the x server only when using Firefox and turning it off afterwards. I don't think this is actually necessary. Maybe it is more secure, but that isn't obvious to me. I think you can actually just run the first xhost command:

xhost nis:foxy@

ONCE & then foxy's access will persist across reboots. If I'm right and you do it that way, you can take both the xhost commands out of the script, after running the first command once.

Either way, you can invoke this with ffx from a terminal, run box or manually edited menu like the Openbox menu or 9menu. You can make a desktop file for it and put it in /usr/share/applications and adaptive menus like the debian menu from the package menu or, I'm told, Launcher in Unity, should pick up on it.

To anticipate an objection, this is NOT a security risk like plain sudo firefox or gksudo firefox would be. Sudo and similar commands are fundamentally about doing something as some other user. But they are used to do something AS ROOT so often, they default to -u root (which you can also do explicitly) to save keystrokes. It is not using sudo with Firefox that is dangerous, it is using sudo to run Firefox AS ROOT that is dangerous. When you use the -u option and specify another ordinary user, you aren't running Firefox as root.

Comparison to the script-blocking approach:

cons:

more work to implement than noscript or librescript
less of a "standard" approach
script blockers CAN reduce resource usage, this doesn't

pros:

Firefox can access all functions of script dependent websites.
Doesn't require any tweaking after initial implementation.
Easier to use.
You can STILL use Firefox extensions to reduce resource usage. Noscript isn't the only option for that. Flashblock, FlashStopper, Gifblock, Image Block, etc.


Dual monitor, with a low resolution projector

Your problem sounds very similar to mine.

My summary answer is "trial and error" (unfortunately).

My detailed answer below...

I've found hit-and-miss detection of projectors after running 12.04 with Nvidia configured with Twinview.

I run an app called "disper indicator" - see this link for more details:
https://launchpad.net/~nmellegard/+archive/disper-indicator-ppa
(It's not available in the standard repositories).

This helps but is not a silver bullet due (I believe) to the underlying nvidia drivers.

This app allows me to switch easily between monitors, or to a "clone" setup.  "Clone" is particularly useful for me as I'm a project manager and I often need to share my screen.
I also use a web conferencing service who's linux client only works when sharing a single screen.

Anyway... enough of my use case...

My steps are:

Connect projector
Select Disper->Monitor Setup

2a. I then select one of the dual screen options.  I don't go straight to clone.  This very often ends up locking up the screen; forcing me to reboot.

If this doesn't work (sometimes my laptop shows it's screen, but not the projector), I then open up "nvidia-settings" and just try setting different screen resolutions on the projector screen until it works.  For some reason the auto-detect capability doesn't seem to work too well
Once I have a working dual screen config, I select "clone"
If this doesn't work - there are two failure modes:

Black screen - hang - requires reboot
main screen remains the same, projector doesn't display anything.

Regardless of the failure mode, the solution is to get to dual screen again, go to nvidia settings again and manually set the resolution to be the same.
Sometimes the setting of resoution doesn't work, and I just select a different resolution, hit apply, then select the one I wanted again and hit apply.  Then it usually works.
Once the screen resolutions are correct, I hit clone, and mostly it works.

All convoluted I know - but obviously the drivers are buggy.  Very frustrating.


Ubuntu Server randomly gets DHCP address instead of keeping static IP

Turns out this was a simple not having rebooted problem.

I had changed my /etc/network/interfaces to set the static interface, but never rebooted. This left dhclient running for eth1, which eventually went to renew the DHCP address. Killing dhclient fixed the problem, and with the interfaces file defining a static IP, it was not started on the next reboot.


i am just adding more information that may help..
using unetbootin u may found that your computer cannot detect your cdrom.

just mount your fd to /cdrom

how to do:

on ubuntu install press alt+f2 this will direct you to command line interface

mount your fd as /cdrom

using this command

mount /dev/sdb /cdrom

note: sdb is your flashdisk, is not always sdb sometime sdc or else

once your fd mounted to /cdrom you can continue your install and back to install page by pressing alt+f1


installation failed - cannot execute binary file

Several things to note with your situation:

You downloaded the wrong file for that program or you picked the 64 bit version when your system is 32 bit
Your system is 32bit so you need the 32bit version of that software.

Based on our conversation, a re-install of Ubuntu 64bit would be in order if you have nothing to lose, else backup your old system and then re-install. Since 32bit systems aren't the norm these days.

To check the architecture of your run uname -m from a terminal:

x86_64: 64 bit

i686: 32 bit


This was resolved many weeks ago. I used 19.10 with an 4GB RPi4 from the end of March and updated a few days ago to 20.04. The system monitor shows 3.7GB available. The remainder is used as GPU memory.


I would advise you to take a look at this Ubuntu Forums posting - though it is written for 10.04.

However there are alternatives to installing this package from Amazon: there are alternatives to the Amazon MP3 Downloader. Pymazon is an option, and there is also now a Banshee extension to do the job.


how to reverse/reset code (given below) of dock click minimizing?

Use the reset command.
gsettings reset org.gnome.shell.extensions.dash-to-dock click-action

This will reset the click-action key to the original default.


12.04-Laptop freezes everytime I close my lid

I installed Xscreensaver to get rid of this problem:

sudo apt-get install xscreensaver xscreensaver-data-extra

then remove the gnome screen saver:

sudo apt-get remove gnome-screensaver

then go to the "startup applications" and press Add and in the command type:

xscreensaver -nosplash

In the name and description you can enter anything you want, the press Save and close

log out and log back in and problem gone!


The normal means to the set the default run level to boot to GUI is to run the following command:

sudo systemctl set-default graphical.target

Then do a system reboot.


I recovered by installing the backport of the Quantal kernel and X11 plus the nvidia-current package and then deleting my /etc/X11/xorg.conf file.  If you  want to go that route I would take backups of anything you consider worth holding onto.

sudo apt-get install linux-generic-lts-quantal xserver-xorg-lts-quantal
sudo apt-get install nvidia-common
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf-$(date '+%Y%m%d')
sudo reboot

Some details of the result:

$ lsb_release -d
Description:    Ubuntu 12.04.2 LTS
$ uname -rvp
3.5.0-27-generic #46~precise1-Ubuntu SMP Tue Mar 26 19:33:56 UTC 2013 i686
$ lspci -nn | grep VGA
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218 [GeForce 210] [10de:0a65] (rev a2)

My dmesg (recorded to /var/log/syslog) is still receiving a stream of these but the X session looks alright.

[  580.545981] [drm:drm_edid_block_valid] *ERROR* EDID checksum is invalid, remainder is 128
[  580.545984] Raw EDID:
[  580.545986]      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[  580.545988]      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[  580.545990]      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[  580.545993]      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[  580.545995]      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[  580.545997]      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[  580.545999]      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[  580.546002]      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[  580.546008] nouveau 0000:01:00.0: DVI-I-1: Ignoring invalid EDID block 1.

If I had tried downgrading that would leave me with security flaw:

- CVE-2013-0131:
  NVIDIA UNIX GPU Driver ARGB Cursor Buffer Overflow in
  "NoScanout" Mode. This buffer overflow, which occurred
  when an X client installed a large ARGB cursor on an
  X server running in NoScanout mode, could cause a denial
  of service (e.g., an X server segmentation fault), or
  could be exploited to achieve arbitrary code execution.

Update: turns out I'm now running the open-source Nouveau drivers now.  They didn't work for me in the past but the ones they have now are able to detect the modeline for my monitor despite the warning about EDID.


Under the [global] section of the smb.conf file add:

wins support = yes
name resolve order = lmhosts hosts bcast wins
workgroup = "Name of workgroup" #usually WORKGROUP in Windows
security = user

Then, if you want users to be able to browse files, you need to add a share:

[Share]
     comment = Network Share
     path = /home/share
     create mask = 0700
     directory mask = 0700
     guest ok = yes
     browseable = yes
     writable = yes

Then restart samba:

sudo restart smbd
sudo restart nmbd

Or:

sudo /etc/init.d/smbd restart
sudo /etc/init.d/smbd restart

Edit:  Here is the link I was talking about in my comment


Controlling volume level & playback with Logitech Revolution MX mouse buttons

Turns out the handy utility btnx  does the job quite well.

See this Ubuntu Forums thread

It's worth getting both btnx and btnx-config.  The latter provides a UI for discovery of mouse buttons, and subsequent configuration.

I managed to achieve the setup I described in the question, minus the play/pause mapping of the search button (this wasn't detected by the btnx-config) by mapping the following key commands:

KEY_VOLUMEUP
KEY_VOLUMEDOWN
KEY_MUTE
KEY_NEXTSONG
KEY_PREVIOUSSONG


Yes, NS2 is available in 14.04 repository. Run the following to install it:

sudo apt-get install ns2


You should check out WiiCan. It sounds like it would be able to accomplish what you are trying to do.


compile error: library is installed (apt-cache policy shows it) but pkg-config does not find it

Usually, in the Ubuntu packaging scheme, files that are needed for software development using a library (including header files, and pkg-config .pc files where provided) are split off from the runtime library itself, and provided as a separate package.

Most often that package has the same name as the runtime library package, plus a -dev suffix, for example

libgimp2.0 - Libraries for the GNU Image Manipulation Program
libgimp2.0-dev - Headers and other files for compiling plugins for GIMP

however in this case it appears that the development package corresponding to libmpdclient2 is simply libmpdclient-dev:

$ apt-cache policy libmpdclient2
libmpdclient2:
  Installed: (none)
  Candidate: 2.9-1ubuntu1
  Version table:
     2.9-1ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

while

$ apt-cache policy libmpdclient-dev
libmpdclient-dev:
  Installed: (none)
  Candidate: 2.9-1ubuntu1
  Version table:
     2.9-1ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

Installing the libmpdclient-dev package should provide the necessary development files and keep pkg-config happy, but you have to use the correct package name:

pkg-config --exists --print-errors libmpdclient


Which is the recommended OS for HP Mini Netbook

I suggest to install Xubuntu or Lubuntu. Any of this very lightweight. As you have more than 1gb RAM, any of this is fine. Although Lubuntu is lighter, my personal option is Xubuntu due to personal issues with Lubuntu on an old (very old) Thinkpad laptop. I use Xubuntu on my laptop (Intel Core 2, 4GB RAM) and it works like charm.


Are resized or moved partitions in any way worse than unmanipulated partitions?

No, assuming there are no errors during the move or resize operation, there is no difference between the original partition and the modified one. It's just copying of digital data from one place to another, there is no degradation of data like you would get with an analog videotape or something.

It is possible that other things that refer to the locations of partitions, such as boot loaders, might be affected by the change if they are not properly updated.


Is Linux Swap really needed? Accidentally Deleted

If you have 4GB or more RAM, I would say you most likely don't really need a SWAP partition. If you have less, I would recommend to have one.

In case you want to add it back:
Just use gparted, for example, to figure out the UUID and/or your device letter and add back the line in /etc/fstab to mount it.

In case you just want to remove your warning:
You can simply remove the line of the swap partion from /etc/fstab, and it won't show up again.


Installing Imagick extension on PHP 7 nightly on Ubuntu 14.04

OK, so I did make some pretty basic mistakes here, though hopefully not obscure enough that the eventual solution won't help some people in the future.

The first issue was that I was indeed running phpize from PHP 5 - I thought I had symlinked this properly but I hadn't.

So aside from that, the first command to run was:

/usr/local/php7/bin/phpize

My second mistake was that ./configure also assumed I was running PHP 5, so to correct this I had to run:

./configure --with-php-config=/usr/local/php7/bin/php-config

Finally, make and make install worked and copied the files to the correct location automatically.


Permanently logged out because CalmTK told of a malware to delete

one of which was /usr/share/mime/mime.cache file.

When I see that the 1st thing I would think: false positive. That file is owned by "root" so how do you expect a virus to edit this file if it does not have your admin password?

1st advice: learn about Linux security. It will prevent you from making mistakes. Remember to keep your admin password safe. For instance: don't input it when asked when you know it should not be asked. When you install software you can be asked. When you use sudo it will be asked every 15 minutes. When you get asked when your browser opens ... don't input it. =Think first=

  After putting it in quarantine, and restarting the machine, I am not able to login into my administrator account.

I would not let you in either ;-) What you did here is far worse than any virus would be able to do.

  Can't restore what's on another accounts neither can't access any files to undo. How can this be resolved.

From a tty (Ctrl+Alt+F1):

sudo update-mime-database /usr/share/mime

This will not  restore any mime types added after your installation.
Or boot from a live session and restore the file (I assume you know where it was moved to?). If you do not know how to do this you could also reinstall without formatting.

2nd advice:

Please ditch ClamTK (anti virus on linux just does not work: the amount of false positives is so high it is utterly useless) and learn the basics: use a good admin password and keep is to yourself, don't download random software, don't install software you do not tend to use, stick to USC and maybe PPA's from launchpad, use online mail (like gmail), reguraly check your outgoing connections (from your router) and there is no need for anti-virus software.

For a bit more advanced user: create a partition outside of / and /home and store your personal files there. Create a backup routine for this partition. That way you can always format / and /home and mount your user partition. When there is a problem restore a backup.

This makes it far more easier to fix problems.


How to change the constrast on ubuntu with terminal or using a KDE tool?

The way to run this from the terminal is to use the command:

kcmshell4 kgamma


same problem as you. This worked for me:

gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"

Source: http://situmam.blogspot.com.es/2012/05/emacs-keybidings-in-ubuntu-1204-precise.html


Can not Install `banshee-extension-lyrics`

banshee-extension-lyrics is not available in Ubuntu 14.04. See bug #1268331 - "banshee-community-extensions demoted to -proposed, not ready for gtk3"


Theme installation numix (local installation)

The statement Execute from repo root simply means you should run that command from the root folder of the cloned repo and not doesn't mean run that command as root

Lets look at that command:

# Execute from repo root
scss --update --sourcemap=none src/gtk-3.20/scss:src/gtk-3.20/dist
glib-compile-resources --sourcedir=src/gtk-3.20 src/gtk-3.20/gtk.gresource.xml
./scripts/utils.sh install ~/.local/share/themes/Numix/

This install ~/.local/share/themes/Numix/ I believe directs it to be installed in your home folder and that doesn't need root privileges to do so.


Difference between installing git vs installing git-all

Git-all contains all sub-packages, whilst Git only includes main components with minimal dependencies.

As stated in Git on Debian Packages, Git does for example not include

  graphical user interface and revision tree visualizer, tools for interoperating with other VCS's, or a web interface..

Those are additional packages.

If you look at Git-all on Debian Packages, you see it states

  all sub-packages


I don't think so, the only thing I saw was that you can start it with ...

redshift

(with some options) and disable it with ...

pkill -USR1 redshift

That seem to indicate there are no config options for enabling/disabling it per started software and that redshift works on a system wide base. The sample configuration does not have anything on it either. Something you might be able to work with: you can enable/disable it per viewport. Maybe you should group the software you do not want to use it with and make them open on viewport 2, and have redshift not do viewport 2.

So when you do

pkill -USR1 redshift && emacs

emacs would start without it and you would have to manually restart redshift. But putting that in front of any software you want it to start without seems a bit much.


How to get Package List with Security and bugfix details?

/usr/lib/update-notifier/apt-check --human-readable

Sample output (I don't have updates on my system):

0 packages can be updated.
0 updates are security updates.

/usr/lib/update-notifier/apt-check 2>&1 | cut -d ';' -f 1

Returns the number of pending security updates.

In case that you need to install security updates automatically, there is the package unattended-upgrades


You seem to have skipped the apt-add-repository command. You only added the key of the WineHQ repository as trusted (apt-key add) but haven’t added the repository itself, so APT is still unable to find the package winehq-stable which resides in this repository. In the WineHQ guide, the relevant command is listed in a table and not formatted as code – which might be misleading.

According to your apt update output, your Ubuntu version is 18.04 (Bionic), so running this should be the right option for you1:

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'

After this, you should be ready to run:

sudo apt update
sudo apt install --install-recommends winehq-stable

  BUT it was installed:

anatoly@anatoly-desktop:~$ sudo apt install --install-recommends winehq-stable
Reading package lists... Done

Not yet… The lines

Reading package lists... Done
Building dependency tree
Reading state information... Done

inform you about the progress in loading the package database. However, this procedure finished with an error (E:) in your case and the package has not been installed.

1 You could also use an universal version of the apt-add-repository command which fills in your release name automatically:

sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -c | cut -f2) main"


Njap

The easy way: Create a variable that the while loop tests for true (or false, whatever way you like) and change this var to end the loop.

The complicated way:
Get the Pid of you Shell:

$ echo $$

returns e.g.

1441

The Shell (e.g. bash) runs in the Terminal, so the Terminal is identified by bashs parent PID. Get ppid:

$ cat /proc/1441/status | grep PPid

returns e.g.

1432

If you can Pid it, you can kill it. ;)

$ kill 1432

EDIT: There might be easier ways to get the Pid of the program process, e.g. if the program has a specific name, you can

$  ps aux | grep nameofmyspecificprogram

for it.


Nautilus in Ubuntu 16.04 can't show pdf thumbnail

This is the exact solution for me.
First, the task to make pdf thumbnails are performed by evince-thumbnailer. Hence I check my evince-thumbnailer script here: /usr/share/thumbnailers/evince.thumbnailer. I saw the third line is commented:
Thumbnailer Entry]
TryExec=evince-thumbnailer
#Exec=evince-thumbnailer -s %s %u %o
MimeType=application/pdf;application/x-bzpdf;application/x-gzpdf;application    /x-xzpdf;application/x-ext-pdf;application/postscript;application/x-bzpostsc    ript;application/x-gzpostscript;image/x-eps;image/x-bzeps;image/x-gzeps;appl    ication/x-ext-ps;application/x-ext-eps;application/x-dvi;application/x-bzdvi    ;application/x-gzdvi;application/x-ext-dvi;image/vnd.djvu;application/x-ext-    djv;application/x-ext-djvu;image/tiff;application/x-cbr;application/x-cbz;ap    plication/x-cb7;application/x-ext-cbr;application/x-ext-cbz;application/x-ex    t-cb7;application/oxps;application/vnd.ms-xpsdocument

I checked in another machine and it is not commented out. So, the solution is jut uncomment the third line:
Exec=evince-thumbnailer -s %s %u %o

And whoaa, the pdf files now show the thumbnails!
Maybe in the last, this script makes my computer hung, so I commented out that line.


Crackling and feedback with Presonus AudioBox USB on 12.04

I have a similar problem with the Presonus Audiobox 1818.  With Ubuntu 12.10 I had the issue appear often, but turning the card off and on (often a few times) would eventually fix it.  With Ubuntu 13.04 I found no way of doing this.  I installed Ubuntu 12.04.2 and it seems to work well all the time.  I don't know exactly what the problem is with later versions.

Other things which may be affecting the behaviour of your card:

In Ivy Bridge machines, try using a USB 2.0 port, if available, instead of a USB 3.0 port.  Your computer may have an option in the BIOS to switch the ports to USB 2.0 compatibility mode, which should do the trick too.
There are reports of Wi-Fi cards and other USB devices causing crackling in USB audio devices, so you may want to disable them temporarily to diagnose the problem.
There are reports that disabling Pulseaudio may work around crackling problems with USB audio.
Some bits of the set-up for real-time sound recording may be applicable here.

As for the driver stuff you mention in the comments: the Audiobox is a class-compliant USB audio device, which the Linux kernel supports without the need for any third-party drivers. Bear in mind that there are several reports of crackling problems with USB soundcards in the Presonus forums, even with Windows and OS X, so this issue is likely to be hardware-related in some obscure way.


How to enable video playing on a second monitor using Intel graphics?

Install the xorg-edgers drivers: https://edge.launchpad.net/~xorg-edgers

I had problems with the default drivers in Ubuntu 10.10 on an 945GM Intel card when the total screen area was bigger than 2048x2048. I have installed the xorg-edgers drivers and it seems to be working fine now (albeit no 3D).

To try things without messing your setup, install Ubuntu on a USB stick, boot it, install the xorg-edgers drivers, reboot on the USB stick and see if things work better.


Mysql database restoration from folder backup

I copied back from the backup the databse folders and all of the ibdata and ib_logfile files.

With cp? If so I was told to use rsync for this.
Stop mysql with sudo service stop mysql
From an old version of /var/lib/mysql/
sudo rsync -av /{backup_dir}/ /var/lib/mysql/
sudo chown -R mysql: /var/lib/mysql

Start mysql with sudo service start mysql
Check for errors before proceeding (onscreen and /var/log/mysql)
And set your system up to create automatic dumps with mysqldump and have those backups stored on another partition or even another system.


Burn Ubuntu Live USB / DVD (You can do it via Unetbootin).
Boot the machine in Live Ubuntu environment.
Open up terminal and type

sudo add-apt-repository -y ppa:yannubuntu/boot-repair; \

sudo apt-get update; \

sudo apt-get install -y boot-repair && boot-repair
Once the boot-repair window pops up , click on recommended repair.
Reboot.
This might do the trick


Ok well I seem to have found the problem. I am using a 64 bit version of Kubuntu and unfortunately skype only comes in a 32bit flavour.

If you want skype to work you need to install the corresponding pulse audio plugins in 32bit:

sudo apt-get install libasound2-plugins:i386

I found that you need to restart to get it to work after installing this package. You could probably just restart the pulse audio daemon but I didn't try that.

I find it really strange that Skype's deb package doesn't do this for you automatically. I feel they should put this as part of an automatic installation process.

EDIT:
Also relevant:
https://help.ubuntu.com/community/Skype

If you install skype using the instructions provided on that page, you should have no problems with the audio so I highly recommend it as a way of installing skype.


ubuntu on my new smartphone as substitute for android?!

Ubuntu Touch is currently in development.
As said in https://wiki.ubuntu.com/Touch/Install, stable releases are only for

Google's LG Nexus 4
Google's Samsung Galaxy Nexus

You can see on https://wiki.ubuntu.com/Touch/Devices that you can build Ubuntu Touch for Samsung Galaxy S4, but :

Sound is broken
Camera is broken
Cellular radio (call/sms) is broken
Frequent freezes and random reboots occur.

So you could try Ubuntu Touch, but certainly not use it on daily bases.


error for boot-repair : use this software in a live-session (live-CD or live-USB)

I had the same issue with Ubuntu 19.10 live usb, grub-repair didn't detect it was run from a live-usb.
My computer uses UEFI. At doc ubuntu website, they advise to run this command in Windows 10, with an admin cmd terminal :

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

It fixed my dual-boot problem


Is there any Linux alternative for Rainmeter?

try conky you can install it using sudo apt-get install conky and see http://ubuntuforums.org/showthread.php?p=5436679#post5437628


How to mount my secondary disk to /home/user2?

Assuming the user2 is in the sudoers group, you can just do

sudo mount /dev/sdbX /home/user2

(X here stands for the number of the partition on which you want to do writes on)

if user2 i snot in the sudoers group, you can add that user manually

sudo adduser user2 sudoers

and then run the above command.

Ofcourse all this is under the assumption that you do have access to a terminal and can login to user2's account


How can I make a live CD/DVD from my harddisk installation?

I just made one for myself a few hours ago! I used RemasterSys. The steps to install are given on the page. After installing it, you can type the following commands on a terminal:

sudo remastersys dist my-hd.iso

to create a distributable image named my-hd.iso. You can burn this on a DVD and share it around. Just make sure you have removed crud like cached packages, unused config files. On a terminal type

sudo apt-get autoremove && sudo apt get autoclean

Again, if you are not a commandline guy, install Ubuntu Tweak to clean old packages, kernels and other crud from your system.

If comamnd line isnt for you, then you can goto Gnome Menu > Admninistration > Remastersys Backup.

There is also a guide given on Ubuntu.com, if you are willing to DIY.


Looking for a program to work with .pro files

I doubt you'll find a linux program to open these files, your best best if you still want your machine to be booted in Linux would be to run Windows in a virtual machine.


Base 10 vs. Base 2.

This is GB & GiB, but same description base difference.

https://en.wikipedia.org/wiki/Gibibyte

https://en.wikipedia.org/wiki/Gigabyte

It's the difference between gigabytes (GB) and gibibytes (GiB).
One gigabyte = 1000 x 1000 x 1000 bytes (base 10).
One gibibyte = 1024 x 1024 x 1024 bytes (base 2).

Similarly:
 TB is 1000GB or TiB is 1024 GiB.


How do I install a 32-bit Java runtime on an amd64 server with multiarch?

Answering my own question: I can't find a way to do this, I just went with the 32-bit JRE package from Sun and installed it into /opt.

I had similar problems installing WINE. But that appears to be just about aptitude being broken w.r.t. multiarch, apt-get install WINE worked just fine.


Install failed: "SuiteSparseQR.hpp: No such file or directory"

The actual location is /usr/include/suitesparse/SuiteSparseQR.hpp

The Array2D.h file assumes the location /usr/include/SuiteSparseQR.hpp

To solve the problem,

Open the file ../include/Array2D.h in a text editor.

nano ../include/Array2D.h

Find the line

\#include "SuiteSparseQR.hpp"    // for in-paint

Change it to

\#include "suitesparse/SuiteSparseQR.hpp"    // for in-paint


Unable to run virtualbox after fresh install of Ubuntu 17.10

I had a very similar problem. This is my question and answer, but what I did to fix the problem when I got to the xcb error was:

based on the output of ldd /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so:
sudo apt install libxcb-xinerama0*
sudo apt install --reinstall libxcb-xinerama0*


Only half of Wacom Intuos tablet area maps to entire screen horizontally

Hold the left-most and the right-most buttons until the LED turns off and back on.
https://github.com/linuxwacom/xf86-input-wacom/wiki/Known-Issues#android-misdetect


How can I install one language by command-line

For desktop you can

sudo apt-get install language-pack-[cod] language-pack-gnome-[cod] language-pack-[cod]-base language-pack-gnome-[cod]-base

But each applications can have its language pack.
To know the packages to be installed try:

check-language-support -l [cod]

For example:

check-language-support -l fr


Ubuntu 15.10: How to remap the additional '| \'-key on my british keyboard to the `-key?

Go to the folder /usr/share/X11/xkb/symbols/.

Edit the gb file and replace the following line:

key <LSGT>  { [ backslash,        bar,          bar,    brokenbar ] };

with:

key <LSGT>  { [ backslash,        grave,          bar,    brokenbar ]   };

Save and exit and then execute:

sudo dpkg-reconfigure xkb-data

Log out and back in and the broken bar will have remapped to the grave character (which I believe is what you're after).

If you keep with the US keyboard layout then edit the pc file instead of the gb file and amend the line at the top of the file:

key <LSGT> {    [ less, greater, bar, brokenbar ] };

with this if you want to use shift:

key <LSGT> {    [ less, grave, bar, brokenbar ] };

or this if you do not want to use shift:

key <LSGT> {    [ grave, greater, bar, brokenbar ] };

and follow the rest of the process as above. The change will be permanent so if you want to change it back you will need to reverse the change by re-editing the file back to the original.


syslog.1 and kern.log.1 filling up with same message

This is a problem with some USB device (Bus 3 Device 1).
It must be a hardware issue.


How do I restore the default cursor in Ubuntu 16.10?

I restored the default Ubuntu 16.10 cursor by removing all Desktop Environments but Unity 7.5:

$ sudo apt remove gnome-shell unity8 plasma-workspace


Nevermind, adding
routes:
    - to: 192.168.72.201
      via: 192.168.64.1

to netplan file worked.


Option 0: Solve this with hardware!
I'll start with the alternative: Buy a wireless repeater. This is just a little box that repeats the wireless signal onto the main router. Sounds just what you're after because it means you won't have to be there for things to work.
They don't even cost that much.
Option 1: Ad-Hoc networking
But failing that, you will need two wifi cards in your machine for this to work. You can buy an external one if (as I suspect) you only have one wireless card but this is why I suggested a repeater.
After that, you can either use Ad-Hoc networking by using Network Manager to create a new wireless connection. Give it a name, set some security and tell it to share the network connection... And that's about it. Ad-Hoc isn't that robust and isn't supported by all devices (my Nokia N900 used to really hate it).
Option 2: hostapd
Then there's hostapd. This should expose the network card as a full access point provided it supports the hardware. If you have to buy hardware specifically for this, you should be able to get something that they support.
It's just a bit more fuss to get going.
Option 3: another router
If your laptop also has a ethernet card, you could use Network Manager to share your connection over it and route that into the WAN port of another router. This might be viable if you have a router lying around and you don't mind your laptop being tied to it.
Just edit the Auto eth0 connection so that under IPv4 Settings, the method is "Shared to other computers" and that should be about it. Similarly if both computers can be joined together, you could just use direct network cable with this setting.


Different internet ping from two user accounts

Probably when the old user account is used to log in, the system launches automatically a bunch of daemons which are greedy in network resources.

Here's some command that you can run to see if there's anything unusual that pops up:

nethogs
netstat -anp
ps -ef
nload
iftop

I recommend to try nethogs first, to see if there's anything eating your bandwidth.


External Sitecom Wi-Fi antenna fails to connect to network

If you are connected to the internet, try sudo apt-get update. It will ask for your user password, so no worries. Then, sudo apt-get upgrade. Password again.  Try that first as it may just need to update or upgrade your software. Keep us posted.


Have you looked at ngrok? ( https://ngrok.com )
Basically run
ngrok tcp 22
on your local machine that you want to ssh into.
You will get a hostname and port that you can ssh into from remote machines that is forwarded to your local machine running ngrok.
ngrok by @inconshreveable
(Ctrl+C to quit)
Session Status                online
Account                       Dwayne Moore (Plan: Free)
Version                       2.3.35
Region                        United States (us)
Web Interface                 http://127.0.0.1:4040
Forwarding                    tcp://0.tcp.ngrok.io:12048 -> localhost:22
Connections                   ttl     opn     rt1     rt5     p50     p90
15      1       0.16    0.04    2.30    2.31

For example:
ssh user@0.tcp.ngrok.io -p 12048


get the resident memory of indivdual threads of a process using bash shell

Threads share memory by definition. Therefore threads do not have individual memory and will not contribute to virtual and resident memory. It is possible to allocate memory from within a thread, but the kernel has no information about what memory is allocated for which thread, and so it is impossible to query for this from outside the process.


Switching from integrated Nvidia to a Radeon card?

You need to first remove the drivers that were installed by the Additional Drivers tool prior to installing you new card. Do the following

Remove the ATI card from the computer and boot to Ubuntu, it should load without issues
Open the dash and look for the Additional Drivers tool

Select the Nvidia driver currently in use, it should have a green mark on it and once you select it the button on the right bottom corner will say remove, press remove and let Jokey do it's magic

Make sure that there is not xorg.conf file loading any pesky drivers. Open a terminal and type sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old. This will save any xorg.conf (if any, if you get a file not found fault here move on and ignore it) in to a xorg.conf.old file inside the same directory.
Reboot

If all when well your system is not using the default open source drivers. You are free to shutdown, install the ATI card and install the drivers for it.

You have 2 choices with the ATI card, open source drivers or the proprietary AMD drivers. For more information on how to install/remove/revert AMD drivers in Ubuntu 11.10 please visit this post

Is my ATI graphics card supported in Ubuntu?

If you get stuck along the road please edit your question to add any steps you did till now and drop a comment so we can further help you.


Ctrl + Shift + Del key combination not working in Chromium's New Tab page

It's been pointed to me that this question is a bug request and therefore off-topic and should be closed.

I have filed a bug report on the Chromium project site.


Expo edges and wallpaper not working after reboot

I solved by installing dconf:

`sudo apt-get install dconf-editor`

I opened dconf and at the following path:

org > compiz > profiles > plugins > core

I rearranged the plugin with 'expo' as the last one. The wallpaper wouldn't load because the 'wallpaper' plugin was loaded before the 'imgpng' one.

Hitting on "Set as default" (I use it in italian so I don't know if that's the exact translation) the problem was solved.


Cant install Nvidia-396 from ppa in Ubuntu 18.04

My solution was aptitude. Has much better logic to remove the old, and install the new for you.

sudo apt install aptitude
sudo aptitude install nvidia-driver-396


cannot connect to network after today's updates in Ubuntu 16.04

I have the same problem, there is no eth0, changes in the desktop etc.

Solution (temporary):

uname -r
-> 4.4.0-77-generic

ls /boot/initrd*
-> initrd.img-4.4.0-75-generic
-> initrd.img-4.4.0-77-generic

reboot

When the grub screen appears, edit with e, replace the lines 4.4.0-77-generic with 4.4.0-75-generic, boot with F10.
Once it is running, purge the image with problems

sudo apt-get remove --purge linux-image-4.4.0-77-generic

While it does not solve the problem you can continue to use the system until its solution.


My ubuntu randomly automatically logout after installing openbox

okay its already fixed by removing apport, update-manager and update-manager-core
and btw i get the solution from here

$ sudo apt-get remove apport update-manager update-manager-core

now my openbox run smoothly without problem


Search strategy
Simple!
These projects are open-sourced.
So you need to navigate and search for the keymaps!
And search for japanese special keys and, romaji (hiragana) characters.
How
To find them:

Go to the project's sites.
Find the source-code navigation section.
Click on the search text-field.
Type the keywords , like:

to search for table's conversions: keymap, table.
to search the kana conversion: kana, hiragana.
the last one is a popular misspelled word: romaji, romanji.
to search for the japanese special keys: hankaku (半角), zenkaku (全角), eisu (英数), muhenkan (無変換), henkan (変換), katakana (カタカナ), hiragana (ひらがな), romaji (ローマ字).
to search hiragana keys: あ, 。, ん, 「 and others japanese (symbols and hiragana) characters.

Results
Japanese IMEs (for ibus IMF) and their keymaps + romaji-kana tables:

Anthy

keymap

keymaps folder

romaji, kana and others conversions

SKK

(not found)

KKC

(not found)

MOZC

mozc's keymap

keymaps folder

default romaji-kana conversion table

That's all!


Unison - how to make it sync automatically (bidirectional)

The root of your problem here is a misunderstanding of what the graphical interface can do. You'll see in your screenshot that the repeat option is only for the text interface only. That is because the graphical interface can only run unison once when you click GO.

To get the behavior you want, you'll need to use the text (command line) interface. Since you've put repeat=watch in your profile, you'll just need to open up a terminal and run Unison from the command line with that profile:

unison Music\ HDD\ EXT\ HDD &

I would recommend a shorter profile name than Music\ HDD\ EXT\ HDD ;) . The & is there to run Unison in the background (detached from that particular terminal). Then, since it looks like you want to run Unison very automatically, checkout this post on how to run that Unison command automatically when you login.


Not exactly an Ubuntu related question, or answer, but... you can replace a laptop screen for as little as $50. (search for D270). I did this with my Thinkpad T510 recently.

I also have that netbook but not with HDMI output, it's pretty slow. It can't play youtube videos full screen without getting choppy so I don't think you're going to be very impressed with it as a projector. It can run a few open tabs in chrome and that's about it, and I think that's after I upgraded it to 2GB.

It might not be worth the time or money :(, I mean for about $100 you can get a new Asus 7" tablet that'll have more horsepower than this.


Problem solved! I downloaded Blender from the website and installed manually. Now it works very well!


Probably would be best to check for a ppa repo or see if it's in Ubuntu repo then sudo apt-get remove it and then sudo apt-get install it.


"Mounting cifs URL not implemented yet" when I try to mount a samba share

Since as the error message says CIFS URLs (starting with smb://) are not supported, you have to use the "classic" syntax to identify the server and share. Furthermore, you cannot mount a folder within a share as though it is a share--you should mount the share and then access the folder within it. You can make a symbolic link to the folder inside the share,  if necessary. Finally, when you run smbmount, mount -t smbfs, or similar remote mount commands as root (for example, with sudo), you need to specify the username on the server (unless it's actually root, which is unlikely and, if the server runs a Unix-like system, not recommended).

So first, you'll create a folder (mount point) for the share:

sudo mkdir /mnt/projects

(This is assuming you want to create it in /mnt. It's become more common to create all globally accessible mount points that aren't part of your Ubuntu system itself in /media instead of /mnt but it's fine to use /mnt if you like.)

Then use a command like this to mount the share:

sudo smbmount //192.168.2.28/projects /mnt/projects -o user=USERNAME

Replace USERNAME with the username on the Samba server that you need to log in as. You'll be prompted for your password. You can specify your password on the command-line too (with -o password=PASSWORD) but it will appear in cleartext in the Terminal and will go into your command history, so you probably don't want to do that.

You'll notice that I've used smbmount but mount -t smbfs or mount -t cifs (or mount.cifs) should work just as well, if you prefer.

Now smb://192.168.2.28/projects's contents are accessible in /mnt/projects. If you need to be able to access the contents of smb://192.168.2.28/projects/myProject in /mnt/projects/myProject, you can create a symbolic link:

sudo ln -s /mnt/projects/myProject /mnt/myProject

For readers of Ubuntu 12.10 and later: You must use mount.cifs or mount -t cifs (smbmount and mount -t smbfs are no longer provided). The cifs-utils  package is required. These commands will work on earlier systems too.


npm not really uninstalling global package

I had the same issue.

To resolve this:

Run npm uninstall -g ionic
Go to the location /usr/local/bin/
Delete the Ionic file
Close the terminal and open a new one, or start a new shell
Run npm uninstall -g ionic
Now run ionic -v


On Ubuntu, sh (or more accurately, /bin/sh) is "dash" and not "bash". When you use sh {filename} you force the script to be interpreted by dash. When you use ./filename the script is interpreted by whatever the "shebang" (#!... on first line) says, and this is normally the interpreter the script has been written for (bash, likely).


The best and easiest will be to do a clean reinstall. If you have not used it for quiet a wile there cant be anything important in it.


Seeing recent folders not just files in nautilus

Directories themselves will not appear here but, if you want to open a directory where one of the listed files exists, you can right click and choose "Open Item Location":


Bash auto complete for environment variables

This bug was introduced in bash 4.2. There's a lengthy thread about it here:

http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00274.html

In short, Chet Ramey, the developer of bash, isn't sure how to go about fixing it yet.


how to move clock to the middle of Unity panel in Ubuntu 12.04

Unlike the Gnome panel , it is not possible to right select and move applets on the Unity panel .


Some ISP Routers already provide a VPN Server. Did you check for that?
If it doesnt you need to NAT port 1194 UDP to your Ubuntu Notebook and install a OpenVPN Server on it.

Then install TinyCA to create a certificate authority and the certificates/keys.

This is the general idea. If I had more time I could make screenshots and stuff but you should be able to google all this.

Hope this helps a little bit.


Why does creating a new tab give me 'TypeError: Expected Gtk.Widget, but got GObjectMeta'?

I think you must initialize Gtk.TextView() before use....
I was also facing same problem 2 days before....
Just check following code

        self.textview = Gtk.TextView()
        self.textbuffer = self.textview.get_buffer()
        self.textbuffer.set_text("This is some text inside of a Gtk.TextView. "
            + "Select text and click one of the buttons 'bold', 'italic', "
            + "or 'underline' to modify the text accordingly.")
        mywindows.add(self.textview)

Refer: http://python-gtk-3-tutorial.readthedocs.org/en/latest/textview.html


Increase the size of / (root directory) when it is not using lvm

You could maybe add new volume(s) and move /var, /tmp and/or /usr. It would take some work but you wouldn't need to reinstall the server using LVM.


change or disable modifier key (alt) which activates the application menubar?

Install CompizConfig Settings Manager via Ubuntu Software Center or terminal: sudo apt-get install compizconfig-settings-manager.
Then open CompizConfig and go to Ubuntu Unity Plugin > General > Key to show the menu bar while pressed, and change it. Hope this will help you.


How to use shopt command in upstart configuration file?

Thanks for the comments it helped me troubleshoot the actual issue.
As steeldriver mentioned shopt is a bash builtin and sinceupstart uses /bin/sh by default and it is symlinked to dash, therefore shopt wasn't working.

Also the script in which shopt worked was a bash script (hope it answers bodho.zazen's question).

After some research what I did was enclose my shopt command like this in the script section, and this worked -

script

/bin/bash <<'EOF'
  <my-code>
  shopt -s nullglob
  <my-code>
EOF

end script

Thanks to all of you for helping me out! :)


Kernel doesn't support PIC mode for compiling?

The issue is with your gcc installation, in gcc 6+ versions PIE( position independent executables) is enabled by default. So in order to compile you need to disable it.
Even gcc 5 has the issue.
This is a known bug for gcc. Bug Link.

So far there is no official patch from gcc side, so the workaround is to patch the Makefile of kernel source.

If you are familiar with patching the source file use the codes from this link to create the patch file then try to compile.Patch File

Let me know if you are having difficulties installing the patch.


Unable to wake with external keyboard while lid is closed

This related answer might be helpful:

Wake up from suspend using wireless USB keyboard or mouse (for any Linux Distro)

You don't mention if your keyboard is wired or wireless. The basic steps are:

grep . /sys/bus/usb/devices/*/power/wakeup

And then (assuming 8 ports are returned) use:

sudo su
echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
echo enabled > /sys/bus/usb/devices/usb2/power/wakeup
echo enabled > /sys/bus/usb/devices/usb3/power/wakeup
echo enabled > /sys/bus/usb/devices/usb4/power/wakeup
echo enabled > /sys/bus/usb/devices/usb5/power/wakeup
echo enabled > /sys/bus/usb/devices/usb6/power/wakeup
echo enabled > /sys/bus/usb/devices/usb7/power/wakeup
echo enabled > /sys/bus/usb/devices/usb8/power/wakeup
exit

See the accepted answer for all the steps.


Open up the terminal.

Given that you told me this deb is in your downloads folder, type in this command: cd Downloads

Then, since you know the file name, do sudo dpkg --install [filename]

Replace [filename] with the filename for the deb file as it is in your Downloads folder.

That should install the .deb file, unless there are missing dependencies.


Selecting the full clone option really does make a full clone of the VM. (If you're having specific problems with that, I recommend editing your question with more details.)

After cloning the VM, if you want both virtual machines to access the same network at the same time, you'll probably want to change the MAC address on the virtual network adapter of one of the VMs.

Further reading:

Are there any "traps" in cloning a VirtualBox VM for concurrent use on the same Host/LAN?
How do I fix broken networking in cloned virtual machines?


List all available packages of a PPA without accessing the launchpad page?

Install y-ppa-manager. To do this, open a terminal and run these commands

sudo apt-add-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

In the y-ppa-manager window, there is a List packages in a PPA option. click on that option and enter a PPA name. All package name should be displayed immediately. Here is a good link about this app.

image credit goes to original author of the link site

Note: The benefit of this software is that, you can see available packages in a PPA without even enabling that.


I have found the solution for the problem. First During the initial boot time
press e in the grub or tab during installation and add acpi=off after quiet splash This turns off the acpi functionality. after entering the os install updates in ubuntu with

sudo apt update
sudo apt upgrade

after installing update turn off computer using manual power-off button since acpi shutdown  wont work. Now you can use your ubuntu without any problem


Why is my notebook going to sleep when lid is closed even If I disabled it?

Ok I found a (workaround?)-solution in a german forum:

http://www.linuxmintusers.de/index.php?PHPSESSID=ae47571e196b624a3109c83c69d26183&topic=15178.msg179264#msg179264

You have to edit the file /etc/systemd/login.conf and uncomment/modify the following two lines:

HandleLidSwitch=ignore
LidSwitchIgnoreInhibited=no

That solved the issue for me and the system no longer ignores my cinnamon settings.


Where is the source code of UbuntuTouch?

You can find the Ubuntu Touch source code links on the wiki here: https://wiki.ubuntu.com/Touch/Contribute#Source_code

It also has information about how to patch and submit your own contributions.

App development is done using Bazaar and merged back to the individual launchpad projects.

Android development is essentially a clone of Cyanogen Mod.


Disable touchpad while typing do not work

Solution was to add in /etc/modprobe.d/blacklist.conf

blacklist i2c_designware-platform

And reboot the system. After that syndaemon works fine.


Issue with POWER9 setup for CUDA in Ubuntu 16.04

Sometimes, taking the time to properly document your problem already gives you the solution you need. While writing, I realised the content of the file was copy-pasted incorrectly. The first line was

Unit]

while it should have been

[Unit]

After this correction, the problem was solved. I hope this may help other people, puzzled for a similar silly mistake.


Based on the Zenity script provided in this answer,

see you have zenity installed

sudo apt-get install zenity

create an executable file called editorrun.sh with this content:

    #!/bin/bash

zenity --question --text="What to do with the executable file '$1'?" \
       --ok-label=Run \
       --cancel-label=Edit

case $? in
    0)xfce4-terminal -e "bash $1"
    ;;
    1)gedit $1
    ;;
esac

make it executable, then add it to the list of applications

gedit ~/.local/share/applications/edit-or-run.desktop

with this content:

[Desktop Entry]
Type=Application
Name=Edit-or-run
Icon=gedit
Categories=Utility;
MimeType=application/x-sh;application/x-executable;
Exec=bash -c 'path/to/the/script/editorrun.sh %f'

adding the path to the script in Exec=bash -c 'path/to/the/script/editorrun.sh %f'. Then, make that executable.

Then, make this desktop file the default application for executable files by selecting such a file, going to 'Proprieties - General - Open with' and selecting Edit-or-run.

After that, when you click an executable a dialog appears

(A small glitch: you cannot dismiss the dialog at this point: using close window button, Esc or  Alt+F4 equates to the --cancel-label option in the script and will open the file in text editor.)

Edit: regarding the "small glitch": to avoid the file being opened for editing through this zenity script (and given that "open in text editor" is a very accessible option anyway), one could remove the text editor from the script and re-formulate the question:

    #!/bin/bash

zenity --question --text="Do you REALLY want to EXECUTE this file?" \
       --ok-label=YES! \
       --cancel-label=No...

case $? in
    0)0)xfce4-terminal -e "bash $1"
    ;;
    1)
    ;;
esac

Which gives you this:

where "Yes" will execute the script, while all other options do nothing.


After upgrading from 16.04 to 17.04 i have swap problem?

Please check your /etc/fstab file for swap partition.

You need to start Ubuntu from CD or USB, then select the option "try ubuntu",
run GParted.

If required delete the old swap partition and create a new swap partition.

/etc/fstab should have a line similar to this

UUID=some-unique-id-for-the-partition swap swap defaults 0 0

to get the unique id run blkid in terminal


You can copy the disks with the dd command into files (or partitions which might even be better): take care to copy each disk as a whole (and not only some partitions of them).

You can assemble with mdadm the new files or partitions as you suggest. I think you are right: their order should not count.

Trying to mount partitions with another file system does not ruin them (it simply won't work).


This is probably not possible.

AFAIK, on login a special process is started which leads the session. All child processes of this session leader process belong to the same session. If the session leader process becomes terminated all child processes are terminated as well. Processes cannot be reassigned to other sessions.

Restarting SDDM probably kills the session leader process and thus all processes of the session.


Ubuntu fails to boot fully, stuck in log screen "ppp link was shut down"

I was able to resolve the issue by doing the following things:

a)
(probably unrelated, so try only if b does not work):

(dont try before b) sudo apt purge gdm gdm3
sudo apt install gdm3 ubuntu-desktop

b)

1) create a folder /var/lib/gdm3/bak (bak just meaning backup, name is arbitrary)

2) move .ICEauthority .ICEauthority-l and .ICEauthority-c to that folder

sudo mv /var/lib/gdm3/.ICE* /var/lib/gdm3/bak

3) wait a bit (up to a minute to be sure). Might have to press alt + f1 or ctrl + alt + f1 if nothing happens.

Note that I do not know what those files do, they probably contain some configuration (its binary) that would be lost, but the file is recreated by gdm.


Anaconda 3.7 works with python 3.6, so it is recommended that you install the latest Anaconda with the latest python.


The package is in the Ubuntu main archive. You can download it with apt-get download libwebkitgtk-1.0-0 or by going to the source package's page on Launchpad, and downloading from there, for the appropriate architecture.

However, it would probably be better to update your program to use GTK+ 3.x and libwebkitgtk-3.0-0 instead, which is included by default on the Ubuntu install. GTK+ 2.x is deprecated and it is not recommended to write new software with it at this time, and is recommended to port applications to GTK+ 3.x if possible.


I'm trying to install ubuntu from a USB stick but after restarting after installation is complete it asks me to install again

When installation is complete and the computer reboots remove the usb drive so that the computer reboots off the hard drive rather than the USB drive.


Sound devices not detected in Ubuntu 18.04 on ASUS TUF FX 505

As explained extensively on this other answer, adding the boot parameter

snd_hda_intal.dmic_detect=0

did it for me.

The way to test this boot parameter temporarily is well described in one of the links in the answer (i.e. here). Making the boot parameter permanent is then quite straightforward, and also thouroughly described there.


Wi-Fi connected but no internet access with Atheros in 16.04 on Acer Aspire E15

I asked a similar question about a week ago. Idk but maybe this will help
Rtl8723be WiFi incredibly weak


Creating A Bootable Drive For Ubuntu on Mac

http://u.tpps.cf/7
and
http://u.tpps.cf/8

These should do the trick.


how to improve Ubuntu 19.04 desktop performance on VMWare workstation?

Try increasing the amount of RAM allocated to the VM. A good place to start would be 2gb. You should also be able to allocate more video memory to the VM. Try at least 256Mb. If that does not solve the problem, try increasing the amount of CPU cores that the VM is allowed to use.


vpnc connects but does not set up nameservers in /etc/resolv.conf

Your /etc/resolv.conf looks correct both before and after you connect, assuming that you have a local forwarding nameserver running which listens at 127.0.0.1. In Ubuntu 12.04 Desktop such a nameserver is running by default. To see the nameserver process, run

ps -elf|grep dnsmasq

The reason your colleague's /etc/resolv.conf looks different is that your colleague is not running a local forwarding nameserver. Also, your colleague does not have the resolvconf package installed and so your colleague's NetworkManager process is writing directly to /etc/resolv.conf instead of using resolvconf for that purpose.

On your machine, addresses for work LAN nameservers should not appear in /etc/resolv.conf. That should continue to show only "nameserver 127.0.0.1" (or "nameserver 127.0.1.1" in Ubuntu 12.10.) The work LAN nameserver addresses should be sent by NetworkManager to the local forwarding resolver to use as forwarding addresses. To see what addresses have been sent, do

nmcli -f IP4 dev list | grep DNS

In Ubuntu 12.04 the addresses can also be seen in /run/nm-dns-dnsmasq.conf but in Ubuntu 12.10 the addresses are sent from NM to dnsmasq over D-Bus and so can't be inspected that way.

In the original question it is not even clear that the problem is DNS-specific. Does the questioner have any network connectivity at all with the work LAN?  Can the questioner ping IP addresses on the work LAN?


How can I migrate an application from GitHub to Launchpad?

The easiest thing to do is probably to do so using bzr-git.

Clone the repository that is currently on GitHub:

$ bzr branch git://github.com/umpirsky/revision-monitor

After that you can push it to Launchpad, assuming you've created a project on Launchpad named 'revision-monitor':

$ cd revision-monitor
$ bzr push lp:revision-monitor


Will "apt-get upgrade" also upgrade my PHP version?

An upgrade will only install security updates. So the short answer is no.

The full answer is, that for 9.04 updates are no longer provided as it has reached the end of its life cycle last October. You should seriously consider updating to a newer release (using sudo do-release-upgrade). Using 10.04 (which is an LTS release) you will get php 5.3.


Does Ubuntu automatically block visitors that do not have similar IP addresses?

This is typically due to some type of third party firewall or security package on your Ubuntu installed by apt-get as a dependency or otherwise. Do a complete clean installation and see if this issue sticks.