Gnu Grub menu does not recognise my MS Windows installation

First I would run sudo os-prober and see if it finds the Windows installation. If it is not installed run sudo apt-get install os-prober then run it and if it finds Windows run sudo update-grub and it should create the menu item.

If this doesn't work then I would run sudo fdisk -l (-l is for List) and look for your hard drive. It will look something like this:

Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000702fc

Device     Boot    Start      End  Sectors Size Id Type
/dev/sda1  *        2048 33554431 33552384  16G 83 Linux
/dev/sda2       33556478 41940991  8384514   4G  5 Extended
/dev/sda5       33556480 41940991  8384512   4G 82 Linux swap / Solaris
/dev/sda6       41940991 50950020  8250580  16G 0b FAT32

Again this is only an example yours will look different and may be labeled differently. I don't actually have a Windows XP partition on the system so I 'faked' it on this example.

For this I would assume that my Windows XP is installed on /dev/sda6 This will be important for the following step.

Now we need to create a custom menu item for GRUB

Open terminal and type:

sudo gedit /etc/grub.d/40_custom

you can substitute gedit with your favorite editor but it needs to be run as sudo to be able to edit the file.

add the following to the very end of the 40_custom file (if the file is completely blank then you typed in something wrong or you don't have grub2 and these instructions will not work for you... double check to see if you have a /etc/grub.d folder)

menuentry "Windows XP" {
set root=(hd0,6)
chainloader (hd0,6)+1
}

Explanation for this entry... you will need to change the hd0,6 in the entries to match your Windows partition. The hd0 refers to sda, if you have more than one hard drive and your windows partition is on sdb then you would need to use hd1 instead but for you, I'm assuming that you are on sda which you determined by the fdisk command you ran earlier. The ,6 in my example is because we determined that the Windows installation was on /dev/sda6 - sda(hd0)6

Once you modified the 40_custom file it should look something like this

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

#echo 'Adding 40_custom menu entries' >&2

menuentry "Windows XP" {
set root=(hd0,6)
chainloader (hd0,6)+1
}

save the file and run sudo update-grub it should add a menu item for Windows XP ... try and reboot and check to make sure it boots into Windows
If you did everything correctly you should be all set.

From the new information giving the 40_custom file should look like this:

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

#echo 'Adding 40_custom menu entries' >&2

menuentry "Windows XP" {
set root=(hd0,1)
chainloader (hd0,1)+1
}

Due to problems with "Invalid Signature" we need to do some more work

You need to open terminal and enter sudo blkid look for the UUID for /dev/sda1 and copy it. then you will need to edit the 40_custom with the following:

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply  type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

#echo 'Adding 40_custom menu entries' >&2

menuentry "Windows XP" {
insmod ntfs
set root=(hd0,msdos1)
search --no-floppy --fs-uuid --set 822CB74E2CB73BCB
chainloader +1
}

(edited with the information given in comments)

save the file and sudo update-grub again and try once more .. hopefully now you wont get the Invalid Signature


Tomcat 7 not getting started from Eclipse

If tomcat7 from apt installed correctly try to select another Tomcat installation directory in your first screenshot, in Manually --> section. Select Apache Tomcat v7.0 and installation directory should be /usr/share/applications/tomcat7 not /usr/share/tomcat7

If it is not work do this:

Download tomcat7 from official site

Extract downloaded file somewhere, by default it downloads to ~/Downloads:

$ cd ~/Downloads
$ tar -xvf apache-tomcat-7.0.55.tar.gz

Now in Manually --> section in your first screenshot choose Tomcat installation directory as /home/$USER/Downloads/apache-tomcat-7.0.55


How do I remove my name from GNOME Shell panel?

Check out the GNOME Shell Extensions site. There's an extension called Remove User Name that should do the trick.


How to do a octal dump of files in my directories?

Why od -c directory Doesn't Work

A directory points to zero, one, or a bunch of files, it isn't really a file itself so it can't be processed by od or hd. Most Unix-like programs process files, not  whole directories.

What to Do

You can list the contents of the directory with ls and then use the od -c or hd -b command to dump each file you want to examine. By doing them one-by-one you will know what each file contains.

(od -c file1 file2 stuffs file1 and file2 together and then dumps the whole thing. That makes it heard to find where the first one ends and the next one begins.)

You could also write a little script to give you, one by one, the filename of each of the files in a directory and then dump it in octal or hex. Here's an example:

 for f in *; do echo $f; od -c $f; done | less

for f in * assigns each file in the current directory to $f in turn; echo $f provides the name of the file on your terminal preceeding each file dump; od -c $f produces the dump; and done says to go on with the next file or finish if there aren't any more. |less says take all of the above and send the output through the "less" program which let's you look at it bit by bit rather than having everything roll off the top of the screen.

A script like this is interpreted by a program called by a "shell". When you are typing commands into the terminal you are talking to a "shell". By default, Ubuntu uses the "bash" shell.

If you would rather look at hex output you can use od -t x1 filename or hd filename. Use man od or man hd for more options.


Linux's permissions system is very different from that of Windows. For a crash course, each permission has a few facets assigned to it. Namely, there are three octal bits (u, g, and o) that control who can access the file and to what degree. There is also a concept called a file "owner", which is a pair of a user and a group that has control over a single file (and are controlled by the u and g bits). For a more detailed look into how Linux permissions work, check out this excellent writeup over on the Arch Wiki.

In your case, the files are owned by the nobody user and the nogroup group, and the permissions are set such that the nobody user can read, write, and execute files while the nogroup group can only read and execute. Similarly, everyone else can only read or execute the files.

That said, there are about three solutions to this problem. You can become the nobody user, you can become root, or you can change ownership of these files. The first one is really not recommended, as the nobody user is a special account that shouldn't really get used.

If you just want to delete the files and be done with it, you're going to need to use the terminal. Just run the below command to delete any specific file:

sudo rm /path/to/file/you/want/gone

If you want to delete a folder, you need to use a different command:

sudo rm -rf /path/to/the/folder/you/want/gone

Before pressing ENTER, make sure your command is free of typos or other errors. These commands are very dangerous, and can have unintended side effects if a command is typed improperly.

Alternatively (and probably the better way), you can take ownership of the files, giving you full control over them. Linux has something called the chown command for exactly this purpose. I'd assume you want to change the ownership of everything, so use this command:

sudo chown -R $USER:$USER /path/to/your/folder

If you only want to change the ownership of a single file, it's this command:

sudo chown $USER:$USER /path/to/your/file

For more information into how chown works, run the man chown command in your terminal to pull up its manual. Once again, be very careful with typographical errors -- they can and will bite you in unexpected ways.


Check this link: http://senthilthoppur.blogspot.com/2012/08/vsftpd-530-permission-denied-root.html

You can try adding "userlist_deny=" in the "/etc/vsftpd/vsftpd.conf" file.

If  "userlist_deny=NO", it will only allow users in the file "/etc/vsftpd/user_list".

You can also refer to : http://arstechnica.com/civis/viewtopic.php?t=112812


I/O error when reading data from /dev/mapper/veracrypt1

Turns out it was a case of faulty memory.

I noticed random looking crashes of various services in syslog, and started to suspect that it was kernel panic causing the reboot which had caused the filesystem corruption.

Replaced the memory module and suddenly you could read from the encrypted container and fix the filesystem as instructed in can't read superblock on /dev/mapper/veracrypt1 .

Also enabled apport to catch core dumps for the future.


It saying that you should install additional packages, so copy and paste this line to the terminal and press Enter:

sudo apt-get install libssh2-1 libcurl3

Then icon should work, if it doesn't again open the terminal and type:

sense.sh


Is there a way to see old /var after mounting to a new partition?

Moving the /var directory to a new separate disk or partition and keep access to the old /var directory.
To 'see' an old var directory after fstab modificaton : rename the old var directory.

# Boot with init 1 single user mode
sudo init 1

# Prepare new VAR directory
mkdir /mnt/newvar
mount /dev/sda5 /mnt/newvar
cp -ax /var/* /mnt/newvar

# Rename old VAR
mv /var /old_var
# Remount the disk partition to /var
mkdir /var
umount /dev/sda5
mount /dev/sda5 /var

# Alter fstab to apply changes
#--> /dev/sda5    /var    ext4    defaults    0    2

# Restart the multitask mode
init 5


18.04 NVIDIA MX230 graphics Can't change resolution on ASUS MX27A monitor

Use the current version, 440.82, of the NVIDIA drivers to solve this problem. https://nvidia.com/en-us/drivers/results/159360


Ubuntu 16.04 freezes on login screen, no keyboard or mouse working

I faced the same issue on my personal computer.
It seems to come from packages of kernel 4.4.0-43 that have been released without other needed ones. See https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1633267/comments/17

First try to boot an old kernel

Holding the shift key right after starting the machine should display the grub menu. Then you should be able to choose an old kernel in "advanced options".

If you manage to start your machine this way, you're lucky : you only need to upgrade to get the missing packages :

sudo apt update && sudo apt upgrade

If you can't boot the machine at all

In this case, I managed to solve it by running the upgrade from a live-USB key, through chroot :

If your system disk is not encrypted

start the computer on a live-USB or live-CD of the same version of Ubuntu (16.04.1)
mount your system disk (in /mnt in this example. If you mount it from the GUI, it will probably be in /media/ubuntu/some-uid : in this case, replace /mnt with this path below)
mount the necessary directories to allow your chroot to access the Internet :

sudo mount --bind /sys /mnt/sys
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /run /mnt/run

and, if you have a separate /boot partition : (adjust the device name)

sudo mount /dev/sda2 /mnt/boot

then start the chroot and upgrade :

sudo chroot /mnt
apt update
apt upgrade
exit

and finally unmount everything and reboot (not sure it's really necessary) :

sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt/dev
sudo umount /mnt/run
sudo umount /mnt/boot

If your system disk is encrypted

In this case, you first need to mount it with the same name as in your /etc/crypttab (in my case it was sda3_crypt : find yours in the first column of /etc/crypttab, on the line of your system disk) :

sudo cryptsetup luksOpen /dev/sda3 sda3_crypt
sudo mount /dev/mapper/ubuntu--vg-root /mnt

then follow the same procedure as above

I explained the complete story (in French) on my blog : https://blog.mossroy.fr/2016/10/14/ubuntu-bloque-a-la-saisie-du-mot-de-passe-de-dechiffrement-luks-a-cause-dun-kernel-4-4-0-43-incomplet/


This may work. Create b43.conf in /etc/modprobe.d and add

options b43 pio=1 qos=0


Open the TTY1 (Ctl + Alt +  F1 ) and run this sed command :

sed -i '/^RUN=no$/s/no$/yes/' /etc/default/saned

/^RUN=no$/ will match the line RUN=no
On that line we are substituting no with yes by s/no$/yes/
-i option is to edit the file in place.

Test :

    $ sed '/^RUN=no$/s/no$/yes/' /etc/default/saned

    # Defaults for the saned initscript, from sane-utils

    # Set to yes to start saned
    RUN=yes

    # Set to the user saned should run as
    RUN_AS_USER=saned


Installing the package php-cli 8.0.1 from the official remote repo?

To answer your question:
You need to download the dependencies php8.0-common,php8.0-opcache, php8.0-readline and php-cli from here then install them through dpkg.
But installing the packages through apt is more preferred after adding the ppa , next time it can be removed through:
sudo add-apt-repository --remove ppa:ondrej/php

NB: The installed packages will not receive any updates including the security updates. It is better to keep the ppa.


Opening Chrome with Launcher in 14.04 doesn't take focus

Running dconf and setting org.gnome.desktop.wm.preferences auto-raise to true will do the same thing.

or on commandline:

gsettings set org.gnome.desktop.wm.preferences auto-raise true

This is helpful if you dont want to install compiz


Is it possible to recover a secret key from a GPG public key?

@andrewsomething No. The questioner you mentioned[sic], have[sic] the key available on one machine. but I've lost my key. (The computer exploded)

Sorry, but you cannot get your key back. This is by design.
The RSA (and DSA/ElGamal) algorithms are engineered so that the keys must be made at the same time. There are intermediate variables that are not stored as part of the either the private or public key. Because the public key is crafted to be made public, you cannot deduce the secret key from it, or there would be a giant security hole. The two primes are generated from random numbers.
Also, the key email/name/description have no bearing on the modulus("meaty" data portion of the key). Therefore, you cannot recover your secret key without a backup, at least not without factoring large numbers which cannot be easily done right now. The passphrase is used to protect the key with another (symmetric) key generated from the passphrase, but neither this key nor the password affect the modulus in any way except a stray source of random data.
What can I do?
You can go to Launchpad key management after logging in via username and password, revoke your old keys. and then make and publish new keys. There is no limit on the number of keys you can publish. Make a secure backup, and ensure nobody gets unauthorized access to the backup, and that the keys in the backup are protected by a passphrase.


If I understand your question, no, it will not keep trying to download the package forever. That just doesn't make sense.

apt-get and apt are run on command. If a package doesn't exist, it'll tell you and make recommendations on some packages you may have meant to type. If a package doesn't exist, the script exits.

If the package does come into existence after you run the command, either because you added a PPA or it was added to the current repositories you have added, nothing will happen. apt won't download it, it won't install it. You have to try again yourself.


How to stop playing music when remove headphones?

It happens by default , as ubuntu 14.04 have different profiles for your headphone and your speaker. Just mute your speaker first and then insert your headphones, it will activate headphone profile and you can listen music, the moment you remove your headphone it will go back to speaker profile which was initially muted, so it will be muted.


Why can't I create NTFS partition in extended section?

The unallocated space is outside the extended partition. It means that when you try to create a partition, you are trying to create a fifth primary partition, and it is not possible with an MSDOS partition table.

Instead you can grow the extended partition (increase the size), so that it reaches the end of the drive.
After that the unallocated space will be inside the extended partition. And you will be able to create an NTFS partition.


Is it possible to have window transparency in Mutter/Gnome Shell?

NOTE: This repository is dead and no longer usable, the link was left for historical purposes.

I made a simple extension for gnome-shell (3.8.2) Enjoy transparent windows
https://github.com/saysilence/transparentwindows


How to make video resolution setting permanent?

You can reconfigure xOrg. I did this by creating a file in my /usr/share/X11/xorg.conf.d Directory.

I made it using vim:

sudo vim /usr/share/X11/xorg.conf.d/5-monitor.conf

Here is an example of my file

Section "Monitor"
   Identifier "Monitor0"
   Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
   Modeline "3840x2160_30.0" 297.00 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync
   Modeline "4096x2160_24.0" 297.00 4096 5116 5204 5500 2160 2168 2178 2250 +hsync +vsync
EndSection
Section "Device"
   Identifier "Device0"
   Driver "intel"
EndSection
Section "Screen"
   Identifier "Screen0"
   Device "Device0"
   Monitor "Monitor0"
   DefaultDepth 24
   SubSection "Display"
      Depth 24
      Modes "3840x2160" "1920x1080"
   EndSubSection
EndSection

For directions on how to do this you can follow this tutorial: https://wiki.gentoo.org/wiki/Xorg/Multiple_monitors

I was ran into this issue with ubuntu 16.0.4


why does Gnome/KDE require /usr/bin/X to run?

I can recommend the wikipedia article for the X Window System, pecifically the section about User Interfaces as a start. As you said it: X is low level, Gnome/KDE (very roughly speaking) does the actual interface drawing.


The partial upgrade appears to have introduced some new code that expects a newer version of libstdc++ to exist. There are two solutions that may work for you:

Check if a newer libstdc++ exists on your disk

$ ls -lh /usr/lib/x86_64-linux-gnu/libstdc++.*
> /usr/lib/x86_64-linux-gnu/libstdc++.so.6 -> libstdc++.so.6.0.25
> /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25

This shows on my system there is only one libstdc++ which is 6.0.25 - but for your system there might be multiple with the latest one not correctly linked (the -> means it's a symbolic link)

You can run this command to force the symbolic link to point to the newer one:

sudo ln -s libstdc++.so.6.x.x libstdc++.so.6

Replacing 6.x.x with the most recent version you have.

Download libstdc++ manually

Download libstdc++6_8-20180414-1ubuntu2_amd64.deb and install it using dpkg

wget 'https://mirrors.kernel.org/ubuntu/pool/main/g/gcc-8/libstdc++6_8-20180414-1ubuntu2_amd64.deb'
dpkg -i libstdc++6_8-20180414-1ubuntu2_amd64.deb

If it complains it needs a dependency you will need to repeat the process above for all the packages listed as dependencies (libc6, gcc-8-base, etc.) They can be found here:

https://packages.ubuntu.com/bionic/libstdc++6


How to mount BlackArmor 220 NAS on Ubuntu 19.10?

It seems I was missing vers=1.0 on the last cifs parameter. The command that works:

sudo mount -t cifs -o guest,vers=1.0 //192.168.1.3/Public /media/BlackArmor/

and if you want it in /etc/fstab, and with guest user RW support:

//192.168.1.3/Public /media/BlackArmor cifs guest,uid=myuser,iocharset=utf8,file_mode=0777,dir_mode=0777,vers=1.0,noperm 0 0


Download the modified driver from this link.

Installation

Extract the archive to Desktop
$ cd ~/Desktop
$ tar -xvf Linux\ Driver\ 4.19.19.00\(Modified\).tar.gz
Change to the extracted directory whose name is driver
$ cd driver
Switch to root and make the script named install executable
$ su
$ chmod +x install
Install the script
$ ./install
The NDIS driver installation failed error will not occur. Instead it will show NDIS driver installation successful.

Creating a Mobile Broadband connection

Go to Settings -> Network -> Mobile Broadband and click Add new connection
Follow the steps which involves selecting the country, operator etc.

Next time if you insert the modem it will be detected properly and you can connect to the Mobile Broadband connection you created previously by clicking the Network icon on the system tray.


Ubuntu Studio leader here. This is a problem we are aware of in Ubuntu Studio Controls. While there is no official bug report, work is in progress on this issue, fix will hopefully land in Ubuntu Studio 19.10.

The unfortunate part that we have run into is that different hardware manufacturers implement the auto-mute differently, so it is hard to detect. Rest assured, though, we are working on it.

You have already identified one workaround by booting with your headphones plugged-in. There are two more workarounds you can try:

Plug in your headphones before starting Jack. PulseAudio should do the switching for you. This workaround has had mixed results.
Open alsamixer in a terminal or open QASMixer and ensure headphone volume is up and unmuted. Basically, this is a way of doing the switch from speakers to headphones manually and is what would be expected automatically.

I hope this helps.


Dell Inspiron 17R settings buttons don't work in Ubuntu 12.04?

I think you can set the one for the settings. Go to settings... keyboard. Chose the shortcuts pane. at the most bottom categorie you can add shortkeys. Add on with the command gnome-control-center and assign the settings key to it


I looked into these issues:
nameserver 127.0.1.1 in resolv.conf won't go away!
How do I fix DNS resolving which doesn't work after upgrading to Ubuntu 13.10 (Saucy)
and made a trick with disabling line "dns=dnsmasq" in /etc/NetworkManager/NetworkManager.conf .

It looks this solves my issue.


Install programs without installers like Eclipse

No there is no such "good practice". Look at the unpacked files and see if there's a README or INSTALL file containing installation instructions for this particular product. These instructions won't work for other software packages. The only "good practice" I can suggest is to read ALL the text files in the unpacked directory (use file * to check).


If you know for sure that you're not going to use your GPU's HDMI sound at all, one way to make sure it can't be selected automatically would be blacklisting the HDMI sound module.

Open a terminal and enter:

sudo nano /etc/modprobe.d/blacklist.conf

Enter your password and append the following on a new line at the end of the file:

blacklist snd_hda_codec_hdmi

(Use Ctrl + Shift + V to paste it and then save the file with Ctrl + Shift + O and close it with Ctrl + Shift + X.)

Afterward, just reboot and the HDMI sound option should be gone. In case you need it again, just remove the line from the file and reboot again.


Creating a file within a folder then writing to that file with SSH

If /temp_dirname doesn't exist, you can create it with mkdir -p /temp_dirname.

-p works with any arbitrary depth, creating directories as required.


Partial upgrade required, but Ubuntu wants to delete packages I use

I had a similar issue. I was able to resolve it by manually installing the packages:

sudo apt-get install gdal-bin grass-core grass-gui libgdal-dev libopenscenegraph80
libosgearth1

You can find the packages using:

sudo apt-get upgrade

Otherwise you can also try:

sudo dpkg --configure -a

There are some more answers that might help you here.


How to know if IPv6 is configured and working on ubuntu?

Run the command:

[ -f /proc/net/if_inet6 ] && echo 'IPv6 OK' || echo 'No IPv6'

If the output is

IPv6 OK

Then your system can work with IPV6.

Now run the command:

lsmod | grep -qw ipv6 && echo "IPv6 kernel driver loaded and configured." || echo "IPv6 not configured and/or driver loaded on the system."

If the output is:

IPv6 kernel driver loaded and configured.

This means the IPV6 is configured and you can use it but if(and this is your case from comment above) the answer is

IPv6 not configured and/or driver loaded on the system.

this means IPV6 is not configured in your system, and for that you can't use IPV6 yet.

How to enable IPV6 in Ubuntu

Run this command:

sudo modprobe ipv6

Now test if this works:

lsmod | grep ipv6

The outpu should be like :

ipv6                  XXXX xX

source and more information :http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/systemcheck-kernel.html


How do I use my own icon in a python script integrated with the messaging menu?

I've built a small gmail notifier app myself. There should be a piece of code in the python script which goes:

server = indicate.indicate_server_ref_default()
server.set_desktop_file("/usr/share/applications/gmail_notifier.desktop")

The .desktop file specified above is the one that determines the icon to be used in the messaging menu. The corresponding "Icon" key in my .desktop file looks like this:

Icon=mail-unread

The description for the "Icon" key, as given in the Desktop Entry Specification, is:

  Icon to display in file manager, menus, etc. If the name is an absolute path, the given file will be used. If the name is not an absolute path, the algorithm described in the Icon Theme Specification will be used to locate the icon.

In my case, the second part of the above description applies (i.e., the algorithm described in the Icon Theme Specification is used to locate the icon corresponding to "mail-unread"). You can instead give the absolute path to your icon, as in:

Icon=/usr/share/icons/...

or you can try the following (it will work only if your icon theme has the icon, which is rare. That is why I'm using the generic icon "mail-unread".):

Icon=gmail

I'm not on my machine right now, but when I do get on it I'll tell you where exactly you can find your desired icon and what its name is. I also have links to (the very few) good resources which describe how to integrate apps with the messaging menu, but again I need to be on my machine for that.

If you're interested in the entire code for my app, I've got it on GitHub.


Keyboard input produces unexpected characters

Don't worry your system is fine and you problem can be fixed in no time. ;-)

There are many types of keyboards and computer keyboards are in general DVORAK or QWERTY. To discover which type is, look at the first line of letters under the row of numbers, it forms a unique sequence.
After you've discovered the layout of your keyboard, you must set it correctly: it is very easy! Just start Ubuntu and then follow the official guide for the keyboard layout.

After the current user is fine and you know the correct layout, you can set your global (system default) keyboard layout by executing this in a new Terminal:

sudo dpkg-reconfigure keyboard-configuration

New users will inherit this setting.


ibus package not found while trying to build gnome-settings-daemon

I've found two possible solutions to this. The first is to install the ibus development package (as opposed to the release package) using

sudo apt-get install libibus-dev

Alternatively, the build can be carried out without iBus at all by running

./autogen.sh --disable-ibus


Cannot open executable file (shared library)?

Compiling from github source code is more complicated than simple installation. Your package is available for Ubuntu 14.04 and 16.04 according to the vendor. To see if it is available for a different Ubuntu version use this command:

$ apt search aseprite

Sorting... Done
Full Text Search... Done
aseprite/xenial 1.0.9+ds-3.2 amd64
  sprite and pixel art editor

To do a "dry-run" installation (simulated installation) use this command:

$ sudo apt install -s aseprite

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  liballegro4.4 libloadpng4.4 libtinyxml2.6.2v5
The following NEW packages will be installed:
  aseprite liballegro4.4 libloadpng4.4 libtinyxml2.6.2v5
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Inst liballegro4.4 (2:4.4.2-7 Ubuntu:16.04/xenial [amd64])
Inst libloadpng4.4 (2:4.4.2-7 Ubuntu:16.04/xenial [amd64])
Inst libtinyxml2.6.2v5 (2.6.2-3 Ubuntu:16.04/xenial [amd64])
Inst aseprite (1.0.9+ds-3.2 Ubuntu:16.04/xenial [amd64])
Conf liballegro4.4 (2:4.4.2-7 Ubuntu:16.04/xenial [amd64])
Conf libloadpng4.4 (2:4.4.2-7 Ubuntu:16.04/xenial [amd64])
Conf libtinyxml2.6.2v5 (2.6.2-3 Ubuntu:16.04/xenial [amd64])
Conf aseprite (1.0.9+ds-3.2 Ubuntu:16.04/xenial [amd64])

As you can see the aseprite application is dependent on many other libraries that need to be installed. I suspect when you compile manually some of these libraries are missing.

To do a real installation use:

sudo apt install aseprite


I don't believe that PCManFM 1.2.0 is available in the Lubuntu 13.10 repositories so you have to add it.

sudo apt-add-repository ppa:lubuntu-dev/lubuntu-daily
sudo apt-get update
sudo apt-get install pcmanfm

Of course you will be asked for your password.  Just enter it and enter.


It is complicated to create a live Windows system (live: will boot from USB and run the operating system). And it is off-topic here at AskUbuntu anyway.
If you want a Windows installer (that can install Windows into an internal drive), you can use WoeUSB according to the following link. It is possible to create the installer with an NTFS file system, when there is a file exceeding the size limit of FAT32.
WoeUSB Error Code 256 with NTFS formatted USB
In Ubuntu 20.04.x LTS there are problems with WoeUSB, but you can use mkusb (mkusb-dus or mkusb-plug).
https://help.ubuntu.com/community/mkusb


Can I instruct gnome network manager NOT to connect to a specific network

Open the GNOME WiFi network settings panel
locate the guest network and click on the gear icon
click reset in the left pane
click the forget button


Found the solution in the /home/user directory .freerdp. It has a known_hosts file which stores the fingerprint. After deleting the entry of the host's IP, Remmina will regenerate a new cert when connecting.

Another solution can be to RDP with the host's FQDN.


How can i get instant messenger with my logitech webcam C110?

I too brought c110 webcam.

From the below link, choose "cheese" suggested by "Jorge Castro".

How to install a Logitech c310 webcam?
and give a try. for me its working fine. Can't use effects effectively. all other are good. Thanks to Jorge Castro.


trim the terminal command prompt working directory

If you are using bash4 (Ubuntu 9.10 and newer has bash4), the easiest option is to just set the PROMPT_DIRTRIM variable. e.g.:

PROMPT_DIRTRIM=2

For one similar to João Pinto's example, (that'll work in older bash versions and ensures that the path component is never longer than 30 characters), you could do something like this:

PS1='[\u@\h:$(p=${PWD/#"$HOME"/~};((${#p}>30))&&echo "${p::10}…${p:(-19)}"||echo "\w")]\$ '


Quoted from https://github.com/dnschneid/crouton/wiki/Common-issues-and-reporting:

  Most issues can be fixed by downloading a fresh installer, and
  updating your chroot:

  Remove any existing installer from your Downloads folder.
  Fetch a fresh installer: https://goo.gl/fd3zc
  Open a crosh shell (Ctrl-Alt-T, then type shell)
  Figure out the name of your chroot(s). If you do not know, sudo    edit-chroot -a (on recent enough crouton), or sudo ls
  /usr/local/chroots will provide you with a list of chroot names.
  Run an update: sudo sh ~/Downloads/crouton -n chrootname -u, where    chrootname is the name of your chroot.
  Make sure there are no errors, then try starting your chroot again.


how to install tenda w311mi on ubuntu 14.04

you have to search and install the following packages in ndiswrapper-utils, ndiswrapper-common and ndisgtk. try the steps given in following link below

https://help.ubuntu.com/community/WifiDocs/Device/Tenda_W311M

(or)

http://alstevens.co.uk/how-to-install-wireless-usb-drivers-for-ubuntu/


I have the same problem and I found that secure boot affect state of vgasetcheroo lock down it:

switcheroo control bug with secureboot

Although the battery consume is the same in powertop tool,try disabling secure boot maybe work for you.


Is it safe to run upgrade with Pinned Applications in Synaptic

Yes they are going be upgraded.

You have to hold them with dpkg:

echo <package> hold | dpkg --set-selections

Reference: Ubuntu Help


Is there a usable GUI version of Photorec or Testdisk?

qphotorec

It is not available via any repository. Installation:
wget -c https://versaweb.dl.sourceforge.net/project/crunchyiconthem/QPhotoRec/qphotorec_1.0_all.deb
sudo dpkg -i qphotorec_1.0_all.deb
sudo apt-get install -f

Mind you: when restoring data it is best to NOT touch the system you want it recovered from. Installing software on a system that you want files recovered from should be avoided.


rsync doesn't run when from a bash script

In /usr/lib/pm-utils/sleep.d/example:

after the line:

#!/bin/bash

add the line:

sleep 15

This will give 15 seconds for network interfaces to become available after resuming.


Migrate ubuntu install to another drive on the same computer

Well, here I go answering my own question. The best approach I found was to use the dump and restore commands, which can be installed through apt. The file created by dumb is filesystem agnostic, so your back up will be safely stored in any other volume no matter what filesystem it uses without affecting other files if it has enough space. I order to restore you just need boot from a live session and run the restore command after temporarily installing it with apt or permanently if you are in live session like me.
sudo apt install dump
sudo dump -0uan -f path_to_external_vol/backup /

The code above will copy all your files to a binary on the drive of your choice. Once you booted on your live session, run this.
sudo restore -r -f path_to_target_partition path_to_your_backup_file

If you don't have a large enough drive to store your backup dd remains the most fitting choice to use with care, I heard about Rsync, but hasn't the opportunity to use.


Unable to install npm on ubuntu 14.04 due to broken packages error

This should solve your problem:

sudo apt-get update --fix-missing
sudo apt-get install npm

Hope this works out!


Try to remove samba "sudo apt-get autoremove ..."

Before installation
sudo apt-get update
sudo apt-get upgrade

and install one more time "sudo apt-get install samba smbclient"


I had the same problem. I fixed it by upgrading to kernel 4.5

64Bit

wget "http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-rc1-wily/linux-headers-4.5.0-040500rc1_4.5.0-040500rc1.201601241731_all.deb"

wget "http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-rc1-wily/linux-headers-4.5.0-040500rc1-generic_4.5.0-040500rc1.201601241731_amd64.deb"

wget "http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-rc1-wily/linux-image-4.5.0-040500rc1-generic_4.5.0-040500rc1.201601241731_amd64.deb"

sudo dpkg -i *.deb

32Bit

wget "http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-rc1-wily/linux-headers-4.5.0-040500rc1_4.5.0-040500rc1.201601241731_all.deb"

wget "http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-rc1-wily/linux-headers-4.5.0-040500rc1-generic_4.5.0-040500rc1.201601241731_i386.deb"

wget "http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.5-rc1-wily/linux-image-4.5.0-040500rc1-generic_4.5.0-040500rc1.201601241731_i386.deb"

sudo dpkg -i *.deb

Here is kernel 4.6

64Bit:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-image-4.6.0-040600-generic_4.6.0-040600.201606100558_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600_4.6.0-040600.201606100558_all.deb

sudo dpkg -i *.deb

32Bit:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600_4.6.0-040600.201605151930_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-headers-4.6.0-040600-generic_4.6.0-040600.201605151930_i386.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-yakkety/linux-image-4.6.0-040600-generic_4.6.0-040600.201605151930_i386.deb

sudo dpkg -i *.deb


You can change defaults by following method:

Open defaults.list by following command:

sudo gedit /etc/gnome/defaults.list

Wher you find following line which is default for Libre-office:

application/msword=libreoffice-writer.desktop

Replace with open-office desktop file:

application/msword=openoffice-writer.desktop

Save file and exit.

Note: In file /etc/gnome/defaults.list you can change default applications with desktop file (for find extension or app name you can use Ctrl+F and Ctrl+H for replace).

Additional Information:

The file openoffice-writer.desktop should be exist in /usr/share/applications (Recommended to put/use provided desktop file) If not, then you can create as follows:

sudo gedit /usr/share/applications/openoffice-writer.desktop
Then put following data in file

[Desktop Entry]
Name=OpenOffice Writer
Icon=libreoffice-writer
Type=Application
Exec=/opt/openoffice4/program/soffice %U

Then save and close it.
Give execution permission by sudo chmod +x /usr/share/applications/openoffice-writer.desktop

Now set file as default as mentioned first.

Note: Here openoffice-writer.desktop is only suggested example name. Use provided desktop file if exist.


Is it possible to change the group list shown on the application launcher?

In System -> Preferences -> Main Menu you can select which menu groups should be shown, and which application should be in which menu group.

(At least in default Ubuntu, but I guess it should accessible in Unity too)


ImageMagick:convert-im6.q16: no images defined

Interestingly enough ImageMagick under 19.04 (and other Ubuntu releases!) disables many ghostscript format types. This can be seen in this snippet from /etc/ImageMagick-6/policy.xml:

  <!-- disable ghostscript format types -->
  <policy domain="coder" rights="none" pattern="PS" />
  <policy domain="coder" rights="none" pattern="EPS" />
  <policy domain="coder" rights="none" pattern="PDF" /> <------- Here!!
  <policy domain="coder" rights="none" pattern="XPS" />

Of course I have added the arrow to catch your attention :). Modify this arrowed line to:

  <policy domain="coder" rights="read | write" pattern="PDF" />

You can use your favourite text editor to accomplish this, using elevated privileges, or perhaps simply use the following sed one-liner:

sudo sed -i_bak \
's/rights="none" pattern="PDF"/rights="read | write" pattern="PDF"/' \
/etc/ImageMagick-6/policy.xml

And then all should be well, I have tested this comprehensively on my own 19.04 VM where the conversion you are after works flawlessly...

If you wish to change the settings back to the default the following one liner will restore the backup file created in the run with sed:

sudo mv /etc/ImageMagick-6/policy.xml_bak /etc/ImageMagick-6/policy.xml

How cool is the command line!


Do you know any birthday reminder alternative to GBirthday?

You could try google calendar and then add 'Google' under 'Online Accounts' in 'System Settings'. This will pop reminders up for appointments you have made on your Google calendar in unity.


Which Ubuntu version to use for my Python web app?

Basically I would use the latest LTS release for a server, as of writing that would be 10.04 (Lucid Lynx). The reason is quite simple! On a server you properly want to use a system that doesn't need to be upgraded in a few months.

There is no reason to use Hardy Heron for a new server, it is currently two years old and will be abandoned in a year.

Ubuntu is released every six months and they are abandoned after eighteen months, except the LTS version that are released every other year and are kept alive for three years.

EDIT: Server versions of LTS is kept alive for five years.


'Apt-Get install' & Software center not installed?

You don't have APT installed, so you can't automatically download and install any packages. That includes the packages you need to put APT back. Therefore, you must manually install them.

The best place to get them is probably here on Launchpad, since the interface is easy to use and the downloads are encrypted over HTTPS (which means you're far less likely to get corrupted files).

On the page for the apt source package on Launchpad, find your release. There may be more than one entry under it that can be expanded. Expand the entry that says updates if there is one. If not, expand the entry that says security if there is one. If not, expand the entry that says release.

In this case, the entry to expand is (therefore) 0.9.7.5ubuntu5.4, which says updates, security (main) next to it.

Then download all the .deb files for your architecture:

Get all files whose names end in _all.deb.
If you have a PC or Intel Mac with a 32-bit processor, get all files whose names end in _i386.deb.
If you have a PC or Intel Mac with a 64-bit processor (even if it is an Intel processor), get all files whose names end in _amd64.deb.

Download the files to a folder that has no other files in it. You'll probably make a new folder for this purpose.

You can actually skip the apt-doc and libapt-pkg-doc packages if you like, as it provides documentation that's not necessary for running APT. I recommend going ahead and getting them, though.

The following is for your convenience (and that of others with this problem who are running Ubuntu 12.10, as many people currently are). Following the above instructions will work fine. If you like, you can download the packages using the links below, which are taken directly from that Launchpad page.

If you want apt-doc and apt-pkg-doc, download them here:

https://launchpad.net/ubuntu/+archive/primary/+files/apt-doc_0.9.7.5ubuntu5.4_all.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libapt-pkg-doc_0.9.7.5ubuntu5.4_all.deb

On a 32-bit system (but not if you're running the 64-bit version of Ubuntu), get these files:

https://launchpad.net/ubuntu/+archive/primary/+files/apt-transport-https_0.9.7.5ubuntu5.4_i386.deb
https://launchpad.net/ubuntu/+archive/primary/+files/apt-utils_0.9.7.5ubuntu5.4_i386.deb
https://launchpad.net/ubuntu/+archive/primary/+files/apt_0.9.7.5ubuntu5.4_i386.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libapt-inst1.5_0.9.7.5ubuntu5.4_i386.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libapt-pkg-dev_0.9.7.5ubuntu5.4_i386.deb (often optional, but no reason not to get it)
https://launchpad.net/ubuntu/+archive/primary/+files/libapt-pkg4.12_0.9.7.5ubuntu5.4_i386.deb

On a 64-bit system (but not if you're running the 32-bit version of Ubuntu), get these files:

https://launchpad.net/ubuntu/+archive/primary/+files/apt-transport-https_0.9.7.5ubuntu5.4_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/apt-utils_0.9.7.5ubuntu5.4_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/apt_0.9.7.5ubuntu5.4_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libapt-inst1.5_0.9.7.5ubuntu5.4_amd64.deb
https://launchpad.net/ubuntu/+archive/primary/+files/libapt-pkg-dev_0.9.7.5ubuntu5.4_amd64.deb (often optional, but no reason not to get it)
https://launchpad.net/ubuntu/+archive/primary/+files/libapt-pkg4.12_0.9.7.5ubuntu5.4_amd64.deb

With all the downloaded .deb files in one folder, go into the folder in the Terminal.

For example, if you put them in a folder called debs in your home directory, you'd open a Terminal window (Ctrl+Alt+T) and run:

cd ~/debs

This would put you in your debs folder. (~ represents your home folder.)

If the folder is elsewhere, you'll have to specify where. For example, if you put it inside the Downloads folder in your home folder:

cd ~/Downloads/debs

If you prefer, you can simply type cd (with the space at the end), don't press Enter yet, but drag the folder from Nautilus (the file browser) into the Terminal. This will paste its full path. Then you can press Enter to go there.

Once you are in the folder that contains the .deb files you downloaded, run this command:

sudo dpkg -i *

That will install them all. That should restore APT and you should be able to install packages in the usual way again. (If you are accustomed to using the Software Center, and that's also uninstalled, then you can get that back with sudo apt-get update && sudo apt-get install software-center.)

If you get errors when you run that dpkg command, please post a comment and also update your question with all the text from the Terminal. If it says there are unsatisfied dependencies, you might try to find those yourself on Launchpad, but feel free to ask for help.

Assuming this works, you should reinstall libusb-0.1-4 followed by ubuntu-desktop (assuming this is a vanilla Ubuntu system and not, say, Kubuntu, Xubuntu, or Lubuntu).

To install libusb-0.1-4 (assuming you've already run sudo apt-get update):

sudo apt-get install libusb-0.1-4

Then to install ubuntu-desktop (to restore other packages that got removed):

sudo apt-get install ubuntu-desktop


okay, I can officially close this one off now.

It turns out that Android's MTP was at fault- when transferring files to and from a USB stick, transfer was fine, transferring between the phone and the computer was not, meaning the Android was the problem.

Since putting it in, I tried running the phone in PTP transfer mode, rather than MTP transfer and, as if by magic, my issues are gone.

To access this option, simply plug the S4 into the computer and you should get a little icon appear, telling you that it is connected as a media device, simply pull the menu down, tap the icon and change to PTP mode.

if at first you don't succeed and all that jazz.


"Lvmetad is not active yet, using direct activation during sysinit" on boot?

I had the same error messages after I did a release-upgrade from Ubuntu 14.04 LTS to 16.04 LTS in a chroot (chroot as described in this German article) from a live system.

The error occurred before the password prompt. As the LVM volume group is usually within the encrypted volume, it must be a dm_crypt/LUKS configuration issue.

I found a solution here and will explain it below.

In my case, the name of the mapper of the encrypted volume was different from the name given in /etc/crypttab.

I picked the name of the luks mapper from the output of ls -l /dev/mapper, after opening the encrypted device with the the graphical file manager. In my case, the output was:

control
luks-87fc4c8e-017b-8482-cd09-7332fe351628
vgubuntu-root
vgubuntu-swap

Then, as root, I changed my /etc/crypttab (please note the beginning of the line) from:

sda5_crypt UUID=87fc4c8e-017b-8482-cd09-7332fe351628 none luks,discard

to:

luks-87fc4c8e-017b-8482-cd09-7332fe351628 UUID=87fc4c8e-017b-8482-cd09-7332fe351628 none luks,discard

Finally I updated my initramfs:

update-initramfs -u -k all

It was a bit confusing that these two names were different. One would assume that when the mapper is created, its name is taken from the crypttab. Anyway, it worked.

I did the whole stuff in a chroot, running a live system. It might also work from the busybox shell in which you drop after booting your system, but I haven't tried.


Which display manager did you use previously? AFAIK, 12.04 uses lightdm as default. If you were using another display manager (gdm, lxdm), you might need to re-configure your system to use that display manager instead of lightdm. This is very easy. If you were using lxdm previously, for example, you could "re-activate" lxdm with this command:

sudo dpkg-reconfigure lxdm

A menu should appear that allows you to select the display manager to use. It should even work with any of the installed display managers - so you could even enter sudo dpkg-reconfigure lightdm and select lxdm or gdm. After choosing my "previous" dm, everything worked fine for me.


Can ~/.local/share/applications override /usr/share/applications?

Yes it should work to copy the ones you want to modify to ~/.local/share/applications, and shouldn't cause too many problems unless you make some bad edits (e.g. removing mime-types etc). Copying all the ones mean that if they are updated at /usr/share/applications, they won;t be updated in ~/.local/share/applications, and the launchers for apps you remove will remain. Don't bother copying all of them that is unnecessary.

After you make the edits, running update-desktop-database ~/.local/share/applications/ should make sure the new launcher is recognised, so is shown in the Dash/Menu.

Unity's launcher, and probably Gnome's Dash will likely still show the version in /usr/share/applications, so you will need to unlock and lock the icon. Gnome 3 may also need a restart, Nautilus may do as well so logging out and logging back in should fix this.

Reading the following may help with making edits:

http://standards.freedesktop.org/desktop-entry-spec/latest/
https://wiki.archlinux.org/index.php/Desktop_entries


How can I bind Gio.Settings of TextBuffer or TextView?

I set it manually, but it is annoying.

widget = self.builder.get_object('textbuffer_text')
#~ self.settings.bind("text", widget, "text", Gio.SettingsBindFlags.DEFAULT)
text = self.settings.get_string("text")
widget.set_text(text, len(text))

...

def on_textbuffer_text_changed (self, widget):
    b,e = widget.get_bounds()
    self.settings.set_string("text", widget.get_text(b,e,False).decode('utf-8'))


When you perform an update rather than an install, do you retain your personal files and software installed?

Yes, of course. That's the whole point of doing that vs. a new installation that takes considerably less time and effort and also is "safer" because it's a clean install.

any additional packages you applied to get a software application to function properly?

From experience most of the user installed software will keep working fine.

Some might not and some may even prevent or break the online upgrade.

Some will be removed due to incompatibilities or missing dependencies in the new version of the OS.
It simply there isn't a one-size-fits-all answer.


Can't hear any music in Psychonauts (Humble Indie Bundle V)

you can try to download the patch 0.4 and extract it to the Psychonauts folder from this link.
I have some bug and with this patch i solved.

PS: The psychonaut folder is in /opt/Psychonauts if you installed it from Ubuntu Software Center.


I found that Flightgear was quite small (1.5Gb), it is just the aircraft and scenery that make it 50Gb in size....

So if you install it using apt-get, you may be able to move the /usr/share/games/flightgear/ off your SSD, onto your HDD. Then right click on it, and press Make Link. You can then copy that folder to /usr/share/games, rename it to flightgear, and hope it works


&& is interpreted by bash as one of the operators that separate pipelines in a command line. If you call those commands from bash both should run:

*/1 * * * * bash -c 'espeak "foo" && espeak "bar"'


Ubuntu 18.10 boots to emergency mode then to tty1

The issue has been solved, my Fstab file, for whatever reason, was completely empty. I replaced it with a backup and everything works fine now.
  (originally added to the question by OP)


When you stated you tried to install via usb, do you mean a usb dvd drive or something like pendrive linux?

I suggest you try running 'check media for faults' on startup with the media before trying to install and check that returns ok.

If you tried installing using a burnt dvd, trying installing with a burnt cd (though it looks like you have a blueray player that should accept both).

I take it you are trying to install the latest version of ubuntu (12) or an older version?


How do I enable the ALT + F10,F9 shortcuts?

If you are on unity, then click the cog in the upper- right corner and choose System Settings

Now find the Keyboard entry, there you will be able to edit all your shortcuts.

You are looking for Maximize window and Minimize window they can be found under Windows. Just set the shortcut to whatever you want it to be.


The file rt73.bin is the needed firmware for the driver rt73usb, both of which are installed by default in 12.04. rt73.bin should be in /lib/firmware. If you don't have it and need it, here is a Dropbox link and you can transfer it on a USB key or similar.   https://dl.dropbox.com/u/58267392/rt73.zip


Program uninstalled but still gives error: ContextualVersionConflict

I had the same issue and I fixed it with the solution posted here.

The “cryptography” had to be upgraded. I used

pip install cryptography --upgrade

and updated the package and then all Certbot commands worked without any errors!


Open Terminal then type:

xset led

enter, and see the magical happen!


Possible mistakes
1.your dual boot was not actually done as dual boot
2.while allocating free memory u might have converted all disc to logical memory from primary memory
3.u overwrote ubuntu over windows...(but if u can access windows C drive from Ubuntu then this is not case)
4.one of the operating system is in legacy mode and one of them is in UEFI mode //more chances(if this is the case only one of the OS will boot(one which is in default BOOT mode-see it in BIOS Menu) ).u will have to reinstall them both properly in same mode)


You say in your question that you have ufw allowing all outgoing connections. Adding a key would be an incoming connection in my mind. Run the following command on your server to open port 22 for incoming.

Sudo ufw allow 22

Then restart ssh

Sudo service ssh restart

And try to import your key again. Also you may want to consider moving ssh to an alternative port.

Log in to your router and make sure you have port 22 forwarded to the correct internal ip. Also if you are connecting externally, verify that your ISP is not assigning you dynamic ip address'. Otherwise the address will be consistently changing and you will then need to use a service such as dyndns.


ClamAV is a good program, but sometimes you have to take what it tells you with a grain of salt.

In your particular case, it detects a "PUA" (Possible Unwanted Application) in a PDF file. PUA's are usually "false positives", meaning it's a false hit.

Any time the ClamAV database is updated, there's a higher chance for false positives.

Best thing to do... keep an eye on your ClamAV scans, and see if the error goes away on its own after a few days. If it does go away on its own... it WAS a false positive. If it doesn't go away on its own, delete the file if you don't need it.


Ubuntu Oneiric suddenly beeps constantly

It seems this was caused by a real though temporary hardware malfunction. I started windows and the sound was broken there as well. After having spent the night resting, it started working again...


"Install this third-party software" - safe for my system or questionable?

That is up to you and whether you trust the developers of the third-party software. It simply letting you know that it is third-party software. It is not saying it is safe to install it, nor that it is unsafe to install it.

I would be surprised if there were any issues with it at all, but I'm certainly not going to guarantee that.


Problems with Ubuntu 14.04 unity desktop after upgrade

I am not sure how but after enabling Desktop Icons (using the ubuntu-tweak-tool), everything is back to normal. See this answer: askubuntu.com/a/284076/27577


Where is the source of firefox.desktop to send a pull request?

It's in multiple bazaar repositories based on the release. For example:

17.04: https://code.launchpad.net/~mozillateam/firefox/firefox.zesty
14.04: https://code.launchpad.net/~mozillateam/firefox/firefox.trusty

The file you're interested is in debian/firefox.desktop.in (example: 17.04).

How did I find out?

The Firefox code page in LP doesn't list any active repos.
Recent builds were all by Chris Coulson, and
The list of repos to which he's registered includes these.


If I make a hotspot and connect my mobile to my laptop, can an ISP detect it?

The ISP can't identify your devies directly, but it can detect them in several ways analyzing your traffic. For example, most of the browsers have a unique fingerprint that can be used to track it.

As far as I know, there is no infallible way to prevent your ISP from detecting your devices; still, there are some ways you can prevent it from reading the content your traffic, such as VPNs or Tor Browser. Those methods are not completely "anonymous" (for example, P2P connections can be identified without knowing their content) but they help you to hide a lot of information that are useful to track your online activity. Note that the ISP and whoever is able to intercept your traffic would find out that you are hiding them.

Anyway, it's worth noting that in most cases your ISP can't log nor analyze your internet activity without your consent, especially if you live in the EU.

I hope that my answer will be useful. If you provide some more information about why you are interested on the topic I might be able to give you a more detailed answer.


Why isn't vim reading my global configuration file?

Isn't the correct path in /etc/vim/vimrc? You are missing the middle vim.


Issue with plugging monitor on my laptop

Common solutions are:

Try pressing Fn+F1 until you get the setting you want (on your particular model, for example on my MSI laptop it is Fn+F2)
Go to Display using for example the Dash and look if your second screen is present, click on it and try to switch it on with the switch on the left side.


Sorry for necrobumping, but I experienced the same for my isc-dhcp-server setup.
I changed the pool start- and end addresses and after restarting the isc-dhcp-service, the same subnet error as OP described appeared after the systemctl status isc-dhcp-server cmd.
My conclusion is that restarting the isc-dhcp-server.service after implementing changes in its configuration, will not advertise the changes to other network components entirely.
So restarting the (virtual) machine should be preferred to apply the changes effectively.


9 workspaces for you

gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ vsize 3
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ hsize 3

:)


How to check for the log file when an error occurs while installing a python package

You can specify a log file at the command line when running pip using the --log LOG_FILE argument. For example, pip install click --log LOG_FILE. Taken from this answer.


20.04 LTS upgrade options - nothing works

Thanks to the pointers in the comments.

My solution: remove libsane1 and libsane-common as I did not need them.

Doing a sudo apt-get upgrade showed no packages were being held back or issues that I not in the comments on the question.

Then ran sudo do-release-upgrade -d - this time it didn't complain about updating my system. The OS upgrade is underway...


1. Run the correct shell

* *  * * * /bin/sh .....

You are not running bash, you are running sh, so you should not expect .bashrc to be loaded!

Try this instead:

* *  * * * /bin/bash .....

2. Work around Ubuntu's default .bashrc

Another problem might be that Ubuntu's default .bashrc script starts with this guard:

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

Any lines you add below this will not be loaded by your cron script because cronjobs do not run in an interactive environment.

The solution: Put functions for scripts above this guard.  Keep setup for the user below this guard.

3. Load the complete user login environment

On some systems I find its easiest to use --login to ensure the shell has the same things loaded that I have at the command line.

* *  * * * bash --login /path/to/script.sh

* *  * * * bash --login -c "your command here"


Yes it does. You can check in Ubuntu Software Center → History → Installations.


Convert .dng to .png is not working in Ubuntu 16.04

Interestingly enough the Repository imagemagick package in Ubuntu 16.04 claims to support Adobe Digital Negative Raw (DNG) Image files:

andrew@corinth:~$ identify -list format | grep -i dng
      3FR  DNG       r--   Hasselblad CFV/H3D39II
      ARW  DNG       r--   Sony Alpha Raw Image Format
      CR2  DNG       r--   Canon Digital Camera Raw Image Format
      CRW  DNG       r--   Canon Digital Camera Raw Image Format
      DCR  DNG       r--   Kodak Digital Camera Raw Image File
      DNG  DNG       r--   Digital Negative
      ERF  DNG       r--   Epson RAW Format
      K25  DNG       r--   Kodak Digital Camera Raw Image Format
      KDC  DNG       r--   Kodak Digital Camera Raw Image Format
      MEF  DNG       r--   Mamiya Raw Image File
      MRW  DNG       r--   Sony (Minolta) Raw Image File
      NEF  DNG       r--   Nikon Digital SLR Camera Raw Image File
      NRW  DNG       r--   Nikon Digital SLR Camera Raw Image File
      ORF  DNG       r--   Olympus Digital Camera Raw Image File
      PEF  DNG       r--   Pentax Electronic File
      RAF  DNG       r--   Fuji CCD-RAW Graphic File
      RAW  DNG       r--   Raw
      RMF  DNG       r--   Raw Media Format
      RW2  DNG       r--   Panasonic Lumix Raw Image
      SR2  DNG       r--   Sony Raw Format 2
      SRF  DNG       r--   Sony Raw Format
      X3F  DNG       r--   Sigma Camera RAW Picture File
andrew@corinth:~$

However conversion of these files with imagemagick fails with a welter of error messages. This is confirmed on my own Ubuntu 16.04 installation as well as yours.

If you install the Unidentified Flying Raw (UFRaw) package though all will then be well:

sudo apt-get install ufraw-batch

This tested perfectly on my system, with my own sample file, and should also on yours (note especially the call to ufraw-batch in the Terminal output):

andrew@corinth:~/Desktop$ convert -verbose L1004220.DNG test.png
"ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=/tmp/magick-3253fgAn5Rixofwy.png" "/tmp/magick-3253IyazXOpb6yKj"
 Found a generic profile, type exif
/tmp/magick-3253fgAn5Rixofwy.png PNG 5216x3472 5216x3472+0+0 16-bit sRGB 92.39MB 1.100u 0:01.110
L1004220.DNG=>/tmp/magick-3253fgAn5Rixofwy.png DNG 5216x3472 5216x3472+0+0 16-bit sRGB 92.39MB 0.010u 0:00.009
writing raw profile: type=exif, length=6064
L1004220.DNG=>test.png DNG 5216x3472 5216x3472+0+0 16-bit sRGB 92.19MB 6.090u 0:06.210
andrew@corinth:~/Desktop$


The bookmarks section will not be shown until you add a bookmark by either pressing Ctrl-D or dragging and dropping in the side bar.

Once you add a bookmark, A section will be created with Bookmarks name and will show your added folders.


Ubuntu 18.04 won't boot and can't get back to Mac OS

First of all, try opening the "disks" application in Ubuntu, then check if there is a "Macintosh HD" partition. If there is, bravo, celebrate, dance, or kiss your dog because you didn't overwrite/single-boot Ubuntu.

Now, you can mount it in the meantime and get your stuff (obviously, MacOS apps do not work on Linux.) I, too, have the same problem because I do not have a USB keyboard. Notice that if you hold the option key or any MacOS related boot options don't work. That's because your keyboard and probably your mouse are Bluetooth devices.

Also, notice that you have to wait a while when your computer boots and/or you have to type, toggle, etc. your keyboard and hover or click your mouse. Because it's connecting to your Mac Mini.

My solution for you is this:

Change to a USB keyboard and mouse, or just buy a cheap keyboard (and probably a mouse), hold option, then kiss your Mac Mini because both of you are together again. Reply to me if you need more help.


You can try this:

Press Ctrl+Alt+t to open the Terminal.
Now type these commands:

This will remove the components for Unity:

sudo apt-get remove compizconfig-settings-manager
sudo apt-get remove compiz-fusion-plugins-extra
sudo apt-get remove compiz-plugins-extra
sudo apt-get purge compiz*

Now this will reinstall them:

sudo apt-get install unity-2d
sudo apt-get install ubuntu-desktop
sudo apt-get install ubuntu-desktop-2d
sudo apt-get install compizconfig-settings-manager
sudo apt-get install xserver-xgl
sudo apt-get install emerald
sudo apt-get install compiz-fusion-plugins-extra
sudo apt-get install git compiz-plugins-extra
sudo apt-get install compiz-plugins-extra
sudo apt-get install unity

Hope this helps you!


Why doesn't wlan0 get added to the Ethernet bridge at boot?

Open terminal and typesudo gedit /etc/NetworkManager/NetworkManager.conf
and then change false to true.
Save the file.
Now in terminal typesudo gedit /etc/network/interfaces and remove everything except auto lo
iface lo inet loopback
Save the file and then in terminal typesudo service network-manager restart

Now restart your system and check.

Hope this works for you


Script for finding a longest and shortest word or string in a file?

Assuming the Length values in the FASTA headers are correct, I would extract them from there:

sed -nre 's/^>.*_Length_([0-9]+) .*/\1/p' \

then sort them numerically

| sort -n \

then output the first and last line

| sed -ne '1p;$p'

In one statement:

sed -nre 's/^>.*Length_([0-9]+) .*/\1/p' | sort -n | sed -ne '1p;$p'

If the lengths declared in the headers cannot be trusted, then to count the length of the FASTA sequences, I would first convert them to unfasta, then print the line length of every second line into the  same sort | sed filter as above:

uf | awk 'NR%2==0 {print length}' | sort -n | sed -n '1p;$p'

Where uf is the simple bash script found here.

Note: both one-liners are filters, that is they read their input from standard input and write to standard output.  Use cat to feed them files (or wget -O - to feed them off the internet).


Operating System Not Found attempting to dual boot in Legacy

I'm not calling this a solution, but rather a working workaround - I used unetbootin instead of diskpart on the command line to create the bootable USB drive, and then it installed alongside Windows 10 as expected in Legacy mode, and now it dual-boots perfectly.


Team Fortress 2 doesn't work in version 17.04

So it turns out that this is an odd issue from 2015. It was just recently brought back. Thanks for nothing ubuntu community for telling me that I was below the minimum specs when that clearly wasn't true. So I had to fix it myself.

https://steamcommunity.com/app/221410/discussions/2/666826703693809496/
You run the following command and then boot the game again. It will run fine afterwards as far as I can tell.
sudo apt-get install libtxc-dxtn-s2tc0:i386


How do I remove Samba4.2.0pre which was compiled from source?

The samba source compiler might actually have an "uninstall" command as part of the makefile that can remove the software.

Try doing make uninstall or make remove.  If the makefile was created sanely then it's likely one of those two commands might actually remove the software compiled by the source through make and make install.


Ubuntu 17.04- E: Sub-process /usr/bin/dpkg returned an error code (1)

The problem is not with mongodb-org. The problem is with oracle jdk

Try purging the oracle-java7 packages

sudo apt-get purge oracle-java7-installer oracle-java7-set-default

If you get any error in above command than try remove instead of purge.

Don't install oracle-jdk they are not officially supported by the ubuntu repo, so things get broken many times. Try openjdk instead.


What recent netbooks, as of April 2011, are known to work properly with Ubuntu?

I think this one is the best when it comes to ubuntu.


Video, Music and Photo lenses show no results

sudo apt-get install --reinstall unity-scope-home

and

sudo unity --replace & disown

did the trick.


Delete all directories except the most recent

Here is a way to do this using find.

find -type d ! -wholename $(find -type d -printf '%T+ %p\n' | sort -r | head -1 | cut -d" " -f2) ! -wholename "." -exec rm -r {} +

Command breakdown:

find -type d the first part tells find to search for directories only
! -wholename exclude hits with the following complete name. The following part (between $()) is evaluated and used as file name here

$(find -type d -printf '%T+ %p\n' | print timestamps for directories
sort -r | sort them newest to oldest
head -1 | take only the first line (newest directory)
cut -d" " -f2) remove the timestamp from the output

! -wholename "." exclude hits with the complete name .. You cannot remove the directory, your currently working in.
-exec rm -r {} + remove the matching files.

You should run the command without the last part (-exec rm -r {} +) first, to see which directories will be removed.

Example:

directory content:

Aug  4 14:38 bar/
Aug  4 14:38 bla
Aug  4 14:38 foo/
Aug  4 14:41 foobar/

running command:

find -type d ! -wholename $(find -type d -printf '%T+ %p\n' | sort -r | head -1 | cut -d" " -f2) ! -wholename "." -exec rm -r {} +

resulting directory content:

Aug  4 14:38 bla
Aug  4 14:41 foobar/

note that bla is a file and not a directory. So it will not be removed.


Why environment variable disappears after terminal reopen?

Environment variables set like this are only stored temporally. When you exit the running instance of bash by exiting the terminal, they get discarded.
To save them permanentally, write the export x=y commands into /etc/profile (for all users) or ~/.profile (for yourself)
Do this by editing/creating (?) the file using your preferred text editor (as root for /etc/profile). Examples:

sudo nano /etc/profile
gedit ~/.profile
# etc... kate, leafpad, vim, whatever you want to use


Ok. First after long time searching, I see that /var/lib/mysql folder is set permission to root and not to mysql user, so I don chmod mysql:mysql on /var/lib/mysql. 2nd is the /var/log/mysql folder and file is set to root, I need to change it back to mysql:adm so I did it, and my mysql server run again without problem, seems I mess up with chown root:root .* on /root so cause everything change to root. I got lucky it still boot anyway.


This help page details the methods that you can use to fix your login issue: https://help.ubuntu.com/16.04/ubuntu-help/user-forgottenpassword.html

Restart your computer, and hold down Shift during bootup to get into the Grub menu.
Press the down arrow on your keyboard to highlight the line that ends with the words 'recovery mode', then press Enter.
Your computer will now begin the boot process. After a few moments, a Recovery Menu will appear. Use your down arrow key to highlight root and press Enter.
At the # symbol, type:
passwd username, where username is the username of the account you're changing the password for.
You will be prompted to enter a new UNIX password, and to confirm the new password.
Then type:
# reboot


In the basic options tab you need to put the address of the remote location:

A typical example that you can put there is...

{username}@{hostname}:/{dir}/{dir}/{dir}

where {username} is the name of the user on {host} (ipadres or hostname) and {dir/} the location.

Image found here and it has a very nice how to om the page where I found the image.


What would be safe way to update server?

Most of the times, upgrades are quite safe.
Unfortunately, you can never be 100% sure that everything is going to go well.

So I suggest you do what everyone does when an upgrade is imminent: backup.

Get an external HDD or any other kind of storage (network file server...), backup all your necessary files (including configuration files for running servers like apache, samba, etc) and then proceed with the upgrade.

Update: If Ubuntu Server is an image running on a VMware Workstation, why don't you just clone/backup this image and then do the upgrade?

You'll have to run: sudo do-release-upgrade

More info can be found here

Latest update:

After the upgrade, the screen would go black with a blinking cursor.

We discussed the issue and found out that grub entries had splash vt.handoff=7 appended although there was no GUI installed.

We then tried to edit the grub entries and delete the above parameters, which worked.

So we then edited /etc/default/grub and made GRUB_CMDLINE_LINUX_DEFAULT="".
Saved the file, issued a sudo update-grub in order to update the grub menu entries and the problem was solved.


AFAIK it's the very rare program indeed that relies on atime, and using noatime is safe virtually everywhere.

The serverfault question Turning off atime on a filesystem says it's basically only mutt (when using an mbox mailbox) and there's an easy workaround anyway, or the very occasional program like tmpwatch or temporary file cleaners:

  mutt, an email client, uses file access times to monitor for new mail arriving on an mbox-formatted mailbox. Apparently, this problem is not serious, and is easy to work around.

  Other than that, it is difficult to find examples of things that break on noatime. I run a number of Linux servers with noatime on all filesystems, and I can't recall ever having seen any problems attributable to noatime.

And using noatime could improve performance, perhaps by a lot over the old strictatime (but should still help a little over even today's standard relatime, saving every write on a flash/SSD is good):

  Linux: Replacing atime With relatime

  Submitted by Jeremy on August 7, 2007 - 11:26am

  In a recent lkml thread, Linus Torvalds was involved in a discussion about mounting filesystems with the noatime option for better performance, "'noatime,data=writeback' will quite likely be quite noticeable (with different effects for different loads), but almost nobody actually runs that way." He noted that he set O_NOATIME when writing git, "and it was an absolutely huge time-saver for the case of not having 'noatime' in the mount options. Certainly more than your estimated 10% under some loads." The discussion then looked at using the relatime mount option to improve the situation, "relative atime only updates the atime if the previous atime is older than the mtime or ctime. Like noatime, but useful for applications like mutt that need to know when a file has been read since it was last modified." Ingo Molnar stressed the significance of fixing this performance issue, "I cannot over-emphasize how much of a deal it is in practice. Atime updates are by far the biggest IO performance deficiency that Linux has today. Getting rid of atime updates would give us more everyday Linux performance than all the pagecache speedups of the past 10 years, combined." He submitted some patches to improve relatime, and noted about atime:

    "It's also perhaps the most stupid Unix design idea of all times. Unix is really nice and well done, but think about this a bit: 'For every file that is read from the disk, lets do a ... write to the disk! And, for every file that is already cached and which we read from the cache ... do a write to the disk!'"

There is an answer on serverfault (Drawbacks of mounting a filesystem with noatime?) saying that for the last 10 years or so, mounting with noatime apparently has no problems:

  There exist applications that will move files off to a secondary storage if they haven't been accessed for a certain time period. Obviously, they need the atime.

  Other than that, I don't see much use for this (anymore), especially as file managers these days have a tendency to open files to generate previews, therefore modifiying the atime just while browsing a directory.

  I always mount with noatime these days.

  answered Jul 29 '09 at 11:09
  Sven♦
  86.4k


How to use android 2.1 phone as remote audio receiver?

Two days ago I stumbled on this question and couldn't get it right. Eventually I read in AirBubble manual that RAOP is unsupported.

I finally solved it with DLNA/UPnP capabilities of pulseaudio. It works just like you would expect. You play sound with any app with pulseaudio output on your box and select the streaming output whenever you like to redirect it to your Android device.

First, install Rygel:

$ sudo apt-get install rygel rygel-preferences rygel-gst-launch

Then alter the file /etc/rygel.conf, so that the line with the parameter enable-transcoding looks like this:

enable-transcoding=false

Then load the DLNA and TCP modules and start rygel:

$ pactl load-module module-http-protocol-tcp
$ pactl load-module module-rygel-media-server
$ pactl load-module module-null-sink sink_name=upnp format=s16be channels=2 rate=44100 sink_properties="device.description='DLNA/UPnP Streaming' device.bus='network' device.icon_name='network-server'"
$ rygel

On your Android device download the app BubbleUPnP. Your pulseaudio output devices will be listed under the server "Sound on %HOSTNAME%". Direct the output on your computer to the DLNA device in sound preferences. Select the same output in BubbleUPnP.

Bear in mind that BubbleUPnP streams the first 30 minutes for free. The full version is 3,49€, but I guess it's worth the price. I didn't get any other app to work for me.

Finally, you can disable the media browser if you don't like it using rygel-preferences:

$ rygel-preferences

One more heads-up: this directly streams raw LPCM data, which is constantly ~250 kB/s. Any spurious WLAN activity will induce stuttering if you're on anything but an 802.11 n network. If you plan to base your entertainment solutions on wireless streaming, consider buying a wireless n router.

FOLLOW UP: TRANSCODING

To reduce network overhead and stuttering (which will happen unless you're on a 802.11 n network), it is possible to turn to transcoding the audio stream to mp3.

Paste this into ~/.config/rygel.conf

[GstLaunch]
enabled=true
launch-items=mypulseaudiosink
mypulseaudiosink-title=Sound on @HOSTNAME@
mypulseaudiosink-mime=audio/mpeg
mypulseaudiosink-launch=pulsesrc device=upnp.monitor ! lamemp3enc target=quality quality=6

Use the "Gst Launch" DLNA service which will now appear when you start rygel.

FOLLOW UP 2: FLAC

LAME can cause up to 2 minutes (!) of delay. FLAC on the other hand is pretty fast, normally clocking below one second. Change the lines in the above example to:

mypulseaudiosink-mime=audio/flac
mypulseaudiosink-launch=pulsesrc device=upnp.monitor ! flacenc quality=8

This reduces the stream to about 100 kB/s, allowing for smooth playback on most 802.11g networks with multiple users. I tested it while downloading a torrent. At full speed, there was some stuttering, but when I limited the download speed to around 200 kB/s below my maximum bandwidth, it was smooth again.

Plus, you have eliminated any loss in quality.

Couple of issues on the above - check and edit ~/.config/rygel.conf instead, the /etc/.config/rygel.conf if it isn't loaded by default (?).

The sink creation will not work on later Ubuntu versions.

What worked for me, however, is to follow all instructions (sans the sink creation). Then run paprefs, and on the "Network server" tab, select the bottom option "Make local sound devices available as uPnP server" (and maybe the suboption is required as well).

Start rygel, and select the new "DLNA/UPnP Streaming" option in PulseAudio settings.

On BubbleUPnP select "Gst Launch" as Library. In the app, select Library and there should now be an option on the top called "Sound on ".


What can I do to restore disk performance on slower Ubuntu VM

I ended up creating a new virtual disk in VMware and manually copying the data across. It worked - the machine is now noticeably faster and hdparm reports:

/dev/sda:
 Timing cached reads:   18598 MB in  1.99 seconds = 9322.95 MB/sec
 Timing buffered disk reads: 394 MB in  3.00 seconds = 131.31 MB/sec

The steps were:

Shut down the machine.
Add a new virtual disk device (sdb).
Boot from an Ubuntu LiveCD.
Partition the new disk (I had only 1 partition).
mount both old and new partitions
copy data using cp -ax /mnt/sda1 /mnt/sdb1
Shut down
Remove the old disk and change the new one to node SCSI 0:0, so it becomes "sda".
Boot from the Ubuntu LiveCD again and fix grub using the "via chroot" method
Edit /etc/fstab, which referred to the old partition by UUIDs to use /dev/sda1 (or I could have used the new UUID)
Reboot from the new disk and enjoy a faster VM!


Error when installing Makefile: "make: *** No targets specified and no makefile found.  Stop."

That happens because there is no file named Makefile in that directory. To create that Makefile, you need to execute

$ ./configure

The configure script determines if your system has all the dependencies necessary to compile the application. If a dependency is not found, the configure will fail and the Makefile's will not be created. To solve that, you must install all the dependencies needed by the application.

The application xf86-video-intel seems to be provided by the xserver-xorg-video-intel package, and its dependencies may be easily installed by running

$ sudo apt-get build-dep xserver-xorg-video-intel

For more information, you might want to read the README or INSTALL files.


Laptop don't install the ubuntu from usb port(problem loading UEFI: db X.509)

Why disable secure boot when installing ubuntu. No need to turn off secure boot, ubuntu works great with secure boot on. And is not secure for windows 10 without secure boot.
I also have dual boot win 10 and ubuntu 20.04. and everything works great. My laptop is an acer aspire e15 with an NVME SSD.
But I also had a lot of problems until I installed it successfully. Try to follow these instructions, yes they are in Croatian, but try to translate into your language.
https://www.linuxzasve.com/forum/viewtopic.php?f=11&t=14176

It would also be advisable to reset the secure boot to factory settings before installing ubuntu if you have already modified something and set the new secure boot as reliable in the bios. Nothing will happen with windows 10, only the secure boot will return to the state it was in before you set it up.


Get Apache2 to restart after reboot, ubuntu 16.04

Ubuntu 16.04 uses systemd.

General instructions: https://www.digitalocean.com/community/tutorials/systemd-essentials-working-with-services-units-and-the-journal

sudo systemctl enable nginx.service


Your wifi drivers,lan etc will be installed automatically.

If not then goto additional drivers from the dash by Pressing The meta(windows) Key.


"System is running in low graphics mode"

Have you installed your graphics drivers ??

if not pelase install them else you cannot switch to other resolutions that your gfx supports..

you can easily install them from additional drivers option

else

Envy ng can do this work for you :
http://www.albertomilone.com/nvidia_scripts1.html


You can do this by using dconf-tools. So open a terminal and type:

sudo apt-get install dconf-tools

Now, open dconf tools and go to com -> canonical -> indicator -> datetime

Change the value of time-format to custom and change the value of custom-time-format to %F %A. This will hide the time and display date as YYYY-mm-dd <full weekday name>.
 Refer to man date for other formats that you can use.

From man date:

%F     full date; same as %Y-%m-%d
%A     locale's full weekday name (e.g., Sunday)


Is it possible to insert icons on folders with the "gio set" command?

As solved in the comments, gio set command uses same form of parameters that the gvfs-set-attribute uses, except set in gio is a separate command-line parameter, instead of gvfs-set-attribute being one whole comman. Thus the proper command should be:

gio set -t 'string' folderIWishToInsertIcon 'metadata::custom-icon' 'file:///home/myUser/myIcon.png'


installing Canon LBP-810 on Ubuntu 18.04

It actually appears that someone reverse engineered the protocol used which lead to the capt driver.

There are instructions here for ubuntu 14.04, but you can definitely compile it from source. The git repo for it is located here and it should be fairly self explanatory to install with the instructions in INSTALL.git and the INSTALL file.


use Sakis3G http://www.sakis3g.org/.

instructions:-
1) Download and extract it.
2) right click on it and open properties.
3) Got to the permission tab.
4) Check "run as executable"
5) open and enjoy :)


Copied filenames prefixed with `x-special/nautilus-clipboard copy file://`

Unbelievably, however inconveniencing it is, this bug is more than 2 years old, and hasn't been fixed yet.  The best workaround for me has been the Nautilus script with a keyboard shortcut described by Filip Tack here.
First, install xsel with apt install xsel.
Then, on ~/.local/share/nautilus/scripts create a file (you can choose any name you want, but let's suppose you call it "copypath") with the following line of code.  It copies to the clipboard the path of your selection in Nautilus:
echo -n "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | xsel -b -i

To run it, right-click on the file of interest and go to Scripts, copypath.  Then you can paste the path anywhere.
But repeating this many times is unwieldy. You can define a keyboard shortcut for a quicker copy:

Create a file .config/nautilus/scripts-accels if it does not yet exist, and add the line

<Control><Shift>c copypath

to bind the script to c in Nautilus.

The scripts works immediately, but the shortcut needs logging back in.


Could this have been caused by electrostatic discharge? I've personally never seen such an immediate shutdown caused by software.

Quoting this article:

  Several models of Thinkpads have been reported to shut-off when inserted into a Dock, Mini Dock or Port Replicator. [...] Thinkpads affected are the R60, T60/T61 series, and Z6x series.

That page suggests to contact Lenovo Support to receive some rubber caps for the dock, which should stop the problem.


Ubuntu usually comes with generic ARM support - it is not targeted on specific ARM embedded boards (maybe a few reference boards like the Raspberry Pi may be the exception here). That's usually where the silicon manufacturers come in - in your case Freescale/NXP.

i.MX7 is based on Cortex-A7 so you'll need an armhf root file system. Notice in the embedded realm the distribution is just about what's on your file system, as the Linux kernel, drivers and bootloader are usually provided by the board vendor.

That guide you pointed to is indeed about Ubuntu 14.04 but it can be used just fine as a reference with newer versions - you'll just need to get another Ubuntu filesystem archive downloaded and flashed on your SD card. And you may also want to get the latest BSP packages from NXP.

You could probably just grab the armhf rootfs from here: http://cdimage.ubuntu.com/ubuntu-base/releases/18.04/release/ and just replace the original rootfs from the BSP (I guess that would be the result of some yocto build) with the Ubuntu one while keeping the bootloader, kernel, device treees, modules ... See where that gets you.


Can't install from USB - "missing operating system"

You will never succeed to boot from the USB in the way you said you put ubuntu on it ("I have downloaded and unpacked the operating system onto"). Follow these instructions to manage this: How do I install Ubuntu from an USB drive / create a live USB-stick?


Can you add a startup and a shutdown sound ?

You could make that (and other customizations) by replacing the default sound files in /usr/share/sounds/ubuntu/stereo (broadly in /usr/share/sounds/*).

Try to replace (keep a backup if you want to) these files and check:

/usr/share/sounds/ubuntu/stereo/desktop-login.ogg
/usr/share/sounds/ubuntu/stereo/desktop-logout.ogg

(remember to use the correct extensions and permissions. You have to use elevated privileges to do the operations. Use sudo when doing it from terminal or launch Nautilus with gksu nautilus & and then make the customizations. Please comment if you need more help with this.)


XFS does not support file compression.

BTRFS supports compression, and so does zfs. You would have to change to one of those file systems to do compression.

VDO is a new compression layer from Redhat, which acts as a virtual file system. It does not appear to be available for Ubuntu for now, and will probably not be ported to 14.04, which is soon end of life.


Install Ubuntu 12.04 from Pen drive, now will not boot

I have found my own answer, it is located in this link about resetting ubuntu's graphics driver to generic:

My computer boots to a black screen, what options do I have to fix it?


Open a terminal and type sudo apt-get install nautilus.

Then restart your session.

For some reason, Nautilus is not completely updated when you install the Elementary version. This will complete the upgrading process and Preferences and Menu will be there again the next time you start Nautilus.


Yes, It is possible to have Unity and GNOME installed at same time. Here's what I did: I installed Ubuntu GNOME 13.04. Then I installed GNOME 3.8 via PPA. Later(After using GNOME 3.8 for months) I installed Unity on my machine.

For instructions to install latest GNOME on Ubuntu 13.04, go to : Is it stable to install GNOME 3.8 on Ubuntu 13.04?

To install Unity I used : sudo apt-get install ubuntu-desktop

In your case, You may install latest version of GNOME using link above. During installation it will ask you for default DM (Light-DM or GDM). Choose either. Reboot and choose your session from Login Screen (Ubuntu or GNOME).

When you run GNOME, if your desktop still looks like Unity, then you may need to change current theme, cursor theme, icon theme, gtk+ theme etc. using "gnome-tweak-tool" (To install : sudo apt-get install gnome-tweak-tool).

If you don't want to use GNOME and want to use Unity, just logout and choose your session from Login Screen (Ubuntu or GNOME). After running Unity, you may need to change current theme, cursor theme, icon theme, gtk+ theme etc. using "gnome-tweak-tool" (I needed to).

If you want to change default Display Manager, this may help: How can I make LightDM the default display manager?


Keyboard shortcuts not working in Ubuntu 17.10 with Unity

I ran into this issue too with an update to Ubuntu 17.10 and switch to Unity.

To get Ctrl+Alt+T to spawn a gnome-terminal I started ccsm and went to the "Commands" item in the "General" section entering /usr/bin/gnome-terminal in "Command line 0" under the "Commands" tab and set Ctrl+Alt+T for "Run command 0" under the "Key Bindings" tab. The "Commands" item also needs to be enabled with the tick mark.

In unity-control-center under "Keyboard" and "Shortcuts" tab the "Launch terminal" in the "Launchers" section now displays "Disabled".


"io: postinst-must-call-ldconfig" when creating a package

postinst is a maintainer script that you can add to the debian directory. Most straight forward packages shouldn't require the maintainer to create this file. Debhelper will automatically create it for you in the binary package. See both the New Maintainer's Guide and Debian Policy Manual's sections on maintainer scripts.


MacBook Pro 9.2, trying to single install Ubuntu. Encountering problems after restart

I see that your problem is that the 'boot' flag is linked to an FAT file system. Since you are planning only ubuntu in your system you should link the boot drive to an ext4 file system. In other words, the booting drive should be from an ext partition. Trust this helps.


I was able to execute a file search and found accounts.conf with the offending login name. I renamed the file to accounts.conf.bak and rebooted.

~/.config/goa-1.0/accounts.conf


second Operating system on ssd doesnt seem on grub menu

The reason is that you have 2 HDDs, each with a GRUB installed to their MBRs, but you can only boot one GRUB (at a time), namely the one on the first hard drive with the Ubuntu installed on it (sda). The solution is to update Ubuntu's /boot/grub/grub.cfg so it will detect and include Fedora as well:

sudo update-grub


freerdp, which underlies remmina's rdp access does kinda support it. It is the only client I've found that does and have been able to get work, but it is very buggy and hard to get installed the version that does support it when I tried on 13.10. I haven't tried on 14.04 yet.

There is a feature request here if you'd like to support the enhancement.
https://github.com/FreeRDP/Remmina/issues/347


The latest LTS version of Ubuntu 18.04 has a very good security system.

From your question, it is obvious that you had a permission problem. I had a similar problem sometime ago when I first tried to upgrade to Ubuntu 18.04. To solve this problem, just create a directly where you want to place other files.

I will create a directory at /var/www directly for simplicity. Then type the following commands:

sudo mkdir /var/www/$YOUR_DIR_NAME
sudo -R chown $USER:$USER /var/www/$YOUR_DIR_NAME/$YOUR_FILE_NAME
sudo chmod 777 -R /var/www

Once you do this, you will have full access to the file. You will be able to access, read, write, delete and do pretty much anything to the file.

Don't forget to change the variables $YOUR_DIR_NAME, $USER and $YOUR_FILE_NAME respectively! This should always solve the problem for anyone with similar issues.


how to connect android phone with ubuntu 12.04 laptop for accessing laptop's internet connection over wifi

Some mobile devices doesn't able to detect the hotspot created on ubuntu by default method.Solution for this problem is to install ap-hotspot software on Ubuntu.

For Ubuntu 12.10,13.04,13.10

Run these commands to install ap-hotspot.

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install ap-hotspot

Run these commands to start and stop ap-hotspot.

sudo ap-hotspot start
sudo ap-hotspot stop

Run this command to configure  ap-hotspot

sudo ap-hotspot configure

If it asks for WPA passphrase give a key with the minimum of 8 characters.

OR
For Ubuntu 12.04

you can download the script from here.This script requires Hostapd 1.0 which was available by default in Ubuntu 12.10,13.04,13.10.
For Ubuntu 12.04,add these two lines to /etc/apt/sources.list

deb http://ppa.launchpad.net/network-manager/ppa/ubuntu precise main
   deb-src http://ppa.launchpad.net/network-manager/ppa/ubuntu precise main

and save the file and run the below commands in terminal.

sudo apt-get update
sudo apt-get install hostapd


How can I restore /usr/share/fonts on 10.04?

Just want to add how this was resolved: Simply restarting X using

gnome-session-save --force-logout

(from an X terminal), next login everything was Ok again.


[TLP]-error: "tp-smapi = inactive (kernel module 'tp_smapi' not installed)" on thinkpad t460s

The installation of tp-smapi-dkms failed at some point. As you have a T460s i reckon you're using a 4.6 kernel. tp-smapi-dkms 0.41-1 from the Xenial repos doesnt't compile with that kernel. Only 0.42-1 from Yakkety or Debian unstable will do.

BUT: tp-smapi won't work on the T460s anyway (and is not needed), so just remove it and you'll be fine:

sudo apt-get purge tp-smapi-dkms


2 computers, 1 with Ubuntu and a wireless problem

I had this issue several times, mostly the problem is because you don't have the necessary drivers installed. Also, you may improve the connection speed by disabling IPv6.

Disabling IPv6:
Go to the Network menu and click on the "Connection Information" menu. If there's nothing under the IPv6 box, you can safely disable IPv6.

Installing Wireless N drivers:
If you use a Wireless N device (which may be the case), you should install the wlan-ng drivers (you can search them in the Software Center).


You have unmet dependencies. Try to use sudo apt-get install -f libboost-all-dev to install unmet dependencies as well.


Ubuntu VM Graphical user interface problem

I installed xfce4 on an ubuntu server vm that i have with

sudo apt-get update
sudo apt-get install xfce4 slim

Then reboot

sudo reboot

Note: it didn't work on the first login attempt, but from that point it worked fine.


How to setup a tftp server in ubuntu 14.04

make sure you are sending the file from the current directory. And one more thing you can check is edit the tftp service file in /etc/xinetd.d/tftp

make the setting like this

service tftp
{
   protocol = udp
   port = 69
   socket_type = dgram
   wait = yes
   user = nobody
   server = /usr/sbin/in.tftpd
   server_args = /tftpboot -s
   disable = no
}


Remove and replace all Slashes from Filenames recursively

Based on the ls output in your comment, the character in question is a Unicode fraction slash rather than an ordinary ASCII slash (which would be illegal in a Unix filename, since it is used as the path separator character).
In a UTF-8 locale, ⁄ (U+2044, octal \342\201\204 or hex 0xE2 0x81 0x84) is an ordinary character that you can manipulate / replace in the usual way with the perl-based rename command for example. Ex.:
$ touch hello⁄there.txt File⁄name.jpg

$ rename -n 's/\342\201\204/_/g' *
rename(File⁄name.jpg, File_name.jpg)
rename(hello⁄there.txt, hello_there.txt)

or
$ rename -n 's/\xe2\x81\x84/_/g' *
rename(File⁄name.jpg, File_name.jpg)
rename(hello⁄there.txt, hello_there.txt)

Remove the -n once you are happy that it is doing the right thing.
If you want to use find to descend directories recursively you can do so like
find . -type f -name "$(printf '*\342\201\204*')" -execdir rename -n 's/\342\201\204/_/g' {} +

(If the directory names can contain \342\201\204 and you want to replace those as well, then you will need to add -depth and remove the -type f restriction).


The command

$ sudo apt remove shim-signed grub-efi-amd64-signed

seems to fix it.


If you are using GNOME panel then you can add any application in there. All you have to do is Super+Alt+Right Click in panel. Click Add to panel and then select Application Launcher and click forward.

Then choose your desired application from list and click add.

You are done.