Create a change log (timestamped) in Kubuntu?

I would use a script. Suppose that your log file is $HOME/etc/mylogfile.txt.

Then save this script with a useful name in your $HOME/bin folder, for example addtolog, and make it executable:

#!/bin/bash
#
logfile=$HOME/etc/mylogfile.txt
{
  echo                   #blank line
  echo -n "Entry on "    #echo -n output the text without a new line
  date                   #current date
  echo                   #other blank line
} >> $logfile            #append output of {...} to $logfile
gvim + "$logfile"        #change with your preferred editor. The + tells gvim to
                         #open the file and put the cursor at the end
exit

Then you can use the command addtolog and start writing. The nice thing is that you can heavily customize this in the way you want --- change text, date format, whatever.

The editor Kate seems to have a -l option to go to a line, but not a "go to the end of file" command; but this is solved with (substitute the gvim line with this one)

kate -l $(wc -l "$logfile") "$logfile" &> /dev/null

wc -l file returns the number of lines in the file file; we use the $() bash command substitution here. The &> /dev/null here is to shut Kate a bit --- in a non-KDE environment like mine is otherwise incredibly verbose.

If you want to launch it from the desktop, simply prepare a .desktop file for it (you can find tens of answers on how to do that here).


My speakers and headphone doesn't work when i connect my headphone to my laptop

Have you tried using alsa? It's a terminal application that lets you see a list of all audio devices connected to your system. Check if the settings are unchanged when you plug in/out your headphone.

Try pressing F6 to make sure you have selected the current sound card. Also make sure the devices don't get muted.


Resizing an encrypted LUKS partition using the KDE Partition Manager

Your Partition Manager is too old (most likely 1.2.1). You need version 2.2 or later for LUKS resize to work.

Name field is just a name where unencrypted LUKS device is mapped to, e.g. if you type "something" it will be mapped to /dev/mapper/something. So your username should have worked out too unless you typed LUKS passphrase incorrectly. But for resize support you need newer version that actually generates this name for you automatically.

I suggest getting KDE Partition Manager 2.2 from some recent Live CD. Most of the other distros (except Debian, Ubuntu and their derivatives) come with a new version of KDE Partition Manager. I sometimes tried KaOS, Manjaro or Neon Live CDs for testing.


sublime-text installation warning in ubuntu 18.04 LTS using snap

Referring to snaps.io documents:

  A snap in classic confinement behaves as a traditionally packaged
  application, with full access to the system. As opposed to strict and
  devmode, what a classic snap sees as “/” is the host system’s “/” and
  not the core snap’s “/”.

TL;DR: It acts like usual .deb packages with access to read and write system's files, unlike usual snap packages which is entirely isolated from system minus allowed places.

If you want to install, pass option --classic at the command line, so it looks like:

sudo snap install sublime-text --classic

Installing it or not is entirely your choice.


How to use PuTTY to get X11 connections over ssh from Windows to Ubuntu

Michigan Tech has a very succinct explanation of how to use Xming here:

Installing/Configuring PuTTy and Xming

Excerpt:

  The PC interacts with the server through the X-windows system, forwarding the display from the server to the PC. Software must be installed on the PC to make this link work and the best software (so far) for this task is the PuTTy terminal emulator and the Xming X-window client.

PuTTy can be downloaded from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Xming can be downloaded from http://sourceforge.net/project/downloading.php?group_id=156984&filename=Xming-6-9-0-31-setup.exe

Once Xming is installed, run the application called 'XLaunch' and verify that the settings are:

1)  Display Settings:  Multiple Windows
2)  Session Type:  Start no client
3)  Additional Parameters:  Check Clipboard box

Then in your PuTTY session you can turn on the X11:  Enable X11 Forwarding

So then save that, and every time that session is invoked you will get a GUI connection to Ubuntu, as long as Xming is running.

Xming is verified by the visible icon in the lower right of the screen like so:

In the Xlaunch settings it is selected to not run on startup, so when you don't see that icon then click on Start, type xming and press enter and it will start the x-server and show the icon.

Now, when you make the connection, then you can see

pi@PRIME5:~$ echo $TERM
xterm

The leafpad editor, gnome-system-monitor, etc., work over the link via the Xming server on Windows.

It is easy to pull up nautilus and browse to

/usr/share/applications

to get any of the installed system commands, as shown here:

Voila, X11 via SSH from Windows to Ubuntu.


You can remove unused programs including kernel images with:
sudo apt-get autoremove


OK. I fixed it.

I have no idea how this could have happened. I was trying to get at least LAN working here, and as I was messing with the BIOS, I just thought I could just to reset it to the defaults.

And it damn worked.

What the...?

How come Ubuntu can mess with my BIOS?

I know I shouldn't ask questions in an answers, but is this a bug or something? Should I report it?


To my best knowledge, npm is quite tightly coupled to the version of NodeJS you're running. So to have different versions of npm installed in parallel, you have to install different versions of NodeJS in parallel. You can do that with the Node version manager nvm. nvm gives you the nvm command that you can use to switch between NodeJS installations etc.


You should be able to disable any service using the following commands:
sudo systemctl disable servicename.service
sudo systemctl mask    servicename.service

The first disables the service. The second ensures the service doesn’t start up again later.
To restore the services, unmask and enable:
sudo systemctl unmask servicename.service
sudo systemctl enable servicename.service


How do I copy over settings from persistent usb to installation on harddrive?

Copy your installed applications with

On your persistent install.

sudo dpkg --get-selections > packages.list

Transfer packages.list to your new install, and run

sudo dpkg --get-selections < packages.list
sudo apt-get update
sudo apt-get dselect-upgrade

Settings varies. User settings are in your home directory, so simply back up home. System settings would be any system file you manually edited.

Of course there are other backup solutions

Here is a link for additional options

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

You will get various opinions regarding which option to use.

Personally I use rsync, but I am not sure if you are interested in a command line tools

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

grsync is covered in that link and is a graphical front end.

You could simply rsync from your persistent system to your hard drive.

As far as your hard drive, aye jumpers are difficult sometimes. Your best bet is to google search the hard drive and see if you can confirm the jumper settings.

If all else fails, try cable select.


Accidently suspended laptop while the installation process was going on for upgrading from 17.04 to 17.10

Regarding the problem you describe, you should be able to boot in upstart mode in your GRUB menu advanced option.

If you're on a Ubuntu only machine, the GRUB menu doesn't show by itself, you will have to press the Shift key (or Esc on a few PC) during boot in order to see it appearing.

From there, you will be able to fix your packages by using
apt-get install --fix-missing as a first option. Then reboot and see if you are able to get to the log in screen.

Otherwise I'll ask you for more information.


Just to rule out one possibility, did you use a proper CD burning software (Brasero, Nero, Roxio, Deepburner) and set it to burn a bootable ISO? (As opposed to a standard data CD.) I only ask because it's a common mistake among newer users.
Did you change the boot order in your BIOS? F2, F10, & Esc are common keys to get to the BIOS Setup &/or Boot menu.
I'm not aware of any compatibility issues with that hardware.


You will find all the information about publishing apps on the developer site at http://developer.ubuntu.com/publish/

In essence, you create a click package with the Ubuntu SDK (via the Packaging tab in Qt Creator) and then you upload it to myapps.ubuntu.com. Once your package has gone through review and it's published, it will be available instantly via the Apps scope on the phone.

There is an ongoing discussion about making the apps available and installable from an online site, but such feature is not there yet.


Guitarix amp simulator "Failed to allocate memory" jackd

This error seems due to pulseaudio and jackd running at the same time.

There are several solutions:

Route PulseAudio to Jack while Jack is running
Suspend PulseAudio while Jack is running
Use two different sound cards
Do not use pulseaudio while Jack's running (solution provided in this answer).

To test this, you can suspend pulseaudio while Jackd is running with pasuspender -- jackd or pulseaudio -k.

For a permanent solution we can give jackd real time permissions, by executing the following two commands verbatim:

sudo dpkg-reconfigure -p high jackd2 -- Then choose yes, you want to lock down memory and have rtprio scheduling privilege. This will add those lines automatically to config files.
sudo usermod -a -G audio $USER or sudo adduser $USER audio -- Add yourself to the audio usergroup
Finally, activate the new group by restarting your PC or user session (you can also do it in a single shell with su $USER -c guitarix).


Lib not found: NICE-NOTFOUND when installing licode on Ubuntu 12.04 LTS

There is a 'nice' utility that is used to adjust running program priorities. I wonder if this could be the missing program? Usually it is installed by default. A quick google for 'nice deb' does not turn up much of anything useful. If you found a deb of the nice utilities, I wonder if that would solve your issue? HTH!


Cinnamon being a complete mess on Ubuntu

I found an answer finally! Installing Gnome tweak tool and enabling universal dark theme solves the problem.


How do I get my ASUS laptop to start at the right brightness level?

I had the same issue.

Solution = xbacklight:

Install xbacklight:

sudo apt-get install xbacklight

Then add "xbacklight -set x" (where 'x' = 0 to 100 desired brightness) to the startup applications via dashboard. For example, xbacklight -set 50.

This works with UX32VD and UX31A Asus Ultrabooks.


How to calibrate colors without a colorimeter?

Hmm. You can use displaycal-gui to create a synthetic ICC profile, then either double click the .icc file to install it or use the Profile Loader bundled with the application.

However, displaycal-gui doesn't let you edit curves of your color profile as far as I know. You'll be using something like this:


localhost:4567 url gets redirected to port 80

In the end it was the cache of the browser playing tricks on me. I have marked this question to be deleted by mods, as it has nothing to do with Ubuntu.

Sorry!


Help! I can't install anything because of subprocess error [SOLVED]

this code solved my problem

sudo mv /var/lib/dpkg/info/install-info.postinst /var/lib/dpkg/info/install-info.postinst.bad


I have Ubuntu and Windows 8.1 installed on separate SSDs each, any way I can access files in drive on the opposite OS?

Yes you can, actually I am doing this too.

From Ubuntu, this is a piece of cake, as it works out of the box, you just have to mount the drive, and that's it.

Under Windows it is a bit trickier, as Windows cannot read EXT2/3/4 drives by default. However you can install EXT2FSD, which provides a solution for this problem. It provides read and write support too, but just be safe, I recommend to use it for reading only.


How to remove texlive 2009 on ubuntu 12.04

Try

sudo apt-get purge texlive-*
sudo apt-get autoremove
sudo apt-get autoclean


What is the difference between sudo apt-get install and sudo apt install

Not much. apt is a new command that supposed to merge several functions from apt-get and apt-cache into one command. It's still a little rough around the edges but here's the command listing from --help:

Basic commands:
 list - list packages based on package names
 search - search in package descriptions
 show - show package details

 update - update list of available packages

 install - install packages
 remove  - remove packages

 upgrade - upgrade the system by installing/upgrading packages
 full-upgrade - upgrade the system by removing/installing/upgrading packages

 edit-sources - edit the source information file

The equivalent functions are designed to work in similar ways but it's not a proxy command (it's not calling the old ones - it's a new interface directly onto the Apt libraries) so there may be some edge-case changes.

There are also some obvious omissions (download, policy, etc) that power-users will miss and there are a whole raft of undocumented commands (purge still works but I can't find anything on it).

16.04 Update: A lot of the omissions have now been included but aren't yet documented, nor do they have Bash-completions. It's a shame it's taking this long to implement functionality that already exists in the codebase but oh well. My advice is that if you're used to an apt-{get,cache} command, try it on apt. It might work.

There's also a DIFFERENCES TO APT-GET(8) section in the man apt page that's interesting:

   The apt command is meant to be pleasant for end users and does
   not need to be backward compatible like apt-get(8). Therefore
   some options are different:

   ·   The option DPkgPM::Progress-Fancy is enabled.

   ·   The option APT::Color is enabled.

   ·   A new list command is available similar to dpkg --list.

   ·   The option upgrade has --with-new-pkgs enabled by default.

And if you want Bash-completions, I've had an attempt as writing a completions file for it already. These are included with later Ubuntu installs.


Switching a server to static IP from DHCP

If you haven't rebooted the machine since, that behavior is normal. Changing from dhcp to static ip should be:

sudo ifdown eth0
change the configuration
sudo ifup eth0

The reason is that if you do the ifdown after changing the configuration, it behaves as if it's taking down a static interface and doesn't kill the dhclient process that will keep just screwing up your configuration. In that case, just kill the dhclient process with

sudo killall dhclient

and it should all work out.


You can do it by

cat file | wc -w

or

wc -w file

"file" is your file name.


Finally I contact Fujitsu service because, instead all my tries to fix it, the computer continued shutting down when I launch process with high requirements.
They just change the power supply and everything seems to work correctly now.
I hope this will be useful for someone.

Thanks!!


You could and should run crucial work on the remote server in a multiplexer like tmux or screen.


How to update all your ubuntu-make packages?

Assuming you have choosed default installation path, all packages are installed in $HOME/.local/share/umake/

So you can list them and update them like this:

for path in $(ls -d $HOME/.local/share/umake/**/*/); do
    package=$(basename ${path});
    type=$(basename $(dirname ${path}));
    echo "Reinstalling ${package} of ${type}";
    umake --remove $type $package && umake $type $package;
done


indicator-multiload - Always display cpu at least 2 digits

There's no way to specify the printf format unfortunately. To always have two digits displayed for CPU usage you need to compile indicator-multiload from source.

install the build dependencies:

sudo apt-get install bzr
sudo apt-get build-dep indicator-multiload

branch the project sources:

bzr branch lp:indicator-multiload

Fix the print format for percent data:

cd indicator-multiload
sed -i 's/%u%%/%02u%%/' src/function.vala

Build it:

./autogen.sh && make indicator-multiload

Install the patched indicator in /usr/local/bin:

sudo cp indicator-multiload /usr/local/bin

Now below 10%, CPU usage is displayed like this:


How to mount MTP device without logging out?

It started working again on its own. I didn't have to do anything lol.


How to remap fn + ESC key to ESC key in Lenovo Yoga 3

The secondary function of the ESC key on this model triggers a special "paper" mode in Windows. This is likely implemented in the machine using an ACPI event sent by the embedded controller, which ends up in the kernel driver and triggers an OS specific action from there.

I have now found the correct event that is generated and sent a patch for Linux-4.4 at https://patchwork.kernel.org/patch/7573501/ that solves it on my Yoga 3 11. To clarify, the event is actually done through WMI GUID "26CAB2E5-5CF1-46AE-AAC3-4A12B6BA50E6" rather than the embedded controller, which is why the ideapad-laptop driver could not handle it already.


I cannot install ubuntu 14.04 lts on my PC!

You need to make your usb pendrive bootable for that please download and install USB universal Installer 1.9.5.2.Download From here

In this websites some steps are given to make pendrive bootable and install through it

You can use any DVD to install it.You need to copy iso file in your DVD and burn it and when you will restart your pc.Open recovery mode option by pressing F12 continuously in and then select DVD option to go further and then you can see ubuntu installations steps on your screen same as USB Pendrive
You can Re download it as it seems the file may be corrupted as you mentioned file size


Bash says my directory does not exist while trying to $export

I think you need to remove the '$' before export. Or did you accidentally copy the '$' from the terminal?

$ in a command example means that the command is to be executed as user, # would mean that it is to be executed as root. For an example, open your terminal and look at the prompt:

user@machine:~$

versus what you see if you switch to root with sudo su:

root@machine:~#


As the explanation of -R in ssh(1) suggests, on NWD set GatewayPorts yes in /etc/ssh/sshd_config. Then connect with:

ssh -R 192.168.0.1:23000:localhost:22 user@NWD

where 192.168.0.1 is NWD's local ip address. That should allow you to do

ssh -X -p 23000 192.168.0.1

from any of the computers on that subnet.


Just installed Ubuntu 12.04 LTS and have no internet

If Ethernet doesn't work, you are out of luck, but you would need to do a kernel update. Follow this guide to update kernel via ethernet: How to update kernel to the latest mainline version without any Distro-upgrade?

You are going to want to get the latest kernel. So, go to the bottom and download 3.13.6: linux-headers generic amd64, linux-headers generic all.deb, and linux image amd64. Then run cd /home/YOURUSERNAME/Downloads and then sudo dpkg -i *.deb. After that just reboot.


you open terminal and type these

  which <program_name>

or

  whereis <program_name>

alternatively use this command

 dpkg -L 'packagename'

will display the path to the the files


What cool features/applications are there to change the way ubuntu GUI interface looks and feels?

For first there is standard settings , go to the System settings and Personal box which have Appearance , where you can change theme , size of icons and wallpapers.

Here you will find new icons and themes : Deviant Art
If you want more customize install with console Ubuntu Tweak:

sudo add-apt-repository ppa:tualatrix/ppa

sudo apt-get update

sudo apt-get install ubuntu-tweak

Or Unity Tweak Tools:

sudo add-apt-repository ppa:freyja-dev/unity-tweak-tool-daily

sudo apt-get update

sudo apt-get install unity-tweak-tool


gpg decrypts files without asking for password

The phrase is cached by the GPG agent.

To clear the cache simply run

gpg-connect-agent reloadagent /bye

The encryption is not worthless, as the cache will be cleared upon logout, and will obviously not be transmitted with the file. Gpg is primarily meant to protect data in transit, and not from the logged-in user that encrypted it.


How to change Manual pages default font?

Open the terminal with pressing Ctrl + Alt + T
Go from menu Edit > Profiles.
On the Profile edit window, click on the Edit button.
Finally, in the General tab, uncheck Use the system fixed-width font, and then select your desired font from the dropdown menu


If you just want to access the files, go to Settings > Connectivity > USB Data Cable on your phone and in USB Data Cable either set Ask on conn. or Data Storage. The PC will then detect your phone as a normal USB drive and you can easily access contents.


I had exactly the same problem after upgrading to 18.04.1 Bionic. Also caused settings, VLC and sources to not work for me.

The problem was that gpg libraries were pointing towards libraries in /usr/local/lib rather than the default. Probably from some old install way back.

The solution for me was to move all of the GPG-related libraries in /usr/local/lib elsewhere, and re-do the links.

You can check what your gpg library linkages are by doing a:

sudo ldd /usr/bin/gpg

The fix entailed issuing the following commands on my machine:

cd /usr/local/lib
sudo mkdir bkp
sudo mv libgcrypt* bkp
sudo mv libassuan* bkp
sudo mv libgpg* bkp
sudo ldconfig /usr/bin/gpg

That fixed all my problems.

Might be too late for the original poster, but figured I would post this solution in case anyone else runs into the issue.


gsettings set com.canonical.notify-osd multihead-mode focus-follow

This is the correct way for 12.10.  You can test with notify-send


For use webpage on the terminal, you can use below commands

1) elinks http://example.com
2) curl http://example.com

above both commands, you have to install first.


Is it possible to save ssh password in remmina?

This might help how to save passwords in remmina

Go to dash type 'passwords' and click password and keys.
We need to create a new key for ssh logins, so select 'Secure Shell Key'
Type in any name for your ssh key.
Type in a new pass-phrase for the key, this can be anything string or even empty which is not recommended of course.
Now that the ssh key-ring is setup, we can save the credentials for our desired ssh servers. Just right click the newly created key ring
Enter the hostname or ip for the desired ssh server, user id.
Now it asks for the ssh password the server.
That does it, now you can ssh the server using console without entering the password. Now you can save as many credentials as you like by repeating steps 5 to 7.


I think you are not going to get an Ubuntu.

However there is an APC version of Raspbian that could work for you:

regards

Nico


How can I stop getting disconnected from my enterprise WPA2 wifi network every ~ minutes?

There have been past issues with the 5100  using 802.11n causing disconnecting as you describe.I a kernel update did not resolve your issues, another fix you could try is

sudo gedit /etc/modprobe.d/options.conf

add this

options iwlagn 11n_disable=1 11n_disable50=1

reboot.


11.04 server does not boot after installation

I suggest you boot off the install CD in to a Live environment and then look up on Google how to reinstall grub to boot off of a LVM root partition.

When I have boot woes, some times I've found Super Grub Disk very helpful, though I think in your case it won't be able to help much.

Also, when really stuck, you may want to check for solutions in the Debian world.

And when stuck supremely, try the Gentoo documentation for hints.


How to reinstall and completely wipe out Windows and the old install of Ubuntu?

Select the option to use the entire disk during the installation. Beware that this will erase your entire harddisk! So please make 100% sure that you have backups of everything that you need, especially things like documents, pictures, music, etc. before you proceed.

I would recommend using a separate partition for your home directory (or a separate disk as stated by the post below) because it makes backup and reinstall so much easier.


exFAT pagefile.sys size Error on dualboot with Windows 8.1

Boot to Windows and run a:

CHKDSK /F X:

where X: is the drive letter under Windows...

If that doesn't help, right-click on Computer, properties, advanced, swap file, re-create Windows swap file....

(Ubuntu question, Windows solution) and I would convert ntfs the drive....  FAT just has too many problems.  It's Windows95 technology after all...  :-(


Ubuntu 12.04 OEM install from USB - Need help to either change boot options or add to USB without losing OEM option

This is an example a bootable USB key (Backtrack/Ubuntu based) made using unetbootin

tree -L3

.
├── autorun.inf
├── boot
│   └── grub
│       ├── efi.img
│       ├── font.pf2
│       ├── grub.cfg
│       ├── loopback.cfg
│       └── x86_64-efi
├── casper
│   ├── filesystem.manifest
│   ├── filesystem.manifest-desktop
│   ├── filesystem.manifest-remove
│   ├── filesystem.size
│   ├── filesystem.squashfs
│   ├── initrdf.gz
│   ├── initrd.gz
│   ├── initrd.lz
│   ├── initrds.gz
│   ├── README.diskdefines
│   ├── vmlinuz
│   └── vmlinuz.efi
├── EFI
│   └── BOOT
│       ├── BOOTx64.EFI
│       └── grubx64.efi
├── install
│   └── mt86plus
├── isolinux
│   ├── adtxt.cfg
│   ├── chain.c32
│   ├── dtmenu.cfg
│   ├── exithelp.cfg
│   ├── f10.txt
│   ├── f1.txt
│   ├── f2.txt
│   ├── f3.txt
│   ├── f4.txt
│   ├── f5.txt
│   ├── f6.txt
│   ├── f7.txt
│   ├── f8.txt
│   ├── f9.txt
│   ├── gfxboot.c32
│   ├── gfxboot.cfg
│   ├── isolinux.bin
│   ├── isolinux.cfg
│   ├── memtest
│   ├── menu.cfg
│   ├── po4a.cfg
│   ├── prompt.cfg
│   ├── rqtxt.cfg
│   ├── splash.png
│   ├── stdmenu.cfg
│   ├── txt.cfg
│   └── vesamenu.c32
├── ldlinux.sys
├── md5sum.txt
├── menu.c32
├── preseed
│   ├── cli.seed
│   ├── custom.seed
│   ├── ltsp.seed
│   └── ubuntu.seed
├── syslinux.cfg
├── ubnfilel.txt
├── ubninit
├── ubnkern
├── ubnpathl.txt
├── ubuntu
└── wubi.exe

There 3 boot configuration folders:

/boot/grub/grub.cfg : Ubuntu original live cd boot configuration (Not used)
/isolinux/isolinux.cfg : Backtrack live cd boot configuration (Was used by ISO)
/syslinux.cfg : Unetbootin usb boot configuration (Used by USB, has some entries copied from ISO config by unetbootin)

All this configuration files have all most same syntax. We can just copy the entry we want to syslinux.cfg

As in your case it should the OEM entry:

label oem
menu label OEM install (for manufacturers)
linux /casper/vmlinuz
append initrd=/casper/initrd.gz file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash oem-config/enable=true --

You can learn from isolinux how make advanced menu. Make a look on all text files there.


Is there something as simple and easy to use as Paint?

kolourpaint is a nice little image editor. It looks and feels quite similar to ms paint.


Process pasued but connection not terminated to files in locasystem

SIGSTOP pauses a process without the processes' knowledge or consent. The process knows that the next byte it wants to write to one of its opened files is at GB+1. SIGSTOP/SIGCONT does not adjust this position information.

The usual way to handle this problem is catching a SIGHUP in the program and reopening the log, then contuning.


Laptop freezes during install of Ubuntu 15.10 from usb

The boot flags you need to boot are

edd=off noapic modprobe.blacklist=pinctrl_cherryview

APIC on that laptop likes to throw a fit when booting, and Ubuntu uses the Cherryview graphics for the chipset, which doesn't work either.


Unable to activate HDMI output with AMD/Nvidia hybrid graphics card

try to go to Applications-> Software & Update -> Additional Drivers and check if there aren't some blocked drivers related with nvidia or radeon. And just in case if you're trying to use your hdmi cable with the USB-C port, it just doesn't work on linux.


Any one else having problems connecting to IMAP Servers with Thunderbird 16.0.1?

So to answer my own question.  After more testing I can connect to the IMAP server with almost anything except the machine in question behind the proxy...

So it looks like a local configuration or network problem rather than a problem with Thunderbird.


Got the issue resolved the remedy was to add the option --with-readline=gnu while invoking the command ./configure. I don't know how it fixed the issue though. I followed a tutorial on the following URL: http://www.miscdebris.net/blog/2010/03/03/install-gnuplot-4-4-0-rc1-on-ubuntu-linux/


Yes there is. You need to wirte a second metamode into your /etc/X11/xorg.config. For me it looks like this:

 # excerpt from /etc/X11/xorg.config
 Section "Screen"
     Identifier     "Screen0"
     Device         "Device0"
     Monitor        "Monitor0"
     DefaultDepth    24
     Option         "TwinView" "1"
     Option         "TwinViewXineramaInfoOrder" "DFP-0"
     Option         "metamodes" "CRT: nvidia-auto-select +1680+0, DFP: nvidia-auto-select +0+0;1024x786,NULL;NULL,1680x1050"
     SubSection     "Display"
         Depth       24
     EndSubSection
 EndSection

I have an old LCD-monitor connected to my laptop. The LCD is called 'CRT' in xorg.config has a resolution of 1024x768. The laptop screen called 'DFP' in the file with resolution 1680x1050.

In my xorg.config you will find three metamodes (line Option "metamodes" "CRT: nvidia-auto-select +1680+0, DFP: nvidia-auto-select +0+0; 1024x786, NULL; NULL, 1680x1050") devided by semicolons:

CRT: nvidia-auto-select +1680+0, DFP: nvidia-auto-select +0+0; uses both monitors in auto select mode.
When a resolution of 1680x1050 (i.e. of my laptop screen is requested) the metamode NULL,1680x1050; deactivates the old CRT and sets the laptop screen resolution to that value.
Vice versa, when 1024x786 is needed 1024x786,NULL; deactivates the laptop screen and sets CRT to that resolution.

Now you just have to add similar entries. Finding out which display is called what will help. Then you have to set your game to use the resolution specified in the additional metamode. That should do the trick.


Customize Ubuntu LiveCD 16.04 desktop background

Try going to the folder of the default backgrounds /usr/share/backgrounds/, copy the image over that you would like to have as the default background, rename the new image warty-final-ubuntu.png, and then delete the original default background.


How can I remove Accessibility icon GDM3 (Login Screen)

Background:

It worked before with 18.04.X version Change cursor color after log out on ubuntu 18.04.2 LTS
It did not work recently Night Light on GDM screen?

Workaround:

create a text file named 99-a11y-settings in the direcotry /usr/share/gdm/dconf/ with below command.

sudo touch /usr/share/gdm/dconf/99-a11y-settings

edit the file and put your key with values like below content

sudo -H gedit /usr/share/gdm/dconf/99-a11y-settings

Content:

[org/gnome/desktop/a11y]
always-show-universal-access-status=false

then run

sudo dconf update

Reboot is required for the change to come in Action.

Here is my actual file content:

[org/gnome/desktop/a11y]
always-show-universal-access-status=false

[org/gnome/desktop/interface]
clock-show-seconds=true
clock-show-date=true
cursor-theme='DMZ-White'
cursor-size=48

[org/gnome/login-screen]
banner-message-enable=true
banner-message-text='TESTING WELCOME MESSAGE'

[org/gnome/settings-daemon/plugins/color]
night-light-enabled=true

Why the file is kept in /usr/share/gdm/dconf/ directory? Because the file /usr/share/gdm/dconf/00-upstream-settings says (some of the content only)

# This file is part of the GDM packaging and should not be changed.
#
# Instead create your own file next to it with a higher numbered prefix,
# and run
#
#       dconf update
#

and the file /etc/gdm3/greeter.dconf-default is connected with /usr/share/gdm/dconf/90-debian-settings as a symbolic link and not working.

Thus as a workaround higher number 99 is taken as oppose to 90, 91 may also work.


How to have an existing Ubuntu installation overwrite a Windows partition?

Using GParted to remove windows partition
This should explain how to do it using GParted. You just need to delete the windows partition in GParted before resizing the Linux partition, by right clicking on the windows partition and clicking "Delete"


Yet another wifi issue in Ubuntu with Qualcomm QCA6174..."WI-FI networks device not ready"

*Update

I was able to get it to work by doing what Jeremy31 said:

wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.158_all.deb
sudo dpkg -i linux-firmware_1.158_all.deb


You don't need grep/sed/awk at all, let find filter the results for you:

find . -type f -name '*load*'

Or, in bash only

shopt -s globstar nullglob
load_files=( **/*load* )

if you do want an external tool:

find . -type f | grep load
find . -type f | awk '/load/'
find . -type f | sed -n '/load/p'

With the sed, use -n to suppress normal output, and only print for lines matching the pattern.


Ubuntu 11.04 Is not Supporting My HP Pavilion Computer

You need to install your video card driver, after that Ubuntu shall show Unit interface.


appmenu for other window managers/desktops

For gnome-shell
To install appmenu in gnome shell add webupd8 ppa to the software sources
press alt +cntrl  +t and type

sudo add-apt-repository ppa:webupd8team/gnome3
sudo apt-get update
sudo apt-get install gnome3-globalmenu

Links

http://www.webupd8.org/2011/11/install-gnome-shell-global-menu-in.html
https://live.gnome.org/GnomeShell/Design/Whiteboards/AppMenu


Graphical artifacts during installation with Intel based graphics

user68186's comment gave me the answer.

Using the method described on the ubuntu forums, I set nomodeset so that the software does not attempt to use fancy graphics until the X window system has started, and the artifacts disappeared from both installer and installed OS.

In case of link rot:

When installing from the CD, press F6 and select nomodeset before selecting install.
Upon first boot, select your Ubuntu install in grub and press e to edit it.  Add nomodeset to the end of the line that begins with /boot.
Once you're in Ubuntu, open the terminal and run the command gksudo gedit /etc/default/grub Edit the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to read GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset".

The UI outside of the X windows system doesn't look nearly as pretty but it's a small price to pay for a usable system on my shiny new box.


Can I switch between desktop environments using terminal?

no, you log out and at the log in screen select KDE (or whatever you prefer). The log in manager will then keep your new selection as default.


Does mdadm contain a facility to cache to another drive?

No, the Linux software raid (managed by mdadm) is purely for creating a set of disks for redundancy purposes.1

I know of two projects that will let you do this: dm-cache and flashcache (both relatively experimental). It enables you to use your SSD as cache (read and write) for your slower hard drives or any other block device such as an md device. Both offer huge performance gain and are very tweakable to find balance in durability and performance.

Unfortunately, this not yet packaged or included in the kernel as of this time. Therefore it's not a very straightforward task to do in Ubuntu. Feel free to get your hands dirty, but remember it's a bit of experimental software and hard to get support on.

Related questions:

How do I install and use flashcache/bcache to cache HDD to SSD?
raid advice with SSD and two HDD

1 However, you can hint the kernel to use one of the drives for reading primarily, to get some improvement in reading performance, but this is not quite the same as a real SSD cache. See this answer by Gilles on how to do this.

  is there something I should do to assign ordinary RAM to caching?

This is already enabled in every Linux kernel! You can see the amount of cached pages by using free:

free -m
             total       used       free     shared    buffers     cached
Mem:         24047      17703       6343          0       6492       3550
-/+ buffers/cache:       7660      16386
Swap:         3811          0       3811

Here you see that it has now 3550 MB of pages (file system level) in cache, and 6492 MB of pages (block device level) on my machine. Reads to one of those will not result in a read from disk.

To demonstrate block-level caches this, try this command:

hdparm -Tt /dev/md127  # replace with your device - try both disks and md devices!

/dev/md127:
 Timing cached reads:   8624 MB in  2.00 seconds = 4313.50 MB/sec
 Timing buffered disk reads: 282 MB in  2.93 seconds =  96.31 MB/sec

The first result is clearly coming from caches in memory, whereas the second is read directly from disk.

To demonstrate the file system based caching using dd:

# first time
dd if=/home/gert/bigfile.img of=/dev/null
5927206912 bytes (5.9 GB) copied, 25.9253 s, 229 MB/s

# second time
dd if=/home/gert/bigfile.img of=/dev/null
5927206912 bytes (5.9 GB) copied, 4.91444 s, 1.2 GB/s

# third time, with file system cache disabled using iflag=direct
# yields results similar to first one
# Try using a bigger blocksize (bs=10M for example) if you're seeing very low speeds
dd if=/home/gert/bigfile.img of=/dev/null iflag=direct


Ubuntu 20.10 stuck on GNU GRUB version 2.04

Looks like Ubuntu did a giant fail and may have formatted the entire disk with only GRUB on it (somehow). Try reinstalling Ubuntu, and if that didn't work, reboot into the Live CD, and use this in a terminal (Ctrl+Alt+T or Ctrl+Alt+F2):
fdisk -l # this lists the disks

Try adding the results.


From what I have gleaned from google, it appears that your update was 'partial' and that some of your XOrg modules did not get upgraded along with your X binaries that were updated. Try re-running a full system update.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade (if sudo apt-get upgrade does not solve the issue)

this time, please take your time, examine the prompts that its asking you.

If this fails to resolve the situation, I'm not sure that anything short of:

ripping apart your install package by package to find the culprit, or
doing a full reinstall, would solve your issue.

[offtopic] When it comes to X failing I'm just happy we arent in the 90's when XFree86 ruled the X user sphere. That was a dependency nightmare. [/offtopic]


Error message when entering iptables command (table does not exist)

I think you needed to use the sudo command and the error message is just a badly worded way of telling you that you don't have the correct permission to run the command you wanted to run.

Here is a link to some instructions on how to get a firewall going with iptables.


How do I configure Simon speech recognition?

That simon and simond are not running.  You can do this by using the quit option from the menu.  (File -> Quit)

You can verify they are now running with this command-line:

$ ps aux | egrep simon

Rename or remove the following files and folders:

(The first two are folders.  The other four are regular files)

~/.kde/share/share/apps/simon
~/.kde/share/share/apps/simond
~/.kde/share/config/simonrc
~/.kde/share/config/simonrecognitionrc
~/.kde/share/config/simonscenariosrc
~/.kde/share/config/simonsoundrc
~/.kde/share/config/samrc

The commands to delete the configuration files are:

$ cd ~/.kde/share/share/apps/
$ rm -r simon
$ rm -r simond
$ cd ~/.kde/share/config/
$ rm simon*rc
$ rm samrc

The above steps will take you back to the default, where you will have the startup wizard again.  As far as a "Hello World" type scenario, look at the Youtube steps  provided by the main developer.


Kubuntu 15.04 no sound on HDMI (Intel NUC D54250WYK)

I am not sure what was a culprit but I wanted to share my story.  Bottom line is -  the sound system is working now.  There were numerous system updates via Muon including update of the kernel to 3.19.0-31-generic since my original post in mid October.

Also there are two HDMI hardware devices on INTEL NUC:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I suspect one is corresponding to HDMI output and other to DP.

Late in October, I made fresh install of Kubuntu 15.10 on the same hardware and the sound system worked immediately.  I also noticed that kernel changed to 4.2.0-16-generic.


How to specify a daemon shutdown command with upstart?

Using exec to start the process is fine, but when stopping it, if you absolutely need to run a specific script or set of commands, you can use the  pre-stop stanza.

pre-stop exec shutdown.sh

I assume you have tried just using an exec stanza and it didn't work, possibly because your daemon requires some specialized cleanup. Note that well-behaved daemons should receive a signal from upstart when the job is stopped, and if they handle the signal appropriately no additional cleanup should be needed.

  Stopping a job involves sending SIGTERM to it. If there is anything
  that needs to be done before SIGTERM, do it here. Arguably, services
  should handle SIGTERM very gracefully, so this shouldn't be necessary.

  if there is anything critical, like a flush to disk, and raising kill
  timeout is not an option, pre-stop is not a bad place to do it

Also read this section for the entire workflow of what happens when you stop a job. Notice when pre-stop is run, and how a signal is sent to the process afterwards, which is how upstart handles stopping jobs normally.

My source is the official Upstart cookbook at: http://upstart.ubuntu.com/cookbook/


Finally i installed Ubuntu.I succeed by booting directly with the iso file with the help of easy2boot.Thanks everyone who responded and e2b devolopers.


Booting back to Ubuntu after Fedora installation

It happened to me some time ago, using different distro. In my case it was problem in mounting wrong partitions.

Can you tell me if you have also windows installed?(Ubuntu may then mount wrong partition(hibernated ntfs win partition).

Solution:

Create Ubuntu/linux live usb & boot into live session.
Go into Ubuntu's partition and check in /etc/fstab for errors on that partition ( e.g. /media/Ubuntu/etc/fstab) . Maybe fstab file makes Ubuntu mount the wrong partitions. Learn about fstab on google.

If that does not work there may be problem with fedora's grub.

Boot into live-usb linux session and try 2 things (if one doesnt work, restart and try another):

in terminal run :
sudo update-grub
Try to "brute force" it with boot-repair. Go in Ubuntu and run commands, and choose recommend repair. And hope it helps.

You can also try this. As soon as you turn the computer on press esc or del to choose from uefi menu (I do not mean grub menu, I mean BIOS-UEFI menu) what to boot, and choose Ubuntu (this will maybe open the old Ubuntu's grub.


How to run `autopostgresqlbackup` in a cron job?

Now your cron job won't work as is:

34 20 * * * echo "DAILY INTERNAL BACKUP - POSTGRESQL" && sudo autopostgresqlbackup

Several things there:

This echo "DAILY INTERNAL BACKUP - POSTGRESQL" won't be seen as cron runs in it's own shell
This sudo autopostgresqlbackup:

sudo isn't needed to run cron job, since I assume your root
autopostgresqlbackup, the full path to this command is needed to get it to run.

So your cron job might look like this:

34 20 * * * echo "DAILY INTERNAL BACKUP - POSTGRESQL" >> /var/log/postlog && /path/to/binary/autopostgresqlbackup


Solved : Dual boot, Grub is not running when PC starts and ubuntu is not in the boot settingd

I suspect this might be an issue with Ubuntu being corrupted (I could be wrong probably)
First off try going to your computer's BIOS (how you access it depends on your manufacturer, it's something like DEL, F12, or something like that when it shows the computer's logo).
Check on boot priority and if it doesn't show Ubuntu then maybe the Ubuntu OS has been coroupted.
Check if windows even stored the Ubuntu files first
https://www.howtogeek.com/261383/how-to-access-your-ubuntu-bash-files-in-windows-and-your-windows-system-drive-in-bash/


You could try Directory Encryption with encfs.

Encfs is an application that allows you to create encrypted directories, any file that is placed in such a directory will be encrypted. To open an encrypted directory you need a correct password.

Please refer to FolderEncryption for more details.


Is this a bug in gedit or a corrupted file?

The file 10.txt opens properly in Emacs. It also can be opened in gedit, but it does not display correctly, possibly due to the fact that 10.txt is a large (736.3 kB) text file without any linefeeds. If you don't want to install anything it also can be opened in nano, but 10.txt looks more readable when it is opened using Emacs. Because 10.txt is easy to read in Emacs, it is possible to see that 10.txt does not appear to be corrupted, although the text looks like code and not like language.


You can search find packages in Ubuntu Package Search - in this case the results for kdenlive show:

kdenlive 0.9.4 from the Raring (13.04 unsupported version).
It also needs kdenlive-data 0.9.4 to work.
It may also need libmlt5, as well as some other packages listed as dependencies (packages required for kdenlive to work) that aren't available in Utopic.

You can download the packages from the bottom of the packages' page (see also How do I check if I have a 32-bit or a 64-bit OS?, you probably need to know which to pick).
Then, making sure Utopic's kdenlive (and it unneeded dependencies, use apt-get's autoremove) has been removed, install the packages using gdebi or by opening them from File Manager.

If the packages do not work as they unsolvable dependences for that version (the dependency is installed but the wrong version), you may be able to get old versions of the source code and compile from them

Note that if you want to try a newer version of Kdenlive (0.9.10), you can use it's PPA (source)


Ubuntu dual boot with Windows 10. Issue with windows disk access

So if I understand correctly you are trying to install Ubuntu on a hard disk that already has Windows installed on it but the Windows partition isn't showing up when running the Ubuntu installer?

Check your hard disk partitions. You can only have 4 primary partitions on a basic HDD. A typical Windows install has 1 partition for its system files, 1 for its c: drive and user directories, and 1 recovery partition. This leaves you one remaining partition on which to install Ubuntu.  Ubuntu typically at minimum format 2 partitions when installing; a / partition for its root dir and a /swap partition. If this is the case and there are not enough unused partitions or enough space remaining on an unused partition to install Ubuntu, this install will be impossible on one basic disk.

If this sounds like your problem. Try removing the Windows recovery partition (should probably copy these files to somewhere else first in case you need them later or don't want the dual boot disk anymore) and reformat the free space as one unused partition. then configure Ubuntu installer to manually partition your disk when prompted so as to avoid installing the /swap partition ( note that this should only be done if your system has sufficient RAM >=2GiB).

To check your windows partitions use diskpart from the command line and select disk and view partitions or go to your disk manager to visually see the partitions on your drive.


Partial answers:

Ubuntu 11.10 is not released yet. It will be released in oktober 2011 (Hence the 11.10). The most current version of Ubuntu is 11.04, however, I can't answer your question for that version.
I highly doubt Sony offers support for Ubuntu. However, a lot of people who use Ubuntu share whatever problems they have and the solutions they have found and did or didn't work. As far as I know there is no specific support for Vaio laptops.
There may well be problems, but in my experience, most problems can be fixed. "Support" for Ubuntu is provided by Canonical, where you can buy it, and the community, which provides it for free. If you are looking for a solution and you can't find it by Googling, describing your problem properly and asking kindly for a solution here, on a forum such as ubuntuforums.org or in irc (#ubuntu at irc.freenode.net) will often result in someone posting a solution to your problem


Cannot install Kernel Security updates in 14.10

The command that I was missing was:

sudo apt-get dist-upgrade

done. fixed.


The best thing to do if you want to change from .pbp is to change the extension name to .iso .


after using the terminal,wireless connection is gone

Well, that's strange. You did nothing that can alter you Wireless connexion...

Option 1. Undo the source command :

Move the .bashrc and reboot

sudo chmod 777 ~/.bashrc
sudo mv ~/.bashrc ~/.bashrc.bkp
sudo reboot

When restarted, restore your .bashrc

sudo mv ~/.bashrc.bkp ~/.bashrc
sudo chmod +x ~/.bashrc

Restart and see if you have wireless connexion (don't count on it... but who knows?)

Option 2. Undo your manipulation :

gksu gedit /etc/fuse.conf : Add a # at the beginning of the last line
sudo mv /etc/udev/rules.d/51-android.rules /etc/udev/rules.d/51-android.rules.bkp
sudo service udev restart
sudo apt-get remove --purge mtp-tools mtpfs
sudo reboot

If still nothing... I really don't know what you did ^^

In the future, regarding your android tablet, if you have 13.04 or superior, it works out-of-the-box (tablet settings to MTP, disable USB debogging if activated)

If you have 12.10 or older, check :
http://www.webupd8.org/2013/01/upgrade-to-gvfs-with-mtp-support-in.html
http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html

Note that Google uses a different protocol than other manufacturers. It uses go-mtpfs instead of mtpfs ('go' for 'google')


The correct command should be this:

find /home/siddath/enron | parallel python email_parser.py {} > from_to.txt

What did I do?

After the pipe, you wrote \ parallel - that is the same as if you ran ' parallel', both ways you include a space in the beginning as part of the command. Of course this command does not exist and can therefore not be found. Simply removing the \  solves that problem.
You wrote find /any/directory -name "*" -print, but -print is already the default action and if no filters are specified, it finds all files and directories - same as with this universal wildcard filter -name "*". So you can omit both parameters and simply write find /any/directory instead.


Ubuntu on HP Pavilion x360 convertible 14-dw0997nz

The Problem was not Linux.
First I had to create a bootable Stick using GPT (not msdos).
Second, I had to login into Windows, and then searching in the configuration for the reboot from stick option. Unfortunately I can not reproduce the procedure, hence my #@!%-M$Windows is fortunately gone forever! (For that, I had to create a Windows account only to delete windows: funny, isn't it?)


Will Ubuntu for Android be fully open source?

Silber said Ubuntu for Android would be released under an open source
  license, but that Canonical expects it to mostly be pre-installed on
  specific hardware.

-- Jane Silber, Canonical CEO in PC Pro


In Gnome Terminal you can use :

Cntl + PgDn to move between tabs from left to right
Cntl + PgUp to move between tabs from right to left

Answer to the edited question :

To change teh key mappings for switching betwen terminals go to

Edit > Keyboard Shortcuts...

Then change it like the picture is showing :

As you can see i have changed the mappings to < and >.


How to  make a Web browser (e.g. Firefox Web Browser) embedded an Gnome Desktop in Ubuntu 10.04

There are two different approaches.  I'll give you both, the first should work for your specific answer and the second you may find more general and applicable overall.

First, shut all applications except the web browser and make sure the browser is in the workspace your have chosen for it.

Now select the System -> Preferences -> Startup Applications... menu choice.
Then click the Options tab
Click the "Remember Currently Running Application"

Now you could close the dialog and when you log in you should get the browser started in that workspace.  The "Remember..." button has a typo, it should say "Applications" (plural) because all running applications are remembered.

Option two is to select the "Automatically remember running applications when logging out" check box.  This way everything you are running when logging out gets restored and for many of us that makes for better connectivity between login sessions.  This may become more to your liking.


How to put the windows close button on the right?

Just paste the following in your terminal,

gconftool-2 --set "/apps/metacity/general/button_layout" --type string ":minimize,maximize,close"

Now you can see that your buttons are placed in the right side.

To revert:

gconftool-2 --set "/apps/metacity/general/button_layout" --type string "minimize,maximize,close:"


Ubiquity is the name of the Ubuntu installer application.
The corresponding package is simply named ubiquity.
The ubiquity package is available in the Live Environment, but it is removed once the system has been installed. (On Cubic's Packages page, you should see Ubiquity flagged for removal).
Therefore, if you want to modify aspects of the installer, you can modify files related to Ubiquity.
However, based on your question, I think you will be more interested in another package: ubiquity-slideshow. This package is also available in the Live Environment.
Files for this package are located in the /usr/share/ubiquity-slideshow/ directory.

There are lots of HTML files here that can easily be modified if you want to display something different during the installation process.
/usr/share/ubiquity-slideshow/slideshow.conf sets the window size for the installer.
The actual screenshots you see are stored in /usr/share/ubiquity-slideshow/slides/screenshots.

In Cubic, you can use nano to edit any of the HTML files. However, you can always list the contents of a file (using cat <file name>, then select-and-copy the text to edit it outside of Cubic. When you are done editing, save the file on your host machine, and then drag it onto the Cubic Terminal window to overwrite the old file.
Likewise, to change the images in the  /usr/share/ubiquity-slideshow/slides/screenshots, simply drag your new image files on to the Terminal page to copy them. (Use the same names as the original image files, to avoid having to change code).
Before copying, remember to cd to the directory first, because Cubic will copy files to your current location. So, to change the screenshots, use cd /usr/share/ubiquity-slideshow/slides/screenshots before dragging the new files onto the window.
If you want to work with the ubiquity-slideshow files on your host machine, you can download the entire deb package for from here for Ubuntu 20.04. Use Archive Manager to extract the deb file (don't install it!) to a temporary directory so you can make changes to the HTML or image files. Then copy only the changed files into Cubic.


converting the OS with all software installed to iso file

You can check out Linux Mint Forums or this blog where the discuss the same issue.

Apparently the tools to use are Remastersys or Relinux, Relinux appears to be newer and more promising.


How to unmount a partition before reinstallation?

to unmount your partition

open gparted
right click the partition you want to unmount
select the unmount option


Why partition is not mounted after installation of ubuntu 12.10 in place of windows 7?

Start by opening Disks and try to mount from there. If that fails:

Open Terminal (Ctrl + Alt + T) try sudo blkid and take note of the UUID of your partition.

Then run gksudo gedit /etc/fstab and add a line like the following one:

UUID={your uuid here}   /mnt/Data   ntfs    uid=1000,gid=1000,dmask=027,fmask=137   0   0


How long is it supposed to take "creating a persistant file" with Universal USB Installer?

Universal USB Installer and a casper-rw file

The OP, @Bonita, was able to solve the problem after we had exchanged ideas via comments. I write this answer to explain the solution.

The Universal USB Installer creates a casper-rw file for persistence, and she had selected all remaining space for it, which made it huge, because it was in a hard disk drive. The method to create the casper-rw file is intended for rather small USB pendrives, and it will take a very long time for a huge file.

She solved the problem by creating a smaller casper-rw file, only a few Gigabyte.

  Universal USB asked me (optional) to define the persistent data size
  and I accidentally had the whole space drive (of the HDD) defined for
  it, rather than a small number like 2GB. Maybe that's why it was
  taking forever? edit: I retried the install. This time it wrapped up
  under 10 seconds! That must have been it.

mkusb and a casper-rw partition

If you have a big USB drive, like in this case a hard disk drive, or an SSD, and you want to use all the remaining drive space for persistence, you can use a persistent live system with a casper-rw partition.

mkusb can create such a persistent live system, and setting up a big or huge partition is much faster than doing it for a file of the same size.

General discussion

See also this link, and the discussion in the whole thread (the question and also the other answers),

... try out new OS releases without committing to it? - USB alternatives


Run this command:
sudo dpkg-reconfigure lightdm
Apparently, for some reason, your default dm has been changed to gdm. You need to switch it back to lightdm.

Comment if it worked.


E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages

I would try to do it like that:

sudo apt-get remove corebird
sudo apt-get -f install

Then make sure that everything is back to normal.

After that, change repos in /etc/apt/sources.list to vivid and get the needed libraries through apt-get.

Install corebird with dpkg.

Change /etc/apt/sources.list back to trusty.


Installing theme Ubuntu GNOME. Getting: "make: *** No rule to make target 'install'. Stop."

Run the command make before running sudo make install


Can I copy my Ubuntu OS off my hard drive to a USB stick and boot from that stick with all my programs?

I've been doing this for years. I'm writing now from a PC which does not even contain an internal hard drive. I don't even carry a laptop, just this high performance USB flash media.

I will now outline the two components you need to buy if you want decent performance.  Most flash drives are too slow for most people, and they can also become unstable due to overuse of the type they get running operating systems and particularly swapspace.

I use this USB3 to mSATA SSD flash media adapter, priced here at US$19.

And inside it, I use an mSATA SSD drive originally made for today's tablet and netbook computers. Though I manage to get by on just 64 GB myself, you may choose to buy something with greater capacity. Last I checked, the capacity of these drives was up to around 1 TB. I remember when the largest available was just 32 GB.

If you would like something still more rugged, I can recommend this similar USB3-mSATA adapter which is made from a solid section of extruded aluminum. It is almost exactly the same price. Whereas the model I previously recommended is only 2/3 the thickness, it would probably cave if stepped on. This one might tolerate a car driving over it.

To the best of my knowledge, nobody has made a waterproof model yet, but it's only a matter of time. The strange thing is that as obvious as these appear as portable operating system environments, apparently all references to these regard their use entirely for portable data.

One last detail. It is my practice to keep a 128 GB common slow flash drive in one of the more regularly used computers and have the portable drive automatically back up critical data to it when it is used there. The automatic backup software I'm using is that which is included with Ubuntu and it encrypts its backups. This way whether I lose the boot drive, or my home is robbed, the odds of actually losing all my current personal data are incredibly low.


How to pass shell arguments with VBoxManage guestcontrol?

SSH
We can run an application on a virtual guest with an SSH session from the host to this machine. However this requires that networking was enabled, and that openssh-server was installed an runs on the guest machine.
VBoxManage guestcontrol
As an alternative we can use built-in features of Virtual Box to execute a program on a running guest VM. This can be done with VBoxManage guestcontrol.
The example line below will just run ls on the virtual machine's root:
VBoxManage --nologo guestcontrol "<vm_name>" run --exe "/bin/ls" --username <guestuser> --password <password> --wait-stdout

Running a graphical application on the guest requires us to define the DISPLAY environment variable to the guest with the option --putenv. Next example will run and open gedit on the guest:
VBoxManage --nologo guestcontrol "<vm_name" run --exe "/usr/bin/gedit" --username <guestuser> --password <password> --putenv "DISPLAY=:0" --wait-stdout

We can also pass options to open a program. Next example will open a file vmtest in the guest gedit:
VBoxManage --nologo guestcontrol "vm_name" run --exe "/usr/bin/gedit" --username <guestuser> --password <password> --putenv "DISPLAY=:0" --wait-stdout -- gedit/arg0 vmtest

Options and arguments are separated from the command with -- as can best be seen in below example of a script from the host.

Example host script
Below script will play an example.ogg file using paplay in a guest machine when run on the host. Replace the variables with appropriate values.
#!/bin/bash

VM_NAME=myvm
VM_USER=takkat
VM_PASSWD=topsecret
VM_EXEC=paplay
VM_EXEC_PATH=/usr/bin/paplay
VM_ARGS=/home/takkat/Music/example.ogg

VBoxManage --nologo guestcontrol $VM_NAME run --exe $VM_EXEC_PATH \
--username $VM_USER --password $VM_PASSWD --wait-stdout \
-- {$VM_EXEC}/arg0 $VM_ARGS


You should be able to set permanent boot options in your BIOS. You can set your PC to always boot from USB first if there is one present.

In the case you give, are you sure that your USB stick properly has a bootable OS on it? You might have just copied the files to the stick instead of making it bootable (a common mistake).


Pin Ubuntu major LTS version but allow minor upgrade?

"New Ubuntu version" there means a new major version, like 16.04 to 16.10 or 16.04 to 18.04. Change it to notify you of a new Ubuntu version never.

Just remember to upgrade Ubuntu before the major version (16.04 in your case) is five years old (three years if you use an Ubuntu flavor, like Xubuntu, rather than regular Ubuntu), because then security updates get cut off.

The minor point changes like 16.04.1 to 16.04.2 come automatically with normal everyday software updates. You don't need to do anything special to get those.


Resize partition from virtual machine without reboot

Toggle some informations about the root filesystem:
df /
# Filesystem     1K-blocks    Used Available Use% Mounted on
# /dev/sda2       31365948 5249140  24500424  18% /

/dev/sda2 is the second partition of block device /dev/sda.
To size up this partition, you can use the tool parted.
parted /dev/sda
# (parted) resizepart 2
# Warning: Partition /dev/sda2 is being used. Are you sure you want to continue?
# Yes/No? yes
# End?  [41.0GB]? 82GB
# (parted) q
# Information: You may need to update /etc/fstab.

After changing size of partition, you have to size up the filsystem too:
resize2fs /dev/sda2
# resize2fs 1.45.5 (07-Jan-2020)
# Filesystem at /dev/sda2 is mounted on /; on-line resizing required
# old_desc_blocks = 4, new_desc_blocks = 9
# The filesystem on /dev/sda2 is now 18019403 (4k) blocks long.

This is for checking modifications:
df /
# Filesystem     1K-blocks    Used Available Use% Mounted on
# /dev/sda2       70817420 5253016  62349464   8% /


The "bus error" message does not happen very often but, if you are trying to re-install Qt Creator, you may want to cleanly remove it, then reinstall.
You can check to see which QT packages are installed with this:
dpkg -l | grep qt | awk '{print $2}' | xargs -n1 echo

Not everything can be removed, nor should it be necessary to do so, but focusing on the items prefixed with qt5 should be enough:
sudo apt remove --purge qt5*
sudo apt autoremove

Now you can reinstall:
sudo apt install build-essential
sudo apt install qtcreator qt5-default

If you receive a "Cannot overwrite file ..." error after re-installing, you will need to clear the /home/{user}/.config/ directory of anything starting with the letters QT. Be sure to change {user} to your account name.
Hope this resolves your issue.


"No space left on device" when copying files to barely used 5TB NTFS external drive on Xubuntu

When I connected the drive to a Windows box, I found the parent directory of the destination directory had compression turned on.  Turning compression off for that folder and reconnecting to the Xubuntu box allowed the entire set of files to be copied successfully.  Of course this means that more space was used than when previous attempts had failed near the end of the copy with a "No space left on device" error.  Seems like there was some failure related to compression that was not clearly communicated.


You can install a desktop environment by running the commands below (you will need to be connected to the internet for them to work):
sudo apt install tasksel
sudo tasksel

On the screen that appears, use the arrow keys and the space bar to select your desired desktop environment (PLEASE NOTE THAT SOME OPTIONS ARE NON-DESKTOP ENVIRONMENT PACKAGES), then press the tab key and the enter key to begin the installation of your desired desktop environment.


How can I have my login screen use the same wallpaper as my desktop?

LightDM use AccountsService to get user's wallpaper.

I do not use pcmanfm, but at first look it seems that pcmanfm do not interact with AccountsService to update information about wallpaper.

There are 2 options:

Wait for needed pcmanfm functionality (or just search for related bugs - maybe it's already reported but not implemented).
You can edit "/var/lib/AccountsService/users/$USER" file.
Add following line to change your wallpaper at login screen for specified user:

background=path/to/image


14.04: Force a Thunderbird Lightning Reminder to Topmost Window

with CCSM (CompizConfig Settings Manager) open General Options > Focus & Raise Behaviour > Focus Prevention Windows

If this this is empty, enter: "!(class=Thunderbird)" else if non empty, add "& !(class=Thunderbird)"

This tells Thunderbird to ignore the focus prevention rules, which will cause Thunderbird's reminders to pop up wherever you have focus.

Alternatively you can just set "Focus Prevention Level" to "Off" which will allow any new window to steal focus.


I have uncovered some additional information. There is a file /etc/udev/reles.d/70-persistent-net.rules. This file has entries in it for each network interface, and those entries include a MAC address. It would appear that on boot the new PC cannot find the MAC Address of the original machine, which is causing the issue. The new PC then adds new entries into this file with the correct MAC addresses for its own hardware. When the system eventually starts (after 2 mins of pondering over the incorrect MAC addresses) the file can be edited and the incorrect entries removed and the new entries renamed eth0 / eth1 etc.

This fixed the startup issue.


How to restore the down arrow icon on the Downloads folder in the home directory?

To change the icon, right click on the Downloads folder and select the Properties option. Now click on the folder icon in the properties window. It will give you an option to select a custom icon.

Navigate to /usr/share/icons/Humanity/places and select the appropriate icon.

To add an entry in the places menu, you have to edit the ~/.config/user-dirs.dirs file.

nano ~/.config/user-dirs.dirs

Add the following entry and press ctrl+X to save -

XDG_DOWNLOAD_DIR="$HOME/Downloads"


Installing driver for TP-LINK Archer T9UH AC1900 on Ubuntu 18.04

With a temporary working internet connection by ethernet, tethering or whatever means possible, open a terminal and do:

git clone https://github.com/zebulon2/rtl8814au.git
sudo dkms add ./rtl8814au
sudo dkms install rtl8814au/4.3.21

Reboot. Your wireless should now be working.


How to disable animations in Ubuntu 13.04

You can use the Unity-Tweak tool, or another route you can go is to use "Ubuntu 2D" when you log in. This is especially great for computers that are of an older age that cannot run 3D objects very well such as the Ubuntu Dash. Ubunru 2D will not have most of the animations, or at least it doesn't in 12.04 LTS Precise. Though if your not satisfied with the Unity Interface at all, such as me, you can install the gnome panel. To do this method

Open your Ubuntu Terminal: Ctrl+Alt+T

Type: sudo apt-get install gnome-session-fallback

and let it install.

mind you that this is only for if your satisfaction is not there with the Unity interface. Like me the only reason I don't like unity is that it is too resource hungry. Even on 13.04 and 13.10 it still to resource hungry. They have fixed it a lot since 11.10, but it still requires a lot of work.

With the gnome-session-fallback installed my computer uses about 50% less Ram than Unity uses, going from over 500MB with the Unity Interface to around 250MB with the gnome-Panel (No Effects) applied.

Now keep in mid that this is only for if you don't like unity. If you like it by all means ignore everything I just said and use the Unity tweak tool. It is a great tool for editing Unity settings to make it more suited for you and your computer speed. But also keep in mind, and this is from experience, if you don't know what you are doing; some of the settings in the Unity-Tweak tool can be very confusing (at least for me they were, I don't know about you) and it can mess it up quite badly, speaking from experience.


Pointing devices doesn't keep configuration

Did you check the mouse configuration? My touchpad can be configured by the mouse settings. May be you have conflicting settings. as pointing device is an additional GUI.


Your problem is that your home directory is encrypted. When you log in graphically, your home directory is decrypted automatically. This does not happen with ssh.

You have to run ecryptfs-mount-private AFTER logging in via ssh.

ecryptfs-mount-private
cd ~
ls

You will also have a problem is you try to use ssh keys. See http://bodhizazen.com/Tutorials/Ecryptfs#SSH and Why is ecryptfs only mounting private home directory over ssh? and http://ubuntuforums.org/showthread.php?t=1332820


I had the same problem. I chose HD-audio generic... and it started to work.

plinovodja


Browsing nautilus folder containing a dvi file -- apparmor/evince error

You can disable thumbnails for dvi files. Open a terminal and type the following commands:

Clean the thumbnails cache folder:

rm -rf ~/.cache/thumbnails

blacklist the dvi files:

dconf write /org/gnome/desktop/thumbnailers/disable "['application/x-dvi']"

Finally restart Nautilus:

nautilus -q


How to set ethernet hardware properties as duplex=half?

Please open a terminal and run:

ifconfig

Verify that your ethernet interface is eth0. If so, then try:

sudo ethtool -s eth0 duplex half

If you can then connect, let's make the setting permanent:

gksudo gedit /etc/rc.local

Use nano or kate or leafpad if you don't have the text editor gedit.

Add a new line right above 'exit 0':

ethtool -s eth0 duplex half

Proofread carefully, save and close the text editor.

If your ethernet interface is enp3s0 or some other, please substitute above.


Chrome Remote Desktop Remote Access into curently opened sesion

Make a config girectory so that chrome-remote-desktop instalation is recognized in the chrome/chromium/firefox addon:
mkdir ~/.config/chrome-remote-desktop
/opt/google/chrome-remote-desktop/chrome-remote-desktop --stop

Change specific cofigs to prevents session clobbering:
(Remote will use the same sesion as host.)
sudo nano /opt/google/chrome-remote-desktop/chrome-remote-desktop

DEFAULT_SIZES = "1920x1080"
FIRST_X_DISPLAY_NUMBER = 0
# while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
# display += 1
def launch_session(self, x_args):
self._init_child_env()
self._setup_pulseaudio()
self._setup_gnubby()
#self._launch_x_server(x_args)
#self._launch_x_session()
display = self.get_unused_display_number()
self.child_env["DISPLAY"] = ":%d" % display

Disable runing of chrome remote sesion before startup to prevent "stuck at login loop bug":
sudo nano /etc/init.d/chrome-remote-desktop
#!/bin/bash
exit 0
[ rest of file]

Add Chrome Remote Desktop to startup applications
name: chrome remote desktop
command:/opt/google/chrome-remote-desktop/chrome-remote-desktop --start
description: starts CRD after login

Solution source:
(Steps 6 and later )
https://github.com/GObaddie/ubuntu_chrome_remote_desktop
Thank you GObaddie!


Caps-Lock remaps to ESC doesn't desactivate the capslocking

I gave another look and made some more research and I found a fix for my problem I replaced my xmodmap command by a setxkmap one like this :

#!/bin/sh
setxkbmap -option caps:escape

I run this script as a Pre-KDE startup script.

Hope this could help somebody else.


After uninstalling the snap and reinstalling with dpkg, the problem seems resolved, so I suspect this is a snap issue.

Update: I was too quick, it still happens when running slack from an installed .deb, so it is probably not snap related.


go in to your bios and change your SATA configuration to AHCI Mode also you may have to run install with --nomodeset

try just changing your config first. if that still dosent work then add --nomodeset
or --fb=false
or --vga=788


mysql-server has stopped my ubuntu 17.10 apt functionality

Not using SQL myself yet but it's been on my 30 year to-do list. From this answer, I've summarized the steps:

To find all socket files on your system run:

sudo find / -type s

My Mysql server system had the socket open at /var/lib/mysql/mysql.sock

Once you find where the socket is being opened, add or edit the line to your /etc/my.cnf file with the path to the socket file:

socket=/var/lib/mysql/mysql.sock

You still need to read the full answer to get an appreciation of the whole environment and how changes effect MySQL.


Try this ,it helped me for dual boot
Partition scheme on SSD and HDD
and you may try to put less frequently used files in separated hard drive(~/Music)
(/home on HDD)


I've solved the problem with what feels like a dirty hack.  If anyone can provide a better answer, please share.  Otherwise I am going to mark this as the correct answer eventually.

Create an autostart launcher for the desktop that runs gsettings.  Example as follows:

$ cat /etc/xdg/autostart/gsettings-for-all-users.desktop
[Desktop Entry]
Type=Application
Name=gsettings For All Users
Exec=gsettings set org.gnome.desktop.media-handling automount false
Icon=system-run
X-GNOME-Autostart-enabled=true

Reference:

https://unix.stackexchange.com/questions/122424/execute-a-command-on-user-logon
http://xmodulo.com/how-to-automatically-run-script-when-logging-into-ubuntu-desktop.html


How to restore Thinkpad W530 back to Windows

You probably deleted your recovery partition during the Ubuntu installation. This can happen if you choose the "Use entire disk" option when installing. The Windows 8 recovery CD's may restore these partitions if they are branded with the OEM manufacturer of your computer (Lenovo).

Unfortunately, using these restore disks will completely re-partition the disk, destroying all data that is currently on it. Therefore, if you want to dual boot you will have to make a backup of some things in Ubuntu before proceeding.

This can be done by repartitioning an external drive, for example, with an EXT4 partition using gparted-pkexec. EXT4 is needed in order to preserve file permissions and ownership. Copying the necessary files to an NTFS or FAT32 partition made with Windows or shipped by default on most externals will not work.

NOTE: /media/[username]/[external partition UUID or label] needs some replacements. After you create a new EXT4 partition on an external drive, it will be assigned a random UUID (or label if you chose to label it in gparted-pkexec). Once you plug in the drive it will be mounted to a place like /media/tony/1961fe96-3398-4094-94af-6445c4a8b9fc.

You will need to back up your home folder(s) in order to migrate your settings to a new Ubuntu installation after reinstalling Windows.

sudo rsync -av /home/ /media/[username]/[external partition UUID or label]/
Additionally, you'll probably want to make a list of installed packages as well so you can restore them later

echo -e '#!/bin/bash\n\nsudo apt-get install ' $(comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u) | awk '{printf("%s ",$0)}') > /media/[username]/[external partition UUID or label]/packages.sh;chmod +x /media/[username]/[external partition UUID or label]/packages.sh
Also, if you've many any changes to configuration files in /etc, you may want to back those up as well.
Finally, you can install Windows 8 using the recovery CD's.
After using the recovery disks to re-install Windows 8, the first thing you should do before installing any software is go to the Disk Management tool in the Control Panel->System and Security->Administrative Tools->Computer Management and then click Disk Management. Find your C: drive and resize it as small as it will go, but leave as much space at the end as you need for other applications. The remaining space will be used for Ubuntu.
After this process, reboot the computer with the Ubuntu USB inserted.
When Ubuntu asks, tell it you want to install it alongside Windows 8.
Wait for the installation to finish and reboot into Ubuntu
In Ubuntu, open a terminal and run

sudo rsync -a /media/[username]/[external partition UUID or label]/home/ /home/

Copy over the /etc config files if applicable
Restore your old packages with this command (be patient, they'll have to be re-downloaded):

sudo ./media/[username]/[external partition UUID or label]/packages.sh

Now, your Ubuntu should be back as it was and it is installed alongside Windows 8!


I guess you are using a "custom" partitioning. If you do that you will need to tell it which partition will contain the root filesystem. Look at the column "Mount Point" (if memory servers me well...)

Without a root filesystem the installer is unable to continue.


Installing from a .deb file through dpkg does not resolve dependency issues the same way installation through apt will. After running the sudo dpkg -i yourpackage.deb, you should run sudo apt-get install -f to fix and complete the installation if any errors were encountered by dpkg.


Try the following command to uninstall and remove configuration files.
You need to stop the apache service BEFORE you uninstall.

sudo apt-get purge apache2*

If you have the service running but not installed (according to apt), stop the service and reinstall, then issue the command above.


If you use Ubuntu Mate, you can launch a terminal using CTRL+ALT+T keys.
In the terminal, type:

mate-tweak

...and press enter key.
It will launch the Mate Tweak application from which you should be able to select new interface disposition and toolbars.

Edit:

Since it did not work, could you please try reinstalling dconf? Steps follow:

sudo apt remove --purge dconf-cli

Ubuntu will uninstall other packages here. List them and record them for example in a text file for future re-use. For me, with a fresh Ubuntu Mate install, the list was:
dconf-cli mate-tweak shotwell ubuntu-mate-core ubuntu-mate-desktop

Once done, please reboot:

sudo systemctl reboot

And then reinstall the packages (use your list of uninstalled packages here, mine might vary as compared to yours):

sudo apt install dconf-cli mate-tweak shotwell ubuntu-mate-core ubuntu-mate-desktop

And now you can try either mate-tweak as I suggested before or dconf reset -f / as suggested by Sahil Bansal.


Issues about insalling Cinelerra video editor?

According to the official website the command that you need to install is

sudo apt-get install cinelerra-cv


For commands run when logged in as root, no.  However, if you require all users (and yourself) to execute with root privileges, via the sudo command, then yes.
Details:  http://aplawrence.com/Basics/sudo.html.


Python 3.5 is installed on Ubuntu 16.04 by default.

Please check python3.5 --version in a terminal.


Sounds like your suffering from the same bug as me, #1674838

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1674838

The fix isn't out yet, the latest comment from Friday says "... the kernel which should be available in -proposed sometime
next week...".

So for now I've set my updates to get pre-release updates in anticipation of getting a stable system back again later this week.

If you do want to do more work tracking down the exact cause of your problem, it was setting up Netconsole that helped me identify my problem. See https://wiki.ubuntu.com/Kernel/Netconsole for instructions on that.


Ubuntu Touch: Can't change keyboard input

Try:

$ sudo - phablet

To use the phablet user and then:
$ nano /home/phablet/.config/maliit.org./server.conf

Will ask you for the password: phablet

Use nano or vi and try to write the file.


Whats the problem with my laptop? cant start Ubuntu

I think, that your keyboard is broken. I had similar problem with my Lenovo. Try to check with external keyboard via USB. Also check buttons delete, F2, F8, F12 or another, which could start this menu. One of this button can be mechanically pressed.


The temporary fix which I execute is jump into a TTY session using Ctrl+Alt+F1 and then logging back in.


Integrated webcam not working after upgrade to 18.04

For the sake of possibly saving someone else who wasted time like me, some laptops have a keyboard button to turn on the webcam, like my Clevo P150EM, Fn+F10

I also had to restart Cheese to check it worked.


Using the below solution, PAM Module(google authenticator) can be disable for specific users-

1) Create a user group on the Linux instance. MFA/PAM will be disabled for users present in this new group-

sudo groupadd <groupname>

2) Create User or add existing user to newly created group-

sudo useradd <username>
sudo usermod -a -G <groupname> <username>

3) Edit /etc/pam.d/sshd file and add the below statement to skip PAM module for the newly created group-

auth [success=done default=ignore] pam_succeed_if.so user ingroup <groupname>

Optional-

If full access is required for this new group then add below line to visudo file-

%<groupname>ALL=(ALL)       NOPASSWD: ALL

When a user will be created and added to the new group, MFA will be skipped for those users.

Referenced from - TechManyu Blog


jackd does not work, aplay -l shows two instances of the same card (Ubuntu 13.04, HDMI audio only)

Well jackd -R -d alsa -d hw:0,3 seems to work:

jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2013 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:0,3|hw:0,3|1024|2|48000|0|0|nomon|swmeter|-|32bit
ALSA: Cannot open PCM device alsa_pcm for capture. Falling back to playback-only mode
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 2 periods for playback

I guess I now need to figure out how to get Overtone to use that extra option.


I find no drivers for my Cpu ( Amd a8-7410 )

The way you formulated it in the comment it's true for any system. But CPU don't need drivers. Upon a computer powered on CPU executes BIOS/UEFI code. This code does basic initialization of hw, and looks for devices to boot from. Execution then goes to bootloader code of the default boot device. Bootloader then (I omit irrelevant parts, like choosing an OS to load) loads initramfs which contains kernel drivers and utilities needed to continue booting; like ext4 driver to read the underlying ext4 file system (otherwise you'd get into the paradox: to read the filesystem you need a driver, but the driver is in the filesystem). Then goes a usual boot process, like initializing some more hw, starting systemd daemons, etc, you can easily find it on the internet.

Note: nowhere your CPU needs a driver, it's a fundamental part of a computer that just works.

NB: your CPU has embedded GPU, which might need drivers, but you don't need to worry about them. FTR, GPU drivers consist of kernel and userspace driver (for better security, maintenance, and usability). Kernel drivers are just shipped with the kernel. Userspace part for AMD and Intel is called "Mesa", and Ubuntu has it shipped by default.

Some useful links for you to read:

More-or-less friendly description of changes in Linux kernel releases
Ubuntu vs Windows, AMD benchmarks (and you can query on google different terms you see there to get more understanding of how things work).


How can I create an ad-hoc connection that looks like a wifi connection from a router?

I think your laptop is connected to internet via a wired connection. So what you have to do is forward packets from wireless card to Ethernet card (or whatever you have) in the laptop. In order to do that,
[wlan0 - wireless card; eth0 - ethernet card]

Create an ad-hoc network and give it an ip address by ifconfig wlan0 10.0.0.1
Enable ip_forward by echo 1 > /proc/sys/net/ipv4/ip_forward
Enable forwarding in IPTABLES by iptables -A FORWARD --in-interface wlan0 -j ACCEPT
Enable NAT mode to connect to internet by iptables --table nat -A POSTROUTING --out-interface eth0 -j MASQUERADE
Then give your Tablet an ipaddress and set gateway address to your
laptops wireless address(10.0.0.1).


Google Chrome Launcher Not Installed on Unity Bar

Google Chrome is not included in the Ubuntu Repositories.

The closest equivalent is chromium-browser, which can be installed easily using the software center, if it is not yet installed on your system.

However, this will NOT install a launcher to the Unity bar for that program, because only Firefox is included "by default" in Ubuntu.

You need to lock alternate browsers to there manually.

First, run the web browser by going to the dash (first button on Unity), and type in the browser name.

Second, click the icon for the browser.

Third, after the browser opens, right-click the new icon on the unity bar, and choose "Lock to Launcher"

Boom, new launcher for that browser.


Why Flush torrent client would not start?

That seems to be a compiling/linking bug with flush: that undefined symbol is provided by libtorrent-rasterbar6, which seems to be installed.

So you can try to reinstall libtorrent-rasterbar6 and see if you get anything different:

sudo apt-get install --reinstall libtorrent-rasterbar6

Also, there is a PPA that seems to be maintained by the creator of Flush, and so it should be safe for you to try it:

sudo apt-get remove flush libtorrent-rasterbar6
sudo apt-add-repository ppa:konishchevdmitry/flush
sudo apt-get update && sudo apt-get install flush

Hope this helps.


403 Forbidden when changing Apache2 document root

In ubuntu apache, the default configuration is not to allow random virtual site roots by default

Edit /etc/apache2/apache2.conf, and the following lines (preferably, after the default directory blocks so that you can keep track of the locations you have enabled for site root)

<Directory /home/vg/www>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

Reload apache and the error should disappear and you should see your site again.


No password asked at login screen just start session button with LightDM

Thanks to user sisco311 from ubuntuforums.org for this answer.

I didn't try it but the link posted above shows a command line:

sudo gpasswd -d $USER nopasswdlogin

that should work. I did it using the GUI.

The thing is that my user was in the nopasswdlogin group.
I had to install the gnome-system-tools which has the GUI to manage users and groups.
Then I ran the users-groups manager and change my user to NOT be part of the nopasswdlogin group. Problem Solved. I do have a remaining question: why or how did my user got into that group?


Imaging - how can I make a terminal prompt on first boot

I've never used Clonezilla but looking at the boot parameters here I would say you just need to make sure that ocs_live_batch="no" so that your script is interactive and then you should be able to use something like this in to read input from the terminal.


Building Nylas N1 from source on Ubuntu 16.04

Assuming you've installed nodejs (sudo apt-get install nodejs), the problem is the same as reported here — Ubuntu and Debian now install node at /usr/bin/nodejs rather than /usr/bin/node.

The two solutions least likely to break your system (in the long-run), are either:

Install nodejs-legacy (sudo apt-get install nodejs-legacy), which provides a symlink from node to nodejs. (source)
Use update-alternatives to provide the symlink (source):

sudo update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100


Unable to use Netflix - still asked to install silverlight. Firefox, pipelight, silverlight enabled, passed troubleshooting

I ran into this exact same problem on an older system, and thought that Netflix had changed something, but it was fixed by following hal7df's suggestions to:

 sudo pipelight-plugin --enable silverlight

Which downloaded the newest Silverlight, 5.1, and worked immediately. You might try double checking your install and rerunning those commands, just to be sure. I've also seen issues with the apt keys used for pipelight from time to time. Good luck!


What happens when you change the name of a file or folder that is synced to Ubuntu One?

I 'm not sure to correctly understand your question. If you rename a file or folder you have only this one and not also the older one. So I assume that you have made a copy of your folder tree. In this case you have a double of your files that use a double of the U1 space. So I think that you have to simply delete the older version.


How do I find out USB Speed from a terminal?

The pv tool allows you to view the throughput of the data flowing through it. After installing the package, you could run a command like the following to see the write rate:

$ cat /dev/zero | pv > /media/some_usb/tmp123

203.1MiB 0:00:02 [100.2MiB/s] [ <=>                   ]

For reading, perform the opposite operation using the newly-created tmp123 file:

$ cat /media/some_usb/tmp123 | pv > dev/null


How to setup canon MF4720w to scan on ubuntu mate 16.10

please tell us how the MF is connected to your computer; via usb, it should work as the SANE site says the MF4700 series have good support; if you type lsusb is the device listed as 04a9:2774

for scanners to work over wireless, things get more complicated https://help.ubuntu.com/community/ScanningHowTo

and more specifically this https://help.ubuntu.com/community/SaneDaemonTutorial?action=show&redirect=sane.d+tutorial ........... they talk you through what you need to do

this is an imageCLASS device; I see some are already in 40-libsane.rules which is in /lib/udev/rules.d/

eg # Canon imageCLASS MF4270
ATTRS{idVendor}=="04a9", ATTRS{idProduct}=="26b5", ENV{libsane_matched}="yes"

so if you are usb, one can create an entry there


The issue here is that you have competing methods of trying to start gpsd and set up the second.

The first method you are using is systemd and socket activation. In this design, systemd sets up the second and waits for a connection to the socket. When something connects to the socket, systemd activates the service so it can respond. That's "socket activation". If you wish to use this approach, recommended reading includes this blog post about socket activation as well as the the official docs for systemd socket files.

The second method you are using is to start gpsd to run persistently via rc.local and to set up your own socket. This fails currently systemd has already tried to do this for you. If you wish to use this method and disable systemd, you can run:

systemctl stop gpsd
systemctl disable gpsd

I recommend using systemd. You don't have to use the socket activation feature if you don't want to. systemd can handle gpsd will handle restarting the daemon if it crashes, which your rc.local script does not do. systemd will also handle any logging that daemon might do, which yourrc.local script doesn't handle either.


After installing windows10 ubuntu does not boot

Simple Solution is to run Ubuntu from flash drive, change the boot menu to USB 2nd on the boot option list this way dual boot screen will always show.


Where does apt store downloaded packages?

Intriguing question! I donned my deerstalker, stuffed my pipe and did some digging. The answer is: apt does not archive packages.

The story goes back to Friday, 13 Sep 2002, when Daniel Quinlan filed bug report #160743, entitled "apt-get clean should run weekly". The rationale was that "The apt package cache grows without bound [...] runs the danger of filling up smaller disks, especially on systems run by less experienced Debian adminstrators."

The bug was closed 14 years later, on 2 Jan 2016, with little fanfare. The change isn't even mentioned in the changelog entry for apt 1.2. The commit message reads:

commit ee02b5b3949372a178d37cadaa08db0bfd5b991f
Author: Michael Vogt <mvo@ubuntu.com>
Date:   Sat Jan 2 22:08:30 2016 +0100

Add new APT::Keep-Downloaded-Packages option

This option controls if downloaded packages should be kept after
a successful install or if they should be deleted. The default
for "apt-get" is that they are kept (just like before).

However the default for "apt" is that they get deleted.

Closes: #160743

So there you have it. I suppose that the introduction of the new end-user oriented apt command (note that apt-get is kept backward-compatible so as not to break scripts), was the perfect occasion for closing this historical issue.


GRUB doesn't boot-up Windows as default even though I modified it using Start-up manager

I use Alt+F2 then type:

gksu nautilus

to edit boot/grub/grub.cfg and put the Windows menu entry first.

This needs to be done after each update-grub.

I'm not sure this is the best way.

See also:

http://www.howtogeek.com/howto/43471/how-to-configure-the-linux-grub2-boot-menu-the-easy-way/


Disable PIE and PIC defaults in gcc on ubuntu 17.04?

I had the same problem and just solved it thanks to this post on Stack Overflow.

You should add -no-pie option to compilation command line

without:

$ gcc main.c -o main
$ file main
main:ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32,
BuildID[sha1]=46ada4e5e25fc120ca052c9beb8bfa5491fc6239, not stripped

with:

$ gcc main.c -o main -no-pie
$ file main
main: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32,
BuildID[sha1]=17f860c6c84fc1a5771c8744b7aaaf164c219559, not stripped


can't mount any partitions from Live USB on HP Laptop

As mentioned in comments the SSD partition attempting to mount is a Windows partition. For that to work you need ntfs-3g package installed. To successfully install packages to a Live USB it needs to be a persistent Live USB:

How to make a live usb persistent
How to make a persistent live Ubuntu USB with more than 4GB


I had the same problem today. I had to setup the connection manually via command line to get to the internet and then I upgraded Ubuntu. After the upgrade it works fine. If you have DHCP on your router and using the cable, just type the following two commands:

sudo ifconfig eth0 up
sudo dhclient

It helped me to connect to the inernet and to update Ubuntu. After the update it works as yesterday. I have no idea why this happened.

I am not sure how to do it if you use WiFi. I am not sure replacing eth0 with wlan0 will work. If you use WiFi password protection, the procedure to connect via command line is more complicated. Some pointers in this case: https://unix.stackexchange.com/questions/92799/connecting-to-wifi-network-through-command-line, https://unix.stackexchange.com/questions/90778/how-to-bring-up-a-wi-fi-interface-from-a-command-line

You can also try to download packages to another computer and transfer them to your laptop and install them there. Here are the instructions how to install updates without internet connection: https://help.ubuntu.com/community/InstallingSoftware#Installing_packages_without_an_Internet_connection


In gnome shell , How to revise command of software icon?

What do you mean exactly? Do you want to add a parameter to the application behind the icon, so each time you run the application by clicking on the icon, the application is run along with the parameter? If that is what you mean, you should do as follows:

Open a terminal
Type alacarte, and press Enter. If alacarte hasn't been installed yet, you should first type sudo apt-get install alacarte and press Enter.
Navigate to the application you want to add a parameter to, and click on Properties.
Edit the third rule (the command line) to add a parameter. For example, if you want to use chromium in private mode each time it starts, change /usr/bin/chromium-browser %U to /usr/bin/chromium-browser %U --incognito (incognito is the parameter for private browsing in chromium).
Click on Close, and click another time on Close in alacarte.


First open the Ubuntu Software Center, in the Edit menu click Software Sources..., and in the window that appears enable universe as seen below:

Then run sudo apt-get update.

You should now be able to install chntpw using sudo apt-get install chntpw.


No speakers available as soon as headphones are in Dell XPS 15

The laptop has only one sound card channel meaning that headphones and speakers are basically connected to the same output, but when you connect your headphones your speakers automatically get disconnected. And there is nothing you can do since this is a mechanical switch in the jack or it is electrically sensing if you have plugged in your headphones. The only way you could have multiple sound outputs is to add a USB sound card to get another jack.

I hope this helps.