Autodesk Maya 2017 symbol lookup error on start in Ubuntu 20.04

The commands you quoted for "fixing" the startup errors are unsafe and probably incorrect.

If Maya looks for /usr/lib/libtiff.so.3 this means that it requires a libtiff.so with major version 3 specifically. Symlinking libtiff.so.5.2.4 which has major version 5 to it may introduce incompatibilities such as missing symbols, because there's no guarantee that different major versions are compatible.

In the same vein, libssl.so.10 and libcrypto.so.10 specifically ask for major version 10 of the crypto libraries while libssl.so and libcrypto.so in /usr/lib/x86_64-linux-gnu are themselves just symlinks to whatever version happens to be installed on your system. You should use /usr/lib/x86_64-linux-gnu/libssl.so.10 and /usr/lib/x86_64-linux-gnu/libcrypto.so.10 instead. If those don't exist you don't have the required version.


The output of your apt list cryptsetup -a shows

Listing... Done
cryptsetup/bionic-updates 2:2.0.2-1ubuntu1.1 amd64
cryptsetup/bionic 2:2.0.2-1ubuntu1 amd64

which means the cryptsetup tools are not installed. If they were,
it would rather look like

Listing... Done
cryptsetup/bionic-updates,now 2:2.0.2-1ubuntu1.1 amd64 [installed]
cryptsetup/bionic 2:2.0.2-1ubuntu1 amd64

Note the [installed] indicator after the first line. Just install them
and you should be fine:

sudo apt install cryptsetup


systemd-resolved, resolvconf.service, resolvconf and openresolv. Why, which and how?

I managed to change the script that handles these configuration items in OpenVPN in Ubuntu (tested on 18.04). Here is a patch for that:

--- /etc/openvpn/update-resolv-conf.orig    2019-03-13 19:14:16.163914424 +0400
+++ /etc/openvpn/update-resolv-conf 2019-03-13 19:29:30.380420708 +0400
@@ -15,7 +15,7 @@
 #     foreign_option_3='dhcp-option DOMAIN be.bnc.ch'
 #

-[ -x /sbin/resolvconf ] || exit 0
+[ -x /usr/bin/systemd-resolve ] || exit 0
 [ "$script_type" ] || exit 0
 [ "$dev" ] || exit 0

@@ -43,16 +43,16 @@
        fi
    done
    R=""
-   [ "$SRCHS" ] && R="search $SRCHS
-"
+   for SRCH in $SRCHS ; do
+       R="${R}--set-domain=$SRCH "
+   done
    for NS in $NMSRVRS ; do
-           R="${R}nameserver $NS
-"
+       R="${R}--set-dns=$NS "
    done
-   echo -n "$R" | /sbin/resolvconf -a "${dev}.openvpn"
+   /usr/bin/systemd-resolve -i ${dev} ${R}
    ;;
   down)
-   /sbin/resolvconf -d "${dev}.openvpn"
+   echo "Doing nothing, interface disappears."
    ;;
 esac

You will need to add the following items to your OpenVPN configuration file:

script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf


Ubuntu 18.04 uses different amount of memory on different machines

You could get a hint of what is happening with memory in those systems with

top -o %MEM

With that command you will get all processes sorted by memory usage. Maybe the additionnal memory is used for buffering ?


What procedure should I take to update a specific application?

When you chose install, the Software Center will replace the current version with the newer version, i.e. upgrade to the newer version.

By just upgrading, you will be more likely to keep any  custom settings you have.  The only way I would uninstall first is if I thought I might have some bad settings that are stopping the program from running properly and wanted to do the quick and dirty fix instead of tracking down the incorrect setting..  However the only way to reliably wipe all you old settings it to run

apt-get purge {application name}

and to the final part of your question, this applies to just about any application I can think of.  I have even upgraded my network manager while online and then continued to stay online(the old version continues to be used until the program is restarted, in the NM case that is reboot unless you force it to stop and start manually.


I fixed the issue in my PPA. It now works for all supported Ubuntu versions.


How to send packets via a pptp vpn tunnel?

I finally solved this issue, I'll try and post precise instructions for other people:

ip address show:

vpn address is 192.191.145.5

some relevant info:

39: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1400 qdisc pfifo_fast state UNKNOWN qlen 3
link/ppp
inet 10.20.0.42 peer 10.20.0.1/32 scope global ppp0

ip route show table local
     local 10.20.0.42 dev ppp0  proto kernel  scope host  src 10.20.0.42

additional commands:

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
ip route add 10.20.0.1/32 dev ppp0 table vpn_table
ip route add 0.0.0.0/1 via 10.20.0.42 dev ppp0 table vpn_table
ip route add 192.191.145.5 via 10.20.0.42 dev ppp0 table vpn_table

that is what is needed in the vpn table

this command

sysctl -w net.ipv4.conf.ppp0.rp_filter=2 is really imporant

otherwise you wont get a reply

same as this:

ip route flush cache

I hope this helps someone out there!


I have written a blog post about this.

Basically you just need to create a virtual block device at /dev/sdX, and mount your LOFS on it. Then you can run the installer and install Ubuntu on it. But please note that you cannot install GRUB directly on it (and there is no point to do so).


remapping shift key and bash script startup problem

I don't think that is ok to use that script in init.d. Like this the script will run at boot time, before your login. At that time, ~ is not set.

I think that the best way to get xmodmap ~/.xmodmap-`uname -n` command to run after your login is to create a file called .xinitrc in your home directory (~), containing the following line:

xmodmap .xmodmap-`uname -n`

A relogin will be probably necessary.


I don't think deleting all unnamed partitions from Windows is the right answer.

You should reinstall your GRUB to restore your boot menu. Check this question, it might be helpful.


How do I restore the Unity 7 Ctrl-Alt-Numpad combination behaviour on Gnome 3?

I first followed the these instructions on how to disable the "move-to-corner" shortcuts with dconf-editor. I'm not sure if this is a necessary step or not.
gsettings set org.gnome.desktop.wm.keybindings move-to-corner-se "['disabled']"
gsettings set org.gnome.desktop.wm.keybindings move-to-corner-sw "['disabled']"
gsettings set org.gnome.desktop.wm.keybindings move-to-corner-nw "['disabled']"
gsettings set org.gnome.desktop.wm.keybindings move-to-corner-ne "['disabled']"

Then I have tried installing the Put Windows gnome extension on Ubuntu 17.10, and it seems to work fine.

Install the browser plugin for https://extensions.gnome.org
sudo apt-get install chrome-gnome-shell

GNOME Shell extensions integration for web browsers. Provides integration with GNOME Shell extensions repository for Chromium (and derivatives) and Firefox.

Visit the Put Windows page and install the extension

Refresh the page

Click the blue spanner/screwdriver settings symbol on the page:

Go to "Keyboard Shortcuts" (also through Gnome Tweaks) and modify the actions to be Ctrl+Alt+Num, etc. By default, uses Super+Num.

You mentioned in one version of your question that you tried this extension and after restarting the machine you needed to manually reconfigure the shortcuts. I tested restarting my machine and had no such problems.


How to disconnect from wireless connection manually using the command line without using network manager?

You can take the wireless interface down using the command line.

Open a Terminal window, and enter:

ifconfig -a

You will get a list of all of the network interfaces. Your wireless will likely be called wlan0, and you can corroborate this with the information listed, such as the SSID, etc.

In Terminal enter:

sudo ifconfig wlan0 down

You will be asked for your password, in order for this command to be run with the permissions needed. (if you don't have the permissions, you will be warned so.) This assumes wlan0 was your wireless interface.

Enter again:

ifconfig -a

and you should see wlan0 (or your interface) has been labelled DOWN.

To reverse this, enter:

sudo ifconfig wlan0 up


Copying Okular notes form Windows to Ubuntu

In Windows all files can be found in C:\Users\me\AppData\Roaming\.kde\share\apps\okular\docdata.


How do I change file headers from the command line?

xxd is a very powerful command-line hex editor which allows you to change binary files with a single command line. You can use it this way:

xxd -r -p -o OFFSET <(echo NEW HEX SIGNATURE) FILE  # or
echo NEW HEX SIGNATURE | xxd -r -p -o OFFSET - FILE

Let's “convert” 01.png file to rar format (hex signature 5261 7221 1A07 0000, offset 01):

$ file 01.png
01.png: PNG image data, 1280 x 1024, 8-bit/color RGB, non-interlaced
$ xxd 01.png | head -1
00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452  .PNG........IHDR
$ xxd -r -p -o 0 <(echo 5261 7221 1A07 0000) 01.png
$ file 01.png
01.png: RAR archive data, vdb, os: MS-DOS
$ xxd 01.png | head -1
00000000: 5261 7221 1a07 0000 0000 000d 4948 4452  Rar!........IHDR

See man xxd for other useful options and lots of helpful examples.

1If the offset is 0 the option -o can be omitted, I include it here only to show its usage.

If you like it better you can do the truncating with dd as well, but that seems unnecessarily complicated:

dd conv=notrunc obs=1 if=<(xxd -r -p -o 0 <(echo 5261 7221 1A07 0000)) of=01.png

Further reading (besides usual command-line help):

Please recommend a hex editor for shell – xxd answer
Change the header in a huge file without rewriting the whole file
· SO
Wikipedia's List of file signatures


Package denyhosts in Ubuntu Trusty Tahr is deleted: temporary or forever?

I am sorry denyhosts has reached this stage, but I think you answered your own question :

  dead upstream; unmaintained; dysfunctional in sid

Unmaintained upstream projects will reside in the repos, with patches, until the packages can no longer patch, so looks like the end for denyhosts.

My best advice is to look for alternates.

Personally I harden my ssh server

And use iptables

sudo iptables -A INPUT -p tcp --dport 22 -m state --state NEW -m recent --set --name SSH --rsource -j ACCEPT
sudo iptables -A INPUT -m recent --update --seconds 600 --hitcount 8 --rttl --name SSH --rsource -j DROP

See http://bodhizazen.com/Tutorials/iptables

all the links in this post are from my LUG ;)


KDE 16.04: different user, different language?

While you're logged into the other account

Open System Settings
Click on Regional Settings
On the new page, while Translations Tab is selected
Select the language on the Available Languages list and then click on the > button to move it to the Preferred Languages list.
Logout and Log in again to see the effect.


Launch "Software Boutique" from the terminal?

I believe Software Boutique is an application specific to MATE desktop; it's actually part of the welcome app.

The command to run the Boutique is ubuntu-mate-welcome --boutique so to launch as root I would run (in Ubuntu MATE 16.10):

sudo -i
ubuntu-mate-welcome --boutique

when done, be sure to type exit in the terminal to drop root privileges.


setup test server ubuntu on virtualbox on window

As your output indicates, you have only one interface which is set to use NAT.

To be able to send request from your host to your Ubuntu, you should create a Host-only network, and a new interface for your VM, then attach your VM to this network which your host is sitting on it too.

Create a host-only network:

In VirtualBox from file menu select preferences and in VirtualBox Preferences window, select Network, then host only networks.

After all by clicking on + plus sign add a new host-only network. it's name should be vboxnet0.

Run DHCP server

Then double click on it and go to DHCP tab to run a DHCP Server on this network, do your desired configuration as follow:

Create a new interface

Then you should add an interface to your Ubuntu VM and attach it to this network.

Do a right click on your Ubuntu VM, select settings, go to network section.  Click on Adapter 2, check Enable Network Adapter and for Attached to select Host-Only adapter.

After all click ok to save these settings.

Now when you turn this VM on, you have a new interface, something like: enp0s9 which it should have an IP between 192.168.56.10 to 100, it should be 192.168.56.10. use ip a or ifconfig -a to find it out.

Config Apache

Now make apache to listen to this IP by changing apache configuration file to something like:

Listen 0.0.0.0:80

Or exactly your own IP, like:

Listen 192.168.56.10:80

Some part of this answer, and pictures are from my other answer related to VirtualBox from here.


You can buy a DVD with the latest version (14.04 LTS) here:
http://shop.canonical.com/product_info.php?products_id=1146

but its a 64-bit version, so check your computer first.
I think that you can't buy a 32-bit version, you have to download it or make your own CD.

But you can get help for making your own CD if you are stuck.
Start here:
https://help.ubuntu.com/community/BurningIsoHowto


discussed here as a known issue. wait a few days
http://ubuntuforums.org/showthread.php?t=1848618


Unable to use built-in mic on Lenovo Thinkpad x300 due to regression bug from 1 year ago

I have also faced the same problem with Ubuntu 10.10 and because of this I was unable to use skype. However, after fresh install of Ubuntu 11.04, mic is working fine. I don't know how it is working now. But it is worth to try.


I had the same trouble, only with the gtk version.  Turns out that in some repos (I tried Lubuntu and Synaptic), only the GUI front-end is available, without the actual subprograms, i.e., mp3gain, vorbisgain and aacgain.  Going to the mp3gain site, as you found out, is useless since you'll only find Windows binaries.  From another post link, it was apparent the .debs for mp3gain could be found (in various architectures) at the following link:

http://archive.ubuntu.com/ubuntu/pool/universe/m/mp3gain/

I downloaded from this archive and installed using gdebi and it worked for me.


error in make file : /usr/bin/ld: cannot find -lstdc++

UPDATE

I think I may have found a solution. Supposedly, -lstdc++ is not needed and so it can be removed from the makefile. Run the following commands to resolve this issue.

First, cd into the CAMB directory and then run the following commands:

sed -i 's/F90CRLINK ?= -lstdc++/#F90CRLINK ?= -lstdc++/g' Makefile_main
make clean
make CC=/usr/bin/gcc

The CAMB binary file should now exist if all goes well.

Please post any more errors, thanks!

ORIGINAL POST

I followed these steps and it compiled successfully on 15.10:

sudo apt-get install gfortran git
git clone https://github.com/cmbant/CAMB.git
cd CAMB
make CC=/usr/bin/gcc

The binary camb should be built in the current directory.

I also downloaded the source from the main site and got the same result.

Try installing these libs:

sudo apt-get install libstdc++-4.8-dev libstdc++6:amd64 libstdc++6:i386

It should be noted that the dev versions are the ones usually needed to build stuff.

Please post any more errors.


Resolved.

The microcode update for fixing the Spectre bug seems to have resolved my issues. I've been playing games freely for awhile with no crashes, well past the point where the system would normally reset.


4.7.1 Service Unavailable - try again later

So, I realised that the clamav-daemon wasn't restarting properly, which also uses(correct terminology??) the milter.
On reviewing the log for the clamav-milter (/var/log/clamav/clamav-milter.log) I can see that the clamd server isn't starting correctly

Sun Jun 12 06:29:00 2016 -> WARNING: No clamd server appears to be available
Sun Jun 12 06:29:25 2016 -> ERROR: Failed to initiate streaming/fdpassing

on looking in the clamav.log (/var/log/clamav/clamav.log) I can see that there is an issue with the memory allocation:

Mon Jun 13 13:20:55 2016 -> LOCAL: Unix socket file /var/run/clamav/clamd.ctl
Mon Jun 13 13:20:55 2016 -> LOCAL: Setting connection queue length to 15
Mon Jun 13 13:20:55 2016 -> ERROR: daemonize() failed: Cannot allocate memory
Mon Jun 13 13:20:55 2016 -> Socket file removed.

Looking at memory usage:

             total       used       free     shared    buffers     cached
Mem:           992        759        232         10          6         75
-/+ buffers/cache:        677        314

So instead of making my AWS instance bigger (and thus more expensive :P) I used this (https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04) to add a swapspace and voila, the service started! :)

I could then follow this (http://www.anta.net/misc/telnet-troubleshooting/smtp.shtml) to check that I was receiving mail via telnet.

I hope my tragedy helps someone out.

Happy Ubuntuing.

Edit 1: removing my tragic "postfix flush" suggestion, which sadly deletes the main queue, and not as I initially read it "processes" the mail queue. :(


reinstall WUBI by this typing this on command prompt,   D:\wubi.exe --force-wubi
(D:\ is where your ubuntu cd is)

and if you are using win 7, run WUBI with administrator privilege.


Ubuntu 14.04 WiFi Hard Blocked - Ralink RT3290 - HP sleekbook

The good folks at (http://ubuntuforums.org/showthread.php?t=1621768) seems to have solved a quite similar issue by the following root command sequence

# rm /dev/rfkill
# reboot

You should probably review their thread first, to make sure it applies.


Running truecrypt on ubuntu without root privileges

You can change permissions with chmod

chmod a+x truecrypt

However, to my knowledge, you can not use truecrypt without root access.

Seee : http://www.truecrypt.org/docs/truecrypt-portable

  TrueCrypt can run in so-called portable mode, which means that it does not have to be installed on the operating system under which it is run. However, there are two things to keep in mind:
  You need administrator privileges in order to be able to run TrueCrypt in portable mode (for the reasons, see the chapter Using TrueCrypt Without Administrator Privileges).

And also, on the same page:

  Note: No matter what kind of software you use, as regards personal privacy in most cases, it is not secure to work with sensitive data under systems where you do not have administrator privileges, as the administrator can easily capture and copy your sensitive data, including passwords and keys.

Edit: I guess it can be run, but with limitations, see: http://www.truecrypt.org/docs/non-admin-users


How to use the "find" command to find files bigger than 1MB, and execute a chosen command on each file?

create a shell script (remember to make it executable) to which you pass the path of a file.  The shell script will then present the user with the options and  perform the corresponding action
invoke the shell script from your find command

find / -type f -size +1000000c -exec your-shell-script {} \;

Example shell script (not a comprehensive solution)
#!/bin/bash

TargetFile="$1"
shift

if [ -z "$TargetFile" ]; then
    echo "$0 must be invoked with a path to a file" >&2
    exit 1
fi

while true; do
    echo "(D)elete, (C)ompress, or (S)kip: $TargetFile" >&2

    # Obtain a single keypress.
    # You may wish to tune this behaviour e.g. remove the n1 option
    read -rsn1 Action

    # The case statement accepts the upper or lower case letters
    # Tune to taste
    case "$Action" in
    D|d)
      echo "Deletion Logic"
      ;;
    S|s)
      echo "Skip Logic"
      break
      ;;
    C|c)
      echo "Compression Logic"
      ;;
    *)
      continue
      ;;
   esac
   break
done

exit

I'll leave the finer implementation details to you :)


How do I block file transfer to USB devices except for USB headphones?

In terminal:
sudo  mv /lib/modules/3.2.0-29-generic/kernel/drivers/usb/storage/usb-storage.ko  /root

This will move usb-storage.ko to root folder

sudo gedit /etc/modeprobe.d/blacklist.conf

add balcklist usb_storage at bottom of the page, save and exit

sudo gedit /etc/rc.local

add modprobe -r usb_storage before exit0, save and exit
reboot your computer and check usb storage is mounting or not


Unix permissions - what EXACTLY is the "owner group" (note: singular)?

A user may be a member of multiple groups.
A file is be owned by exactly one group and one user.
If the user is a member of the file's owner group (i.e., group foo owns the file and one of the user's groups is foo), then the respective group permissions apply to that user (unless overridden by the owner permissions).

The owner group is part of the file's ownership. Consider:

$ stat /usr/bin/crontab
  File: ‘/usr/bin/crontab’
  Size: 35984       Blocks: 72         IO Block: 4096   regular file
Device: 803h/2051d  Inode: 131439      Links: 1
Access: (2755/-rwxr-sr-x)  Uid: (    0/    root)   Gid: (  103/ crontab)
Access: 2015-02-05 20:20:43.438507538 +0530
Modify: 2013-02-09 12:32:23.000000000 +0530
Change: 2014-09-30 19:22:09.508515013 +0530
 Birth: -

This states that the file's ownership is with user root and group crontab.

  Say I'm member of group A, group B, and group C.
  Now I create a file somewhere. ... [To] which group get's the owner_group permissions applied ?

That depends on what your primary group is at the time you created that file. The primary group is the first one listed when you run the groups command. Usually, this is determined by your GID. However, you can temporarily set one of your other groups as primary using the newgrp command. For example:

$ groups
muru adm cdrom sudo dip plugdev lpadmin sambashare
$ rm foo; touch foo
$ stat -c %G foo  # this prints the owner group of the file
muru
$ newgrp sudo
$ rm foo; touch foo
$ stat -c %G foo
sudo

  I have the distinct feeling I don't really understand something here, or that I misunderstand the meaning of the term "owner group".

That the owner group is an attribute of the file, not the user.

  I understand the string (after the first char) is partitioned into groups of 3 (rwx) for

owner
owner_group
all/world/anyone

Slightly off: the third field is others, not all. Others covers everyone except the owner of the file and members of the owner group of the file. The distinction comes into play when using symbolic modes with chmod:

chmod a-x takes away everyone's execute permissions
chmod o-x takes away everyone else's execute permission, while leaving the owner and owner group's execute permission untouched.

Lastly, a note on user private groups. UPGs are fairly common on desktop systems, but do not take them for granted elsewhere. If UPGs are enabled, it is likely that the user's primary group and username have the same numeric id and name, and there is a unique group for each user. That is all.


How to mount a partition on an internal drive using USB live

Generally it's a good idea to check the usage description of problematic commands with the --help flag (e. g. mount --help) or in their respective manual page (e. g. man mount).

In this particular case you need to specify an existing destination directory to mount a device at. Example:

mkdir /media/home
mount /dev/sda6 /media/home

Since you're trying to reproduce the mount points of the on-disk system, I suggest you mount sda6 somewhere below the mount point of sda1, e. g.:

mkdir /media/root
mount /dev/sda1 /media/root
mount /dev/sda6 /media/root/home


How to handle jupyter notebook files in Ubuntu?

1. Create a ipynb.xml mime-info file

<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
    <mime-type type="application/x-ipynb+json">
        <comment>IPython Notebook</comment>
        <glob pattern="*.ipynb"/>
    </mime-type>
</mime-info>

Then store the file in ~/.local/share/mime and update the mime database.

cp ipynb.xml ~/.local/share/mime
update-mime-database ~/.local/share/mime

2. Create a jupyter.desktop file

Caution: Edit paths to adapt it to your system and habits.

[Desktop Entry]
Version=1.0
Type=Application
Name=Jupyter
Icon="$HOME/.icons/jupyter-sq-text.svg"
Exec=/path/to/jupyter notebook %F
Path="$HOME/Documents/Notebooks"
Comment=Jupyter notebook
MimeType=application/x-ipynb+json;
Categories=Science;
Terminal=true

Then install the desktop file:

desktop-file-install --dir="$HOME/.local/share/applications"  jupyter.desktop

3. Add the jupyter icon

I chose the svg version from the design repository of jupyter, and installed in ~/.local/share/icons

wget https://raw.githubusercontent.com/jupyter/design/master/logo/svg/jupyter-sq-text.svg -o $HOME/.local/share/icons/jupyter-sq-text.svg

Finally, link the mime-type icon to the system:

sudo ln -s $HOME/.local/share/icons/jupyter-sq-text.svg /usr/share/icons/gnome/scalable/mimetypes/application-x-ipynb+json.svg
sudo gtk-update-icon-cache /usr/share/icons/gnome/ -f

Hope that's help!


How can I trick my system into thinking I have installed a program (gdc)

You could try to create a script in your $PATH with the name gdc and call dmd in it.

For example: $HOME/bin/gdc

Contents:

#!/bin/sh
# Enter the dmd compile command below
# $@ are your command line arguments
dmd $@

Make it executable: chmod +x $HOME/bin/gdc


Installing 13.04 on an EFI partition - Share with Windows 8?

On an EFI-based computer, the EFI System Partition (ESP) is a FAT partition that holds boot loaders and related files. The firmware reads boot loaders from this partition to boot any OS. Although the EFI spec says that a computer can have multiple ESPs, the Windows installer tends to flake out if there's more than one ESP present, so it's advisable to use just one ESP per computer (or at least per disk; I'm not sure offhand how Windows responds to a two-disk computer when each disk has an ESP). Thus, you should keep your single-ESP configuration. In GParted, parted, and most other libparted-based tools, the ESP is identified as having the "boot flag" set. IIRC, the Ubuntu installer identifies it as an "EFI boot partition." The GPT fdisk (gdisk, cgdisk, and sgdisk) utilities identify the ESP as having a type code of EF00.

Note that you don't install Linux onto the ESP in any meaningful sense. You should create Linux partitions in the normal way on your GPT disk -- say, for swap, /, and /home. In the Ubuntu installer, you then mark the ESP as being the "EFI boot partition." Alternatively, the various automated partitioning options do this automatically.

Whatever you do, do not create a new filesystem on the ESP, and do not remove the "boot flag" from the ESP or set a "boot flag" on any other partition.

Ubuntu has long supported EFI installation and ESPs, and Ubuntu 13.04 is no exception to this rule. This support has been steadily improving, and it's probably better in 13.04 than in previous releases; however, there are still problems. At the moment, Secure Boot is the biggest problem area. Although Ubuntu 13.04 officially supports Secure Boot, there are a lot of problem reports about this combination, so many people prefer to disable Secure Boot in the firmware's setup utility.


UEFI mixup with previous windows 10 disk on Lenovo

Adding a disk caddy to the optical bay caused an old HP laptop to lock-up too at any grub access to the new disk.  BIOS put the new disk before the internal disk for the "hdd" boot item -- only workaround for me was to boot off a USB with higher boot order than the hard disk(s). The new disk then worked fine.


How to connect Ubuntu server to laptop network

Interface wlan0 is, as the name indicates, intended to connect to a WLAN (Wireless Local Area Network), also known as a WiFi network. So you need a WLAN to which you connect both your server and your laptop. Most home internet routers will provide that capability. You will then have to configure your server with the name (SSID) and access password of the WLAN you intend to use.

Also make sure you have connected a WLAN antenna to your server, otherwise you won't be able to make a wireless connection at all.

The IP address for your server will typically be assigned by the WLAN router, so you shouldn't assign on the server itself, and certainly not one out of the APIPA range 169.254...


cannot access archive: No such file or library

It looks like you're copying that file path from Chrome or something (file:// is how Chrome accesses the local filesystem).

Remove the file:// part, so you just have /home/zenon/.... and try again.


"Root file system not defined. Please correct this from partitioning menu" Ubuntu 14.04.2 installation on laptop with no OS

To be installed, Ubuntu needs a root partition in which to copy the kernel along with all the programs included, the additional / third-party software and the files required for everything to work. This is usually the "primary" (and biggest) partition, so that it's possible to hold additional software added during the regular use of the system, altough this is not mandatory. You need to specify to the installer which partition is to be used as the root partition, by specifying one and one only root mount point (/):

Click "Add..." to add your "primary" root partition

Specify the "Size" of the partition, set the partition as "Primary", set its location to be at the "Beginning of the space", set it to be used as "Ext4 journaling file system" and set its "Mount point" to be "/", then click "Ok"

Click "Install now"


terminal autocomplete for ls doesn't go into the directory

You might need to crosscheck the broken files with some that work.

Necessary files/dirs would be:

/etc/bash_completion, /usr/share/bash-completion and /etc/bash_completion.d

Once you've found the culprit adjust the files/remove unnecessary files to fix it.


How to enable CPU Turbo-Boost in Ubuntu?

cat /sys/devices/system/cpu/intel_pstate/no_turbo

needs to show a 0.  To make it 0 do ...

sudo -i
echo "0" | tee /sys/devices/system/cpu/intel_pstate/no_turbo
exit

Assuming you have an Intel as it is called Intel Turbo Boost
If you get a "Operation not permitted" it means you have turbo disabled in BIOS (source https://askubuntu.com/a/876998/15811 ) (and intel pstate source and the text explaining it).


How to list user services of another user under ubuntu

Yes, it is, but by using sudo. Read man sudo sudoers, and
sudo -u theuser systemctl ...

will do the trick.


Ubuntu 18.04 Not Functionning once Connected through a Wired Ethernet Connection

My Dell USB-C to Ethernet + VGA + HDMI + USB hub had a faulty connection. I suspected the problem because an USB stick was not recognized, and I confirmed it when moving the network plug turned the network leds off.

I bought a new USB-C to Ethernet connector and the problem disappeared.


Go to chrome://flags/.

Enable "ignore software rendering blacklist" or in version 22+ "Override software rendering"

This works for me.


How to convert an mp4 video by 180 degrees using ffmpeg or mencoder

Videos from phones often have metadata that tell the player to rotate upon playback (not all players respect this). When re-encoding, ffmpeg will automatically rotate the video according to the rotate metadata, so you don't have to do anything special:

ffmpeg -i input.mp4 -c:a copy output.mp4

However, if the rotate metadata is wrong you can simply remove or change it without needing to re-encode:

ffmpeg -i input.mp4 -c copy -metadata:s:v rotate="" output.mp4

Alternatively, you could change it such as -metadata:s:v rotate="180".


I can't seem to get any application indicators to show up - why not?

I clicked through the commented one:

http://www.jonobacon.org/2009/12/17/application-indicators-in-python/

and found the original wiki:

https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators#Python_version

It appears that adding the menu (even an empty one with "ind.set_menu(gtk.Menu())") results in a status indicator appearing.  Is that the desired result?

import appindicator
import gtk
ind = appindicator.Indicator("test", "monitor", appindicator.CATEGORY_APPLICATION_STATUS)
ind.set_status(appindicator.STATUS_ACTIVE)
ind.set_attention_icon("indicator-messages-new")
menu = gtk.Menu()
ind.set_menu(gtk.Menu())
gtk.main()


Is it possible to use Ubuntu for Android on a Nexus 7 or is it just for the smaller mobile devices?

What is the Ubuntu for Android Project?

Ubuntu's founding company Canonical are working hard to make an installer for mobile devices with multi-core processors. The goal is to reach all devices with more than two processing cores. As described, the focus will be the 'docking' feature, allowing you to 'dock' your device to experience a full-screen computer-styled experienced with a mere handset. Considering this is for all devices, it should be available for both tablet and smartphone - however not much has been revealed to the public at the moment。

Is the Nexus 7 supported?

As of late, no it is not. No devices are currently apart of the Ubuntu for Android project.

Since there is no way to do this, you may find that replacing Android for Ubuntu is the closest you'll get. If you feel like you wish to install Ubuntu, or find out more about the current development involving the Nexus 7, you can read below:

What is currently happening with the Nexus 7 and Ubuntu?

At the moment, a developer release of Ubuntu on the Nexus 7 tablet running the nVidia Tegra 3 multi-core processor. The release as stated before is for developers only and not intended for public, commercial or (really) any non-development or -testing related uses.
The release is running the alpha of Ubuntu 13.04, codenamed Raring Ringtail. The combination of the premature operating system and the very new adaptation to Android-native devices makes the release very unstable, hence why it is not recommended to regular users.
The release is has a simple one-click option for those wishing to attempt to install 13.04 on the Nexus 7 tablet. Tips on installation will be officially available at the non-developer release of the application.
This is what it looks like right now:

What do I do now?

The only thing average users can do is wait. Until a stable, safe, non-developer version is released (possibly by 14.04), it's not advisable that you put your expensive tablet at risk.
If you wish to keep researching about the project, you can look here:
At a YouTube video, or at this article about the latest version of the Nexus 7 installer on this OMG! Ubuntu! article. There is a picture, also:

If you wish to install the program despite the risks, you can do so by looking at the following sources below:

You can learn how to install the program here or ask on the Ask Ubuntu chatroom.

Good luck!

Sources include this article from OMG! Ubuntu! and this one and this one also. Information was also found on the wiki as well as several other places


MAAS based on ubuntu18.04, nodes can not connect to the public network

What is the gw on your 10.0.0.x network used for?

As declaring a gw on both interface will create 2 routes for 0.0.0.0 on your machines.

Try to remove the gw on the 10.0.0.x network and this should work.
If you need to reach specific network via the 10.0.0.x then create the static routes for them.


which PPA has the most current version of git for 12.04? ppa:git-core/ppa is outdated

You should update your package list as version 1.9.2 is well available from the git-core ppa.

sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git=1:1.9.2-0ppa1~precise1


TouchPad not working ubuntu 15.04 on asus Q551LN

Try the following :
sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps
Hope this helps!


Ubuntu 16.04: Maps mouse device of capacitive touch display to own screen

I solved it this way:

get device name of screen using xrandr
get device id of the mouse input device of the 5" screen
invoked xinput to map the input device to the 5" screen

the final call is:

$ sudo xinput map-to-output 14  HDMI2


How can I identify or find the origin of this mysterious process?

Well you're right it was hacked... I left an insecure account available.  On the plus side, it didn't have much in the way of permissions so I'm not going to reinstall everything.

the ". " essentially creates a hidden directory, which is inaccessible without using the quotes in the path name.  Having finally found the path and removed the dir with extreme prejudice, and secured the account with a /bin/false for the shell. I believe this one is fixed.

ME


After even more research, some trial and error, and getting it to work finally, I can say, that replacing nomodeset with
modeset=0

solved my problem
It seems as nomodeset forces the display to stay at grub resolution, even after booting. I found that out here. modeset=0 also prevents a black screen, but it doesn't come with the drawback of a permanent resolution.


I've tested the part you commented out (and modified just a bit to be able to demonstrate that it works):

#!/bin/bash

TARGET_DIR="protected_$(date +%F)"
if [ -d "$TARGET_DIR" ]
then
    echo "$TARGET_DIR directory exists!"
else
    echo "$TARGET_DIR directory does not exist!"
    mkdir "$TARGET_DIR"
fi

This is the output after the first run:

protected_2012-02-23 directory does not exist!

This is the output after the second run:

protected_2012-02-23 directory exists!

So it successfully creates the $TARGET_DIR in the else branch. What bug did you experience that made you comment out that section?


If you want to start VNC at boot, save your script to a location on disk as a .sh, run chmod a+x yourscriptname in a terminal (to make it executable) and add it to /etc/rc.local;

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/path/to/your/script &

exit 0

Note the trailing & and the final exit 0; this will run the script and then continue the boot process and not block anything.


Ubuntu 20.04 - Simplescan just scan page on flatbed and ignores feeder of my HP scanner

I faced a similar problem with a new vanilla installation of 20.04.1 with an HP Color Laserjet MFP278-m281 printer.
I found that you need to install the hplip-gui package. I followed these instructions:
In a terminal type sudo apt-get install hplip-gui

To install the plug-in using the GUI you can follow these procedures:

Launch a command-line window and enter:
hp-setup

Select your connection type and click "Next".

Select your printer from "Selected Devices" list and click "Next".

Enter your root password when prompted and click "Next".

Use the recommended installation method and click "Next".

Check the box to accept with the "Driver Plug-In License Agreement" and click "Next".

Finish the installation of the printer as normal, however you may be prompted to re-enter your user name and password.

If you run into any additional install problems you can go to our
known issues page and check for a solution.
For advanced users who wish to install HPLIP components manually, a
utility exists (hp-plugin) which will download and install the plugin
file, but it does not also install a printer queue like hp-setup does.
Do the following:

Launch a command-line window and enter:
hp-plugin

Follow the directions above for navigating the GUI but remember that the printer queue will not be installed through this process.

After that, the scanner worked perfectly well including collecting documents from the document feeder.
reference


Running IPv4 only application on IPv6 only network

Tore Anderson has written a CLAT implementation for Linux. You can find it on Github. It's just a Perl script that sets up the TAYGA daemon to do NAT46 (the IPv4-to-IPv6 translation) and configures routing in the Linux kernel, so that the ISP's NAT64 server can translate it back to IPv4.

In order to use clatd you need to install TAYGA and a few perl libraries:

apt-get install tayga libnet-ip-perl libio-socket-inet6-perl libnet-dns-perl


How can I let other people access my folders without using Google Drive, Dropbox and the like?

I'm not sure if there's anything that does this out of the box.

In typically annoying stackexchange fashion I'll ask if you're sure you want changes to files to show up immediately rather than after you've reviewed any changes. If not then I might suggest using a VCS like git, and maybe your own server, or (paid) github, or (probably free) bitbucket. You might also be interested in the owncloud project in general.

I don't know of any immediate solution for what you want to do, so can only really give you suggestions of how you set something up yourself with various components:

You could run an ssh server somewhere, keep all your files remote and then using something like sshfs to make them accessible from your computer (this is problematic if you have big files or aren't connected to the internet), but has the benefit of being simple.
If you don't have a static IP you should be aware of dynamic dns and some of the suppliers, you can use this to allow people to connect to your computer wherever it is. Alternatively this can be achieved by ssh'ing into a static server and using the -R option to forward connections back to your machine with a static IP.
The fallback logic complicates things. If you want to be snazzy you could try using some sort of unionfs (like aufs) on a linux so that accesses fallback to your cache (e.g have a server, make it possible for it to ssh to your machine, use sshfs to to host your files on the server, also keep a cache on the server, use unionfs to join toe two together, allow third parties to ssh to this machine)
An alternative method for doing the fallback (if you are happy with connections to drop when you switch off your computer) is to do some sort of connection forwarding with a fallback connection. So first they try to ssh to your machine, but if this machine is down then ssh to some other machine where you keep a cache. If you have a server then HAProxy might be suitable for this.
It might also be worth looking into something like gfs (a distributed filesystem) but this might be overkill

I should also add the default caveat that if you make services on your computer accessible to the outside world then you have to make sure they are secure, whereas third party companies employ people to do this for you. Of course the people they employ could also look at your data and provide backdoors to the government, so it's a bit of a trade off.


How to remotely run a desktop/GUI applications via SSH?

Try this:
ssh REMOTE_IP "DISPLAY=:0 nohup chromium-browser"where REMOTE_IP is the machine you are connecting to.


hi there from the description I see that u run natty in virtual machine. just clarify whether the usb modem is configured in the devices of the virtual box and make sure that connect automatically is ticked on.if it doesn't work start delete the connection and start from the start


There are no quick fixes defined for HTML5. Qt Creator is an IDE targeted at Qt development, so it fully supports C++/QML (and C, Obj-C and similar languages). HTML5 is out of scope for this IDE.


How to configure IPVS loopback address with netplan in Ubuntu 18.04?

It turns out that the netplan configuration did assign the additional loopback address to lo, but ifconfig couldn't display it, which was misleading me. When I manually ran ifconfig lo:0 12.34.56.78 netmask 255.255.255.255 it displayed lo:0 just fine. But netplan assigned the address to lo, not lo:0. Running ip addr revealed the additional IP address on lo.

Upon further reading, I found that ifconfig (net-tools) has long been deprecated in favor of ip (iproute): https://serverfault.com/questions/633087/where-is-the-statement-of-deprecation-of-ifconfig-on-linux


It's not recommended to install a version of php that isn't provided by the default ppa's, but if you want to do it this is what you should do:

First we add a repo that contains the file we need, but as Ubuntu Server can't add repos at the default setting write the following command to be able to add repos:

sudo apt-get install python-software-properties

After that we can add the repo by typing:

sudo add-apt-repository ppa:ondrej/php5

Then we can upgrade php by typing these two commands:

sudo apt-get update
sudo apt-get upgrade

To be sure if you have the right version type:

php -v


Disk not choosable on Startup Disk Creator

VesaMenu.C23 is a GRUB boot file. The GRUB installation may have been corrupted.

If you are trying to burn an iso to live disc, look at these instructions from Ubuntu.
If you are trying to create a live disc from your current installation, look at this thread about remastersys.

A more specific question would help get a more specific answer, if these suggestions don't help...


Invisible cursor when using dual monitor

My cursor is going away sometime on one of my monitors.
Using "Change of user" and logging back makes it visible again, without a need to reboot or close all my session. Cool.


So, dpkg is trying to overwrite /lib/i386-linux-gnu/libply.so.2.1.0, which is already there and brought by the package libplymouth2:i386. My suggestion is to uninstall libplymouth2:i386 first, then run sudo apt-get remove -f and afterwords again install the package you jsut uninstalled.

Hopefully that will help.


Old Laptop: Kubuntu 18.04 not working. LUBUNTU and XUBUNTU are fine

I think your question contains the answer. Kubuntu (KDE Plasma) won't run on this 13 year old hardware. Plus 1GB RAM less than the minimum amount. You may try Lubuntu which is built with old hardware in mind. Or a bit polished and customizable Xubuntu should also run on old hardware. You may also get lucky with Ubuntu Mate.


Looks like this error is already known bug: https://bugs.launchpad.net/deja-dup/+bug/1741458

  This bug affects 7 people
  Déjà Dup  Confirmed   Undecided   Unassigned


Running something like sudo ufw deny 80 means to block incoming connections to port 80 on your machine. It does not block outgoing connections on port 80. If you want to block HTTP, you'll need to block outgoing connections on port 80. Additionally, rules in UFW take effect immediately assuming UFW is enabled (check sudo ufw status for the current status and rules).

UFW doesn't block access to ports from localhost; if it did so, there would be no reason to have that service installed, as nothing would be able to access it.

Note that UFW has a fallback policy for each category of connections (incoming, outgoing, and routed) if there is no policy to handle that connection. see the "Default" line when running sudo ufw status verbose. By default, (I believe) all incoming and routed connections are blocked, and outgoing connections are allowed.


After updates in 14.04 boots to black screen

After much searching I've got this fixed. For anyone else stuck here was the solution

sudo apt-get purge nvidia*
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia

good luck out there!


Pidgin purple-facebook based account opens up many chatboxes automatically

The problem was that I had over 150 unread messages in my inbox and pidgin was trying to open them all. A simple solution was to go to Accounts -> Manage Accounts -> Modify(the facebook account), go to the Advanced tab and untick 'Show unread messages'. This solved the issue. This never was a bug.


Is your videocard driver up-to-date? If no, update it with the following command in a terminal:

sudo apt-get install linux-headers-generic xserver-xorg-video-all libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core

Are you running a 32 bit or 64 bit system, how much RAM does the system have?


Will nautilus be replaced as the default file manager in 11.04?

Yes, Ubuntu 11.04 contains nautilus and it's the same as Ubuntu 10.10 release. The move to Unity has not effected the release or use of nautilus to show files and folders.

Yet.


How to fix the error, while updating my package list?

That error will do no harm (at least) but you can remove them manually by doing a sudo nautilus and then navigating to /etc/apt/sources.list and then delete the files not required , probably the files related to the upubuntu.com cause it doesnt have any files for Ubuntu 16.04 .


Not all laptops and PC's have the ability to boot from a USB device. If the option is not in the BIOS, it is not a feature that is supported. You may want to look into updating your BIOS, a more recent version may support USB booting.


Crossfire : http://crossfire.real-time.com/

Runescape Java : http://www.runescape.com/

Eternal Lands : http://www.eternal-lands.com/

PlaneShift : http://www.planeshift.it/

Puzzle Pirates : http://www.puzzlepirates.com/

Daimonin : http://www.daimonin.net/

A Tale in the Desert (not free): http://atitd.com/

Vendetta Online (not free): http://www.vendetta-online.com/

Adellion : http://www.adellion.com/

Second Life : http://www.secondlife.com/

Wurm Online (not free): http://www.wurmonline.com/

WoW, Runes of magic, Battle of immortals and some other play really well in Wine.


Attempted dual-boot goes straight to Windows 10

Thanks to @PonJar:

It turns out my problem was mainly not booting the USB stick in UEFI mode.  This caused the Ubuntu installer not to recognize Windows and also caused it to install in BIOS mode, meaning the computer will never use it when turning on normally!
I solved the problem by following this guide on installing in UEFI mode.  Note that under step 6, it says that when using manual partitioning you will need to set the mount point on the EFI partition to /boot/efi -- I wasn't able to do this but still installed fine.
Another thing to note, for those like me without much experience with partitioning: make sure the "Device for boot loader installation" is set to the entire drive you'll be using as opposed to just the Ubuntu partition.  It should be set properly by default -- I had changed it and I believe this was also part of the problem.


Check out the version released with Precise (wakeup 1.2). This version will also work in Oneiric, although at this point is not in the oneiric repositories. The newer one should be a lot more stable, and has been particularly updated with respect to the weather plugin: https://bugs.launchpad.net/wakeup/+bug/891033


Have a look iin your ~/.mozilla/ directory for a prefs.js. It is a plain text file (and not javascript). More info about pref.js on the mozilla site


samba.cnf security parameter is not present in smb.conf

I used a config file from who knows what version,  but this post referenceses it.
http://discourse.ubuntu.com/t/samba-in-14-04-broken/1301/2

I did not do any thing else mentioned in that thread other than use that smb.conf file. I did use the hosts allow = 192.168.0. Paramiter.  I also just ended up using users and not share.


If I understood correctly you are looking for "Wake on LAN", which is supported by DELL Optiplex systems (at least in principle).

Enable "Wake on LAN" in the BIOS of the target.
Disable "Deep Sleep" in the BIOS of the target.
On your "other" Computer (assuming it is in the same LAN) install wakeonlan . This tool can send "magic packets" to the target.
Now create a file (lets call it optiplex.wol) in your home directory with just MAC address of the Optiplex (like 54:04:a6:a0:90:a1) as content.
Type wakeonlan -f optiplex.wol - the machine should start within seconds


Android Studio shortcuts are not working

you need to change or disable some of the keyboard shortcuts and iBus preferences in ubuntu, In order to make your IDE keyboard shortcuts to work properly.

for keyboard shortcuts you can go to:

System settings-> keyboard -> shortcuts

and change or remove the shortcuts accordingly and for ibus preferences you can search ibus in search bar and open keyboard input methods.

check this question for other options.


The service is ssh, not sshd:

$ initctl list | grep ssh
ssh start/running, process 1379

So, do:

sudo service ssh restart


"It has to install from unauthenticated sources" from software updater

Seems that somehow you messed up your keyrings or your DNS got hi-hacked. I will ask you to execute one by one these commands and stop when you see an error:

Clean your sources.list:

sudo rename 's/\.list$/\.list\.disable/' /etc/apt/sources.list.d/*.list
sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup
sudo sh -c "echo 'deb http://us.archive.ubuntu.com/ubuntu/ $(lsb_release -sc) main restricted universe multiverse' >> /etc/apt/sources.list"
sudo sh -c "echo 'deb http://archives.ubuntu.com/ubuntu $(lsb_release -sc)-security main restricted universe multiverse' >> /etc/apt/sources.list"
sudo sh -c "echo 'deb http://archives.ubuntu.com/ubuntu $(lsb_release -sc)-updates main restricted universe multiverse' >> /etc/apt/sources.list"

Update your list (be sure that you have rebooted)

sudo apt-get update
sudo apt-get install ubuntu-keyring

Now update as normal:

sudo apt-get update
sudo apt-get upgrade

If you have another instance of apt-get please close it, be it Ubuntu Software Center, apt-get, synaptic, aptitude, gdebi, etc.


The update did not fail. It just could not retrieve one oft the PPAs you added. This PPA has been ignored and you are good to go.


Honestly, "for security reasons" it makes no sense to close port 22 but leave 5900 open. A port is a port. So let's look at the service on the other side. SSH can support 2 factor and public key auth. VNC had (may still have) and 8 character password limit. Edit: Furthermore, VNC has no encryption.

Move ssh to a different port, 4521 for example, and enable two-factor auth. That's security.


ubuntu server 12.04.01 don't have internet

First, the loopback interface is required and must not be removed. I suggest you amend the /etc/network/interfaces file to this:

auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.4.20
netmask 255.255.255.0
gateway 192.168.4.1
dns-nameservers 8.8.8.8 4.2.2.2

Get the system to re-read and use the amended file:

sudo ifdown -a && sudo ifup -a

Test:

ping -c3 www.ubuntu.com


What to expect from do-release-upgrade LTS->LTS (duration, problems, config adjustments, ...)?

How long will the LTS upgrade run (X minutes, X half-hours, X hours)? I know this depends on a lot of things, but a rough time-scale would be nice to know beforehand (it's very fast hardware and network connection).

Last time I did this it took just over 1/2 an hour. On a more than average internet connection. But indeed this will depend on a lot of things. If you have a desktop installed it will take longer. If you have more software installed than me it will take longer. If you have less installed it will take less time.

  Are reboots needed inbetween (-> SSH-only-access)?

Not when I did it and as far as I know the upgrade is done as 1 action. So a reboot at the end will be needed.

  Is constant user-input required?

No. But you probably want to watch most of the process as it happens.

  Will the updated important services (Apache, PHP, MySQL) just run or can I expect to have to update a lot of configuration files (if so which are likely needing adjustments)?

It did for me: apache and mysql ran instantly afterwards; but this largely depends on your setup; if you used deprecated options that got deleted in 14.04 those might give you troubles.

Both apache and mysql show clear messages if it does crash.

One thing I would advice: stop any services yourself and make a backup of the configuration files before you start the upgrade. Make a database dump, backup my.conf and /etc/apache2/conf, sites- etc.

  Are there any other known problems that occur often on a big LTS upgrade?

Yes, power outage. It seems to be very popular just when you start an upgrade for power outages to happen. So as with any major changes of your system: backup and check that you can restor it.

One other thing: after I did the upgrade on 1 machine we made an educated guess to what it would cost our company if the upgrade would bork. We decided it would be cheapest and safest to buy a new server and change the old one to a fallbackup server. That also made the upgrade easier: we could mess with apache setting, mysql settings and restore our backups. It took longer than an hour (days) but it was possible to do this during daytime and when we wanted it.


How to customize ubuntu live cd plymouth theme?

There's an answer to the following question on here:

How to change Live CD splash screen

Though, editing this file only works on the next non-LTS (13.10)


You need --reverse, see https://github.com/vgough/encfs/blob/master/encfs/encfs.pod:

  With --reverse it takes as source plaintext data and produces enciphered data on-demand.


UTC=no in /etc/default/rcS on a Fresh Install 14.04. Why?

If you install Ubuntu on a clean disk with no other OS, UTC=yes is used as default. In your situation, you have Windows aside Ubuntu. So in the installation Ubuntu detected Windows and set UTC=no. Although your Ubuntu is clean, the disk is not clean.


Bastion on Ubuntu 12.04 64 bit gives only a black screen

This helped me:

sudo apt-get install libtxc-dxtn-s2tc0

Mike_IronFist said at ubuntuforums.org:

  (Bastion) use S3tc textures and for some reason Intel graphics cards don't use these automatically on Linux.

Thread on the problem: http://ubuntuforums.org/showthread.php?p=11992661


In launcher, disable the music suggestion section

Simply remove the unity-lens-music package.


you can use the live CD to "reinstall" ubuntu and fix it. I face similar problem in the past when I try to resize the partitions areas.

so I hope this solution works for you.


How to install 64-bit .deb file on a 32-bit machine?

Provided that your hardware support 64-bits, which does:

  CPU op-mode(s): 32-bit, 64-bit

and the package was prepared to use multiarch, which is also true:

 dpkg -I viber.deb
 new debian package, version 2.0. <--- here
 size 57046082 bytes: control archive=8024 bytes.
       0 bytes,     0 lines      0
    1210 bytes,    29 lines      control
    9475 bytes,    33 lines   *  copyright
    7404 bytes,    85 lines      md5sums
      39 bytes,     2 lines   *  postinst             #!/bin/bash
     800 bytes,    35 lines   *  preinst              #!/bin/bash
     500 bytes,    24 lines   *  prerm                #!/bin/bash
 Package: viber
 Version: 4.2.2.6
 Section: non-free/net
 Priority: extra
 Architecture: amd64 <---- and here

you could just install the necessary 64-bit libraries and binaries which are dependency of the package (which is none, more about that later) that you need to run the application, with virtual zero performance impact. In my case, I just installed the package just fine:

$ sudo dpkg --add-architecture amd64
## adding 64-bits architecture package, in my system I didn't need to
## but it's likely you have
$ sudo apt-get update # this downloads the package list for amd64 arch
$ sudo dpkg -i viber.deb
Selecting previously unselected package viber.
(Reading database ... 268703 files and directories currently installed.)
Preparing to unpack viber.deb ...
Unpacking viber (4.2.2.6) ...
Setting up viber (4.2.2.6) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-menus (3.13.3-1) ...
Processing triggers for mime-support (3.56) ...
Processing triggers for desktop-file-utils (0.22-1) ...

And then started running into problems...

The package managers decided that they should not list any dependency for their package,

 Installed-Size: 141336
 Conflicts: Viber (<< 4.2.2.6)
 Replaces: Viber (<< 4.2.2.6)
 Maintainer: Viber Media Inc <support@viber.com>

which they actually need:

ldd /opt/viber/Viber | grep 'not found'
    libXcomposite.so.1 => not found
    libxslt.so.1 => not found
    libxml2.so.2 => not found
    libgstreamer-0.10.so.0 => not found
    libgstapp-0.10.so.0 => not found
    libgstbase-0.10.so.0 => not found
    libgstinterfaces-0.10.so.0 => not found
    libgstpbutils-0.10.so.0 => not found
    libgstvideo-0.10.so.0 => not found
    libsqlite3.so.0 => not found

so you must find and install the libraries missing manually! This is easy if you know the correct tools. apt-file comes handy here, also http://packages.ubuntu.com functionality "Search the contents of packages" comes fine also. But I went ahead and searched for them:

These files are already installed in my system, you only need to copy the package name, the one before the colon that ends with amd64. You should copy the package names as they are:

dpkg -S $(ldd /opt/viber/Viber | awk '{print $3}' | grep -vP 'not|viber')
libc6:amd64: /lib/x86_64-linux-gnu/libpthread.so.0
libc6:amd64: /lib/x86_64-linux-gnu/libdl.so.2
libc6:amd64: /lib/x86_64-linux-gnu/librt.so.1
libstdc++6:amd64: /usr/lib/x86_64-linux-gnu/libstdc++.so.6
libc6:amd64: /lib/x86_64-linux-gnu/libm.so.6
libgcc1:amd64: /lib/x86_64-linux-gnu/libgcc_s.so.1
libc6:amd64: /lib/x86_64-linux-gnu/libc.so.6
libx11-6:amd64: /usr/lib/x86_64-linux-gnu/libX11.so.6
libxext6:amd64: /usr/lib/x86_64-linux-gnu/libXext.so.6
zlib1g:amd64: /lib/x86_64-linux-gnu/libz.so.1
libgl1-mesa-glx:amd64: /usr/lib/x86_64-linux-gnu/libGL.so.1
libxrender1:amd64: /usr/lib/x86_64-linux-gnu/libXrender.so.1
libglib2.0-0:amd64: /lib/x86_64-linux-gnu/libglib-2.0.so.0
libglib2.0-0:amd64: /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
libxcb1:amd64: /usr/lib/x86_64-linux-gnu/libxcb.so.1
libglapi-mesa:amd64: /usr/lib/x86_64-linux-gnu/libglapi.so.0
libxdamage1:amd64: /usr/lib/x86_64-linux-gnu/libXdamage.so.1
libxfixes3:amd64: /usr/lib/x86_64-linux-gnu/libXfixes.so.3
libx11-xcb1:amd64: /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1
libxcb-glx0:amd64: /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0
libxcb-dri2-0:amd64: /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0
libxcb-dri3-0:amd64: /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0
libxcb-present0:amd64: /usr/lib/x86_64-linux-gnu/libxcb-present.so.0
libxcb-sync1:amd64: /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1
libxshmfence1:amd64: /usr/lib/x86_64-linux-gnu/libxshmfence.so.1
libxxf86vm1:amd64: /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1
libdrm2:amd64: /usr/lib/x86_64-linux-gnu/libdrm.so.2
libpcre3:amd64: /lib/x86_64-linux-gnu/libpcre.so.3
libffi6:amd64: /usr/lib/x86_64-linux-gnu/libffi.so.6
libxau6:amd64: /usr/lib/x86_64-linux-gnu/libXau.so.6
libxdmcp6:amd64: /usr/lib/x86_64-linux-gnu/libXdmcp.so.6

These I didn't had them installed, which I obtained using ldd /opt/viber/Viber | grep 'not found' | awk '{printf "%s$\n", $1}' | apt-file search -x -a amd64 -f - | sed 's/\:/:amd64:/':

$ ldd /opt/viber/Viber | grep 'not found' | awk '{printf "%s$\n", $1}' | apt-file search -x -a amd64 -f - | sed 's/\:/:amd64:/'
libgstreamer-plugins-base0.10-0:amd64: /usr/lib/x86_64-linux-gnu/libgstapp-0.10.so.0
libgstreamer-plugins-base0.10-0:amd64: /usr/lib/x86_64-linux-gnu/libgstinterfaces-0.10.so.0
libgstreamer-plugins-base0.10-0:amd64: /usr/lib/x86_64-linux-gnu/libgstpbutils-0.10.so.0
libgstreamer-plugins-base0.10-0:amd64: /usr/lib/x86_64-linux-gnu/libgstvideo-0.10.so.0
libgstreamer0.10-0:amd64: /usr/lib/x86_64-linux-gnu/libgstbase-0.10.so.0
libgstreamer0.10-0:amd64: /usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0
libsqlite3-0:amd64: /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
libxcomposite1:amd64: /usr/lib/x86_64-linux-gnu/libXcomposite.so.1
libxml2:amd64: /usr/lib/x86_64-linux-gnu/libxml2.so.2
libxslt1.1:amd64: /usr/lib/x86_64-linux-gnu/libxslt.so.1

apt-file was a tease to give me the 64-bit packages so I had to do sudo apt-file -a amd64 update to force it to have the 64-bit file list.

Now, let me explain what is all the above:

ldd /path/to/binary: reads a binary and tells you what are the required libraries, symbols, etc.
dpkg -S: search which packages provide a specific installed file.
awk, sed and grep: are modifying the text stream to process only the interesting parts or show the desired output.
|, $(...): the first allows me to pipe the output of a command to another, and the later allows me to execute/evaluate a command before the main ones gets executed.

TL;dr just install these packages:

sudo dpkg --add-architecture amd64 ## adding 64-bits architecture package
sudo apt-get update
sudo apt-get install libgstreamer-plugins-base0.10-0:amd64 libgstreamer-plugins-base0.10-0:amd64 libgstreamer-plugins-base0.10-0:amd64 libgstreamer-plugins-base0.10-0:amd64 libgstreamer0.10-0:amd64 libgstreamer0.10-0:amd64 libsqlite3-0:amd64 libxcomposite1:amd64 libxml2:amd64 libxslt1.1:amd64 libc6:amd64 libdrm2:amd64 libffi6:amd64 libgcc1:amd64 libgl1-mesa-glx:amd64 libglapi-mesa:amd64 libglib2.0-0:amd64 libpcre3:amd64 libstdc++6:amd64 libx11-6:amd64 libx11-xcb1:amd64 libxau6:amd64 libxcb1:amd64 libxcb-dri2-0:amd64 libxcb-dri3-0:amd64 libxcb-glx0:amd64 libxcb-present0:amd64 libxcb-sync1:amd64 libxdamage1:amd64 libxdmcp6:amd64 libxext6:amd64 libxfixes3:amd64 libxrender1:amd64 libxshmfence1:amd64 libxxf86vm1:amd64 zlib1g:amd64

You also need to install the 64-bit kernel.


The problem was caused by  VirtualBox and the fact that I had 4 virtual processors set for the virtual machine.  After changing this back to 1, everything worked correctly.


Suspend during upgrade to 14.04 caused CORRUPTION

You need to use either a CD or a USB pen drive that has the version of Ubuntu you want to install/reinstall.

For a USB you can use this website to format your usb and install a bootable version of ubuntu.

When this is done, restart the system, boot from usb and run through the system.

You can repair, format, install clean copy etc.


Distupgrade issues. Upgrading from Ubuntu 16.04 to 18.04

Ok so what I did was:

Wiped the drive doing repartitioning and formating.
Booting into the Ubuntu USB 18.04 environment now worked.
Installing Ubuntu 18.04 from the USB.

At reboot the old issue reappeared. Everything stalled. After reboot got to the boot options and I could boot into the recovery environment.
In the recovery menu selected 'fsck' option.
Then tried a normal boot and I could now boot into the newly installed Ubuntu 18.04 on disk.

Edited:

sudo nano -w /etc/default/grub

Added:

GRUB_CMDLINE_LINUX="nouveau.modeset=0"

saved the file.
Then I ran:

sudo update-grub

Now I can properly boot into my Ubuntu OS


How to give more ram to virtualbox on Ubuntu than what its limited?


Removing xserver-xorg-input-synaptics

and installing xserver-xorg-input-all worked for me

sudo apt remove xserver-xorg-input-synaptics
sudo apt update
sudo apt install xserver-xorg-input-all
sudo apt upgrade
reboot


Screen Resolution issue on Ubuntu 13.04 installed under Virtualbox

I had a similar issue and am running a 13.04 guest, I could not see the virtualbox menu tab and fullscreen windows would extend below the bottom of the monitor.
Here is how I resolved it:
As reference, take a look at these-
http://ubuntuforums.org/showthread.php?p=8595940

https://wiki.ubuntu.com/X/Config/Resolution

Even though the resolution was set correctly in the "display" tool, the only thing that fixed it was setting it manually.
First I tested to be sure with xrandr:

xrandr --output VBOX0 --mode 1920x1080 --rate 60

I had to minimize back to my host desktop (win8) and then back to the vm before I could see the virtualbox menu tab again, but the resolution changed immediately and no longer extended below the monitor.
I wanted the change every time I logged in, so I did:

vim ~/.xprofile

And then entered into the new file:

# To correct resolution error
xrandr --output VBOX0 --mode 1920x1080 --rate 60

This has resolved the problem for me.


Connect with sudo mysql -u root -p and it will prompt you for the password. The key here is the -p option. You can also provide the password as part of the command with the -p option, but that is considered a security risk, since the password will be stored in clear text in your commands history.


A reasonably current pip comes with built-in functionality to create completion helpers for bash, zsh or fish:

$ pip help completion

Usage:   pip completion [options]

Description:
  A helper command to be used for command completion.

Completion Options:
  -b, --bash                  Emit completion code for bash
  -z, --zsh                   Emit completion code for zsh
  -f, --fish                  Emit completion code for fish

You can use it like so:

pip completion --bash >> ~/.bashrc

And then start a new shell or source ~/.bashrc to have it take effect.


How do I configure vsftpd to use a GoDaddy SSL certificate bundle?

For port 22, you're typically using SFTP and not FTPS. The difference is FTPS uses an SSL public/private key pair to secure the FTP transactions and still requires you to authenticate via username and password. With SFTP you're using a public/private keypair you generate yourself and is tied to a specific user to use for authentication. The public key is stored in the vsftp server for the user while the client you're connecting from presents the server with the private key. I think your issue is that the two are being confused as the error logs are looking for ppk files to present to the server for authenticating the user.

To clarify for you, port 22 is already open through the EC2 instance so you actually don't need vsftp, but instead just use the private key provided by AWS when you created the instance and you should be good. You don't want to use vsftp to use port 22 as then you will have no way to ssh into your instance without changing the port SSH runs on. the OpenSSH server that's there by default already gives you sftp functionality. If you specifically want to use FTPS then you'll need to connect to the port you defined in your vsftp configuration and open up any necessary firewall ports in the security group the EC2 instance uses.


Network manager doesn't remember login (username)

So you are using openconnect, with the corresponding NetworkManager plugin.

Sounds like https://bugzilla.redhat.com/show_bug.cgi?id=1332491

It's a bug in libnm. Fixed upstream.


Two options exist.
a. Qt4-based version from 18.04 LTS
It is possible with special Qt4 PPA. Install the application by the following commands:
sudo add-apt-repository ppa:rock-core/qt4
sudo apt-get update

cd ~/Downloads
wget http://security.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/q/qjson/libqjson0_0.8.1-3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openambit/libambit0_0.3-1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/o/openambit/openambit_0.3-1_amd64.deb

sudo apt-get install ./multiarch-support_2.27-3ubuntu1.2_amd64.deb ./libqjson0_0.8.1-3_amd64.deb ./libambit0_0.3-1_amd64.deb ./openambit_0.3-1_amd64.deb

and then use it as before.
b. Qt5-based version from PPA
There is a PPA on Launchpad with newest 0.5 version.
To install packages from it use commands below:
sudo add-apt-repository ppa:dominik-stadler/dsta-focal-ppa
sudo apt-get update
sudo apt-get install openambit


show my login name in the menu bar option not work

you can try with the following command

gsettings set com.canonical.indicator.session show-real-name-on-panel true

if you want to go back and not show your name

gsettings set com.canonical.indicator.session show-real-name-on-panel false

The nice thing of this solution is that you won't need to install any additional software normally.

EDIT: it seems that that there is a bug:

https://bugs.launchpad.net/ubuntu/+source/indicator-session/+bug/1640409

and no solution was released so far


How to find out which "Unknown" program is still running and preventing shutdown?

This is actually a feature, not a bug. Before this, the system would log out at the loss of unsaved work and be blind to any damage.

Nowadays, applications that perform lengthy tasks worth awaiting, register themselves via DBus with the shell; these can be video encoding, uploading and syncing Ubuntu One or DropBox tasks and so on.

Sometimes applications may crash and therefore fail to deregister their pending tasks, and they may or may not be firefox.

You can investigate your shutdown inhibitor with any DBus viewer like d-feet:

On the session bus, the org.gnome.SessionManager interface will expose the method GetInhibitors(), which returns for example ['/org/gnome/SessionManager/Inhibitor2']. The object at this path will allow you to query various things, like GetAppId() (e.g. Handbrake), GetReason() (e.g. Encoding), GetToplevelXid() (e.g. 79691816L). Especially the latest may be of use: You could issue xwininfo -id 79691816 and thus verify if the window still exists and if it does, what its real title is.


File sharing between Ubuntu VM and Windows 7

1. umount -f

This is not a solution nor work around, but a procedure (an annoying one).

After VM resume, do not try to view the share drive with Nautilus or any program. Do not do ls to it. Any kind of access will trigger a 5min timeout and make the share busy. Just do the umount -f before anything.

    umount -f <localsharepath>

-f Force unmount (in case of an unreachable server).

As long as the share is not busy, this will unmount the share immediately without triggering the 5min cifs timeout.

This is definitely not ideal, but it does not require rebooting and the share can be mount again right away.

2. Change smbfs to cifs with defaults

//<remotehost>/<sharename> <localsharepath> cifs defaults,uid=1000,username=<remoteusername>,password=<remotepassword> 0 0

It is official that smbfs is not being maintained anymore

  smbfs has not been maintained in the last few years. Instead, development has been focused on another implementation of the CIFS protocol in the kernel. See the CIFS VFS for more information.

Base on comment of this blog (cannot find more authoritative reference)

  stintel Friday 9 May 2008 : Another nice thing about CIFS is that it should survive a network outage or even a reboot of the system you are mounting a share from

3. Disable Opportunistic Locking and Lookup Caching (No effect in reducing the 5min connection timeout)

echo '0' > /proc/fs/cifs/OplockEnabled
echo '0' > /proc/fs/cifs/LookupCacheEnabled

4. Check Open File (Not applicable base on comment)

After Ubuntu VM resume, check if any user/process is using any file/directory in share folder

lsof | grep '<localsharepath>'

If any user/process is using files/directory in < localsharepath >, you will get device busy(This is regardless of how it is mount, local or remote).


I want to upgrade from 10.04 but I don't know how since update hangs

Even if it is possible to upgrade an Ubuntu LTS version to the next version (12.04 to 14.04),
I strongly recommend the clean installation of a current supported system such as 14.04.
The support of Ubuntu 10.04 ended in April this year and ... this system is five years old !
Most of the included software, like kernels, frameworks and applications are outdated.
The experience of users attempting an upgrade of such an old system is not very good.


Installing Mercurial: start with Ubuntu Desktop or Server?

It doesn't really matter - you can install the same packages (such as apache2) on Ubuntu Server and Ubuntu Desktop.

If you start with Ubuntu Desktop, you will need to install server related packages whereas Ubuntu Server comes with them pre-installed. You will also probably want to uninstall software not required for a server.

If you start with Ubuntu Server and need/want a graphical user interface (by default it is just command line) and desktop applications, you will have to install these.

Ubuntu Server FAQ


How do I switch from GNOME to Unity after an upgrade?

I think it depends on how you switched it... Have you tried clicking the Ubuntu icon by the login name at the login screen, then switch it to "Ubuntu"? If you could explain how you "changed the desktop to Gnome" in the first place, maybe we could see about reversing that change.


First, that computer is old enough that I'm not 100% sure of its CPU and EFI bit depths. These are critical details to know so that you download the correct Ubuntu version and use the correct installation procedure. In brief, most modern computers have 64-bit CPUs and 64-bit EFIs, so installing a 64-bit Ubuntu on them is appropriate. The first generation of Intel-based Macs, though, used 32-bit EFIs, mostly (or maybe exclusively) with 32-bit CPUs. These would require a 32-bit Ubuntu -- but 32-bit Ubuntu images don't support booting in EFI mode, which complicates things. A further complication is that some early Macs (mostly the first iteration of modifications after that first 32-bit generation) used 64-bit CPUs but 32-bit EFIs. These can use a 32-bit Ubuntu installed in EFI mode by jumping through some hoops, or a 64-bit Ubuntu installed in BIOS mode by jumping through fewer hoops, or a 64-bit Ubuntu installed in EFI mode by jumping through other hoops. In brief, they're a real complicated mess to explain.

All that said, when I Googled "macbook 2007 specs," I got this page, which suggests your machine likely has a 64-bit CPU and a 64-bit EFI. If this is correct, it makes things much easier. To be sure, please run the following command in an OS X Terminal window:

ioreg -l -p IODeviceTree | grep firmware-abi

This should return either EFI32 or EFI64. If it's the former, STOP! You're in for a wild ride, and you'll need to do more digging and make decisions about what set of compromises to make. If the preceding command returns EFI64, proceed....

You say you converted the .iso file you downloaded to an .img file, but you don't say how you did this. In most cases, this is an unnecessary step and is more likely to create problems than to solve them. Broadly speaking, there are two ways to write an Ubuntu installation .iso file to a USB flash drive:

Using dd -- You can use the dd program to write the .iso file to a USB flash drive. This works because Ubuntu's .iso files use a Frankenstein's monster sort of format, which can be read as either an optical disc ISO-9660 filesystem or as a partition table and related filesystem structures for a hard disk. Most (but not all) computers can read this format just fine when written to a USB flash drive, via a command like sudo dd if=image.iso of=/dev/disk2. That will transfer image.iso to the (OS X) /dev/disk2; change both filenames as necessary for your system.
Using a transfer tool -- Programs like UNetbootin (available for Linux, OS X, and Windows) and Rufus (Windows only, the last I checked) can read the .iso file and create a bootable USB flash drive. Most of these tools create images that can boot in either BIOS/CSM/legacy mode or in EFI mode, but there are exceptions and system-to-system quirks when booting from such images. Thus, I can't promise that any given program will work for you; however, Rufus generally has the best reputation of these programs, so if you have access to a Windows system, you may want to try it first.

In practice, you may need to try two or more tools for creating a bootable USB flash drive; you'll just have to try one after another until something works.

rEFInd should detect the disk as bootable once it's been properly prepared. There are a few caveats, though:

You may need to hit the Esc key to get rEFInd to detect the external disk. This is because external disks are sometimes slow to register themselves with the firmware, so they don't show up immediately in rEFInd's menu. Hitting Esc causes rEFInd to do a new scan for bootable devices, thus working around this glitch.
You may see two entries for your external medium, one for booting in BIOS/CSM/legacy mode and one for booting in EFI mode. I recommend installing in EFI mode if possible, so you should use the EFI-mode boot entry. This entry is likely to be described as booting the "fallback loader," and is likely to have a generic icon, not a Linux or Ubuntu icon. The BIOS boot loader, by contrast, is likely to have a Linux icon and a description that includes the word "legacy" in it.
Booting external media in BIOS/CSM/legacy mode on Macs is a hit-or-miss proposition. It might work fine, or rEFInd might throw up an error. If rEFInd fails, you could hold down the Alt (or Option) key while starting up the computer. That should bring up the firmware's built-in boot manager, which might (or might not) do a better job of booting the USB drive in BIOS mode. This difficulty is one of the reasons I favor doing an EFI-mode installation (but there are other reasons, too).
If you'll be using rEFInd, you may want to boot the Ubuntu installer in its "try before installing" mode, launch a Terminal, and type ubiquity -b. This will cause the installer to set up Ubuntu without installing GRUB, which is redundant. If you boot straight into the installer, GRUB will be installed, which may take over the boot process. In some cases GRUB may be unable to launch OS X. This problem can be overcome, but avoiding it entirely may simplify things. OTOH, if you must boot Ubuntu in BIOS mode for some reason, you'll need GRUB, so you should ensure that it is installed.

This information should be enough to get you started, provided the information I found that suggests your machine has a 64-bit EFI is correct.


My computer is also a hp, in my case the orientation sensor is under the keyboard rather than the screen so UBUNTU and GNOME make things difficult.

To return the screen to normal incline the computer, pretend that the screen is the keyboard and the keyboard the screen; in that orientation the screen will return to normal. Now go to the top right menu and check for the 3 buttons in the bottom, the middle one is to lock the screen rotation, click it and the screen will no longer change orientation.


Can I get close buttons to plasma widgets?

DK Bose's solved the problem. Left-click anywhere above the toolbar (but not on the toolbar itself) minimizes the widget.


How to check SSD/HDD model used on a VPS?

SSD disks are automatically detected, and you may verify this with:

cat /sys/block/sda/queue/rotational

If it's 1 it's a hard disk and if 0 it's a SSD.


Kubuntu 14.04.4 LTS: mouse pointer disapeared

I had almost exactly the same problem when moved to kernel 4.5.1.

After adding kernel parameters, it appeared again.

You could try to add these two parameters:

i8042.nomux=1 i8042.reset

to /etc/default/grub file to variable GRUB_CMDLINE_LINUX_DEFAULT

Remove hash sign before that line to make effect.

Finally, save file, and update grub with grub-update command. Run with sudo or as root user. Then reboot the machine.


How to upgrade coreutils from 8.21 to 8.24 in Linux Ubuntu 14.04?

You can download, compile and install coreutils into a user defined directory for non system use.

Running as root, I used the following commands to install version 8.27 to /root/coreutils

cd /root
wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.27.tar.xz && tar xf coreutils-8.27.tar.xz
export FORCE_UNSAFE_CONFIGURE=1
cd /root/coreutils-8.27 && ./configure \
        --prefix=/root/coreutils            \
        --libexecdir=/root/coreutils/lib    \
        --enable-no-install-program=kill,uptime && make && make install

You can then run the command using the absolute path of the installed binaries.

 $ /root/coreutils/bin/dd

Update the wget url to use the version you desire. You can find coreutil releases here http://ftp.gnu.org/gnu/coreutils/


Upgraded to Ubuntu 13.10 - Apache not able to start

Replacing this line

LockFile ${APACHE_LOCK_DIR}/accept.lock

with this one

Mutex file:${APACHE_LOCK_DIR} default

in /etc/apache2/apache2.conf solved the problem.

Additional Info:
It occurs because the upgrade also upgrades your PHP. If you upgrade from PHP5.3.X to PHP5.5.X - and choose to keep your modified files you will find this error.


Unable to list windows shares from terminal

You need to specify the name of the remote machine to -L. If you want to force the use of a specific IP, pass it with -I.


I think this is What you are looking for

Notifyconf in Launchpad

There was a story about it done on Webupdate last May Here

Its not a normal PPA the install instructions are as follows

You need to run each of these commands separately

bzr branch lp:notifyconf
cd notifyconf
make
sudo make install

After install it will be in your Accessories


To add our PPA and install the latest Oracle Java (JDK) 7 in Ubuntu, use the commands below:

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update && sudo apt-get install oracle-jdk7-installer

After the installation you have enable the jdk:

update-alternatives –display java

Check if Ubuntu uses Java JDK 7

java -version

The correct answer should be like this:

javac 1.7.0_07

Adding JAVA_HOME to environment

Edit the file /etc/environment and add JAVA_HOME=/usr/lib/jvm/java-7-oracle to the end of the file.

First open a Terminal (Applications → Accessories → Terminal), then enter:

sudo gedit /etc/environment


NTP is not designed to track anything except the one true time, so this setup is not guaranteed to work.

However, if you stop NTP, set your clock manually to the desired time, configure NTP with the local clock driver as its sole source, and start NTP again, it should use that time.

The clock driver selection should be as follows:

server 127.127.1.1 iburst prefer
fudge 127.127.1.1 stratum 0

And you should ensure that there are no other peer, pool, or server lines present in your configuration.

Note that this will make your system subject to the inaccuracies of your local clock, which is not recommended.

Note also that NTP always works in UTC, so the local time zone has no relevance.  It's used for display only.


hdfs: command not found with Hadoop2.9.0

I hope this error is resolved by now, but this error occurs because the hdfs path may not be set, so first check hdfs path by using this command,

which hdfs

if path is not set, then check the environment variable in ~/.bash_profile if it PATH is written like this,

PATH=$PATH:$HOME/bin

change it to this PATH=$PATH:$HADOOP_HOME/bin

source ~/.bash_profile

then check the your hdfs path, if it is set by using which command(as shown above) Then your problem might get resolved. Hope this helps!


Can't install Ubuntu 15.10 on HP ProBook 440

It might be worth to try using rufus instead of unetbootin.


well.  i never found a fix for this.  i have established that printing works perfectly fine for everything except for the default PDF viewer.  to work around the problem i open the PDF in any other app, e.g. Chrome, and print it from there.

edit.  it fixed itself.  i had plugged the printer in to a USB hub.  when i plugged it directly into the laptop it downloaded another driver and after that it started working.


Ubuntu 18.04 with two NIC in two networks with netplan

ens34 has no gateway, thus no internet access.

10.168.x.x and 10.170.x.x are on different subnets, they can't talk to each other by default. You need to get both NICs on the same network (the same as the other client machines) and use the same gateway.

Test it with setting a static IP.
https://websiteforstudents.com/switch-static-ip-address-ubuntu-17-04-17-10/


Is there a way to connect with the real router(server) from the fake one?

Honestly, this sounds more like a user problem than a technological one. Just don't allow people on your home network if they cannot configure their devices correctly.

When configuring addresses manually, people tend to choose them from the low end of the address space. You could move your gateway to .254, set your DHCP pool to .100 - .199 and keep statically allocated addresses in the low end of your subnet. Remeber to document everything (a single post-it will do!) so that people don't reuse existing allocations.

You could also set the ARP tables manually on the PCs to point 192.168.1.2 to the eth1 interface of S/R. On the Linux PCs, run sudo arp -i <iface> -s 192.168.1.2 <macaddr> where <iface> is the Ethernet interface, likely eth0. <macaddr> is the hardware MAC address of the eth1 adapter on S/R, which you can find by running ifconfig eth1 on the server.

If you are a professional network admin, you likely already have the skills and hardware budget to keep misconfigured hosts from disrupting the network.


I have done some reading & research but I`m rather confused about the whole issue of partitionning ie can I do that if I already have the following partitions:
Boot: 75GB used 47.5GB free (system NTFS) Recover: 7.20GB used 19.20GB free (system FAT32)

Yes that is possible.

Also I don`t quite understand LIVE CDs beyond that they are the operating system equivalent of perfume testers.

A LiveCD (or a LiveDVD) is a CD (or DVD) that you can use to try out the operating system without installing, or install it. So, yes, it's basicly both a perfume tester and the perfume itself in one.

I got some CDs from recent magazines I bought (UBuntu 13.04 and 12.10 - both 32bit), can I use these as LIVE CDs? If so how do I do that? Do I need to press a key when rebooting?

Yes. Put the disc of 13.04 in your PC, turn your PC off, and turn it on again. Wait a moment and a menu should appear that asks if you want to try Ubuntu without installing, or install it.
If not (and Windows Vista appears again), you should restart your PC again, and wait until the screen appears with Press <some button> to access boot menu. Then quickly press that key, and in the menu that appears, choose CD-ROM using the arrow keys and Enter.
Before installing, MAKE A BACKUP FIRST! Most installations will go flawlessly, but, like with everything, there's always the possibility of things going wrong.
The installation is pretty self-explanatory.
About partitioning:
The partitioning is really easy.
During installation, you can choose to install alongside Windows or install instead of Windows (WARNING: THE LATTER WILL DELETE ALL YOUR FILES STORED IN WINDOWS!!!). If you install alongside Windows, something like this will appear:

Just slide the line between Windows and Ubuntu to choose how many GB's you want to reserve for Windows and for Ubuntu. Then click "Install Now".
If you have any more questions, feel free to ask them!


How can I access gedit's settings menu in 18.04?

With gedit in focus, you should see it up in the activities bar, separate from gedit's window. Click to open the drop down menu, and you will find Preferences.


Spent far to many hours trying to install the drivers for a GTX750 card. In my case, my card is too new for the open-source drivers, and the installer on the nvidia website didn't like my system.
I was also unable to bring up a console - the reason is that without the drivers it cannot recognise the monitor, and tries some weird resolution/refresh combination (1920x1024, 95hz!)

I found that by enabling "multiple monitor" mode in BIOS, ubuntu would use the integrated graphics instead of the GPU card, then I could get to the console and disable X with the graphics card installed.

The only place I had luck was at the website smxi.org.
There is a script there which I used to download and install the latest nvidia driver (which it pulled from a nvidia FTP repository). It also cleaned up from my previous install attempt. Since then graphics are working well, with no glitches so far (knock on wood).


Problem has been fixed. For the references of others it was fixed when I took the bottom off my laptop and cleared it with a compressed air duster. Overheating may have been the problem.


32-bit or 64-bit for a Intel Celeron 2.93Ghz processor?

If you are not using a 64-bit machine then the i386 (32-bit) image is the one for you...

Also going by your answer you say it's not AMD64 (an actual AMD processor) which is fine, AMD64 images will run on 64-bit Intel processors as well...


Find files with certain text within certain date range

The proper way is to add an -exec option.
find /MY_DIR/ -type f -newermt "2017-12-01" ! -newermt "2021-01-31" -exec grep -l XYZ {} +

Also added -type f option to only look for regular files, not directories, sockets, etc.


How to boot from USB when USB stick is plugged in and otherwise Windows from HD?

Configuring the computer to boot from the Ubuntu USB stick if it is inserted, otherwise to boot to Windows if it is not inserted can be done by changing the boot priority settings, which is often found under the Boot tab of the computer's BIOS/UEFI utility. The BIOS/UEFI utility can be accessed by pressing the key which is shown on the manufacturer's splash screen when booting. This is the F12 key on many computers. The keys to press, such as F12, F2, Del or Esc, differ on computers from different manufacturers.

When the power button is pressed to start the computer, it will try to boot first from whatever option is listed first in the boot priority section of the computer's BIOS/UEFI utility. If the USB stick is listed first in the boot priority list, it will try to boot from the USB stick first. If the internal hard drive where Windows is installed is listed first in the boot priority list, the computer will boot to Windows.

If the computer can't boot to the first device in the boot priority list because it is not attached, it will try to boot from the second device in the boot priority list instead. If the USB stick is listed first, but it is not currently inserted in the computer, the computer will skip the USB stick when booting and boot Windows from the hard drive instead, assuming that the Windows hard drive is the second device in the boot priority list.


I upgraded to 12.04 but my PC boots to command line instead of Unity or Gnome2. Help!

I'm sorry for a slow response, but you may want to try sudo sh /usr/share/ati/fglrx-uninstall.sh to remove flgrx which appears to be acting improperly.

Also try
sudo apt-get remove --purge fglrx* and if you get a warning, run:

sudo rm -rf /usr/share/lib/fglrx
sudo rm -rf /usr/share/lib32/fglrx

followed by the command to purge the package(listed above). I hope this helps.


The resynthesizer plugin requires Python V2 support (the core component is called from two Python scripts). But since Ubuntu 20.04 the Python support is not include in he distributed Gimp because Python v2 is deprecated.
In addition it is not clear that the external resynthesize module can access libraries in the SNAP.
IMHO your best solution is to use the Gimp distributed as a flatpak by the Gimp project which:

is more up-to-date than Ubuntu snaps
comes with its built-in Python v2 support
and has are companion flatpaks for popular plugins (resynthesize and GMIC among others).


Installing Windows 7 after installing Ubuntu on btrfs: how to restore boot?

Use this image and start from USB, when using yumi (pendrivelinux.com) choose install unlisted ISO (grub) option.

http://www.supergrubdisk.org/super-grub2-disk/

You can detect OSes and also repair grub.

HowTo:

Insert bootmedia in to its drive (e.g. USB or CD/DVD)
Set the media to be the first booting device in BIOS
Then boot; if you used yumi select "grub bootable isos  or xp/7..."
choose the SGD2
Find out where your Linux is installed (detect any OS) and select
Install GRUB using

sudo grub-install /dev/YOURLINUXDRIVE
Finished
-


How to determine awscli package bug between two environments

This is not a nice workaround, but I found that with sudo pip install --upgrade awscli, I could obtain a newer version than what is available in the OS repos, and upgrading solved the problem.

Would prefer a solution that explains what's going on and how to solve it with a proper system package modification though.


I too had the similar issues. Please try following command on your Ubuntu terminal.

sudo rmmod acer_wmi

Each time you start your computer, you need to type above command. You may do following to solve the issues and you won't need to execute the above command again and again.

sudo -i
echo "blacklist acer-wmi"  >>  /etc/modprobe.d/blacklist.conf
exit

Reboot the system. Enjoy!!


GRUB2: Always fails to boot have to do a manual configfile on each boot

In the 13.04 beta, I downloaded you can fix the underlying cause for this problem by manually partitioning the drive you are installing too, to add a EFI partition at the very beginning of the drive. This makes the installer realize that it needs to install grub-efi there.

Let's first off, boot your system from the Rescue GRUB prompt.

Reboot the system, and boot into the correct drive for your install with Ubuntu. You should be presented with a grub rescue> prompt. From there type the following to boot into the system.

set prefix=/boot/grub/
insmod normal This should turn your prompt's text from grey to white.
insmod linux.
linux /vmlinuz root=/dev/sdXY ro Replace X and Y with letter and number of your drive.
initrd /initrd.img
boot.

This should start the boot process for your system.

Now that your are in your system, it's time to fix the underlying problem. For me that problem is that it can't find the /grub/i386-pc/ folder. The following should have you booting your system without having to rescue it.

Press Alt + F2.
Type gksudo nautilus and press Enter.
Type your password.
Copy your /boot/grub/ directory into your / root directory.

The end result should be that you still have a /boot/ and now you have a /grub/ directory. Reboot the system and it should work. If it does not work, well, you're back at square one.

It seems to me that the under the following circumstances that GRUB will fail to boot the system right after installation of Ubuntu 12.10 if the following conditions are TRUE.

You have an UEFI based system.
During the install process you delete the entire disk that you are installing too.
After deleting the entire disk, you do not make a new partition, but simply click next and let the installer do it's magic.

This seems to me where the problem stems from, because the installer does not take into account that it needs to make a EFI partition for the /boot/ directory, but GRUB does not get this memo at all and as far as it knows the /boot/ directory is on it's own partition. From there GRUB tries to read /grub/ but it can't because it's nested in /boot/grub.

That's my take on it anyway. Thankfully my system now boots without me having to do some crazy kung-fo on the grub command line.


Leapfrog Crammer won't mount as a USB flash drive

Before trying anything too complicated, have you opened Disk Utility and looked to see if the other partitions are listed and just not mounted?

We've seen an increase recently in "flip flop" USB hardware. This hardware (typically things like USB 3G modems or printers) originally registers itself to the host computer as a USB mass storage device (flash drive) containing the driver, and then the driver is able to change the mode of the hardware to access its real functions. I suspect that this may be what is happening with the Leapfrog Crammer.

The piece of software responsible for automatically changing the mode of this hardware in Ubuntu is called usb_modeswitch. In all likelihood, usb_modeswitch doesn't yet know that it needs to change the mode of the Leapfrog Crammer, and may not know how. The usb_modeswitch homepage has documentation on how to modify the configuration to handle new devices


ubuntu 16.04 - xmr999 process %100 CPU usage ,

From another report: https://centos.org/forums/viewtopic.php?f=48&t=70067 it would appear your system is being used for bitcoin mining. If you aren't doing it then your system may have been hacked and someone else is using your computer to mine bitcoins.