Revert to original Ubuntu set of package

It is virtually impossible, because you cannot say if a package, like aptitude, is no more in the standard install package set, or the reverse.

Moreover you cannot say if some new package version has some new dependency, or lack some dependency it previously had (this is not common, anyway).

However, in the /var/log/dpkg.log* files there is all the history of your system, but it is not simple to analyze and take some decisions based on that.

Come to mind that you can do a dpkg --get-selections >output in some other freshly installed 10.10 system, and use this information to modify your system:

sudo dpkg --set-selections <output
sudo apt-get dselect-upgrade


How to install Jdk1.8.0_45 64 bit to Linux OS

Here is the link to the download, http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.


Does sysctl [variable=[value]] have the same effect as sysctl -w [variable=[value]]?

re: Is there a difference between sysctl vm.swappiness=10 and sysctl -w vm.swappiness=10?
No.
re: So additionally, does sysctl -w configure /etc/sysctl.conf in any way?
No.

To edit /etc/sysctl.conf with a GUI text editor:
sudo -H gedit /etc/sysctl.conf
Otherwise use pico, nano, vim, or other favorite editor.

See man sysctl for more info.

Be careful when setting vm.swappiness. A low value favors RAM, where a high value favors swap.
Examples:
With 4G RAM, setting vm.swappiness=10 is nuts. With a large enough swap, setting vm.swappiness greater than 60 (the default) might make some sense.
With 32G RAM, and a HDD for swap, setting vm.swappiness=10 might make some sense.


Why can't I install FreePascal and the Gold linker at the same time?

Unfortunately we have that:

lazarus     depends   on lazarus-ide
lazarus-ide depends   on fp-compiler
fp-compiler conflicts with binutils-gold

so I suggest to remove binutils-gold and stay with binutils.


Follow below steps to configure SSL with certbot.

Install certbot
sudo apt install python-certbot-apache

Make sure DNS records pointing to your server and then generate certificate
sudo certbot --apache -d domain.com -d www.domain.com

If sucessfull it will produce below output and prompt for http to https redirection

Please choose whether or not to redirect HTTP traffic to HTTPS,
removing HTTP access.
------------------------------------------------------------------------------- 1: No redirect - Make no further changes to the webserver
configuration. 2: Redirect - Make all requests redirect to secure
HTTPS access. Choose this for new sites, or if you're confident your
site works on HTTPS. You can undo this change by editing your web
server's configuration.
------------------------------------------------------------------------------- Select the appropriate number [1-2] then [enter] (press 'c' to
cancel):

Select appropriate number as per your requirement. Once finished it will load certficate in apache automatically.


how can I update the path to Android Studio?

1) Go to the installation dir, and fire it up with ./studio.sh

2-A) [For > v2.0] There is an option to add a shortcut in Android Studio's "main menu":

2-B) [For < v2.0] There is an option to add a shortcut in Android Studio's "main menu":


Ubuntu 12.04 LTS Can't get wireless working on Dell latitude d620

Please get a working ethernet connection temporarily and do:

sudo apt-get update
sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree

Detach the ethernet, reboot and give us your report.


How can I copy all files and folders from one directory to another with similar structure with `find` and `xargs`?

You can do this in bash by enabling extended globbing.

shopt -s extglob

and then use the --parents options of cp.

So, go to /usr/share/icons/hicolor/ and do:

cp -R --parent {128x128,32x32}/apps ~/.local/share/icons/

Modify the directory names within {} to suit your needs.

Eg:

ron@ron:~$ tree dir1/          # Destination before copying
dir1/
├── 128x128
│   └── apps
├── 16x16
│   └── apps
├── 32x32
│   └── apps
└── 48x48
    └── apps
karthik@4736Z:~/dir2$ ls hicolor/            # Source structure
128x128  22x22    32     42x42  512x512  72x72  icons             scalable
16x16    24x24    32x32  48     64       8x8    icon-theme.cache  symbolic
192x192  256x256  36x36  48x48  64x64    96x96  index.theme
ron@ron:~/dir2$ tree hicolor/ | head -n 6
hicolor/
├── 128x128
│   ├── actions
│   ├── animations
│   ├── apps
│   │   ├── amazon-store.png
ron@ron:~/dir2/hicolor$ cd hicolor/
ron@ron:~/dir2/hicolor$ cp -R --parent {128x128,32x32}/apps ../../dir1/
ron@ron:~/dir2/hicolor$ tree ../../dir1/          # Destination after copying
../../dir1/
├── 128x128
│   └── apps
│       ├── amazon-store.png
│       ├── chromium-browser.png
│       ├── credentials-preferences.png
│       ├── deluge.png
│       ├── display-im6.q16.png
│       ├── libreoffice-base.png
│       ├── libreoffice-calc.png
│       ├── libreoffice-draw.png
│       ├── libreoffice-impress.png
│       ├── libreoffice-main.png
│       ├── libreoffice-math.png
│       ├── libreoffice-startcenter.png
│       ├── libreoffice-writer.png
│       ├── ubuntuone-music.png
│       ├── ubuntusoftware.svg
│       ├── vivaldi.png
│       ├── vlc.png
│       └── vlc-xmas.png
├── 16x16
│   └── apps
├── 32x32
│   └── apps
│       ├── aim.png
│       ├── baobab.png
│       ├── bluetooth.png


Is there anyway to use Google Talk, with my Google Apps account?

Found a method using Pidgin here

Of course the problem with this method is that you have to install and run Pidgin...

Also I just realized that you can use Empathy as well, it just takes forever for it to log in... you just log in as you normally would with the Google Talk client, username@domain.net then your password under the Google Talk option.


App to shrink Windows partition on WinXP

Do this from boot; go to Unetbootin load your bootable utility partedmagic
on a USB key, launch it at the boot stage - check you PC it is often F2 or F12 to get to boot menu; change the order to boot from USB.

Warning - repartitioning can wreck your system! Read the instructions carefully!

Good luck


How to set domain search on Ubuntu 18.04

Per my other answer focusing on 16.04 GNOME (which 18.04 basically has inherited), you can fix this by using the old-style Network Editor by running nm-connection-editor, which is the older Network Manager editing GUI we all love.
Basically, however, for 16.04 and onwards, the GNOME team for Ubuntu made some decisions about the older network editing menu, providing a trimmed down one for the average end user.  Per Jeremy Bicha, from the #ubuntu-gnome IRC channel back in April:

jbicha: sorry it's hidden by default because most people don't need
two network GUIs and the one in the Settings app should be easier to
use for most people

The idea was basically that the 'most common options' that people would have to edit would be in the 'easier' settings GUI.  But for more advanced users, they can still call nm-connection-editor to edit things like Search domains and such.
Note that the answer for 16.04 applies for 18.04.  You can still use the other answer I wrote as a basis for solving this in 18.04.
(Note that you will need to disconnect and reconnect the network connection to get the search domain updates to apply, by the way. You do not need to restart all of the Network Manager services just to make this apply, just disconnect and reconnect your cable, and the updated profile configuration will apply)


I think you can simply change the boot device in BIOS and point at ubuntu disk.
if this is not about BIOS boot menu, please clarify in the question what menu you need to use.


is there any way to figure out what kind of processes were running that were taking the most CPU time, and log them historically?

Set up a cronjob, running every minute and appending date and ps auxk time | tail -N to your chosen log file. Set N to how many CPU hogs you want logged. Default (without -N) is 10. The total time (in minutes) as of a particular timestamp is the second-last column, in descending order, just before the process name:

izx       2096  0.0  0.6 396920  7000 ?        Ssl  16:41   0:11 gnome-session --session=ubuntu
izx       2147  0.0  1.1 681920 11404 ?        Sl   16:41   0:16 /usr/lib/gnome-settings-daemon/gnome-settings-daemon
izx       2275  0.0  0.8 421544  8684 ?        Sl   16:41   0:16 /usr/lib/bamf/bamfdaemon
izx       2311  0.0  2.8 614148 29388 ?        Sl   16:41   0:16 /usr/lib/unity/unity-panel-service
root      1736  0.1  0.2  87632  2576 ?        S    16:41   0:24 /usr/sbin/vmtoolsd
izx       2205  0.1  0.9 446056  9208 ?        Sl   16:41   0:30 /usr/lib/vmware-tools/sbin64/vmtoolsd -n vmusr --blockFd 3
izx       2451  0.3  2.3 551928 24348 ?        Sl   16:41   1:10 gnome-terminal
izx       2163  0.9  6.5 1157128 66616 ?       Sl   16:41   3:39 compiz
root      1058  1.5 15.3 320408 156080 tty7    Ss+  16:41   5:53 /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none
izx       2541  2.0 16.1 944464 164536 ?       Sl   16:41   8:03 /usr/lib/firefox/firefox

You may want to look at man ps to clean up the fields you don't need.


ubuntu14 on macbook air but webcam not working

It is my understanding that you can only do this on specific Macbooks, and, they must be Macbook Pros.

Are you sure you have a Macbook Pro 5,5?
Instead of using a binary on Dropbox, have you tried using apt to install this?
Have you seen if the version you're using is outdated and has available updates?


How do I eliminate a green line at the top of my screen?

Same here ... brand new Vostro 2420, after installing initial updates and rebooting there are green flashing lines on top of the screen. So something messed up with the graphics driver. No issue when working in text mode or booting of recovery media.

Instead of fixing 11.10 installation, I simply upgraded to 12.10, everything is now working fine.


Suspend and resume not working on an HP dv7

Hi please refer to my previous posts on how to fix this the last comment on this bug post:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/989674?comments=all

I have also answered it on the ask ubuntu forums here:
Entire system freezing after pressing "Suspend"


gnome-keyring use unsafe storage for all users

There is already a bug report for this:
322827

But it hasn't seen much action.
Unfortunately, the old password needs to be known to remove it.


The mistake i did was that i unzipped the tar package in windows machine and then copied the unzipped folder to ubuntu system. I should extract the tar package in ubuntu only. This was my first mistake.
And regarding  "cannot execute binary file:Exec format error", this was bcause i installed 64bit package of mozilla whereas it is 32-bit OS. THese two things i changed  and as of now it works...Incase it helps someone so posting


How do I import Amazon MP3s with Banshee and the new Amazon Cloud Player?

This is not a technical problem.  Banshee is still able to open .amz files and use them to download purchased music.  However this problem results from a decision by Amazon to unilaterally restrict all browsers with linux user agent strings from being able to download .amz files.

Luckily there is one immediate workaround, and a couple avenues for further action as well.

Quick and dirty workaround:

Install the User Agent
Switcher
extension for Firefox.  Any other user agent switcher/browser combination should work as well, I just have not tested them.
Use the user agent switcher to switch your user agent string to IE 8.  You can add the user agent switcher icon to your toolbar by right clicking the Firefox toolbar area and clicking Customize.
Authorize this pseudo-browser for use with Amazon Cloud player by clicking this link.  This tricks Amazon Cloud Player into thinking that you have already installed Amazon MP3 downloader--setting a cookie that will allow you to download .amz files instead of being prompted to install Amazon MP3 downloader first.
Use Amazon Cloud Player to select tracks and click Download.
Use Banshee to open the downloaded .amz file and it will automatically download and import the songs!

Possibilities for more permanent solutions:

The fact that the above workaround can be used proves that this is not a technical issue but rather a choice by Amazon to restrict certain browser user agent strings from being able to download .amz files.  Therefore there a two paths towards a more streamlined fix for this problem.

Modify the user agent string for Banshee's built in browser and then authorize it using the above link.  I don't know how to go about doing this but I'm hoping maybe something can write another answer for this.
Write Amazon asking them to explain this change and detailing it's
negative effects on you.  Here is the message I sent them:

  Hello,

  I have been a regular customer of the Amazon MP3 store for awhile now.
  Whenever I heard about a new album I would preview and buy the album
  from your store. Part of the reason for this was the great Amazon MP3
  integration with Banshee Media Player (http://banshee.fm). I could
  browse Amazon, preview songs, and import my music all from within
  Banshee Media Player. Having to use a third party client to download
  music that I have purchased has always been a very big turn off for
  me--hence, I don't like using Google Play, and before I discovered
  Banshee's Amazon integration I didn't like purchasing music from
  Amazon either.

  With my most recent purchase however I was very displeased to discover
  that Banshee's automatic import of songs purchased from Amazon MP3 was
  no longer working. After a little research I determined that the cause
  of this was that Amazon had decided to lock out any browsers with a
  Linux user agents strings from being able to download multiple songs.
  If I authorized and used a browser with a Windows user agent to
  download the .amz file then I was able to open that file with Banshee
  and import the songs normally. I understand the need to authorize
  devices for use with the cloud player, but the decision to
  unilaterally lock out linux machines from being able to download .amz
  files seems completely arbitrary, and to this customer is a very
  disappointing development.

  I'm not going to threaten to boycott Amazon MP3, in all likelyhood I
  will continue to purchase MP3 albums from your service. However, from
  this point on I will likely only purchase the promotionally priced
  albums, I will now have no incentive to buy the full priced albums
  (where you make the most money) from your service rather than another
  service--especially those which have better support for linux.

  What really bothers me about this is that it is not a technical issue.
  I am not expecting you to support another operating system, additional
  software, or to make a version of the Amazon MP3 downloader for linux.
  It is a matter of Amazon--inexplicably--choosing to restrict via user
  agent all browsers running on Linux systems from being able to use
  features that they otherwise are fully capable of using. To me this
  seems not only unreasonable but also a poor business choice and not
  what I expect from Amazon in terms of how you treat your customers.

  Furthermore, I am disappointed by the lack of an explanation behind
  why this decision has been made. Linux users are greeted by a message
  apologizing that support isn't offered, but given that support was
  previously available, and applications such as Banshee are still
  technically able to use the service if they use another browsers user
  agent key to download the .amz while, I believe that we deserve an
  explanation of why this change has been made.

  Thank you for your time reading this. What I would like is both for
  you to please convey my comments along the appropriate channels and I
  would also like to receive a response stating, 1) why this change was
  made, and 2) if there are any plans to re-enable Linux devices in the
  future. Even if the answers to these two questions are not what I hope
  to hear, a thorough response addressing these issues would likely keep
  me a loyal customer of Amazon. I would however be rather disappointed
  with a generic response that I could have found myself in an FAQ. As
  such, please take your time if you need to ask around to find out more
  about this situation before responding. Thank you again for your time.

  Best,

  Austin Dempewolff

Note:
 I've written this answer up quickly to try and help those who are also facing this problem.  I would highly welcome other answers that are better illustrated and/or provide alternative workarounds!  I'd prefer to accept a better written/illustrated answer than this one!


This should be easy to fix. The key to it is you need to boot into a live environment and work on your partitions while they are not mounted. Try the following:

Backup any data you cannot afford to lose
Assuming you have an Ubuntu iso file place it in the VM CD drive and boot the VM from the iso as if you are installing.
Choose Try Ubuntu.
From the live environment run GParted.
Expand sda2 fully to the right. You can drag the right hand edge. You should now have sda5 and the unallocated space inside sda2.
Expand sda5 to fill all the unallocated space.

There are plenty of YouTube videos that show how to use GParted if you’ve not used it before.
Good luck


For the username, check the ejabberd.yml file in the conf directory under your ejabberd installation directory, usually /opt/ejabberd/.
Default username is admin@<your_system_hostname>
Default password is admin.


Is there an application to control which windows are on top of others?

Rightclick the application topbar, check off Always on Top


Use gsettings, not dconf, see this. e.g.

gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-right "['<Shift><Ctrl><Alt>Right']"

etc


To find all files with /usr/lib/jvm/java-13-oracle/bin text in your / directory, execute the next command:

sudo grep -rl "/usr/lib/jvm/java-13-oracle/bin" /

To reduce searching time, you could replace / by /etc, then by /home/youruserfolder

Then you could check suspicious files, trying to comment those, where export PATH=$PATH:/usr/lib/jvm/java-13-oracle/bin or something similar is present.


When selecting from which drive to boot, you have both UEFI and non-UEFI Boot Repair. You have to start UEFI Boot Repair, then you can repair grub.

Edit:

Steps to reproduce:

Install Linux + Bootloader on sdb
Install Windows on sda
Start Boot Repair in UEFI mode and repair grub


This answer fixed my issue. I was using a GTX 1070 that didn't play nice with Ubuntu until I could get the right drivers installed.


That is because of you low RAM. Starting tab of firfox takes 100-150mb. From second onwards it takes addition 50-75mb RAM. You have a low RAM. Shortage of RAM causes this problem. You can overcome this by assigning a new Swap area. This can be better explained in this link.


"Intel SST Audio Device WDM" not working on Xubuntu 18.04

I don't know if this is going to help you, because I have no idea of what your hardware is, but on my setup (Arch Linux k4.17) the sound worked somewhat OutOfTheBox. The kernel driver bytcrrt5640 is responsible of this miracle (You know BayTrail + Linux). I just had to add bytcr-rt5640 UCM config files to /usr/share/alsa/ucm, and everything worked.

For you to make sure you can see the card, look at the output of these commands:

lsmod | grep "sst"

Looks for sst in loaded modules list

dmesg | grep "sst"

Looks for sst in the current boot log

ls /sys/class/sound

This informs you if there are any cards recognized by the kernel

If you see the card in sysfs, read the file driver in that device (/sys/class/sound/cardX/driver or name or something like that), that should show you if the card is recognized by your kernel.

If you find the card, but you can't see it in for example pavucontrol, then you have to copy the UCM files from
this GitHub repository. Just download it, cd into the right folder and read the README file. It should tell you the rest. After you have installed the configs, reboot (easiest way), and you should be able to see the device in pavucontrol.

EDIT#1 (After additional details)

Oh, I see. You should copy the directory
chtnau8824 (as you can see in the lsmod output). Enter the UCM-files repo you downloaded and run this command:
sudo cp -r chtnau8824 /usr/share/alsa/ucm/ and it should work as expected. Anyways thank you for your kind comment and supplying additional details that helped to solve (hopefully) this issue.

EDIT#2 cht_bsw_nau8824

I still don't know exactly what your other hardware is (like tablet model), but what I found is repository with UCM files specifically for your sound card (if my assumptions are right). The repository is here. Download it, enter the directory and replace your current UCM configuration with the new config. sudo rm -r /usr/share/alsa/ucm/chtnau8824 and then sudo cp -r ucm /usr/share/alsa/ucm/chtnau8824


Solution 1: For apt Firefox, install following plugin.

sudo apt install browser-plugin-freshplayer-pepperflash

Solution 2: Install snap Firefox.  By default, sound button works.


How do I upgrade my Windows 7 install to Windows 8 while booting from Ubuntu live USB?

The short answer is: No, you can't do this.


I am unable to set nfs block size to greater than 32kbps

I don't know a lot about this subject, but i made some research and i found that you can easily modify rsize and wsize values while mounting, The maximum value that can be set depends on the current kernel version you have.

Take a look at this : How to do Linux NFS Performance Tuning and Optimization


Why is an orange glow over half my screen when no windows are even open?

You are likely to be experiencing this bug that I recently reported:
 Bug #875557: Compiz grid plugin golden box appears after workspace switcher use. If so, please mark it as affecting you.


does KVM has the same tool like vmware tools?

Yes, vmware tools provide paravirtualization support to the guest operating system. The equivalent for KVM is virtio. Drivers are available for linux and windows:
http://www.linux-kvm.org/page/Virtio


Install Ubuntu 20.04 from usb fails, error -32 and error -110

SOLVED: This is a bug with Gigabyte motherboards and is not unique to Ubuntu: in fact it appears to occur for all 64-bit OS installs.
More info in:

[SOLVED] Install Woes [unable to enumerate USB device]
GIGABYTE GA-970A-DS3 motherboard not working with 64 bit kernel


Copy or export Remmina remote desktop files to another Ubuntu install

The files you need should be either in ~/.remmina (the hidden .remmina folder in your home directory) or in ~/.local/share/remmina (for newer versions).
For SSH, the known hosts are stored in ~/.ssh/known_hosts..
All your user settings, preferences, etc for your user are stored in your home directory, as that is the only folder you by default have permissions to access.


More reasons not on the original list:

Bad USB flash drive. This could even be a new flash drive which I assume to be not corrupted. Ubuntu will boot after making the Ubuntu live USB on a different USB flash drive. It's worth a try if you have two or more USB flash drives.

Reformat the flash drive and reload the Ubuntu ISO from an application for making a live USB.

Check the Ubuntu ISO that you downloaded against its SHA256 checksum to verify that the checksums match.

Voltage irregularities that affect the smooth amount of voltage delivered from the motherboard to the USB flash drive. Possible causes of this are motherboard, power supply and even irregular house current. A very old computer is more likely than a new computer to have issues with the motherboard or power supply that affect booting to a live USB session.
Here are a few suggestions that worked when I tried them.

Don't plug in USB devices like mouse and keyboard next to each other. Plug in one USB device at the front and one at the back.

Disconnect unnecessary devices when booting the USB to reduce the power load, for example disconnect one HDD if there are two drives. If you have a 4-port USB splitter with switches on each port this is ideal, because you can turn the USB mouse off when you don't need it and you don't need to open the computer case to disconnect an internal drive in order to reduce the power load.

The Ubuntu live USB will sometimes be able to boot if the same computer is moved to another location that has a more controlled source of current or connected to an uninterruptible power supply (UPS).

Overheating may cause the computer to power off when trying to start the Ubuntu installer. The CPU temperature can be checked by accessing the UEFI/BIOS setup utility when the computer is booting.

Some applications for making Ubuntu live USBs seem to work better than others. For example, the built-in Startup Disk Creator application is better than most.

In case the BIOS Boot options do not recognize the USB device at all, some older BIOSs do not even correctly label USB flash drives in the Boot options. Instead they use some non-standard nomenclature for flash drives like USB-FDD or USB-HDD. USB-FDD stands for "floppy disk drive" which never works with USB flash drives, so in this case you should choose USB-HDD instead. Even though a USB flash drive is not a hard disk drive choosing this option frequently works.

If this was part of a flowchart I would group all of the hardware reasons as child nodes branching out from the same parent hardware node. Similarly I would group the Casper nodes together and the grub nodes together, branching out from a Casper parent node and a grub parent node respectively.

(Click images to enlarge)


How can I browse Wikipedia's offline database on Linux?

Kiwix is an offline reader for Web content. It's especially intended
  to make Wikipedia available offline (see features). This is done by
  reading the content of the project stored in a file format ZIM, a high
  compressed open format with additional meta-data.

  Kiwix is a free software (GPL3), that means you can freely copy,
  modify and spread it.1

Click here to Download Kiwix.

1Source:Kiwix


You need to edit your grub configuration file using:

gksu gedit /etc/default/grub

look for the line containing "quiet splash" and change it like so:

GRUB_CMDLINE_LINUX_DEFAULT="splash plymouth:debug"

You might have other options there like kslar or vt.handoff=7 leave them in place. The important thing is to remove quiet and add plymouth:debug.

Save the file and then use:

sudo update-grub

Now when you reboot error messages appear on the boot screen plus a full plymouth log is located at:

/var/log/plymouth-debug.log

Good luck tracing down you errors!


running jvmtop profile & the JAVA_HOME environment variable

How to successfully run jvmtop to profile a Java Process on Ubuntu
First download and extract jvmtop, link: https://github.com/patric-r/jvmtop
jvmtop has no guarantee of working well with Java versions above 8.
In order to make sure you are using Java 8:
apt install openjdk-8-jdk

You can see all java versions installed, and switch to one of them with:
update-alternatives --config java

Make sure you're using java 8.
Go to the directory where you downloaded and extracted jvmtop.
The JAVA_HOME environment variable must point to a valid JDK, for jvmtop to work.
Easy way, Just:
nano jvmtop.sh

add to line 10:
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

or equivalent path to java 8.
Check for the process ID that you want to profile using command
ps -aux

Once you find out the process ID, run:
bash jvmtop.sh --profile <PID>

You can skip the pid and it will just profile all java processes.


Ubuntu additional drivers | amd64-microcode

Your CPU is working fine. This just lets you download a later microcode and update it; this microcode for the CPU is proprietary so it shows up in the dialog for drivers.

There is an actual bug here but it is that this program produces a false alarm that implies your cpu is not working. Here's the bug on Launchpad (1444682).

Your CPU is probably fine either with or without it but it is the text in the GUI dialog is raising a false alarm that is the problem.


Unattended install of Ubuntu 18.04 minimal desktop (netboot with preseed.cfg)

The preseed.cfg still contains the line

tasksel tasksel/first multiselect ubuntu-desktop

which will install a full Ubuntu desktop system (tasksel). Remove the line and try again.


How to install Ubuntu on a laptop that has fedora

Hi if you want to completely get rid of fedora and install , simply download ubuntu 12.04 from ubuntu website . Once you have downloaded you can burn it in a cd . or you can use a tool called "unetbootin" (google to download unetbootin) once you have the tool make it as a USB bootable and then boot from CD or USB and just follow the on screen instructions . If you have already tried it, tell us at which point you get error . please give more details to help youout


Problem installing LMMS using DNS Sound PPA

I've spent the better part of today looking for an answer to this, and it seems this is a build error with the DNS/Sound PPA:

https://launchpad.net/~dns/+archive/sound/+build/3324256

I'm a linux noob so I don't know if that is helpful or where to go from here, but I too would like to know how to get the latest LMMS up and running.


How can I reset my xwindows settings to defaults?

sudo apt-get purge xorg && sudo apt-get install xorg should remove xorg and all it's configuration files and reinstall it.


cronjobs need the full path:
try
/usr/bin/wget -q -O- http://myDOMAIN/cron/index
or
    /usr/bin/wget -q -O- http://myDOMAIN/cron/index 2> $logfile
and add $logfile to your mail


Why can't I install GRUB on my USB drive?

GRUB install can fail on the USB because its MBR is too small.

To install Lubuntu on the USB, I would simply create a persistant live-USB, via UnetBootin or else. This will act as a normal install, and will solve your boot problem because it will use a bootloader that will fit your USB MBR.


I think I found it. There's a checkbox setting in CompizConfig Settings Manager (CCSM), under the Window Management category, called "Move Window". It was unchecked. Checking it seems to have unlocked everything, allowing me to move my windows. Finally.


ushare for sharing between kodi on ubunrtu 16.04 und Lg smart tv webos 2.x

If you want to share multimedia files the easiest approach is to install minidlna.

sudo apt-get install minidlna

Then edit the minidlna.conf file with

gksu gedit /etc/minidlna.conf

Add shares for video, pictures and audio. The configuration file is well commented.

Restart the service with

sudo service minidlna restart

You should be able to see the new input on your LG TV.


apt-add-repository not working on Ubuntu 13.04 set up on VMWare

The name of the PPA is not correct.  To add the correct one, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

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


apt-get update updates all the packages?

apt-get update just updates the list of available packages from the repositories configured in /etc/apt/source.list and /etc/apt/source.list.d.

It does not update any installed software packages, that's the job of apt-get upgrade.


Grub problems after upgrading Ubuntu from 12.04 -> 14.04.1

apt-get autoremove is an easy way to remove old kernels, it also updates the grub entries.

I would try autoremove, reboot, check if the proper boot entries are available.

If the boot entry is still not available, try updating grub update-grub.

Both commands require sudo powers


First you find all files owned by said group and assign them to a new group if you so desire (probably best, but not sure)

https://unix.stackexchange.com/questions/159244/find-files-belonging-to-a-group ,

You then delete the group via sed sudo sed -i -e 's/group_to_remove/d' /etc/group


First, you should kill the processes by using : kill 709
Or, you can use: airmon-ng check kill.

Second, try ifconfig to show some info, then try iwconfig to check which interface is active.

Third, try airodump-ng interface again.

Good luck!


Why in any installation prompt (Y/n) the 'Y' is in Uppercase and the 'n' in lowercase?

Generally the capitalized letter means it's the default. If you press enter without typing any letter it will use the default (in this case 'Y').


The --window-icon parameter isn't meant to set the image displayed in the info/warning/message/question dialogs, but the gtk-window icon. You can confirm that this is set using xprop.

This means that there is currently no answer to this. If you are willing to modify the code and compile it yourself, I have added a patch to the reported bug on launchpad:

https://bugs.launchpad.net/ubuntu/+source/zenity/+bug/998491/+attachment/4293554/+files/image-fix.patch

This changes it, so that --window-icon not only sets the window icon, but also the dialog image:


How to reinstall or repair python3.8 safely in ubuntu 20.04 and revert all of its files back to default?

You need not have to remove python3. It will just make the matters worse.
Instead, remove pip and install it again following the command below.
sudo apt remove python3-pip
sudo python3.8 -m easy_install pip


Two different virtual desktops (different X sessions) on two monitors

It is possible you might be thinking of userful, it used to be in the repos, but isn't anymore the FAQ says it supports at least up until 12.10.

http://www.userful.com/support/all-downloads/uml-download

Here is another page that gives you manual setup options...

http://www.linuxtoys.org/multiubuntu/multiubuntu.html


“sudo ecryptfs-recover-private” gives “find: ‘/run/user/1000/gvfs’: Permission denied” - Files Lost?

You probably haven't lost it!! I had this exact problem too, and all I did was unmount the /gvfs directory which for me the command was: umount /run/user/1000/gvfs. I then ran the ecryptfs-recover-private command and it worked. I know how freaked out I was at thinking I had lost my information. I hope this helps someone else.


Character encoding/UTF-8 problem with mosh

I fixed this issue with #916, logging into server and running:
sudo dpkg-reconfigure locales

Using same locales than on local machine. #793/this should also work.
BTW then you can make some clean up.


Switch keyboard layout for next keystroke only

Ja, natürlich! ;-)

Just use the English (US Alternative International) keyboard …  Most Western-European (including German) letters except some really funny characters like ß, Æ, å, ø, and þ can be typed this way by using "dead" keys: to type ü just type " and u and it will result in ü.  The only disadvantage is that while programming you'll have to type "" and '' and go back with ← to then fill in the strings.

This is because if you try to type "a string", it will result in ä string" …

You'll get used to this within a week or immediately depending on how you type strings already!  ;-)

äëïÿöüçéè, … will pose no problems whatsoever!


Packard Bell Easynote TS1HR-120IT Notebook, is it compatible with Ubuntu?

Just by looking at the specifications on the Packard-bell`s website, I see no problems in installing Ubuntu.  You may have some wireless issues, if you do you can check back here for the solution.  Welcome to Ubuntu :)


So actually, I just installed a newer kernel (3.19 at this time), and almost all my problems are gone.

Also I switched to Ubuntu 15.04.


Using bash by default one command doesn't start until the first one finishes so you can use:

/path/to/command /path/to/file1
/path/to/command /path/to/file2
/path/to/command /path/to/file3

Put the commands in a script called for example ~/run-all-commands. Then mark it as executable using:

chmod +x ~/run-all-commands

Then call the bash script with batch of commands using:

~/run-all-commands


bumblebee daemon requires manual restart to work

you might need to do the following:
1. Bumblebee demon should be running as root (which it was at first start). You then killed the daemon and ran it as yourself (in userspace). So don't kill the daemon if it is running when you first boot
2. Add your username into the bumblebee group (adduser <user> bumblebee). Create the group if it doesn't already exist
3. In your bumblebee.conf file, change all occurences of nvidia-current to nvidia-352


Cannot mount old encrypted home directory

Try stepping through the ecryptfs-recover-private script yourself? It's just a bash script, you can copy & paste relevant lines into a terminal, replacing variables with your actual files.

You can also copy the ecryptfs-recover-private script and modify it, adding some extra echo lines to see what variables are before mounting, echo lines to be run, etc. (I'm certain there's a bash setting to display every line before it's run, but can't remember it right now.)

Maybe the ecryptfs-insert-wrapped-passphrase-into-keyring or the .ecryptfs/Private.sig signatures aren't matching, though the script checks for that.... but your output inserts one key sig, and tries mounting with a different sig.

At least you could run mount with -v for a little more feedback and to verify that the folders and sigs are correct.

There's also a bug, I thought just in mount.ecryptfs but maybe showing up here, where the fnek & fekek sigs get switched somehow.

Or, maybe some files have been corrupted. Any fsck news, or a current backup may be required. Also /var/log/syslog could have even more info.


The localrc of you devstack should have Sahara enabled like that:
ENABLED_SERVICES+=sahara

to restart devstack do ./unstack.sh and then ./stack.sh again

If successful, you should see a new 'Sahara' tab in Horizon after log in.


Since when?

If this is something that has always been the case in Ubuntu it could be that your have a wear-limiting feature enabled in your BIOS. Our Samsung laptop does this and we only get 80% of battery (but it has lasted 3 years without much drop in overall performance).

If the capacity is slowly dropping off, it could be that it's just losing capacity. This still happens with batteries; they have a lifespan where they slowly become less effective at holding charge.

And then there's the possibility it's a bug in the software that's reading the max charge and current charge. You can look at the rawer numbers with:

less /proc/acpi/battery/BAT0/state

If they don't correlate with what you know about the battery (it should have its capacity printed on the battery - you might have to take it out to see it), that might be your problem.


Some index files failed to download / public key not available

Based on the error message, you have two problems; one related to the public key for a repository and the other related to Google Chrome.

To solve the public key problem, run this command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>

Replacing <PUBKEY> with the public key mentioned  in the error message which is: 16126D3A3E5C1192.

The second problem is related to end of support for Chrome 32-bit. If you have a 32-bit system, you have no option other than migrating to Chromium. If you have a 64-bit system, run this command to force your system to look for only 64-bit updates of Google Chrome:

sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list" "/opt/google/chrome/cron/google-chrome"


Starting OpenVPN won't let me access local network IPs

I am more familiar with openvpn via network-manager.

But what is likely to happen is that openvpn is adding new IP route (for the VPN tunnel) and even remove the existing one to your local network.

You can check that by running:

ip route

before and after having started openvpn.

If the route to your LAN disappeared, you can manually add again a route to your local LAN with:

sudo ip route add 192.168.0.0/24 dev eth0

assuming you LAN is on 192.168.0.0/24 and your network interface is eth0

You can test the access to your LAN by using the ping command.

ping 192.168.0.2


Does the UEFI partition either "MUST" or "SHOULD" be first for some reason? If so why?

The key words "SHOULD", "MUST" and "MAY" (capitalised) in this answer are to be interpreted as described in RFC 2119.

An (U)EFI System Partition (ESP from now on):

MAY reside at the beginning of the disk
and
SHOULD be FAT32 because of Windows compatibility.

The only official limit is:

the ESP MUST reside in the first 2.2 Terabytes of the disk.

So, the ESP MUST reside anywhere in those first 2.2 TB of the disk, but there is absolutely no need for the ESP to be the first partition or reside on the beginning of the disk whatsoever.
(It's just that some large company in Redmond, WA advises system integrators differently)...

I would put it as the last partition on the disk (if < 2.2TB) as it's only used to load other OSes, but that's just a personal, totally subjective opinion!


Disable Preferences>Folder Comparison>Apply text filters during folder comparisons

I just installed meld on Ubuntu 18.10 and also had it freeze frequently. I changed the preferences by disabling Preferences>Folder Comparison>Apply text filters during folder comparisons. Obviously that makes directory comparison cheaper. This also may be the reason in your situation as even when diff'ing only small files there may be some folder being auto-compared 'full-text-wise' in the background.

Meld Preferences: disable Apply text filters during folder comparisons


Primary monitor turns off when it's input source changes, and does not turn back on

A downgrade from the Nvidia driver version 440.400 to 435.21 fixed the problem!


Changes in Apache Config between 12.04.2 and 12.04.3 LTS

Are you sure that Apache 2.4 was installed from one of Ubuntu's canonical repositories?  Are you using any PPAs?

Apache 2.2 to 2.4 was upgraded on me by a 3rd party PPA for PHP 5.4.  It was changed to PHP 5.5 and Apache 2.4 was added to the PPA at one point.  A new Vagrant up after a destroy broke when I ran into the same problem you did and the vhost config was incompatible with Apache 2.4.

What does the output from "apt-cache policy apache2" look like?  I've just created a new blank Vagrant instance and performed a sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade.  This is my output:

t# apt-cache policy apache2
apache2:
  Installed: (none)
  Candidate: 2.2.22-1ubuntu1.4
  Version table:
     2.2.22-1ubuntu1.4 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
     2.2.22-1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

I suspect that you'll see Apache 2.4 came from a 3rd party repo and not the canonical repositories for 12.04.


How to install SIP+PyQt with apt-get + pip + virtualenv?

The main problem here is that virtualenv seems to prefer to symlink /usr/include instead of copying those files to $VIRTUAL_ENV/include (you can check this while inspecting the source code of virtualenv: /usr/local/lib/python2.7/dist-packages/virtualenv.py in my system).

An easy solution would be just remove the symlink and copy those files from /usr/include:

$ cd $VIRTUAL_ENV/include/
$ rm python2.7
$ cp -r /usr/include/python2.7/ .

Please note that you may have symlinks on /usr/include/python2.7 pointing to relative locations, so when you copy those files they will become broken.

Then you only need a little modification:

$ python configure.py --incdir="$VIRTUAL_ENV/include/python2.7"
$ make
$ make install

BTW: if you want to force virtualenv to copy those files instead of symlink'ing, just change the definition of copyfile in the source code file. It's a ugly solution but works.

def copyfile(src, dest, symlink=True):
                                 |-> change this to False


Should I use use .htaccess to secure Wordpress, or can I use the virtual host config file?

Honestly, though it is technically "preferable" to put rule sin your apache config file, with something like a WordPress site, you're better off just using a .htaccess file, not least because almost everyone else who is hosting wordpress is doing it on a commercial web host where they don't have access to their Apache config files, so all the guidance out there assumes you're editing a .htaccess file.


Upgrade multiple servers to 16.04 using Landscape LDS

Landscape provides this functionality under the monicker of "Release Upgrades": if you select a set of systems, you should be prompted with options to kick off the release upgrade process.


Thunderbird 15.0 - In options->copy to disappeared folder list

This is bug 1045196.  An update is available for pre-testing in https://launchpad.net/~ubuntu-mozilla-security/+archive/ppa/ and will be pushed out at soon as it's been tested.  You can subscribe to the bug to see when the fix is released to the main archive if you wish.


ERR_CONNECTION_REFUSED after Installing Varnish on a Apache2 server

ERR_CONNECTION_REFUSED usually means that a port is blocked by a firewall, or there is nothing listening on that port.

If you're running on Ubuntu 15.04 or higher, the switch to systemd changed how Varnish reads configurations. Namely, it will ignore /etc/default/varnish and instead read the service file at /etc/systemd/system/varnish.service. Therefore, your Varnish server is probably running on the default port 6081.

To fix this, you'll need to override the systemd config. Run these commands:

sudo mkdir -p /etc/systemd/system/varnish.service.d
sudo nano /etc/systemd/system/varnish.service.d/customexec.conf

This will create a custom execution file for Varnish's service, which will contain your custom settings. In this file, make sure the contents are:

[Service]
ExecStart=
ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m

Make any changes to the config that you want to change, and then save the file with Ctrl+X.

Reload the systemd service cache by running this command:

sudo systemctl daemon-reload

When that command is done, restart the Varnish service:

sudo systemctl restart varnish.service

Make sure your firewall allows port 80 through, and you should be good to go.

As usual, this solution also assumes Apache is using port 8080 for everything -- there should be no binds to port 80 anywhere in the Apache config. Double-check this to make sure it's the case. If it is, one of Apache or Varnish will fail to start or work.

(source)


The Fix

Update /etc/default/ufw so that IPV6 is equal to no.

Notes

No ufw disable and ufw enable is required before you can successfully use ufw allow 22.

Note that I've no plans to use IPV6, so it wasn't an issue for me turning it off.

I appreciate this is a bit of a work-around, but it suits my needs.


Ubuntu Server setup: How to install Ubuntu on one drive and use other drive for file storage?

For example you have two devices

/dev/sda - will be ssd
/dev/sdb - will be hdd

in sda you create new partition ext4 with mount point /, and for    sdb - you create ext4 with mount point /home

And in the future you put all your files in home/user directory


How to Upgrade from Ubuntu 14.04 gnome to Ubuntu 16.04 gnome

To check if upgrading to the latest development release is possible:

Open a terminal (Control + Alt + T), and type:

  update-manager -d

If available run following command:

sudo do-release-upgrade

Press Alt+F2, type in update-manager, then the Software Updater should provide you a notification for newly available Ubuntu 16.04. Click on Upgrade and proceed with the installation.

Since you do not want to mess anything you should consider doing a fresh install because  16.04 has many significant changes compared to 14.04, e.g. it supports ZFS filesystem. Also there are many deep rooted packages in 14.04 which might create difficulty during the upgrade.

You may like to have a walk through following links:

Can I smoothly upgrade from one LTS to next LTS release?

Upgrading from 14.04 LTS to 16.04 LTS


Black screen after boot if machine starts with the TV off

Not much of help in your question, but I have the same issue. That "auto" in xrandr looks for a screen to set the resolution and so on at boot. I have a vague memory of running a "manual" xrandr command at startup to force the resolution in case the screen hasn't been detected,


How can I do command substitution in a .desktop file?

I ended up having to use bash -c.
This is the way to properly handle command substitution with fail support, while passing the files in %F correctly. I have to expand %F outside the '...' quotes and pass the files as arguments, then expand them again with "$@" inside the single quotes, otherwise I can't properly handle multiple files with spaces on each path.
Exec= bash -c 'r=$(zenity --entry) && /some/prog --arg "$r" "$@"' "$0" %F


Does mouse work with other machines?  If so, then it's an issue with Ubuntu.  To solve that, connect your wired and wireless mouse BOTH to the machine, and see if either of them works.  If the wired mouse works, then it sounds like you have need to find a driver for the wireless.  If the wired doesn't work, then it sounds like Ubuntu is doing a mini-crash when you connect your bluetooth mouse.

If it doesn't work with other machines, return it.


What version of Wine are you using? What specific program? Could be a dependency issue with that particular program. Have you checked the Wine App DB to see if there is anything you can do?

http://appdb.winehq.org/


Graphics card drivers generally causes these kind of heating issues. Go to Unity>Additional Drivers and check whether you are using the latest stable graphics drivers or not. In your case, it is GT630M which has heating issues even with Windows 7 and 8.

If you have it installed already the latest drivers and still problem persists, try Option 1.

Option 1: TLP: There is a similar thread, please go through it first. However, some people are saying that using TLP actually causes their system to overheat further. If that happens to your system, then remove TLP and go to Option 2.

Option 2: Thermal D + Intel P state: This worked for me, might help you too.

PS: I have ASUS K55VM which has the same graphics card. So, its likely to work out for you too.


Start node server from bash script without requiring a password

Permissions
You should not run your node server as root. If your node app is compromised by an attacker, he has root access to your entire machine. Your should keep running your node server by a user with less permissions.
The SSL certificate problem is solved by changing the ownership and permissions of your SSL certificate key files. For example, the public key takes an owner user:usergroup with permission 644 (-rw-r--r--). And private key takes an owner user:ssl-cert with permissions 640 (-rw-r-----). In order to accomplish this, use the following commands (and replace "user", "usergroup" and the paths by the correct values for your machine):
sudo chown user:usergroup pathToPublicKey

sudo chmod 644 pathToPublicKey

sudo chown user:ssl-cert pathToPrivateKey

sudo chmod 640 pathToPrivateKey

This is not perfect, but there is currently no other way to accomplish this with node (that I am aware of).
Starting node server
Starting up your node server at boot can be accomplished by setting a command that executes your script in rc.local. However, if node crashes, it will not be restarted automatically.
A better solution would be to create a service in systemd. This way, your script can be started at boot, is kept alive by the systemd daemon and it will be restarted automatically if it ever stops. In order to accomplish this, create a file in /lib/systemd/system called myservice.service (and replace "myservice" with a name of your choice). Inside the file, place the following contents (and replace "myusername" to the name of the user on your machine that should run the script, and beware to not use the root user, and input the correct path):
[Unit]
Description=start my node server
After=network.target

[Service]
Environment=NODE_PORT=2999
Type=simple
User=myusername
ExecStart=/usr/bin/node server
WorkingDirectory=pathToTheDirectoryOfYourServerJsFile
Restart=on-failure

[Install]
WantedBy=multi-user.target

After this, restart your machine. Then activate the service by the command
systemctl start myservice

And enable it on boot by the command
systemctl enable myservice

It is possible to user other daemons than systemd, such as pm2 or forever, but these will consume additional resources from your computer, so using the default deamon systemd that is running anyway, seems like the most logical choice.


Why do we need to be root in terminal for shutdown and restart?

The shutdown on the cog-wheel checks if you are allowed to shutdown the machine. This is done via PolicyKit. In case of shutdown this statement in the file /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy is checked:

<action id="org.freedesktop.consolekit.system.stop">
  <description>Stop the system</description>
  <message>System policy prevents stopping the system</message>
  <defaults>
    <allow_inactive>no</allow_inactive>
    <allow_active>yes</allow_active>
  </defaults>
</action>

The PolicyKit triggers a dbus-send command. In case of shutdown it would be:

dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown

There is a daemon running in the background with root-Privileges that invokes the shutdown command for you.

When you want to be able to shutdown the machine "the old way" via command line (shutdown, reboot, halt, ...), then you need to add the suid-Bit to those commands. But be aware, everyone on your system, that has access to the shell could then shutdown your machine.


Multiple disks in crypttab. Xubuntu 20.04

This answer explain how a single passphrase can unlock multiple encrypted disks:
https://unix.stackexchange.com/a/392286

In addition

The current version of *ubuntu seems to automatically load the mentioned script without being specified.

Looking at the contents of the /usr/lib/cryptsetup/scripts/decrypt_keyctl file you see that "systemd-ask-password" is used.

By running the command systemctl status systemd-ask-password-console.service you can check if the service is actually loaded.


The differences are the following:

If you leave it in /var/www you will have some permission problems that you will have to deal with. In your home folder, you are in charge since all files in it have your ownership by default.
Some users have the /home folder in another partition which means a +1 if you happen to format the root partition and leave the home partition alone for an upgrade.
It saves you from adding a user to /var/www or having to change permissions for it if you just put it in your home folder. For example instead of /var/www it would be /home/USER/www.
If you need to share via Samba the files, it is MUCH easier to do it in /home than outside of it.

There are more reasons but this are the ones at the top of my mind right now.


How do I make my HP G62 function keys work?

Fn Brightness Keys - Workaround

Currently it is impossible to map the FN keys. Therefore, two utilities for mapping alternative keys are needed so that screen brightness can be adjusted. From terminal:

sudo apt-get install xbacklight

Download Ubuntu Tweak from here and install it. Now open Ubuntu Tweak (Application -> System tools) go to the appropriate section (Personal -> Shortcut) and set the combination that you want for example

Ctrl+Up

xbacklight -inc 10

Ctrl+Down

xbacklight -dec 10

To increase and decrease the screen's brightness


Fedora has been using delta updates for some time:

http://fedoraproject.org/wiki/Features/Presto

  Normally when you update a package in Fedora, you download an entire replacement package. Most of the time (especially for the larger packages), most of the actual data in the updated package is the same as the original package, but you still end up downloading the full package. Presto allows you to download the difference (called the delta) between the package you have installed and the one you want to update to. This can reduce the download size of updates by 60% - 80%. It is not enabled by default for this release. To make use of this feature you must install the yum-presto plugin: yum install yum-presto.

Basically, the download is smaller, but the package (binary) is then rebuild locally based on the diff files.

So with "delta updates" the download is smaller, but they take some additional time to rebuild the packages / differences locally.

There has been some discussion about using delta updates for Ubuntu, but I am not aware that delta packages are in general use as of yet.

When will Ubuntu include delta updates?

https://wiki.ubuntu.com/UbuntuDebdeltaSupport

https://wiki.ubuntu.com/DebdeltaAptIntegration

Edit: Additional discussion

https://wiki.ubuntu.com/ImageBasedUpgrades

https://blueprints.launchpad.net/ubuntu/+spec/foundations-1305-image-based-updates

https://launchpad.net/ubuntu-system-image

  With Ubuntu getting ported to more and more mobile devices, the standard update mechanism through apt and dpkg is starting to show some limitations.

  As a result, Ubuntu is now looking at supporting an additional way of updating devices that are based on read-only images. For those devices, we're looking at doing image based updates, basically generating new images on the server side with the usual tools (debootstrap, apt, dpkg), then generate deltas between those images and have the client pull the delta and apply it without ever actually dealing with packages.

  We don't intend this to become the only way to update Ubuntu machines, and the use of apt/dpkg will remain supported with most devices having some kind of switch to opt out of image based updates and re-enable apt.


This is a bug of tesseract package, which is found in release 4.00~git2481-555f6ffc-1.
Do this:

sudo apt install libtesseract-dev libleptonica-dev liblept5
tesseract -v

If it did not help, just build tesseract from source...

Update 1:
You can do

sudo apt purge tesseract* libtesseract*
sudo apt autoremove --purge

to remove everything that belongs to tesseract  with configurations. However, it may also remove dependant packages, such as opencv (depends to libtesseract4)


apt-get update stuck at 100%[Waiting for headers] at "Hit http://security.ubuntu.com precise-security/universe Translation-en"

This might be a temporary problem with the mirror. I also can't reach the mirror at the moment of writing. Launchpad lists mirrors in Australia. Most of them are in a good shape and you could also choose them. The Ubuntu Wiki also has a page on Australian apt mirrors.


Difference between Repository Types and PPA

From man add-apt-repository:

SYNOPSIS
       add-apt-repository [OPTIONS] REPOSITORY

...

REPOSITORY STRING
       REPOSITORY can be either a line that can be added directly to
       sources.list(5), in the form ppa:<user>/<ppa-name> for adding
       Personal  Package  Archives, or a distribution component to
       enable.

       In the first form, REPOSITORY will just be appended to
       /etc/apt/sources.list.

For "deb http://deb.playonlinux.com/ bionic main", it will be appended verbatim. That includes having the distribution as bionic, even if you're not running Ubuntu Bionic 18.04. (Note that playonlinux is also available in the multiverse repo.)

For https://dl.winehq.org/wine-builds/ubuntu/, add-apt-repository will infer the missing parts:

type (deb)
distribution (xenial, artful, bionic, etc)
component (main)

       In  the  second  form,  ppa:<user>/<ppa-name> will be expanded
       to the full deb line of the PPA and added into a new file in the
       /etc/apt/sources.list.d/ directory.  The GPG public key of the
       newly added PPA will also be downloaded and added to apt's
       keyring.

This applies to ppa:peek-developers/stable. Yes the host is assumed to be Launchpad.

       In the third form, the given distribution component will be
       enabled for all sources.

E.g. universe or multiverse

Details about the sources.list format are from man sources.list.


You've added the PPA but that doesn't automatically update or upgrade anything.

You  just need to update with Update Manager or via:

sudo apt-get update
sudo apt-get upgrade


Ubuntu 18.04 NFS Share - No Files Visible

So I had 2 separate NFS disks present within /Storage, by creating separate export and mount points for each disk, I resolved this issue.

I noticed that when I did an ls -la on /Storage it showed the free space for sda2 on storage-01, rather than sdb1 and sdb2.


Sandisk Extreme 128gb XC is not recognised

I observe a similar behavior on a (dual-boot Win 10/Ubuntu 18.04) HP Spectre X360:

When using the Sandisk Extreme 128GB under Windows it works flawlessly, but trying to mount it under Ubuntu fails.

An interesting solution in my case was the usage of an USB-C adapter (USBC->HDMI,Card Reader, Network, USB3). After inserting the card into the card slot of this adapter instead of inserting it directly into the accoring PC-slot, Ubuntu was able to mount the card without any problems.


systemd shutdown [1] Failed to wait for process : protocol error

Welcome to Ask Ubuntu.

By searching for "[Failed to wait for process: protocol error]", I found there was a related systemd bug report about it.

A fix was merged fairly recently.. Perhaps Ubuntu will provide the update in a future update to 18.04.


Node js trouble intallation after removing nodejs, to update to latest stable version

the best way to figure this out is use:
whereis node this will help you pinpoint where the current package is.
navigate there and make sure the package is not a symlink (because if it is, apt-get might not work for you)

also, as far as I remember there was something called nodejs-legacy so make sure you don't have this installed, too.

Once all is uninstalled I highly suggest using node version manager:
https://github.com/creationix/nvm
(helpful hint: read readme and installer output VERY carefully to avoid installation issues)

I suggest using nvm, because ubuntu repository doesn't keep node version up to date, and it's way easier to switch between them if your project happens to use older release as a dependency.


How can I list all the wifi sources in range with their signal strength?

You can use nmcli to find what you're looking for:

[itnet7@localhost ~]$ nmcli device wifi list
*  SSID           MODE   CHAN  RATE       SIGNAL  BARS  SECURITY
   --             Infra  1     54 Mbit/s  90      ▂▄▆█  WPA2
*  Xunil_51       Infra  149   54 Mbit/s  66      ▂▄▆_  WPA2
   HoltzGuest     Infra  1     54 Mbit/s  29      ▂___  WEP
   ThatGuy        Infra  1     54 Mbit/s  29      ▂___  WPA1 WPA2
   CAT-HOME       Infra  6     54 Mbit/s  29      ▂___  WPA1 WPA2
   tla11854       Infra  6     54 Mbit/s  29      ▂___  WPA2

You can even use nmcli to connect to one

nmcli device wifi connect HoltzGuest password <enter password here>

If you're in a graphical environment and attempt to connect to an SSID that requires a key or password without specifying anything, you will get prompted like so:


How can I make a disk image of a hard disk with Windows 7 and Ubuntu installed side-by-side?

The problem has been resolved. I erased the partition with Ubuntu 12.04 and downloaded and installed it again. This time, however, during the installation process, when I was given the choice of retaining the configuration of elements that had been installed before or reinstalling them with an upgraded configuration, I chose the latter in every case. Now Clonezilla works flawlessly. It makes a complete image of my hard disk, and it is possible to boot from either Windows 7 or Ubuntu 12.04. No more "something went wrong" messages.


Stability of Ubuntu 18.04 LTS with Kernel Linux-5.4.0-26-generic

You might like to look at the following link. https://wiki.ubuntu.com/Kernel/LTSEnablementStack#Kernel.2FSupport.A18.04.x_Ubuntu_Kernel_Support
Ubuntu provide a hardware enablement stack which gives you more up to date kernels on older LTS releases. It’s a simple install that should solve both questions.


I have two monitors on my computer, how can I set a different wallpaper to each

This has been a problem since years. Manually create a big image with GIMP - that's the only solution for now.


Humble Bundle Closure Game: controls problem

It may be that some device (your keyboard for instance) is being detected as a joystick/gamepad, and this ruins the input. If you don't actually have/use any gamepads/joysticks, try removing the joystick support module:

sudo rmmod joydev

I had this problem myself, and found this quick fix here: http://ubuntuforums.org/showthread.php?t=1996702. I'm actually using this Microsoft Wired 600 keyboard mentioned in the forum, so it would be interesting to know if you're using the same keyboard.


Dual-boot. Tried to separate systems onto 2 drives. Now cannot boot Windows

From the information provided, I think Windows 7 is installed in BIOS mode while Ubuntu was installed in UEFI.

In my opinion its simpler to re-install Ubuntu in BIOS mode.

Edit-
As pointed out by @oldfred, you can install Grub in BIOS mode while in Boot repair rather than complete reinstall. Check in the comment below.


Ubuntu stalls when accessing "System Settings" -> "User Accounts"

I found the fix:

How to fix missing libwayland-egl.so.1 and libuser-accounts.so in ubuntu 14.04.3 LTS?

sudo apt-get install libwayland-egl1-mesa-lts-trusty

I didn't realize it was stuck on a loop. Duplicate post.


Configure pulseaudio server through terminal

paprefs is just not installed by default on XBian.

install it with

apt-get install paprefs


Why is Ubuntu unable to mount my hard drive when I use Nvidia Discrete graphics?

I have a discrete Radeon card in an HP Pavilion m6. HP has recently locked the BIOS to only operate in "mixed" mode so I didn't have an option to BIOS disable Intel HD graphics, and here was my workaround.

BIOS set to mixed - couldn't change this, but in the end it didn't seem to matter.
Synaptic > Settings > Repositories > Additional Drivers

Bingo, under the default xorg option is fglrx proprietary drivers for AMD graphics card.

Download base packages from the proprietary from apt-get or Synaptic. When I just tried to switch drivers without doing this the progress bar would hang with no error, so this one is important.
Once downloaded switching the selected driver to proprietary.
All systems report resources of the AMD graphics, MUCH cooler operation, instant and noticeable improvement in the general GUI.

Hope that translates to your hardware and helps you out a bit :)


How did you try to add it?

The correct syntax is: sudo add-apt-repository ppa:webupd8team/java.

This should work fine.


LightDM is free software, so you are allowed to make any changes you wish and even distribute them if you want.

LightDM uses so called "greeters" to display the login screen. There are several greeters available.

By default Ubuntu uses the unity-greeter. You can get its source code using

apt-get source unity-greeter

or from https://code.launchpad.net/unity-greeter

If you have some web design skills it may worth to have a look at "webkit-greeter" (package lightdm-webkit-greeter). This greeter lets you use a HTML file as login screen using JavaScript to interface with LightDM.


Why does memtest86+ restart immediately when I click start test?

I think that this can be the signal of the presence of a big problem on your RAM.

How many slots of RAM do you have?

If more than one, you can physically remove one of them, then try again with memtest+.
If still not working, remount it, unmount another slot and try memtest+, and so on until you find the damaged one. When you find it, you can either decide to remain with less RAM or buy another one. If the latter, take the damaged one to the store and buy another similar, otherwise it might happen that your BIOS won't recognize the whole RAM, but just a part of it.

If you have only one slot, the unique is to find a friend which lend you one of her/his and do again the memtest+.

If you do not find a damaged RAM (aka all the previous memtest+ fail / go right) the problem is somewhere else, maybe directly with the Motherboard.
In this case I suggest that you take your pc to a store.

WARNING: if your pc is still under warranty avoid any of the above and take it where you bought it, because opening it to remove the RAM will cause the warranty to become void.


Getting Ubuntu 17.10 to run with AMD rx550 [Acer Aspire Nitro 5]?

The AMD Accelerated Processing Unit (APU), formerly known as Fusion, is the marketing term for a series of 64-bit microprocessors from Advanced Micro Devices (AMD), designed to act as a central processing unit (CPU) and graphics accelerator unit (GPU) on a single die.

There's often a setting in the BIOS that needs to be changed to flip between on chip graphics and a discrete graphics card.

sudo lshw -C display | grep "driver" is what you want to determine what driver the chip is using.

Research indicates that The AMDGPU-PRO 17.10 driver does work fine with the Radeon RX 550, although it's true that it "Provides support for Ubuntu® 16.04.3 (kernel 4.10/X.Org 1.19)"

The latest binary blob release from AMD of the amdgpu-pro drivers is currently version 17.50 which delivers amdgpu-pro and amdgpu-all-open stacks using the same packaging infrastructure.

Further complicating matters it doesn't appear that any of the binary blobs from AMD support Wayland at the moment so if you intend to try to use one you will likely find it necessary to switch-from-wayland-back-to-xorg.

You might consider using the open source amdgpu packages available in the repositories for artful as a viable alternative.

For further detail on open source AMD APU/GPU drivers see this.


Ubuntu 12.04 login hangs on "Checking Battery" or "SANED," then returns to login screen

I have the same configuration, same Intel 2nd generation .. Xubuntu 12.04, and same hangs after "checking battery state" from time to time.
I don't have any Nvidia driver.

Short-cut solution : You can log into tty and launch startx.


What will happen to default unity launcher when cairo dock is installed?

You can run both at the same time there will be no connection between those two docks. Cairo has to be configured separately as always.


How to get compiz cube effect to work in classic mode?

I didnt like UNITY as well; so i run Ubuntu Classic, also NN 11.04...
I already installed CCSM (CompizConfig Settings Manager); and desktop cube only shows 2 of the 4 workspaces i use... I would have to use "super + s" (thats "WindowsKey + S"), to open EXPO and click on the 2 lower desktops.

SOLUTION: edit workspaces; from 2 columns & 2 rows... simply 4 columns.
How to edit workspaces? Right click on the "Current Workspace" icon(s) on any of the taskbars and go for Preferences.

Easy once youve figured it out...


Having trouble building ardour, can anyone help me with dependencies? I have tried reinstalling everything to no avail

Well, it says clearly
Checking for 'glib-2.0' >= 2.28    : yes
Checking for 'glib-2.0' >= 2.68    : not found
...
...
Checking for 'glib-2.0' >= 2.68
['/usr/bin/pkg-config', 'glib-2.0 >= 2.68', '--cflags', '--libs', 'glib-2.0']
err: Requested 'glib-2.0 >= 2.68' but version of GLib is 2.56.4

Which is consistent with my Ubuntu 18.04 LTS: It has Glib 2.56.4. The package name is libglib2.0-2.56.4-0ubuntu0.18.04.8, the -dev package which you need for building software is libglib2.0-dev-2.56.4-0ubuntu0.18.04.8.
But it wants the newer Glib 2.68. Ubuntu 18.04 doesn't have that. Since it insists on that newer Glib, your only option is to upgrade your Ubuntu; not sure if using a PPA for libglib2.0 would help, or if it would break other software that you have installed.
But you can simply install "ardour" from standard 18.04 repositories:
apt search ardour

ardour/bionic 1:5.12.0-3 amd64
  the digital audio workstation

ardour-data/bionic,bionic 1:5.12.0-3 all
  digital audio workstation (data)

ardour-video-timeline/bionic,bionic 1:5.12.0-3 all
  digital audio workstation - video timeline

https://www.howtoinstall.me/ubuntu/18-04/ardour/
sudo apt update
sudo apt install ardour


How to enable HP Pavilion tx1000 touch screen?

I was able to enable this touchscreen under Maverick, see this comment:
https://bugs.edge.launchpad.net/utouch/+bug/512188/comments/25

Please mark the above bug as affecting you too.


Instead of using PowerPoint,I recommend you to use Apache OpenOffice as it is available for Ubuntu and provides same features.


Mount encrypted home during boot (dm-crypt, luks)

I would recommend you to use a app called “Storage Device Manager”. It automatically mounts the device at boot without any hassle for me. maybe that can work for you. Full article about it can be read here:
http://www.howtogeek.com/60817/how-to-auto-mount-partitions-at-linux-startup-the-easy-way/


Facebook and Gmail stop working after 10 minutes

Some troubleshooting ideas :

Start a terminal and run watch -d -n 20 dig www.facebook.com.  Then, the moment that gmail or facebook shows the error, ALT-TAB to your terminal window and watch the next update for any changes.  I'm guessing that these sites have load balancers in place that are changing the IP addresses behind the scenes.  It's possible that your ISP is caching the content without your knowledge and your cookie is becoming invalid because the content being provided by your ISP is no longer a match for the connection being made by your browser.

You might be able to circumvent this by changing your DNS servers.  Try right clicking on nm-applet, then choose "Edit Connections".  Choose your ethernet connection (probably "auto eth0"), then "Edit".  Go to the IPv4 settings and change "Automatic DHCP" to "Automatic DHCP (addresses only)".

All your going to change is the DNS entries - either use Google's entries (enter 8.8.8.8, 4.4.4.4), or OpenDNS (enter 208.67.222.222, 208.67.220.220)

I suppose the other option for possibly circumventing such a time-out is to run Gmail over https.  Not sure if Facebook supports fully encrypted sessions.  To set Gmail to use https, go to your account settings at the top-right of the page, then in the General tab, find the "Use HTTPS" option and select it.


How to fix the "Setting locale failed" error while installing vim?

You need to generate your local files.  This is done use the locale-gen command.  The argument needed is the language and charset you want to set the system to.

For example, if I want my system to use English (US) with UTF-8, I would run the following command.

locale-gen en_US.UTF-8

It looks like you are from India and might want to run something like this.

locale-gen en_IN.ISO8859-1


Switch desktop workspaces on secondary display only

If u check tweaks -> Work space, there's an option Workspaces on primary display only. I think if u set the monitor to the primary monitor, It might work as the way how u wanted


Replace text of a specific line number using sed

Commands in sed accept an address range. In this case, to limit the replacement to just the first line, the range should be the single address 1 i.e.

sed '1 s/AccountSettings/Users/' users.html


In order to connect to passwordless auth SSH your initial server must have SSH password access?

You can set up key-based authentication from your Windows PC to your personal local server, of course you need to be able to access your server to do this. This will involve a password whether that's through an initial SSH session to set up the keys and disallow password SSH login, or whether you log in by entering the password in a physical console type of setup (attaching a monitor and keyboard to your personal server).

Once keys are set up, the only point you have to enter a password is at the client end, in this case when you're logging into your windows PC.

Obviously problems occur if you lose keys to a server that you cannot physically access and you don't have any other way to authenticate yourself.


How does one find out the command line corresponding to GUI app (eg, LibreOffice Writer)?

Run libreoffice --writer to start LibreOffice Writer.

In this case, I guessed that it might be libreoffice or similar, so I entered libre in a terminal and pressed tab twice. libreoffice was one of the options, so I ran that. It started something from which one could choose to go to Writer, Calc, Impress, etc. Since you asked specifically about Writer, I looked at man libreoffice, which mentions -writer as one of the command line options. Running libreoffice -writer worked but resulted in

$ libreoffice -writer
Warning: -writer is deprecated.  Use --writer instead.

And so I got to libreoffice --writer.

In general, one could try things like the following:

Guess and try names, based on the name of the application. Use Tab-completion for help. Read man pages for options.
Run the program (using a GUI menu or however else you run it), guess the process name, and check using ps aux | grep guessed_name.
If you know that the program belongs to installed package X, run dpkg -L X. It will list installed files from package X, look for /usr/bin, /bin, /sbin, etc in the output.
One can find out the process corresponding to a window as follows :

Run xprop _NET_WM_PID, navigate to the target window (without clicking!), and click on it. This will print the PID corresponding to the window, for example

_NET_WM_PID(CARDINAL) = 7394

Now run ps -p 7394 (with 7394 replaced by the PID you got) to find out the process name for the given PID.


GMA 6300 in asus eeepc x101ch stuck at 800x600

You should correct your question to "GMA 3600". I'm not sure how to get it working in Ubuntu but I've heard it works properly in Meego. Maybe someone here can suggest a way of pulling the driver from there.


Run sudo mkdir -p /var/lib/dpkg/info Then retry & report back.

The -p switch says 'make parent folders if they don't exist', if they do nothing special happens but your folder is created.


How to setup ds4drv as DAEMON on Ubuntu?

Follow the instructions from this answer ==> https://askubuntu.com/a/188148/483417

Use this file ==> https://gist.github.com/mariosotil/ed4293660c600fbe24b0


Audio and video auto of sync when streaming

When ssr outputs:

Warning: Audio input is more than 5% too fast, video and audio will be out of sync.

or

Warning: Audio input is more than 5% too slow, video and audio will be out of sync.

Do this:

  Edit /etc/pulse/daemon.conf, make sure it contains these lines (adding or uncommenting):

default-sample-rate = 44100
alternate-sample-rate = 44100

There is an upstream bug which is marked as fixed but the patch is not in the repository of Ubuntu.
The simplescreenrecorder bug which contains this workaround.


Two 12.04 versions on one machine. Cant access data

If you have formatted the partition that contained your data, then you will have to use a recovery tool to get back the files. You can use testdisk (sudo apt-get install testdisk) which I have personally found to be quite effective.

Or else, if you have just mounted/booted-into the 12.04 that has the home folder that contains no data, you can simply locate the other partition with sudo fdisk -l , mount it and copy/get your data from there


Physical access is root access, so if someone has physical access to the server, regardless on if it is on a VM or bare metal, they have root access. In the case of KVM the owner of the bare metal host can access the guest. You can always encrypt the data, but, that may be of limited benefit as the data will be decrypted when you access it.

Same with the network. The owner of the VM can see your network traffic. Again you can encrypt some of the traffic (https, ssh, etc).


Your problem seems very similar to mine - A8 in ASUS F1A75Vpro with built in graphics.  Failed to boot fully until about the 5th reset, sometimes consecutive 10th.  Always started to boot, usually freezing when 5 red dots have appeared beneath ubuntu.  But eventually it gets through.  I then changed the /etc/default/grub to remove the spash/quiet so I could see where it got to (you don't get the ubuntu and dots), and ran update-grub.  Same problem, but it always seemed to finish but freeze at the last minute before presenting the gui.  So I then put in the linux parameter nomodeset and so far it is booting cleanly every time (except that I can't get unity 3D and only have 2D - but that's no matter).

You could try the same if you sometimes do manage to get in.

I know nothing of boot repair, but don't like the look of what it has done.  It seems to have deleted grub-efi-amd64 and put in grub-efi-ia32-bin, and put a lot of stuff in /mnt.  My /mnt is empty and I still have the amd64.  Maybe you should wipe clean and start again.


Ubuntu Desktop 12.04 partition not showing up in partitioning tools

It sounds like you may have installed using WUBI, which installs Linux to a file inside the Windows partition rather than to a separate Linux partition. To be sure, though, edit your original question and post the output of the command sudo parted -l, typed in a Linux command prompt window. (Please indent every line with four spaces. This will adjust the formatting to keep the output legible.)


Latest security updates with debootstrap?

From Debian Wiki, Debootstrap, https://wiki.debian.org/Debootstrap:

  Debootstrap can only use one repository for its packages. If you need to merge packages from different repositories (the way apt does) to make a rootfs, or you need to automatically customise the rootfs, then use Multistrap, https://wiki.debian.org/Multistrap.


Can scripts be run directly from the ~/.config/autostart folder?

Instead of Exec=command1;command2;command3 try

Exec=sh -c "command1;command2;command3"


How could I safely delete the Desktop folder icon from my Home folder?

In your desktop environment (GNOME/Unity) and most others, the files and folders on your desktop are really in ~/Desktop. If you remove that folder, those files will be gone and -- even if you don't care about that -- your desktop won't work properly.

Instead, you will want to change what folder is actually used for your desktop, so that it is no longer ~/Desktop but something else (perhaps ~/.Desktop, as you suggested). This cannot be achieved by renaming the folder, because this setting (and most other settings involving files and folders) keeps track of the folder by its name, and not by its inode number.

To cause a folder other than ~/Desktop to be used as your desktop folder, you can do the reverse of the method given in How can I change the desktop folder path? and How to set the desktop to $HOME/Desktop? (Those questions are oriented to the situation where someone's desktop folder has accidentally gotten changed to something else and the user wants to change it back.)

Create the folder you wish to use. For these instructions, I will suppose you want to use ~/.Desktop. This is the main step that applies in your case but not in those questions, where the desired folder was ~/Desktop and already existed.
Open ~/.config/user-dirs.dirs in a text editor. You don't need to (and should not) edit this as root, or anything. It belongs to your user account.
Find the line that says:

XDG_DESKTOP_DIR="$HOME/Desktop"

Change it to whatever you like. If you want .Desktop instead of Desktop, use:

XDG_DESKTOP_DIR="$HOME/.Desktop"

In the rare case that no such line is present in the file, simply add it. It can go anywhere, but I suggest putting it above all the other lines that are not commented out (i.e., that don't  start with #), since that's where it's normally found.
Save the file and close the text editor.
Log out back in. (Rebooting works too, of course, but is unnecessary.)
Verify that the change was successful -- that you see the contents of the new directory on your desktop, and that creating or removing items causes them to be created or removed in the new directory.
Remove, rename, or move the old directory, if desired. You said you don't want to see Desktop in your home folder. Since at this point it's no longer your desktop folder, you can do whatever you like with it.

These instructions are not specific to Unity and should work with most other graphical interfaces on Ubuntu that implement the desktop metaphor.


EXIF Tool and video files which are saved with UTC timestamps

According to Phil Harvey (exiftool's creator), Quicktime timestamps are supposed to be set to UTC time as per the standard.  But it seems a lot of cameras don't do this, so exiftool doesn't assume a timezone and accepts the time as written. See third paragraph under Quicktime tags

Exiftool includes an option to correct for this.  If you are running exiftool ver 9.40 or later, you can add -api QuickTimeUTC to the command and it will assume that the timestamps are correctly written as UTC and convert them to local time.


How to stop "Floppy Disk" icon from appearing in 13.04 launcher?

You can try creating an udev rule to hide the floppy from the unity launcher and nautilus.

For Ubuntu 12.10 & 13.04

Create the udev rule.

sudo nano /etc/udev/rules.d/99-hide-floppy.rules

Match the KERNEL key with your device (floppy=fd)* and assign the UDISKS
variable.
The content of the 99-hide-floppy.rules file would be:

KERNEL=="fd*", ENV{UDISKS_IGNORE}="1"

To save the changes in nano... Ctrl+O, then Enter and finally Ctrl+X.

Finally refresh the udev rules with:

sudo udevadm trigger

For Ubuntu 12.04

The only difference is the name of the UDISKS variable.
It should be ENV{UDISKS_PRESENTATION_HIDE} instead ENV{UDISKS_IGNORE}

KERNEL=="fd*", ENV{UDISKS_PRESENTATION_HIDE}="1"

Hope this helps.


Ubuntu boots to tty instead of desktop after upgrade to 18.10

I didn't find a solution. I will just reinstall the system. And before you try to mark my post as a duplicate first read it bcs I said I already tried those things.


International US layout with distribution for tildes and quotes similar to Mac

Apparently there's a layout already for that, but it wasn't working immediately or I had to restart.

Select the English International with Alt Gr dead keys (without the US in the name) then restart your system. If you don't restart, the keyboard layout won't work.

Now I can type:

' -> single quote
AltGr + ' + e -> é
AltGr + e -> é
AltGr + n -> ñ
AltGr + ~ + n (so: AltGr + shift + ` + n) -> ñ

This is exactly what I was looking for... but apparently you just need to restart.


Installation of fakeroot should be fairly easy. I'm unsure what you've tried so far.
sudo apt-get update && sudo apt-get install fakeroot -y

Check if this works.


Just filter the output before passing it to xargs:
whereis python | awk '{print $3}' | xargs xdg-open

That awk command will only print the 3rd word, so that's all you will pass to xargs. Of course, using xargs is pointless when you just have a single argument. Perhaps you want this instead?
xdg-open $(whereis python | awk '{print $3}')

Or, simply use which which will return the first occurrence of the search string in your $PATH:
xdg-open $(which python)

Note that you cannot open python with xdg-open, that's nonsensical since there is no graphical program that can usefully open a binary, let alone a binary that is a scripting language.


Can't access docker container exposed port

I had to bind to 0.0.0.0 when running rails server. So I used rails server -b 0.0.0.0 as explained in the answer here. https://stackoverflow.com/questions/34246254/cant-access-docker-container


Why my Ubuntu online account become black in the last step?

I had the same problem. But this looks to be a known bug. It was fixed and they are rolling the updates. You should receive on the next few days.

If you want it a little faster go to "software and updates" and change your mirror to use ubuntu's main mirror.

BUG at launchpad


You can check for different versions of Thunderbird available, using apt-cache:

apt-cache policy thunderbird
thunderbird:
  Installed: (none)
  Candidate: 1:24.1.1+build1-0ubuntu0.13.04.1
  Version table:
     1:24.1.1+build1-0ubuntu0.13.04.1 0
        500 http://archive.ubuntu.com/ubuntu/ raring-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu/ raring-security/main amd64 Packages
     17.0.5+build1-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ raring/main amd64 Packages

If you want to install the older version you can use apt-get install package=version:

sudo apt-get install thunderbird=17.0.5+build1-0ubuntu1


Dailymotion videos not showing on Chrome 18. How to fix it?

Please try temporarily disabling your adblocker and reloading the page (click on the red "stop sign with a hand" in the upper-right of your screen, choose disable, then refresh). Let us know if that helps. or if it doesn't fix the problem.

--Nick


Does upgrading Ubuntu 10.04 will affect Windows 7?

The upgrade will only cover the files contained in your ubuntu partition so nop it's not going to affect your windows 7.


A script to monitor new files in folder so I can add them to an external XML files

Take a look at iwatch

  apt-get install iwatch

From man page:

  iwatch - a realtime filesystem monitor / monitor any changes in
  directories/files specified

Example:

iwatch /tmp -e create -c <your command/script>

Explain:

watch folder /tmp for new created files/folders. For each new created file/folder run command your command/script

In your case you could run a script which generate this XML files.

I can't give you a more detailed answer, but maybe it's a good start point for better answers :)


Touchpad bugs: 2 fingers scroll stops working, sensitivity increases, cursor moving on its own after a move

Update the kernel, get all the latest modules exist at the moment. If there is no module for your device, it will try to be generated. Reserve device and vendor keys for aliases in the blacklist from the output of the dmesg command.


Open plain text with default applicaiton

Applications listed in the "Open with" tab correspond with .desktop files of the application. These .desktop files inform your desktop environment how the application should be started, and are used to populate your application menu.

In this .desktop file, there is a line starting with "Exec=" where the command to launch the application is defined. Many programs can automatically open a file upon launching when you provide the file name on the command line. In .desktop files, the command usually contains a placeholder %U that serves that purpose. %U is replaced with the name of the currently selected file when you launch a file by double-clicking on it in the file manager.

Thus, find the .desktop file corresponding with your application. Make sure that the parameter %U figures correctly in the command line defined after "Exec=". Because in your case the application is a terminal application, make sure the .desktop file also includes a line Terminal=true.

If everything is correctly configured, double-clicking a file will open your editor in a terminal window, with the selected file opened.


Stream audio from PC to bluetooth headset via android phone

On the android phone:

install and run Bubble UPnP (tested) or any other DLNA or Chromecast client
pair and select your Bluetooth headset as output

On Ubuntu:

install and run pulseaudio-dlna (in the Universe repo from 16.10)
select Bubble UPnP from Sound Settings menu

Note that there will be some unavoidable lag from network buffering.


Can I zoom out windows or scale the whole desktop?

Disclaimer: I do not know if it works for all graphic drivers. Intel driver here, in 13.04.

First of all get the normal screen you have active:

xrandr --current

My output is:

Screen 0: minimum 320 x 200, current 1024 x 600, maximum 32767 x 32767
LVDS1 connected 1024x600+0+0 (normal left inverted right x axis y axis) 220mm x 129mm
   1024x600       60.0*+   65.0
   800x600        60.3     56.2
   640x480        59.9
VGA1 disconnected (normal left inverted right x axis y axis)

Ok, it is LVDS1. Now for example to zoom out at half linear dimension:

xrandr --output LVDS1 --scale 2x2

The whole screen should zoom out. Now I have:

(0)asus-romano:~/research/reviews% xrandr --current
Screen 0: minimum 320 x 200, current 2048 x 1200, maximum 32767 x 32767
LVDS1 connected 2048x1200+0+0 (normal left inverted right x axis y axis) 220mm x 129mm
   1024x600       60.0*+   65.0
   800x600        60.3     56.2
   640x480        59.9
VGA1 disconnected (normal left inverted right x axis y axis)

So the systems thinks it has a 2048x1200 screen. Very useful for crappy programs that thinks you have a gazillion pixel space and do not offer scrollbars in some option windows...

To go back:

xrandr --output LVDS1 --scale 1x1

(You can use 1.5x1.5, too). Look at man xrandr for a lot of fancy things.

Oops. There seem to be a bug in which the extended video zone is not reachable:
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/883319 and upstream https://bugs.freedesktop.org/show_bug.cgi?id=39949

A workaround for this is to specify the desired larger area as a --panning option, e.g.:

 xrandr --output LVDS1 --scale 2x2 --panning 2048x1200

It will not cause any actual panning, since the whole large area fits on the screen due to the scaling.


No, Google Chrome (nor Chromium or Firefox) is not supported on the phone image. Use of apt-get to install applications is also not supported on the phone image.

However, the standard web browser on the phone image (webbrowser-app) is based on the Blink engine which is used in Chrome/Chromium.


This command lacks a destination:

sudo mv -f -i FileSystem/*

Due to expansion of the *  mv will use the LAST one it finds for the directory to move it to (or file is there was only 2). Example:

touch 1 2 3 4 5 6 7 8
$ mv *
mv: target '8' is not a directory

It errors out because 8 is not a directory. The last one in your command probably was a directory so it will have moved all the files into that directory. Or if the mv consists of 2 files it will have moved one over the other.

So do a

ls FileSystem

and it should still have 1 item in there being a directory that has the result of your mv. Mind that due to the -f (force) and if it was 2 files you deleted one and will not be able to recover it. You would need to restore a backup.

Example of the last:

$ ls
1  2
$ mv *
$ ls
2

This only happens when there are TWO files.

1 errors out

ls
1
$ mv *
mv: missing destination file operand after '1'
Try 'mv --help' for more information.

3 and more error out too (as with the 8 files example above) UNLESS the last one is an existing directory:

$ touch 1 2 3 4 5 6
$ mkdir 7
$ mv *
$ ls
7
$ ls 7
1  2  3  4  5  6


Re-partition (or re-install) root without console/"physical" access?

Never did get it work myself, but there are others who have:

https://github.com/marcan/takeover.sh

https://unix.stackexchange.com/questions/226872/how-to-shrink-root-filesystem-without-booting-a-livecd/227318#227318

http://nullprogram.com/blog/2014/02/15/


When you deleted your home partition, you may have removed the alias for ls that's configured by default, and which would be in ~/.bashrc. Since you kept the same home directory when installing Ubuntu, this theory explains what you are experiencing.

To test whether this is the case, use

ls --color=auto

If this works correctly, you need to restore the default aliases and some other things, for this I suggest you just copy /etc/skel/.bashrc into your home directory (be careful if you've customized the .bashrc in your home dir).

This also depends on the coreutils package (for the dircolors utility), but that's installed in every ubuntu system so I'm pretty sure you're not missing that package.


Cannot set language and format of login screen

Ok..I have tested this with English US as main language and English UK as login screen's
The settings did not persist until I added the English UK Input Source for Login Settings. Once added I deleted English US Input Source from Login Settings.. you may choose if you wish to keep it or not.
Here are pics which are self expletive


Why does sudo gedit NOT open files starting with Exclamation mark

You are entering the sudo gedit /path/to/file command into a shell (by default bash), but modern shells use the '!' character for special purposes. Special characters can be interpreted without special meaning by preceding them with the '\' character.

Try:

gksudo gedit /path/to/\!file

instead of

gksudo gedit /path/to/!file

In modern shells the commands you enter are remembered and you can reenter them by using the '!' character. !! for example reenters the last command. As Uri points out, this is called an event designator. The bash interpreter also let's you use Ctrl+R to easily find commands you want to reenter, but the '!' mechanism is still there for us old-timers who have the habit of using '!' instead. Other uses of "!" include the $! parameter, and its use in arithmetic and logical expressions.

A bash reference may be helpful if you run into such mysteries because shells can be very complicated. The gnu bash manual is here.

Uri helpfully mentioned that you should use gksu or gksudo rather than sudo. There is an explanation here: What is the difference between "gksudo nautilus" and "sudo nautilus"?.


My screen's colors are inverted? or maybe reduced to only 8 different color?

quick answer:

install the required drivers manually. I'm answering for people that might run into this sometime, I ran into it today and fixed it this way.

detailed answer and resources

I use Ubuntu Server 18.04 here. The drivers are avalable at AMDs support site.
Download them (all 4 files are necessary, there are some useful hints in the installation guide provided by AMD) for your OS. In my case the most recent ones seemed to be for Ubuntu 14.04, nevertheless they worked.

After downloading them on a separate machine (wget didn't work on the server) I copied them to some local folder of my default user on the server, installed the required dependencies, then installed the 4 .deb packages from AMD and rebooted my server.