You cannot install rpm. This is package for another distribution (Fedora, RHEL and its derivates). You can try this HOWTO on webupd8 or you can try installing flash player from repository - open terminal and run this command:

sudo apt-get update && sudo apt-get install flashplugin-installer

It will update your package database and installs package named flashplugin-installer if it is present in your repositories.


This is not graphical, but will give a list of files and folders, which is sort of what you want - run this in terminal

cd /PATH/TO/DIRECTORY && find -iname "*.jar" && find -iname "*.class"

This will find just those ending with .jar:

cd /PATH/TO/DIRECTORY && find -iname "*.jar"

This will find just those ending with .class:

cd /PATH/TO/DIRECTORY && find -iname "*.class"


What would keep iPad from showing in lsusb?

Turns out the cable that comes with these devices is a bit flimsy. Another usb cable worked.


I used to use IDM in windows before I switched to Linux.  I missed it for a while, but found alternatives for where I needed it.

The problem is probably not, as mentioned in the comments, slow download speed, per se.  The problem I had was that some sites limit download speed per connection, so a download manager that makes several connections can make a dramatic improvement, sometimes 5 times faster, or more.

I had no problems with sites that did not limit speeds, and would get the maximum speed from a single connection.

The best I've found for now is a Firefox addon, called DownthemAll!.  If you use Firefox, give it a try. It has several options, and took a little playing around to learn the best way to use it, but it can easily duplicate the normal downloading capabilities, and with a little creativity, it's easy to organize downloads on the fly.


Try looking in:

  ~/.local/share/gvfs-metadata/


Create a script to open firefox with some google search term from terminal

Just paste the below function inside ~/.bashrc file and then source(source ~/.bashrc) it.

google() {
    search=""
    echo "Googling: $@"
    for term in $@; do
        search="$search%20$term"
    done
    xdg-open "http://www.google.com/search?q=$search"
}

After that you can open google search page directly by  google search-string command without pasting the above function everytime on terminal.


Why does apt-get fail to resolve the mirror?

I had the same error. I originally thought it was an error in /etc/apt/sources.list but after doing a ping of not only security.ubuntu.com but google.com as well, I found that my server was connecting to the network but not reaching outside the network.

I edited /etc/network/interfaces and set eth0 to DHCP rather than static. I then had my router take care of giving the server a static IP. Reboot the server and all working fine.

You can find out more about IP configurations here.


Only can type in caps. It acts like the shift key is stuck

Check your Universal Access settings. You can find it by going to the Ubuntu Dash (Click the Ubuntu icon at the top left, or press the Super/"Windows" key>), and typing in the word sticky. Make sure Sticky keys setting is turned off.

If you press and hold the Shift key for about 5 seconds it should turn the Shift sticky on/off.


File contents remains on disk after securely erasing it

You're probably doing nothing "wrong", but wiping data is much harder than in the floppy disk days.

Unless your filesystem is non-journalling AND you never defragment the filesystem, the only guarantee to make sure data is completely gone to software is to destroy the entire filesystem, or on an SSD, security wipe the whole disk.

See this answer (the "accepted" answer in the question is, as you discovered, not completely reliable): https://askubuntu.com/a/58420/544090

Modern file systems transparently move or copy data around for various reasons in their operation. If you overwrite and then delete the most recent location of a file on the disk, there may be an older version of the data from the file in some file fragment somewhere else on the disk. You'll be lucky to recover the whole file again, but as you saw, bits and pieces of the data may still be there. On SSDs this gets even worse because there is wear levelling, where the hardware controller very frequently remaps logical locations on the disk to physical locations on the flash.

A very rudimentary example is something like this:

You create a file, and its data gets stored in location A on the disk.
For whatever reason, the data is copied to location B on the disk. Now the filesystem will say your file is located at "B", but there's still an older copy of your file in location "A".
Your "shred" or similar command completely obliterates location "B"'s data.
You can still find a version of the data at location A. (or worse, the "shred" causes data to shift again and makes the shred happen to location "C", and you still have old bits of the file in locations A and B)

So for data stored on a mechanical hard drive, you'll need to AT LEAST overwrite the whole partition (shred can do this if you run it as root and point it to /dev/). For an SSD you'd have to use the drive's internal secure erase. See: https://serverfault.com/a/694494/354612

These methods will make sure that any access to the disk through its interface (SATA, SAS, USB, etc) can no longer see the data. However, there is no definitive answer about how well these types of methods will protect against an attacker who physically opens up your drive to scan the platters / NAND chips themselves. That's why certain organizations still physically destroy old disks.


Files Manager Missing Window Frame/Global Menu

Check if you have installed any package recently before the global menu went missing. Sometimes, installing ubuntu-restricted-package causes the issue, so you may try to remove it and install it again.


How to display modification time of a file?

Don't use ls, this is a job for stat:

stat -c '%y' filename

-c lets us to get specific output, here %y will get us the last modified time of the file in human readable format. To get time in seconds since Epoch use %Y:

stat -c '%Y' filename

If you want the file name too, use %n:

stat -c '%y : %n' filename
stat -c '%Y : %n' filename

Set the format specifiers to suit your need. Check man stat.

Example:

% stat -c '%y' foobar.txt
2016-07-26 12:15:16.897284828 +0600

% stat -c '%Y' foobar.txt
1469513716

% stat -c '%y : %n' foobar.txt
2016-07-26 12:15:16.897284828 +0600 : foobar.txt

% stat -c '%Y : %n' foobar.txt
1469513716 : foobar.txt

If you want the output like Tue Jul 26 15:20:59 BST 2016, use the Epoch time as input to date:

% date -d "@$(stat -c '%Y' a.out)" '+%a %b %d %T %Z %Y'
Tue Jul 26 12:15:21 BDT 2016

% date -d "@$(stat -c '%Y' a.out)" '+%c'
Tue 26 Jul 2016 12:15:21 PM BDT

% date -d "@$(stat -c '%Y' a.out)"
Tue Jul 26 12:15:21 BDT 2016

Check date's format specifiers to meet your need. See man date too.


Disable GeForce 540m; Use only Intel integrated

You cannot disable the Nvidia card by default, it's hardwired to the Intel CPU. You had 3D issues because the card could not be used, but the drivers were still loaded, preventing the Mesa OpenGL module from being loaded. This breaks graphical effects, 3D capabilities and such. Uninstalling the nvidia driver reverts this behavior.

Your sudo echo command failed because of Redirect the output using `sudo`

Optimus is not supported by nVidia for Linux. For a longer explanation and possible workarounds, see Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?


Nvidia-361 GPU installation continual rebooting

Ok, hope it's ok to answer my own question.

I followed the instructions in the linked to answer in my question, which mostly consisted of purging nvidia packages and adding a package repository, and then added nomodeset to the linux line in the grub menu (Once to the grub menu hit e to edit.  I got my grub menu using 15.1 by hitting esc once at the motherboard bios display and once more about two seconds after that disappeared).

apt-get purge as described in link found in above question
add nomodeset to linux line in grub menu (see detail above)
install nvidia-358
reboot


rake aborted! undefined local variable or method

rake --version will output the rake version you have installed. Or in short style: rake -V. See the documentation for rake (read below on how to do that).

You used a single dash in front of a long style command. If you use a single dash, all following letters will be treated as individual command line options.

For example rake -h will show you a list of possible command line options and
rake -Vvt prints out the version of rake, activates message logging to standard output and enables tracing with full backtrace. That means, the combined short style options -V, -v and -t are passed to the programm. In your case, you tried to execute rake with the options -v, -e, -r, -s, -i, -o and -n. That worked for -v (verbose) and -e (execute code), but rsion could not be found.
rake --Vvt would search for an option with the name Vvt, and rake --version searches for an option with the name version.

Be aware that this is all convention, it's up to the programmer to obey these or net. To get a list of all documented command line options of your programm use
man programm for the manpage and programm -h or programm --help for a short documentation, replace "programm" with, for example, rake, to see the options for rake.


Unity3D web player with Chrome Native Client?

What I have seen is that Unity Apps can be compiled with the NaCl (Native Client) and then can run without the plugin needed. However, this does not mean that any Unity app can run in Chrome without the plugin, thus killing most of the possibilities for Ubuntu D:

Sorry about the late reply, I was researching this same thing when I came across this question without any answer.


How can I Mount Drive in Unsafe State? Operation not Permitted

You got permission denied from ntfsfix because you didn't use sudo.  Mount is telling you that it can't figure out what kind of filesystem it is ( which does not bode well for being able to access your filesystem at all ) and so it wants to you tell it with -t ntfs, but since it couldn't figure this out on its own, this likely won't work either because your filesystem is so damaged.  In this case, you're going to have to restore from backup.


How to make Master PDF Editor the default for .pdf files

If Master PDF Editor (MPE) is not listed all you need is to create a MasterPdfEditor.desktop file.  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

gksudo gedit /usr/share/applications/MasterPdfEditor.desktop

Copy and paste the following, and then save and close the file. (Note that the *.desktop files should be in /usr/share/applications).

[Desktop Entry]
Name=Master PDF Editor
Comment=PDF and XPS files editor
Exec=/opt/master-pdf-editor/master-pdf-editor %f
Path=/opt/master-pdf-editor
Icon=/opt/master-pdf-editor/master-pdf-editor.png
Type=Application
StartupNotify=false
Terminal=false
Categories=PDF Editor;XPS Editor;Office;Utility;Text Editor;

Then

Right click on the PDF file --> Open With --> Open With Other Application

If you don't see Master PDF Editor in the list, click on Show Other Applications

Scroll down to Master PDF Editor, highlight it, and click on Use as Default.


Is there any way to create thumbnails in the Trash folder?

No, not possible. There is a bug marked for it (with no actions on it since 2010) and an Ubuntu forums topic from 2006 with no response on it. So no would be my answer.

But there is an alternative: use "viewer" and open trash from it. It will show a preview in the right pane.


Ubuntu mate17:04 not shutting down correctly

I managed to get it to work.
I was wrong with the bios changing. When i changed the hard drive I remember the date and time had to be re entered on re inserting the battery. It must have gone to default. anyway I remember reading someone had changed the USB settings. I did the same and it is now operating. No idea why the USB support should cause this ?
swlr


Can compiz be installed on Ubuntu 11.10?

Ubuntu uses Compiz as its default window manager, so it should already be installed.

If you want to customize its behaviour, launch the Ubuntu Software Center and install the

CompizConfig Settings Manager ("ccsm", if you prefer install it from apt-get).


The Lenovo w540 has function keys are overloaded with 2 functions per key.  The way this works is they have either the "standard" F1-F12 mode or they have the alternate features of dimming the screen, increasing or decreasing the volume, etc.

To toggle between the modes you need to use the "Fn" key in the lower left hand corner of the keyboard.  For instance Fn+F5 (the Fn and F5 key at the same time) will dim the screen, or issue an F5 command (that refreshes the browser page).

The Fn key can be locked (indicated by the green LED on the key) by hitting Fn+Esc keys at the same time.  Then the function keys will act as if the Fn key is pressed.

Hope that helps.


Installing packages into local directory?

This is, in general, not doable, because you would mess with the apt dependencies system.

There are two solutions:

Install the source package, change into the source directory, configure and install the package irrespective of the packaging systems manually to a directory of your choice.

apt-get source <package>

This does not need root, downloads the package source, unpacks it in a directory within the current directory. You can then change to that directory, make modifications to the source, configure the installation to another target etc.

Configuring to which installation directory the programs should go depends, however, on the particular program. Many programs use the ./configure --prefix localdir to target the installation to localdir; but this is by far not always the case.
Create a chroot environment into which you will install the packages:

debootstrap precise myfancyinstall

Now you have created a dummy installation in the myfancyinstall/ directory

chroot myfancyinstall

You can use apt-get install within the chroot cage to install whatever you wish.


Firstly, try this command (from terminal) as root:

rm -rf /var/cache/apt/*.bin

And try apt-get upgrade again. If the problem still persist, you probably found a bug. Go to launchpad bug and report your problem. Remember to include details like Ubuntu server version or any other relevant information.

Thanks!


You can change the owner of a folder by sudo chown guy:guy .

If you want to change the owner also in every subfolder and every file, you may add -R

So I recommend you to use sudo chown guy:guy . -R


Run the below command on terminal(ctrl+alt+t) to install Ubuntu Restricted extras,

sudo apt-get update
sudo apt-get install ubuntu-restricted-extras


how to install Bitnami lampstack on Ubuntu?

First of all create an account in bitnami website to download the bitnami-lampstack-5.5.30-1-linux-x64-installer.run file.
Then copy the file to your desktop (for convenience ). To provide read and exicution permission, Open terminal (Ctrl + Alt + T).
and type
chmod 755 chmod  755 'location of bitnami-lampstack-5.5.30-1-linux-x64-installer.run

Better drag and drop the .run file from your desktop after typing chmod 755, press enter.
Now double click on the .run file. It will guide you through the installation process.
Thank you.


First of all, check if you configuration is like the following:

http://docs.kde.org/development/en/extragear-office/kile/quick_inverse.html

If yes, look at what happened to me: I had the same problem of inverse search not working.

The answer can't be simpler. Be sure select Browse tool in Okular, not Zoom or anything else.

That's it!

I lost 2 hours trying to find that solution.


defragmenting and increasing performance of old lubuntu system with swap partition

What is the optimal swap size

There's an old rule of thumb that says you make this equal to twice the size of your RAM. Here is an article explaining why that's not necessarily the case (any longer). Opinions may vary, but for a typical desktop install, you shouldn't need to go much beyond 2GB. You might need more if you're doing Linux kernel development or planning on using "suspend to disk." But if you are not a very experienced Ubuntu/Linux user, as long as you accepted the value suggested by the installer, you should be ok.  But in your case I think the bigger problem is a low amount of RAM (512MB).

  is defrag recommended?

The short answer is "it depends," but it is usually not something most Ubuntu users need to concern themselves with.  This article "Why doesn't Linux need defragmenting?" does a really good job of explaining this topic.

How much disk space is available on your machine?  Edit your post with the results of a df -k, and we'll take a look.  But I suspect that your bigger problem is the half-gig of RAM.  I would look at increasing that, if possible.


Plasma Vault lives on the system tray area and if you have it installed in your system,you can have its icon show up on the tray by enabling it through system tray settings->general->extra items->vaults. Once the icon is visible,click it and the generated GUI should be self explanatory.

If it is not installed on your system,you can get it[1] and manually build and install it but check first if it is not in repositories.

There is an alternative called SiriKali[2]. It is Qt based and is desktop independent and very easy to use.

A good start at knowing different folder based encryption tools and their differences is here[3].

[1] https://github.com/KDE/plasma-vault

[2] https://mhogomchungu.github.io/sirikali/

[3] https://nuetzlich.net/gocryptfs/comparison/

ps: SiriKali is one of my projects.


Safest place to get latest Apache and PHP or switch to debian?

The safest place to get the software you seek would be from the Ubuntu Repositories (as for PHP and Apache, Security Patches are applied by the Security Team to all the releases where a security issue exists), or directly from the upstream projects by downloading the source code in a tarball and compiling it.

On Ubuntu, the PPAs from Ondrej for the PHP versions are actually OK to use.  Ondrej is one of the maintainers for the Debian package and also the Ubuntu package as a result of his Debian efforts, and he has worked on Ubuntu bugs at times in PHP5 as well (Debian QA page for php5 where Ondrej is listed in the maintainers and uploaders).  His PPAs are safe to use, and in fact on some systems I use them in production still when I need the older versions of PHP.  (Or in rare cases, I backport the latest from Debian myself, but I'm a power user so...)

However, the only true 'trusted' way to get the latest software is to download the latest source code and compile it yourself for everything.  Your next 'trusted' way is to use the repositories for the OS you have (such as Ubuntu, which the Security Team will provide patches and updates for via the security repositories for Ubuntu to keep security holes patched up).

Ubuntu is actually derived from Debian, such that it operates much the same as a Debian system would with a wide number of changes.  The only way to get the 'latest and greatest' PHP and Apache is to use Debian Unstable provided the package maintainers are extremely current on releasing updates (which usually is NOT the case given Debian freezes and such, just like Ubuntu has).


File share not able to be seen except by creator

This sounds like an issue with your smb.conf file. You are going to want to have your media stanza look something like this:

[media]
   comment = Shared Media Files
   path = /path/to/media
   public = yes
   writable = yes
   create mask = 0666
   directory mask = 0777
   guest ok = yes
   force user = bob
   force group = bob

That will do what you want. Everyone will have read/write access to everything. change the user/group to the user/group of the admin on your Samba box.


You should also be able to upgrade normally, following this answer. This may also help resolve some dpkg errors.

As an alternative, since this is such an old version, and now End Of Life, it may be easier to download an .iso image, put it on a dvd or USB stick, and install 12.04 over it. This will be easy if you have a separate /home partition, as Ubuntu should be able to replace 11.10 with 12.04, but leave your users files alone.

Make a full backup of all your data first. You may also find this question helpful.


Solved this problem by adding an dot (.) at the end of the MX record. Example:

a2d53f710931b4f6.pamx1.hotmail.com.

            IN              MX              10 a2d53f710931b4f6.pamx1.hotmail.com.


The launcher in gnome, just like launcher in Unity, both have gsettings schema where the apps are listed. In this answer, I will be showing an example of deleting firefox from gnome launcher.

We find out what is the setting for org.gnome.shell schema and its key favorite-apps

xieerqi:$ gsettings get org.gnome.shell favorite-apps
['empathy.desktop', 'rhythmbox.desktop', 'firefox.desktop', 'shotwell.desktop', 'libreoffice-writer.desktop', 'nautilus.desktop', 'yelp.desktop']

Next we copy the output and paste it into the command gsettings set org.gnome.shell favorite-app

xieerqi:$   gsettings set  org.gnome.shell favorite-apps "['ubiquity-gtkui.desktop', 'evolution.desktop', 'empathy.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'libreoffice-writer.desktop', 'nautilus.desktop', 'yelp.desktop']"

As you can see, in the code above, I've removed 'firefox.desktop', part. Also notice the double quotes at the end and the beginnign of the value

Bellow are the results before and after running the command:


Xfce, evolution, need same font for all, working area and email head, body

Solved

Solved, it works for me.

You just copy all content of ~/.local/share/fonts to /usr/share/fonts.

Then in evolution, go to Edit > Preferences > Mail Preferences > Message Display, and change the font you like.

BR.


How do I uninstall Ubuntu 12.10 (32-bit) and replace it with 12.10 (64-bit) without breaking my dual-boot with Windows 8?

Deleting the Ubuntu partitions and re-installing using the 64-bit Ubuntu installer should do the trick. It should also be possible to install the 64-bit Ubuntu directly over the old Ubuntu partitions. I don't have step-by-step instructions handy for either approach, since I don't recall every detail of the Ubuntu installer. The details of deleting partitions will also depend on the tool you use (GParted, parted, gdisk, etc.).

One caveat: If you're booting Windows in EFI mode (as is almost certainly the case if your computer came with Windows pre-installed), you probably want to do an EFI-mode installation of Ubuntu. You should check for an EFI-mode boot of the Ubuntu installation medium by looking for the directory /sys/firmware/efi. If it's present, you've booted in EFI mode. If it's absent, you've probably booted in BIOS/CSM/legacy mode. In the latter case, you should fiddle with your firmware settings and/or with your boot-time options to get the installer to boot in EFI mode. Note also that EFI-mode installations can still be trouble-prone because of buggy EFI implementations and less mature EFI support in Ubuntu. The number of potential problems is huge, which makes it impractical to describe all the possible problems; but fortunately, each such problem is rare, so there's a good chance you'll get through the process without incident. If you have problems, you'll just have to do a Web search or seek help on your specific problem. (IMHO, a forum is better for solving such problems than a site like this one, which is best for answering general questions that apply to many people.)

For additional detailed instructions, see UEFI in the Community Help.


How do I make apache run a cgi instead of showing the text?

Did you load the mod_cgi module? You can see if the directory /etc/apache2/mods-enabled/ has a symlink cgi.load. If there is no such symlink, you can create it by running

sudo a2enmod cgi

and then restart Apache:

sudo service apache2 restart

You can run man a2enmod to see what a2enmod does.


You have to quote the quotes using the backslash "\":

sed -i "34i \"some text\"" name_of_file.txt


playonlinux is unable to find 32bits / 64bits OpenGL library

This is a tentative answer, a revision or additional information may be needed.

Find the pci BusID of your nvidia gpu. Open a terminal and type lscpi |grep VGA:

anthony@terminal:~$ lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 430] (rev a1)
06:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 430] (rev a1)

Edit your xorg.conf file to load the nvidia driver. Open a terminal and type:

gksudo gedit /etc/X11/xorg.conf

Add to that file:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 430"
    BusID          "PCI:1:0:0"                   # Use lspci | grep VGA to find BusID
EndSection

Section "Module"
    Load           "glx"
EndSection

Edit the above example to include your hardware specific information. A reboot is needed after the alteration. This should be enough to get the nvidia driver loaded. Additional configuration may be performed by typing sudo nvidia-settings in the terminal.


Intellij Not Booting From Docky - Also Shows Wrong Name

After posting on ubuntuforums someone suggested to just uninstall docky and try again. I tried to do that and it didn't work at first even by calling sudo apt-get autoremove and sudo apt-get purge docky after calling sudo apt-get remove docky. I thought that calling those commands would delete configuration files.. which it should but when I installed docky back it would reappear with the same exact configuration of the dock that I had just uninstalled

I then went on nautillus and typed in 'docky' and that's where I was able to find folders of it's configuration files and manually delete them from there.


Maybe setting the screen size in xorg.conf smaller than the display size would help, i don't know if it works but it may be worth a try. First copy your /etc/X11/xorg.conf to /etc/X11/xorg.conf.backup so in case it doesn't work you can copy it back and all will be as it was.

then from terminal: gksu gedit /etc/X11/xorg.conf

Since I don't know the layout of your xorg.conf I can only give you an example. I persume your TV runs in 800x600 resolution. I also don't have any nVidia card to test here so I don't know if it will support this option. The option that could do the trick is the line Virtual {width} {height}. The rest of the code here is just an indication to show where this line should be placed Don't blindly copy any of this but use it as a guidance.

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Virtual    640 480
        Depth       24
    EndSubSection
EndSection


The easiest way to get around this problem is to install phpmyadmin and the standard Java Development Kit (jdk) dependency package from the default Ubuntu repositories. Open the terminal and type:

sudo apt-get install default-jdk phpmyadmin

This will install a version of phpmyadmin that is as new or newer than the version of phpmyadmin that you have been trying to install in all currently supported versions of Ubuntu. default-jdk is also a newer version than Oracle Java 6 in all currently supported versions of Ubuntu.


Can VirtualBox use unallocated space on hard drive for its virtual HD?

A virtual hard drive is a file, so it needs to go in a partition that is formatted with a file system.  There's nothing stopping you from creating a partition for some or all of your unallocated space, formatting the partition, and then putting your virtual hard drive file or files there.


Dropbox won't start on ubuntu 14.04; overwrites autostart entry

Although the cause is most likely the same as here, I posted an almost similar answer, since both the question and the symptoms are different:

Dropbox timing issues in 14.04

In some cases, in 14.04 Dropbox has some timing issues, and the command to startup Dropbox syncing starts too early and breaks for some reason. It seems to be a bug, because starting Dropbox manually fixes it temporarily, but only until the next restart. To fix it permanently, we need to edit and rename the dropbox.desktop file in ~/.config/autostart/

The fix:

rename the file ~/.config/autostart/dropbox.desktop into: start_dropbox.desktop

[You need to rename it because Dropbox overwrites the file dropbox.desktop on every startup]
Open the (renamed) file with gedit (drag it over an open gedit window).
Replace the line, starting with Exec=, change it into:

Exec=/bin/bash -c "sleep 10&&dropbox start -i"

This delays the startup of Dropbox with 10 seconds after log-in, which does the trick.
in Dropbox preferences, untick "Start Dropbox on startup" (else we would have two .desktop files representing Dropbox in the autostart folder):

In Startup Applications (Dash > Startup Applications) remove the Dropbox entry (but not the newly created start_dropbox.desktop).

In the folder ~/.config/autostart, remove the original dropbox.desktop if it is still there.

Now on restart, it should run fine.

Explanation

The bug seems to be related to the timing of the Dropbox startup. The workaround above replaces the "real" Dropbox starter with one that delays the startup 10 seconds, until the desktop is ready.


Have you tried updating your system by doing sudo apt-get update? If you haven't, I'd highly recommend doing that before proceeding to install the .deb file.

From the looks of it, you are missing some files. Hopefully doing sudo apt-get update works for you. If not, I'd highly recommend proceeding to do the following below. This option is a fail proof option of getting Dolphin installed.

sudo add-apt-repository ppa:dolphin-emu/gcc-for-dolphin
sudo add-apt-repository ppa:dolphin-emu/ppa
sudo apt-get update
sudo apt-get install dolphin-emu

The following repository sudo add-apt-repository ppa:dolphin-emu/gcc-for-dolphin needs libstdc++6 (>=4.9) in order to be run dolphin-emu on 12.04 and 14.04.


How to make a progress bar work in Zenity?

The Zenity docs have a small code snippet that should do exactly what you're looking for.

#!/bin/sh
(
echo "10" ; sleep 1
echo "# Updating mail logs" ; sleep 1
echo "20" ; sleep 1
echo "# Resetting cron jobs" ; sleep 1
echo "50" ; sleep 1
echo "This line will just be ignored" ; sleep 1
echo "75" ; sleep 1
echo "# Rebooting system" ; sleep 1
echo "100" ; sleep 1
) |
zenity --progress \
  --title="Update System Logs" \
  --text="Scanning mail logs..." \
  --percentage=0

if [ "$?" = -1 ] ; then
        zenity --error \
          --text="Update canceled."
fi

First try just copying in the code that's there and running it and confirming that it works as intended, then modify to add in your code where appropriate.

If your progress bar is stuck at zero, make sure to by-pass any sections of the script that may be hanging and making you think that it's actually working!

Edit: As stated in the Answer below, the reason it's not working is because zenity expects the progress to be echoed to it, like in the code sample.


there is no problem  with your /etc/apt/sources.list file.

go to /etc/apt/sources.list.d using

cd /etc/apt/sources.list.d

search PPA file that is related to groovy-dev and detete that then update

sudo apt-get update

404 error comes when that web page not available there.


It should be the Color LCD one as the EPSON one is for a printer and the SyncMaster one is likely an external monitor.


Mouse's forward and back buttons don't work

The mouse is just broken. I've tested it on another machine, doesn't work either. I've since bought a new one, works perfectly.

The thing not working in xev should've been a good clue.


Can Gedit default highlighting style be set for files without an extension?

Steps taken

In my gedit, from the top bar menu, I select View, Highlight mode... and "Plain Text" is the default as shown below:

Using the file name "test.sample" and pasting in a few lines of Matlab code it still stays as "Plain Text" format unless I force it to "Matlab" format.

After saving and exiting I performed cp test.sample test.newbee followed by gedit test.newbee the default format is still "Plain Text".

Next I created a new file using gedit called noextention. I typed a sentence, saved the new file and exited. Then I reopened the file using gedit and this is the result:

Notice the bottom bar of gedit's window shows Plain Text option for highlighting.

Summary

This was done under Ubuntu 16.04, Kernel 4.4.0-53.

I can confirm that <property name="globs">*.m</property> exists within /usr/share/gtksourceview-3.0/language-specs/matlab.lang.

Because I can't break my system like yours, unless we find something on your system to fix, I suggest reinstalling gedit after removing and purging all it's files with apt-get.

Particulars about my version:

$ sudo apt install gedit
Reading package lists... Done
Building dependency tree
Reading state information... Done
gedit is already the newest version (3.18.3-0ubuntu4).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


Can't restore backup: Failed with an unknown error

Could be something like this: https://bugs.launchpad.net/duplicity/+bug/1566372

Before doing anything, you may want to ask there https://launchpad.net/duplicity or search there for completely identical problem. Its difficult to say if a slight difference in the problem could be same or not.

There's risk involved as its your backup so if you do something to it then there's potential for it to completely fail. You can try to backup the backup files first in the event messing with them makes things worse and maybe that will still work when you copy the files back but I don't know.


It is not a good idea to install old versions. And Ubuntu 12.04 is slower than 14.04 on old hardware in many cases.

But for your laptop I would suggest to install Lubuntu 14.04. It does not have enough RAM to work with Unity well.


How to alias addresses in my network for ssh / http connections?

You can setup DNS for this, but much easier for local use is editing the /etc/hosts file:
127.0.0.1   localhost
127.0.1.1   Yourhostname

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

192.168.124.99 bla
192.168.124.100 blabla
192.168.124.107 blablabla

Starting from a fresh /etc/hosts file, leave the lines that are already there alone, add your hostname as 127.0.1.1, and add others as needed. Save the file. It will work instantly.
EDIT this answer was posted before you added the /etc/hosts suggestion yourself.


I Can't Change my Default Interactive Shell from bash to zsh

Since changing your shell requires updating /etc/passwd, it must be done by root. Use
sudo chsh -s /bin/zsh $USER

Also make sure /bin/zsh is listed in /etc/shells.
Just in case, login (with the old, working shell) in a text terminal (Ctrl-Alt-F2) while you chsh and logout/login via the GUI, in case you need to fix something.


It looks to be part of the

sudo apt install gnome-screensaver
gnome-screensaver-command -l

command and I don't see an easy way to disable it.
ie gnome-screensaver-command -l brings up the lock screen and also initiates the screen blanking.
Notice that initially when the lockscreen is activated it starts to dim almost immediately.
If you come out of the screen blanking by moving the mouse or hitting a key it will then
activate screen blanking according to your brightness and lock setting.


Signing Into Ubuntu One Account from Computer Settings

This worked for me in 18.04 LTS.

You must have snapd installed and running.

sudo apt install snapd

If it doesn't start by itself (this happend to me), run:

sudo service snapd start

Then try connecting to you Ubuntu One account again. Hope this helps.


smbclient finds NAS, but mount can't find it

Found this question which answers it for me. Basically, Samba can do hostname lookups, while mount can't. I set the IP address instead of the hostname in /etc/fstab, and it worked like a charm.


I found the problem. Down key was set as shortcut for a shell profile.


Deleted EFI partition and now no OS detected while booting

Thanks @PonJar for the link.
Using askubuntu.com/questions/1028375/deleted-ubuntu-efi
I was able to fix it.
If you face this error grub-install: error: /boot/efi doesn't look like an EFI partition during grub installation step, just do mount /dev/sdaxy /boot/efi again. This will fix it.


Lost extended partition after installing windows

If Windows has taken over the space used by that partition, your only hope is to use something like PhotoRec, which can recover individual files. You should recover the files to a different physical disk to avoid the (significant) possibility of trashing one file while you recover another one. Note that PhotoRec is unlikely to recover your filenames, so you'll need to spend a lot of time sorting through the files and renaming them.

If Windows has left your extended partition's space alone, you might be able to recover it using TestDisk. This program will search for "lost" partitions and recover them whole, so you'll then be able to mount the partition and copy files off it normally. Obviously, this is a much better solution than PhotoRec, so you should try it first if GParted or other partitioning software shows the space previously occupied by Linux to be unoccupied.


Is there any image application that can crop images that is faster/lighter than GIMP?

To crop images with Shotwell (the default picture viewer) just open the image and choose Crop from the Photo -> Tools menu. This will give you a highlighted frame you can drag with your mouse.


You probably don't actually want to do this. As other people have said, / is the directory name separator (i.e., it separates directory names in a path). So if you think that you actually want / in a directory name because something is telling you to do it, you're probably misreading the instructions and/or the instructions are wrong. All the answers telling you how to 'fake' it are telling you how to do something you don't want to do, and won't help you anyway: even though a character might look like a forward slash, your OS won't treat it as one for the same reason that it treats 1 and l and I differently.

As 3Doubloons said in a comment, if documentation mentions a folder named mods/, what it actually means is a folder named mods. The fact that it's not finding it is an entirely separate issue.


I had this issue once. The files got sent to the found.id (e.g. found.000) directory. Does it exist (check that there is no hiding enabled)? If yes, some recovery software might be able to restore  the files. If not, try running chkdisk and look again. Is it there now? If not, most likely there is no way to restore it.

I suggest installing properly next time. This is a known downside to Wubi.

Some software that might be able to recover the files (although the chances are pretty slim):

http://www.piriform.com/recuva
http://www.easeus.com/download.htm (if I remember right, this restored my disks)

Most likely will not help:

http://www.diydatarecovery.nl/chkmate.htm
http://www.ericphelps.com/uncheck/


You can do this via the nvme commands, but I'm curious to know why you would want to do this. Disabling the cache will save a bit of RAM if that's the goal, bit it will cut your throughput in half at the very least.
Either way, this is how you do it:
# nvme get-feature -f 6 /dev/nvme0n1
get-feature:0x6 (Volatile Write Cache), Current value:0x000001
# nvme set-feature -f 6 -v 0 /dev/nvme0n1
set-feature:06 (Volatile Write Cache), value:00000000
# nvme get-feature -f 6 /dev/nvme0n1
get-feature:0x6 (Volatile Write Cache), Current value:00000000

If for some reason you elect to make this persistent across reboots, you will need to write a udev rule:
ACTION=="add", KERNEL=="nvme*", RUN+="nvme set-feature -f 6 -v 0 %N"

These commands work with my Samsung 970 Pro, so should work with your device as well.


Qualcomm Atheros AR9285 gets down frequently in Ubuntu 14.04

add this option in kernel drivers settings

$ sudo echo 'options iwlwifi 11n_disable=1' >> /etc/modprobe.d/iwlwifi.conf

Then restart the system this must fix wifi problem.


fingerprint-gui stucks on first repeat with errcode -22

Have you try Fprint?
https://launchpad.net/~fingerprint/+archive/ubuntu/fprint

I have same problem before when trying fingerprint-gui.
Now I use Fprint and it works


How can I change the settings in Crafty (chess engine)

You can start crafty with the parameter log off. Parameters can be put into the crafty.rc file, or used as start-up parameters from the terminal. The files you see created are created by the parameter log. This is by default set to on. There is an alphabetical list of all the options here. It does not look like you can not put those log files somewhere else.

The most important parameter for these  log.{nnn} files is:

  log off|on|{n}

This command is used to disable logging. The default is log on, which causes Crafty to produce a new log.nnn file for each game played. If you are running Crafty on a server, you might use log off, which disables creating these files as well as the game.nnn files used to restart a game after you exit Crafty and come back later. If you use the form log n Crafty will simply display the last n lines of the log on the screen. If you use log n file Crafty will copy the last n lines of the log to file which could be your hard drive, or a floppy.

Note that if you run with log off, you will be unable to find out what Crafty was thinking about since there is no other record of the game. You will always see a game.001 because as Crafty plays a game, this contains all the real moves played so far so that you can back up if needed. you will also see a log.001 file, but it will be empty.

Alternative: create a script that moves all the log files to your directory before starting crafty or when crafty stops. That way you have then in your folder in bulk and you can keep logging on.


I'm not sure why hfi2512's answer was downvoted, but given the question it would seem as if he's certainly on the right path to your solution.

Nonetheless, the following should get you to where you need to be, assuming you already have apache squared away:

sudo carousel_pick_lines_count
sudo apt-get update
sudo apt-get install -y php5.6 libapache2-mod-php5.6
sudo apt-get install -y php5.6-mysql php5.6-mbstring php5.6-mysql php5.6-curl php5.6-xml php5.6-xmlrpc

sudo a2dismod php7.0 # Just in case it's still on your system
sudo a2enmod php5.6

sudo apache2ctl graceful

I would also be curious to see what the output for the following would be:

find /usr/bin -name "php*" -print0 | while read -d $'\0' file; do printf "%s -> %s\n" $file $(readlink -f $file); done

I'm running a box with a dual PHP5.6/7.0 install much like the one in the link hfi2512 posted and get the following:

/usr/bin/php -> /usr/bin/php5.6
/usr/bin/php7.0 -> /usr/bin/php7.0
/usr/bin/php5.6 -> /usr/bin/php5.6

That should help you track down which ones are currently installed and which one your system is pointing to by default.


Getting Internal Server Error while accessing the libindicate documentation!

Unfortunately most links for indicator API/documentation are dead, but I have managed to find a few here.


Control+R stops working in all programs after some time

An answer from Unix.SE by don_crissti. To send the Ctrl+r combination use "ctrl+r", e.g. xdotool key "ctrl+r".

To find out which app/program grabbed your key use the debug keysym XF86LogGrabInfo. Use xdotool to press keys + XF86LogGrabInfo at the same time e.g. in a terminal run

KEY=XF86AudioPlay
xdotool keydown ${KEY}; xdotool key XF86LogGrabInfo; xdotool keyup ${KEY}

Then check for output with tail /var/log/Xorg.0.log
Note that with gnome 3/gdm and systemd this is no longer logged to Xorg.0.log (it's instead logged to the journal). In that case you could
run

journalctl -f

and then in another terminal run the xdotool commands. Switch to the first terminal and you'll see something like

/usr/lib/gdm/gdm-x-session[629]: Active grab 0x40c0a58e (xi2) on device 'Virtual core keyboard' (3):
/usr/lib/gdm/gdm-x-session[629]: client pid 708 /usr/bin/gnome-shell
/usr/lib/gdm/gdm-x-session[629]: at 32595124 (from passive grab) (device frozen, state 6)
/usr/lib/gdm/gdm-x-session[629]: xi2 event mask for device 3: 0xc000
/usr/lib/gdm/gdm-x-session[629]: passive grab type 2, detail 0xac, activating key 172

In the above example the program (the client) that grabbed the key is gnome-shell.


Temporarily disable network managment of eth0 - How

Use ifdown (and ifup). See man ifdown. If you don't want use /etc/network/interfaces, after ifdown you can use ifconfig to configure by hand. From man ifdown:

DESCRIPTION
       The   ifup   and   ifdown  commands  may  be  used  to  configure  (or,
       respectively,  deconfigure)  network  interfaces  based  on   interface
       definitions  in  the file /etc/network/interfaces.  ifquery command may
       be used to parse interfaces configuration.


is it possible to restore MS Word 2010 file by using a .lnk file?

.lnk files are shortcuts to other files, they simply contain a reference, and some other options. You cannot use them to recover the data of the original file.


How can I unmount a s3fs mount as a normal user?

After working with dpb, we have determined that the issue is a bug and not a lack of knowledge or configuration (it can't be fixed by us)

Issue 309 has been filed with s3fs maintainers.


How can I get notification when my laptop battery gets fully charged?

I have written a small script that will do that:

Script:

#!/usr/bin/env bash
while true
do
    export DISPLAY=:0.0
    battery_percent=$(acpi -b | grep -P -o '[0-9]+(?=%)')
    if on_ac_power; then
        if [ "$battery_percent" -gt 95 ]; then
            notify-send -i "$PWD/batteryfull.png" "Battery full." "Level: ${battery_percent}% "
        fi
    fi
    sleep 300 # (5 minutes)
done

Installation:

Run:

sudo apt-get install acpi
git clone https://github.com/hg8/battery-full-notification.git
cd battery-full-notification/
chmod +x batteryfull.sh

Copy the script to ~/bin folder (why the ~/bin folder?) :

cp batteryfull.* ~/bin

Or copy it to /usr/local/bin if you want it to be available for all users on your computer:

cp batteryfull.* /usr/local/bin

Then add batteryfull.sh script as a startup application by:

Open Dash
Search for Startup Applications
Double-click the icon
Click Add and fill in as follows:


How to assign keyboard shortcuts to already opened windows

Alt+Tab will switch between different programs.

Super+Number will switch between different programs, according to their order on the Launcher.

Alt+` (key below esc) will switch between different windows of the same program.


Did you check out the kernel recommended here?
https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-AMDGPU-DC-Kernel

I had no audio over HDMI on with my RX 480 on ubuntu 16+. After installing the kernel with AMDGPU DC/DAL it all worked perfectly


Ubuntu 18.04 LTS installer crashed halfway during the installation

This is a little bit of a shot in the dark but I can only think of 3 reasons why grub wouldn't install (in the order I think would be mostly likely):

The BIOS is protecting the MBR (master boot record) from being written
The boot section of the hard drive is corrupted (less likely since Windows boots)
grub on the installation media is corrupted

If you try installing again, are you able to install grub on the new partition instead of the MBR? (you will see an option for that at the end of the installation process). If so, then that eliminates #2 and #3 and points to #1.


Is there a way to copy installed application into another OS?

this link contain the APTonCD tutorial , this application does exactly what you need

http://www.howtogeek.com/110034/how-to-back-up-restore-your-installed-ubuntu-packages-with-aptoncd/


No free space to select when trying to make a new partition at install time

Hope these steps help you resolve your issue:

Boot into your Windows system and right-click on the Start Menu >> Command Line (Admin) to enter into the Windows command-line interface.
Once you enter into the command-line interface, type diskmgmt.msc on the promt to enter into Disk Management utility. From here, check if you have any unallocated space on your disk. If not, right click on C: partition and select Shrink Volume in order to resize the partition.
Enter a particular value (as per your requirement) and select Shrink to resize the partition to that specific size. We would now be using this new unallocated space to install Ubuntu.

Before you proceed with the next section to install Ubuntu, ensure you create a bootable USB device using either Rufus or Universal USB Installer. Once you have a bootable media handy with you, follow the link to dual-boot Ubuntu and Windows.

P.S. While installation, choosing Install alongside Windows boot manager is safe, but please follow the guide properly else you might mess your hard disk permanently.

Also, creating a Swap partition is recommended. Having a Swap partition will not impact your working.

Once you have installed the Ubuntu on your system, the next step would be to include GRUB on your boot. To do so, follow the below steps:

Boot into Windows OS
Combine  Windows + r keys together and type cmd to open the command prompt.
(You do not require any admin rights to execute the below command)
Once you are in command prompt window, type bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi on the prompt and hit the Enter key

As soon as the command gets executed, reboot your system and then you will always find options to pick either Ubuntu or Windows as your preferred OS.


Running jars in linux is easy. Just open a terminal and type java -jar <path to jarfile> then hit enter and voilà it works.


router interface shows on public, instead of hosted website (ehcp)

Turns out using that software was not a good idea since it's outdated. The answer would be to uninstall and use another LAMP solution.

To completely remove it do:

sudo apt-get --purge remove ehcp


Press Win key (or called as Super key in linux) in keyboard to bring up dash, and search for software center. Click on it to launch.

Alternatively press Alt + F2 and type in software-center and press enter.

If software center is removed somehow, enter following in terminal to install it.

sudo apt-get install software-center

Once launched, go to dash (the panel on left side), right click on icon of software center and select Lock to launcher.


Dependency errors when installing Cinelerra from a PPA

You have broken packages, try running apt-get with -f to fix broken packages:

sudo apt-get -f

Then update:

sudo apt-get update

Then install again.


In GUI you you should use:

gksu command

or

gksudo command

But note, this is only for graphical applications to run them from superuser.
For CLI applications just:

sudo command


Error install driver (Orico) from makefile

In the end the error was obvious, gcc was not installed ("gcc: not found"). I used this guide to install it https://linuxize.com/post/how-to-install-gcc-compiler-on-ubuntu-18-04/
After that I had no problem installing the driver
I'll leave it in case someone else has the problem


Broadcom driver issue with TP-Link Archer T6E AC1300 16.04

If the hotspot is the problem, remove it with

sudo rm /etc/NetworkManager/system-connections/Hotspot

Reboot


Is there a timer command in the terminal?

You could run it like this:

sleep 60 && ls -a

But that blocks your shell until the wait is over.

To avoid the blocked terminal, group the commands:

{sleep 60 && ls -a ; } &

Be aware that the commands in braces are then executed in a subshell, e.g. variables defined there will not be available in the main shell.


Can I upgrade Ubuntu by installing latest version over the older?

You will need the alternate cd to upgrade to 12.04 when you don't want to install over the network.

I know 12.10 doesn't use an alternate install disc anymore, so i assume the primary install disc works as an upgrade without network access.


Error during update and installation of new packages

I've found and removed the .deb with

LANG=en,us sudo dpkg -r gens:i386

Now I've to resolve the other cdemu/gnome issue (look above).

Finally I found a solution (I hope will help someone):

In a terminal, type

sudo gedit /var/lib/dpkg/statoverride

delete the row about cdemu in the file

root cdemu 2755 /usr/bin/cdemud

Save it. Now you can update. (The problem was an ubuntu natty bug)


How can I make all desktop menus dissapear?

If I am reading this correctly, solving the problem of managing dual screens would also solve the initial problem you describe.


Install CUDA toolkit in non-nvidia hardware

The short answer is yes, here is a solution.

However, I still suggest you to get a Nvidia card if you want to run something real on it.


The Ubuntu repository may not have the latest versions. This is necessary to ensure the stability and security of the whole system.

Don't worry, there is a quick and common solution!

A good way to install a software is using the source distribution and every stable software should have a README\INSTALL file containing the appropriate instructions.

But in the case of Blender there is an alternative: just include an external repository and download a package in 3 commands.
This procedure (click here) should be simpler and maintainable.

Have a nice day, feel free to comment under here if you need more help.


How to make X.org listen to remote connections on port 6000?

(Here follows an almost verbatim copy of a self-answer from an identical question on serverfault which I'd forgotten about; askubuntu wasn't yet created).

Based on information found in this page about enabling XDCMP and the file /etc/gdm/gdm.schemas, I managed to create a /etc/gdm/custom.conf file:

# /etc/gdm/custom.conf
[xdmcp]

[chooser]

[security]
DisallowTCP=false

[debug]

Take care with letter case: it won't work, if you write "disallowTCP=false"...
I also changed the /etc/X11/xinit/xserverrc file to:

exec /usr/bin/X11/X

i.e. I removed the -nolisten tcp options to the X executable. I don't know if I needed to. You might want to try avoiding this edit.

If you only change the xserverrc file, X will nevertheless start with "-nolisten TCP".

After that, all that is needed is a restart of the gdm process:

sudo service gdm restart

You can verify the success as:

tzot@tzot-laptop:/etc/X11
$ netstat -an | grep -F 6000
tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN
tcp6       0      0 :::6000                 :::*                    LISTEN

Update

After an upgrade to 12.04, I had the same issue. This time, the culprit is the lightdm that the system uses. The file that needs to be updated is /etc/lightdm/lightdm.conf and the required addition is a xserver-allow-tcp=true in the [SeatDefaults] section.

And afterwards, I also found that answer. :)

Synopsis

So, in 10.10 this still works: create /etc/gdm/custom.conf with contents as specified above and restart gdm.


How do I fix this main menu that shows generic application names?

After playing around a little more, I figured out myself the solution.

Right clicking on the main menu > properties opens the Applications Menu, where there exist a checkbox that says Show generic application names, uncheck it.

Now everything looks great!


Usually servers are set to hold and serve pages, the development machine is at the hand of the developer, and syncs the web application using a protocol such as SFTP, FTP or WebDav.

If you have a xserver desktop on your machine, I'd recommend you Gedit that can be set up to be a great text editor for web development. (Some tips here)

For non-GUI use (i.e. ssh access) there is vim which is widely used, and nano which is very simple.


How to copy or sync music on iphone 3gs on ubuntu 14.04?

Apple saves music files using a proprietary hash.  Rhythmbox used to support this but Apple changed the hash a little while ago and I found while I could transfer the music files to my i device - the device would not play them.

I could not find a solution to the re-hashed files.

I had to revert to the abomination that is iTunes.


You can start the Onboard Keyboard there you click on the Numberpad-Button 123 where you have a NumLock


Good news: I was able to solve the problem by installing Wine 2.0 using Ricotz's PPA and using its more updated winetricks.

First, remove last installation (in my case it was wine-devel)

sudo apt-get remove --purge wine-devel*
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove

Get Ricotz wine 2.0:

sudo dpkg --add-architecture i386
sudo add-apt-repository ppa:ricotz/unstable
sudo apt update
sudo apt install wine2.0

Create other prefix (e.g. : .wine32), set WINEARCH to win32 and run winecfg:

WINEPREFIX="$HOME/.wine32" WINEARCH=win32 winecfg
"Set Windows 7"

Then run winetricks using the last configurations:

WINEPREFIX="$HOME/.wine32" WINEARCH=win32 winetricks

Now go Select Default Winetricks -> Install a Windows DLL or components -> dotnet46 and install it.

Wine will download and install dotnet46 and other requirements. Even if asking for Mono, it continues to download more and more requirements until it's able to install .NET 4.6 (there was no need to have Mono for me).


Install touchpad-indicator, it'll do what you want. You'll find it in Ubuntu Software, Synaptic, or at https://launchpad.net/touchpad-indicator

update:

direct download of the latest version...

http://ppa.launchpad.net/atareao/atareao/ubuntu/pool/main/t/touchpad-indicator/touchpad-indicator_1.1.0-0extras15.04.3_all.deb

or add this to your /etc/apt/sources.list...

deb http://ppa.launchpad.net/atareao/atareao/ubuntu yakkety main

or install it from the terminal app...

sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install touchpad-indicator

if you have a problem with crashing, your prefs file might be bad, see...

Error at launch touchpad-indicator

Problems to install touchpad-indicator


Solution 1:

Not a huge problem. All you need is a computer which has at least two SATA ports to use both HDDs at the same time. If you don't have an second computer handy, you could do it with on if these SATA to USB adapters but that is painfully slow. May you have an eSATA, USB 3.0 or FireWire port you could use to (\w the appropriate adapter).

When you (re)install your Win7 successfully on the new drive (which is not a good thing in general. Just kidding.) you have to pay attention to the partitioning. The Win7 should only use a part (eg. 180 GB) of your drive and NOT the entire HDD. (If its not possible to set this within the Windows installer you can resize/shrink the partition afterwards via gparted on a live CD/DVD.)

After you have your Win7 in place, use one of these Ubuntu live CDs/DVDs with both your old and your new drive connected to your computer.

Use gparted to set up a partition on your new drive which has exactly the same size as you old Ubuntu partition.

With a simple dd you can then move over the data to your new partition:

dd if=/dev/sda3 of=/dev/sdb3

(Of course you have to change the partition names according to your setup.)

After you did this you can resize the partition with gparted to fit your needs.
(Of course you can do this with your data partition as well.)

Solution 2:

Its super simple if you just move over the entire disk to the new drive at once. (I don't know if this causes any problems on the Windows side, but it shouldn't.)
Just connect both drives to your computer and run:

dd if=/dev/sda of=/dev/sdb

(Check device names!)

ATTENTION: This process can take for ever. But it works. Do NOT interrupt it. (Google to find out how to check the state of dd.)

After the move is done you can use gparted to resize the partitions to your needs.

MBR:

If you use the second solution the MBR should be copied automatically. If you want to save it anyhow you can do this via:

dd if=/dev/sda of=MBR bs=446 count=1

(This saves the MBR into a file called "MBR".)

If you then run this you could 're-apply' the MBR to your new drive afterwards.

dd if=MBR of=/dev/sda bs=446 count=1

I hope this helps you somehow. It really sounds more complicated than it actually is. Hit me up if you need more help or have problems.

(Device and partition names (like '/dev/sda/') may change according to your setup.)


How can I control an Ubuntu computer from another Ubuntu computer through the internet?

Go to the dash and type in remote, click on the icon that says "desktop sharing" then click the box that says "allow others to view your desktop" on the host computer.

Now from the client computer click on the other icon that says Reminna Remote Desktop Client. Click "Create New Remote Desktop File" in the server box, type in the host computers IP address or host name, then the user name and password. Hit the connect button.

If you are trying to do this from an external computer "away from your home" you will want to make sure you have your external IP address, also you will want to open ports, or if your router supports it, you can put your computer in the DMZ (demilitarized zone) of the routers firewall.


What are the executable names of MySQL client and Admin Application (GUI)?

You can call mysql client with mysql (and some arguments) - there is no "natvie" gui. You can install something like MySQL Workbench witch can work as both a client and an admin.

As far as the admin, if you actually installed the server, it comes with phpmyadmin. You just have to create a virtual host and connect to it with a browser.


Where has the Ubuntu One Contacts app for Android gone?

The old funambol clients were giving us and our users too many severe problems, and we discontinued the service.

From our blog post,

  As of June 1, 2011 the current Ubuntu One contacts sync for mobile
  will no longer be active. We’re stopping support for our current
  service so we can focus our energy on launching a much better service
  sooner than we could otherwise.


Download file directly to a remote machine

if it has ssh, you can always ssh the remote machine, and execute the following command to download a file directly to that machine

wget <link_of_file_to_download>

for example, to download a tux picture whose link i know into a server of mine, i would do the following commands

ssh user@myserver
wget http://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Tux.svg/170px-Tux.svg.png


How to enable touchpad, without changing touchpad settings in BIOS to basic

I have become extremely annoyed at the touchpad changing my cursor position as I try to type, so I've searched all over the internet just to try and disable it. I have Linux Mint 18 installed with kernel 4.4.0-45. I did the following to make it easy to toggle the touchpad state.

sudo apt-get install xinput

xinput -list

⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ MOSART Semi. 2.4G Keyboard Mouse          id=11   [slave  pointer  (2)]
⎜   ↳ FTE1001:00 0B05:0101                      id=14   [slave  pointer  (2)]

Look for the id of the touchpad, in my case it's 14. I wrote a small shell script to turn the touchpad off and on.
TouchPad off:

cd /usr/local/bin
sudo nano touchpad-off

#!/bin/bash
xinput --set-prop 14 "Device Enabled" 0
echo touchpad off

TouchPad on:

sudo nano touchpad-on

#!/bin/bash
xinput --set-prop 14 "Device Enabled" 1
echo touchpad on

Make the scripts executable with:

chmod +x touchpad-off
chmod +x touchpad-on

Now you can easily toggle the touchpad state with touchpad-off and touchpad-on.


Ubuntu 16.04 doesn't see second monitor daisy chained through displayport


How do I access the file system as a root or owner?

By default /var/www is owned by root:root and no one but the admin can add or change files there. You need to set contents of /var/www/ to the correct permissions.  There are several methods but the one I use: set the group to www-data and add your user to that group.

Setting group www-data:

sudo chgrp -R www-data /var/www/ubuntu

Add your user to www-data:

sudo usermod -a -G www-data $USER

That way you are part of the group that can write inside /var/www/.

But I would start by reading the documentation that you got with the webserver since this is just a small part in setting the correct and secure permissions. Directories tend to have permissions set to 755 or 775 and files to 644 or 664 depending on who you want to be able to do things.


Videocall in Skype causes closing session on Ubuntu 12.04, x86?

It can be driver problem , but you can do one thing, upgrade your graphic driver via additional driver package in ubuntu , it will show mostly 1-2 more advanced graphics drivers such as ATI/AMD Catalyst™ Mobility ... etc. install it and after that try to make skype call.


NFS share permission issue from windows on ubuntu 14.04

Couple things. The * is probably fine but you may want to be a little more explicit and do something like 192.168.0.0/24.

I believe sync is the default so you could leave it out. You may want to try adding the no_root_squash command to just map all share clients to root access. Should fix your issue.


Clipit saves its configuration file at ~/.config/clipit/clipitrc.

open clipit configuration file in gedit and check if it contains the line offline_mode=true or not.
To open use

gedit ~/.config/clipit/clipitrc

If this line is not there, just add offline_mode=true as last line or if it is like offline_mode=false then change it to offline_mode=true .


if you are using windows 8 or 8.1 you might want to disable fast start-up, go to this link to know how to disable it: http://winaero.com/blog/how-to-disable-or-enable-fast-startup-in-windows-8-1/
if you are using any windows and you are switching to ubuntu after hibernate or improper/forced shutdown then first boot to windows and restart windows, instead of booting to windows again, boot to ubuntu.
let me know if you have any problem


Gnome3 Setup of Wacom Buttons in Ubuntu 19.10

I have the same issue with the GUI in Ubuntu 20.04 -- I cannot configure some of the buttons because the relevant dropdown menu seems to be displayed outside the visible screen area. (Sometimes it jumps around.)
But I think the issue can be solved using the dconf editor.  After installing and opening this editor and navigating to /org/gnome/desktop/periphals/tablets/, I see my device listed with some cryptic id (056a:0357).  Underneath that device, I find a list of buttons (buttonA, buttonB, etc.)  The values of buttons A & B do show the configuration that I made via the GUI, so I believe the remaining buttons C & D could be configure here.


no more WakeOnLan on MaaS ver. 2 as Power Type

I can't answer why it's no longer there, but I can confirm it's not in the API anymore.  That being said, 2.0 is not in final release, and I believe is beta5, working on beta6.  An official answer would be nice if WOL is going to return or if it was removed for a reason.

Previously, 1.9 had ether_wake (Wake-on-LAN)

https://maas.ubuntu.com/docs1.9/api.html#ether-wake-wake-on-lan

In 2.0, it is no longer in the API.

https://maas.ubuntu.com/docs/api.html#power-types


Connecting a remote client to an openVPN server running on Ubuntu

True it is a networking issue but it stopped me using the openVPN server on my Ubuntu system. Resolved as follows:
In the end the answer was simple - my lack of knowledge on networking!
All that was required was to set-up port forwarding on the DSL router - in my case I am using an old Netgear router - so I had to set-up a service for the port (1194) and then change the firewall rules to allow that service.
It should be easier on a more modern Router
hope this helps others stuck on the same issue


Dependencies missing while building Mesa3d

You should:

enable Source code repositories in Software & Updates (software-properties-gtk)
get build-dependencies for Mesa source package:

sudo apt-get build-dep mesa

retry the compilation method.


How can I get ubuntu save my WiFi password?

Click on the network indicator in the top right of the screen, and select Edit Connections… from the menu, then select the connection in the list, choose to edit it, switch to the General tab, and enable All users may connect to this network for the connection.


This could be the firewall blocking try:

sudo ufw status verbose

If you get something like this

Status: active

Then you will need to open the port:

sudo ufw allow 6080/tcp


How to check if my installation of Ubuntu is alright?

First check /var/log/syslog for any errors. If you notice any specific errors them post them here.

If you are using a lvm based installation, check the outputs of pvdisplay, vgdisplay and lvdisplay and verify them; or use fdisk / parted commands.

If you are suspect any data loss or corruption, you could run fsck on the modified partitions from the rescue mode.


can someone remotely access your ubuntu user account on your computer if they steal your ubuntu username and password

Unless you have some remote access system installed like SSH or a Remote Desktop program, it is not possible without having physical access to the machine.

However in the unlikely chance that there is such a large bug in Ubuntu that allows someone to do just that- I think we'd all need to take a step back.


It looks like the ec2 package repository mirror doesn't support IPv6.
After running the following to update /etc/apt/sources.list to use archive.ubuntu.com instead it ran fine with IPv6.
sudo sed -i 's/us-west-2\.ec2\.//g' /etc/apt/sources.list
You'll need to change the command to your specific region (us-east-1, etc.)


Access the USB drive from which Ubuntu boots

The content of the USB is mounted under /cdrom folder. So, one can browse to that folder by -

Opening the 'disks' application, and then selecting the drive you want to open (Here it's your pendrive). Then click on '/cdrom', which looks like a hyperlink.
Or opening Nautilus and going to /cdrom directory.


Do you have Windows client or Windows Server installed? If you have Windows 10, which version is it? Home? Pro?
If you have Windows 10, here is a link to info about installing Hyper-V:
https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
With Hyper-V, you can just create a Linux virtual machine with the desired software and share it with other computers that have Hyper-V installed. No need to create a new .ISO file or change operating systems.


Warning

While it's possible to do, it is not recommended.

Enabling

To actually enable root logins first you have to set a password for the root account and then unlock the locked root account. If you don't set a password for the root account the passwd command will return

passwd: unlocking the password would result in a passwordless account.

So, first execute in a terminal

sudo passwd root

you will be prompted for a new Unix password. Write it twice (second for confirmation).

Then execute

sudo passwd -u root

to unlock the account. This should return

passwd: password expiry information changed

Reverting

If you want to disable root account in Ubuntu you need to lock the root account by using the following command sudo passwd -l root

Alternatives to root login

If you want to work on a root console you can also use sudo -i.

Only do this if you know what you are doing. More information on why to stay with sudo here

Graphical version needs setting up 1st:

pkexec gnome-terminal will open a terminal with a root prompt.

passwd root will allow you to create a password for root.

Note: Running users-admin with elevated privileges no longer works because of a bug that is marked as "Won't Fix" for security reasons. See https://bugs.launchpad.net/ubuntu/+source/gnome-system-tools/+bug/685215 for an explanation.

pkexec users-admin will open the users screen:

Documentation

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


Good news: Wine supports USB flash drives!
Even more good news: it might be super easy!
1. run winecfg
2. go to the "Drives" tab
3. click "Add..."
4. chose your favorite letter
5. find the "Path:" text field and click the "Browse..." button next to that
6. find wherever your operating system has mounted the flash drive. In Ubuntu it'll be under /media
7. select your flash drive's mount point (if you're using YUMI it'll probably be called "MULTIBOOT".
8. click "OK" and then "OK" again.
9. Run YUMI or whetever Windows program you were using your flash drive with.

If that doesn't work for you, you might have to patch in USB support and then compile WINE yourself, according to this: https://web.archive.org/web/20160117115117/http://wiki.winehq.org:80/USB
If you want to go that route, the website makes it sound simple enough.
1. open a terminal
2. type wine --version
3. go here and click on your version number: ftp://ftp.etersoft.ru/pub/people/amorozov/usb/
4. download the two text files to your wine source folder
5. run patch -p1 < 0001*.txt and then patch -p1 < 0002*.txt
6. build it

That last step is what kills it for me, because I'm a noob and half of every compile attempt finds me in dependency hell. The website also says "Only for versions before 1.1.22. Run tools/make_makefiles" before building it. I don't knowú what that means, but it might be useful.

Thankfully the first option worked for me.
I feel it's worth noting that while adding another OS with YUMI under WINE seems to work fine, I've always had trouble setting up a fresh flash drive with YUMI under WINE, but maybe it's just me. Also, on one of my computers (Kubuntu 64-bit 3.8.0-31-generic) sometimes I would navigate around and the WINE file manager thing wouldn't see any files or hidden folders. If this hapens to you, paste the exact name of what it is you want to select (like "gparted-live-0.14.1-6-i486.iso" or ".hiddenfolder" and hit enter.


Is there a file system best suited for a torrent partition?

Ext4 will handle it just fine, which is basically while Gilles said.  There also is little to no benefit to breaking the disk into 4 partitions.  You most likely will be better off with at most / and /home partitions.


How to properly delete xubuntu-desktop with it's Loginmanager

Try the following commands

sudo apt-get autoremove --purge xubuntu-*

sudo apt-get autoremove --purge xfce*

Otherwise, if you would like to remove every associated package

Ubuntu 12.04

sudo apt-get remove abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview alacarte bison blueman brltty-x11 catfish espeak exo-utils flex fonts-droid fonts-lyx gigolo gmusicbrowser gnome-system-tools gnome-time-admin gstreamer0.10-gnomevfs gthumb gthumb-data gtk2-engines-pixbuf indicator-application-gtk2 indicator-sound-gtk2 leafpad libabiword-2.9 libbison-dev libdigest-crc-perl libexo-1-0 libexo-common libexo-helpers libfl-dev libgarcon-1-0 libgarcon-common libgdome2-0 libgdome2-cpp-smart0c2a libglade2-0 libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libgsf-1-114 libgsf-1-common libgstreamer-perl libgtk2-notify-perl libgtk2-trayicon-perl libgtkmathview0c2a libgtkspell0 libido-0.1-0 libindicate-gtk3 libintl-perl libjpeg-progs libjpeg-turbo-progs libkeybinder0 liblink-grammar4 libloudmouth1-0 libnet-dbus-perl liboobs-1-5 libotr2 libots0 librarian0 libsexy2 libtagc0 libthunarx-2-0 libtidy-0.99-0 libtie-ixhash-perl libtumbler-1-0 libunique-1.0-0 libvte-common libvte9 libwv-1.2-4 libxfce4ui-1-0 libxfce4ui-utils libxfce4util-bin libxfce4util-common libxfce4util6 libxfcegui4-4 libxfconf-0-2 libxml-parser-perl libxml-twig-perl libxml-xpath-perl lightdm-gtk-greeter link-grammar-dictionaries-en m4 orage parole pastebinit pavucontrol pidgin pidgin-data pidgin-libnotify pidgin-microblog pidgin-otr plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text python-configobj rarian-compat ristretto screensaver-default-images scrollkeeper shimmer-themes system-tools-backends tcl8.5 thunar thunar-archive-plugin thunar-data thunar-media-tags-plugin thunar-volman ttf-droid tumbler tumbler-common xbrlapi xchat xchat-common xfburn xfce-keyboard-shortcuts xfce4-appfinder xfce4-cpugraph-plugin xfce4-dict xfce4-indicator-plugin xfce4-mailwatch-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-power-manager-data xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-session xfce4-settings xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-verve-plugin xfce4-volumed xfce4-weather-plugin xfce4-xkb-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4 xscreensaver xscreensaver-data xscreensaver-gl xubuntu-artwork xubuntu-default-settings xubuntu-desktop xubuntu-docs xubuntu-icon-theme xubuntu-wallpapers && sudo apt-get install ubuntu-desktop

Ubuntu 14.04

sudo apt-get remove abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview alacarte bison blueman brltty-x11 catfish espeak exo-utils flex fonts-droid fonts-lyx gigolo gmusicbrowser gnome-system-tools gnome-time-admin gstreamer0.10-gnomevfs gthumb gthumb-data gtk2-engines-pixbuf indicator-application-gtk2 indicator-sound-gtk2 leafpad libabiword-3.0 libbison-dev libdigest-crc-perl libexo-1-0 libexo-common libexo-helpers libfl-dev libgarcon-1-0 libgarcon-common libgdome2-0 libgdome2-cpp-smart0c2a libglade2-0 libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-extra libgsf-1-114 libgsf-1-common libgstreamer-perl libgtk2-notify-perl libgtk2-trayicon-perl libgtkmathview0c2a libgtkspell0 libido-0.1-0 libindicate-gtk3 libintl-perl libjpeg-progs libjpeg-turbo-progs libkeybinder0 liblink-grammar4 libloudmouth1-0 libnet-dbus-perl liboobs-1-5 libotr5 libots0 librarian0 libsexy2 libtagc0 libthunarx-2-0 libtidy-0.99-0 libtie-ixhash-perl libtumbler-1-0 libunique-1.0-0 libvte-common libvte9 libwv-1.2-4 libxfce4ui-1-0 libxfce4ui-utils libxfce4util-bin libxfce4util-common libxfce4util6 libxfcegui4-4 libxfconf-0-2 libxml-parser-perl libxml-twig-perl libxml-xpath-perl lightdm-gtk-greeter link-grammar-dictionaries-en m4 orage parole pastebinit pavucontrol pidgin pidgin-data pidgin-libnotify pidgin-microblog pidgin-otr plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text python-configobj rarian-compat ristretto screensaver-default-images scrollkeeper shimmer-themes system-tools-backends tcl8.5 thunar thunar-archive-plugin thunar-data thunar-media-tags-plugin thunar-volman tumbler tumbler-common xbrlapi xchat xchat-common xfburn xfce-keyboard-shortcuts xfce4-appfinder xfce4-cpugraph-plugin xfce4-dict xfce4-indicator-plugin xfce4-mailwatch-plugin xfce4-netload-plugin xfce4-notes xfce4-notes-plugin xfce4-notifyd xfce4-panel xfce4-places-plugin xfce4-power-manager xfce4-power-manager-data xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-session xfce4-settings xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-verve-plugin xfce4-volumed xfce4-weather-plugin xfce4-xkb-plugin xfconf xfdesktop4 xfdesktop4-data xfwm4 xscreensaver xscreensaver-data xscreensaver-gl xubuntu-artwork xubuntu-default-settings xubuntu-desktop xubuntu-docs xubuntu-icon-theme xubuntu-wallpapers && sudo apt-get install ubuntu-desktop


Some applications is not working after upgrading from Ubuntu 11.04 32 bit to Ubuntu 12.04 64 bit

You can't restore your old applications for these reasons:

You changed your architecture from; this will make your old applications useless.
Some of the old applications maybe not supported anymore in Ubuntu 12.04, so some of them may be lost.

You will have to install your favorite applications again.


list files not originating from packages

To answer your question literally, you can list files that do not come from packages this way:

find / -xdev -type f | sort >/tmp/root.files
sort /var/lib/dpkg/info/*.list >/tmp/installed.files
comm -23 /tmp/root.files /tmp/installed.files

That will of course include every file in home directories. You can skip some directories in the find command by adding -prune directives (you'll also need to add -print to print the rest, as the -print action is only implied if there is no action).

find / -xdev -type f -path /home -prune -o -path /var -prune -o -print | sort >/tmp/root.files

To check if a file has changed, you can compare its checksum against the one in /var/lib/dpkg/info/$PACKAGE.md5sum. If you want to compare every file (which will take a very long time):

for p in /var/lib/dpkg/info/*.list; do
  diff <(md5sum $(cat $p) | sort) <(sort ${p#.list}.md5sums);
done

You should not need this, because you should not modify files that come from packages. You should not add your own files in system directories either.

If you modify a configuration file, it lives in /etc; this is the only place where you should modify system files. Install the etckeeper package to keep track of your modifications in /etc. Run sudo etckeeper init, and /etc will be under version control (Bazaar by default).

If you install software system-wide, install it under /usr/local. Don't touch anything in /bin, /sbin, /lib (except manually-installed kernel modules if you need them because you have unusual hardware), or /usr (except /usr/local which is for your own use).

All files in your home directory were created by you (except for a handful that were copied from /etc/skel when you created your account). There's no general way to keep track of which ones are application defaults, which ones result from you selecting configuration options and which ones record current state (open files, command history, etc).


Multiple error messages inside of Android Studio

Whether this will impact you or not is not really for us to answer.

Firstly, you have two different things here, neither of which are errors:

An warning notification: "IBus prior to 1.5.11 may cause input problems.  See IDEA-78860 for details"
An informational notification that updates are available for the plugins and the Android Studio platform.

The second one's irrelevant - if you want to update Android Studio and its plugins, you can, and you probably should if you want to support latest Android.  This is not an error, however, it's just a "There is an update available" notification.

The first one, though, isn't an error either, it's a warning notification about the IBus on your system being older than it would like.  To determine if it's going to impact you, you should click and read the link it actually links to in that notice, for 'IDEA-78860', to see the details of this issue, then determine if it'll impact you.


Why doesn’t `mv file /dir` move the file to a subdirectory of the current working directory?

Provided a directory with this name doesn’t exist, you renamed the file to openvpn located in your root directory /. To revert this, run:

sudo mv /openvpn /etc/MyFile.conf

If the directory did exist you moved the file inside it, then the reversion is:

sudo mv /openvpn/MyFile.conf /etc/

To move it to an existing subdirectory of the current directory you can run any one of these – those use relative paths:

mv MyFile.conf openvpn
mv MyFile.conf openvpn/
mv MyFile.conf ./openvpn
mv MyFile.conf ./openvpn/

. is a link to the current directory, so ./ at the beginning of a path means “in this directory”. The slash at the end means that openvpn is a directory and you want to move the file inside it. If you don’t provide it, the file will be moved into it if a directory with this name exists, else the file will be renamed to openvpn. With a / at the end, mv will warn you if the directory is missing and not rename, so that’s the secure way if you don’t want to rename.

If your path begins with / on the other hand it’s an absolute path regardless of the current working directory, it’s always relative to the root directory /. Using absolute paths for both file and destination your command would look like this:

mv /etc/MyFile.conf /etc/openvpn
mv /etc/MyFile.conf /etc/openvpn/

Further reading

What is a full path name?
Absolute / canonical / relative paths on Unix & Linux


How to change the background color of current day in the calendar?

What you are going to want to do is submit a bug report against the calendar on Launchpad, a website pertaining to the development, maintenance, and contributions to Ubuntu software.  This what you have to do:

Make a launchpad account here.
Find out exactly which package you have the issue with (when in doubt, submit the report against a more general package, such as unity, then someone can help you change it to the right one) .
Make sure that the bug has not already been reported here.
Submit the bug report, being sure to be clear and concise.  A general layout to follow is to use 3 headings: "general issue", "what was expected", "what happened instead", "fix/solution/suggestion".

This list applies to any bug you wish to report.

Your contributions are always welcome and appreciated by the Ubuntu community.


Yes, your tx-power is very low (1dBm). The most restrictive international standard is set at 20dBm or roughly 100mW. Right now, you are at about 1% or 1.25mW

In the United States and in Canada, the limit is set to 37dBm which is roughly 5W!

I would also recommend adjusting the txpower of your wireless router. If this setting is not available on your router, use a different firmware. Although, I'm pretty sure the linksys txpower is pretty low like 40 or 70mW.

Also, you can set the txpower even lower so long as it is still functional:

sudo iwconfig wlan0 txpower 0

The setting above will equal 1mW


How can I restore all hidden subdirectories with configuration files that were lost when I completely wiped out my home directory?

Re-installing packages is not going to help as the . directories are automatically created when you use a package. You can start with cp /etc/bash.bashrc ~/.bashrc . Other then that, most of the . directories will be auto generated and you should not have lost anything other then various settings or configurations.


Making the screen darker than the lowest brightness setting

I'm not sure how it can get darker for me. When I slide the bar all the way down, it almost completely blacks the screen out.

Either way, try lowering the brightness setting of your monitor, perhaps?


Kolourpaint missing all icons on Ubuntu 20.10

You have to install Breeze theme meta-package with
sudo apt-get install breeze

and then restart KolourPaint application.


How to recover virus infected files from pendrive in Ubuntu

Try to explore if the files/folders are hidden.
Ctrl + H will display all hidden files in ubuntu.
If the files are not present, then its most likely to be deleted.
Dont add any file and make sure you dont write anything to the pen drive and try to recover deleted files using some softwares like Testdisk


Could it be hardware acceleration?

Try firefox safe mode.

If firefox hangs, press CTRL-ALT-F1 and log in from console. Kill firefox (killall firefox, or killall -9 firefox). Log out and get back with CTRL-ALT-F7

Edit: (provided the computer is not too badly locked, of course)


Save all command and all output (using script across terminals)

Potential solution

After some research and experimenting, here's what I came up with:

logstuff(){

    while true; do

        case $1 in
            "on" ) exec > >( ( printf ">>>>> TIME:$(date) SHELLPID:$$;\n"; tee /dev/tty ; printf ">>>>>\n" ) >> logfile.txt) 2>&1 ;
                   break;;
            "off") exec > /dev/tty 2>&1 ;
                   break;;
                *) echo "Please type 'on' or 'off';;
        esac
    done
}

This bash function should be placed in your ~/.bashrc and is available for use when opening new terminal or after issuing source ~/.bashrc. Logging has to be turned on manually via on and off arguments.

DEMO

Here's how it works in practice:

Do stuff in shell 1:

<shell 1>$ logstuff on
<shell 1>$ stat /etc/passwd
  File: /etc/passwd
  Size: 2208            Blocks: 8          IO Block: 4096   regular file
Device: 802h/2050d      Inode: 156236      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-12-01 20:24:02.620000000 +0000
Modify: 2018-10-31 01:33:42.701000999 +0000
Change: 2018-10-31 01:33:42.704998999 +0000
 Birth: -
<shell 1>$ logstuff off
<shell 1>$

Do stuff in shell 2:

< shell 2 >$ logstuff on
< shell 2 >$ echo "Hello World !"
Hello World !
< shell 2 >$ logstuff off
< shell 2 >$

Now review the logfile.txt:

<shell 1>$ cat logfile.txt
>>>>> TIME:Sat Dec  1 21:43:00 UTC 2018 SHELLPID:2225;
<shell 1>$ stat /etc/passwd
  File: /etc/passwd
  Size: 2208            Blocks: 8          IO Block: 4096   regular file
Device: 802h/2050d      Inode: 156236      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-12-01 20:24:02.620000000 +0000
Modify: 2018-10-31 01:33:42.701000999 +0000
Change: 2018-10-31 01:33:42.704998999 +0000
 Birth: -
<shell 1>$ >>>>> TIME:Sat Dec  1 21:43:11 UTC 2018 SHELLPID:2359;
< shell 2 >$ echo "Hello World !"
Hello World !
< shell 2 >$ logstuff off
>>>>>
logstuff off
>>>>>
<shell 1>$

Issues

If logstuff on is issued in both terminals first, there's a chance of outputs being mangled together. The way it works is that you have to issue logsutff on in shell 1, then issue commands there, then issue logstuff on in shell 2.
This uses process substitution >( ), tee and a subshell. Not the most elegant nor efficient due to bunch of forking and extra pipeline.
logfile.txt is stored in current working directory. This should be changed to ~/logfile.txt or however the user sees fit.

Practical considerations

What the question itself asks is somewhat impractical: storing output from multiple shells into one single file means you're storing output of commands from two or more completely unrelated session, which may have different environment variables, different working directories, or working on different filesystems; this means there's whole lot of context lacking if you're intending to use such log text for debugging purposes or solving a problem.

Far better approach would be to have script -f write to log files in one specific directory, potentially with filenames of such logs timestamped or appended the shell PID. Another solution - instead of having 3 different terminals, just use one - screen or my personal favorite byobu-screen. You can attach/detach to a single virtual tty session in screen and it is often used to keep processes running on remote servers where you have to log out but still need a shell session with output and tracebacks running. This can be combined with script as well.


Will a 64 bit operating system ran as fast and smooth from a flash drive as the 32 bit version does?

64-bit executables are slightly larger (because of the pointer sizes) but not to a degree that would make a significant difference.

You're likely to see an improvement in application performance from running in 64-bit mode though.


What is the best tool to sync browser passwords and bookmarks?

I'm not aware of any cross-browser methods for synchronizing the passwords stored within the browser, but I find that the combination of KeePassX and Dropbox (or Ubuntu One) works well enough for my needs.


How to know which versions of application I can install via apt

The policy command of apt-cache displays the current installed and available versions.

apt-cache policy gedit


Figured it out. I had to add one of the repositories listed here to my /etc/apt/sources.list file.

This is what I added:

deb http://archive.ubuntu.com/ubuntu/ lucid main
deb-src http://archive.ubuntu.com/ubuntu/ lucid main
deb http://archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://archive.ubuntu.com/ubuntu/ lucid universe


unknown variable 'pid-file=/run/mysqld/mysqld.pid' when setting 50-server.cnf

To formally put this as an answer, the square brackets denote sections of the config and you cut the [mysqld] section in half with your inserted [mysql] section.  This has the affect of putting the pid-file setting under [mysql] rather than [mysqld].  Judging my the error, [mysql] does not have a a pid-file setting.
Either add your [mysql] settings at the top or bottom of the file and you should be set.  Alternatively, put them into a sibling file 50-server.cnf called 51-client.cnf so you can easily find them in the future (the number in the file name is load order and the name is arbitrary).


getting error during fake authentication(aircrack-ng)

I have followed the answer on this link below and I was able to fix it on my Ubuntu 13.04

How can I solve "fixed channel -1" (mon0 is on channel -1) issue when using airodump-ng?

Make sure to install ssl lib dev before compiling aircrack from source.

sudo apt-get install libssl-dev

Also you will need to remove the previous version of aircrack-ng from your system before you install the compiled version just to make sure there will be no conflict.

sudo dpkg --purge remove aircrack-ng

Peace!!


Run the installer again. The reason it's on the NVMe is because that was probably the drive highlighted in the installer.  When you reach the "Install on _______ drive" screen, click the dropdown window and select /sdb.

-Adam


Error compressing files in /var/www with to .7z with password protection

If you are trying to use the "Compress" option in nautilus, first run sudo nautilus in a terminal in order to use that script with root permissions, then navigate to the /var/www folder and try again.

If you are dropping a terminal command in order to achieve the compress task, make sure you use sudo before the command.

To pack (make a file):

sudo tar cvf filename.tar /var/www/*

To pack and compress:

tar czvf filename.tar.gz /var/www/*

These examples will pack (and compress) the /var/www folder contents in a file named "filename.tar" (or "filename.tar.gz"). You should read your compression program help in order to gather information about how to do this from the terminal.

Good luck!


How to install Intrusion Detection system in Ubuntu 12.04

Snort is Network Intrusion Detection System (NIDS). Snort can sniff
  your network and alert you based on his rule DB if there is an attack
  on your computers network. It is an opensource system that was build
  from tcpdump (linux sniffer tool).

This guide can be used for installing snort.

  psad: Intrusion Detection and Log Analysis with iptables psad is a
  collection of three lightweight system daemons (two main daemons and
  one helper daemon) that run on Linux machines and analyze iptables log
  messages to detect port scans and other suspicious traffic. A typical
  deployment is to run psad on the iptables firewall where it has the
  fastest access to log data.

If you using 12.04LTS Server, the see How to install PSAD Intrusion Detection on Ubuntu 12.04 LTS server.

Sources:
http://nachum234.no-ip.org/security/snort/1-snort-installation-on-ubuntu-11-10-i386/
http://www.cipherdyne.org/psad/index.html


What's the best Office Suite for 12.10, especially with respect to formatting and equation editing tools?

On my Ubuntu 12.10, I installed Microsoft Office 2007 normally through the latest version of wine.

Try installing it and then try installing Microsoft Office again.

In a terminal type: sudo add-apt-repository ppa:ubuntu-wine/ppa followed by sudo apt-get update and finally sudo apt-get install wine1.5

Try installing Office again.

If a normal install fails, try installing office through Winetricks.


Can I verbose output during a copy command processing?

This question seems to be old, but for the cp command you've got the --verbose option.

So the command works as follows:

cp --verbose -rf /src/ /dsc/


If an external hard drive worked on 10.04 and 10.10, will it work on 11.10?

Compatibility with an older version is never a guarantee, but I don't see why an external hard drive wouldn't work out of the box, especially if it works on an older version of Ubuntu.

Anyway, in the worst case you can always install the drivers included with Ubuntu 10.04 or 10.10.


How to assign the same static IP to a wired and wireless NIC?

The solution was to use networkd-dispatcher. It can be installed via apt install networkd-dispatcher but it was already installed on my system.
It creates /usr/lib/networkd-dispatcher and in there (among others)

no-carrier.d → this is where to put the script to turn wifi on
routable.d → this is where to put the script to turn wifi off

I made two scripts along the lines of
#!/bin/bash

# must be /bin/bash, for some reasons /bin/sh does not work
# br0 should be replaced by the interface that goes up and down when the cable is plugged in/out
# wlx1cbfce22a2cc to be replaced by the name of the wifi interface

if [ "$IFACE" == "br0" ]
then
    echo "disabling wifi because cable is in"
    /sbin/ifconfig wlx1cbfce22a2cc down
fi

I fixed the IP of the wireless card to the same one as the wired one - only one of them is live at a given time.


RabbitVCS is unrelated to Rabbit TV.

RabbitVCS is for version control: http://rabbitvcs.org

Rabbit TV, to which you refer, is for watching online content on your computer: https://www.rabbittv.com

It may be possible to get Rabbit TV working, but it will take a little WINE or such configuration.  If I get a hold of one and some time to play with it, I'll offer some instructions.


nvidia-driver-435.21 Lubuntu 19.10 black login screen but ssh works

I got a probably related problem with Ubuntu 19.10 on a new system with a Geforce RTX 2060, only that it was a login loop (I saw the graphical login but it will return to it when entering the password).

In the end what it made it work was uninstalling/reinstalling gdm3 from the root prompt.

I don't keep the link for the post that gave me the solution (never posted myself since somebody asked the same problem previously), but you may try also looking for 'login loop 19.10', maybe the solutions are similar.

Also typical solutions for avoiding graphical issues on startup include adding nomodeset between the quotes in line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" in file /etc/default/grub.

Hope it helps at least a bit but please confirm possible solutions with others before proceeding since I am not that expert!