Problem when installing Anki: unmet dependencies

I believe what's happening is dpkg package.deb does not install dependencies automatically. You should be able to read that in your output (see example below.) So after running this line to install your .deb file

sudo dpkg -i anki-2.0.33.deb

You should run this line to install the unmet dependencies

sudo apt-get -f install

The -f option stands for 'fix,' so apt-get will go and download all the unmet dependencies (assuming they are in the apt-get package index.) For more on this, take a look at this answer over on superuser

This was my output when running the files. Notice how in the second block, apt-get is installing the unmet dependencies, one of which is python-sqlalchemy as noted in the other answer. Afterwards, anki works fine.

$ sudo dpkg -i anki-2.0.33.deb
Selecting previously unselected package anki.
(Reading database ... 196396 files and directories currently installed.)
Preparing to unpack anki-2.0.33.deb ...
Unpacking anki (2.0.33) ...
dpkg: dependency problems prevent configuration of anki:
 anki depends on mplayer | mplayer2; however:
  Package mplayer is not installed.
  Package mplayer2 is not installed.
 anki depends on lame; however:
  Package lame is not installed.
 anki depends on python-sqlalchemy; however:
  Package python-sqlalchemy is not installed.

dpkg: error processing package anki (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Errors were encountered while processing:
 anki

Notice how the missing dependencies are the ones being downloaded

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  esound-common lame libaacs0 libaudiofile1 libbluray1 libesd0 libgif4
  libpostproc52 libsdl1.2debian libsvga1 libvdpau1 mplayer python-sqlalchemy
  python-sqlalchemy-ext
Suggested packages:
  libbluray-bdj pulseaudio-esound-compat nvidia-vdpau-driver vdpau-driver
  mplayer-doc netselect fping python-sqlalchemy-doc python-psycopg2
  python-mysqldb python-kinterbasdb python-pymssql
The following NEW packages will be installed:
  esound-common lame libaacs0 libaudiofile1 libbluray1 libesd0 libgif4
  libpostproc52 libsdl1.2debian libsvga1 libvdpau1 mplayer python-sqlalchemy
  python-sqlalchemy-ext
0 upgraded, 14 newly installed, 0 to remove and 10 not upgraded.
1 not fully installed or removed.
Need to get 3,729 kB of archives.
After this operation, 10.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y


Some program to change the bpm of a track?

Actually, you can in Audacity.

Referring from the manual, you can access it by Effect > Change Tempo.


Exhibiting weird behavior from Xfce after installing samba

Deleted the .cache file and all works a-ok.

Logged out of my sessions, did ctrl+alt+F1, the performed the following...

sudo rm -R .cache
sudo restart lightdm

Imediately brought me back to my Xfce session showing everything correctly!


Here the solution Dependency issues . It's this, purge ppa: sudo ppa-purge ppa:libreoffice/ppa . And install the Quantal package on the Precise. You can manually download the correct packages from here:Launchpad
Note, that the package libexttextcat-data is the section quantal i386.
Then choose the correct section (Quantal i386 or Quantal amd64) for the package libexttextcat0.
After downloading those two, open terminal and go to the directory where they are and run this command (be sure there are no other*.deb packages): And install: sudo dpkg -i *.deb. Now reboot


Execute below commands

sudo apt --fix-broken install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install wine

I think this will install wine properly!


You can use Raid 1 for your OS and your data, but raid is not Backup. For your homeserver raid is nice but probably overkill and the second drive will add around 5 watts to your power consumption 24/7.

My advise is to use the 2Gb disk for your system and the 1Gb for backup.

Use LVM for your installation so you can easily add more diskspace later.

For backups you can use rsnapshot.


How do I take a screenshot of the dash, hud, and the application menu?

Launch the Screenshot application and check the 'Grab the whole screen option. More importantly, set a non-zero value (say 5 seconds) for the 'Grab after a delay of ...' option.

Then press the 'Take Screenshot' button and make sure the dash/HUD etc. is enabled when the screenshot is set to be captured (current time + set delay).


since ugrade to 18.04, gstreamer requires a missing library: libiconv

I found a solution. The problem came from a realy bad interaction between gstreamer and anaconda, the environment for python development that I am using.

I totally removed anaconda (https://docs.anaconda.com/anaconda/install/uninstall/) and now gstreamer works correctly.

Weird!

I will now simply use pip to install python packages...


Don't assume your data is safe.  An error in installation can remove all data from your drive.  Back up everything you might want before starting.  My own technique is to use two or three hard drives.  I do the default install of the stable version of Ubuntu onto one drive and the testing version onto another.  The third drive is a backup of my home directory.  I always use the default on the installer to make a clean install to an entire drive.  I do this as soon as the first testing version is available and overwrite the previous stable version.  So far, I've never lost any data.


How to install a package with apt without the "Do you want to continue [Y/n]?" prompt?

sudo apt-get install -y whatever

From the man page (man apt-get):

 -y, --yes, --assume-yes

           Automatic yes to prompts; assume "yes" as answer to all prompts and
           run non-interactively. If an undesirable situation, such as
           changing a held package, trying to install a unauthenticated
           package or removing an essential package occurs then apt-get will
           abort. Configuration Item: APT::Get::Assume-Yes.


Sounds like you may be using a proprietary graphics driver that doesn't support KMS (kernel mode switching). The free ones all do.


How to create partiton between SSD and HDD?

In UBUNTU the ssd will have nvme0n[n1]p[n2] as device name and the hdd will have sd[c1][n2] where [n1] is the hard disk number, [n2] is the partition number, [c1] is a letter indicating the hard disk number. Mind that this is related to a HP Omen. Other systems might have an older ssd version: nvme is a M.2 SSD. That is a newer type of SSD.

Info from my hp omen:

Disk /dev/nvme0n1: 238,5 GiB, 256060514304 bytes, 500118192 sectors
Disk model: SAMSUNG MZVLB256HAHQ-000H1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 413DE1FA-AC03-482C-8B9B-B2829FE8E8DC

Device             Start       End   Sectors   Size Type
/dev/nvme0n1p1      2048   1026047   1024000   500M EFI System
/dev/nvme0n1p2   1026048   1288191    262144   128M Microsoft reserved
/dev/nvme0n1p3   1288192 391913191 390625000 186,3G Microsoft basic data
/dev/nvme0n1p4 391913472 500117503 108204032  51,6G Linux filesystem

Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LM049-2GH1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 4B296F6A-8910-4171-AE4A-944F8365F976

All windows partitions will have a label saying it is windows.

  I created a partition in windows in "Disk 1" which had Data D(931gb) and a recovery mode(12gb). But it dosen't say whether partiton was created in Hdd or SSD.

That is seen from windows so off topic. But the 931Gb will be the hdd (since the ssd is only 128Gb).

If you want to have the quickest boot: make spare space of 20Gb on the ssd for / including home. Make a partition on the hdd. Mount it with a name and use that to store your files.


Minecraft icon not showing properly in launcher?

I think, actually, this needs to be an answer. Tell me if I'm wrong.

The Minecraft icon has no circle and isn't flat because that's not the way the icon was made. The rest of the icons are part of the Numix set, which has specially made icons for most programs on Ubuntu. Not everything is going to conform with your theme, since the theme makers can't possibly make a special icon for every app out there.

If you really want it to conform with the rest of your icons, you're going to have to edit the icon manually, with GIMP or PhotoShop, to put a circle around it and flatten out the colors.


How do I install older version of groovy in my linux machine - groovy 1.8.6?

I did not find groovy 1.8.6 in the default apt repos.
Unless you find a repo that supports it, you should do it by hand.
The problem is that 1.8.6 is very old and I did not find the files even at the apache groovy site.
Some of the jars are available here e.g. you can donwload the groovy-all jar.
With that you should be able to run any compiled classes adding this to your classpath.
Set the JAVA_HOME to some proper version of java, I guess I would try a Java 6 or 7.
Otherwise recompile your sources, if you have them, with a newer version of groovy. That might need some fixing of the code.


Update Manager fails to check for updates

There is a typo in the PPA location ('pp' instead of 'ppa').

To fix this:

Press Alt + F2 and type gksu software-properties-gtk (press Enter)
After typing in your password, go to the Other Software tab and find the two entries that correspond to the error you posted.

[Just an example of how the GUI should look like, I don't have that PPA installed.]
Select each item, click on the Edit... button and fix the typo. The address should be

http://ppa.launchpad.net/weather-indicator-team/ppa/ubuntu

for both entries.

Close and try the Update Manager again.


Changing permissions for folders and files in /var/www/?

Make sure the group is www-data on '/var/www'

sudo chgrp www-data /var/www

Make '/var/www' writable for the group

sudo chmod 775 /var/www

Set the GID for www-data for all sub-folders

sudo chmod g+s /var/www

Your directory should look like this on an ls -l output.

  drwxrwsr-x

Last, add your username to the www-data group (secondary group)

sudo usermod -a -G www-data [YOURUSERNAME]


Does seeding torrents affect the harddisk RAM caching?

It will depend exactly which torrent program you're using. Some of them might behave in different ways.

But yes, it is possible to bypass system cache since this is a common problem.

If you're comfortable editing source (perhaps this should be on another StackExchange..) find where the torrent program opens the file from disk. Most likely an open() call. If it is fdopen() then it's using stdlib and I'm not sure stdlib supports direct i/o.

This system call takes up to three arguments, the first one is the filename, the second are flags, the third is an optional file create mask. The flags will probably be something like O_RDWR at the moment. The flag for "don't use system cache" is O_DIRECT, and you combine flags by separating them with |.

So the result of the flags argument in this case would be O_RDWR | O_DIRECT. Just add the new flag on.

For more information, see

man 2 open


After upgrade Ubuntu 20.04 to Ubuntu 20.10 my laptop keyboard and mouse are not working

using Linux Kernel v5.4 instead of 5.8 seems to fix the issue for me.
joseph@joseph-X541UJ:~$ uname -r
5.4.0-52-generic

edit
I've installed Kernel 5.8.16 and yes the keyboard and touch mouse works very well.
joseph@joseph-X541UJ:~$ uname -r
5.8.16-050816-generic

edit
I recommend anyone facing the same issue to mark that on launchpad bug link, so it can draw more attention from developers.


Command for taking all files in sub directories and putting them in parent directory

Call me old-fashioned, but I'm usually using Midnight Commander for this :) You can install it using

sudo apt-get install mc

then start it by typing

mc

then hit Esc, Ctrl-?, enter your search criteria, click [ Panelize ] button - voila, you can do anything you want with your files - copy, move, delete... the nice thing about using mc is that you can review the list of files and manually select only some of them... i.e. sort the result by size and delete only the 10 largest files, for example, or select files by size so they fit on a CD as close as possible, etc.


Problem installing Grub Customizer in Lubuntu

Simply type grub-customizer in a terminal. It will ask for your sudo password. It should run once you type that in.


Touchpad Two-finger Scroll Configuration

I have dell vostro and although the mouse settings lets me enable two-finger scrolling. It didnot work. I asked twice about this and got to this workaround.

Vostro 3400 touchpad multiple gesture and two finger scrolling not working

https://askubuntu.com/questions/33877/two-finger-scrolling-not-working

I added the following line to /etc/profile and now it works. May be you could try that.

xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 32 40


How to Disable touchpad while typing on Aspire One

on my lap-top I just go to the System > Prefrences > Mouse and under the Touchpad tab make sure Disable touhpad while typing is checked... after that it automatically disable the touchpad whenever I am typing... pretty cool if you ask me...


How to clone Ubuntu 13.04 and boot - "mbr error 1 press any key to boot from floppy"

How accurately do you need to clone your installation?  Maybe you can save the
selection state of the source, using 'dpkg --get-selection', install a
stock 13.04 on the new systems, and run 'dpkg --set-selection; dselect update' or
something like that on the new systems.  Here is an article which can help you
more than I can.


I eventually resolved it by uninstalling Skype and then not going to the Ubuntu Store but to the Skype website and download and install Skype from there. Now I have it working without any problems!


mount point for windows after setting ubuntu to `/`

Either of these will work perfectly fine. The differences only affect the path to the folders and files in that partition.

As an example, if you wanted to open a file on the Windows partition called file.txt, with /dos as the mountpoint the path would be /dos/file.txt. Using /windows would make the path /windows/file.txt.


multi-boot Win and Ubuntu - reserve primary or 2ndary partition?

The installation of Windows should precede the installation of Ubuntu in time

The order in the partition table or position on the disk makes no difference except that Windows wants primary partitions as already explained by Android Dev.

Ubuntu can be installed in a logical root partition an a logical swap partition inside an extended partition. These partitions can be created at any time (also after installing Windows).

Finally: Windows XP needs an MSDOS partition table, which means max 4 primary partitions or 3 primary partitions and one extended partition (with several logical partitions inside). And remember that XP no longer receives any security updates, so please avoid connecting it to the internet.


How can I install AMD ATI Catalyst Display Driver In Ubuntu 13.10 64bit?

You can't very easily. AMD hasn't updated the drivers for  the AMD Radeon™ HD 4000, HD 3000 and HD 2000 Series  they only support up to xserver 1.12 and the kernel up to 3.4.  Ubuntu 13.10 is using (at the time of writing on a freshly upgraded system) Xserver 1.14 and kernel 3.11.  The last supported version of ubuntu is the 12.04 LTS (without the Quantal packages! get 12.04 not 12.04.2 or .3)  Some people have had lucking using this repo (https://launchpad.net/~makson96/+archive/fglrx) with a modified driver and downgraded xserver on 12.04.2 12.10 and 13.04 but not yet with 13.10. Check back later and maybe they'll have got 13.10 working. But even if they have it may not work for you, it doesn't work for everyone!


Why does Firefox freeze and stop my computer?

Try this -
close firefox, open shell and write:

cd ~/.mozilla/firefox/YOUR_FIREFOX_PROFILE

mv places.sqlite places.sqlite.bak && mv webappsstore.sqlite webappsstore.sqlite.bak && mv favicons.sqlite favicons.sqlite.bak

This will delete/backup all your profile's history and web storage including cookies and web icons.

Remove any unwanted or new addons that have been added just before the the problems occur.

Restart firefox

EDIT: if it's still freezes ,sluggish or hangs I recommend to removing your current firefox installation: sudo apt remove firefox (it keeps the profile intact)

update to the latest build directly from mozilla's official PPA:

sudo add-apt-repository ppa:mozillateam/firefox-next
sudo apt upgrade

Install latest firefox build: sudo apt install firefox
then run it firefox (without sudo)
When the Icon appears on menu-bar right click and select Add to Favorites then you can run it directly using the UI.

Good luck


Did not install rEFIt, can't boot back into OSX El Capitain Ubuntu 15.10

Commonly if you don’t install refit/refind you can always boot OSX  in the way you described.

The icon you see indicates that the bootloader cannot  find / boot OSX
probably files or partition have been wiped / damaged

Does the HFS file system even seem to be there if you check in Linux?
try booting from a OSX Install stick to see if it even detects the contents of your OSX partitions or just do a repair / install from there.


Ubuntu 18.04 detects WiFi but gives connection error when trying to connect, please help!

I've googled and found this:
ubuntuforums

You've got a driver that is not supported by Ubuntu by default. Try to follow their advice. Some companies such as Realtek or Broadcom do not have open drivers. Some have been reversed engineered, some may run with a ndis wrapper. (Look it up). Good luck!


You can check the changes in the file relative to your connection, on:

/etc/NetworkManager/system-connections/

probably

/etc/NetworkManager/system-connections/Gauri_1.nmconnection

If you want to change the MAC of the interface:

$ ifconfig <interface-name> down
$ ifconfig <interface-name> hw ether XX:XX:XX:XX:XX:XX
$ ifconfig <interface-name> up

Or if you want to change the 'Cloned Address' option (better approach imho):

$ nmcli c down "Gauri_1"
$ nmcli c modify "Gauri_1" wifi.cloned-mac-address XX:XX:XX:XX:XX:XX
$ nmcli c up "Gauri_1"

Changing the 'Cloned MAC Address' is usually a better option then changing the interface MAC address directly, depending on your network card it can be blocked.


Missing readline library when using make

Did you run ./autogen.sh as described by the manual?


Check my answer here

Also before trying my answer out, change the Boot Mode in your BIOS to "CSM" or "Legacy" instead of "UEFI" and try again.


Black border in all menus and black terminal after installing Katoolin

I solved the problem by removing xserver-xorg-video-intel
using the command:

sudo apt-get remove xserver-xorg-video-intel


How to deactivate all the desktop effects of KDE permanently?

Head to

System Settings > Hardware > Display and Monitor > Compositor

Remove ✔ mark from Enable compositor on startup

When this is done, make reboot.


Tried to follow the EC2 Juju guide and it fails

The issue is the identity/account you're using doesn't have access to the s3 bucket that's configured as the control bucket. You can try changing the bucket to something unique. The s3 bucket names must be globally unique (not owned by another account). Alternatively your IAM account may not have read/write access to S3.


Lose Internet after my computer goes to sleep

It looks like your ethernet driver does not work after suspending your machine. You can tell Ubuntu to unload it before suspend and load it again after resuming your computer. To do so, you must create a file /etc/pm/config.d/unload_modules and put in it the next entry:

SUSPEND_MODULES="your_module_name_here"

where your_module_name_here must be the name of the driver. You can find it using network manager.

Hope it helps

Ignacio


If the ifdown+ifup approach isn't working, try:

sudo ifdown <network interface> && sudo ip addr flush <network interface> && sudo ifup <network interface>


Unable to SU with root: `/bin/bash: permission denied`

Change the permission of these folders like this and now you can su to another user.

chmod 755 /
chmod 755 /bin
chmod 755 /lib


Quickly Glade Button link to external program

The OP solved the problem(see above comment) by import os, in which case os.system(program) may be used.


Dual-boot Ubuntu 14.04 - Win8.1 (Can't boot Windows when UEFI mode is turned on)

Don't do anything: apparently your Windows isn't installed in UEFI mode.
(This is the first time on this site I've told someone to not do anything!)
:-)


An i7 actaully has 4 cores, but each core has two hyperthreads (which means it can switch between two tasks really quickly). To the OS it looks like 8 cores, so the distinction is probably not relevant here. Sorry. :-)

OK, so the operating system can use the i7 to effectively do 8 things at once. But that assumes that it has 8 things at the one time to do. If it only has one thing to do, then it will only use 1 core.

This is where threading comes in to play. Programs can be written to use threads - GIMP and ImageMagick are two programs I know that do this. When they have a complicated task to do, they split to work up and execute it in different threads, which the OS assigns to different cores. Try setting ImageMagick to work on processing a really large JPEG, and you will see all 8 cores get busy.

Now, I am not sure if gedit is multithreaded or not - but even if it is, the main work when opening a 70M file is processing the disk interrupts as the file is loaded, and I think that work gets restricted to one core.

What can you do about it? Just get busy, multi task, have your computer do lots of things at once, then the load will be spread out over the cores.


When you boot into the LiveOS from a USB stick, your system is being "loaded into RAM" (it's actually a layering of RAM over USB with the USB being read-only and file system changes being reflected in RAM). The space that you have available to you is not dependent upon how large the USB stick is but rather how much RAM you have in your computer. All changes made to the LiveOS are made in RAM, not on the USB stick. It sounds like that by attempting to install applications, you're filling up the temporary file system (or rather the file system layer) that has been created for you in RAM.


There is a way to patch AMD catalyst 14.12 in order to make it work with kernel 4.0.1?

I've had problems with catalyst drivers when I upgraded to 15.04 (3.19.0-16-generic)

I suggest you remove the drivers using sudo apt-get purge fglrx, reboot and reinstall the drivers available on repository using sudo apt-get install fglrx or sudo apt-get install fglrx-updates

more information, please check on this wiki:

http://wiki.cchtml.com/index.php/Main_Page


How to install Ubuntu 19.04 live server on Hyper-V VM?

I actually got 19.04 installed on Hyper-V Gen 2 VM.
I used a 754MiB ubuntu-19.04-server-amd64.iso from "Alternate download options" instead of the normal 748MiB ubuntu-19.04-live-server-amd64.iso image.
I don't know what's the difference between "live-server" image and "server" image and anyway, the "server" image works.


I had the same issues and almost identical setup. Switching from MS Windows world to Linux, I installed Ubuntu Desktop 18.04.40 LTS a few days ago.
Language is set to 'English (United States)'. Keyboard is set to 'English US'. My physical keyboard is a Logitech 'US international keyboard'.

I couldn't use my [Alt] key with numeric code anymoe and was stuck until I found the Tweaks app. Tweaks should help you. I set the the Compose key to 'Left Control'. That did it. German Umlaute and Spanish special characters can be typed now.

Hope that helps.


As Allan suggests, some more info would be helpful, but I'll post some suggestions here, as I can't "comment" at the moment.

Have you definitely set the CD drive higher than the HDD in the BIOS boot settings?
Can you boot a different CD?
If the CD is booting, but crashing with some form of kernel panic, you can try the various options in the CD menu (like ACPI=off, which is needed on some models of laptop, such as the Toshiba Satellite)


Will installing ROS on 14.10 destroy my X server?

It's suggesting you install Utopic-level packages over Trusty (which Trusty allows through its HWE stacks). You're already on Utopic so you don't need to do what it's saying at all. It likely won't be able to find many of those packages.

But Utopic is dead and not getting security updates. If I were you, I'd upgrade to Vivid before doing anything and then install. ROS has a repo targeting Vivid too.


How to set an application to open in a certain position on the screen?

you can just fire up ccsm and go to place windows > fixed windows placement


Creating a bootable usb or cd with Windows from Ubuntu

You can try Unetbootin for usb's. They generally work!

Or, you can check here to do CD/DVD's:
http://howtoubuntu.org/how-to-burn-an-iso-to-a-cd-or-dvd-in-ubuntu

Hope this helps!


How can I compare two directories recursively and check if one of the directories contains the other?

#!/bin/bash

# cmp_dir - program to compare two directories

# Check for required arguments
if [ $# -ne 2 ]; then
  echo "usage: $0 directory_1 directory_2" 1>&2
  exit 1
fi

# Make sure both arguments are directories
if [ ! -d "$1" ]; then
  echo "$1 is not a directory!" 1>&2
  exit 1
fi

if [ ! -d "$2" ]; then
  echo "$2 is not a directory!" 1>&2
  exit 1
fi

# Process each file in directory_1, comparing it to directory_2
missing=0
while IFS= read -r -d $'\0' filename
do
  fn=${filename#$1}
  if [ ! -f "$2/$fn" ]; then
      echo "$fn is missing from $2"
      missing=$((missing + 1))
  fi
done < <(find "$1" -type f -print0)

echo "$missing files missing"

Note that I have added double-quotes around $1 and $2 at various places above to protect them shell expansion.  Without the double-quotes, directory names with spaces or other difficult characters would cause errors.

The key loop now reads:

while IFS= read -r -d $'\0' filename
do
  fn=${filename#$1}
  if [ ! -f "$2/$fn" ]; then
      echo "$fn is missing from $2"
      missing=$((missing + 1))
  fi
done < <(find "$1" -type f -print0)

This uses find to recursively dive into directory $1 and find file names.  The construction while IFS= read -r -d $'\0' filename; do .... done < <(find "$1" -type f -print0) is safe against all file names.

basename is no longer used because we are looking at files within subdirectories and we need to keep the subdirectories.  So, in place of the call to basename, the line fn=${filename#$1} is used.  This just removes from filename the prefix containing directory $1.

Problem 2

Suppose that we match files by name but regardless of directory.  In other words, if the first directory contains a file a/b/c/some.txt, we will consider it present in the second directory if file some.txt exists in any subdirectory of the second directory.  To do this replace the loop above with:

while IFS= read -r -d $'\0' filename
do
  fn=$(basename "$filename")
  if ! find "$2" -name "$fn" | grep -q . ; then
      echo "$fn is missing from $2"
      missing=$((missing + 1))
  fi
done < <(find "$1" -type f -print0)


Register on Launchpad like txwikinger said, then you need to generate a GPG key

gpg --gen-key

and upload it to Ubuntu's keyserver

gpg --keyserver keyserver.ubuntu.com --publish-keys $KEYID

Replacing $KEYID with the number after the slash on the "sec" line of:

gpg -K --fingerprint

Click the green + next to the GPG key part of your profile, and give it the key fingerprint from the earlier command.  You'll receive an encrypted email.  Decrypt it (setup your GPG key in your mail client to make this easier), then click the link inside to verify that you own the key.

Click on your launchpad.net page to create a new PPA

Follow the packaging guides Source Lab linked, but unlike what Txwikinger said, you will not upload a deb.  That's because a deb is a binary package, and PPAs take source packages.  After you've got the 4 necessary files (/debian/rules /debian/changelog /debian/control and /debian/copyright) in your source directory and an original tarball of the source outside it, run

debuild -S -sa

A source package will be generated consisting of a .debian.tar.gz (if using source format 3.0) or .diff.tar.gz along with a .dsc and a .changes file.  The .dsc and .changes will need to be signed, so you will need to enter your GPG passphrase twice.  The -sa is only needed the first time you upload that package to the PPA.  Later revisions, you can live it off.

Then you will run:

dput ppa:youruser/ppa *.changes

Obviously filling in your own username, and if you chose a custom name for the PPA, put that after the slash.  The PPA's page on Launchpad will tell you the exact ppa: syntax.


I am unable to install Google chrome via Ubuntu software centre

You are getting this error because a package the Google Chrome depends on to run is not installed. Run sudo apt-get install -f to fix this. You should then be able to run Google Chrome.


At your login screen, click the little cog wheel icon, and switch to gnome on xorg, and Synaptic (and some other apps) will now launch without difficulty. It's a Wayland problem.


Cannot update Ubuntu 14.04 : apt-get issues

I am facing with same problem. From the errors you can see that you are using the Ubuntu Server in India. Change the update server to something other than India.
Go to Setting > Software & update --- under Ubuntu Software tab, find the drop-down list to choose the server for downloading updates from. Choose main server.

See this:


Is it possible to start an additional X server after the system boots in 12.04?

Yes, it is possible. I do it for games.

xinit session -- :1 -xf86config config.conf

Where session should be replaced by the session you'd like to start in the new Xorg display, and config.conf is the configuration file.

For starting it automatically, take a look at this answer.


Using command "chage" for everyone in the group group

I don't think there's a one-shot command to do this, so you would need to extract the list of members from the groups database and loop over it - exactly how you choose to do that is up to you but for example
#!/bin/bash

group='group'
mindays=28

IFS=, read -a members < <(getent group "$group" | cut -d: -f4)

for logname in "${members[@]}"; do
  echo chage -m "$mindays" "$logname"
done

(remove the echo once you are satisfied that it will do the right thing).


how to disable workspace higlighter popup during switching workspace

Install compizconfig-settings-manager. Open it up, (command ccsm), go to Desktop Wall plugin > disable Show Viewport Switcher Preview


Kubuntu installation stuck at 48% downloading packages

It turns the PC came with 2 antennas to be screwed into the back of the PC. Without them, WiFi access is really wonky - that was causing the problem.


Error 5 Input/Output error during installtion through USB

I can barely follow your full question, so I'll just answer the "Input/Output error during install through USB", assuming it's a USB input/output error.

If you could post the exact error messages (should be some in /var/log/syslog or dmesg, maybe even with lsblk to see which drive is which) that would help show if it's USB errors or HD errors.

I get those occasionally with flash drives & card readers, sometimes a different USB port helps, or a different wire, hub, or card reader. And sometimes the USB device itself just starts "going bad," or doesn't get along with the other USB parts.

For installing Ubuntu, if you booted with the toram option (in the grub boot menu, F6 I think brings up the "other options" menu & lets you manually edit the startup line) that would copy the whole Ubuntu iso into ram at startup, so if it can successfully do that you could unmount & unplug the USB after booting and really see if the IO errors are caused by something else.

Or if you can't boot with toram & get too many IO errors, that points to a USB/hardware problem.

Tried the USB on a different computer? Is it bad there, hence a bad USB drive?
If the USB is good, then maybe the HD is giving the errors, and probably failing?
Use a cd/dvd to install Ubuntu?


How to remove space between application and workspace switcher on Unity launcher?

I was having the same problem. My launcher seemed to be under the impression that there were numerous icons between the last icon on the list and the workspace switcher, which caused it to take up a ridiculous amount of vertical space. I right clicked on the blank space and alternately checked "Lock to Launcher" about 20 times and that seemed to do the trick.

I hope you understand what I'm saying and I hope it helps.


Systemd error after upgrading from 18.04 to 18.10

Yep, it seems the issue in systemd or virtualbox, however i got reproduced it only with virtualbox-5.2.20.

I didn't face any problem with systemd by installing VB from Ubuntu cosmic repo:
5.2.18_Ubuntu r123745.

P.S. Solved on Ubuntu 18.10


Installing non-pae ubuntu from USB-stick without network

You could customise the bootable image. There's a instruction on the Ubuntu website.

Note: For this you need a Ubuntu that's already set up (or in a virtual machine). And you need to know exactly which packages to install. Don't you have some LAN cable you can plug in? When you're using WiFi, there must be a router. And most routers do have LAN connectors.


Can telnet to localhost but cannot telnet to my LAN IP

It is probably only listening on localhost. Run sudo netstat -tulpn|grep ':9000'. If the line that comes up says something like 127.0.0.1:9000 then that means I'm correct, in which case you need to modify some sort of a bind-address or listen-address parameter.


How to remove a third party software that is installed but cannot be located?

Try thissudo apt-get autoremove nero you may have to replace "nero" with the correct package name.

OR You can try synaptic package manager sudo apt-get install synaptic start it from dash an search "nero"

Good luck


If you choose New Ubuntu install, it will install the whole system in two-partitions (/ and swap). At this case, you will not have problems with disk-space, but you are subject to userdata loss, in the case of problems with this partition.

Otherwise, it's a better practice to make a customized install (Something else option). I suggest you to reserve

20Gb for root (/);
2Gb for swap
The remaining space for /home.

In my case, I like to store work stuff at /opt, as I assigned my fourth partition.


Opening multiple terminal tabs and running command

I would recommend using tmux with tmuxinator, it will does the job for you, and you can rely on terminator layouts too!

For terminator layout checkout mhnagaoka's answer here askubuntu too:

  After setting up your layout, right-click on any terminal background and choose Preferences → Layouts tab and click on
  Add button.
  Give it a name and hit Close.
  This should create the mentioned ~/.config/terminator/config file.
  Now you can start terminator using the saved layout using: terminator -l yourLayout (replace yourLayout with whatever you
  chose on step 2).
  (optional) Edit the ~/.config/terminator/config file so that where it says [layouts] and nested below it [[yourLayout]], rename
  yourLayout to default and remove/rename the previous default layout. Now, when Terminator starts without any parameters, it will
  load your custom [[default]] layout!


Can I use Ubuntu 20.4 with 1.9GHz processor?

According to the Help Site, that 2GB of RAM will not be fun.
Minimum Requirements for Ubuntu 20.04 LTS:

2 GHz dual core processor
4 GiB RAM (system memory)
25 GB of hard-drive space (or USB stick, memory card or external drive but consider a LiveCD for an alternative approach)
VGA capable of 1024x768 screen resolution
Either a CD/DVD drive or a USB port for the installer media
Internet access is helpful

You may want to take a look at Xubuntu, which is a flavour of Ubuntu that uses the XFCE desktop rather than Gnome.
Minimum Requirements for Xubuntu 20.04 LTS:

a 1.5Ghz Dual Core processor
2 GB of memory
20 GB of storage space

Alternatively, there's Ubuntu MATE, which is an excellent distribution for a lot of people.
Minimum Requirements for Ubuntu MATE 20.04 LTS:

a 1GHz Pentium M (or similar) CPU
1GB of RAM
8GB of storage

There are many other low-requirement versions of Ubuntu (and other Linux distributions) available to suit just about any use case you might have.
Hope this helps,


How can I prevent VirtualBox from changing the permissions on the .vbox File?

Here's some conjecture based on the VirtualBox Special Image Write Modes documentation and particularly the warning for sharable hard disk images:

  Warning This is an expert feature, and misuse can lead to data loss -- regular filesystems are not prepared to handle simultaneous changes by several parties.

I'm guessing the mode changing is done to make accidental sharing of an image less likely. It should be obvious that chaos would reign if you were to both run the VM at the same time, and changing permissions seems like a cheap-and-easy way to make that less likely to happen my accident.

This does make me wonder what benefit of sharing a VM you are hoping to realize. Why would cloning the base image and using host (not guest) storage for user data files not satisfy? Yes, I know that a Windows installation is absurdly large for compared to an equivalent Ubuntu installation, but you might be trying to out-clever yourself on this one.

Is this even an answer? You decide.


Virtualbox Ubuntu 20 wont achieve max resolution

AHHHHHHHHHHHHHHHHHH
So this problem has been haunting me for the last two freaking days and I just figured it out.
It turns out that I simply needed to allocate more video memory to the machine for a higher resolution. Thats it.
Image of VM Settings
I'll leave this up in case someone else is also struggling later on.


Error when updating Ubuntu Server to new version

Check if you have enough space on your disk:

  gzip: stdout: No space left on device

One way to do this would be to remove old kernels:

Is it safe to delete the old kernels from menu.lst?


What is the best way to install Gnome 3.16 on Ubuntu 14.04

The latest Gnome 3 you can get on 14.04 is 3.14. In order to do that, you should add staging and testing ppa:

sudo add-apt-repository ppa:gnome3-team/gnome3-staging
sudo add-apt-repository ppa:ricotz/testing
sudo apt-get update
sudo apt-get install gnome


How to migrate from Ubuntu 19.04 to 20.10?

You missed the boat, sorry.
There is no tested upgrade path from 19.04 to 20.04 nor to 20.10.
The upgrade window for 19.04 to 19.10 closed in July 2020.
The supported, recommended, safe, easy way is to create a new 20.04 or 20.10 install USB and clean-install.
The unsupported, untested, blaze-your-own-trail way is to manually change your sources, then run a dist-upgrade. However, we don't provide support for it: If you run into problems, we will merely recommend a clean-install.

19.04 stopped receiving security patches in January 2020. That alone is reason enough to clean-reinstall.


How do I get my script to run BEFORE any shutdown sequence like unmounting my external drive

Credit to this posted answer

First, I don't know why upstart works at all since Ubuntu 15.10 should be using systemd instead.  So I used systemd to solve my problem.

I create a systemd "unit" called backup.service

[Unit]
Description=Backup script
DefaultDependencies=no
RequiresMountsFor=/mnt/D21EF5DA1EF5B795 /home /media/external
Before=shutdown.target reboot.target halt.target

[Service]
ExecStart=/bin/bash /home/deanresin/scripts/backup.sh start
Type=oneshot

[Install]
WantedBy=multi-user.target

RequiresMountsFor ensures those hard drives remain mounted before and during the script.  Before=shutdown.target reboot.target halt.target is the hook that will call the backup script.

Put the backup.service file in /etc/systemd/system and sudo chmod u+x /etc/systemd/system/backup.service to make it executable.

Now enable the backup.service by systemctl enable backup.service

And voila!  The backup script "backup.sh" should be called at restart,shutdown or halt and executed before the specified drives are unmounted.


How to use a compressed ramdisk (ramzswap)? Huge speed gain

Update: In Natty it doesn't work that way.See this question.

I'll answer my question myself, but for now just for Lucid (10.04) since that's what I'm on right now. The speed gains are really astonishing. Whenever ram became scarce on my system (2 GB, shared graphics, some programs in background, big chromium session) my laptop started to swap often. Just that swapping usually meant near complete standstill (mouse stutters, greyed out apps etc). vm.swappiness is at 100 so swap is used before it's too late, but stil I had minute long waits till the laptop responded again.

tl;dr: When the PC starts swapping the speed stays the same. Nice!

To try it: do sudo modprobe ramzswap disksize_kb=524288 memlimit_kb=196608
This creates a 512 MB compressed swap with a limit on used ram of 192 MB. Note that the ram will only be eaten when the swapfile is actually used. Do sudo swapon /dev/ramzswap0 to enable it. Open several tabs or several ram heavy apps (OOo, gimp, blender) and watch free -m and sudo swapon -s. Your ramzswap should show up and get filled at no noticable speedloss.

To enable it permanently: do sudo nano /etc/initramfs-tools/initramfs.conf and search for COMPCACHE_SIZE="" and replace it with COMPCACHE_SIZE="512 M" or whatever size of uncompressed swap you wish to have. For example "30 %" is also possible.
Profit.

I didn't find a way to enable compcache/ramzswap in /etc/fstab which is strange.


Upgrade from 14.04 to 16.04.1 no desktop or network

I wonder if you have more than one screen for your desktop?  I do and seem to face these sorts of issues every time I install a new release...

I faced similar issues, but not the network ones... basically Unity had to be started after a basic X restart to give me a usable system (otherwise I only had a wallpaper and a mouse cursor!).

My recipe to fix this was to CTRLaltf1 to give me a TTY screen with command line where I can logon.  Then a simple startx unity will get X started and gives me a basic, but unsatisfactory system.  So <CTRL> C from the X terminal to leave that and you should fall back to the TTY terminal.

Follow that with sudo service lightdm start and I was good to go.  Next use CTRLaltf7 to return from tty screen to my Unity session.

Liberal use of the "Suspend" function might stop this being too much of a pain, because it is far from ideal, more a workaround than a solution.  Also, and I cannot explain this, it will not always work for me - seems to work about 3 times out of four.  Another shortcoming is that with this desktop I'm unable to drag anything onto it, nor does Rubbish bin or any mounted drive show up there.

I was going to make my own post asking how I can get boot to incorporate the starting of unity and subsequent service start, but this was so close to my symptoms I thought I would share - hopefully it works for you?

Even more hopefully someone with a deeper understanding of X and lightdm screenmanager can identify a way forward for a proper solution which might make its way into updates soon!


Try using f10 instead of f12, there will be advanced options for your computer, in the advanced pane, you can change the boot order, or you can also sometimes press esc to change the boot order.

Some computer start-up procedures are different so f10 may not work, that is why I listed the other possibilities.


Python is a pretty core package, a lot of things depend on it (including much of the GUI). You can re-install the Ubuntu GUI using:

sudo apt-get install ubuntu-desktop

if you problems with Python versions, it's best to leave the system Python alone and use virtualenvs.


Samba 2:3.6.25-0ubuntu0.12.04.2 error after 19 update

We have the same problem. The only workaround is matener we thought the old samba packages where our DOMAIN worked properly. To do reinstall the following packages that were updated:

These are the packages that were automatically updated.

Start-Date: 2016-04-19  06:42:23
Upgrade: smbclient:amd64 (3.6.3-2ubuntu2.17, 3.6.25-0ubuntu0.12.04.2), libwbclient0:amd64 (3.6.3-2ubuntu2.17, 3.6.25-0ubuntu0.12.04.2), samba-common:amd64 (3.6.3-2ubuntu2.17, 3.6.25-0ubuntu0.12.04.2), samba-doc:amd64 (3.6.3-2ubuntu2.17, 3.6.25-0ubuntu0.12.04.2), samba:amd64 (3.6.3-2ubuntu2.17, 3.6.25-0ubuntu0.12.04.2), samba-common-bin:amd64 (3.6.3-2ubuntu2.17, 3.6.25-0ubuntu0.12.04.2)
End-Date: 2016-04-19  06:42:38

Reinstalling previous packages.

sudo apt-get install samba=2:3.6.3-2ubuntu2 samba-common=2:3.6.3-2ubuntu2 smbclient=2:3.6.3-2ubuntu2 samba-common-bin=2:3.6.3-2ubuntu2 samba-doc=2:3.6.3-2ubuntu2 libwbclient0=2:3.6.3-2ubuntu2

Also I disable automatic updates of ubuntu server.

sudo dpkg-reconfigure -plow unattended-upgrades

Thus leaving the following configuration file:

cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";

Another way to avoid updating samba is blocking packages when upgrading other packages on the server.

Paolo Dávila


Good tutorial on grep, sort, unique and tools like that

An old Unix spell book called,Unix Text Processing that is still useful today, even on Ubuntu,
is available here; http://oreilly.com/openbook/utp/ download PDF, open with Evince, read and enjoy!

grep on page 301, uniq on page 323

Text Processing in Linux should also be helpful, http://www.brezeale.com/technical_notes/text_processing.shtml


Bash, convert a path contains * to string without expansion

$dataPath, on which parameter expansion is performed, is not quoted. Enclose it in double quotes as "$dataPath":
python main.py --data-path "$dataPath"

When parameter expansion and other expansions triggered by $ (or `) occur unquoted, word splitting and globbing are performed on the result. Only rarely would you actually want those things to happen.
Word splitting, also called field splitting, splits up the results of an expansion to be passed as multiple arguments. By default it splits on whitespace. (This is controlled by the special IFS shell variable.)
Globbing, which is also called filename expansion or pathname expansion, treats the character *, ?, and [ specially. If any such character appears, the text is treated as a pattern representing any number of filenames, and the shell attempts to expand it to a list of such filenames. This also can--and often does--generate multiple arguments, one per filename.
You intend the * characters to be treated specially, but by your Python program, not the shell. Since $dataPath expands to them, you must quote it with double quotes to protect the * characters from triggering an expansion by the shell, so that they are passed literally to your Python program.
When you run python main.py --data-path "/path/to/**/*.json", that's what you're doing, which is why that works. You could also use single quotes in place of double quotes there. In python main.py --data-path "$dataPath", you must use double quotes, since single quotes are too strong: they would prevent parameter expansion too, and the literal text $dataPath would be passed to your Python program.
Finally, note that you do not need to enable the globstar shell option for this to work. Although your pattern is a recursive glob (it uses ** to match arbitrarily many path components), the goal here is for your Python program, not the shell, to expand that pattern. The way your Python program will treat the pattern is unaffected by what shell options are enabled in the shell you use to execute the Python interpreter.


Question regarding video card support / monitor resolution

Run the following in a terminal:

sudo nano /etc/default/grub

Find the GRUB_CMDLINE_LINUX_DEFAULT line anc change it so it looks like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.modeset=0"

Hit Ctrl+O then Enter to save and Ctrl+X to exit. Now run in the terminal:

sudo update-grub

The radeon.modeset=0 paremeter will be now automatically appended to the kernel during boot time. Reboot and see.


How to set user account to auto-login in Ubuntu 16.04 server

Go to system settings (in the drop down menu at the top right corner), then choose 'User accounts', select the user. Then click on 'unlock', enter your password and set the switch 'Automatic Login' to on.


You can re-install Chrome by running:

sudo apt-get install --reinstall google-chrome-stable


Enable Parcellite indicator in Ubuntu 12.04

In the latest releases Parcellite claims to support Unity. Debian packages without an application indicator are available from the project's home page. There we also have an announcement for a ppa that is supposed to contain the application indiciator once it is populated.

Alterantively you may install its fork ClipIt  instead.

In case you do for any reason need to further run Parcellite you may whitelist its panel icon by running dconf-editor (from dconf-tools ) Desktop -> Unity -> panel or from the command line

gsettings set com.canonical.Unity.Panel systray-whitelist "['parcellite']"


Does Ubuntu store sudo password in cache?

Why is it so? Comfort I guess. You wouldn't use sudo if you had to type your password every 2 seconds.

sudo does not remember your password. sudo remembers the date, user and terminal. If a sudo command in the same terminal is executed by the same user in a short period of time (15 minutes by default), sudo just doesn't ask for the password again.

sudo needs your password to make sure you are really you, and not someone else while you're away drinking coffee. it does not need your password to switch to root, since it runs as root.

If, from the same terminal, you run some malware within the grace period, the malware may be able to sudo without a password.

You may use sudo -k to invalidate the cache.


exporting an environment variable from a bash script to a tcsh shell

You want

export myEnv

not

export $myEnv


Sublime Text 2 doesn't stay pinned to the launcher

It won't stay in the launcher because it doesn't have a *.desktop file.  You can create a *.desktop file by hand (surprisingly complicated!) or you can simply use some guy's PPA to install Sublime Text 2.  (The package includes the requisite *.desktop file.)


Ubuntu 16.04 not showing new installed applications in the dash

Turns out this was a bug in 15.10 and made it into 16.04. It's been reported and marked as Confirmed. Hope a fix is released soon.

https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1506744


How to remove hdd usage for small tasks?

Yes, Ubuntu, like all Linux distributions, uses hard drive cache.  If memory isn't needed for anything else, it is made available for cache.  The more other things are dememding memory, the less cache is available.

The behaviour you are describing sounds like a low memory environment.  You can see what your memory is doing by opening a terminal window and using the command $ free:

free
              total        used        free      shared  buff/cache   available
Mem:        2048012      624604      511328       17272      912080     1223204
Swap:       2097148           0     2097148

The above is Ubuntu 16.04 running on a virtual machine (through VirtualBox) with 2GB RAM and 2GB swap space assigned.  You can see that 912MB are being used for cache and buffers.  This memory is also included in the "available" category.  So as memory usage goes up compared with available memory, the ammount cached will go down and swap usage will start going up.  Once you start using a significant amount of swap, then you will notice a lot of hard drive access when you do things.  This is what leads me to believe your system is low on memory for what you are doing.


Trying to download and verify .deb files

Maybe there is simpler way, but below is the possible lowest-level way.
So we know the package name, the acct, it is located in main pocket. I'll use Ubuntu 20.04 LTS (focal) in below example.
Then we need to get Packages file from the mirror:
cd /tmp
wget -c http://archive.ubuntu.com/ubuntu/ubuntu/dists/focal/main/binary-amd64/Packages.xz

and get SHA256 sum from it for needed package:
xzcat Packages.xz | grep acct.*deb -A4 | grep SHA256 | awk '{print $2}' | tee acct.sha256

Then we can get the correct file name by consulting with https://packages.ubuntu.com/focal/acct to compare the sum:
cd /tmp
wget -c http://archive.ubuntu.com/ubuntu/pool/main/a/acct/acct_6.6.4-2_amd64.deb
# or construct it
wget -c "http://archive.ubuntu.com/ubuntu/$(xzcat Packages.xz | grep acct.*deb | awk '{print $2}')"

sha256sum acct_6.6.4-2_amd64.deb

or with more automated variant:
comm <(sha256sum acct_6.6.4-2_amd64.deb | awk '{print $1}') <(cat acct.sha256) && echo OK || echo NOK

Notes:

for other CPU architectures (armhf, arm64, s390x and ppc64el) use file structure of http://ports.ubuntu.com with above approach.
please note that you can get "dependency hell" problem with current approach. So for massive deb-packages download with dependencies for known Debian-based distro version you can use my special Docker-based script located at https://github.com/N0rbert/deb-download (see its README.md for details).


How to install Latest version of Apache Solr on Ubuntu and how to uninstall

An older version of solr

An older version of solr-tomcat and solr-jetty is in the Ubuntu Universe repositiories, for a newer version see below.

sudo add-apt-repository universe

For Tomcat

sudo apt-get install solr-tomcat

For Jetty

sudo apt-get install solr-jetty

Open the URL http://localhost:8080/solr/admin/, if your tomcat is listen on port 8080.

Uninstall

sudo apt-get remove solr-tomcat
sudo apt-get remove solr-jetty

A newer version of solr

Use the manual installation for a newer version, check the latest version here and replace the version in the commands below, for old versions check here

cd ~
wget http://archive.apache.org/dist/lucene/solr/5.3.1/solr-5.3.1.tgz
tar xzf solr-5.3.1.tgz solr-5.3.1/bin/install_solr_service.sh --strip-components=2
sudo chmod +x install_solr_service.sh
sudo ./install_solr_service.sh solr-5.3.1.tgz

Open the URL http://your_server_ip:8983/solr

More details

Uninstall via

sudo service solr stop
sudo rm -r /var/solr
sudo rm -r /opt/solr-5.3.1
sudo rm -r /opt/solr
sudo rm /etc/init.d/solr
sudo deluser --remove-home solr
sudo deluser --group solr

For a better explanation of the uninstall steps, read my answer here.


No JDK found during WebStorm installation

JDK stands for Java Development Kit :

  The Java Development Kit (JDK) is an implementation of either one of
  the Java SE, Java EE or Java ME platforms released by Oracle
  Corporation in the form of a binary product. The JDK includes a
  private JVM and a few other resources to finish the recipe to a Java
  Application.
  Via Wikipedia

I advise you to use the Java 8 JDK. You can get it by installing Java 8 on your computer :

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Once installed relaunch WebStorm - it will work fine.

See on the Ubuntu Java Documentation for more informations.


Dell Vostro 5490 no WIFI in Ubuntu 18.04

Please note this:

[    3.205709] iwlwifi 0000:00:14.3: Failed to start RT ucode: -110
[    3.205711] iwlwifi 0000:00:14.3: Firmware not running - cannot dump error
[    3.217939] iwlwifi 0000:00:14.3: Failed to run INIT ucode:-110

There are several bug reorts that reference this exact sequence. The first that suggests a fix is this: https://bugs.launchpad.net/ubuntu/+source/linux-firmware/+bug/1867026 It suggests renaming the firmware file that loads. Please try:

sudo rmmod iwlmvm
sudo rmmod iwlwifi
sudo cp /lib/firmware/iwlwifi-Qu-b0-jf-b0-48.ucode{,.bak}
sudo cp /lib/firmware/iwlwifi-QuZ-a0-jf-b0-48.ucode /lib/firmware/iwlwifi-Qu-b0-jf-b0-48.ucode
sudo modprobe iwlwifi

If this is ineffective, then revert the rename:

sudo rmmod iwlmvm
sudo rmmod iwlwifi
sudo mv /lib/firmware/iwlwifi-Qu-b0-jf-b0-48.ucode{,.bak} /lib/firmware/iwlwifi-Qu-b0-jf-b0-48.ucode
sudo cp /lib/firmware/iwlwifi-Qu-a0-jf-b0-48.ucode /lib/firmware/iwlwifi-Quz-b0-jf-b0-48.ucode
sudo modprobe iwlwifi

Then try the solution here: https://bugs.launchpad.net/ubuntu/+source/linux-firmware/+bug/1867026/comments/2

Download all the deb files to your desktop. Then install them with:

cd ~/Desktop
sudo dpkg -i linux*.deb

Reboot.


According to the tutorial video on http://developer.ubuntu.com/get-started/ ,

If your widget is named "myButton",

def test(self,widget):
    print "clicked"
def on_myButton_clicked(self,widget):
    test()

This part of your code should be rewritten to below:

self.myButton = self.builder.get_object("myButton")
def test(widget):
    print "clicked"
def on_myButton_clicked(self, widget):
    self.test()

In advance, it is necessary to start Glade by quickly design command, and to create the button widget.


Do I really need both bootloaders? It really slow down the actual boot up time

The answer is "it depends."

If your GRUB is an EFI version of GRUB, then in theory it can replace rEFIt. Doing so on a Mac is a bit tricky, though, and I don't have step-by-step instructions for doing the job.

Most Ubuntu installations on Macs install Ubuntu in BIOS mode, though, and therefore use a BIOS version of GRUB. In this configuration, both boot loaders are (more-or-less) necessary; rEFIt is unable to boot a Linux kernel directly without jumping through awkward hoops, and the BIOS version of GRUB can't boot OS X.

An alternative you might want to consider is replacing rEFIt, which is no longer being developed, with its fork rEFInd, which is. Unlike rEFIt, rEFInd can boot a Linux (3.3.0 or later) kernel directly, so by installing rEFInd, you can bypass GRUB. The procedure to do this would be:

Install rEFIt from OS X by using its install.sh script.
Manually install the driver for whatever filesystem you use on Linux's /boot partition, or on the root (/) partition if you don't have a separate /boot partition. See the rEFInd documentation for details on its drivers. (You'll just need to copy one file.)
Reboot. rEFInd should appear and show you an option for OS X and at least one for Linux (with a penguin), and one for GRUB (with either a generic icon or an Ubuntu logo). Select the one that boots via GRUB.
In Ubuntu, locate the mkrlconf.sh script that comes with rEFInd and run it with sudo. This creates a configuration file that helps boot the kernel directly.
Reboot. You should now be able to launch the direct-boot option(s) in rEFInd. (The ones with the Linux penguin icons.) If you have problems at this point, you'll have to resolve them, or maybe just use rEFInd as you'd been using rEFIt before.
If everything's working, you can optionally remove the old GRUB entry from rEFInd's menu as follows:

If you'd been using a BIOS-mode GRUB, locate the refind.conf file (on the ESP or the OS X / partition, depending on how you installed rEFInd), uncomment the scanfor line, and remove the hdbios option from that line. Note that if you also boot Windows, though, this will remove Windows from the boot options, so you probably don't want to do this if you're triple-booting with Windows.
If you'd been using an EFI-mode GRUB, you can either remove its files (probably in /boot/efi/EFI/ubuntu) or use the dont_scan_files or dont_scan_dirs option in refind.conf to restrict scanning for GRUB.


How can I convert .osp files to other formats?

.osp is a project file, not a video file.

To create a video you need to -export- your project. See the "file" options:


How to change the owneship of default.conf file in code::blocks editor in ubuntu?

In the terminal, you can edit the file as a sudoer by typing the command:

sudo vim /path/to/default.conf

I would recommend this method rather than below because changing the permissions could cause problems with code::blocks.

But, if you really want to change the owner and permissions of the file try:

sudo chown username:usergroup /path/to/default.conf
sudo chmod 666 /path/to/default.conf

Understanding Linux File Permissions is a good read.


Why my home folder has little space even though the disk mounted has plenty of it?

Assumming that /dev/sda1 is the smallest disk and runs out of space ,you mismounted the /home/pc_magasas you mentioned on /etc/fstab. Also I assume that the OS is installed on /dev/sda1

/home/pc_magas                /mnt/pc_magas   none    bind

To solve this boot from a live usb. Then mount your disks:

mkdir /mnt/sda1
mkdir /mnt/sdb1
sudo mount /dev/sda1 /mnt/sda1
sudo mount /dev/sdb1 /mnt/sdb1

Copy the files from /mnt/sda1 into /mnt/sdb1

sudo rsync -ravp /mnt/sda1/home/pc_magas /mnt/sdb1/pc_magas

Notice the -p option that preserves any file ownership and permissions

And then fix the /etc/fstab by:

sudo nano /mnt/sda1/etc/fstab
Set:

/mnt/pc_magas   /home/pc_magas none    bind 0 0

Instead of:

/home/pc_magas                /mnt/pc_magas   none    bind
Save and exit

Then the only thing to do it to empty out the /dev/sda1/home/pc_magas, keep in mind this is also important because once booted into a normal OS, you will still have lack of space and you cannot release space in /dev/sda1. The command to do that is:

rm -rf /mnt/sda1/home/pc_magas/*

Then boot normally to your host OS anbd enjoy the ubuntu 20.04


We have many ways to disable/blacklist psmouse.
One is to edit the /etc/default/grub file:
sudo nano /etc/default/grub

You can type:
module_blacklist=psmouse

or
modprobe.blacklist=psmouse

Save the modifications, run the command update-grub with root privileges as:
sudo update-grub

Finally reboot.


Well if no one has an answer then I will propose my own solution.  Follow these steps:

Take Ubuntu install disk
Insert into CD/DVD drive
Reinstall OS


Re: Vagrant up fails on Booting VM

Hey @Adam I am also getting this problem for last 3-4 days in one of my workstation and didn't look for any solution until today when I upgraded second workstation's kernel. I think this problem is causing of new Ubuntu kernel 4.13.0-26-generic. I have booted to previous kernel 4.10.0-42-generic and tried vagrant up and it worked perfectly for both of my workstations. It is a temporary fix not a permanent solution though.


I found Character Encoding option on gedit Save As.. dialog and it seems you have to add your desired encoding. I think setting up Character Encoding to automatically detected will do what you desire after you add your encoding to the roster.

Or you can use geany for text editing as well which is quite nice.


Jieli BR21 Bluetooth dongle shown as storage device

As far as i know, those things are soundcards with bluetooth recieving capebility, not bluetooth sticks. They can't connect to any non-audio devices, and will only transmit/recieve audio to the USB-audio driver.


USB UDEV Rule Appears to Run Script Many Times

One problem with your recipe is that you use shell syntax, namely the structure  command1 && command2. But udev does not pass the command to a shell, so shell constructs such as job control and IO redirection are NOT available.

You can use something like

RUN+="sh -c 'some commands here but you cannot use double-quotes'"

Anyway, I landed at this question because I also have the problem that the udev rules for my keyboard fires something like 6 times when I switch KVM.


Apparently there's a package diversion that renames /usr/bin/pidgin to /usr/bin/pidgin.orig, for some reason. I can't verify the changelog now (servers are dead) but you may execute pidgin by typing pidgin.orig.


Download lastfm tags into mp3 comment or genre tag

I cooked one Python script quickly. You can review it here: http://db.tt/yGa14ZA or download from here: http://db.tt/Rnkhpod

As I understand your library is in MP3 format, so I used ID3 tagger. Script fetches last.fm top-tags and puts them in COMMENT tag.
If you ask me, although "TopTags" are more meaningful then "TrackTags" they can consist lots of garbage

Script uses Standard Python Library, except for module that writes tags - eyeD3 (sudo apt-get install python-eyed3)

Example usage (parse all files in current folder):

$ for f in *.mp3 ; do python lastfm_top-tags.py "$f" ; done

Similar bash line can crawl through all subfolders also.

Hope it's useful :)


This was happening to me as well until I ran:

apt-get update && apt-get dist-upgrade

That fixed me up.  Not sure what the problem was, but the bug was fixed.


How to stop a file or folder from being indexed in GNOME?

In Ubuntu GNOME 16.04 with GNOME 3.20 there is now such an application called Search and Indexing (or tracker-gui) installed by default (if it is not installed or if you are running a previous version which does not have it pre-installed then it can be installed by running sudo apt-get install tracker-gui) which one can use to highly flexibly change the indexing settings with (I have blacked out some personal information in one of the screenshots):

As can be seen from the above screenshots this covers most of the points in the question.


On your keyboard press CTRL+ALT+T
A terminal will apear

Now in that terminal insert the commands i give you one at a time, pressing enter afther each one.

sudo apt-get install linux-headers-generic

Afther the proces is finished type:

sudo apt-get install --reinstall bcmwl-kernel-source

Afther the process is done, just log out and then back in and tell me if your wirless works


How do I create a wireless access point using only one wireless NIC but 2 different SSID:s?

I have found out that to achieve this you don't use netplan but rather hostapd. Hostapd supports virtual SSID:s and VLAN assignments using attributes from a RADIUS-server. The attributes involved are:

Tunnel-Type = VLAN
Tunnel-Medium-Type = IEEE-802
Tunnel-Private-Group-ID = 1)

The "Tunnel-Private-Group-ID" controls what VLAN the client will be connected to. The RADIUS server can be configured to return different ID:s depending on what the attribute "nas_identifier" is set to in hostapd.conf. The identifier is included in the request to the RADIUS-server. Each virtual access point should have it's own unique string configured for the attribute "nas_identifier".


Ubuntu server 18.04 LTS getting CIFS VFS: Free previous auth_key.response =

It looks like someone posted a request about this on Redit's Fedora page.  The consensus there seems to be that there is a kernel patch coming down the pipe which will fix this.


How to restore a Déjà Dup Backup file at command prompt with duplicity

As you may have guessed, duplicity asks for a directory as the second argument when restoring files. According to man duplicity:

duplicity [restore] [options] [--file-to-restore <relpath>] [--time time] source_url target_directory

  ...
     If we wanted to restore just the file "Mail/article" in
      /home/me as it was three days ago into /home/me/restored_file:

duplicity -t 3D --file-to-restore Mail/article
sftp://uid@other.host/some_dir /home/me/restored_file

So, in your case, you would use:

duplicity restore --no-encryption --file-to-restore hecatombe.txt "file:///media/TOSHIBA EXT/" "/home/rch/"


Nexus 7 3G [2012] problem with ubuntu touch

Nexus 7 3G is not equivalent to grouper.

Nexus 7 is a commercial name that hides a lot of different hardware configurations in it.

If the hardware codename is tilapia or razor the device will not work without modifications or what people call ports, please refer to https://wiki.ubuntu.com/Touch/Devices

To find out what device you can run

adb shell getprop ro.product.device


How do I delete one item from the list of 10 "recent documents" in LibreOffice Writer?

It seems there should be an easy, built-in way of doing this, but there's not (yet?). LibreOffice is now storing user settings and Recent_Documents history in one file. On my system it is:

$HOME/.libreoffice/3/user/registrymodifications.xcu

It is an xml document, and extracting the history of just one document is not straight forward.

There was a history plug-in (forgot the name) that used to work, but it no longer works for me. I created a script/one-liner to delete the entire recent-documents history. It searches for and removes tags of the form: <item ...HistoryInfo> ... </item>

    perl -i -pe 's#<item[^>]+?HistoryInfo.+?</item>##g' $HOME/.libreoffice/3/user/registrymodifications.xcu

The usual disclaimers apply:

always back up the file first
understand a script before you execute it
use at your own risk


Please check your filter setting on the top left side of your search / application screen. Here you can select what types of lenses you want to see.


How to change preferred release type for a server to LTS?

Edit /etc/update-manager/release-upgrades and set (in the [DEFAULT] section):

Prompt=lts

Since this MOTD is shown to you, the package update-manager-core is likely installed in your system. If not, install it first.


First, locale -a | grep ru_RU will never return what you write. Maybe locale -a | grep ru_UA.

Second, you  can generate new locales by issuing:

sudo locale-gen ru_UA.KOI8-R

I didn't check if ru_UA.KOI8-R is the exact form for what you wish.

More about: (Re-)Generating locales.


failed to get i915 symbols, graphics turbo disabled error on boot


What is the available space on my disk, exactly

QDirStat appears to be only showing the size of files you own. For example /boot shows as zero bytes but in reality it would have to have something in it:

For example:

$ du /boot -s -h

du: cannot read directory '/boot/efi': Permission denied
1.2G    /boot

$ sudo du /boot -s -h
1.3G    /boot

Another important consideration is some utilities list the size of the bytes in a file while others list the space a file occupies which is number of bytes rounded up to the block size which is generally 4,096 bytes or 4K.


Remove mongo lists in:

/etc/apt/sources.list.d

then:

sudo rm -vf /var/lib/apt/lists/*
sudo apt-get update


netplan: is there an equivalent to `post-up`?

This should be possible to do in netplan yaml using routes as you tried to do, but it doesn't work because of https://bugs.launchpad.net/netplan/+bug/1781652.

As a workaround, you should be able to do this using a hook in .  See the networkd-dispatcher(8) manpage for details.


When I try to install ubuntu my computer freezes then shuts down

You need atleast 1GB of RAM to install from Ubuntu Live CD.

Since you have mentioned that the your computer is an old one, I guess your computer may not have 1 GB of RAM.

In that case, try the Ubuntu Alternate Installer 32bit or 64bit


Be careful with installing software from unknown sources.

You might get more security ideas by looking at this project :

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

That project is developed by security experts.
The idea is to isolate work, home, play etc.

You can use this isolation idea yourself already by using Virtualbox, KVM, Qemu client guest install for "play", therefore having some isolation from your real important things.

Do you have rkhunter installed? It is a rootkit detection program.
You can install it and run

sudo dpkg-reconfigure rkhunter

to adjust the settings to your taste. You can also install the chkrootkit package, but chkrootkit might give you more false alarms (Depending on which other programs you will install, or have running. Which is okay if can find out what is causing the false alarm).

http://packages.ubuntu.com/search?keywords=rkhunter

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

Furthermore you can also install Lynis to perform a security check on your computer.

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


Issues with Kubuntu 18.04 - Boot issues & blank screen on startup

I am having the same problem, and this link solved it for me:

How do I set 'nomodeset' after I've already installed Ubuntu?

The solution was to edit this line in /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Add "nomodeset" like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Then save the file, run sudo update-grub, and reboot.


sudo lightdm stop causes low-graphics mode

Ok so there was a service keyword missing. The correct would be:

sudo service lightdm stop

So it stops the graphical OS without "complaining" that the graphical interface stoped.


should i install ubuntu 14.04 or wait for 15.04

the good thing is you should install ubuntu 14.04 as it is a long term support(lts) release, which means your computer will get the required updates and bug fixes and is more stable and on the other hand ubuntu 15.04 is the isn't the lts and it is in the current development and it is more likely you will have less stable desktop environment than ubuntu 14.04


CMD.exe Emulator in Ubuntu to run .cmd/.bat file

Install Wine and you can run:

wine cmd /c mybatch.bat


When you do not have a CDROM to boot then you can use alternatives, such as a floppy disk, an USB pendrive or boot from the network.

In your case booting from USB is probably the easiest solution.

Once you are booted from the alternative media you can use repair your system. I never did this with Ubuntu, but according to https://help.ubuntu.com/community/Boot-Repair is is as easy as:

Booting from the pen drive,
Opening a shell and using installting bootrepair with this command:sudo add-apt-repository ppa:yannubuntu/boot-repair
Once it is installed ed sudo apt-get update && sudo apt-get install -y boot-repair &&
(boot-repair &)

Regardless of these actions or how you fix it, something broke it in the first place. Try to remember what happened prior to the bootloader failing. Did it run out of battery? Did you shut it down hard without unmounting volumes? ...


PyQt apps cause Window Manager to crash - where's the problem?

See this bug report:

https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/805303

to run in the mean time install qt4-qtconfig and change away from the default of gtk+ gui styles.


This happens because you have a laptop equipped with an Intel RealSense camera. The camera is meant for motion detection and the lines you see are distance contours.

I had the same problem. It turned out that /dev/video0 was pointing to this camera instead of the webcam (which was at /dev/video1). The camera used for other webcam-based applications in Google Chrome can be set through Settings -> Content settings -> Camera, but Google Hangouts does not respect this choice and insists on using whatever is at /dev/video0 (perhaps because the choice is made through the Google talk plugin rather than Chrome).

I solved this problem by writing a bash function to switch /dev/video0 and /dev/video1 so that Hangouts picks the right camera. Clearly a hack and there should be a better way to do this, but it works!


trying to install Ralink rt3092 wirless drivers HELP!

The coorect driver rt2800pci is already included in default Ubuntu 20.04 installations. Compiling a perhaps older driver from some unknown source is unlikely to help.
Your wireless may be dropping because of power management; that is, the feature where the card partially powers down to save battery power during periods of inactivity and then, ideally, powers back up seamlessly when activity resumes. Let's disable power saving to see if it helps. From the terminal:
sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*

Your wireless may be dropping because the channel to which it was connected has suddenly changed.
Please check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I recommend a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred.
Your wireless may be dropping because there are two wireless access points with the same name and password. This is typical when you have a 2.4 gHz segment and a 5 gHz segment of the same router. Your wireless may be roaming, looking for a better connection. If this is the case, I suggest that you rename the access points; something like myrouter2.4 and myrouter5.
After making these changes, reboot the router.
Next, I recommend that your regulatory domain be set explicitly. Check yours:
sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:
sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:
sudo nano /etc/default/crda

Change the last line to read:
REGDOMAIN=IS

Proofread carefully, save and close the text editor.
Is there any improvement?


How do I change file system in recovery mode to read-write mode?

I did some web searching on "Recover Mode Read Only" and came across this post on LinuxQuestions.org website.

Shutdown the computer
Boot into Recovery Mode --After BIOS load, hold down Shift key to
access the grub menu --Once in grub menu, select the entry ending in
"(recovery mode)"
From the next menu selected option to enter Root Session
At the root session, execute command mount -o rw,remount / to
remount the filesystem as read-write


How can I install Bluetooth drivers on a Lenovo G470?

I know is is working because I used it before , may a reboot on win help to switch it on ?

--
http://rzr.online.fr/q/bluetooth


The issue is due to how certain terminals work. In particular, sakura and gnome-terminal (Ubuntu's default) which I have used before do not register the terminal. There is, in fact, a bug report for gnome-terminal, which is closed with WONTFIX status.

Finding number of open terminal sessions, therefore, should be focused on finding parent processes of shell sessions or associated pts/tty devices, as shown in this question:

$ ps -eo tty= | sort -u

The only issue with this command is that it should display processes from all users. My personal approach would be to filter out my own processes ( i.e. terminals I opened myself ) via -u option and parse with awk:

#  Note that this includes tabs as well, not just open windows
$ ps -u $USER -o tty | awk 'NR>1 && $1 != "?" {a[$0]++};END{for(val in a) print val}'


How to grep csv file information and put it in another file


How can I transfer Thunderbird profile from Windows XP?

You can simply copy your windows thunderbird profile inside your ~/.mozilla/thunderbird (or may be it is ~/.config/thunderbird) directory. You may either rename it as default, or select it from the commandline thunderbird -P.

Note: Some paths might be screwed up because of path differences in windows and linux. You can either fix them in the files manually, or reset them from the UI. I have not used thunderbird since long to help you more. Someone else might give you a more concrete answer.


Update:

I got it working.

I had to rename some icons and add some. Follow these steps:

Download the faience_battery_icons.tar.gz using the link below.
Extract the file.

tar xzf faience_battery_icons.tar.gz

Copy all the icons inside the faience_battery_icons folder to the status/22/ directory of the Faience icon theme directory. The icon directory can be one of the following:

~/.icons/Faience/
/usr/share/icons/Faience/

For example, if the icon directory is ~/.icons/Faience, then you have to paste all the icons inside the faience_battery_icons to ~/.icons/Faience/status/22.

cp faience_battery_icons/* ~/.icons/Faience/status/22/

Done!

Download Link: faience_battery_icons.tar.gz

Alternate (previous) answer:

I was using Faenza icon theme and for some reason the battery icon looked like this:

However, for the ubuntu-mono-dark theme, the icons were fine. So I just copied the battery icons from the ubuntu-mono-dark theme, and the icons now are better:

The reason, I think, is that either the icons are not named properly or some icons are missing.


unresponsive right click result box overlays everything

There should be messages in your /var/log/Xorg.0.log file.

Obviously you can't get to them when the system is hung so run a terminal , click the title bar and set it to allways on top. then in the terminal run

tail -f /var/log/Xorg.0.log

This will ensure you can see any log messages that might relate to the issue, if you can post it here we can solve it for you.

Another good source of info to run in a sticky window lack the last one is

journalctl -f

it contains more general log messages that might also explain it


I think you want to install Ubuntu on a server since you talk about RAID 5. The questions you asked are more inherent to your hardware than to Ubuntu.

Yes, you can use RAID 5 with Ubuntu (I am using it)
SSD cache depends on your HDD. You can leave the cache and swap settings by default during installation.
You can not use hot-swapping with RAID 5 (it is something you can do if you raid your HDDs with RAID 1, instead.  But as I said, it has nothing to do with Ubuntu.

Advice: choose Ubuntu Server edition (not Desktop)


I don't have a solution for the kernel 3.19.30, but a workaround. You have a working kernel as you say. Use this kernel in the meantime. Follow the steps below to remove the problematic kernel and avoid an automatic update for some days.

Remove the package linux-generic

sudo apt-get remove linux-generic

Remove the problematic kernel

sudo apt-get remove linux-image-3.19.0-30-generic
sudo apt-get remove linux-image-extra-3.19.0-30-generic

After some days or after the next minor kernel version update,
reinstall the package linux-generic and test the behavior

sudo apt-get install linux-generic

If the kernel works now, all is fine. If not repeat the steps above.


Additional Drivers not found now that I have switched Motherbaords

The easiest way would be to directly install nvidia-current package from the repository. You can also try

apt-get update --fix-missing

to fix any repository mismatches, in case that happened and that's why the additional driver software can't find you the driver you want.


Remmina not connecting to Windows Server

I have used Remmina to connect to Windows computers before. First, make sure that remote desktop is properly enabled on the server via the window "Allow an App or feature through windows firewall". Make sure both Network discovery and Remote Desktop are enabled for domain, or private as applies to your situation. On Remmina, it should be sufficient to simply specify the server as shown:

Profile

Name: Clear name, for your recognition

Protocol: RDP

Basic

Server: fully qualified domain name

Username: admin user that has access to connect to the server

User password: admin password

Domain: domain name

I use this all the time for connecting to the computers that we service.  I have not had to use anything more complicated. I don't believe I have been prompted with an autogenerated RDP file for any connection, nor have i added any files to the connection. If you require the SSH key, copy it to your computer ahead of time before you try to remotely connect.


set -e -o pipefail not working because of make incompatibility

By default make uses /bin/sh to run shell code so you can't run bash-specific commands.

Add the line

SHELL=/bin/bash

to make make use bash instead. See the GNU make documentation for more about this.


can`t boot to win7 x64 after formatting ubuntu12.0.4

It seems that you had installed grub boot loader on the ubuntu partition, you have erased afterwords.

If you plan to install Ubuntu again - just go ahead. During installation select to put grub to the root of your device, for example /dev/sda instead of /dev/sda2.

If not, you can still install grub to boot Windows and any other operating systems you may have using pretty much any Linux live media. To do this, follow the instructions, provided here How can I repair grub? (How to get Ubuntu back after installing Windows?)

Either way, grub should detect all the existing OSes and you'll be okay.


I need to know when the "Caps Lock " key is turned on/off

I needed a visual indicator on my screen since my laptop didn't have any such indicator. My solution might address your question.

1) add the program indicator-keylock by entering the following command in a terminal

sudo apt install indicator-keylock
enter your password when prompted - no text will be displayed as you type your password

2) add this program to your computer's start up programs.


Do additional language packs need to be downloaded?

Your ISO does not contain everything you need, instead it holds most necessary things.

There is a guide to install a language pack here.


Cannot Print from Canon LBP6020 Ubuntu 16.04

I've done some digging on this issue. I have found a way on how to get the Canon LBP6020 printer working.

My Ubuntu version is 16.04 64-Bit with the Canon CAPT Printer Driver Version 2.70.

Firstly I had to setup Ubuntu so it could install 32-bit packages. Even though we're installing 64 Bit Canon drivers, some parts of the installation will need 32-bit packages installing. To get this setup I followed the instructions here: Installing 32-bit libraries on Ubuntu 14.04 LTS 64-bit, running the code:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 libpopt0:i386

Then for installing the Canon packages, I followed these instructions from the French Ubuntu docs: https://doc.ubuntu-fr.org/imprimante_canon_capt2, please take note of the parts where the instructions mention installing the libglade2-0 package and these 32-bit packages: libatk1.0-0:i386,libcairo2:i386,libgtk2.0-0:i386,libpango1.0-0:i386,libstdc++6:i386,libxml2:i386,libpopt0:i386. You will also have to update the /etc/init.d/ccpd file with what is mentioned in the instructions.

I won't re-post the instructions here as the page linked above includes all of the instructions I used for my setup to work properly, hopefully this will work for you too.

Another issue I ran into, was when running Google translate on the French instructions, Google translate changed some of the text within the commands. It's best if you can install any commands from the original non-translated version (I kept the translated and non-translated pages side-by-side).

Cheers, hope this helps.


For the purposes of trying Ubuntu without installing, choose the WEFI option (did you mean UEFI?). Both of the options should work, but you might as well boot in EFI mode if you can.

If you decide to install Ubuntu, then it matters which one you choose. You need to determine whether or not Windows 7 is EFI or Legacy, and choose the corresponding boot option.


Is it possible to use a Symbian based Nokia phone as a webcam via USB?

Yes it is possible. You will have to install SmartCam. SmartCam - Smart Phone Web Camera - Turns a camera phone (S60, WinMo6.x, Android, Samsung Bada) with bluetooth or WiFi into a handy webcam ready to use with your PC. You can get SmartCam here.


You’re looking for the paste utility, e.g.

paste *.txt > file.txt

Check its manual page for details, most notably the -d option to specify the delimiter.


How can I join together multiple VOB files?

The size of a .VOB container file is, by definition of the DVD specification, limited to 1 GByte (1048 MB).

If we need a file that contains a whole movie, then we need to convert these files to  another container (e.g. xvid, MKV, plain MPEG etc.), e.g. by using ffmpeg:

  ffmpeg -i snatch_1.vob -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec libmp3lame -ab 128k snatch.avi
  (from manpage)

Concatenating video files can only be done with some formats (e.g. MPEG).


First boot from the usb by pressing F11 key repeatedly.
booting from external device

Then either install ubuntu on the partition again and choose /dev/sda for installing boot loader

or just install grub or use boot-repair


Create a file server that is accessible from the internet

The simplest and safest method would be via HTTP, as this would be read only.

Ubuntu has good documentation for setting up a working LAMP stack here. Although you only really need to pay attenton to the Installing Apache 2 section.

There are then a few more steps, such as ensuring DirectoryListings is set to +Indexes and that your firewall is open and the relevant ports are also open.

Hope that helps


Got a hold of a recovery CD, though still had some troubles finally figured it out for some reason the Partition I accidently installed my Linux USB, became volume C: and the PC didn't even try to boot from the partition my Windows was installed.

If anyone gets in my kind of situation:
You need to  run bcdboot -s E: c:/windows (or whatever volume is assigned to your Windows partition) and then bootrec /fixmbr.
You can find out the Volumes by using diskpart:
list volumes


As far as I know, each manufacturer has its own RAW format. You can change the format easily with the software ufraw-batch.
You need the latest version of ufraw to process .srw files, to add it to your repositories do the following:

sudo add-apt-repository ppa:crass/ufraw
sudo apt-get update
sudo apt-get install ufraw-batch

Now you need to make a script to convert the files. Example: Save the following as scriptname.sh For simplicity, save it in the same directory as your images.

#!/bin/bash

for f in "*.srw";
do
        echo "Processing $f"
        ufraw-batch \
                --wb=camera \
                --exposure=auto \
                --out-type=tiff \
                --out-path=. \
            $f
done

Then open the terminal and navigate to the directory where your files are located(ex: cd /home/user/pictures/)
and execute the script as follows:

sh scriptname.sh

The script should convert every SRW image to tiff and keep it in the same directory. To stop the script(as it takes a long time to process many images) press ctrl+c while on the terminal.

If you want to move all the .tif images to a new folder to tidy up the images, you can do:

mv *.tif folder_to_save_all_the_tiffs/


How can I use Firefox's built in PDF viewer?

Go to Edit → Preferences → Applications and select Preview in Firefox for the content-type Portable Document Format (PDF).

Also, to confirm whether pdf.js (the inbuilt pdf viewer) is enabled, type about:config in the browser's address bar, press Enter, accept the warning, and, in the next screen, enter pdfjs in the search bar; you should see an entry with pdfjs.disabled in the Preference Name column. If its value is true, highlight that line and press Enter to toggle and set the value to false.


Upstart - Service immediately stops after starting

I checked /var/log/upstart/JOBNAME.log to see what was going on.

Turns out I had a relative link in my file.php, like this:

 <?php
 include '../somethin.php'
 ?>

I think this upstart executes this script as root /, so it's not able to follow the relative link. So I changed it to an absolute link and it works fine:

 <?php
 include '/home/inersha/folder/somethin.php'
 ?>


Can't adjust screen resolution in VirtualBox guest

Make sure the Guest Additions are installed inside the Virtual Machine. If you have installed Virtualbox-OSE from the package repo, you can get the iso that holds the additions for Windows machines with the command: sudo apt-get install virtualbox-guest-additions-iso


Video not playing correctly, video driver issue

The reason is that your acceleration backend is not working properly. AMD/Intel chips natively support VA-API HW Acceleration.
But most players only support VDPAU which is an NVIDIA standard.
The solution is to use VA-API backend to accelerate VDPAU.

First check what do you have:

 sudo apt install vdpauinfo vainfo
 vainfo
 vdpauinfo

vainfo will give a result something akin to:

  libva info: VA-API version 0.39.0
  libva info: va_getDriverName() returns 0
  libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
  libva info: Found init function __vaDriverInit_0_39
  libva info: va_openDriver() returns 0
  vainfo: VA-API version: 0.39 (libva 1.7.0)
  vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 1.7.0
  vainfo: Supported profile and entrypoints
        VAProfileMPEG2Simple            : VAEntrypointVLD
        VAProfileMPEG2Simple            : VAEntrypointEncSlice
        VAProfileMPEG2Main              : VAEntrypointVLD
        VAProfileMPEG2Main              : VAEntrypointEncSlice
        VAProfileH264ConstrainedBaseline: VAEntrypointVLD
        VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
        VAProfileH264Main               : VAEntrypointVLD
        VAProfileH264Main               : VAEntrypointEncSlice
        VAProfileH264High               : VAEntrypointVLD
        VAProfileH264High               : VAEntrypointEncSlice
        VAProfileH264MultiviewHigh      : VAEntrypointVLD
        VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
        VAProfileH264StereoHigh         : VAEntrypointVLD
        VAProfileH264StereoHigh         : VAEntrypointEncSlice
        VAProfileVC1Simple              : VAEntrypointVLD
        VAProfileVC1Main                : VAEntrypointVLD
        VAProfileVC1Advanced            : VAEntrypointVLD
        VAProfileNone                   : VAEntrypointVideoProc
        VAProfileJPEGBaseline           : VAEntrypointVLD

(Working) vdpauinfo should show something like:

 Decoder capabilities:

 name                        level macbs width height
 ----------------------------------------------------
 MPEG1                          --- not supported ---
 MPEG2_SIMPLE                   --- not supported ---
 MPEG2_MAIN                     --- not supported ---
 H264_BASELINE                  51 16384  2048  2048
 H264_MAIN                      51 16384  2048  2048
 H264_HIGH                      51 16384  2048  2048
 VC1_SIMPLE                     --- not supported ---
 VC1_MAIN                       --- not supported ---
 VC1_ADVANCED                   --- not supported ---
 MPEG4_PART2_SP                 --- not supported ---
 MPEG4_PART2_ASP                --- not supported ---
 DIVX4_QMOBILE                  --- not supported ---
 DIVX4_MOBILE                   --- not supported ---
 DIVX4_HOME_THEATER             --- not supported ---
 DIVX4_HD_1080P                 --- not supported ---
 DIVX5_QMOBILE                  --- not supported ---
 DIVX5_MOBILE                   --- not supported ---
 DIVX5_HOME_THEATER             --- not supported ---
 DIVX5_HD_1080P                 --- not supported ---
 H264_CONSTRAINED_BASELINE      51 16384  2048  2048
 H264_EXTENDED                  --- not supported ---
 H264_PROGRESSIVE_HIGH          --- not supported ---
 H264_CONSTRAINED_HIGH          --- not supported ---
 H264_HIGH_444_PREDICTIVE       --- not supported ---
 HEVC_MAIN                      --- not supported ---
 HEVC_MAIN_10                   --- not supported ---
 HEVC_MAIN_STILL                --- not supported ---
 HEVC_MAIN_12                   --- not supported ---
 HEVC_MAIN_444                  --- not supported ---

This is the (correct) output for my system. Both VA-API and VDPAU provide acceleration. Your issue is that VDPAU backend is not providing correct acceleration. That is why when VDPAU is disabled (the VDPAU_DRIVER=vdpau setting), you get correct output, but no acceleration.

So, assuming you have VA-API correctly setup, install the VA-API backend for VDPAU. Do this:

   apt install  libvdpau-va-gl1

and try with VDPAU_DRIVER=va_gl

Also, since you are using VDPAU on top of VA-API, just cut the middle man, and (on VLC) directly use the VA-API hw accel (VLC supports that).

Also, you can use mpv (it is a great player that supports VA-API natively).


How do I manually set location for redshift using the conf files?

Yes, you can add the following to the config, where lat is your latitude and lon is your longitude. You can find these for example using google maps. Just right click anywhere on the map and choose "What's here?" from the menu.

[redshift]
location-provider=manual

[manual]
lat=48.1
lon=11.6

Additional info in this archwiki article.


Filezilla question permission denied file transfer failed

Even as the ubuntu user, you cannot write to a directory owned by root.

If you want to do this, you will first have to upload your files to your home directory (i.e. /home/ubuntu/).

From there, you need to SSH into your system, login, then do sudo cp /home/ubuntu/FILENAME /var/www/wp-admin/FILENAME or whatever the command you need to do is, replacing FILENAME with the actual file's name.  As well, if you are not copying to /var/www/wp-admin remember to use the correct path instead.


If you have connectivity you're most likely having a DNS problem.  Many people have DNS problems with Ubuntu because the default system turns resolv.conf to 127.0.0.1.

Add a custom head to this default with a nameserver that works.

Edit file:

/etc/resolvconf/resolv.conf.d/head

Append to the file:

nameserver 8.8.8.8

Reboot the computer to restart the networking service.

Question different answer the same as: Cannot connect to Internet but Ethernet is connected