Adding a starter for gnome-control-center in docky

The version you have indicated for Docky probably has come from the Docky Developers PPA.

As the developers them-selves say - this is unstable - and what you have found is a bug.  You should file this as a bug-report on Launchpad.

My recommendation is that either you should stay with the version of Docky available in the repositories - or if you are looking for something newer but "stable", then look at installing from the Docky-Stable PPA

You will need ppa-purge  which is available if you tick the "Ubuntu Backports" in Software Sources.  You can the purge the development docky PPA

sudo apt-get install ppa-purge
sudo ppa-purge ppa:docky-core/ppa

Then install the stable PPA

sudo add-apt-repository ppa:docky-core/stable
sudo apt-get update

Then you can pin gnome-control-center


Ubuntu 12.04 has experienced an internal error. -> ExecutablePath /usr/bin/lsb_release

This issue is caused by a conflict with TeamViewer and has been addressed on the official Ubuntu bugtracker. A solution is provided by "gerlos (gerlosgm)" in comment #39 of said link. Also, a Ticket has been sent to Teamviewer on 2013-5-8 by MRiekerk (mattijs-riekerk) in comment #54 of same link.

In the meanwhile, the crash can be averted by removing TeamViewer with sudo apt-get remove teamviewer.

Hope this helps.


Installing Ubuntu on Intel NUC: "the partition table format in use on your disks normally requires you to create a separate"

When you boot the Ubuntu installer, it will boot in one of two modes, depending on how the boot medium was prepared and what your firmware settings are:

EFI/UEFI mode -- This is the native mode on the vast majority of new computers. When booted in EFI mode, the Ubuntu installer normally likes to use the GUID Partition Table (GPT), on which it creates an EFI System Partition (ESP) to hold the EFI-mode boot loader. Your message indicates that this boot mode was not used in your attempt to install the OS.
BIOS/CSM/legacy mode -- This mode is used on older (most pre-2011) computers, and is an option on most newer ones. When it boots in this mode, the Ubuntu installer will normally try to use the Master Boot Record (MBR) partition table; however, if the installation disk already uses GPT, the Ubuntu installer will want to see a BIOS Boot Partition on the disk to hold a BIOS-mode copy of GRUB. The message you're seeing indicates that you've got a GPT disk with no BIOS Boot Partition, and you've booted in BIOS/CSM/legacy mode.

There are a number of possible solutions to your problem:

Switch to an EFI-mode boot -- Given no other information about your setup, this is the safest approach. You may need to re-create your installation disk to support EFI-mode booting, though, or change your firmware settings to ensure that the computer boots the installer in EFI mode. Rufus includes, IIRC, three options for boot modes and partition table types, so you can re-run it with the option to use GPT for (U)EFI-mode booting, then try again. Note, though, that if you pre-partitioned your target disk, you may need to tweak that configuration to include an ESP. Make it a FAT partition (I recommend 550 MiB in size) and mark it as an ESP by giving it a "boot flag" (in parted or GParted) or by giving it a type code of EF00 (in gdisk, cgdisk, or sgdisk).
Create a BIOS Boot Partition -- If you're not booting any other OS, or if you're certain any other OS(es) on the disk are booting in BIOS mode, you can create a BIOS Boot Partition. This is normally a ~1 MiB partition that's identified by having the "bios_grub flag" set in parted or GParted or by having a type code of EF02 in gdisk or its relatives. Do not go this route if you've got another OS on the disk that's already booting in EFI mode and if you want to dual-boot with Ubuntu.
Convert the disk to use MBR -- If the disk has no other OS(es) on it at all, then you can probably convert it to use MBR rather than GPT. You can do this destructively with parted or GParted by creating a new partition table. (These tools call MBR "msdos.") You can often convert non-destructively with gdisk, although there are caveats; see the gdisk documentation for details. When the disk is converted to MBR form, you can install using your current installation medium. This approach is likely to create huge new problems if you're already booting another OS from the disk. Also, this approach is likely impractical if the disk is over 2 TiB in size or if it uses 4096-byte logical sectors (as do many external disks and a few bleeding-edge internal disks).

If you need more help deciding what to do, please post more details about your current situation -- in particular, what (if any) other OS(es) you're booting from the disk, and what size and type of disk (internal/external, spinning disk/SSD) you're trying to use. Current partitioning details may also be helpful.


Bash has a built in function for this called time. Just prepend it to any command and it will time how long the command takes to run. For more info, see help time :)

[user@sol ~]$ time sleep 2

real    0m2.002s
user    0m0.002s
sys 0m0.000s

zsh has a similar builtin also called time, though no help page for help time. Here is sample output:

[sol ~]$ time sleep 2
sleep 2  0.00s user 0.00s system 0% cpu 2.003 total


Ubuntu 14.04 hangs on shutdown / reboot D630

The cause of the hang on reboot / shutdown had to do with the wireless drivers which were not installed.

Installed the wireless drivers with these commands:
sudo apt-get remove --purge ndiswrapper*
sudo apt-get remove --purge bcmwl-kernel-source
sudo apt-get install linux-firmware-nonfree

Then reboot.


Can some one tell me the major differences between Ubuntu 11.10 and 12.04?

They are as TenPlus1 says worlds apart, here's a little more:

Precise 12.04 is LTS - means Long Term Support for 5 years with updates
Oncelot 11.10 is a stable release and is only supported for 18 months, so its life is almost up.
if you haven't upgraded you should firstly because you'll have problems when no support, also more programmes for Precise.
Precise has some wonderful new features and was considerable faster, smoother and clearer in every respect.
Unity as in the Dash and filters actually work much which changes your computer life


Installing linux-firmware from 17.10 on 17.04

Aside from risk, there is doubt that the linux-firmware package from 17.10 will be useful. Here is the list of files relative to your device from linux-firmware in 17.04 Zesty:

/lib/firmware/ath10k/QCA6174/hw2.1/board-2.bin
/lib/firmware/ath10k/QCA6174/hw2.1/board.bin
/lib/firmware/ath10k/QCA6174/hw2.1/firmware-5.bin
/lib/firmware/ath10k/QCA6174/hw2.1/notice_ath10k_firmware-5.txt
/lib/firmware/ath10k/QCA6174/hw3.0/board-2.bin
/lib/firmware/ath10k/QCA6174/hw3.0/board.bin
/lib/firmware/ath10k/QCA6174/hw3.0/firmware-4.bin
/lib/firmware/ath10k/QCA6174/hw3.0/notice_ath10k_firmware-4.txt

And here is the list of files relative to your device in 17.10 Artful:

/lib/firmware/ath10k/QCA6174/hw2.1/board-2.bin
/lib/firmware/ath10k/QCA6174/hw2.1/board.bin
/lib/firmware/ath10k/QCA6174/hw2.1/firmware-5.bin
/lib/firmware/ath10k/QCA6174/hw2.1/notice_ath10k_firmware-5.txt
/lib/firmware/ath10k/QCA6174/hw3.0/board-2.bin
/lib/firmware/ath10k/QCA6174/hw3.0/board.bin
/lib/firmware/ath10k/QCA6174/hw3.0/firmware-4.bin
/lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin
/lib/firmware/ath10k/QCA6174/hw3.0/notice_ath10k_firmware-4.txt
/lib/firmware/ath10k/QCA6174/hw3.0/notice_ath10k_firmware-6.txt

As you can see, the only addition is /lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin and its associated copyright and patent notice.

While it is tempting to add it to your firmware library, it is doubtful that the driver in 17.04 will load and use it. Please see:

modinfo ath10k_pci

filename:       /lib/modules/4.10.0-28-generic/kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
firmware:       ath10k/QCA9377/hw1.0/board.bin
firmware:       ath10k/QCA9377/hw1.0/firmware-5.bin
firmware:       ath10k/QCA6174/hw3.0/board-2.bin
firmware:       ath10k/QCA6174/hw3.0/board.bin
firmware:       ath10k/QCA6174/hw3.0/firmware-5.bin
firmware:       ath10k/QCA6174/hw3.0/firmware-4.bin
firmware:       ath10k/QCA6174/hw2.1/board-2.bin
firmware:       ath10k/QCA6174/hw2.1/board.bin
firmware:       ath10k/QCA6174/hw2.1/firmware-5.bin
firmware:       ath10k/QCA6174/hw2.1/firmware-4.bin
<snip>

As you can see, the driver in 17.04 will load and use firmware-4.bin or firmware-5.bin but not firmware-6.bin. To use the latest firmware, you probably also need the newer, possibly unstable, driver from 17.10.


wired network drops after few minutes / seconds

I have been edited the file NetworkManager.conf

from /etc/NetworkManager/NetworkManager.conf

set:

  [ifupdown]

  managed=true


How to install a Specific Version of Node on Ubuntu Server

Install nodejs 6

Get your nodejs tarball from node site e.g. node-v6.11.3-linux-x64.tar.gz from v6.11.3

wget https://nodejs.org/dist/v6.11.3/node-v6.11.3-linux-x64.tar.gz

Unpack provided archive files to /opt/nodejs

mkdir -p /opt/nodejs
tar -xvzf node-v6.11.3-linux-x64.tar.gz -C /opt/nodejs/

Create link to current node version

cd /opt/nodejs
mv node-v6.11.3-linux-x64 6.11.3
ln -s 6.11.3 current

Create link to current node binary

ln -s /opt/nodejs/current/bin/node /bin/node

Verify Node version

node -v
v6.11.3


Ubuntu 14.04.2 LTS won't install from live USB

The Syslinux message tells us the USB creator has actually done its work on the USB, so it certainly looks like you have followed the process correctly.

This makes me think you may have a bad ISO image. Perhaps you should download it again.


"Starting version 219" after kernel upgrade to 3.19.0-18

Today after next set of kernel updates the issue has gone.
Now Ubuntu 15.04 boots normally.

sserg@SSERG-U38DT:~$ inxi -F
System:    Host: SSERG-U38DT Kernel: 3.19.0-18-generic x86_64 (64 bit)
           Desktop: Unity 7.3.2  Distro: Ubuntu 15.04 vivid


Veracrypt is taking forever to mount a partition (Ubuntu 18.04.01 LTS)

In Ubuntu 18.04 (gnome 3.2.82), I couldn't get Veracrypt to load a volume using the gnome app menu (the square of dots). But I discovered several other ways to get it working without any long-winded commands or even tricks.

Terminal: "sudo -H nautilus" then went to "Other Locations" then usr/share/applications/veracrypt and it worked fine to load volume.
Terminal (non-root): "nautilus" worked fine to load volume.
Favorites Bar on Desktop: Veracrypt link worked fine to load volume.

For all cases above, I DID NOT mount from the Main Veracrypt Menu. I did the following:

I selected the volume
I clicked the "Mount" button but went to "Options" in the lower right corner.
I had to check the TrueCrypt Volume box for my particular situation.
I entered the volume's password at the top of the same window.
I DID NOT have to select "Do Not Mount" by the way.
I clicked on "OK" to start the mounting process.
I then entered my user password for Ubuntu to give it sudo permissions.
The volume mounted within 1 minute and appeared in Nautilus under "Other Locations."

I retried the above steps using the gnome app menu link (square of dots), but it still did not work. Therefore, this is a solution and a problem in one post. I hope it helps others!


convert galaxy s5 hd video via ffmpeg in dnxhd, possible with yuv420p?

As my colleague has pointed out there is a fixed set of frame sizes matched with a few other vital parameters for dnxhd encoding with FFmpeg.

For your file the following slightly simplified command line should achieve your goal:

ffmpeg -i "/media/elomin/20170805_221129.mp4" \
       -c:a pcm_s16le \
       -c:v dnxhd -vf scale=1920x1080,fps=24000/1001,format=yuv422p -b:v 115M  \
       "/home/elomin/Videos/studio_test_1.mov"

You do not actually need to rescale as your input video is the correct size for dnxhd but I leave it included to demonstrate the required syntax if the input video has incorrect dimensions.

References:

How to convert a video with ffmpeg into the dnxhd format for the purpose of using it in cinelerra?


have a look at this answer How to change the order of scopes in a lens?

from what I understand, the scopes actually do display the results first in first out

As for my personal experience, I have smart scopes disabled in the first place. Yet typing a search term takes quite some time to display the local results. I also have other users where smart scopes are enabled and it doesn't take much longer to display local results (though there is some difference in time).

I think what slows down local result is not because some scopes are prioritized before others but maybe since more scopes means higher load on the processor. Also take into account that online scopes don't need much processing power concerning each scope alone, the computer just sends the query to online scopes and they send back the results, that may be the reason why online scopes display first. But together each scope contributes in putting load on the processor and therefore affecting the speed of the local scope. Actually displaying results itself can be considered as processor load.

...You can wait for a better answer though


There's two issues at play here, and both issues involve your modem.

Firstly, the modem itself has SSH access available.  Granted, it's on an ancient key exchange mechanism, which is in itself a security risk, but there's nothing I can do about that here.  This is what you're reaching when you SSH to the public IP address from externally on your network - the remote management shell for your modem.

Check your modem's management interface for "remote management" options, and see if there's an SSH option in there.  If there is, disable it.

Secondly, the modem you specified does not have "port forwarding" it seems as an option.  This is sometimes also listed as "NAT".  If there's no port-forwarding capability for your modem and no way to customize how traffic is routed when it comes in from the outside on your modem to route it to internal systems rather than accepting the connection directly to the modem itself, there's no way to reach your server that is behind the modem.

(My guess is that the 'modem' is actually a router, oddly enough, but it's not uncommon for a modem and a router to be the same combined component on the consumer markets)


Creating new user, inconsistent bash prompt

It looks like kitty's shell is /bin/sh. This is a shell that's intended for scripting, it doesn't support fancy prompts, completion, command line edition and other interactive features. Change kitty's shell to /bin/bash:

chsh -s /bin/bash kitty


/tmp/ is somehow out of space and contains an irremovable file

It's possible (although not common) for a ext4 file system to have remaining space but nothing reserved for inode meta data, essentially meaning the disk is "full" of a very large (millions) of small individual files.

You can run df -i to see the "IUse%" metric of a file system.


I managed to work around this by forcing the version 304.131-0ubuntu3 from the terminal by:

Double check the versions that are available with sudo apt-cache showpkg nvidia-304
Remove current version just to be safe sudo apt-get remove nvidia-304
Force the previous version via sudo apt-get install nvidia-304=304.131-0ubuntu3
Hold the package from automatically updating apt-mark hold nvidia-304
Reboot and hope it ends up working


How can I get 4k @ 60Hz at 4:2:0 working in Ubuntu 16.04?

I was having a similar problem with an LG 4k TV, but it turns out that I had to enable the option "HDMI ULTRA HD Deep Colour" on the tv to make it work.


Update server php version to 5.4.10 via the command line

PHP 5.4.10 is not available in the Ubuntu repositories for 12.04.

You have two options:

(1) try and find a PPA with a backported version of PHP 5.4.10 (such as ondrej's oldstable PPA)

  a) Run this command: sudo apt-get install python-software-properties
  b) Run this command: sudo add-apt-repository ppa:ondrej/php5-oldstable
  c) Run sudo apt-get update; sudo apt-get install php5
  d) This should allow you to use PHP 5.4.10 (or whatever the most recent "Old Stable PHP" is).

(2) download PHP from source, and compile it.

5.4.10 does not exist in the repositories for any version of Ubuntu, apparently, so you're stuck with these two options for all releases.

(I can try and backport 5.4.10 from Debian if you would like, but it would be in a PPA, so you'd have to trust that I'm not giving you malware, although I wouldn't do that ever.)


booting into ubuntu from windows remotely

Only if you have a iDrac,KVM,VPro,ILO you can reboot a running system and choose the booting OS. Or you mount your ubuntu in Windows with EXTFS and edit it before and reboot if your running OS is Windows and if it is Ubuntu you just change the default boot partition and reboot.


Just trying this in 20.04, and it seems the timidity package no longer includes a service file. I tried some of kyodake's answer and it worked nicely, but you don't need any sudo!
This might also work to solve the original poster's problem, as it seems that whichever user is trying to run timidity does not have access to whichever home directory timidity wants to put a file into (perhaps the package has set up a service user without a home directory). This method makes the current user the user that starts the service, and whose home directory is used.
Firstly, add a new file ~/.config/systemd/user/timidity.service and edit it to include kyodake's contents:
[Unit]
Description=TiMidity++ Daemon
After=sound.target

[Service]
ExecStart=/usr/bin/timidity -iA -Os

[Install]
WantedBy=default.target

Now you can simply start the server like this:
systemctl --user start timidity

and ensure that it starts up at user login like this:
systemctl --user enable timidity

no sudo required.
To minimally fix your actual problem (and if you want timidity to start on boot and be present for all users); check if you have a /etc/systemd/system/timidity.service file. If you do, check for a line beginning User=; this will tell you which user is trying to start the service. Let's say it says User=timidityuser.
Now you want to find out if timidityuser has a home directory, so:
grep ^timidityuser: /etc/passwd

The last-but-one field returned will be the home directory. You can check that this directory exists and has the correct owner and permissions, or you can create a new one like this:
sudo usermod -md /home/timidityuser timidityuser

Hope that helps!


Accessing Encrypted Home Folder / Return to Login Screen

I have tried all the methods listed in those posts, and I still can't access my files. I don't have my mount passphrase, and when I try to get it using ecryptfs-unwrap-passphrase /home/daniel/.ecryptfs/wrapped-passphrase but it comes up with the error:

Error: Unwrapping passphrase failed [-5]
Info: Check the system log for more information from libecryptfs

However, sudo ecryptfs-recover-private worked.


The issue is coming because your new distro (Peppermint) override grub boot loader (in your MBR). When you install your new distro, grub will use as boot partition the other ext4 partition.

The solution consists to ask newly installed distro do not install grub (not sure it's always possible). Then from your exiting Xubuntu, from Terminal, do a sudo update-grub which detect your new operating system.

When you want to delete your temporary operation system, delete the partition from Xubuntu, then run again sudo update-grub to clean up the old entries.

For now you have to repair your grub (not required to reinstall everything). You can follow this process :

  https://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd


apt-get update stuck at 0% , not working with ipv4

Try to add in ipv4 dns settings adresses: 8.8.4.4,8.8.8.8 but it looks like these repos are temporarily turned off


Why does already installed ubuntu needs reinstall?

It's obvious that I have installed ubuntu but after restart everything gets removed that
I saved before.

No, it is not obvious. This is a wild guess and I am confident that it is incorrect.
I think that what is happening is that you are not correctly installing a bootloader.
Is your computer BIOS or UEFI?
Is your hard disk MBR or GPT?
Are you trying to dual-boot? If so, with what?
Is your firmware up to date? If not, update it.
If you do not know how to answer these questions, Google them. You will find lots of instructions on how to find these things out. You will need to know the answers and give them to us before we can help you.


Is it safe to try Ubuntu 14.1 on a Macbook Pro (late 2013)?

In my experience having installed dozens of different operating systems and "Trying Ubuntu" on dozens of hardware combinations. I believe I can safely say that it isn't possible to damage your hardware with the "Try Ubuntu" option. Note that this doesn't mean it's impossible to damage your current operating system by doing something ill-advised such as deleting or editing files off of your hard drive that are required by you existing MAC OS. Provided you avoid mounting the MAC drive under Ubuntu you should not be able to damage anything.

Source: Experience


Is there a way to install the MS Windows version of msn?

Made your question clearer. Next time look up a bilingual dictionary in your language :) You'll learn to ask better questions.

So, as I understood you don't want Amsn and the likes.. Then you say that you want to install msn ("the Windows one") instead.

If you're so keen on wanting to use that and aren't interested in Amsn's msn like themes and plugins, to make yourself feel more familiar, then it's possible to go straight installing msn.

In your terminal (or 'command line') write this text and hit enter:

apt-get install wine*

After it's done you can download msn from the official site (not sure about that) and install it as you would in Windows.

Let me know if this helped you. I'll update this question if necessary.


Created a wireless network from my Ubuntu, it can't be seen by nearby devices

It's because the wireless network you created is set to ad-hoc network by default, which is not detected by mobile device, unless you do some kernel mods in your mobile device.
One way to get out of this problem is to use packages like

  ap-hotspot

For more info and how to install ap-hotspot click here


Try this: http://www.afterdawn.com/software/general/download_splash.cfm/google_picasa_for_linux

This is Picasa 3.0, I have not tried installing it. Have you tried running Picasa for Windows with Wine or CrossOver? That should work.

Okay, you are asking about downloading Picasa for Linux. So the following does not really answer your question, but you could still try the following pretty capable alternatives. You can expect to have new releases in the future for these applications.

Shotwell is not bad, you can use plugins to also publish photos to online websites.

Gwenview is a KDE application and another alternative, and is pretty good too. Only thing is that you will need to install quite a few KDE dependencies with it.

XnView is also pretty good, I have used the Windows version a bit but have never used the Linux version so can't comment much on it.


You should backup to an external drive of some sort, and re-install Windows. If you do not have access to an external drive, then you could always make a small partition, back up your data to that partition, and install Windows on the leftover chunk of your hard drive. There is no way to install Windows over Ubuntu without formatting, because Ubuntu natively uses an EXT4 filesystem. Because Windows uses NTFS as it's filesystem, you have to reformat your EXT4 filesystem to NTFS format.


Unable to locate package libsslcommon2-dev in Ubuntu 18.04

As user Olorin mentions the libsslcommon2-dev package was removed from Debian in 2017. You probably want to use the libssl-dev package instead:

sudo apt install libssl-dev

That's assuming you want to use the OpenSSL library in C, which will provide the header files.


http://archive.canonical.com/ubuntu/dists/precise/partner/i18n/Translation-en and http://extras.ubuntu.com/ubuntu/dists/precise/main/i18n/Translation-en_US doesn't exist in the server and can be ignored without problems.


Although you could do this with regex capture groups in the perl-based rename tool, my choice for this would probably be mmv ex.

$ mmv -n '* (*, *) *' '#2 - #1 - #3 - #4'
Name of the film (Author, year) LANG -> Author - Name of the film - year - LANG

The cases with and without the LANG component are easiest handled separately - for the latter case, you can reduce the command to

mmv -n '* (*, *)' '#2 - #1 - #3'

A similar thing is possible in zsh with the zmv contrib module:

 % zmv -n '(*) \((*), (*)\) (*)' '$2 - $1 - $3 - $4'
mv -- 'Name of the film (Author, year) LANG' 'Author - Name of the film - year - LANG'

Remove the -n when you are happy that the transformation is correct (one obvious gotcha is if Name of the film ever contains parentheses).


If you don't have fglrx installed, then you should install it. It's the proprietary driver for AMD graphics cards, so you'll have much better performance with it installed. Open the Additional Drivers app (search it) and select the fglrx option.

I'm not quite sure what this would have to do with Wine packages, but this is the answer to what you've currently asked.


Ubuntu 19.10 stuck at purple screen during boot using KVM

I had a similar experience on a physical machine. In my case, it was the video drivers that were causing this. So I edited the grub file while it was booting (hold the right Shift key if BIOS, Esc if UEFI) and replaced quite splash with nomodeset.
However, to make this permanent, you will have to edit the grub file. Since you can ssh into it, then edit the grub file by logging in:
sudo vi /etc/default/grub

After you make the change above, save the file and update the grub:
sudo update-grub2
sudo shutdown -r now

Ref: https://www.dell.com/support/article/en-us/sln306327/manual-nomodeset-kernel-boot-line-option-for-linux-booting?lang=en


How do I patch Minecraft's LWJGL libraries?

Patching LWJGL in Minecraft (Linux)

Download the LWJGL files

Go to the LWJGL download page and download the latest stable release.
Open the .zip in Archive Manager.
The jars are found in "jar" and the natives are found in "natives/linux"

Patch the LWJGL files by doing the following

Open your home directory (You can usually just do this by opening the File Manager).
Press Ctrl + H to see hidden folders.
Open ".minecraft" and open the "bin" folder.
Copy "jinput.jar", "lwjgl.jar" and "lwjgl_util.jar" from the "jar" folder.
Now open up the "natives" folder and copy  "ibjinput-linux.so", "libjinput-linux64.so", "liblwjgl.so", "liblwjgl64.so", "libopenal.so", "libopenal64.so" from "natives/linux".


How to edit Synaptics Touchpad values in Ubuntu 12.04? No xorg.conf file!

In the terminal, I ran

sudo apt-get install xserver-xorg-input-synaptics

and the touchpad started working; the touchpad-tab was also visible in settings (mouse).


How could Rhythmbox deal with multiple-disc albums

Many tagging software such as EasyTag, Picard use a variety of techniques help media players such as Rhythmbox that don't deal with Multi-disc albums very well.

Commonly they append the disc number to the album title in the format (disc x) where x is the disc number.

I've grouped some of these in my collection as shown in the following picture.

Now - the easiest way to do this is using Rhythmbox itself if its one of the common file types such as MP3, OGG.  If you are using something Rhythmbox doesnt allow you to modify (see later) then its best to use software such as EasyTag and Picard to modify the tags in the music files themselves.  Then Rhythmbox will see the modified album titles.

One technique I use is to add the file location to the tracks window - use the Preferences option to do this.  Then you can order by file-location to group all the tracks in one file-location.  Typically you would copy all tracks for album-disc 1 in the same location - album-disc2 will be is a separate folder.

Highlight all the tracks for one album, right-click and select properties

Finally, append the disc number to the album-title as shown and click OK.

All the album tags for the multiple tracks chosen will be updated.


Installed Ubuntu (14.04) on external HDD and lost data

are you sure nothing was formatted? If windows shows you nothing, that means the HDD most probably was formatted in ext4. During installation unfortunately you didn't pay attention at the step of installation location. By default Ubuntu's first option is Erase disk and install Ubuntu


Upgrading from 14.04 may yield some unresolvable errors as it left general support almost two years ago. That said, you may be able to upgrade by installing the update-manager-core package … assuming it's still available. Here's how:

Back up your system
Update apt:
sudo apt update

Install the update-manager-core package:
sudo apt install update-manager-core

Upgrade the OS to 16.04, which loses general support in six weeks:
sudo do-release-upgrade

A faster, less error-riddled way would be to reinstall the OS from scratch. A lot has changed since 14.04, so starting with a fresh 20.04 (or newer) installation would save a lot of time, bandwidth, and hassle. Just be sure to make a decent backup of your important files beforehand.


Boot partition filling up: Is this a bug in Ubuntu?

why does Ubuntu keep doing this?

Short version: safety.

Long version: the kernel is the most important part of an OS. It handles communication between hardware and software, among other things that I won't cover in detail here.

Changing the kernel might give you problems. Most of the time everything goes well, but the one time that something is screwed up you do want to have it working again quickly.

Say you are researching materials for your thesis and the deadline is approaching... suddenly a kernel upgrade breaks your Wi-Fi. Do you prefer to postpone your graduation for saving 150 MB of disk space?

I guess no, you don't want that. Here's why you reboot, select the previous kernel and go on with your work. Things like this don't happen often, but they may happen rarely and on some specific hardware, maybe only for one kernel release.

I actually experienced seeing my parents' PC not accepting any keyboard input after a kernel upgrade (a simple keyboard, not a wireless one). Now, using a PC without a keyboard is not nice.

  isn't this a serious design flaw?

Not that serious, since benefits outreach the downsides and nowadays hard drives are basically always bigger than 250 GB. Even with 10 different kernels you would occupy only like 2 GB. Yes it starts to be a waste of space after a while, but not that noticeable. Moreover you can uninstall them manually, they are not locked.

Nevertheless, it's reasonable to say that only the last few kernels are needed. That's why Ubuntu 16.04 Xenial marks as "auto-removable" the old kernels, except the last 2.

  I always assume the default options will be the safest

Indeed, your assumption is correct. Ubuntu won't never let you blindly overwrite your kernel without any backup solution.


How to Setup GIMP 2.10 on Ubuntu 16.04 (Xenial Xerus)

GIMP 2.10 can be installed natively in all currently supported versions of Ubuntu by installing the gimp snap package. Open the terminal and type:

sudo snap install gimp

This command installs GIMP 2.10 from the stable channel. If you need to have full access to external media (such as USB flash drive, SD/MicroSD card, additional mounted hard drive and so on), run the following command:

sudo snap connect gimp:removable-media

You can also install GIMP 2.10 from the Ubuntu Software app by selecting the GIMP snap package which is called GIMP in Ubuntu Software.

You can change the interface language in GIMP by selecting Edit -> Preferences -> Interface -> under the Language section select a new language from the dropdown menu. Restart GIMP for the changed interface language to take effect.


analog audio output card not seen. audio card bcm2835 ALSA

In system settings, open multimedia.
select audio devices, and output.
set output device to default audio.

sometimes in pulse audio controls,
you also have to set headphone, though is should automatically switch.


Contacts Not Loading in Empathy [Ububtu 14.04]

This could be a google-specific matter regarding contacts. On an up to date Ubuntu 14.04 I can't access any google contacts. My google-calendar however integrates just fine. So may be this is a bug.


can't open software-center and software & updates

The package that offends you is python-gi, may be it is misconfigured. Reinstall it from command line

sudo apt-get purge python-gi
sudo apt-get install python-gi

Just in case, make sure it does not try to delete anything else, (it will ask if it wants to). You may try in with software-center too.


How to write a shell script to ssh to a remote machine and run a few commands there

You can do:

foo@server1$ ssh -t bar@server2 'passwd && echo "Password updated sucessfully"'

The -t option forces pseudo tty allocation, otherwise your typed password will be seen on the screen.


To fix this do
sudo apt-get --allow-releaseinfo-change update
sudo apt update
sudo aot upgrade

This will accept the new release and download the new files.


Try this:

Boot into the Ubuntu Live CD.

Now, open a Terminal.

First, we'll identify which is the Ubuntu partition:

sudo fdisk -l

Next, we'll mount it (replace sda2 with the appropriate partition number):

sudo mount /dev/sda2 /mnt

And finally, we'll install Grub to the hard disk (replace sda with the appropriate hard drive identifier):

sudo grub-install --root-directory=/mnt /dev/sda

Now, reboot, and run this command in a Terminal when you get to the Ubuntu desktop:

sudo update-grub

This should detect your Windows installation and automatically add it to the Grub menu.


Ubuntu server 16.04 static and private ip

Looks like the problem was with not being able to restart the network adapter.
after rebooting the pc it works fine with

iface eno1 inet static
  address 10.0.0.3
  netmask 255.255.254.0

iface eno1 inet static
  address xxx.xxx.xxx.xxx
  netmask 255.255.255.224
  gateway xxx.xxx.xxx.1


Ubuntu 18.04 netplan issues: VM with 2 interfaces with static IP addressing will not configure the interfaces on boot

i solve it with 2 different files:
on this:
Ubuntu 18.04.1 netplan metric priority

yaml files:

01-netcfg.yaml
network:
 version: 2
 renderer: networkd
 ethernets:
   epn0s3:
     dhcp4: no
     dhcp6: no
     addresses: [192.168.1.194/24]
     gateway4: 192.168.1.1
     nameservers:
       addresses: [192.168.2.2]

backup

02-netcfg.yaml
network:
 version: 2
 renderer: networkd
 ethernets:
   epn0s8:
     dhcp4: no
     dhcp6: no
     addresses: [192.168.50.115/24]
     gateway4: 192.168.50.1
     nameservers:
       addresses: [192.168.50.1]

but the problem is around: Redundant systems and Failover.

once the connection to port 1 and 2 is working individually, I have not managed to make it fall; loses connectivity to the internet or does not resolve the names; connect via port 2.


How to get access to Terminal and Password

No characters being displayed when you enter your password in a shell or TTY is perfectly normal. You can enter your password and press Enter in order to login.


ATI Radeon HD 5750 and lagging in games and youtube videos

I'm using exactly the same graphic processor with exactly the same drivers. Do not install the drivers from any different place than Ubuntu, or you will perhaps be seeing yourself dealing with more problems. Simply do the following for extreme quality:

From the AMD Catalyst Control Center:

Disable the "free of fragmentation desktop" technology, from the "screen options" section. Desktop and video will clearly go faster.
Set the "wait for vertical sync" option, from the "3D" section, to "Activated, except when told by the application". Then 3D animations will be perceived smoother.
Disable the "Catalyst A.I." technology, since applications can be tuned more accurately without it since no 3D configuration in games is auto-managed by the driver.
If your screen supports HDMI conection and audio output, use HDMI over any other connection; since you will be able to use the integrated HDMI sound processor on the graphic card, which is of superb quality, and the YCbCr 4:4:4 pixel format, which is more accurate than any other. No problem for now if you see black borders because of doing so.
In other case, try using DVI connection if supported; since it's the remaining output that is digital.
Set your screen to its standard values and disable any auto-improving technology; since in this way the image will be the closest to what the multimedia creators saw in their screens when creating the contents, and they're the best people to set this values.
If your computer is connected to the monitor using a DVI or an HDMI cable, Set the graphics processor to scale the screen in the "screen manager" section; since scalers of this time are usually better than the screen's ones.
If your computer is connected to the monitor using a DVI or an HDMI cable, set the "graphic processor scaling" method to "keep aspect ratio". This will make screen aspect ratio to be always corrected represented and images will not be "fat".
If you see black borders in the screen, set the "scaling options" bar to "0%". Repeat this if you see black borders appearing again in a different resolution that you intend to use in a game.

In CompizConfig, a tool you can download from the software center:

Disable the vertical sync option in the "OpenGL" section. This will make Unity to run smoothly.
If you're using a desktop with a big screen, in the "Ubuntu Unity Plugin" section set the "Hide Launcher" option to "never". You will note a great improvement in the usability of Unity.

If you notice problems with the Unity shell or with Adobe Flash, in the log-in screen choose to do so using "Ubuntu 2D" shell instead of "Ubuntu" one.

I will wait for the day we could not spend the 75% of time solving problems caused by proprietary software.


Fresh install of Ubuntu 12.10 won't boot on Asus X101CH Eee PC

On boot push F5 (or Tab, it depends on the tool you use to start it) and add to kernel option at the end: "text". In case you already have the "persistent" option you must remove it.
It will boot to a shell with user ubuntu
sudo nano /etc/X11/xorg.conf (it will create this file):

  Section "Device"

    Identifier             "Intel GMA3600"
    Driver                 "fbdev"

  EndSection

Save the file
Start the graphical session whith command:sudo service lightdm start

Source - http://linuxeeepc.blogspot.in/2012/08/lubuntu-on-eeepc-1025c-with-correct.html


Understanding Ubuntu installation while asking password

The 2 options have nothing to do with windows.

It is the method of logging in into the desktop. The 1st does not require you provide a password to login to the desktop (but you can not use encryption with this method). The 2nd requires you to use a password for logging into the desktop.

Examples of login sceens.

Examples:

if you are the sole use of a system and do not care about encrypting your data: use the automatic login.
if you are not the sole user do use a login with password. If there are 2 users the 2nd one will end up with access to the data of the 1st user. That can be unwanted. Same if you want to secure your hard drive; encrypting it means you will need to provide a password to identify yourself so it has been made mandatory.


How to lock ubuntu device orientation in portrait or landscape from user input?

Unfortunately there's no way yet to set a certain orientation programatically. You can however lock the orientation for your app on a certain one (portrait or landscape) in your app's desktop file. See the following link: https://wiki.ubuntu.com/Unity8/FullShellRotation. The feature has been released some time ago, and perhaps you already use that.


Open the application named System Monitor. Go to the option Processes.


Cannot get gpg key id to upload to launchpad

Use

$ gpg --list-secret-keys --keyid-format LONG

to obtain full information including key ID.

See this link for more information about gpg keys.


Alt binding can be changed in CCSM

sudo apt-get install compizconfig-settings-manager


How to remove Windows 7 from alongside with 12.04

I would do the following to remove said partition:

Boot a live CD.
Select "Try Ubuntu"
Open Gparted(Search for it)
Make sure your hard disk is selected in the dropdown in the upper right.
Right-click the Windows partition and format it to NTFS.
Right click your old Windows partition and click Resize/Move. Resize it to an arbitrarily-small size, at least 64MB.
Right-click your Ubuntu partition and click Resize/Move
Drag the arrows on the left or right as far as possible to make the partition bigger.
Click Resize to accept the dialog.
Click apply in the toolbar above. The icon is a green check.
Acknowledge the warning. Allow the operation to complete, and then open a terminal.
Type: mkdir /mnt/sda2 && sudo mount -t ext4 /dev/sda2 /bin/bash, assuming sda2 is our Ubuntu partition.
Run sudo grub-install /dev/sda and then sudo update-grub.

Please note that if Ubuntu is in an extended partition, you should right-click and resize the extended partition first.


Playing a MIDI keyboard without JACK / how to use JACK and PulseAudio/ALSA

To let Jack and PulseAudio work together better, you should use pasuspender.

With the options -m alsa -a alsa, amsynth should not use Jack.
(You can the use aconnect to connect the keyboard to the synth.)


No Bluetooth Found - Plug in a dongle to use Bluetooth - Ubuntu 18.04.1 LTS

First, run this command for switching on devices

hcitool dev

After that run this

sudo systemctl restart bluetooth

for checking status of your, Bluetooth run this

systemctl status bluetooth


Despite having "Unity" name written all over it, Unity is but a plugin for compiz and a bunch of customizations of a regular gnome desktop. The dash is Unity and replaces the Gnome shell, but most of the applications one runs (the status bar, the notifications, the control center, the screensaver, the file manager) are from Gnome.

Therefore, you can use F-Spot with good conscience.

However, the default application for managing and correcting photographs that comes with Ubuntu is called shotwell; note that it is also primarily Gnome.

Both Shotwell and F-spot are sufficiently similar to have sparked a vivid discussion about which one is better. F-Spot was criticized for lack of stability, and Shotwell for lack of features. See also this question.

Best try it for yourself.


Installer for ubuntu 16.04 64 bit not starting on Notebook HP - 15-ba085nl

I've been able to solve the problem thanks to this question Ubuntu installer hangs on start

In order to start the installer correctly I clicked 'e' while on the grub page and edited the command by deleting "quiet splash" and adding "nomodeset".

Too bad that later on I doscovered there is no support yet for AMDGPU-PRO in Ubuntu 16.04.3
http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Install.aspx


It seems like missing touch-pad drivers. Ubuntu by default does not use any proprietary drivers.  You can check whether if there is an additional driver available for your touch-pad by using the following steps.

Go to the Dash and search for Additional drivers
click on the  Additional drivers icon.
If there is any proprietary driver for your machine it will show up in the "Additional drivers" tab.
If so select the driver and click on "Apply Changes" to install it.


just format one instance of ubuntu and update your grub config


In the .desktop file entry, there’s the line which starts with “Icon=”. This part is especially important as it will show the icon of your app, which will distinguish it from other entries.

When providing the icon file name, make sure you:

Use no absolute paths (ie. /usr/share/icons/…)
Use an icon which you actually ship in your app
Specify the 'Icon=' key in the .desktop file
Put the icon in the root of your project (i.e. Icon=./icon.png)


How to install a virtual machine on a different physical hard drive using VirtualBox

Change default storage path
From the VirtualBox Manager we can define the default location of Virtual Machines by choosing a location path, which can also be on a different drive if this drive was mounted with r/w permissions:

Create a VDI on a different path
If that drive is not for general use we can also create a virtual drive we had stored on a different path (click on ):

Load a VDI to an existing VM
Any VDI located on a different drive can also be attached to a virtual machine on the machine's storage settings. Click on  then choose a virtual hard disk file on any path of mounted drives.
Caveats
To avoid an error when starting a virtual machine we have to take care to Always mount the drive holding our VDIs before we start Virtual Box.


Are manually installed dependencies better than auto installed ones?

The factual part of your understanding is correct: manually installed packages are not removed during the "autoremove" operation if there is no reverse-dependency left on the system whereas automatically installed ones will be removed in that case.

However you're wrong in that one is generally better than the other. What's better for you depends on your needs:

If you install the Kubuntu desktop via the task kubuntu-desktop^ and then decide that you don't want to keep the text editor Kate (package kate) around and remove it for some reason, a later "autoremove" command will not remove the rest of the Kubuntu desktop packages.
If you want try out the Kubuntu desktop (e. g. in addition to your current desktop environment) and install the meta-package kubuntu-desktop and then decide that you don't want to keep using it, you can remove the kubuntu-desktop package and run "autoremove" to get rid of all Kubuntu-specific packages at the same time.


Segmentation Fault (Core Dump) Happen and NOT Happen on 2 Different Distro of Linux

The best bet is to probably learn how to debug your code using gdb.  Build your code with the -g flag (to enable debug symbols) and then run in side gdb, e.g.

gdb ./nameofyourprogram

when the segmentation fault occurs, type "where" and you will see where it crashes.  Learning to debug code is just as important as learning to code.  it may be also a good idea to get up to speed with the debugger using a online getting started guide.


Collect errors in the last 24 hours from nginx log files

Reading a log file over x (last) hours, looking for specific lines

Important notes

The answer below was written, based on the example OP provided, assuming the output example is an exact copy of how lines occur in the log file. This is essential for correct parsing out the date; if either the position or the  format of the time stamp is different, it will fail!
Due to missing sorting information, the script could not be optimized for performance; all lines need to be checked, with the information we currently have.
Unclear also is if the log file reports in UTC or local time, and in what time the report should be produced. "last 24 hrs" possibly needs to be corrected by the local time difference.

The script

#!/usr/bin/env python3
import time
import calendar
import sys

#--- set conditions below
matches = ['Error', 'error', 'Exception', 'failed', 'Unhandled', 'err', 'Err']
# ---

pattern = "%Y/%m/%d%H:%M:%S"

source = sys.argv[1]
report = sys.argv[2]
last_hrs = sys.argv[3]

# shift =  time.timezone
shift = 0
now = time.time()

def convert_toepoch(pattern, stamp):
    """
    function to convert readable format (any) into epocherror
    """
    return int(time.mktime(time.strptime(stamp, pattern)))

with open(source) as infile:
    with open(report, "wt") as outfile:
        for l in infile:
            try:
                # parse out the time stamp, convert to epoch
                stamp = "".join(l.split()[:2])
                tstamp = convert_toepoch(pattern, stamp)
                # set the conditions the line has to meet
                if now - tstamp - shift <= int(last_hrs)*3600:
                    if any([s in l for s in matches]):
                        outfile.write(l)
            except (IndexError, ValueError):
                pass

How to use

Copy the script into an empty file, save it as get_log.py
Run it with the sourcefile, the output file and the time as arguments:

python3 /path/to/get_log.py <logfile> <ouput_file> 24

As mentioned, possibly the time (24) needs to be fixed by the local timezone. Please let me know.

What it does

The script looks for lines with a time stamp, showing a time within the defined time period (x-hours back from now), comparing time from epoch. In case of a match, it looks if any of the conditional strings is in the file.
If so, the line is written to the report

EDIT

OP mentioned it didn't work. A test on both examples OP posted on request however, shows the script does the job perfectly:

Why does it work?

Op's example- timestamp:

2016/11/27 13:55:00

is converted into the format:

"%Y/%m/%d%H:%M:%S"

by the line:

stamp = "".join(l.split()[:2])

and subsequently converted to epoch:

tstamp = convert_toepoch(pattern, stamp)

The line:

if now - tstamp - shift <= int(last_hrs)*3600:

selects lines, stamped within last_hrs from now.
The line:

if any([s in l for s in matches]):

subsequently looks if any of the strings:

['Error', 'error', 'Exception', 'failed', 'Unhandled', 'err', 'Err']

occurs in the line.

As mentioned, I tested it thoroughly with the exact examples OP provided, and cannot come to another conclusion than that the script does its job.


How do I increase resolution on ZOTAC ZBOX-CI549 NANO?

Thanks to the @ElderGeek, I've found a workaround, I've bought cable like this to connect monitor via thunderbold:

it works perfectly without any extra setup.


How do I remove lines of a file which contain a specific string?

using sed

Run this command:

sed -i '/adf\.ly/d' inputfile

man sed

   -i[SUFFIX], --in-place[=SUFFIX]
      edit files in place (makes backup if extension supplied)

Using grep

Thanks for @kos notes:

grep -v "ad\.fly" inputFile  > outputfile


Installed kubuntu on a usb stick, want to go back to windows

Step 1: Insert the Windows 8 Installation Disc in your system’s optical drive, or use a bootable USB for that matter, and make sure you boot your PC using this removable media.

Step 2: On the Install now screen, select Repair your computer.

Step 3: On the next screen, choose Troubleshoot, followed by Advanced options.

Step 4: From Advanced options, launch a command prompt windows, and enter the following command:

bootrec.exe /fixmbr

Step 5: Once the command is finished, reboot your computer the normal way, and Windows 8 should load just fine now.


Unable to install repositories during Wine installation: "This codename isn't currently supported."

During chat session we have discovered that software-properties-common package was not upgraded to last version, it had installation candidate from Cinnamon PPA.
So we have removed this PPA and reinstalled this package by

sudo apt-get install ppa-purge
sudo ppa-purge ppa:trebelnik-stefina/cinnamon

sudo apt-get install --reinstall software-properties-common

then remove Wine repository by

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

Then finally followed my method from other answer:

wget -nv https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'

sudo apt install --install-recommends winehq-stable


Here's how to upgrade to 4.0 from the previous 2.2 beta version:

from: http://ubuntuforums.org/showthread.php?t=1695589

1) make sure the old version is purged, and that old config files are moved to a backup folder (in case you want to restore them later if there's a problem)

sudo apt-get autoremove --purge skype

mv ~/.Skype ~/.Skype.bak

2) download the 4.0 deb from the skype website (http://www.skype.com/intl/fr/get-skype/on-your-computer/linux/) and install from commandline:

e.g., sudo dpkg -i ~/Downloads/skype-ubuntu_4.0.0.7-1_amd64.deb

this will fail with an error. that's ok! we have to run the following command to fix dependencies:

sudo apt-get install -f

now install again:

sudo dpkg -i ~/Downloads/skype-ubuntu_4.0.0.7-1_amd64.deb


Switching to tty (ctrl + alt + f3) then back (ctrl + alt + f2) kills prior session when two monitors are connected to ThinkPad Ultra Docking Station

I resolved this by testing a live USB of 18.04.03 and 19.04.  The issues was resolved in 19.04 but NOT the USB of 18.04.03.  I upgraded my machine to 19.04 and the problem was resolved.


How I can install broadcom 4311 wireless?

Maybe you need to install the propietary driver. Use the dash to find the "Controladores adicionales" program (I see that you speak in spanish). There you may have the option to activate the needed driver.

It is possible that you need to connect to Internet previously using the Ethernet device, to download the driver.

In spanish (en español):

A lo mejor necesitás instalar el correspondiente driver propietario. Para eso, usando el dash de Unity buscá el programa llamado "Controladores adicionales". Si tenés suerte, allí mismo te aparecerá la opción para activar el driver propietario.

Es posible que necesites previamente estar conectado a Internet, para que pueda descargarse el driver. Para eso, conectate por cable (placa Ethernet).

Saludos. (Regards.)

Ariel


You've booted in BIOS/CSM/legacy mode, so the installer is trying to set up a BIOS boot loader, not an EFI/UEFI boot loader.

I recommend you go back and find a way to boot in EFI/UEFI mode. One thing that might help with this is using an EFI-only boot medium. Unfortunately, the Ubuntu installation discs are Frankenstein-monster conglomerations of half a dozen more-or-less incompatible different systems that are made to work, after a fashion, through technical trickery. The trouble is that, although this sort of thing works much of the time, it fails sometimes, and when it does fail it becomes harder to disentangle everything.

The easiest thing to try is likely to be to create a second USB flash drive with my rEFInd boot manager. Insert both it and the Ubuntu boot medium in your computer and tell the computer to boot to rEFInd. If you're lucky, it will present a boot option for the Ubuntu installer and that will work. I can't promise that luck will be with you, though; you may need to go digging through firmware boot options or take some other radical steps to get it to work.

Oh, and you may also want to read my page on doing EFI-mode installs. It doesn't directly address the problem you're having, but it covers a lot of potential EFI installation and boot problems.


Gmail/google notification security level low security apps like emphaty/evolution?

I don't know about those clients in particular but thunderbird has been updated to support Google's regular Oauth login which works with 2FA as well.

If you would like to continue using those clients its possible to change a setting on your google account to allow regular email login but I doubt you could do this with 2FA.

I recommend you install thunderbird from the ubuntu repos to use with gmail.


Create a shell function

backup() {
   cp ${1} ${1}~
}

Put it in your shell rc file, for bash it is ~/.bashrc. Source .bashrc or start a new shell.

 . ~/.bashrc
 backup youFile

And you have a copy of yourFile.


NTFS partition can't be mounted in either Windows or Ubuntu

There is a hardware problem with either the hard drive or the laptop, so the hard drive cannot be mounted in either Windows or Ubuntu. If the laptop's hard drive is broken it would cost a lot of money to pay a data recovery specialist to recover the data from it, so before you do that you should try to recover the important files from the hard drive yourself.

It might be easier to recover the data from that hard drive if it was removed and put into a portable hard drive enclosure. They are very cheap, being just a box the same size as a laptop's 2.5" hard drive with a USB port and a USB cable to attach it to another computer. Remove the laptop's hard drive and plug it into the portable hard drive enclosure.

Then take the portable hard drive enclosure to another computer and recover the data with gddrescue and ddrutility data recovery utilities.

sudo apt install gddrescue ddrutility

There might be bad sectors on the hard drive. Bad sectors cannot be fixed. A small number can be worked around, but this is done automatically by the firmware in the hard drive. If there are too many bad sectors the hard drive must be replaced immediately before it becomes impossible to recover the data from the hard drive. To check for bad sectors see the answers to How to run a checkdisk?.

ddrutility is meant to be a compliment to GNU ddrescue (gddrescue on Ubuntu). It is a Linux-based set of utilities to help with data rescue. Find what files are related to the bad sectors using a ddrescue logfile, a special NTFS utility to find files related to bad sectors, create a domain logfile to use with ddrescue to only recover the used portion of an NTFS partition, create a domain logfile to use with ddrescue to focus on recovering the MFT of an NTFS partition and perform some advanced disk read functions.

Another alternative is SystemRescueCD which contains FreeDOS and other rescue and data recovery utilities. SystemRescueCD is lightweight, and it's designed to be easy to boot on old computers. A SystemRescueCD bootable live USB can be created in Ubuntu with the built-in Startup Disk Creator application.

If all of these methods fail to recover the data, you need a tool that can recover data from an NTFS partition that can't be mounted. See the answers to Recovering broken or deleted NTFS partitions.


The "Operation System not found" message tells me that you have a relatively old BIOS in that machine, and it's looking for a boot partition on your hard drive despite the fact you're trying to boot from USB. When you converted the hard drive from GPT to MBR, I'm assuming you wiped the drive of all partitions (as that's exactly what I would do, too) and rebooted the machine with the goal of installing Ubuntu on a "fresh" drive.
Speaking from far too much experience with Dell notebooks, you now have two options:

Boot from a Live DVD (not USB ... because the older BIOSes are asinine like that)
(Somehow) create a primary partition on the hard drive and mark it bootable. You do not need to have anything on this partition, nor does it need to be formatted with any particular file system, but a bootable primary partition must exist.

Hope this solves your issue.


How to get a substring from bash command

Edited answer

As @kevin stated, you can use awk to select only the last line and avoid using tail at all by using END and also if you want to print two columns at once you can do this:

df /dev/sdb1 | awk 'END {print $2,$5}'
1952971772 74%

Original answer

You can select the 2nd columns only:

$ df /dev/sdb1 | tail -1 | awk '{print $2}'
1952971772

Where $2 indicates the position of TAB separated columns. You can use cut because it handle only one occurrence of TAB and here there are multiples TABs to delimita a column.


Solved it, in any future people having the same problem as I did, you can remove the run command from your start menu in /home/username/.config/lxpanel/LXDE/panels/panel
and editing out this line

item {
        command=run
      }

once that is deleted the run menu will be gone after you type in a console lxpanelctl restart


"adb devices" command won't detect my 4.4 Android phone

This happens to me sometimes with certain devices. Here's what I find works:

Find the Vendor ID: You can do this by typing lsusb. My output is something like this:

Bus 002 Device 097: ID abc1:1234 Fictional Company, Ltd.

In this case, abc1 is the Vendor ID.
Create an adb_usb.ini file: Run the following

echo "0x<your device's Vendor ID>" > ~/.android/adb_usb.ini

Restart adb

adb kill-server
adb start-server

Since doing that, my devices have all shown up in adb devices.


I cannot access wireless networking in Ubuntu 12.10

I had this same problem when installing Ubuntu on a friend's netbook. The solution was to install the proprietary driver.

System Settings > Software Sources > Additional drivers tab. You should see the Broadcom driver listed. Choose it and click Apply Changes.


How do I configure DNS resolution if resolvconf doesn't work?

You can try to update the DNS servers in

/etc/resolvconf/resolv.conf.d/base

then run

sudo resolvconf -u

to regenerate the resolv.conf file.


I have a 32-bit machine, can I use programs that are meant for 64-bit processors?

If its a compiled binary, in only a 64 bit version, I think you're stuck. The binary instructions within the 64 bit program won't be understood by your 32 bit processor. It might be possible somehow to run it through some kind of emulator but I've never seen one designed to do that, and it would most likely run very slow if there was one.


How to login to the MySQL in Ubuntu from Windows?

Use this syntax in command prompt:

mysql -h <mysql_server_url> -P <port_number> -u <username> -p

Example:

mysql -h xyz.rds.aws.com -P 3306 -u root -p


C printf not working on ubuntu 13.10 terminal

Here is the output, of your program:

The text from printf ("test"); is printed and you can see it before the line shubham@shubham-pc:~$

Since there is no \n in your program, a newline is not printed at end and hence the default line of console gets printed after it

To solve this your program should look like:

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

int main()
{
    printf("%s \n","test");
    return 0;
}

The thing I've done here is that, I used a format string (%s) to print test and added a newline (\n) after it.

Here is the output after the edits:


XEROX Phaser 3160N installation on 12.04 machine

I am definitely no expert on the issue but here is how I solved the exact same problem:

Install the printer in Ubuntu with its default settings. The printer is identified as Xerox 3160.
Go to Printer Settings and right click on the printer Xerox 3160, then click Properties.
Press the Change button near Make and Model. On the next screen while "Select printer from database" is selected, scroll down to "Xerox" in the below list if it's not selected already, then click Forward.
Now you should see that Phaser 3160 is recommended to you. But your printer is phaser 3160N. So select phaser 3160N and choose the recommended driver for 3160N on the right side. Then click Forward, as before.
Now you are on the last page. Choose "Use the new PPD as is" option and apply. Try to print a test page.

So you don't need to get any additional driver which is not in Ubuntu already. I assume the problem is Ubuntu was not able to distinguish 3160N from 3160. Maybe this is a bug to report.

Please post a comment if this solved your case also.


Ubuntu Touch OS can offer to install for such selected devices, If you do install for your device it's totally on your own risk.[I suggest you to buy Nexus 7].
Ubuntu Phone suggest following devices to install Ubuntu Touch OS,

Nexus 4
Nexus 10
Nexus 7 2013 WiFi
Galaxy Nexus
Nexus 7

The installation steps shown in this link.
And to know about status for selected devices click here.
To know how to get Ubuntu Phone register here.


Trouble setting up IKEv2/IPsec on 18.04 - Unable to locate package strongswan-ikev2

strongswan-ikev2 was a transitional package that has been removed with 18.04.  It caused strongswan-charon to get installed, which is (and was) also the case if you just installed the strongswan metapackage.  The latter also installs the strongswan-starter package that provides configuration via the classic ipsec.conf backend and ipsec control interface, which the tutorial currently seems to be referring to.

To use the more modern vici/swanctl configuration backend and control interface you may install the strongswan-swanctl package, or the charon-systemd package that pulls that in too and provides a systemd integrated IKE daemon (a separate version of strongSwan's charon daemon) .

The individual plugin packages were removed already with 17.10 and since 16.04 they were actually just aliases for libcharon/libstrongswan-extra-plugins. So if you need additional EAP authentication plugins install the libcharon-extra-plugins package.


Fixed the problem!

It seems like it was because of ldap service. i've installed openldap client and changed /etc/nsswitch.conf file to load users first from ldap identities (for example passwd ldap compat).

When I removed ldap from nsswitch.conf, the system got back booting again.

the suspected messages found in /var/log/syslog:

"May 10 12:22:13 iLaptop kernel: [ 1237.108870] type=1400 audit(1399713733.676:43): apparmor="DENIED" operation="open" profile="/usr/sbin/cups-browsed" name="/etc/ldap/ldap.conf" pid=10490 comm="cups-browsed" requested_mask="r" denied_mask="r" fsuid=0 ouid=0" "

"May 10 12:22:14 iLaptop kernel: [ 1237.973672] type=1400 audit(1399713734.540:44): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ldap/ldap.conf" pid=10528 comm="dbus" requested_mask="r" denied_mask="r" fsuid=7 ouid=0 "


How to set up OPENVINO in Ubuntu 20.04 to use intel movidius NCS?

I have successfully setup OPENVINO in Kubuntu20.04. Steps I have followed is described below.
$ sudo apt-get install libopencv-dev python3-opencv python3 python3-pip python3-virtualenv libgfortran5
$ git clone https://github.com/openvinotoolkit/openvino.git

(hash -95677afe29206af7219a7648728f880667bcd989)
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:openvino/bin/intel64/Release/lib
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:openvino/build/lib
$ cd openvino
$ git submodule update --init --recursive
$ chmod +x install_dependencies.sh
$ ./install_dependencies.sh
$ mkdir build && cd build

You have to make some changes in code before continuing
(+ for adding , - for removing)
(1)file-  /scripts/setupvars/setupvars.sh
line 97
  if [ -z "$python_version" ]; then
+    if command -v python3.8 >/dev/null 2>&1; then
+        python_version=3.8
+        python_bitness=$(python3.8 -c 'import sys; print(64 if sys.maxsize > 2**32 else 32)')
-    if command -v python3.7 >/dev/null 2>&1; then
+    elif command -v python3.7 >/dev/null 2>&1; then
        python_version=3.7
        python_bitness=$(python3.7 -c 'import sys; print(64 if sys.maxsize > 2**32 else 32)')
    elif command -v python3.6 >/dev/null 2>&1; then

line 129
 if [ ! -z "$python_version" ]; then
-    if [ "$python_version" != "2.7" ]; then
-         add path to OpenCV API for Python 3.x
-        export PYTHONPATH="$INTEL_OPENVINO_DIR/python/python3:$PYTHONPATH"
-    fi
     # add path to Inference Engine Python API
     export PYTHONPATH="$INTEL_OPENVINO_DIR/python/python$python_version:$PYTHONPATH"
 fi

(2)file-  /inference-engine/src/gna_plugin/gna_helper.cpp
line 59 in function profilerRtcStart(intel_gna_profiler_rtc *p)
-ftime(&p->start);
+timespec start;
+clock_gettime(CLOCK_REALTIME, &start);
+p->start.time = start.tv_sec;
+p->start.millitm = start.tv_nsec/1000000;

line 68 in function profilerRtcStop(intel_gna_profiler_rtc *p)
-ftime(&p->stop);
+timespec stop;
+clock_gettime(CLOCK_REALTIME, &stop);
+p->stop.time = stop.tv_sec;
+p->stop.millitm = stop.tv_nsec/1000000;

(3)file-  /inference-engine/thirdparty/ade/sources/ade/source/execution_engine.cpp
line 140 in function std::unique_ptr ExecutionEngine::createExecutable(const Graph& graph)
-return std::move(ret);
+return ret;

(4)file- /model-optimizer/install_prerequisites/install_prerequisites
line 75
-sudo -E apt -y install python3-pip python3-venv libgfortran3
+sudo -E apt -y install python3-pip python3-virtualenv libgfortran5

Go to build folder.
$ cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CLDNN=OFF -D OpenCV_DIR=/usr/lib/x86_64-linux-gnu/cmake/opencv4  -DENABLE_PYTHON=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DPYTHON_INCLUDE_DIR=/usr/include/python3.8  ..

Note-:option -DENABLE_CLDNN=OFF disables GPU
$ make --jobs=$(nproc --all)
$ sudo make install
$ sudo ldconfig
$ cd ../model-optimizer

If your /tmp directory does not have enough space(require more than 4 GB), then assign an alternate temporary folder for python. Run export TMPDIR=<folder>
$ pip3 install -r requirements.txt
$ cd install_prerequisites
$ ./install_prerequisites.sh
$ cd ..
$ cat <<EOF > 97-myriad-usbboot.rules
SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
EOF
$ sudo cp 97-myriad-usbboot.rules /etc/udev/rules.d/
$ sudo udevadm control --reload-rules
$ sudo udevadm trigger
$ sudo ldconfig

Now Installation of openvino is over.

Compiled  c and c++ example are present in  folder-  ~/inference_engine_samples_samples_build/intel64/Release/
python examples are present in folder- /usr/local/deployment_tools/inference_engine/samples/python/
Installation won't copy model-optimizer(/model-optimizer) into root directory

For more examples download open_model_zoo

git clone https://github.com/opencv/open_model_zoo.git
Go to <open_model_zoo folder>/demos/ and run ./build_demos.sh
Compiled c and c++ examples goes to folder- ~/omz_demos_build/intel64/Release/
<open_model_zoo folder>/tools/downloader/ contains downloader.py to download models. By default downloader downloader downloads models in '<open_model_zoo folder>/tools/downloader/public' or '<open_model_zoo folder>/tools/downloader/intel' folder

Before using model-optimizer or python sample, ensure to run
$ source /usr/local/bin/setupvars.sh


To make lxpanel stay above other windows you should:

in panel settings:

Make window managers treat panel as dock
Reserve space and not covered by maximized windows

in Openbox Settings (obconf from console) in Dock section set all appropriate settings.


Why is there a limit of 10 in the -q argument of traceroute?

You can not expect that any program on any system generates identical outputs. Everyone is free to adapt the source code.

POSIX defines the application programming interface (API), along with command line shells and utility interfaces, for software compatibility with variants of Unix and other operating systems.


Problem with double screen when turn on the PC

When grub is running, no device drivers have been loaded yet, so it's basically running in BIOS mode, so this depends entirely on your BIOS.

That being said, I've made it work on a PC with a broken laptop screen by turning off the power management features of the monitor but that was: guess it: using a VGA cable instead of the HDMI cable, so I think you're out of luck unless your primary monitor can be used with something else then VGA and the HDMI screen can be connected with the VGA cable...


In your sound settings, you need to turn on your TV (or any other device connected to HDMI) with HDMI cable plugged in and TV turned on (if you don't do this, you won't see the HDMI output option), then select the HDMI output option (previously your headphone/speaker should be selected), then your sound output will be through HDMI.


How can I disable the search for applications in software center when I press windows key and start typing?

Open Settings.
Go to the "Search" section.
Toggle off "Software".

Reboot.


If you did one of the automatic installations of Ubuntu, you most likely deleted all of the earlier partitions on your hard disk.  You will need to request from HP the source CDs for reinstalling all of the software. Cost is about $19, was my experience, for a pavilion running windows 7.

You mention poor performance under Ubuntu - there are a couple of things to try while you wait for your disks to arrive from HP (takes about a week).

Install compiz configuration manager (compizconfig on the Ubuntu software center), and use it to turn of the animations in gnome.  My wife's pavilion was almost unusable until I finally did that.
Try some of the recommendations for improving performace in systems with perhaps limited resources

How can I improve Ubuntu overall system performance?

http://www.techdrivein.com/2013/03/4-simple-tweaks-to-improve-unity-performance-ubuntu.html


How to disable touchpad tapping when typing on keyboard?

Direct link to the window manager-independent solution:
http://www.webupd8.org/2009/11/ubuntu-automatically-disable-touchpad.html


ALSA and Realtek ALC3246 on Ubuntu 16.04

The error message

[   10.980953] snd_hda_intel 0000:00:1f.3: azx_get_response timeout, switching to single_cmd mode: last cmd=0x208f8100

is described here as relating to a codec probing problem. Adding the line

options snd-hda-intel probe_mask=0x101

to /etc/modprobe.d/alsa-base.conf, which forces probing codec slot 0 independent of what the hardware reports, seems to have fixed the all the problems with both the speakers and the headphones, and it survives sleep cycles.


change background of certain websites black?

I use this FireFox addon for changing the style of websites:

http://addons.mozilla.org/en-US/firefox/addon/stylish/


Copy error or information messages (as text)

Also in Linux you can copy such text. You can select the text with the mouse and then right click to copy. Or you can right-click the text, then select "Select all" then right-click copy. With the keyboard, provided the dialog is in focus, you can select the text with ctrl+a then copy it (Ctrl+c). You may first need to focus from different elements to the text using the arrow keys or tab. You will see a text cursor if the text is in focus.


Install problem of ubuntu 20.04 on Lenovo slim5 14-ITL

This seems to work:

First, boot Ubuntu in recovery mode.

With BIOS, quickly press and hold the Shift key, which will bring up the GNU GRUB menu. (If you see the Ubuntu logo, you've missed the point where you can enter the GRUB menu.) With UEFI press (perhaps several times) the Escape key to get grub menu.
source

Then, open a terminal and run:
cd /etc/default

Next, edit the grub file with sudo, i.e.:
sudo vi grub

or
sudo pluma grub

Look for the line:
GRUB_CMDLINE_LINUX_DEFAULT="..."

and change it to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Save the file.

Then in terminal run:
sudo update-grub

After that, I could boot Ubuntu normally.


How to create partitons while installing Ubuntu 12.04

It sounds like you created the partition already, but it is NTFS?

I think I would run "gparted" from the installation CD/USB, as it will graphically display your disk layout, and allow you to change it.  You will need to choose "sda" from the drop-down list on the right, which would default to the current disk, the CD or USB stick.

Once you have the hard disk displayed, find the Ubuntu partition, and click on it.  It should highlight that partition in the list below; note the name in the first column, which will be something like "/dev/sda2", or possibly a higher number.  This is the Linux method of specifying disks, because the filesystem is mounted to a directory in "/dev".

You then right-click on that entry in the list, and choose "format to", then choose "ext4".  To actually apply this operation, you will click on the green checkmark to the right of the icons in the toolbar, or use the menu "Edit -> apply".  This step may not be required, but I'm not sure if you can re-format during the install.

You also need a small swap drive, probably about 5 GB or so.  I'd resize the last partition to reduce it by that much, to create a blank partition at the end of the drive.  You can also delete the Ubuntu partition, then create a new partition that is 5 GB smaller, and create another after it formatted as swap.

Once this is done, click on the icon on the desktop to install Ubuntu, and when you get to the disk partitioning section, choose "Something Else" for Manual Partitioning.  Then choose the partition you formatted.  The questions are fairly straight-forward, except perhaps the one that says "Use As", where you enter or select from the lis "/" for the main filesystem, and for the swap drive, you can select "swap" from the list.

I'm probably a bit vague because I don't remember the exact wording.  This part is close to the start of the install, so if you get stuck, you can always stop and ask questions.


To fix this:

usermod -a -G winbindd_priv www-data
chgrp winbindd_priv /var/lib/samba/winbindd_privileged
ln -s /var/lib/samba/winbindd_privileged/pipe /var/run/samba/winbindd_privileged/pipe

The Apache module expects the winbindd pipe socket to be found in /var/run/samba/winbindd_privileged/. The new location of the file however seems to be /var/lib/samba/winbindd_privileged/.

Source: https://bugs.launchpad.net/ubuntu/+source/apache-mod-auth-ntlm-winbind/+bug/1304953


Am I able to install the codelite plugins package without uninstalling codelite?

The codelite-plugins available in the Ubuntu repositories is older than the codelite version that you downloaded from their page. So you can't have both installed at the same time using the package manager.

The good news is that (in a superficial check) all the plugins available in the Ubuntu codelite-plugins deb, seems to be included in the codelite deb available from the official codelite page.

Note that using the version from the repos has some advantages, like automated updates.

The short answer: No, you can't mix the Ubuntu codelite packages with the official packages.


Ubuntu 14.04 screen stays black or purple when you start

In English:
Upgrade to 16.04.  Since you said in chat that you don't have any data on that partition anyhow, I recommend downloading the ISO for Ubuntu 16.04LTS, and burning it either to a DVD, CD or USB stick.  Since you had some concerns about AMD hardware, try running it live, and if it works, do a full install.  Make sure you only format your "ext4" partition and the "swap", as your Windows will be on a "fat" or "ntfs" partition.

En español:
Actualizar a 16.04. Puesto que usted dijo en el chat que usted no tiene todos los datos de esa partición, recomiendo la descarga de la ISO para Ubuntu 16.04LTS, y su instalación, ya sea en un DVD, CD o una memoria USB. Desde que tenía algunas preocupaciones acerca del hardware de AMD, intenta ejecutarlo en vivo, y si funciona, hacer una instalación completa. Asegúrese de que sólo formato a la partición "ext4" y el "intercambio", como su Windows será en una "fat", "fat16", "fat32", o partición "NTFS".


Mdadm seems to have completely forgotten about a device and shrunk my array

The line:

DEVICE /dev/sdb1 /dev/sdc1

means that mdadm will only check those 2 devices to be used as part of a RAID array.

You need to add /dev/sdd1 to that line, or replace it with:

DEVICE partitions

which is the default and will make it scan all partitions for mdadm superblocks.


Wireless problem after suspending my Ubuntu 12.04

Since every time you you start or wake your computer from suspend, the wireless card is turned off... maybe it's just turned off? (That is, either configured to be disabled, or switched off with a "kill switch" on your computer.) Try to look if the wireless light is on.


How to access Windows files from Ubuntu - dual boot

As mchid said in the comments, mount the Windows partition by clicking on it in the file manager or on the launcher.


The reason apparently lies with the BIOS. Something has changed the BIOS... which caused this problem. Fixed via a reflash of the latest BIOS image from the Lenovo's support site under Windows.

I noticed when Windows had the same issue of interrupts taking a lot of CPU, which happened to originate from ACPI.sys

The only thing I installed prior to this happening was the fglrx 11.7 update... IDK if this had anything to do with it, but it's the only thing that I've installed.


I finally got it to work.It WAS the wifi adapter.When i used an ethernet cable to connect my machine to the router the VMs were able to ping the router and connect to the internet.Therefore never use OVS networking over wifi.


Have you installed (As per the symfony docs):

PHP 7.2.5 or higher and these PHP extensions (which are installed and enabled by default in most PHP 7 installations): Ctype, iconv, JSON, PCRE, Session, SimpleXML, and Tokenizer;)
Composer

Then install symfony cli using wget as per symfony docs
Assuming you are in linux logged in as root:
    wget https://get.symfony.com/cli/installer -O - | bash; \
    mv /root/.symfony/bin/symfony /usr/local/bin/symfony; \
    rm -rf /root/.symfony/

Then run symfony check:requirements to check if you meet all the requirements, before running symfony new holaMundo.


It seems that you have a choice to make. You have two devices, one is not even permanently attached to your laptop.
Choice one would be to initiate the bios boot menu, select the drive ,either the internal with Ubuntu or the SSD with Debian.
Your second choice should be to reinstall Grub on your debian system. By pointing grub to the internal disk it will create an entry in your already existing grub menu.
Moving a grub entry is not trivial, so I'd save your bootsection with dd before trying.
Look here Moving grub for more information.


panel encountered a problem while loading "Clock Applet Factory:: ClockApplet

Generally, that's a sign that something is wrong with the applet's configuration. Delete it and re-add it. (That's an entirely un-scientific answer, from my own experience)


Well, depending on your graphics card, I would use OBS.
It's free, and it works on any NVIDIA and INTEL graphics card.
AMD/ATI is not supported sadly.


You can use Evernote In Ubuntu With Everpad.

  Everpad is an Evernote tool that integrates extremely well with Unity.
  It implements a Unity Lens which automatically searches Evernote notes
  through the Dash.1

To install,  just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below:

sudo add-apt-repository ppa:nvbn-rm/ppa
sudo apt-get update && sudo apt-get install everpad

Otherwise, you can install Wine, which allows you to run windows applications.

1Source:Everpad


Ubuntu won't boot after power failure - can't connect to lvmetad

Figured out to sudo fsck /dev/media/media on the now unmounted logical volume, which found a few errors which i let it fix. After this I changed /etc/fstab back to it original and problem was solved.


Byobu cache or restored duplicate sessions

I had exactly the same problem and solved it by updating byobu from PPA.

  byobu 5.125 tmux 2.6 Ubuntu 18.04

I spent a few weeks using workaround (killing the process with tmux ls|grep ^_|...); then I fixed this issue completely by just updating byobu to 5.133:

sudo add-apt-repository ppa:byobu/ppa
sudo apt update
sudo apt install byobu


How fix wireless problem on ubuntu 12.04? Dell Vostro 3750

try the solution taken from this post

If the wireless is stuck as if disabled by hardware (it happens in some laptops when you use the wireless button a lot) and you cannot physically enable it, try in Terminal:

sudo rfkill unblock all && list all


I'm assuming you are using a unmodified SSH configuration.

You are trying to use the same private SSH key with different Ubuntu users. However, the SSH server on the Ubuntu machine will try to find the matching public SSH key in the home directory of the login user only, i.e. 'otheruser' in your case, and you apparently haven't supplied the public SSH key in question there as well.

You can make this work by appending the public SSH key(s) of user 'root' (usually contained in /root/.ssh/authorized_keys) to those of user 'otheruser' (usually contained in /home/otheruser/.ssh/authorized_keys), i.e. in your case you can likely just copy the former to the latter.

Please note that in case your SSH server configuration has been hardened already, there might be additional adjustments needed to enable SSH access for 'otheruser' in the first place (e.g. appending 'otheruser' the AllowUsers directive within /etc/ssh/sshd_config), however, this would be unusual for any default AWS Ubuntu instance.


sudo chown root:root /etc

I would not use recursive flag. Not everything in /etc is root:root

Did you change every ownership inside /etc?


Installation didn't complete and dpkg is now stuck

I finally figured out that openvpn was already running ... I shut it down and ran:

sudo dpkg --configure -a

This time it worked.


How to run a script only during first install of a package and not during upgrades?

Check out this diagram from the Debian wiki about how the maintainer scripts are called:

If you follow down the left hand side (the “everything goes ok” path) you'll see that the postinst script is called with the most-recently configured version.  This gives you a chance to distinguish between an upgrade and a fresh install - in the upgrade case, your postinst will be called like

postinst configure 1.23-0ubuntu1

where 1.23-0ubuntu1 is the previously installed version of your package, whereas for a fresh install it will be called like

postinst configure

This also allows you to handle the case when you need to perform an action when upgrading from a particular version - you can check in the postinst for that version.

This makes it easy to check if the script is being done on an 'install' or an 'upgrade'. If $2 is null, then it's an install. so:

if [ -z "$2" ]; then
  do install stuff
else
  do upgrade stuff
fi


xChm Viewer

Install the xChm Viewer for viewing CHM files:

sudo apt-get install xchm


I wonder if your 64 GB drive is formatted exFAT rather than FAT32. 64 GB and larger capacity oftentimes are. I believe live USB must use FAT32. You should be able to reformat the 64 GB drive to FAT32 using something like Gparted.


Can't bind gnome-do to Super + Space or Ctrl+Alt+Space

This is a combination of two problems:

The super problem is that Unity recently changed to grab the super key entirely - until version 5.6.0 it wolud pass on super keypresses that it didn't use to other applications that had registered bindings, like Do.

The second problem is due to a change in GTK - it's bug #903566 in Do, which is fixed in 0.9 and in Precise.  You can temporarily get a fixed Do from the daily builds PPA.


Not sure if is your case but canonical-livepatch is only instalable on 16.04 LTS.

The website says:

  The service covers standard Canonical 64-bit X86 kernels on 16.04 LTS. It dynamically monitors success rates, enabling us to reduce the risk of live kernel fixes by delivering them to a small initial group and then widening the footprint dynamically based on success.


How to find the name of the package manager?

As far as I remember, there is no way to determine what package manager is used by the system through a command. Usually, the package manager used are system specific and there is no way to use an alternative of that unless they are a front-end or back-end of the package manager.

For example, Ubuntu uses dpkg. Software-center is a graphical front-end of Advanced Packaging Tool (APT), which in turn is a command line front-end of dpkg.

You can take a look at the available features of various package managers at DistroWatch.

Also, to know what package managers are used by various operating system, you can check out the list of software package management systems on Wikipedia.


How can I block ping requests with IPTables?

To deny responses to ping requests..Add the following iptable rule

iptables -A OUTPUT -p icmp -o eth0 -j ACCEPT
iptables -A INPUT -p icmp --icmp-type echo-reply -s 0/0 -i eth0 -j ACCEPT
iptables -A INPUT -p icmp --icmp-type destination-unreachable -s 0/0 -i eth0 -j ACCEPT
iptables -A INPUT -p icmp --icmp-type time-exceeded -s 0/0 -i eth0 -j ACCEPT
iptables -A INPUT -p icmp -i eth0 -j DROP


What video editing programme is capable of placing two videos side by side?

OpenShot

Place clips on two separate tracks.
Right click first video and choose Layout 1/4 Size - Top Left
Right click second video and choose Layout 1/4 Size - Top Right
Right click first video and choose Show All (Maintain Ratio)


your monitor doesn`t suport grubs default resolution

using your favourite editor in sudo open /etc/default/grub
For example gksu gedit /etc/default/grub

uncomment line GRUB_GFXMODE=640x480
set it to your monitor resolution

GRUB_GFXMODE=800x600 is a sufficient and definitely supported by your display

update grub with new setings
sudo update-grub

and vote for the post, as I don't have enough points to vote yet


First reset the repositories by executing the commands below in your Terminal:

sudo echo "deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse" > /etc/apt/sources.list

sudo apt-get update

sudo apt-get install -f

Then go back to the Software Center and perform the task you need.


I had the same problem, upgrading to 15.04 solved it.

Documentation on the process can be found here


How to connect mobile broadband using terminal?

You can connect using the command :

nmcli con up id '<BROADBAND CONNECTION NAME HERE>'

Ex:

nmcli con up id 'BSNL/CellOne New GPRS/3G'

For better output, use the following command :

sleep 10 && nmcli nm wwan on && nmcli con up id 'BSNL/CellOne New GPRS/3G'


How import mysql file to phpmyadmin with terminal

Default command line method to import an exported SQL file:

mysql -u {user} -p {database_to_import_into} < /dir/to/file.sql

The database needs to exists before you do this.


Maybe I did not understood this question, but maybe (again) your problem is with the Insert Key, did you remember of having pushed it, and when its pushed the cursor looks like a big black block on the text editor.


How to check if a value is greater than or equal to another?

if [ $xprintidle -ge 3000 ]; then
  [...stuff...]

Here's a quick explanation:

gt - greater than
ge - greater or equal than
$( ... ) becomes the output of the command inside the parentheses


No Sound after installing Ubuntu 12 along side Windows 8

Ok. This was a false alarm. It turns out that the Beats Audio software on my computer was not working in Ubuntu since there is no Ubuntu version. Hence, when I updated Ubuntu, the local sound card activated and was able to provide me with sound.

As for Windows, the Beats Audio software was installed, but not running and since it controls the sound, the sound card reported to work properly, but there was no sound.

Solution to this problem: If you installed Ubuntu and you don't get sound, "the problem with Ubuntu might be that you are using 3.2 kernel (i.e. 12.04 or 12.04.1). You can upgrade to 12.10 or 12.04.2." as Soroosh129 pointed out above.

For Windows, check to see whether there is a third party application that controls your sound (in my case, it is Beats Audio), and configure it properly.

Thanks to you all for helping out.


How do I migrate Google Chrome bookmarks from XP to Ubuntu?

In Xp, get in to the google chrome bookmarks manager and select export bookmarks as HTML file.
Copy your bookmarks.html file you created to a external memory.

Get in to the Ubuntu Google Chrome, open bookmarks manager and select Import bookmarks from HTML file and load them.

They will be located to the Imported Bookmarks folder in google chrome.

p.s: There is no Program Files folder in Ubuntu.
You should type the below command to the terminal to see the binary files you can run within Ubuntu

sudo $PATH

Installation and execution process is different on Linux Machines.


Executable path /usr/bin/gnome internal error

I typed in a terminal:

sudo apt-get update
sudo apt-get upgrade

I did this because the error didn't appear again. I thought i may try this and it worked.


If there is a Windows operating system on the drive turn off fast startup

Type Control Panel in the search box.
Click Control Panel.
Click Power Options.
Click Choose what the power buttons do.
Click Change settings that are currently unavailable.
Scroll down to Shutdown settings and uncheck Turn on fast startup.
Click Save changes.

If this does not work launch an administrator command prompt and run chkdsk /f and follow the prompts


Ubuntu 15.04 on Windows 10 Hyper-V, hangs on 1st reboot

Had the same issue, Un-checked  "Enable Dynamic Memory" and now it is working fine.