You could package it as ISO archive (or any other archive like tar, zip, ...) using the Archive Manager from Nautilus' context menu of a file or folder:

Open your Files Manager (Nautilus) and navigate to the location of what you want to package. Right-click on that and select Compress... from the context menu. The window below will appear:

Enter a filename select a format/suffix from the drop-down list on the right. I selected .iso here. On some formats you can set a password or split the archive up into smaller chunks, but ISO does not support any of those Other Options. Then chose a target directory where to place the created archive and click on Create.

Once the archive is created, you can either normally open it using the Archive Manager (file-roller) or you can mount it like a disk image using Archive Mounter.

Therefore navigate to the location of the archive in your Files Manager (Nautilus) and right-click on it. In the context menu, select Open with → Archive Mounter.

It will automatically mount the archive anywhere and you can access it through the list of devices in the left part of Nautilus.

The Archive Mounter should be able to somehow mount most archive formats.
When you created an ISO archive, you also have the additional option to open it with Disk Image Mounter. That one does mount it like a real CD/DVD and uses the mount point /media/<<YOUR_USERNAME>>/CDROM.


How are there two identical folders in the same location?

.desktop file
The only possible explanation I can think of is that one of them is a .desktop file. To find out, run ls ~/Desktop, and see if that is the case. [your comment confirmed my suspicion]
If That is the case, you can check what is inside it by running
gedit '~/Desktop/The Door.desktop'

It seems a pretty useless file though.
The big question is where it came from


My partition table was MBR, and it hindered me to start UEFI loaders. I have converted table with gdisk util to GPT without losing of my data. Now UEFI works fine


No Grub menu on boot. windows's blue screen with error code0x0000225

The problem seems to be with boot priority in bios. To correct this problem open bios and probably you will get windows 8.1 on top priority, change it to your desired operating system ie Ubuntu .


Log does clearly indicates that the problem is with db acess. When db user is created, you can define from where that user is allowed to connect. As it is juju that configured db, you should check charm documentation, whether you should pass some extra config to charm to indicate how db is supposed to be configured. I think I had similar issues when configured some services on same host as db, juju recognized it and configured database to allow only connections through local socket. Solution was removing everything and installing services in lxc ( juju deploy --to lxc:0 mysql ).


How to edit system files with the Kate editor?

Just go ahead and edit the file without the sudo.  When you're done, save it as usual.  You'll get a prompt asking for the system password.  Supply it, and you're done. (This might not work for some Ubuntu releases, though.)


How can I see the name and password of my wifi using ethernet cable connection

If you want to retrieve the Wifi password of a known connection. Simply go to:

/etc/NetworkManager/system-connections/

You will see all the saved connection profiles there, and you open it with root previliege:

sudo cat some-ap-profile

The password will be in the [802-11-wireless-security] section, see the psk= part:

[802-11-wireless-security]
key-mgmt=wpa-psk
auth-alg=open
psk=HERE-IS-THE-PASSWORD


I downloaded Ubuntu. it appeared as a removable disk drive. Then i restarted my computer. The ubuntu files were missing. How do I get them back?

It should still be there (assuming you did not delete it). Burn the .iso file to a CD or DVD using a burning tool of your choice and then put the burned disk into your drive and restart your computer.

It should boot into the LiveCD and if it doesn't, restart your computer again and press ESC or F12 to open a boot menu. Select your Disk Drive and boot to it.

Once booted you should be able to install Ubuntu.

Have a good one.


Connection for controluser as defined in your configuration failed. - XAMPP

Check that no exact duplicate installations of PHP and phpMyAdmin are installed alongside each other (maybe one of them was installed by XAMPP), and if so remove one of the duplicates.
Remove and reinstall mysql-server.

sudo apt purge mysql-server
sudo apt install mysql-server


Characters problem since kernel and graphic update

Try to clear font cache with:

fc-cache -rv

After that, reboot the computer to reinitialize the softwares.


Backup and restore all application to fresh ubuntu install

Try Aptik.

To install it:

sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install aptik


Extend existing Single Disk ZFS with a mirror without formating the existing HDD

I reproduced your case in a VM and paste here step by step. :)
Note: First of all, please do a backup of your data.
I added an empty new disk, so ZFS had no doubt what was the master drive. Although you should have no problem as the first drive already forms part of the pool, a backup is recommended.
Quick answer:
You need the zpool attach command.
Basically:
sudo zpool attach hdd0 existinghdd blankhdd
After, do:
zpool status

And you will see that a mirror has been created.
Your data on the already existing drive will be keep, and will be replicated to the new one (Resilvered).
As ZFS only copys the actual information this process will take more or less depending on the amount of Data. In my VM 300 GB were replicated in 3 seconds, while my experience with SAS and SATA drives, I was Resilvering 10 TB in less than 24 hours (for that I was using drives from 10TB to 14TB SAS) .
Now the long answer with everything I did in my Virtual Box VM:
lsblk --scsi

identify the two empty drives by ls /dev/disk/by-id/
Select one of them and create a pool like your:
sudo zpool create hdd0 id_of_mydrive
See that pool /hdd0 has been created and mounted on root.
sudo zpool status
sudo zpool list
sudo ls -al /hdd0

Fill with some random data (or better copy files there) to generate a drive like data like you.
I generated from random:
sudo dd id=/dev/urandom of=/hdd0/file.000 bs=1M count=100 status=progress
sudo dd id=/dev/urandom of=/hdd0/file.001 bs=1M count=100 status=progress
sudo dd id=/dev/urandom of=/hdd0/file.002 bs=1M count=100 status=progress
Then I got the checksum and saved to verify later.
sudo su
# Please note I continue as root
sha512sum file.000 > file.000.sha512
sha512sum file.001 > file.001.sha512
sha512sum file.002 > file.002.sha512

zpool list shows nearly 100GB of space.
zpool attach hdd0 id_of_mydrive id_of_the_drive_to_add

zpool status will show:
pool: hdd0
state: ONLINE
scan: resilvered 301M in 0 days 00:00:03 with 0 errors...

      NAME                            STATE   READ WRITE CKSUM
      hdd0
        mirror-0
          ata-VBOX_HARDDISK_VBa8...   ONLINE     0     0     0
          ata-VBOX_HARDDISK_VB8c...   ONLINE     0     0     0

errors: No known data errors

I verified the checksums.
zpool list will return as well 99GB of space available, as two drives of 100GB are being used in mirror.
So as kaulex mentioned the format is:
zpool attach
Where device is your previous vdev with data (the single hard drive with Data in the ZFS pool named 'hdd0').
As I did you want to use the Id of the device and not the name, so you will use the identifier in /dev/disk/by-id/ and not sdb, sdc... (Please note, adding /dev/ is not necessary).
The reason to do not use device names like sdb, sdc, sdea, etc... is that those names may change why live is running or between reboots. The id never changes.
In real systems, not Virtual Box, they may start by wwn.


Ubuntu Software Center Proxy with password

You can use cntlm to manage ISA proxy settings.

To get around the catch 22 of installing it, without Ubuntu Software Center being able to connect to the internet, open synaptic, choose to install cntlm and go to File->Generate package download script. Open the script in a text editor and download and install the package manually.

There is a very thorough guide to configure cntlm here.


ubuntu 20.04, second monitor on hdmi port not detected

Check if you have the latest drivers
sudo ubuntu-drivers autoinstall
Then check for your additional drivers.
Try to go to

Software & updates
Additional Drivers
(And there you see your drivers.)
Change your card driver then press apply (even if it is a good driver),
Then change again to the latest driver.
reboot

This resolved my issue, I think because ubuntu did not recognize drivers because of some updates.
Hope it helps.


Can I install Ubuntu on a 3.5GB mini PC?

Lubuntu 13.10 has a minimal desktop environment that is suitable for low-end hardware like your mini PC, however even Lubuntu requires at least 4.7GB of available disk space for best results.

Instructions for installing Lubuntu 13.10 and later on the mini PC

Boot the Lubuntu live USB.

Open a terminal. Type sudo -i leafpad /usr/lib/ubiquity/ubiquity/misc.py. Click on Options and select line number. At about line #853 will be something like "min_disk size = size x 2 #fudge factor", change 2 to 1.4 and then save.

Run the Install Lubuntu. It should now say minimum disk size 3GB. Just be sure when you get to the disk partition/install part select Other and set up the drive as one ext4 partition as /. No swap; a page will come up saying you didn't make a swap partition, but just ignore it.

These instructions also work on Ubuntu and other *buntu distributions that also use the ubiquity live CD installer. In Ubuntu the default text editor is gedit instead of leafpad.


ssh -L (error: bind: Address already in use)

Couldn't you just kill whatever is using that port?

 lsof -ti:5901 | xargs kill -9

lsof -ti:5901 to find whatever is using port 5901.

Pass the whole thing to kill -9 to kill whatever was using port 5901.

Replace with the port you want to open up again.


Try gparted partition Editor to format the usb to fat32 filesystem.
After formatting remove the pendrive and reinsert it.I think it would works.


Updating the system will solve this issue. I would recommend activating the Proposed repositories in case you have not yet done so, but after upgrading 12.10 that minor bug should be fixed. Is not an error, nor does it mean you are not using the drivers correctly.

The bug is simply that the Window, in that line stops mentioning the correct video card. This does not affect the performance, 3D effects or anything else graphics related if that is what is making you doubt.

Here is 12.10 after upgrading and using the 313 drivers as you are doing right now:

And this one

Also in the Software Sources I have all updates active:

So with that in mind, do an update and done. Even if you still see that text not showing the video card, it is just that, a text that is not showing the video card. The video card will still work fine (I know it scares me when I did not see it detected there the first time).

UPDATE - Just did an awesome check with Synaptic and Aptitude to find what did I do apart from the mentioned stuff above. The only thing I found that involved video cards was installing the mesa utils because I normally tend to use the glx commands to check stuff out and to run the sudo nvidia-xconfig command to create the xorg.conf file only if I got an Nvidia missing configuration file bug. Maybe you can give it a go:

sudo apt-get install mesa-utils

and restart the session or reboot. Apart from this, we would end with the same configuration for everything.


How to select X.Org instead of Wayland from the command line?

In /etc/gdm3/custom.conf uncomment the line WaylandEnable=false.


python from your command line must point to python2.7

You might have messed up your apt/aptitude

Delete your symlink and replace with the default python

sudo rm /usr/bin/python

and

sudo ln -sf /usr/bin/python2.7 /usr/bin/python

Similarly for Ubuntu 18.10 python3 points to python3.6

sudo rm /usr/bin/python3

and

sudo ln -sf /usr/bin/python3.6 /usr/bin/python3

Hope this helps


.htaccess Error : Invalid command 'AuthGroupFile'

Try:

a2enmod authz_groupfile

This should help you.


LibreOffice can't access /tmp files in 18.04

I did not have this problem with 18.04 and previous LibreOffice. But I'm having it now with Ubuntu 20.04 and LibreOffice 6.4.

After a bit of research I found out it is a permission problem. In Ubuntu 20.04, apps, including LibreOffice, do not have read access to the folder /tmp where applications (such as Firefox) put temporary files. By the way, you get the same problem if you try to open directly any file from web with its assigned application, directly in Firefox, without downloading it first (e.g. try to open in Firefox a web-stored .deb file with Software Installer).

One way to sort this is to download first the files and, only then, open them. But this is annoying.

Another way, it is to reassign the temporary directory in the /home/user/ directory. This has the advantage of lessening the space requirement on the / directory while still not compromising the security.

The temporary directory is governed by the TMPDIR environment setting. I used the solution proposed here by TrueDuality.

Check where is your current temporary directory:

echo $TMPDIR

or

mktemp -u

It should something look like: /tmp/tmp.zrBHbp0Yt0

Edit the file /etc/profile

sudo gedit /etc/profile

Append the following code:

if [[ -O /home/$USER/tmp && -d /home/$USER/tmp ]]; then
        TMPDIR=/home/$USER/tmp
else
        # You may wish to remove this line, it is there in case
        # a user has put a file 'tmp' in there directory or a
        rm -rf /home/$USER/tmp 2> /dev/null
        mkdir -p /home/$USER/tmp
        TMPDIR=$(mktemp -d /home/$USER/tmp/XXXX)
fi

TMP=$TMPDIR
TEMP=$TMPDIR

export TMPDIR TMP TEMP

reboot
check if your temporary directory has been reassigned to your /home/user/ directory

echo $TMPDIR

This time, the return  should be something like: /home/user/tmp/nrXo , showing that the temp directory has been reassigned.

Remarks:

at this point the problem should be solved and you should be able to do things such as open directly a file from Firefox (instead of downloading it first). The file will be opened in read-only mode.
ONLY IF the last step (5) confirms that the temp directory is now reassigned correctly, you can worry about the new /tmp file growing up endlessly. In order to correct this problem, we need to make sure that at the end of the session, the file is deleted. However, if the previous step was not completed properly, you log-in with root credentials and you proceed to the next step,this can create problems.

CAREFUL!

sudo gedit ~/.bash_logout

add the following lines:

if [ -O $TMPDIR && -d $TMPDIR ]; then
        rm -rf $TMPDIR/*
fi

save. close and reboot.


you'd better continue with virtual machine IMHO. because If you have multiple services that are very much important to run then in the matter of security you can use different VM's for different services.

so what you might get from my suggestion ?

1  . If your server failed/bricked with something we dont know then you must down your server for hours but If you had it in a VM then simply you can move the VM from one machine to another machine.

in a single sentence I mean to say exactly " Migration"

2
  . If you have multiple services to Run then you must have multiple VM's so that even one machine got interruption( may be from black hats) then other services wont get any problem.

hope that helps you a bit.


Setting default application to open files through FileZilla?

You can set it by going to edit > Settings, and then going to the Filetype Associations section and adding the filetypes and the editor you want.


Accidentally deleted disk partition and cannot fix it

Use GParteD, but, you may first want to enable recovery function on this application, also you can try to install gparted if not is installed using software
"sudo apt update"  && "sudo apt install gparted -y"


KVM size limit on total number of machines

Problem identified: I have partitioned my disk into / and /home, and since the machines are located at /var/lib/libvirt/images they are at the smaller root partition.

Solution: Move the images somewhere on the /home partition and create a symbolic link (ln -s).


Your disk does not seem to be partitioned to 32+32. You probably configured VM to use an image file, not a dedicated partition. After you removed the VM itself, it's data (including 32Gb image) are still there. You can probably
sudo apt purge virtualbox

instead of
sudo apt remove virtualbox

this will probably remove the VM disk image. Or you can remove it manually, but I can't tell for sure where it is.


How do I install the Tor Browser Bundle in Ubuntu?

Do not use the packages in Ubuntu's universe.

According to The Tor Project, "In the past they have not reliably been updated. That means you could be missing stability and security fixes."

Download Tor Browser Bundle from The Tor Project website

From here, select your Language and download the 32-bit or 64-bit flavor as well as the accompanying sig file to ~/path/to/TBB_directory.

Verify GPG Signature

Download the Tor Browser Developers GPG Public Key (which is used for signing Tor Browser Bundle packages; also see keyserver):

gpg --keyserver keys.gnupg.net --recv-keys 0xEF6E286DDA85EA2A4BA7DE684E2C6E8793298290

Verify that the signature file was produced when their GPG Key signed your Tor Browser Bundle download (adjust the commands if version is not "5.0.1" or language is not "en"):

cd ~/path/to/TBB_directory
gpg --verify tor-browser-linux64-5.0.1_en-US.tar.xz.asc tor-browser-linux64-5.0.1_en-US.tar.xz

You should see "Good signature.." in your terminal if successful (if not, download the file again and try once more):

gpg: Signature made Mon 17 Aug 2015 06:48:06 PM UTC
gpg:                using RSA key D40814E0
gpg: Good signature from "Tor Browser Developers (signing key) <torbrowser@torproject.org>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: EF6E 286D DA85 EA2A 4BA7  DE68 4E2C 6E87 9329 8290
     Subkey fingerprint: BA1E E421 BBB4 5263 180E  1FC7 2E1A C68E D408 14E0

Extract Tor Browser Bundle Package

Right-click .tar.xz file and select "Extract Here" or:

tar -xvf tor-browser-linux64-5.0.1_en-US.tar.xz

Browse The Internet using globally distributed, encrypted, and anonymous Tor network

Open newly extracted directory, find the file start-tor-browser, and make sure it is executable.

Right-click > Properties > Permissions > Execute: Allow executing file as program

Double-click start-tor-browser or:

./start-tor-browser

Select Run if Nautilus asks you how you want to execute the `start-tor-browser' script.

Congratulations!


Your problem probably is not caused by missing AbiWord. Of course you can check, whether it is installed or not, but if it is, your problem is in the .abw file.

It is a known issue that AbiWord sometimes makes mistakes during saving files, i.e. when they are completed from pieces from some other formats (a table pasted from doc or xls file, ...).

You can investigate the problem by renaming the .abw file into .xml (or better make a copy), then try to open it in Firefox or your favorite web browser. It should tell you where is the problem - in my case something like: Parse error: Incomplete tag: Expected </cell> at line 1845, column 15 in file /home/rafael/Docs/file.xml. You can open the XML in some text editor which supports syntax highlighting or in some XML editor and try to fix the error. When there's missing some closing tag like in my example, it's enough to add it there...

I have solved the problem with this by adding the closing tags for cell and table and renaming the file back to .abw after. AbiWord then complains about the validity of the file no more...


What setting controls this feature in my .dialogrc file?

The highlighting of the "O" in your screenshot is the terminal's cursor. You can't control its appearance, it's rendered according to each user's terminal settings.

For example, here is how it appears in the OS X terminal with the default cursor style ("Block cursor"):
Here it is with the cursor style changed to "Vertical bar":
Here it is with the cursor made invisible by running tput civis before the dialog command (and tput cnorm to make it visible again after the dialog run):


Cannot install Ubuntu on UEFI device from scratch

I've solved my problem, even though I'm not satisfied with it:

Typing in "exit" in rescue shell... launched my Ubuntu partition.
So I added "rootdelay=90" in grub command-line, and after ~45s, grub is launching Ubuntu.

45s is "unacceptable" for me, since it's a laptop with a SSD. I will try to boot the partition other than with the UUID.


Touchscreen re-enables itself after waking up on Ubuntu 16.04 LTS

When your system "wakes up" (Recovers from  Suspend or Hibernate), it does so through "Power Management". Read man pm-action which says, in part:

   /etc/pm/sleep.d, /usr/lib/pm-utils/sleep.d
       Programs in these directories (called hooks) are combined and
       executed in C sort order before suspend and hibernate with as
       argument 'suspend' or 'hibernate'. Afterwards they are called in
       reverse order with argument 'resume' and 'thaw' respectively. If
       both directories contain a similar named file, the one in
       /etc/pm/sleep.d will get preference. It is possible to disable a
       hook in the distribution directory by putting a non-executable file
       in /etc/pm/sleep.d, or by adding it to the HOOK_BLACKLIST
       configuration variable.

You can put an executable copy of your script (ready to handle the parameter "suspend", "hibernate", "resume" or "thaw") in /etc/pm/sleep.d


Google Earth won't launch on Xubuntu 13.10

TL,DR: Try installing the libfontconfig1:i386 package.

Packages whose names end in -dev provide header files, which don't help a binary executable to run. There's no need to remove the libfontconfig-dev package, but it's expected that installing it wouldn't help this situation.

The ia32-libs package, available in releases prior to 13.10, provided a number of commonly used 32-bit libraries. Generally speaking, 64-bit software never requires ia32-libs, but since the "64-bit version/edition" of a program just means it's the version for a 64-bit OS and not necessarily that all its native code is 64-bit, such a dependency is possible.

The motivating reason for the ia32-libs package was to provide libraries that are frequently needed by 32-bit programs on a 64-bit system, but would once have been hard to install, since the package manager would only install packages matching the version of Ubuntu installed.

The Ubuntu adopted MultiArch, which facilitates installing both 32-bit and 64-bit packages on the same 64-bit system, using the package manager. MultiArch support started a while ago, but the ia32-libs package was retained, mainly for backward compatibility and for the convenience it provided. (Actually, it was turned into a shortcut for installing the appropriate 32-bit library packages. Users installing it for the first time on a system with MultiArch would install the more descriptively named ia32-libs-multiarch package.)

Well, finally ia32-libs and ia32-libs-multiarch are gone... but you can install install 32-bit libraries (and other packages) on your 64-bit Xubuntu 13.10 system, by specifying the package name and architecture for installation.

You have an error message that specifies a library file that is needed: libfontconfig.so.1. You appear to have only the 64-bit version of that library. (The 32-bit and 64-bit versions are stored in separate directories, in part to allow them both to be installed at the same time.)

To find out what package provides the file, search for it under "Search the contents of packages" at http://packages.ubuntu.com/. This reveals the package that provides it is libfontconfig1. You want to install the 32-bit version of that. Ubuntu's name for the 32-bit PC/Mac architecture is i386 (the 64-bit one, even for Intel processors, is amd64). So you can install this by running:

sudo apt-get update
sudo apt-get install libfontconfig1:i386

Then try running Google Earth again and see what happens.

Related: What happened to the ia32-libs package? (But note, the ia32-libs package remained a transitional package for ia32-libs-multiarch, which provided essentially equivalent functionality until 13.10 Saucy.)


Disk encryption only works to the point where you've got somebody manually unlocking it. If the server can boot itself and start up without human interaction, if somebody gains access, they've got the data.

Here are a few ideas ranging from basic to silly.

Lock the server in a box. Bolt the box to a wall. Treat it like a safe.
Make the restaurant contractually liable for the physical security of the software. Make it known that their copy is watermarked and if it ends up on a torrent site, they're liable for the lost sales. But do it without sounding like a douche.
Physical port blocking: Blank off any USB, serial, etc ports.
Glue SATA cables into their ports (and block other SATA ports).
Lock the BIOS. Disable other SATA ports. Disable USB. Disable everything you're not using.
Rebuild the kernel with make localmodconfig so the only drivers your kernel has is for the hardware it's dealing with.
Consider full-disk encryption with a physical key like a smart card or a good biometric system. Staff will leave smartcards in (because they've got better things to do) but biometric might work if you implement some sort of auto-shutdown at the end of the day.
Physical DRM. Dongles devices that form part of the code execution. They're really expensive to create and aren't insurmountable (cite: Autocad's torrid and failed relationship with dongles).
"Phone home" if the server is opened. Script something up that looks at internal light levels. If they increase dramatically, trigger a SMS via an attached dongle (you might be introducing a new attack vector).

A lot of these things don't just make the server more secure, they make it much less robust and harder to fix... Most of these countermeasures are at least an extra point of failure.

Consider that with most applications, their maximum shelf-life is five years. Making this cheap enough not to bother stealing might be a better strategy.


Why is Ubuntu positioning new windows beneath the menu bar?

I opened the CompizConfig Setting Manager and enabled Place Windows plugin.


Ubuntu Freezes since kernel 4.8.0-36 when USB wifi drive plugged in

There are two possibly conflicting drivers loaded. I suggest that we blacklist and unload one and see if connectivity improves. Also, let's turn off power saving in Network Manager:

sudo -i
modprobe -r rtl8192cu
echo "blacklist rtl8192cu"  >>  /etc/modprobe.d/blacklist.conf
sed -i 's/3/2/' /etc/NetworkManager/conf.d/*
exit

It may take a reboot. Is connectivity improved?

Please check to see that the power saving step was effective:

gksudo gedit /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Use nano or kate or leafpad if you don't have the text editor gedit. Make certain that the last line reads:

wifi.powersave = 2

If not, change it, proofread carefully, save and close the text editor. Restart Network Manager:

sudo service network-manager restart

You should be all set.


Is there another way (other than LAMP) to test a .php prestashop website on ubuntu 16.04?

I think we need more information to answer this question.
Does not sound like you have everything setup correctly.

A LAMP install is usually very easy . After the setup, the default folder should be /var/www/html to drop the files in to. Then we have the issue with the Presta Shop.

Usually for Drupal, Joomla, Shopping Cart, Etc... software a link is provided and when you go to that url link it checks and see's if it thinks all the requirements pass: PHP, Apache, mysql or other database, etc... then it will complete the install and setup and provide a admin url and a guest/user/shopper url.

If everything is already setup correctly it should work, but you can go to the directory of your prestashop http://localhost/prestashop/public_html and from a command prompt run :
php -S localhost:8000
That command will run and show a url link in the terminal, right click and open that link. You should again, see prestashop if it was installed correctly.

https://stackoverflow.com/questions/1678010/php-server-on-local-machine

Your doing something incorrectly with your install. Follow this guide at http://howtoubuntu.org/how-to-install-lamp-on-ubuntu and dump your html files in /var/www/html directory. It works, I've used it many times.

You also need to read the prestashop guide better. Apache and PHP based apps like prestashop, drupal, joomla, etc... are tested tried and true.
http://doc.prestashop.com/display/PS15/Installing+PrestaShop


dnsmasq : failed to create listening socket for port 53: Address already in use

By default Dnsmasq tries to bind the port over all interfaces. Where --bind-interfaces only interface declared in the configuration.
man dnsmasq
-z, --bind-interfaces
    On systems which support it, dnsmasq binds the wildcard address,
    even when it is listening on only some interfaces. It then
    discards requests that it shouldn't reply to. This has the
    advantage of working even when interfaces come and go and change
    address. This option forces dnsmasq to really bind only the
    interfaces it is listening on. About the only time when this is
    useful is when running another nameserver (or another instance
    of dnsmasq) on the same machine. Setting this option also
    enables multiple instances of dnsmasq which provide DHCP service
    to run in the same machine.

--bind-dynamic
    Enable a network mode which is a hybrid between
    --bind-interfaces and the default. Dnsmasq binds the address of
    individual interfaces, allowing multiple dnsmasq instances, but
    if new interfaces or addresses appear, it automatically listens
    on those (subject to any access-control configuration). This
    makes dynamically created interfaces work in the same way as the
    default. Implementing this option requires non-standard
    networking APIs and it is only available under Linux. On other
    platforms it falls-back to --bind-interfaces mode.

Similar cases:

dnsmasq, serve different ip addresses based on interface used
How to avoid conflicts between dnsmasq and systemd-resolved?

More advance related topic:

How do SO_REUSEADDR and SO_REUSEPORT differ?
Linux TCP SO_REUSEPORT — Usage and implementation


When using Windows Subsystem for Linux make sure you are on latest Windows version available.

(Win+R -> type winver)

I'm on version 1703 build 15063.483 (Creators Update) and lscpu works just fine.

onoma:~$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 15
Model name:            Intel(R) Pentium(R) Dual  CPU  E2200  @ 2.20GHz
Stepping:              13
CPU MHz:               2200.000
CPU max MHz:           2200.0000
BogoMIPS:              4400.00
Hypervisor vendor:     vertical
Virtualization type:   full
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm


How to grant apt-get permissions required to install software?

By using sudo, you are temporarily becoming root for the duration of that command, just like you'd switched to root with su - root, executed the command, and switched back with exit.

Out of the box, Ubuntu doesn't configure a password for root, so you cannot log in as root directly like you're attempting to do with su. You either have to use sudo, or configure a password for the root user. It is recommended that you simply use sudo.

Are you sure you used sudo when trying to run the install command?


The cause is for using java-11-openjdk-amd64

open terminal and run

sudo update-alternatives --config java

and choose java-8-openjdk-amd64

and run vega again.


What do I do with the recovered lost partition

If you want to attempt to do this, which I don't recommend doing because the data might be corrupted, since it's been recovered, you should reinstall grub using boot-repair. I can't stress enough, though, that you should backup your data to an online cloud or another hard disk first before attempting this, and don't expect it to work 100%.


How to adjust display settings for LightDM greeter on 18.04?

I was able to solve this problem by installing arandr:

$ sudo apt install arandr

and running it:

$ arandr (it is also available in the settings manager).

Then I set my monitors the way I like using its GUI. You can try out its configurations on your current desktop by clicking the green checkmark:

Once things were correct, I saved the configuration to my desktop, which generated a .sh file:

#!/bin/sh
xrandr --output DP-0 --mode 1600x1200 --pos 0x0 --rotate normal --output DVI-I-1 --primary --mode 1600x1200 --pos 3200x0 --rotate normal --output DVI-I-0 --off --output DP-1 --off --output HDMI-0 --mode 1600x1200 --pos 1600x0 --rotate normal

I then copied that file to /etc/lightdm/monitor-config.sh as root.

Finally, with su I edited /etc/lightdm/lightdm.conf (which did not exist) to include the following lines:

[Seat:*]
display-setup-script=/etc/lightdm/monitor-config.sh

I did that, logged out, and my login screen had the right monitor positions.


Try to erase the MBR of your USB disk:
dd if=/dev/zero of=/dev/sda bs=512 count=1


Is there an easy way to change Ubuntu flavor during upgrade?

You can install Lubuntu within your existing Ubuntu installation, giving you the option to select either Unity or LXDE upon login. Alternatively, you could even completely remove Unity after installing Lubuntu in order to clear out unnecessary packages and save yourself some space.

To install Lubuntu within your existing installation, run the following command from a terminal:

sudo apt-get install lubuntu-desktop

To remove Unity, you have two options:

1) Remove Unity while retaining applications associated with it:

sudo apt-get remove unity unity-2d

2) Remove Unity along with all associated applications:

sudo apt-get remove unity unity-2d-places unity-2d unity-2d-panel unity-2d-spread unity-asset-pool unity-services unity-lens-files unity-lens-music unity-lens-applications gir1.2-unity-4.0 unity-common indicator-sound indicator-power indicator-appmenu libindicator6 indicator-application evolution-indicator indicator-datetime indicator-messages libnux-1.0-0 nuxtools


Mass user creation and connection in Guacamole RDP

I'm guessing you've already found a solution for this, but in case anyone else finds this question:

To my knowledge you cannot use the host OS to handle authentication.
Unless you have a very specific use case you can just let Guacamole handle the authentication (using Database Authentication).
But if you absolutely have to have backing Linux accounts then you
can add these with the "adduser" command and some bash scripting:

http://manpages.ubuntu.com/manpages/xenial/man8/adduser.8.html
https://help.ubuntu.com/community/Beginners/BashScripting

Guacamole doesn't have (to my knowledge) a command line for you to
use, but it has a (largely undocumented) REST API that you can use to
generate Guacamole Users, Connections etc.
I have an ongoing project to wrap it (although it's for Powershell, sorry) @
https://github.com/Adicitus/ps-guacamole-api.
Check the the readme.md for sources and the "source" folder for examples, e.g:

Create a new User: https://github.com/Adicitus/ps-guacamole-api/blob/master/source/Users/New-GuacamoleAPIUser.ps1
Create a new RDP Connection: https://github.com/Adicitus/ps-guacamole-api/blob/master/source/Connections/New-GuacamoleAPIRDPConnection.ps1
Assign permissions to a connection: https://github.com/Adicitus/ps-guacamole-api/blob/master/source/Users/Set-GuacamoleAPIUserPermissions.ps1

If you need to call the rest api from Linux, you can use the "curl" command:
https://linux.die.net/man/1/curl
Tutorial available here:
https://www.baeldung.com/curl-rest

See point 1.

See repository from point 2.
You need to give the user(s) at least READ permission on the connection(s).

Hope this helps someone :)


Is there a way to see the installed versions of all dependencies of a package?

I normally use rdepends for that, install it with sudo apt-get install apt-rdepends or look for in the Ubuntu Software Center.

After installing the program you can use it simply by opening a terminal and typing apt-rdepends <package_name>.

It will show you all the dependencies any package that is in your apt lists required to install and all the dependencies of a package that you might be thinking about installing.

It shows the information in a tree diagram where all the dependencies from one package are compared against all the dependencies of the each package dependency... (and so).

ie:

$ apt-rdepends sqlite

Reading package lists... Done
Building dependency tree
Reading state information... Done
sqlite3
  Depends: libc6 (>= 2.4)
  Depends: libreadline6 (>= 6.0)
  Depends: libsqlite3-0 (>= 3.6.18)
libc6
  Depends: libc-bin (= 2.13-20ubuntu5)
  Depends: libgcc1
  Depends: tzdata
libc-bin
libgcc1
  Depends: gcc-4.6-base (= 4.6.1-9ubuntu3)
  Depends: libc6 (>= 2.2.4)
  PreDepends: multiarch-support
gcc-4.6-base
multiarch-support
  Depends: libc6 (>= 2.13-0ubuntu6)
tzdata
  Depends: debconf (>= 0.5)
  Depends: debconf-2.0
debconf
  PreDepends: perl-base (>= 5.6.1-4)
perl-base
  PreDepends: dpkg (>= 1.14.20)
  PreDepends: libc6 (>= 2.11)
dpkg
  PreDepends: coreutils (>= 5.93-1)
  PreDepends: libbz2-1.0
  PreDepends: libc6 (>= 2.11)
  PreDepends: libselinux1 (>= 1.32)
  PreDepends: xz-utils
  PreDepends: zlib1g (>= 1:1.1.4)
coreutils
  PreDepends: libacl1 (>= 2.2.11-1)
  PreDepends: libattr1 (>= 2.4.41-1)
  PreDepends: libc6 (>= 2.7)
  PreDepends: libselinux1 (>= 1.32)
libacl1
  Depends: libattr1 (>= 2.4.41-1)
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libattr1
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libselinux1
  Depends: libc6 (>= 2.8)
  PreDepends: multiarch-support
libbz2-1.0
  Depends: libc6 (>= 2.4)
xz-utils
  Depends: libc6 (>= 2.7)
  Depends: liblzma2 (>= 5.0.0)
liblzma2
  Depends: libc6 (>= 2.4)
zlib1g
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
debconf-2.0
libreadline6
  Depends: libc6 (>= 2.11)
  Depends: libtinfo5 (>= 5.6+20070908)
  Depends: readline-common
libtinfo5
  Depends: libc6 (>= 2.4)
readline-common
  Depends: dpkg (>= 1.15.4)
  Depends: install-info
install-info
  Depends: libc6 (>= 2.4)
libsqlite3-0
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support

After that if you want to see if the package is installed in your system simply use this command

dpkg-query -l <package_name>

It will show you if the package is installed, ie

  dpkg -l firefox

+++-==============-==============-============================================
ii  firefox        8.0+build1-0ub Safe and easy web browser from Mozilla

The ii in front of the package means that its installed.


Why are the 'xx packages can be updated' lines repeated twice?

This is probably due to this bug. It will be gone if you upgrade to 14.04.


Windows cannot access Samba server - "not accessible"

sudo apt-get install samba
sudo nano /etc/samba/smb.conf

Put at the end:

comment = Ubuntu File Server Share
   path = /home/ubuntu/ubuntu # The path to the folder
   browsable = yes
   guest ok = yes
   read only = no
   create mask = 7777

Then create folder:

sudo mkdir -p /home/ubuntu/ubuntu
sudo chown nobody.nogroup /home/ubuntu/ubuntu

Then try the Ubuntu IP address from Windows


The problem looks like it is with the way you've opened the section: the ending tag that matches <VirtualHost: ...> is </VirtualHost:>, as the error indicates.

Presumably you meant to open the section with the following instead:

<VirtualHost *:80>

(note that there is no colon after VirtualHost)


OK I figured it out! When they fixed this error they waited for the error message and then created an exception which allowed it to get the weather but also created a lengthy error message each time.

I just followed the instruction to remove the s in https in query.yahooapis.com in /opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wyahooapi.py (line 108) and that solved the issue.

No more syslog full of weather.


Change language of guest session to something else but the system wide language

You can create a "special purpose user" as explained at

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

Log in to that user account and use Language Support to change the language to English.

Edit:

There is an alternative (and simpler) solution, for the case

you don't want to customize the guest session feature in any other way but changing the language, and
you don't mind that the login screen is displayed in English.

In that case you can

Open Language Support
Change the language to English
Click the Apply System-Wide button
Change the language back to German


How can I call a specific AMI into the JUJU charm for deploying the infrastructure in JUJU?

You are very much working against the Juju tool by customizing images and creating AMIs.  There is no way to easily deploy this with modern Juju.  You might be able to do it by creating and hosting a custom stream endpoint, but it's not the design, and it would be a lot of work.

Juju deploys reference images produced by Canonical, and makes modifications on top.  The modifications are codified in something called charms.  Instead of using a customized image workflow, your service should be fully modeled as a set of charms, hopefully connecting with other charms that already exist, like postgresql, haproxy or apache2.

I don't say this to imply that an image based workflow is crazy.  In fact, customized docker-images are the building blocks of Kubernetes applications, but it's why you are not finding out how to do what you are asking with Juju.

References

https://jujucharms.com/how-it-works
https://jujucharms.com/docs/stable/charms


The easiest way to install Eclipse with Java is : sudo apt-get install eclipse-jdt.

Nice clean and simple.


How to configure Touchpad in Ubuntu 16.04?

Have you tried xinput ?

xinput

This will show  all your device, note the ID for your touchpad.

xinput --watch-props <device number>

Above command will show the properties for your device, if you can see a propertly lik "libinput Disable While Typing Enabled" you  are good to go.

xinput set-prop 13 "libinput Disable While Typing Enabled" 1

The above command will fix it for you.

Regards,
Shivam


Networking unreachable with Ubuntu 16.10 Server and J3455B-ITX

Seems that your computer is having two network cards, enp2s0 = RTL8168g/8111g, enp1s0 = Intel(R) PRO/1000

Are you completely sure that your ethernet cable is on Intel, not the realtek?

Seems that your cable is connected to enp2s0 not enp1s0. I made that conclusion of this line you show (see the no-carrier flag):

2: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 70:85:c2:4b:68:0a brd ff:ff:ff:ff:ff:ff
3: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 00:1b:21:39:ed:64 brd ff:ff:ff:ff:ff:ff

I Suggest you try to replace your networking config to raise interface as enp2s0 with configuration like this:

auto lo
iface lo inet loopback
#
auto enp2s0
iface enp2s0 inet dhcp

Actually you don't need netmask, dhcp broadcast to 255.255.255.255 should go to every device on your layer2 network.


Dash icons didn't change when upgrading to 13.04

Download it, Extract it and copy it on /usr/share/unity/icons/

Unity 6 Icons The official Unity icons 13.04

  cd Downloads  # assuming that you have downloaded it in Downloads folder
  tar zxpf 6.tar.gz
  sudo cp -r 6/* /usr/share/unity/icons/

Then Restart

Reverting the changes

sudo apt-get install --reinstall unity-common

  It will reset the dash icons

Source Webupd8 Section Reverting the changes


error: "net.core.wmem_default" is an unknown key on Juju local provider

Since the local provider runs on your machine, changing the sysctl settings on it will affect all instances the local provider sees. I'm not quite sure what do you mean you can't find /proc/sys/net/core/net.core.rmem_max for the local provider.

You can run the following to change net.core.rmem_max setting immediately:

sudo sysctl -w net.core.rmem_max=131071 (or a higher value, if necessary)

If you want to persist the set value after a reboot, add the following line at the end of /etc/sysctl.conf instead:

net.core.rmem_max = 131071

Then, to apply the change immediately run:

sudo sysctl -p

You might need to modify other similar settings, if you're still getting errors. I found this interesting article, explaining the location of all these settings and their meaning. You might find it useful, although it's unrelated to your exact issue.

I hope this helps!


here download
a deb file from here and go to the directory where it's downloaded and type
sudo apt install ./{nameofdebfile}


What does the crontab file look like that is supposed to start that script?
And what are the permissions/owner of the script?

On this link I found:

When cron job is run from the users crontab it is executed as that user. It does not however source any files in the user's home directory like their .cshrc or .bashrc or any other file. If you need cron to source (read) any file that your script will need you should do it from the script cron is calling. Setting paths, sourcing files, setting environment variables, etc.
If the users account has a crontab but no usable shell in /etc/passwd then the cronjob will not run. You will have to give the account a shell for the crontab to run.
If your cronjobs are not running check if the cron deamon is running. Then remember to check /etc/cron.allow and /etc/cron.deny files. If they exist then the user you want to be able to run jobs must be in /etc/cron.allow. You also might want to check if the /etc/security/access.conf file exists. You might need to add your user in there.
Crontab is not parsed for environmental substitutions. You can not use things like $PATH, $HOME, or ~/sbin. You can set things like MAILTO= or PATH= and other environment variables the /bin/sh shell uses.

So, I'd start by editing the cronjob itself and changing the ~ to /home/popcorn9499.
Then do the same for the script.
Also in the script add #! /bin/bash as the first line.

If everything in the script is just the function backup() { take that line out and the final } and make it a plain bash script. You can then loose the backup argument and teh cronjob becomes: */30 * * * * /home/popcorn9499/Scripts/minecraft.sh
(you really need to make a backup every 30 minutes?)

Next, make sure you have rwx permission for the scriptfile: chmod u+rwx ~/Scripts/minecraft.sh

Finally, consider renaming your directory ~/Scripts to ~/bin as that is already in your $PATH.

That should fix things.


How to disable visual effects and compiz 100%

Try pressing F4 on the main boot menu screen and selecting "safe graphics mode" as detailed here, although I think this may no longer be offered in 11.04 as it is not included here. Are you sure this is a Compiz-related problem, as Compiz will typically not be activated if it cannot be supported by the hardware.


I am using LUbuntu on several ages-old computers with Intel Core2Duo and 2GB RAM and it works like a charm. Exactly for a video playing, e-mail, some LibreOffice editing, etc. Firefox starts somewhat slow, but once started goes ok.


Can I get hplip 3.17.10 to work again in 17.10?

Solved:

https://www.ubuntuupdates.org/package/core/artful/main/base/hplip

click on red button APT INSTALL,
when installation finished reboot

I tried it and it works!!


How to remove a false-installation which has no archive for it without re-install?

You can force the package removal by using low-level command:
sudo dpkg --purge --force-all stremio

See man dpkg for details.


Clone Ubuntu on USB to a larger USB stick?

the dd command sounds right for the job.
In any case even if it doesn't work for some reason it won't mess up anything on your old usb stick since it is just reading from it and writing to the other one.

However to speed things up I'd advise you to use the bs flag and set it to 512k so your command should look like

dd if=/dev/disk2 of=/dev/disk1 bs=512k

this sets the read/write blocksize to 512kb instead of the default 512 bytes


Need to make flash-plugin work with Dooble browser version 0.07

Dooble is currently at version 1.46, meaning that 0.07 is ancient. You should download the latest version from their website.

If you are for some reason unable to do that, it may work if you try YouTube's html5 support.


How to add a script to Startup Applications from the command line?

How to set up a startup launcher from command line

Like you mention in your question, commands can be run on log in by placing a launcher in ~/.config/autostart Since the launcher is only used to startup a script, you only need the "basic" desktop entry keywords in the created .desktop files: the keywords / lines you'd need at least:

[Desktop Entry]
Name=name
Exec=command
Type=Application

The (optional) line X-GNOME-Autostart-enabled=true will be added automatically if you enable/disable the autostart function of the launcher (it is set to X-GNOME-Autostart-enabled=true by default)

More on required fields, you can find here.

Example script

To create such a launcher from the command line, you would need a small script that would take the name of the starter and the command to run as an argument. An example of such a script below.

If I run it with the command:

python3 '/path/to/script' 'Test' 'gedit'

It creates a startup launcher, running gedit when I login.
The launcher is also visible in Dash > Startup Applications:

The script

#!/usr/bin/env python3
import os
import sys
home = os.environ["HOME"]

name = sys.argv[1]; command = sys.argv[2]

launcher = ["[Desktop Entry]", "Name=", "Exec=", "Type=Application", "X-GNOME-Autostart-enabled=true"]
dr = home+"/.config/autostart/"
if not os.path.exists(dr):
    os.makedirs(dr)
file = dr+name.lower()+".desktop"

if not os.path.exists(file):
    with open(file, "wt") as out:
        for l in launcher:
            l = l+name if l == "Name=" else l
            l = l+command if l == "Exec=" else l
            out.write(l+"\n")
else:
    print("file exists, choose another name")

Paste it into an empty file, save it as set_startupscript.py, run it by the command:

python3 /path/to/set_startupscript.py '<name>' '<command>'

What it does

It creates a basic launcher (you don't need more, running a script) in ~/.config/autostart, taking the name and command as arguments.
If a launcher with the name already exists in ~/.config/autostart, it prints a message:

file exists, choose another name


apt-cache search does not find g++ packages

g++-6 is not available in Ubuntu 16.04, (I don't have it  in synaptic either).

However try escaping + sign, it works for me:

apt-cache search "g\+\+-5"

or for g++-6:

apt-cache search "g\+\+-6"

It's because of "regex", man apt-cache:

search regex...
    search performs a full text search on all available package lists
    for the POSIX regex pattern given.

Your string after apt-cache search will be considered as a "regex" so by:

g++-6

you are looking for at least one or more "g" followed by a "-" and followed by a 6, something like "g-6" or "gg-6" or "ggg-6" ... so your search brings you no result.


Open file in Vim terminal session upon shortcut

I found a solution. I stored the following Python script in my home directory and created a shortcut to it using compizconfig-settings-manager. The main directory (~/test in my example) and the file endings of the files to be edited (.tex in my example) may be changed in the script.

ROOTDIR = '~/test'
FILEENDING = '.tex'
import subprocess
import re
import os
import tkinter
import tkinter.simpledialog
def string_dialog(title,label):
    root = tkinter.Tk()
    root.withdraw()
    return tkinter.simpledialog.askstring(title, label)
project = string_dialog('Quickedit','Enter filename')
regexp = re.compile(project+'.*',re.IGNORECASE)
choices = [path for path in os.listdir(ROOTDIR) if os.path.isdir(os.path.join(rootdir,path)) and path.lower().startswith(project.lower())]
projectdir = os.path.join(ROOTDIR,choices[0])
projectfile = [path for path in os.listdir(projectdir) if path.endswith(FILEENDING)][0]
subprocess.call(['gvim',os.path.join(projectdir,projectfile)])


apt-get upgrade fails with "adduser: The user `messagebus' already exists. Exiting."

The problem is the user id the messagebus user has.

First check what this command outputs:

grep messagebus /etc/passwd /etc/group

It should show something like this:

/etc/passwd:messagebus:x:102:104::/var/run/dbus:/bin/false
/etc/group:messagebus:x:104:

Then take a look at /etc/adduser.conf and search for "FIRST_SYSTEM_UID=111".
As you can see the ID of messagebus is 102 / 104 and below the value of FIRST_SYSTEM_UID.
Simply change FIRST_SYSTEM_UID to 100 and save (as root/sudo).

Then the upgrade should run without any errors.

Reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634475


Error message "Requiring Clutter, version 1.0" displayed and Gnome-Shell refuses to start

The error message "Requiring Clutter, version 1.0: Typelib file for namespace 'CoglPango', version '1.0' not found" indicates that a library is missing -

The likely culprit is gir1.2-cogl-1.0

Therefore, to install this:

sudo apt-get install gir1.2-cogl-1.0

If it is says it is already installed - try forcing a reinstall.

sudo apt-get --reinstall install gir1.2-cogl-1.0

It is perhaps also wise to reinstall (or force reinstall) clutter using the package gir1.2-clutter-1.0


How to reinstall Ubuntu from the live USB's command line?

I still don't know what I did wrong when trying to mount /home in another partition, but getting a new Ubuntu image in a bootable USB worked. Then I reinstalled it in a bigger partition and everything is back to normal.


looks like this wrapper script can solve the problem:

https://github.com/kmccormick/rsnapshot-timestamp


shim-signed : Depends: shim (= 15+1533136590.3beb971-0ubuntu1) but 13-0ubuntu2 is to be installed

This was a known issue and has been addressed on the #ubuntu-release IRC channel.

Source: #ubuntu-release IRC logs for 2018-10-11 [Archive Link]

Shortly after this answer was originally posted, the Ubuntu package archive (http://archive.ubuntu.com/ubuntu/) was updated to fix the problem.

Note: Mirrors take a variable amount of time to synchronize with the main archive, so if you are using a mirror, you may have to wait longer or change your mirror to http://archive.ubuntu.com/ubuntu/.

Run the following command to update your package list:

sudo apt update

If your mirror is up-to-date, you should now be able upgrade all your packages, including shim and shim-signed.

Relevant IRC conversation:

  [13:14] cyphermox: hi, whomever promoted shim-signed to bionic-updates, please also promote shim

  [13:14] cyphermox: (the two must go together)

  …

  [13:29] sil2100: cyphermox: apologies for that, it didn't have a bug so my brain missed it

  [13:29] sil2100: Even though it's completely logical

  [13:29] TJ- sil2100: thanks - that'll keep a user happy. Was seeing "shim-signed" in "apt list --upgradeable" but the package wasn't offered for upgrade by apt

To prevent this same issue from happening again, ~smoser has submitted the pair of packages, shim and shim-signed, to a list that is used to verify packages that need to be released together:

  [13:30] rbasak: smoser had a branch to prevent such accidents. I
  don't see what happened to it.  [13:30] rbasak:
  https://code.launchpad.net/~smoser/ubuntu-archive-tools/package-sets/+merge/348334
   [13:30] rbasak: Merged  [13:30] cyphermox: I was
  about to ask about that, should be easy to write a warning to avoid
  this  [13:30] rbasak: Is your ubuntu-archive-tools up to
  date sil2100?  [13:31] rbasak: Ah  [13:31] rbasak:
  shim and shim-signed need adding to the list.  [13:31]
  cyphermox: yup  [13:31] sil2100: seb128: hey! I'm going to request a full translation export and then a new base upload - I
  saw that you mentioned issues with the gnome translations, are you
  good now in case we do an export soon?  [13:31] sil2100:
  rbasak: I thought mine was  [13:32] cyphermox: sil2100:
  fwiw, not entirely your fault, shim didn't have any bugs linked to it
  either -- and I'm going to avoid that from now on by requiring a bug
  prior to any upload of shim to devel  [13:33] cyphermox:
  (since we copy shim across releases, etc.)  [13:37] seb128:
  sil2100, hey, I guess so, dunno who changed those settings but it
  screwed thing. I think I'm going to fix as much as I plan to do before
  cosmic, it's tedious work and we are not going to reupload all GNOME
  now (and import seem fine in most case, it seems the setting didn't
  change so long ago)  [13:40] smoser: yeah, the goal of that
  branch was that it if you tried to release grub2 without grub2-signed
  it would exit failure  [13:40] smoser: if you had > revision
  1180, i'd like to figure out what you did do that didn't trip it.  [13:42] sil2100: smoser: it was about shim and shim-signed,
  apparently that's not added to the list  [13:42] sil2100:
  duh  [13:42] smoser: ah. well lets add them.  [13:42]
  smoser: if they do in fact have to be released together.  [13:46] smoser:
  https://code.launchpad.net/~smoser/ubuntu-archive-tools/shim-signed/+merge/356578
   [13:47] cyphermox: smoser: thanks

For reference, this is what the two affected package listings looked like after the fix:

Package: shim
Architecture: amd64
Version: 15+1533136590.3beb971-0ubuntu1
Priority: optional
Section: admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Steve Langasek <vorlon@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 3744
Breaks: shim-signed (<< 1.33~)
Filename: pool/main/s/shim/shim_15+1533136590.3beb971-0ubuntu1_amd64.deb
Size: 574704
MD5sum: 57145d15f6745f2dd9a081cf39da0350
SHA1: cb39bc7bddf189ab15baaf7a087169a886dc30bc
SHA256: 3099b90ba9d7bdf705a89a936b622633fe2a5141f24aa0af046b6c629d5475c5
Description: boot loader to chain-load signed boot loaders under Secure Boot
Task: ubuntu-core
Description-md5: ba97e9b3cf7ad648ef7a4f6c9fa9a6d0
Phased-Update-Percentage: 10
Supported: 5y

Package: shim-signed
Architecture: amd64
Version: 1.37~18.04.2+15+1533136590.3beb971-0ubuntu1
Built-Using: shim (= 15+1533136590.3beb971-0ubuntu1)
Priority: optional
Section: utils
Source: shim-signed (1.37~18.04.2)
Origin: Ubuntu
Maintainer: Steve Langasek <steve.langasek@ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1354
Depends: debconf (>= 0.5) | debconf-2.0, shim (= 15+1533136590.3beb971-0ubuntu1), grub-efi-amd64-signed, grub2-common (>= 2.02-2ubuntu8.1), mokutil, sbsigntool
Recommends: secureboot-db
Breaks: grub-efi-amd64-signed (<< 1.93.7)
Filename: pool/main/s/shim-signed/shim-signed_1.37~18.04.2+15+1533136590.3beb971-0ubuntu1_amd64.deb
Size: 343204
MD5sum: 5c39a5914b36861d2a4ebf318f9ac687
SHA1: 328332977616d2a2565d546e0e0dce518d8b2829
SHA256: a53e741f63a309ee9c7330386edb74905e3632ebc334386b00ab989811b2ef61
Description: Secure Boot chain-loading bootloader (Microsoft-signed binary)
Task: ubuntu-core
Description-md5: a481805ba65b750cfdd6438a7d8539a2
Phased-Update-Percentage: 20
Supported: 5y

Notice that the Depends: section of shim-signed has shim (= 15+1533136590.3beb971-0ubuntu1), which now has a matching Package: shim version.


Squid Cache is a caching system it is not proper CDN system try to use OpenCdn it should be helpfull for make cdn server you can get detail information and documentation on labtel.ing.uniroma1.it


Well ... modglue is a library that helps programs multitask.  If the "h_affine.ln" program is doing weird things, you'd best determine who compiled that binary, and ask them for help.

If you're using the stock h_affine binaries for Linux then you might want to consider compiling them for the version of Ubuntu you use.  Remember that Ubuntu is not the only Linux, and Linux is not the only unix-style operating system.  When dealing with academic tools, it's not uncommon that you'll have to jump through some hoops to get things working the way you want them to.

Also, if you're using a binary that was compiled for a version of Linux that existed five years ago, it's entirely possible that it relies on system libraries that no longer exist in the Linux you're using today.


How do I remove the Accessibility options/icon from the login screen?

Unfortunately, the accessibility option in the login menu bar is hard-coded into the unity-greeter source code, and short of modifying that, there appears to be no way to remove it (like a number of other Unity UI features...)

Your best bet is to simply make the icon invisible. While it will still be there, it won't show and hopefully your children will be fooled :)

The icon is provided by the file /usr/share/unity-greeter/a11y.svg
Here's the pastebin of an appropriate blank icon.
To replace yours, open a terminal and:

cd /usr/share/unity-greeter
sudo mv a11y.svg _a11y_backup.svg
sudo wget -Oa11y.svg http://pastebin.com/raw.php?i=h2dRGH4K

Result of clicking the "invisible" icon:


Canon Multitasking printer: Scanner doesn't work, printer does

First check if the cable is working correctly!

Then check if the packages are available on Software center. if not then install them with package manager or dpkg (using Terminal) using these commands:

cd /path/to/packages/directory/

And then install them with dpkg:

dpkg -i *.deb

and it will install all the packages ( i think you said 3).


PDF invert from white to black background and black to white font - is there an application?

There is a night mode option in your default pdf viewer in ubuntu (if you are using it). Go through the file options on the top right you will find it.
In many readers, the shortcut is ctrl + i.


How to automatically save file with Nautilus without specifying location with Firefox / Iceweael?

Open Iceweasel and press Edit->Preferences->General->Downloads and edit the field which says save files to:. It should save in that location


How to gain write permissions to a remote Windows folder?

Hope opening PCManFM with root privileges would help you

You can open it by executing this command in terminal:

sudo pcmanfm &

or press Alt+F2 to open launcher and write gksu pcmanfm and press Enter. This would be more interactive.

Then go to destination where you want to read/write file. Hope you'd be easily drag/drop files/folder also.

Reply if something goes wrong.


Explanation

ModemManager keeps the device busy it is a reported and confirmed bug but it is not yet fixed.

You can check it using

sudo lsof | grep ACM

Solution

Quick fix
If you just need to upload a program for one time and you have to make it fast
the easiest way to handle the problem is to just stop ModemManager for a second.

sudo systemctl stop ModemManager.service

Will halt Modemmanager and now you can access the device.
Be sure to start ModemManager after you uploaded stuff to your device:

 sudo systemctl start ModemManager.service

Persistent Fix
It is much better to apply udev rules to prevent this error. you can download finished udev rules from Adafruit and follow this guide to install them.

Tip
As Ubuntu does not provide the modern versions of arduino IDE you should install the IDE locally by downloading it and unzipping the archive.


Offline Upgrade of Ubuntu 13.04 to 13.10

The purpose of making a local apt repository is to use a given media as a resource for your packages, and this is one half.

After you have done this and updated apt with sudo apt-get update you can do an upgrade to a new release with

sudo apt-get dist-upgrade

But beware that this is not granted to work, if you can't solve a dependency you are likely to break your system, apt heavily relies on multiple repositories and online resources to solve all the dependencies.

Another alternative is apt-cdrom.


Windows Boot Loader doesn't work after upgrading to 14.04 from 13.10 (Windows 8.1 Dual Boot)

I just recovered from the same issue. boot from a live-image and install https://help.ubuntu.com/community/Boot-Repair . just run, reboot, and it fixed it for me


How to resolve "Network host is busy; will retry in 30 seconds"?

don't use ipp.

use "socket://###.###.###.##:port#/" for your  printer instead.

port # maybe 9100 or 631

Reason: The first specifications of IPP lacked of some important details. This allowed Microsoft to implement it in a their own way. The result was that printer manufacturer had to decide how to do their IPP support the way Microsoft does.

Therefore you should use a different protocol, the socket protocol.


Moving ubuntu partition to another drive

Moving Ubuntu partition to another drive
Here is a method of copying your Ubuntu to a SSD that will boot in either BIOS or UEFI mode. (This could be handy if you ever upgrade your Windows disk to UEFI).

Download the mkusb ISO boot template: https://phillw.net/isos/linux-tools/uefi-n-bios/dd_grub-boot-template-for-uefi-n-bios.img.xz

Flash the image to the SSD using Rufus, Etcher, mkusb, Disks, dd, etc. This will overwrite everything on the new SSD.

The SSD will now have a 1MB bios_grub boot partition and a 250MB boot,esp partition and a lot of unformatted space.

Booting from a Live USB, open GParted and right click copy the ext4 Ubuntu partition from the old drive and right click paste the partition into the unformatted space on the SSD. you will have the option to increase the size of the partition as desired.

There is no need to copy the extended partition and the swap partition can be created new.

Copy /boot/grub/grub.cfg from Ubuntu on the old disk and paste it into /boot/grub/ in the new boot,esp partition overwriting the one there.

Edit /boot/grub/grub.cfg in boot,esp to confirm the boot path. ie your hd0,msdos6 may now be hd0,gpt3. I use Find and Replace to change all instances of msdos to gpt in the menuentry.

The new UUID should be the same as the old. You can change the partition UUID on the new SSD using GParted. This is necessary if you plan on keeping both Ubuntus
If there are any doubts when editing grub.cfg you can boot the old Ubuntu and run sudo update-grub with the new drive plugged in. This will automatically create a correct new menuentry that can be used when updating the new SSD GRUB. Best to change the UUID as above first.


What is the purpose of Compiz (if any), inside Ubuntu 12.04, if I use gnome-classic (gnome-session-fallback)?

Compiz do not work on gnome-shell. However you can use it using compiz --replace command.
This link provides more detail
https://live.gnome.org/GNOME3Myths


systemd stuck at "Powering off." on 16.04 - Dell Latitude

The problem seems to have had something to do with pci_devices and the WiFi. I've found a reproducible solution:

sudo apt-get install firmware-b43-installer

This works on both 14.04.3 and 16.04. I believe this is firmware for the Broadcom BCM4311 network controller. Oddly, this both fixes the WiFi* and solves "the halting problem." Once apport reported that pci_devices was refusing to terminate at shutdown (though it didn't always report it, even when there were shutdown problems). The WiFi controller is, by my understanding, a PCI device; hence the connection between the two issues I was facing.

For details about fixing the WiFi, see this answer of mine.

*I also purged ndiswrapper* and bcmwl-kernel-source, which are related to the WiFi, but just doing that didn't solve either problem; the installation of firmware-b43-installer was what fixed it, though it's unclear to me whether that by itself would have solved one or both problems.


Desktop freezes when pressed minimized button in maximized windows in unity

i encounter this problem my self on both of my computer, the problems occur when i upgrade the motherboard of both of the PCs. Both system are not identical, one is AMD pc and one is Intel pc. So it confuses me why the problem occurs cause im not doing a clean install, i just use the same previous hardisk directly on the systems. I just find the solutions yesterday when i use live cd on the system, it seems that the configurations are messed up because of maybe the previous configuration of ubuntu. So this is the solutions i did:

Solution 1. Just create a new administator / user account. Your new account should work as it should. No unity freezing when minimize from a maximized window.

Solution 2. Use either gnome shell or live cd and browse to ur directory using root.

gksudo nautilus

browse to your home directory:
please enable hidden files from View option first

delete .compiz-1 folder
delete .compiz-1 & dconf inside .config folder
delete .gconf folder (or maybe just the compiz folder inside apps inside the folder.. im not sure cause i just delete .gconf folder directly)

lastly restart Ubuntu, and log in.

I hope this will solved your problem

--William, Ubuntu User Malaysia


Ubuntu Server 16.10 & iOS devices recharge

I've been experiencing similar issues with Ubuntu 17.10 where my device appears to be charging but isn't really.

Unfortunately I haven't found a way to fix this without command-line access to the machine - the only way I've found to fix this is by restarting the usbmuxd daemon, e.g.,

% sudo systemctl restart usbmuxd

and then reconnecting my phone.


Install a particular version of a package and related packages

What you are doing is not correct, because even if you install version 19.3 manually, it will be upgraded to version 20* the next time you run apt upgrade. What you should do is create a file /etc/apt/preferences.d/erlang with the following contents

Package: erlang* esl-erlang
Pin: version 1:19.3*
Pin-Priority: 501

This tells Apt that, for all packages whose name contains erlang, versions starting with 19.3 should be preferred over all other versions, even newer ones. Then a simple apt install erlang should install version 19.3 with all its correct dependencies.


Your method is unnecessary. LAPACK is packaged, use the command below to install it:
sudo apt-get install liblapack-dev


Right now there are no software packages that can sync Google Keep directly to your Ubuntu desktop.

However, since you can easily sync Google Keep with Google Drive, you can access all your notes by going to https://drive.google.com/keep/ in a web browser on your Ubuntu desktop.


How to get chmod (octal) permissions of the folder in the terminal?

What am i to type in terminal to know the chmod of the folder i want?

stat -c %a FILE_OR_FOLDER_PATH

e.g. stat -c %a /etc shows 755


Run sudo rm /etc/sane.d/abaton.conf /var/cache/apt/archives/libsane_1.0.22-7ubuntu1_amd64.deb (it will force redownloading of libsane), then try again apt-get -f install


It needs to be executable and installed.

Make it executable:

sudo chmod +x /etc/init.d/YOUR_SCRIPT

Install it to all runlevels:

sudo update-rc.d YOUR_SCRIPT defaults

Now restart and see your script gets run at startup.

Have Fun!

[edit]

Btw. Your script is a service now. You could always stop/start/restart it with

sudo service YOUR_SCRIPT stop/start/restart

[/edit]


How to uninstall a particular dll from winetricks?

I did the following in winetricks when I loaded a DLL that broke a game:

Select the default wine prefix
Click Change Settings
Check the box alldlls=default then click OK
Reinstall DLLs as necessary

This got me back up and running.


How to make KDE Desktop my actual desktop?

As Saiarcot895 states, the desktop is highly customisable in KDE. By default, you use it as widgets, one of which being the "desktop" widget. However, you can still use it as a traditional desktop.

Right click the desktop, to select settings. In my case, it's called "Grid Desktop Settings."

Then set layout to folder.

You can pick the folder to show with the Location tab.


How to burn Live CD from ISO file - ISO file too large

The ISO file is too large to fit on a CD.  You will need to either burn it to a DVD, or write it to a USB thumb drive of sufficient capacity.

The instrucitons for actually burning an image to a DVD or USB thumb drive will vary, and will also depend on the operating system you are using.

Please see one of the following guides for more information:

Burning to DVD: https://help.ubuntu.com/community/BurningIsoHowto

Using USB stick: https://help.ubuntu.com/community/Installation/FromUSBStick

The first option, burning to DVD, will be much easier to follow especially if you're on Windows, and I would recommend it unless you don't have the ability to burn DVDs.


how to launch flatpak calibre from the console?

You can run any installed flatpak using flatpak run, by proving the flatpak REF.
flatpak run com.calibre_ebook.calibre

More information is available with flatpak run --help or man flatpak-run


Stopping calls to Ubuntu Music Search API

Disclaimer: I'm not familiar with the Ubuntu Music Search API service

If all else fails, simply divert the hostname to a different IP. The calls won't stop but the external traffic will as it should 404 immediately.

Do this by editing your /etc/hosts file (as root) and adding X.X.X.X example.com

For example, you may add 127.0.0.1 alkes.canonical.com.

Here's a one-liner command to do the task:

echo "127.0.0.1 alkes.canonical.com" | sudo tee -a /etc/hosts


the man page of find command says that in order to execute a command (in this case chmod) to matching file the command need to be specified using -exec parameter

find . -type f -name "*.pdf" -exec chmod 744 {} \;


Adding a file to the list of startup applications

I assume that you use Unity, however the process is quite similar with other Desktop Environments aswell.

Open the Dash and search for:

startup application

Click add and specify the command you'd like to use. You can then use two approaches, either you open the file by selecting the application you'd like to start with the file as an parameter, or you can use xdg-open as mentioned in this askubuntu-thread:

xdg-open [/path/]filename


How to change ibus input method shortcut to Shift+Caps Lock?

I guess the problem can be solved from the point of Linux Mint, where the ibus-setup application's capturing pressed key window is not broken.

The correct spelling is Caps_Lock...


Why can't I use anything I download/Why can't I download Ubuntu restricted?

To install Ubuntu Restricted Extras, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install ubuntu-restricted-extras


What software can I use to download torrents

You can use the default torrent client that ships with Ubuntu which is Transmission. If you would like something that more familiar to utorrent you can use qBitTorrent.

To open Transmission you can simple search for it in the Dash. To get qBitTorrent you have to go to the Software Center and then search for it and install it:

This is what it looks like:


Webserver configuration to get Drupal Clean Urls work proper

You should enable mod_rewrite.
Try with:

http://drupal.org/node/134439


TeamViewer: Not ready. Check your connection

Sometimes after switching the network connection (wired/wireless), TeamViewer service hangs.
To fix this - restart teamviewer service. Open a terminal and execute the following commands :

sudo teamviewer daemon stop
sudo teamviewer daemon start

Alternatively you can restart the teamviewer service with : sudo teamviewer daemon restart
To check if the service was restarted successfully execute : sudo teamviewer daemon status

When it doesn't solve the problem, check if TeamViewer is blocked by the firewall of the router.
If you are working with an office system provided by a company, it may be blocked within there.

Additional information addressing the comments under the answer "Didn't work for me" :

Sometimes the installation of teamviewer by clicking the .deb file, which opens the Software Center, doesn't install the application including all required dependencies properly and hence fails.
Having installed and used TeamViewer successfully for many years, I can recommend to install TeamViewer by using the gdebi packaging tool, to install it execute sudo apt install gdebi. Right-click the .deb installation file and select to open it with gdebi - then start the installation.

Update December 2017 : TeamViewer 13 was released, for the first time as a native Linux client.
The installer added a TeamViewer repository which currently seems to be not correctly configured.
This may be due to the fact that TeamViewer 13 Linux is still only available as a preview edition. To avoid apt errors, I recommend to remove the repository and install new versions manually until the issue is fixed, to achieve this execute sudo rm /etc/apt/sources.list.d/teamviewer.list.

Update April 2018 : I've tested TeamViewer 13 on Ubuntu 18.04 LTS (running on Xorg) and the application installed correctly by clicking the .deb file. TeamViewer seems to work as expected.

Update August 2018 : TeamViewer 13 has left the preview state and became a regular product.

Update November 2018 : TeamViewer 14 was released and is being made available for Linux.

Users who experience problems with the new edition, may want to follow the discussions in the TeamViewer - Community TV General | Community TV Linux | Community TV TeamViewer 13.


Specific editing unity 7.1.2 launcher, the padding space of the icons

I found something I thought was it... in /usr/share/unity/themes  called

"dash-widgets.json"

which had padding variables in there, but was not pertaining to the right thing.
Maybe this clarifies what I'm looking for in the original question.

here are some pics to clarify what I mean too.

http://imgur.com/a/vqpQQ


Accidentally deleted the "/usr/share" folder

You need to reinstall all applications which have files in /usr/share.

Boot system from Recovery Mode with root prompt.
Remount rootfs to read-write mode with mount -o rw,remount /.
Raise up ethernet interface and get IP address from DHCP server: dhclient enp0s3 (check correct interface name in ip a or ifconfig -a).
Specify DNS server by

rm /etc/resolv.conf
echo "nameserver 192.168.1.1" > /etc/resolv.conf

(change 192.168.1.1 to yours gateway/router)
You need to fix the dpkg package as it misses the /usr/share/dpkg/cputable file (otherwise you will face the "E: error reading the cpu table" on any apt/apt-get command)

wget http://mirrors.kernel.org/ubuntu/pool/main/d/dpkg/dpkg_1.19.0.5ubuntu2.1_amd64.deb
dpkg -i dpkg_1.19.0.5ubuntu2.1_amd64.deb

or installing it from cache:

dpkg -i /var/cache/apt/archives/dpkg_*.deb

update package cache:

apt-get update

reinstall essential componenets

apt-get install --reinstall debconf linux-base
mkdir /usr/share/python
apt-get install --reinstall python2.7-minimal python3-minimal

and then use one-liner below:

apt-get install --reinstall $(dpkg -S /usr/share/ | sed 's/,//g' | sed 's/: \/usr\/share//g')

Above:

dpkg -S /usr/share/ shows the list of comma-separated packages
sed 's/,//g' - removes commas
sed 's/: \/usr\/share//g' - removes : /usr/share in the end

This part may fail with messages about some packages. For example on my VM I have had a problem with bsdmainutils, so I reinstalled them with:

dpkg -i /var/cache/apt/archives/bsdmainutils_*.deb

and then reran one-liner above.
fix broken packages

dpkg --configure -a
apt-get install -f

finally fix /etc/resolv.conf link by

rm /etc/resolv.conf
ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

reboot.

Note: the resulting fixed system do not show any problems while running sudo apt-get check or sudo debsums --all --changed.


Weird popup each time ubuntu 12.04 boots up

I had this same problem before. I think how I fixed it was just to reinstall ttf-mscorefonts-installer. From a terminal:

sudo apt-get remove --purge ttf-mscorefonts-installer
sudo apt-get install ttf-mscorefonts-installer


Youtube stopped working after Ubuntu 13.04 upgrade (and reinstall)

Its a possibility that your flash player pluggins are incompatible. You can visit the Ubuntu software center to locally install the flash plug in for your browsers or you can enter the command Enter "sudo apt-get install flashplugin-installer" and type your password into the terminal. Enter "y" when it asks you if you want to install it and wait for it to install.


In 18.04 moving window to other workplace doesn't work with alternate language switch enabled

The suggested linked question OS keyboard shortcuts conflict with apps keyboard shortcuts did the trick for me.

It still remains a mystery why it worked in Ubuntu till 18.04.


You need to choose the correct keyboard layout, sounds like you have default USA instead of UK.


Is there any Possibility to reset the partitions after installation

If by reset you mean resize then there's a utility called gParted which can be used but it will destroy the data as any kind of change in partition table of drive will end in formatting that part of drive.

Therefore, No, there isn't any possibility.


What'sApp installed on anbox on ubuntu 17.10 doesn't work – probably it can't acces the internet

You need to have WhatsApp installed on your phone in order to use it on the desktop as it connects to your phone to access the service. The reason it cannot connect is because you do not have the app installed on your phone.


How can I assign a URL to my IP (server, 18.04)?

This process is well documented and pretty much the same for all Linux distros. This is not about scripting, it is about hardware and software configuration.

There are numerous steps to create a public website, but the basic gist is:

set up web server
set up router to direct port 80 traffic to your server
set up a domain name to point to the IP

You can follow any of these howtos:

Host a Website on Ubuntu 18.04
How to Set Up a Dedicated Web Server for Free
How To Setup A Web Server And Host Website On Your Own Linux Computer


How let Ubuntu share specific interface over Wire?

I'm thinking about one way to do what you desired  using Network-Manager by having 2 profiles for your wired connection:

Profile wire_shared
Profile wire_not_shared

And then run some trigger that switches your connection between the two profiles depending on the VPN state. You can use cron job and simple script like this

But more detailed answer need more detailed input from your side:).


In gvim setting font size to 12 is not permanent and it is reverting back to 10 when I open gvim again

You can set the GVim font in either your ~/.vimrc, or in ~/.gvimrc using:

set guifont=Ubuntu\ Mono\ 13

However, if you use ~/.vimrc, then you need to ensure that it is only run for GVim, and not for regular command-line Vim:

if has("gui_running")
  if has("gui_gtk2")
   set guifont=Ubuntu\ Mono\ for\ Powerline\ 13
  endif
endif

See :h 'guifont' for more.


Dual boot Windows 10 and Ubuntu 18.04 on ssd sata and ssd M.2

It looks like the Ubuntu installer failed to install the grub bootloader because there isn't a 500 MB FAT-formatted EFI System partition on /dev/sda (M.2 240GB SSD). If the Ubuntu installer did not create this EFI System partition the first time, then you can select Try Ubuntu and use the built-in GParted partition editor to create a 500MB EFI System partition at the start of disk /dev/sda manually. Then run the Ubuntu installer again. If the Ubuntu installation is successful, the Ubuntu installer will run all the way through the installation this time including installing the grub bootloader.


Installing Remote Administration Tool on Ubuntu

The only that I know is discontinued, but works.
http://sourceforge.net/projects/demonio/
If you only want a shell, try SSH.
EDIT:

Have you tried n00brat?


How do I create a multi-bootable SD card?

I think the real problem with this is that the Surface tablets use UEFI, so it is a more involved process to boot other OS's on them.  There is no real difference between using UFD and SD cards for boot devices.  Just format the SD card as FAT32 and follow the instructions for making a UFD multiboot disk.  However, the real limitation comes with UEFI and making a disk that will work for that.

Your best bet for using Linux would be to install Ubuntu (or some other *nix OS) to the SD card itself using a generic driver install (contains drivers for all known hardware).  This would be portable in a sense, but you could run into some trouble as this is not a live install.

The only other option is to use rEFInd (download it and extract the files to the SD card.  Then put a Live ISO (or several Live ISOs) on the SD card.  It should(tm) be able to boot them.


on line 11, make sure you have the word "export" not "rt"

Full line should be:

export PATH=/usr/local/share/npm/bin:$PATH


After days turning me crazy for answers, finally I've just found a solution, or better said, the reason of that window appears.
It is only an upgrade for lubuntu desktop as I show you on next picture... Time ago, I installed a lubuntu and other flavoures in my ubuntu system and when I activated it that message started appear.
You can see the solution on this link https://manual.lubuntu.me/stable/4/4.4/Update-Notifier.html
Thank you both DankyNanky and Jos for your anwsers.


You do not extract an .img; you mount it. Example:

mkdir /mnt/ChromeOS
mount -o loop image.img /mnt/ChromeOS/

and this will list the contents:

cd /mnt/ChromeOS/
ls -l

Mind that .img can also be zipped. If that is the case (unlikely though) you also need to gunzip it.


Don't use cron but at:

echo 'mycommand' | at 16:00

or

at 16:00 -f some_script.sh

See this


renaming removed key_buffer and myisam-recover options (if present) error while installing ubuntu 16

so basically, I ditched upgrading and just installed ubuntu 16.04 from a USB stick, I lost the files that I had on my laptop, but that was okay by me, However, I didn't find a direct solution for this issue.


using alternatives with java 7 and java 8 on 14.04.2 LTS

Because Java is made up of many programs, you'll want to use update-java-alternatives instead. Run update-java-alternatives -l to get a list of installed Java environments. Then, to set an environment as the default, run update-java-alternatives -s codename, where codename is the first part of the output.

For example, I have OpenJDK 7 and 8 installed. Here's the output for me:

07:52:36 ⌂134% θ70° [:~] $ update-java-alternatives -l
java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64
java-1.8.0-openjdk-amd64 1069 /usr/lib/jvm/java-1.8.0-openjdk-amd64
07:54:36 ⌂105% θ70° [:~] 1 $ sudo update-java-alternatives -s java-1.8.0-openjdk-amd64
[sudo] password for saikrishna:
update-java-alternatives: plugin alternative does not exist: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/IcedTeaPlugin.so

(Ignore the error at the end; IceaTea 8 isn't ready yet.)


Ubuntu 16.10 and Later:

Later versions of Nautilus ("Files") removed this feature so you cannot create a blank text-file by just clicking anywhere. You need to use the "Templates" folder for this purpose.

To do this, first navigate to your templates directory: Templates folder

Then open a Terminal in that folder (by right clicking > "Open in Terminal") and then type the following command in the terminal.

touch "Blank Document"

You can name this file anything you want. I personally prefer "Blank Document" because what it creates is essentially a blank document.

After this you should be able to create blank text-files anywhere you want (and are allowed to): creating a blank-document Ubuntu 17.04

Note: You can use the Templates folder to do many other things like creating a particular image, etc. Anything you put there will appear in the "New Document" menu.

Is there any way to create a simple txt file without opening the terminal?


How can I upgrade filezilla to the current version?

NOTE: The newest precompiled version of Filezilla is now 3.49.1 which was built for Debian 10.0 (Buster).  If you are running Ubuntu 18.04 LTS or older, the libc6 library does not contain GLIBC 2.28 which is now required by the precompiled version of Filezilla 3.49.1.  Ubuntu 18.10 and newer contain the newer libc6 and are not affected by this.  I removed the section below that contained how to replace your installation with the precompiled version since it really is outdated now. It is recommended to install Filezilla from source or through the apt-get install method (which will be an older version).  It is probably best to remove any version that was installed with apt since it might try to "upgrade" back to the older version.

Build and install Filezilla 3.49.1 from source:
Install the prerequisites for installing from source:
Older than 20.04:
sudo apt install build-essential cmake wx-common libpugixml-dev libsqlite3-dev libwxgtk3.0-dev nettle-dev gnutls-bin libgnutls28-dev libunistring-dev

For 20.04:
sudo apt install build-essential cmake wx-common libpugixml-dev libsqlite3-dev libwxgtk3.0-gtk3-dev nettle-dev gnutls-bin libgnutls28-dev libunistring-dev libdbus-1-dev libgtk-3-dev

You will need to update to libnettle 3.4.1:
cd /tmp
wget https://ftp.gnu.org/gnu/nettle/nettle-3.4.1.tar.gz
tar zxvf nettle-3.4.1.tar.gz
cd nettle-3.4.1/
./configure
make
sudo make install

Also need to update gnutls to version 3.6.13:
cd /tmp
wget https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-3.6.13.tar.xz
tar xvf gnutls-3.6.13.tar.xz
cd gnutls-3.6.13/
./configure
make
sudo make install

Download pugixml and build from source:
cd /tmp
wget https://github.com/zeux/pugixml/releases/download/v1.10/pugixml-1.10.tar.gz
tar zxvf pugixml-1.10.tar.gz
cd pugixml-1.10/
cmake .
make
sudo make install

Download libfilezilla-0.23.0 that is needed from here.  NOTE: Only libfilezilla-0.11.0 is available in the Ubuntu 18.04 LTS repositories.  Also, only libfilezilla-0.19.0 is available in Ubuntu 20.04 LTS repositories.
Copy the file to /tmp then extract, build and install:
cd /tmp
tar -xvjf libfilezilla-0.23.0.tar.bz2
cd libfilezilla-0.23.0/
./configure
make
sudo make install

Now get the source for Filezilla 3.49.1 from here
Copy the file to /tmp, then extract, build and install:
cd /tmp
tar -vxjf FileZilla_3.49.1_src.tar.bz2
cd filezilla-3.49.1/
./configure
make
sudo make install

With the lib installs you might get the following message if it doesn't start or FileZilla may not be starting at all:

filezilla: error while loading shared libraries: libfilezilla.so.0: cannot open shared object file: No such file or directory

To fix it, simply run
sudo ldconfig

Now run FileZilla and it should be the newest version:

Hope this helps!


Problem with printing (hplip) in Ubuntu 14.04

You need to run hp-setup after installing Ubuntu 14.04.

hp-setup Installs  HPLIP  printers  and  faxes  in the CUPS spooler. Tries to automatically determine the correct PPD file to use. Allows the printing of a testpage. Performs basic fax parameter setup.


How to automatically enter username and password when prompted to connect to a remote server

One of the easiest ways would be to add your key to the remote host.  To add your key to the remote host so that ssh / scp does not require a password you can run:

ssh-copy-id username@host.edu

Then you can use scp to copy from the remote to the client system in the current folder you are in:

scp username@host.edu:/path/to/file/filename .

Or copy it to any folder that you have write access to on your client host:

scp username@host.edu:/path/to/file/filename /local/folder/to/store/in/

Another way to do it would be to install sshpass (sudo apt install sshpass) on your client system.  Then you can use it to log into the remote host and run the commands that way.  One thing to remember that storing a password in a script can be read by anyone that has access to the script.

To use sshpass see https://askubuntu.com/a/385850/231142


Using OpenStack? Check out ZeroStack!They make building a private cloud easy and expose a 100% pure OpenStack API! http://www.zerostack.com/


Zoneminder on 14.04 cannot click on Add new monitor

You must enable common javascript directory in apache configuration:

sudo a2enconf javascript-common


You could try to use xkill to stop the process that generated this window. Just open a terminal and run xkill, you will see the mouse pointer changes shape, then click the corrupted window and a kill signal will be sent to the process owning the window. Hopefully the corrupted window will disappear.


its a problem of memory

make sure you have a Swap Partition twice the size of your RAM

how to make swap partition
https://help.ubuntu.com/community/SwapFaq


Ubuntu App Submission won't allow the "free" bubble to be checked

Don't worry it is common
 Free of cost apps sumited through my apps portal will show $0.0 . If you really think it is a bug , submit a bugreport in launchpad


13.04 on Chromebook series 3 ARM WONT BOOT!

I am using the XE303 with ChrUbuntu 12.04.

In theory 13.04 should work too but I think there is no packaged version of ChrUbuntu for 13.04 so if you don't know what you are doing, I recommend the original 12.04.

The install instructions for 12.04: http://chromeos-cr48.blogspot.hu/2012/10/arm-chrubuntu-1204-alpha-1-now.html


You can make a persistent live drive. I suggest Ubuntu 18.04.1 LTS, using mkusb

If you run standard Ubuntu live, you need an extra instruction to get the repository Universe. (Kubuntu, Lubuntu ... Xubuntu have the repository Universe activated automatically.)

sudo add-apt-repository universe  # only for standard Ubuntu

sudo add-apt-repository ppa:mkusb/ppa  # and press Enter
sudo apt-get update

sudo apt-get install mkusb mkusb-nox usb-pack-efi

Run mkusb-dus in order to create the persistent live drive

 dus ubuntu-18.04.1-desktop-amd64.iso

Boot into the persistent live drive

Activate the repository 'universe' (good for many application programs, including espeak that I use for a demo example)

sudo add-apt-repository universe
sudo apt update
sudo apt install espeak

Edit crontab: Select the simple editor nano

crontab -e

and add the line (you need full path to the command)

@reboot                 /usr/bin/espeak 'I am ready now'

exit and save.
Reboot and you should hear the computer say 'I am ready now' just before you will see the desktop.

If you want to run a desktop application program I suggest that you use autostart, add a desktop file into the directory

/etc/xdg/autostart


How to list a Windows process on Ubuntu Terminal in WSL

If you want to list Windows native process, you can call tasklist.exe from your bash. It will return a list of current running Windows processes. In fact, you can call any windows executables from within bash. All you have to do is to add the file extension when calling it:

tasklist.exe


What are the security implications of registering for an account for livepatch?

Opening an account with any service anywhere only has security implications if you:

Re-use login names / passwords
Use easy to guess passwords
Don't protect your password resets (e.g. by never changing your primary email account's password)
Share passwords
...

So beyond basic account security:

No, there is no additional risk opening an account to do live patching.

OTOH: do you really need it as it's great for servers that need to be available 24/7/365, but for your Laptop / PC???  Not really in my personal and totally subjective opinion


Unable to add apt-repository in Ubuntu-18.04

It is WebUpd8 team Atom PPA

sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update

Mind the ~ in your command.

Ehm, on 2nd reading: are you sure you copy/pasted this correctly?

You list 1 PPA and get an error on another PPA? If true, that seems fishy to me. If so the PPA is probably bugged. Might be an idea to report it on launchpad. Atom is NOT part of that PPA so it should NEVER tell you there is a problem related to the PPA belonging to Atom.

3rd: sudo add-apt-repository ppa:nilarimogard/webupd8 (Alin Andrei WebUpd8 PPA) works for me and does NOT show me an error.


If you cannot find your problem in these bug reports about freezing gnome-panels:

At Launchpad
At GNOME's bugzilla

then have a look at How can I find out what is causing my gnome-panel to freeze? and open a new bug report (see How do I report a bug?).


copying files from subfolder to relative path

Use:

mv askubuntu/* .

mv is the move command vary similar to cp copy command except it removes file at same time. It's actually more efficient because the file isn't actually copied and removed but rather renamed.

. is shorthand for current directory ie /home/my_username/


How do I remove duplicate programs in Classic menu indicator? [Ubuntu 14.04]

You can use a menu editor like Alacarte (package alacarte, the menu entry is named "Main Menu") to modify the menu.

For every menu item there's a .desktop file in /usr/share/applications or $HOME/.local/share/applications/. You can try to find the files there and remove them.

Alacarte will not remove the files if you remove an menu item, but will add a line

Hidden=true

that causes the item not to be displayed.