All you need to do is use a data recovery software. You'll need to install a new copy of Windows to another hard drive (because you could overwrite your lost data). I recommend to buy a new internal hard drive. If you're on a laptop, buy a 2.5" HDD (of course, you can buy an SSD too, but make sure the capacity is more than 30GB). This will only help if your laptop has a SATA slot. Remove the back cover of your laptop and you should see it there. If you have an SSD, there's a chance you have M.2 slot without SATA slot, but I hope that's not your case.

So, buy a 2.5 inch HDD or SSD and replace your current drive with it. Then, buy a 2.5 inch hard drive enclosure with a USB cable. Install Windows on the new hard drive and then plug in the enclosure USB cable.

Install a data recovery software. Yeah, they are not free but you should pay for it if you want your data back. Also, tell me if you found a free data recovery software ;).
I recommend MiniTool data recovery.

After you've installed the data recovery software, go to computer management and format your external hard drive (MAKE SURE TO USE QUICK FORMAT). Then, create an NTFS partition inside the hard drive.

Select the NTFS partition in the data recovery software and wait until it recovers your data.


how do i access wd elements 2 tb external hard drive from my lenovo y50 running ubuntu 15.04 64 bit

If you mean that you can put media on the drive from windows then you have already formatted otherwise do that.

If you have formatted already then check /media for your hard drive.

if this doesn't work go to terminal after plugging in the drive and type lsusb or fdisk -l and you should see your drive here with the name Western Digital or something of the like.

After this you can take 2 approaches, first is to just type mount -a and it should be mounted in /media/your-hard-disk and you should be able to access it.

second is to create a directory at /media with mkdir /media/name and use your result from the fdisk -l command here by typing mount -t /dev/sdb1 /mount/name -o uid=1000,gid=1000,utf8,dmask=027,fmask=137 where sdb1 can be what you see in fdisk -l results.

if you have an error pop up with mount -a then edit it into your answer so i can help but do a simple search for the error because most likely there is a problem with your ubuntu which has already been discussed elsewhere.

Check here for more info: https://help.ubuntu.com/community/Mount/USB

BTW: make sure that your drive is getting enough power if your ubuntu is installed on a different machine for windows. Hard drives are power hungry and do not start if they do not get ample power. After rereading your device i see that it is a laptop so this is possible, google for power issues with hard drives for more info about this issue


Raid 5 array built with incorrect partition size (Ubuntu Server 14.04)

Ok, looks like I just didn't understand how a RAID 5 works.

I had always selected 3+1 without really knowing about the Hot Spare mechanism in RAID 5, which then always resulted in 3 TB x ((3 - 1) - 1) = 6 TB total space

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

The missing dev/md0 was due to a falsely generated mdadm.conf

Cheers


You need to add two ppa's to install Zeal:

sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo add-apt-repository ppa:jerzy-kozera/zeal-ppa
sudo apt-get update
sudo apt-get install zeal

This is since zeal depends of Qt5, which is not available in repositories.


Fix broken display settings - persistent LiveUSB

Maybe the action to shutdown/reboot, when the screen was black, caused a damage of some file or of the file system where the persistence is stored.

If that happened, it is probably best to create a new persistent live system. You may be able to reuse (keep) the home directory (via a backup)

Please be aware, that a persistent live system is rather sensitive to corruption, so it is a good idea to take frequent backups.

The following link describes how mkusb creates a persistent live drive. Near the end [of the linked web page] backup of the whole casper-rw partition and of the /home directory is described.

Note:
Mac users tend to use Mac Linux Usb Loader to create Live USBs, but that program only has options to create persistence, not to repair it.

help.ubuntu.com/community/mkusb/persistent

If you use a different method or tool the create your persistent live drive, you can do something similar to backup your system.


You missed something. The description on the cited site requires Ubuntu 12.10. Please upgrade your system first, then you will have no trouble installing the packages. The problem is caused by the Qt4, which is used by Ubuntu 12.04. What you can try to remove every package related to Qt4, and see if it will work like that.

(There are also some  conflicting packages like qdbus, qt4-dev-tools, libqt4-dev, etc., in my case, so I've gived it up removing them...)


You can try detecting your USB devices by opening up a Terminal, and entering the following commands: lsusb or usb-devices


How to assign middle mouse click to two finger tap?

You can create a script and add it to your startup applications

Create a new document (say mouseMod) somewhere (say in your Documents folder)
Add the following lines to it:

  #!/bin/bash
     xinput set-int-prop 13 291 8 2 3 0 0 1 2 3

Make it executable by opening a terminal and typing/running the following     command:

  chmod +x ~/Documents/mouseMod

Finally, add the file to your startup applications (I'm not sure where it is in 12.04, but in 11.10 I found it by searching for startup in the dash) by clicking add and browsing to/selecting the script (i.e. mouseMod).


I noticed something that works, for me at least. This is to restart again, when I reach the login screen. When I do so, this action appears the GRUB loader options, after the restart.

Not every time I restart I get the GRUB loader appearing, I am not aware of how this works. I use Lubuntu 14.04, a version of Ubuntu.


Is there a way to link a VPN (tun0) adapter to a fake physical (ethX) adapter?

Create a bridge interface.  Lots of howto's for that exist (depending on if you want to do it with OpenVPN, /etc/network/interfaces, etc)


Does chaning the owner of /var folder and subfolder make problem?

Fastest way is copying all your data and reinstall
If you have a /home partition this will be very simple, at the partitioning section of the installation select "Manual" mode and tell the partitioner not to format /home and mount it at the same location


Crawling desktop on Ubuntu 14.04.2 server on an Intel S1200v3RPS server board

Try this:

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

it will remove the xserver-xorg-video-mga and xserver-xorg-video-all
then reboot
now the window not slowly, and screen only has a 800x600 @75hz , but it work fine


How can I fix PPA Failed to fetch errors while running apt-get update on Ubuntu 14.04?

Try launch "Software & update" utility, and disable these PPA`s on tab "Other"


"E: The method driver /usr/lib/apt/methods/htp could not be found." after removing the LAMP task

You have a corrupted line in /etc/apt/sources.list or one of the *.list files under /etc/apt/sources.list.d/.

For example:

$ echo "deb oops://ubuntu.com/ foo bar" > /etc/apt/sources.list.d/something.list
$ apt-get update
E: The method driver /usr/lib/apt/methods/oops could not be found.

Try this command to spot it:

$ grep htp: /etc/apt/*.list /etc/apt/sources.list.d/*.list


Compiz compositing capability will be replaced by Clutter, which will be integrated into the next generation of Metacity window manager, called Mutter. This means you won't need Compiz.  Since Mutter is closely integrated, you cannot replace Mutter with Compiz.

  GNOME shell uses compositing and is
  integrated with Mutter, a compositing
  window manager for X11. Mutter is the
  next generation of the Metacity window
  manager which uses the Clutter toolkit
  for compositing.

  GNOME Shell has received some
  controversy in the free software
  community because the planned tight
  integration with Mutter will mean that
  users of GNOME Shell will not be able
  to switch to an alternative window
  manager without breaking their
  desktop. In particular, users will no
  longer be able to use Compiz while
  GNOME Shell is running.[2]. Discussion
  between the developers of Compiz and
  GNOME has failed to resolve the issue.
  However, it will still be possible for
  users to run the GNOME desktop
  environment without GNOME Shell and
  still use whatever window manager they
  choose.

http://en.wikipedia.org/wiki/GNOME_Shell


The meaning of the $1 ambiguous redirect error is that you are trying to redirect from $1 which seems to be empty

$1 is the first argument to the script you are running.
When you execute the script, you should provide the filename as a parameter to the script.

Note: It isn't clear from your question how the script will actually add the users.


Changes to user's home directory not updating

Ok got it sorted.

Short answer is no - you there is no user service to restart.

The issue was that the system wasn't configured correctly.

I've details the steps here: https://askubuntu.com/a/144093/2744


Basic analogue clock for the GNOME panel?

The default clock does not support an analogue mode. However, I did find this email. It suggests an application called gpe-clock. The application is not the most visually appealing with a dark panel theme, but it does support adding a basic analogue clock to the panel. This is what it looks like:

So as you can see, the clock is very basic, but it is analogue. The email says:

  To put the newly installed applet on your panel, you need to right-click
  on an empty space on the panel bar and click on "Add to panel...".
  For the rest, you should have no problems.

However, gpe-clock did not show up in the list of applets for me. I had to go to Applications->Accessories->Alarm clock to add it.

You can set it to analogue mode by clicking on the applet and selecting 'Preferences'. From there, simply select 'Analogue format' and hit 'OK'.


Postfix+Dovecot Unix user authentication

You're looking for PAM authentication. As far as I know (i.e. after a quick internet search), there's no built-in PAM module for postfix. However, it is available through SASL.

I've never tried this (as I use LDAP), but you might find these useful resources. After skimming them, they look like it's what you want.

https://wiki.debian.org/PostfixAndSASL
http://www.postfix.org/SASL_README.html

specifically, http://www.postfix.org/SASL_README.html#saslauthd_pam


Error occurred when loading this archive means your archive file(tar.gz or tar.xz,etc) may be corrupted or partially downloaded.

Please try to redownload that archive file before decompressing it with archive manager.


I guess you are trying the version 16.04.3 LTS.

Downgrading back to 14.04.1 LTS and 14.04.5 LTS is a working alternative. There is support until April 2019.
An alternative is to try 16.04.1 LTS, the first point release, which I use. There is support until April 2021. This version works well with various old hardware. See this link (and links from it) to find the relevant iso files,

How to select the version and flavour of Ubuntu


Do symlinks from HDD to SSD give a performance hit?

No, it does not lead to a performance hit.  The link has to be read, but only once.  After that it will be kept in the cache.


If you work at night you can try using redshift. This adjusts the color temperature of your screen so that it get's more redish the later it is. Of course this doesn't really help explain the difference between Windows and Ubuntu but it does reduce stain.
Do

sudo add-apt-repository ppa:jonls/redshift-ppa

sudo apt-get update && sudo apt-get install redshift

to install it. There are other programs that do just the same thing as well.

There's also an older version in the repos so sudo apt-get install redshift will suffice.


How do I get the latest version of winetricks on Ubuntu?

The version of winetricks that comes with the stock Ubuntu installation is often quite old, even the version available from a more modern PPA can lag a bit. It is a great idea and a very safe one to update winetricks manually, independent of your main Wine installation, this can be done in a few simple steps:
1. Check for the latest version, remove the old version:
First check to see what is the latest version available from upstream with this handy one-liner:
curl --silent --show-error \
https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks --stderr - \
| grep ^WINETRICKS_VERSION | cut -d '=' -f 2

Then if this trumps your own installed version (to see your version run winetricks --version from a command line) remove your currently installed version:
sudo apt-get remove winetricks

2. Install the latest version:
Then download and install the very latest version:
wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
sudo mv -v winetricks /usr/local/bin

As demonstrated on my own system the latest version can then be tested:
andrew@ilium~$ winetricks --version
20210206-next - sha256sum: e5457a7a984969443119a4c0c1a01607fc8bf8adca114f265669402b24b960b8
andrew@ilium~$

3. Add some extras & check for newer syntax:
It may also be a good idea to ensure that you have a few required 'helper' applications for winetricks to run, although most of these should have already been installed with your copy of Wine:
sudo apt-get install cabextract p7zip unrar unzip wget zenity

Then check the correct usage, which could have changed from your older version:
andrew@ilium~$ winetricks -h
Usage: /usr/local/bin/winetricks [options] [command|verb|path-to-verb] ...
Executes given verbs.  Each verb installs an application or changes a setting.

Options:
    --country=CC      Set country code to CC and don't detect your IP address
-f,  --force           Don't check whether packages were already installed
    --gui             Show gui diagnostics even when driven by commandline
    --isolate         Install each app or game in its own bottle (WINEPREFIX)
    --self-update     Update this application to the last version
    --update-rollback Rollback the last self update
-k, --keep_isos       Cache isos (allows later installation without disc)
    --no-clean        Don't delete temp directories (useful during debugging)
-q, --unattended      Don't ask any questions, just install automatically
-r, --ddrescue        Retry hard when caching scratched discs
-t  --torify          Run downloads under torify, if available
    --verify          Run (automated) GUI tests for verbs, if available
-v, --verbose         Echo all commands as they are executed
-h, --help            Display this message and exit
-V, --version         Display version and exit

Commands:
list                  list categories
list-all              list all categories and their verbs
apps list             list verbs in category 'applications'
benchmarks list       list verbs in category 'benchmarks'
dlls list             list verbs in category 'dlls'
games list            list verbs in category 'games'
settings list         list verbs in category 'settings'
list-cached           list cached-and-ready-to-install verbs
list-download         list verbs which download automatically
list-manual-download  list verbs which download with some help from the user
list-installed        list already-installed verbs
arch=32|64            create wineprefix with 32 or 64 bit, this option must be
                      given before prefix=foobar and will not work in case of
                      the default wineprefix.
prefix=foobar         select WINEPREFIX=/home/andrew/.local/share/wineprefixes/foobar
annihilate            Delete ALL DATA AND APPLICATIONS INSIDE THIS WINEPREFIX
andrew@ilium~$

4. Safely reverse these steps:
If for some reason you wish to return to your older repository version you can simply run the following:
sudo rm /usr/local/bin/winetricks
sudo apt-get install winetricks

And all will be as it was.
Notes:

WineHQ Wiki: winetricks All the best winetricks info from the WineHQ Wiki.
Semi-Automation: It is now possible to partially automate the update process by running sudo winetricks --self-update and if not happy with the results roll this back with: sudo winetricks --update-rollback.


How to Execute a program from anywhere in terminal

If you currently have to run your program by giving the full path (say, /home/john/someprogram-1.0/someprogram), you can make it so the program runs by just typing someprogram. For this, you need the program to be somewhere in your PATH, which is a list of directories the shell searches for executables that aren't given as full paths.

There are three ways of accomplishing this:

Install the program. Depending on where it came from, it probably has installation instructions which will place it in a directory already in the path, like /usr/bin. Be aware that installing it this way needs using sudo, or having root privileges.
Add the directory where the program is right now to your path. You can try this manually by first doing export PATH=$PATH:/home/john/someprogram-1.0, then trying to run someprogram only, it should work. TO make this change permanent, add the export command as shown above to your .profile file (this file already exists in your home directory).
Put the program in your private bin directory. Create bin in your home diretory, then copy the someprogram file into this directory. This may not work if the program needs access to other data files.


No sound, only 'HDMI Output' shown in Volume Control, no way to load the onboard sound device ('Intel Cannon Lake PCH cAVS')

This post on Ubuntu Forums fixed it for me:

First of all, by looking at the output of cat /proc/asound/card0/codec* it was obvious something was wrong... So first to fix that I had to edit the file /etc/modprobe.d/alsa-base.conf to add the line: options snd-hda-intel probe_mask=0x1 . After reboot, then I could see everything the output of cat /proc/asound/card0/codec* that was looking perfect but still no sound. At least, things had improved a little bit now;

As shown by the output of cat /proc/asound/card0/codec* | grep Codec, my HD Audio Codec is ALC1220 so I went here to look at what specific model that corresponded. My laptop is a clevo laptop ("clevo-p950", in the list), so I added the line options snd-hda-intel model=clevo-p950 to the the /etc/modprobe.d/alsa-base.conf file and rebooted. I thought I had solved it at this point but... nope, still no sound from the speakers or the headphones... but then;

After I posted a bug report, someone suggested that I upgrade my kernel version to at least 5.0. So if you are in this situation where you think you should proceed with a kernel upgrade and it's your first time, don't worry, it's not hard to do at all. I used to build my kernel from source (which can be a long process depending on your machine) but now there's a nice GUI and debian packages to help you out, this tool is Ukuu, see this article for example... In my case and at this moment of writing, after a fresh Ubuntu 18.04 install and update, the kernel version was 4.18.0-22 which was not able to make the "clevo-p950" option work. So I upgraded my kernel to 5.0.2, rebooted and everything started to work! Now my microphone, my headphone and my speakers are all working. This is nice! I hope this can help somebody! Good luck!


You may not pcspkr module is not loaded into the kernel.
Try

sudo modprobe pcspkr

I think Ubuntu default does not load this module.


Upgrade from Server 16 to 18.04 LTS breaks Samba shares from XP machines

Samba is doing its best to keep up with the Win10s and macOSs of the world so it has moved on.

Add these lines in the [global] section of smb.conf:

lanman auth = yes
ntlm auth = yes

Then restart smbd:

sudo service smbd restart

Note: I remember coming across a situation where you actually had to degrade the max server smb dialect used in addition to the lines above:

server max protocol = NT1

That would be a travesty. I don't know how a Win10 machine would ever be able to connect to it.


Why is my partition claiming to be out of space?

/media/OS is a separate partition /dev/sda2 and does indeed have 73.5 GiB left as free space.

/ (root) is on /dev/sda5 and is 97% full - 4.25 Gib available.  It looks like your /home is part of the filesystem on /, so data files that you place in there will take up space on /

This is why I usually have a small but sufficient paritition for / of say about 25 GiB, and make the rest of the drive available an mounted as /home.  I can fill home up as much as I like, and it won't affect the operating system on the root file system.

You will be able to free up some space on / by moving some of the data files you have in /home onto the partition you have mounted as /media/OS.  I've never been a fan of multiple data partitions for no clear reason since unexpected low usage in one and unexpected high usage in another leaves you in a rather silly situation.

In short, it's working this way because that's the way it has been set up.  Another solution might be to resize and move some partitions around to better fit in with the way you are trying to use them.


I would give a try booting from USB, the advantage is that you can check the iso-image afterwards with md5sum. Sometimes simple read/write errors can cause unusual beheaviour of a self-burned image-cd.


Cannot access Windows 7 after installing Ubuntu

I think you format all drive.
check partition first.

sudo fdisk -l

share the output


How to install Matlab on linux server without admin rights

Try

./install

And follow the installation wizard to complete the installation.
You have to select the destination folder, which you can select or create in your home directory. e.g.

/home/ur_user/MATLAB

After the installation process completed, you might need to activate it. Your activation file will be in the bin folder; use the terminal to open the folder and run the following code:

./activate_matlab.sh .

To launch Matlab use:

./matlab (while being in the bin folder)

I hope it will work.


ifconfig missing after Ubuntu 18.04 install

ifconfig is deprecated, and has been so for quite a number of years. The new kid in town is the ip command, which can configure IP's, routes, and everything associated with networks.

You can install ifconfig with sudo apt install net-tools, if you absolutely need to have it. If not, start learning ip.

In short, it is removed because you should not use it. It has mediocre IPv6 support, the ip command is a better replacement. I find sources saying ifconfig was deprecated back in 2012, so I'm not surprised it's finally removed.

You may be able to install it on 18.04, but on future releases it may disappear entirely. I would consider it not being installed by default as a warning shot: learn ip.

Thus ifconfig is probably in a special class. In previous versions of Ubuntu it was included in minimal installs. It is now being phased out, and you explicitly have to install it. This can not be taken to indicate that any other packages are missing.


The message "Software Index is Broken" appears when I install the flash plugin. What does this mean?

My understanding is that you are not (yet) supposed to be able to upgrade from 10.04 to 12.04. See this answer to "Why is “No new release found” when upgrading 10.04 to 12.04 LTS?"

I don't know about 10.10. A question/answer which may help you with this is How do I upgrade from 10.04 or 11.10 to 12.04?

Finally, I do not know what Software Index is Broken might mean. It sounds like your software package management records may be corrupt. What has worked for me in the past was to boot my system in recovery mode and then use the commands provided in the RecoveryMode menu to try to repair any broken packages.

If you want to give it a shot I sketched out how I did this in 12.04 in this answer. But I can't promise the recovery menu will look the same in 10.10 or that this will actually fix anything.


I am getting an error while writing my first app as shown in developer get-started tutorial

Remember about indent:

self.refreshbutton = self.builder.get_object("refreshbutton")
def on_refreshbutton_clicked(self, widget):
    print "Refresh"


mptfs disconnects after a while - using alcatel onetouch idol 3 and ubuntu 17.04

TL;DR: the problem is inherent to MTP, it persist on all OSes, be it GNU/Linux, Mac, or Windows, and there is nothing you can do about it as far as I know. But there are better ways to access your phone — e.g. to setup a FTP server on the phone and use it through WiFi, or to mount the phone through adbfs.

I do have Alcatel Onetouch idol2. Earlier I've had some Samsung, and now I've also got as a gift Galaxy J1 mini.

With disregard to a phone, MTP have always been very bad. Long loading and sudden disconnections are something in common. It got me curious, what's the deal.

I am still yet to find the technical reasons behind it being so bad. As I understood, MTP is very crippled protocol, e.g. it only supports read or write whole file, no partial reads/writes. But the upside of the approach is being very simple — and I have no idea how it could've been screwed up so bad.

Out of reading different threads (see e.g. this one, it's huge) I've got a few things:

MTP problems are irrelevant to the host OS. GNU/Linux, Mac OS X, Windows — everyone is susceptible.
If you really want to work in some way with your phone, you'd have to either setup a FTP server (and I bet you can browse files in file manager through sftp protocol), or to enable adb filesystem.

I went the adb filesystem way. You'd have to:

Enable "usb debugging" on your phone (the how-to depends on the phone, it's either straight in settings, or hidden behind a fighting-game-like super combo, like click n times a label to activate).
sudo apt-get install libfuse-dev android-tools-adb
Build and install adbfs-rootless.
Now you can browse the phone. Connect it, and type in the computer terminal mkdir mnt, adbfs mnt.
It's not yet mounted — look up the phone screen, it should ask if you "allow connection from the device <some_id>". Click "always allow from <this_id>".

Now the phone is mounted under ./mnt, so you can browse it. To unmount execute fusermount -u mnt (it's FUSE, you don't need elevated privileges).

It's not really ideal, e.g. for moving a file using Dolphin, I got once "disk is full". Ultimately it's a problem with Dolphin, though it had a reason — when I used instead mv command, there were warnings about impossibility to set permissions. They're harmless though (unless perhaps you do care of permissions on the phone). But I bet sftp would be more seamless.

I think you could also write a udev rule to auto-mount (a?) phone on connection, but I didn't have enough motivation to explore that.


The kernel does not take into account the nice value for virtual memory consumption.  However, if a process has a low nice value and has not been active for a while then the kernel may take a preference in swapping out the unused pages of this process compared to a busy process that may be consuming more memory.


Cannot install Google Chrome on Ubuntu 16.04 - authentication issue?

There are many post with issues of the new Ubuntu Software app.  I have problems with it on many of my installations... somewhere around two out of five.

The workaround is to install deb packages from the Terminal.

The Command Line option to install a downloaded deb package

Go to the directory where you Downloaded the package (~/Downloads) and install using the dpkg -i command.  Run these steps.  The '$' is the cli prompt.

$ cd ~/Downloads
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
$ sudo apt install -f

You can type ls *deb to see the list of the files to ensure you are spelling it correctly.

The provided step will resolve the issue you are having with the Chrome deb install, plus other issues with the new Ubuntu Software application.

In the case of the downloaded Google Chrome dep package, once installed using dpkg -i the google-chrome.list is automatically added to the /dev/apt/souces.list.d which will provide automatic checks and updates for newer versions.

The cli steps above will work as an alternative of other downloaded deb packages when having issues with the Ubuntu Software application.

The Ubuntu Software issue

The GUI resolution can be resolved with:
gnome-software on Ubuntu 16.04 doesn't work


How get ubuntu to boot after reducing size of encrypted logical volume?

The problem was that I had used vgrename to change the name of the volume group.

This had seemed sensible because (notwithstanding cut-and-paste) the default ubuntu-studio-vg is a pain to type. So I changed it to sys-vg.

But the rename did not cascade throughout my system settings. The lv documentation gave no warning. Nor did it report the necessity of the change being cascaded. Nor where else it might need to made.

There are two places at least: /etc/fstab and /boot/grub/grub.cfg


apt-get install <pkg> first downloads the binary debian package to /var/cache/apt/archives/ and then installs it. So you could theoretically copy binary debian pkgs from there and install them manually elsewhere. However, if the package depends on other packages, then you would also need to take steps to install them.

You may not want to do this because you will always be able to install the latest debian binary pkgs from the usual online archives (like for example archive.ubuntu.com), and they will always be more up to date regarding security fixes, feature enhancements, and etc.

Ubuntu archives are here: http://archive.ubuntu.com/

There are other online archives that host installable debian packages.


Synaptics Clickpad double-clicking on hard click

You can install the new user space touchpad driver that is called libinput.

It depends on which release did you initially installed, not what you see now. It looks like you installed 16.04, or 16.04.1.

In this case you can install libinput by

sudo apt install xserver-xorg-input-libinput

If you initially installed 16.04.2, or installed the HWE stack, then the command will be

sudo apt install xserver-xorg-input-libinput-hwe-16.04

Tapping may be disabled in libinput. You can enable it by adding

Option "Tapping" "true"

to the touchpad section of the /usr/share/X11/xorg.conf.d/90-libinput.conf file.


I just realized it's a typo. I should run 'man atol' instead of 'man aton', this works actually. But for the 'man argp_parse', it's still not found.


fwupd won't update Unifying receiver firmware

Here is an official workaround https://github.com/fwupd/fwupd/wiki/LVFS-Triaged-Issue:-Logitech-Restart-Failure

so I updated it using following script (cannot do that manually because after the first fail mouse and keyboard disconnects)

#!/bin/bash

fwupdmgr update
sleep 5
fwupdmgr update


This is not the way. Instead, just have the user launch your script in the terminal by typing a command. Alternatively, for easy and visible user access, have your script launched through a .desktop file. This will appear as an item in the application menu, or may be put on the desktop. If you include the line "Terminal=true", the executable (your script) will automatically be executed in a terminal emulator.


Connect simultaneously to mobile internet connection and wireless

usually one physical wifi-adapter can only connect to one network at the same time... USUALLY, maybe you've a special one?!
if not you'll need a second (physical) wifi-adapter (connected by usb or whatever)... then you can connect to a second one.


Where can I find the default printing test page?

For Ubuntu 12.04 the testpage is in the following location:

/usr/share/cups/data/default-testpage.pdf


Copy the message (first line "-----BEGIN PGP SIGNED MESSAGE-----" and last "-----END PGP MESSAGE-----") in a text editor, save it as a file (i.e. mymessage.txt in your home folder).

You can decrypt that file using the command:

gpg --decrypt mymessage.txt

More info: https://help.ubuntu.com/community/GnuPrivacyGuardHowto#Validation_on_Launchpad


Things I'd like to take from OSX:

Spotlight (I don't like the Unity dashboard-esque thingy)
unity's dash home does have a search feature. it will automatically focus (put the cursor in the search field) when you click the dashboard button or press the super key (windows key on most keyboards)
the next verison of ubuntu (12.04) due to be released this month will have a feature called HUD that should also meet this need and seems a lot better at doing so

Expose
hold super (windows key) and press w
this should be customizable in some way in compiz (see below) but im not sure where

Spaces
this is referred to as workspaces in linux
unity has an icon in the dock (last of the dock icons before trash) that shows you 4 workspaces and allows you to switch between them
this can be customized for more or less workspaces using compizconfig settings manager (ccsm)
if you open the ubuntu software center and search ccsm or compizconfig it should come right up
you could also install an indicator to manage the workspaces
indicators are the icons in the top right of the dash, ex indicator-sound, indicator-datetime, indicator-network
here are some cool indicators (including workspace indicator)
http://www.techdrivein.com/2011/05/10-useful-application-indicators-for.html
if you decide to switch to gnome3 (also referred to as gnome-shell) the workspaces will behave a bit differently but accomplish the same thing
in your dash you will have an area on the right that will show your workspaces
if you only currently have windows active on one workspace you will see two workspaces (your active one and an empty), if you move a window to the empty one you will then see 3, and the pattern continues, always providing you with your current + an empty

Dock (at the bottom)
there are quite a few options here, there's docky, awn, cairo
on older versions of ubuntu i preferred awn, but with unity and the dock on the side i ended up sticking with the built in dock
gnome-shell's dock is also on the left like unity but it's only shown when you open the dash, all of the above mentioned docks should also work with gnome-shell, and you will also have a few other gnome-shell extensions available as alternatives to the docks listed above

Icons (apart from the apple one)
i believe the most popular icon set is called faenza (which im using) it's quite elegant by comparison to the default icons - there are TONS of icons out there, most are quite easy to find via google if you prefer more osx like icons, but i'd strongly recommend checking out faenza

Look of file manager - its more pleasant to navigate around the file system.
this is a tough one, the only thing i could recommend would be to switch between "places" or "tree" in the sidebar, or try a different file manager like marlin - i'm honestly not too sure about this one. marlin hasnt been a great experience for me, but you might like it

Closing an application window doesn't actually quit the program, so when you next launch it - it is instantaneous.
this one is definitely over my head, so i'm not even going to try, sorry

Global menu (at the top)
global menu is a part of ubuntu 11.10 at least in unity, im not positive about gnome-shell

that's about as much as i have, if anyone wants to add to this or if you need more specific answers let me know (just trying to swing at everything at once as best as i could)


Help me find a tutorial to dual boot windows 7 and ubuntu 13.04

Here's a How to  from Ubuntu --> Ubuntu Installation

Helpful links:

How to burn a DVD

How to create a bootable USB-Stick

Install Ubuntu with with the Windows installer


How to use Konqueror in Ubuntu 18.04 LTS?

You can split the panels in Konqueror like here:

And drag files between the panels

Some help from Konqueror's web site


Linux script to extract usernames from text file

#!/bin/bash
LANG=C
myuser="/home/george/text.dat"

# create logs directory
mkdir -p ~/logs

# create log file
touch ~/logs/useraccounts.log

# make sure admin is running the script
[ "$(whoami)" != "root" ] && exec sudo -- "$0" "$@"

# check if log file is empty, if not don't add a new header
file="~/logs/useraccounts.log"

# Add header in logs file if one isn't already there.
if [[ -s $file ]]
then
    # log file header

    printf "%s %12s %s %18s %s %32s %s\n" "|" "Added" "|" "User Account Name" "|" "Day and Time of Creation" "|" >> ~/logs/useraccounts.log

    printf "%50s\n" "========================================================================" >> ~/logs/useraccounts.log

fi

# remove any whitespaces and blank lines from file input
# before passing it to 'while command'
sed '/^[ \t]*$/d' $myuser | while read -r line
do
        name="$line"

        adduser --disabled-login --gecos "" $name

        # check if user was successfully added
        isthere=$(cut -d: -f1 /etc/passwd | grep "$name")

        # if user was added then make insert record into log file
        if [[ "$isthere" == "$name" ]]
        then

                 printf "%s %10s   %s %17s  %s %33s %s\n"  "|" "Yes" "|" "$name"  "|" "$(date)" "|"  >> ~/logs/useraccounts.log

        else

                 printf "%s %10s   %s %17s  %s %33s %s\n"  "|" "No" "|" "$name"  "|" "$(date)" "|"  >> ~/logs/useraccounts.log

        fi

done

Several things to note here:

Created users can't log in until a password has been set for each of them.
The printf will have to be altered to suit your own style.


I had this problem as well when using 7.1 and after upgrading pecl through apt-get. I solved this by installing the php7.1-xml package using apt-get.

If you're running 7.0, then you need to do the following:

sudo apt-get install php7.0-xml

If you're running 7.1, then run this:

sudo apt-get install php7.1-xml

That should solve your issue. It seems that PEAR parses help text and config info at startup and (I'm assuming) it's stored as XML somewhere


Syncronizing to NAS fails but works with USB disk

Since you're syncing from Linux to DSM, I'd suggest using rsync directly, without first mounting the NAS destination on your desktop. There's no point letting SMB/samba sit in the middle - it will introduce extra potential problems, particularly with file naming and features not supported by SMB (such as symbolic links).

There are a lot of different ways to set this up, depending on what you want to achieve (one-off sync, regular backups etc.), and I'm not sitting in front of my NAS right now, so probably the best advice I can give is "look up rsync in the DSM help", and "tell us a bit more about what you're trying to achieve."


What volume should i delete if i want to uninstall Ubuntu?

First, don't delete Ubuntu's partition without first adjusting the boot order! Many people make this mistake, and it results in the computer booting to a grub> prompt, which is confusing and unhelpful.

The easiest way to adjust the boot order on an EFI-based computer (which yours seems to be) is to use the third-party Windows EasyUEFI program. Click the entry for the Windows boot manager in the list and move it to the top of the list using the up-arrow button. If you don't do this, many computers provide a built-in boot manager you can use, but details vary from one machine to another. Typically, you access the boot manager by hitting Esc, Enter, or a function key (usually F8 or above). You'll then see a list of boot entries, one of which should take you to Windows, where you can use EasyUEFI to adjust the boot order.

With that done, you can identify and delete your Ubuntu partition. Unfortunately, the Windows partitioning tools don't know a thing about Linux filesystems, so they don't show sufficient detail to be 100% positive. It looks like the partition you've identified as #4 is your Linux swap space and #5 is your root (/) partition, but I can't be certain of that. It's best to boot into Ubuntu and check this detail before you begin. You can use GParted to identify your partitions or examine the /etc/fstab file to see what's mounted where. (Note that /etc/fstab will likely have an entry for your EFI System Partition (ESP), but you must not delete that partition. Likewise, there might be entries for Windows partitions.)


No. Quick means it will remove the file allocation table but not actually remove the data from disk. But this will still show you an empty disk. You need a partiton recovery tool to fix this. And that is not possible with the normal Ubuntu DVD.

I would also suggest to use Windows tools to fix Windows problems. Using Ubuntu for this can have mixed results.
I would also suggest to stop what you are doing and use a tool to restoring your disk. "testdisk" is such a tool but this will only work if you do NOTHING to the disk after you messed it up. Any write to the disk after that is going to kill your data and make it unfixable.

See How to resolve " The harddisk seems too small" with Testdisk deeper search option for a good starting point.


Have I been hacked by the NSA or something?

No, based on what you're saying, I can tell you that this is certainly not because you've been hacked by NSA. :)

You seem concerned about finding Windows-files and that PlayOnLinux might be some kind of trojan horse used to access a Linux computer from Windows? That's not the case. PlayOnLinux is a tool that is used to simplify the use of Wine, which in turn is way to run Windows applications on Ubuntu, or GNU+Linux in general.

The most likely explanation is that you've downloaded the Windows version. In that case, it makes perfect sense that its files will be stored in the location you specified. Afterwards, you've probably installed the Ubuntu version, which would store its data in /tmp. Then you've simply run the "wrong" version of Skype and the files will have ended up in a place you didn't expect. If you search for Skype in Dash, I would expect that you get two icons for it, but since I haven't tested, I can't say that for sure. If you do have both the Windows and Ubuntu versions of Skype, then I recommend that you remove the Windows version.

Please do install updates. Ubuntu is safe and secure, but only as long as you install updates. It is quite important. In this case, however, nothing in your answer seems suspicious in any way.


Append current timestamp on files name from background running command

Whether the command is backgrounded or not is irrelevant, all you need to do is add the output of a date call to the file names you are creating. Using the exact same syntax as in your question, you could do:

sshpass -p prakash12 ssh -t -p $1 prakash@localhost \
    './test_new_update_script.sh > /home/log/unit_update_output.$(date '+%F-%T').log \
     2> /home/log/unit_update_error.$(date '+%F-%T').log < /dev/null |
     echo $! > /home/log/unit_update_pids$(date '+%F-%T') &'

The trick is adding $(date '+%F-%T')., this will return (for example):

$ date '+%F-%T'
2014-04-08-18:54:52

So, the command above will create:

/home/log/unit_update_output.2014-04-08-18:57:02.log
/home/log/unit_update_error.2014-04-08-18:57:02.log
/home/log/unit_update_pids2014-04-08-18:57:02

See man date for the different formats you can have.


Remove/Close sidebar when using Cairo-Dock

sudo apt-get autoremove appmenu-gtk appmenu-gtk3 appmenu-qt should remove the status bar.
(Reference)

Go to system settings, Appearance, Click on the Behaviour tab, then Auto hide the launcher should be on.
You probably want Top left corner, and the slider down as low as possible.


open systemsettings

click on the removable media icon

uncheck never prompt button

and chose shotwell in the image tab


manage a system of Ubuntu computers from a single computer

You might want to consider trialling Landscape which has a systems management interface to manage multiple desktop Ubuntu installations. It's a pay-for service, but you can register for a free trial to see if it fits your requirements.


System resets to login screen spontaneously

Are you using Nvidia graphics card? If so, try Unity-2D (in login screen). This might be this problem: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/973096 .


Shortcut to cd into the only folder in the current directory

Assuming you have bash completion set up (the default), this will work:

cd <Tab><Enter>


I was having same issue. The only workaround I found was to pass the driver file location to the connection request. But the connection/bandwidth is extremely slow when trying to query using pyodbc (compared with using SQL Ops Studio).

import pyodbc
import pandas as pd

driver = '/usr/local/lib/libtdsodbc.so' # Change this to where FreeTDS installed the driver library!

conn = pyodbc.connect(
    driver = driver,
    TDS_Version = '7.3',
    server = <tunneled server>,
    port = 1433,
    uid = <sql_user_id>,
    pwd = <sql_password>)

crsr = conn.cursor()
table = pd.read_sql(<sql statement>, conn)
crsr.close()
conn.close()


As I had the exact same problem, I followed the link shown by DavidKunz. I noticed they suggest using a stpf connection since passwords are send unencrypted when using ftp. So I changed to sftp and am now able to copy and paste files on the ftp server using nautilus.


15.10 displays black screen on boot. Is it an Nvidia driver issue?

Probably nvidia-340 is not compatible with the new kernel.

Your card is supported by nvidia-352 driver. Install it by:

sudo apt-get install nvidia-352


CodeLite for C++ with OpenCV in Ubuntu 16.04 LTS

just need to add

  pkg-config --cflags --libs opencv

in Linker Options under linker tab in project settings.


18.04 - after supspend the internal screen shows Dell logo, external screen works (Dell 7285)

In the end I installed Ubuntu 18.10 and it now works.


you unchecked the option when you installed ubuntu . there was option Ask  password for login  or some thing other when you create user .
now you have to run command

sudo gpasswd -d username nopasswdlogin

or do

Settings->User Accounts->Unlock->Automatic Login-> Off


How to move and resize partitions Ubuntu+windows dual boot

Here's what I would do:

Backup your important data! Messing with partitions is dangerous!
Delete the sda7 swap partition and sda5 data partition, and extend your main sda6 to fill all the unallocated space except 8GB at the end (which you will use for your new swap partition)
Create a new swap partition in the remaining 8GB of unallocated space
Follow this Q&A on Superuser to change your installation to use your new swap partition


Why do you have to pay to get the Ubuntu One for windows?

The Windows client referred to on the plans page is for syncing contacts. We charge for this because the client is part of mobile sync and mobile sync costs some money to provide due to licensing fees Canonical pays for some of the server technology.

We are currently working on a Windows client for Ubuntu One that will allow you to sync files. It's not quite ready for public testing, but once it is, we'll announce it on our blog: http://voices.canonical.com/ubuntuone


How can I resize the resolution so the display isn't clipped?

I found a solution, I'm using Underscan in Nvidia Xserver settings, while not perfect, at least it minimizes the stuff cut from the display to an acceptable minimum.


How do I uninstall Extreme Download Manager?

Java is not dangerous. It can be if the application using it was not using it properly thus creating holes and such. That doesn't mean that using Java automatically makes you vulnerable...because it doesn't.

I wouldn't use Java unless I absolutely have to because Java uses a lot of resources to do simple things so I much prefer native applications instead.

With that said, what Olupot Douglas said regarding the removal is close.

sudo apt-get remove xdman

that will remove the xdman package.

sudo apt-get autoremove

that will remove all unnecessary packages...packages that were installed but are no longer being used by any other packages. This applies to any packages not being used, not just xdman.

sudo apt-get purge xdman
or
sudo apt-get remove --purge xdman

Purge will remove config files as well as uninstalling the app. If you did this then that is odd that it is still showing xdman content in your dash.

Java still being installed after uninstalling xdman is expected because just uninstalling xdman doesn't mean it will also uninstall Java. First, try the autoremove option and if that doesn't remove java then reply here and I will give you some other commands to use. (but autoremove should work)


Can't play audio suddenly on Ubuntu 16.04.1

I found the way to fix this problem.
This problem may be caused by mismatching of sampling rate?

Requirement

Environment running Windows or OS X
QUAD-CAPTURE Driver (To fix, need software control panel)

How to fix?

Open software control panel

Windows: Open in control panel
OS X: There may be in /Applications/Roland*

Reset configuration in "Device" menu
Change sample rate to 44.1 kHz

Memo

alsa-capabilities

 4) USB Audio Class Digital alsa audio output interface `hw:1,0'
 - device name       = QUAD-CAPTURE
 - interface name    = USB Audio
 - usb audio class   = 2 - isochronous asynchronous
 - character device  = /dev/snd/pcmC1D0p
 - rates per format  = S32_LE:              44100Hz
 - monitor file      = /proc/asound/card1/stream0


Dell Dimension New RAM Installation Problems

It looks like you are mixing ram modules, you need to test each dimm seperately to make sure it works alone and if so then the problem lies in inserting two mismatched dimm's...  Preferably ram should be of the same type and speed to be 100% compatible...


That is strange -- sched_mc_power_savings seems to exist on my system.  I am running 12.04 x64, fairly vanilla install.  What are the contents of your /sys/devices/system/cpu directory?  Mine looks like the following:

mike@cobbler:~$ ls -la /sys/devices/system/cpu/
total 0
drwxr-xr-x 6 root root    0 Aug  5 15:21 .
drwxr-xr-x 7 root root    0 Aug  5 15:21 ..
drwxr-xr-x 6 root root    0 Aug  5 15:21 cpu0
drwxr-xr-x 6 root root    0 Aug  5 15:21 cpu1
drwxr-xr-x 3 root root    0 Aug  5 15:21 cpufreq
drwxr-xr-x 2 root root    0 Aug  5 15:21 cpuidle
-r--r--r-- 1 root root 4096 Aug  5 17:04 kernel_max
-r--r--r-- 1 root root 4096 Aug  5 17:04 offline
-r--r--r-- 1 root root 4096 Aug  5 15:21 online
-r--r--r-- 1 root root 4096 Aug  5 17:04 possible
-r--r--r-- 1 root root 4096 Aug  5 15:36 present
--w------- 1 root root 4096 Aug  5 17:04 probe
--w------- 1 root root 4096 Aug  5 17:04 release
-rw-r--r-- 1 root root 4096 Aug  5 15:21 sched_mc_power_savings


Is it possible to install Ubuntu on an acer aspire 3690 (Win Vista)?

Please follow these steps to create your installation media :
1.Download the .iso file from Ubuntu website.
2.Download a software named Universal USB installer.
3.Run it to create a bootable USB drive.
4.Use the bootable USB drive to test drive Ubuntu or install it.
If you want suggestion on how to install Ubuntu alongside Windows , please feel free to ask.
Hope this helps


start TB with profile manager in terminal:

  thunderbird -profilemanager

Then create a new profile. In next screen give a name to the new profile and locate the folder for the profile. From checking the selection box you can decide to start TB with profile selection or not.

You can actually make more than one profiles for backing up purposes.


how to install package to a specific hard disk drive partition

It's not clear why you want this. If it's for space reasons, one viable approach would be to mount large directories (probably /bin or /usr, where many programs reside) in an extra partition. See e.g. this question: How can I store /var on a separate partition? for how to do that.


Well, I had this same problem and here's how I solved it,
Go to tty mode using Ctrl+Alt+F2,
if you can't, insert a live cd then get into chroot, try to reinstall your plymouth but before reinstalling the plymouth, try to reconfigure the plymouth first,

sudo dpkg-reconfigure plymouth && sudo update-initramfs -u

if it doesn't work. then reinstall it,

sudo apt-get install --reinstall plymouth


What are some software/filters to manage Internet use and time on Ubuntu?

That is quite what is now opensource, better for free you wont get. I would use Pfsense for example or Endian Firewall the Community version.


To install the VMWare Tools provided by VMWare as an iso:

Step 1: Install the build tools.

sudo apt-get update
sudo apt-get install build-essential

Step 2: Every time you update your kernel, install the headers:

sudo apt-get update
sudo apt-get install linux-headers-$(uname -r)

Step 3: Install/Update the tools from the vmware-tools-distrib directory:

To Install:

sudo ./vmware-tools-install.pl

To Update:

sudo ./vmware-tools-config.pl

The newer VMWare Tools installers warns you in advance to try and find an open-vm-tools package if available.

To install open-vm-tools from the console, type in:

sudo apt-get update
sudo apt-get install open-vm-tools open-vm-tools-desktop

Restart the PC, log in and you're done!

However, there are some caveats, listed here.


Unable to mount location : Failed to retrieve share list from server: Invalid argument

How are you trying to connect exactly, which fails to retrieve list of shares?
In my case it was with the caja file browser, which uses gvfs as the backend for this.  It might not be samba's bug:
https://bugs.launchpad.net/gvfs/+bug/1828107

The "trick" here is to try to connect to the server without invoking
gvfsd-smb-browse. You can do that by accessing the server and share
explicitly in Nemo:
By mDNS host name ( hostname with a .local attached at the end ):
smb://win10-host-name.local/share-name
By ip address: smb://win10-ip-address/share-name

So once I entered an address that bypassed gvfs, I had access to my shares and files again, eg.:
smb://negro.local/c/media/Videos


Partitioning a new Dell XPS 15 L521X for Ubuntu

I don't know what you mean by /dev/sdb1 being "EFI." The Extensible Firmware Interface (EFI) is your firmware and is stored on an EEPROM on your motherboard, not on a disk (except for developer tools like DUET or the "firmware" used in virtual machines). The EFI does have an associated partition, the EFI System Partition (ESP), but it's a FAT32 partition that's normally 100-600MiB in size and that has a particular partition type code. Your /dev/sdb1 holds an unrecognized (that is, not FAT) filesystem, according to the GParted screen shot, and does not have the ESP type code, so it's not an ESP. Your /dev/sda1, OTOH, is an ESP; it's FAT32 and has its "boot flag" set (which is GParted's way of identifying the ESP type code).

To answer your bigger question, if you don't care about the Windows you've got on your computer or any of the other software or data that Dell has provided, you can delete all your partitions, on both /dev/sda and /dev/sdb, with the caveat that since I don't know what /dev/sdb1 is, I don't know if it might have some non-standard purpose for the firmware. (It's more likely that it's used by Windows, though.) When you install Ubuntu, it will create whatever partitions it requires, including a fresh ESP. (The existing ESP just holds the Windows boot loader and associated data, so deleting it shouldn't be a problem.) If you want to preserve your ability to install re-install Windows in the future, though, you should preserve /dev/sda6 and perhaps /dev/sda4. Alternatively, in the Windows 7 era, it was common for manufacturers to provide a utility to let you burn a set of DVD-Rs that would enable you to re-install Windows. You could look for such a tool in your current system and back up the relevant data in that way.


Installing Xubuntu on Asus Transformer T101HA-GR043T

I have same model, I spend so much time with installing different linux versions and here are the results:

Ubuntu - 17.10 works great, also audio with newest kernel. Only bad is brightness (And card reader I think). Brightness can't set up (still max).

Lightweight desktop environments(XFCE-Xubuntu, Cinnamon-mint, LXDE, etc...) work with more mistakes(mainly rotation).

Android x86 - works very fast, smooth, great battery condition and it seems ideal for this tablet. But! I don't find any way how to make rotation and graphic card work :(.

It is easy to try. Create live USBe from ISO in Linux Mint with its default livelinux-create app (I don't remember the name). It will work.


How to concate strings in a bash script to use in SQL-Statement?

It seems that RDFile doesn't exist in your first script.
What do you have in /home/bono/RD/BV-OUT/allto468?
Are they filenames that really exist in /home/bono/RD/BV-OUT/?

I would add a test in the middle to check if the constructed path really exists, for example like this:

#!/bin/bash
INPath="/home/bono/RD/BV-OUT/"

while read line; do
    RD="$line"
    RDFile="$INPath$RD"
    echo $RDFile

    if ! test -f "$RDFile"; then
        echo error: file does not exist: $RDFile
        continue
    fi

    ###MYSQLs:
    mysql -u root -D RD --local-infile << EOF
LOAD DATA LOCAL INFILE '$RDFile'
 INTO TABLE bv_tmp_all FIELDS TERMINATED BY ';' LINES TERMINATED BY '\r\n';
EOF
    ##### EOSQL
done < /home/bono/RD/BV-OUT/allto468


Simplest MTA mail setup for a desktop to receive (ana)cron emails

The same question appeared on Unix.SE a while back:

Minimal MTA that delivers mail locally (for cron)?

MTAs such as Postfix and Exim have a much broader scope. Since I could not really find a single program specific for the purpose of "delivering" mail to a single directory, I ended up writing a new program, femtomail.

Have a look at the Unix.SE question for details or read the README in the femtomail repository.


How can I load Steam Games on a usb drive simply? (novice user on crouton linux)

First mount your flash drive with read/write/execute privileges.

How to auto mount a flash drive with root and read/write/execute privileges

Then create an empty folder on your flash drive.

Open Steam settings, click on Steam and then click on Settings.

Steam -> Settings -> Downloads
Click on Steam Library Folders

3.Click on Add Library Folder

Find where your flash drive is mounted and locate and select the empty folder you created. Then click on Select

Now you will be able to install games to your USB device. If you want your new library folder to be default just right click on it and make it default.

Just remember to select your new library folder when installing games.


Followed instructions on the link provided by muru./.:

  The btrfs-tools package adds an action to the initramfs to load the btrfs module. If you purge that package (sudo apt-get purge btrfs-tools),

It still kept a slow boot time, but still slightly faster than when it was scanning for btrfs.


how do I remove / delete " all video downloader "?

Some applications create .desktop files in ~/.local/share/applications. Have you checked there?

Also, using the Software Center to delete applications leaves system-wide config files behind. If you want to get rid of those as well, you may want to use:

sudo apt-get purge package_name

In any case, you'll need to get rid of config file in your home folder yourself. These are mostly in ~ or in ~/.config or in ~/.local.


It looks like you are trying to mount the entire disk (/dev/sdb) rather than a partition on the disk (such as /dev/sdb1).  Do you know which partition on the disk you need to mount?  It's probably sdb1, but not necessarily.


HUD is capable of Fuzzy Matching and can learn what you usually do so it can prioritise the things you use often. It covers the focused app as well as system functionality.Source

So,in your case if you type alt and "Edi" and select the Firefox Preferences two or more times,then next time you type alt and "Edit" you should get Firefox Preferences as first option.

Also if you want to experiment with HUD,you can install command line tools for it.Command line tools are available through the package indicator-appmenu-tools

Source


MySQL hung up on "activating (start-post)" status after relocating datadir

Do not change anything in

/etc/apparmor.d/tunables/alias

,just change

/etc/apparmor.d/usr.sbin.mysqld

I changed this:

# Allow data dir access
#  /var/lib/mysql/ r,
#  /var/lib/mysql/** rwk,
/mnt/largedisk/mysql/ r,
/mnt/largedisk/mysql/** rwk,

works.


what is indicator-netspeed-unity alternative for ubuntu 17.10?

Two I found quickly are both gnome extensions:

Simple NetSpeed

NetSpeed

Neither looks exactly like the one you had...


I would suggest QXW! The link for the homepage (of QWX) is here. To install, type sudo apt-get install qxw


Try to simply increase the brightness through the keyboard.

In my new HP Envy 15 with Ubuntu the screen goes black at every start up, but if I increase the brightness through the keyboard everything goes back working


Any way to get a Brother HL-L2320D to work with current Ubuntu?

I would delete the existing Brother icon in your PRINTERS folder; go here http://support.brother.com/g/b/downloadend.aspx?c=us&lang=en&prod=hll2320d_us_as&os=128&dlid=dlf006893_000&flang=4&type3=625 and click to download and SAVE the brother installer tool and it should end up in your Downloads folder. Then copy the commands below and paste into a terminal; line by line

cd Downloads
gunzip linux-brprinter-installer-2.1 (1).1-1.gz
sudo bash linux-brprinter-installer-2.1 (1).1-1 HL-L2320D

and that should run the installer tool; it will ask you some questions; and it should work


From the screenshot,it shows that your previously installed ubuntu was mounted,you cant erase a mounted partition and reinstall another version of ubuntu to it.
So unmount the ext4 partition through gparted and then try to erase and reinstall ubuntu.
To unmount a mounted partition,open gparted then rightclick on that partition you want to unmount and select the unmount option.Your partition will be unmounted successfully.


How do I recall the "You have just entered a DVD" prompt after banishing it?

Here is what you should do.

Click the gear on the top left
Click "About this computer"
Click "Removable Media"
That's it! Enjoy!


If you install the new version, it will not overwrite the old one, because each version uses its own folder, usually with a name of the form R201?? under /opt/MATLAB/. The same holds for the settings, which are kept in a folder of the same name under ~/.matlab/. This way it is possible to use in parallel two or more different versions of Matlab.

The "command" matlab is usually a symbolic link in /usr/local/bin/ which points to the actual binary, e.g.

/usr/local/bin/matlab -> /opt/MATLAB/R2013a/bin/matlab

If you want to start another version, you have to type the full pathname of the executable at the command line, e.g.

$ /opt/MATLAB/R2012b/bin/matlab

If you only want to use the new version though, I'd recommend to uninstall the old version first. Uninstallation is done by deleting the installation directory with all its contents, and all the symbolic links pointing into that directory in /usr/local/bin/. Besides matlab, there can be e.g. mex or links to other executables. The link you provided says essentially the same, except for additional information on (de-) activating a Matlab license.


Yep, lxd is the answer. Followed those steps: tutorial


The machine you are using is far too new for the kernel in Ubuntu 18.04. If you would like to make proper use of your graphics card (not to mention all the CPU power you're leaving on the table), you will need to upgrade to 20.04 or 21.04. The machine has been certified for 20.04, which means you can make use of the hardware enablement stack.
If you absolutely must use 18.04 for specific applications, consider using those tools in a Docker container or a virtual machine.


Snap packages are a good way to get access to much more software than before.
You can now get as snap packages Skype, LibreOffice latest, GIMP latest, all JetBrains IDEs or even games.

All these are installed using the Ubuntu Software application and it's not necessary to use the command line.

The important question for you is this, do you really need to disable snap packages?

To temporarily disable snap packages (until reboot or if you run with start):

sudo systemctl stop snapd.service

To permanently disable snap packages:

sudo systemctl stop snapd.service
sudo systemctl disable snapd.service

To reenable snap packages:

sudo systemctl reenable snapd.service
sudo systemctl start snapd.service


how to make a new Cron job for python scripts to update mysql?

i figure it out on this link. a based of the Remove Heartbeats section on that link.

Step #1 make a .sh script :

#!/bin/sh

set -e

DB_TYPE="mysql"
DB_HOST="localhost"
DB_USER="xxxxxx"
DB_PASS="xxxxxx"

KEEP_INTERVAL="2 month"

DATE=$(date -d "now - $KEEP_INTERVAL" +%Y-%m-%d)

preludedb-admin delete heartbeat --criteria "heartbeat.create_time <= $DATE" "type=$DB_TYPE host=$DB_HOST user=$DB_USER pass=$DB_PASS"

and make .sh as executable.

Step #2 make a cron job

sudo crontab -e

add a event scheduler,

*/2 * * * * /usr/local/lib/python2.7/dist-packages/prewikka/crontab.py
*/2 * * * * /path/to/sripts/prewikka.sh

restart using sudo init 6.

Hope this helps.


Trying to compile powertop for arm using cross compile in Ubuntu with malloc issue

You probably need to set some environment variables to run from your toolchain.  An example I use below, for a toolchain installed in my local directory, like yours:

MY_ARM_BASE=${HOME}/dev/toolchain/arm-2008q3
C_INCLUDE_PATH=${MY_ARM_BASE}/lib/gcc/arm-none-linux-gnueabi/4.3.2/include:${MY_ARM_BASE}/lib/gcc/arm-none-linux-gnueabi/4.3.2/include-fixed
LIBRARY_PATH=${MY_ARM_BASE}/arm-none-linux-gnueabi/libc/lib:${MY_ARM_BASE}/arm-none-linux-gnueabi/libc/usr/lib
CPLUS_INCLUDE_PATH=${MY_ARM_BASE}/arm-none-linux-gnueabi/include/c++/4.3.2
#OBJC_INCLUDE_PATH
COMPILER_PATH=${MY_ARM_BASE}/bin
#LD_RUN_PATH
#GPROF_PATH
#######
CC=${COMPILER_PATH}/gcc
CXX=${COMPILER_PATH}/g++
RANLIB=${COMPILER_PATH}/ranlib
STRIP=${COMPILER_PATH}/strip
export C_INCLUDE_PATH LIBRARY_PATH CPLUS_INCLUDE_PATH COMPILER_PATH
export CC CXX RANLIB STRIP


How to make videos seekable with ffmpeg / mencoder

I figured it out for ffmpeg. I added -f image as an input option for the image like so:

-f image2 -i image.jpg

I found the answer indirectly on superuser and his tip for -loop_input -shortest helped me a lot too.


Buffer I/O error on device sda1, logical block 4684514

The error message may point to a hardware error.

Warning! The below command deletes all data currently written to your /dev/sda1 partition!

Please run:

dd if=/dev/zero of=/dev/sda1 bs=1048576

This command should abort after writing as many mebibytes as your partition is large. If it aborts before with an error, or if dmesg shows hard disc I/O errors, your HDD is bad, and you ought to move the data off it and trash the bad disc ASAP.


Ubuntu SDK - Example clocks wont run in emulator

You are using an example from Qt. It doesn't include packaging config files to install it on the device/emulator.

Create another project with New Project > Ubuntu > QML App with Simple UI (qmlproject), Framework ubuntu-sdk-14.10-qml.

Copy 'content', 'doc' and 'clocks.qml' from the "clocks" example to this new project.

Rename clocks.qml to Clocks.qml.

Add that widget into Main.qml by inserting 'Clocks{}' into code somewhere among Labels and Buttons.

It should work. Watch 'Compile Output' for compile and packaging errors, 'Application Output' for install and runtime errors.


Upgrade  hangs on ttf-mscorefonts-installer

I've got the exact same issue, the upgrade hung off while downloading ms-core-fonts from sourceforge. After 2 hours waiting for the process to continue, I decided to kill the process downloading the package.

So I just ran "sudo htop" then F5 to see the tree of process, I started from the main process responsible for the upgrade to precise and searched for the one reponsible for the download. I killed this one, then the process skips the ms-core-font download part then continues and finishes the updrage to precise.

If you don't have the htop, just try ps -ejHf and find the package-data-downloader and kill it.

root     29696 11731 29696 29696  0 22:46 pts/2    00:00:04           /usr/bin/dpkg --force-overwrite --status-fd 56 --configure dmsetup libdevmapper1.02.1 libfreetype6 g
root     22330 29696 29696 29696  0 23:02 pts/2    00:00:00             /bin/sh /var/lib/dpkg/info/update-notifier-common.postinst configure 0.117ubuntu3.2
root     22332 22330 29696 29696  0 23:02 pts/2    00:00:00               /usr/bin/python /usr/lib/update-notifier/package-data-downloader


eMMC Boot - Installation & Compatibility

I spent about an hour before finding a solution via trial and error. Thank you to all who assisted. I asked this question on two platforms, and my response is shared between them. This was the solution:
"--In order for the system to recognized the installed OS, you must ensure the system is using UEFI boot mode as well as enabling Firmware TPM BEFORE installation. Secure boot MUST be off for installation and after installation. Legacy Option ROM should be disabled. After install, the system will recognize the OS and boot properly after the TPM check which will only occur at the very first bootup and never occur again." My Ubuntu Forums Post Explaining Installation


Why does my Ubuntu 13.04 VPS say it has a 2.6.x-series kernel?

Okay, so, I edited your question to make it more general, but...

To answer your issue specifically, in which you use the INIZ VPS provider (based on pre-edit version of your question):

I did look up the VPS provider you said you used (before my edits to your question, so it's more general) ,the INIZ VPS provider.

They have two solutions listed on their site: VZ solutions (Budget VPS and SSD VPS), and KVM solutions (KVM VPS).

I am assuming that, in your case, you have a Budget VPS or an SSD VPS from INIZ.  That uses the OpenVZ solution for virtualization, which means the host system has a 2.6.x kernel on it, and that's what your system sees.

Now, for a more general explanation of this problem, and to answer your question fully:

Depending on the VPS provider, and the virtualization system being used (OpenVZ, KVM, XEN, etc.), the kernel that is on the VPS is either that of the host system or is a kernel installed inside the VPS.

The three biggest ones I've seen are OpenVZ, KVM, and XEN, so I'll talk about those three here, however, there are other virtualization systems out there, but I don't know about those.

With OpenVZ VPSes, the kernel that the VPS sees is the kernel that is on the host node, which in this case is running 2.6.x kernels.

With KVM VPSes, the kernel for the VPS is the kernel that is installed inside the VPS, and that will be, for Ubuntu, whatever comes with 13.04 or 13.10 or whatever.

I did discuss with my friends who are heavy into virutalization and stuff, they said that for XEN VPSes, XEN can be configured one of two ways:

with ParaVirtual Ops, which means the VPS can have a custom kernel inside it (i.e. what comes with Ubuntu or a custom kernel you compile)
without ParaVirtual Ops, which means the VPS will have the host system's kernel exposed and used with the VPS. (similarly to OpenVZ)

(These same friends confirmed what I said above about OpenVZ and KVM, as well)


I'd start by removing clamav - sudo apt-get purge clamav* - then try again.
It appears there's an error in the clamav setup at present. You could try re-installing it again after - I'd recommend purge over remove here as the error could be in config files which remove may leave behind.


DHCP server not working in new version of ubuntu with ethernet name as enp9s0?

To answer half answer your question, Ubuntu creates a random (but constant) name for each ethernet port on your system, rather than assigning them eth0, eth1, ... This means that if you have multiple ethernet ports you wont find that a different one is assigned the name eth0 on some boots, important for segregated networks etc. On the other hand it makes life a little bit more awkward if you just have one ethernet port.

On my system, I include the file etc/udev/rules.d/10-network.rules

# Set the name of the ethernet port to "net1"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="bc:5f:f4:ed:68:c6", NAME="net1"

to force a name to my ethernet port (where bc:5f... is the MAC address of my ethernet port, and "net1" is the name I want assigned to it). If I ever change the ethernet card, I just need to change the MAC address in this file, rather than try to find every reference to net1.

I cant help you with the second part of your question dhcp (I use dnsmasq)


Couldn't find libcgroup.h in Ubuntu 14.04

The file libcgroup.h is in the package libcgroup-dev. Therefore

sudo apt-get install libcgroup-dev

Why? That's why:

% apt-file search libcgroup.h
libcgroup-dev: /usr/include/libcgroup.h

and that's why.


How do I give www-data user to a folder in my home folder?

First, add yourself into the group www-data

usermod -a -G www-data (your username)

Then:

chgrp www-data /home/myuser/folderA
chmod g+rwxs /home/myuser/folderA

Should do the trick unless the permissions on your /home/myuser do not permit other users access.

The first command changes the group ownership of the folder to that of the webserver. The second command gives members of the www-data group read, write, enter-directory rights, and the group s flag will ensure that any files that get created inside that directory take www-data as the group - so if you create a file as myuser the www-data user will have access.

Nb. this also depends on the umask settings of both your user account and the webserver: you need to make sure that files created in folderA have group rw access (and directories created within need group rwx)

If your webserver does not have enter rights into your /home/myuser dir (quite sensible) then it's not going to get in there unless you do something else. Two solns:

sudo mount --bind /home/myuser/folderA /var/www/mysite/folderA  (this is an ugly hack and would have to be repeated after reboot. But a powerful trick, also can be used to make folders accessible inside SSH jails.)
Simply move the shared folder somewhere else, e.g. /home/shared-stuff/folderA.

The 2nd option is nicest. Let's say the stuff in folderA is really public and you don't care who sees it, you can set it up like

sudo mkdir -m777 /home/shared-stuff

Then you can put inside that, say, folderA with permissions as above, and folderB that www-data should not have access to with different permissions, e.g.

$ cd /home/shared-stuff ; ls -l
drwxrwsr-x 2 myuser www-data   4096 Jan 17 21:46 folderA
drwxrwx--- 2 myuser myuser     4096 Jan 17 21:46 folderB


Ubuntu installation on UEFI system - grub console after boot

Install reFind... http://sourceforge.net/projects/refind/
It handles and does all that for ya :P


Reinstalling grub will do.

Boot into a Ubuntu Live Media.
Then chroot into your exisitng root,

sudo mount /dev/sdb2 /mnt/
sudo mount /dev/sdb1 /mnt/boot/efi

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

sudo chroot /mnt

Reinstall Grub

grub-install

Full tutorial can be found here.

NOTE: sdbX values may change. The commands are for device given the screenshot


Running multiple sites Nginx on Ubuntu 18.04

The steps would be (assumptions:- Nginx installed):

Create server blocks for both or all your sites in the /var/www/folder:

sudo mkdir -p /var/www/mytest1.com/public_html
sudo mkdir -p /var/www/mytest2.com/public_html

Modify permissions to allow regular users read and write access:

sudo chown -R $(whoami):$(whoami) /var/www/mytest1.com/public_html
sudo chown -R $(whoami):$(whoami) /var/www/mytest2.com/public_html

Set permissions so pages can be served correctly:

sudo chmod -R 755 /var/www

Create two pages for the test sites:

sudo echo "Welcome to mytest1.com!" > /var/www/mytest1.com/public_html/index.html
sudo echo "Welcome to mytest2.com!" > /var/www/mytest2.com/public_html/index.html

Create Server Blocks:

Copy over the default nginx homepage default file:

sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/mytest1.com

Edit the copied file:

sudo nano /etc/nginx/sites-available/mytest1.com

Scroll down and change this root /var/www/html; to root /var/www/mytest1.com/public_html;
Change this server_name _; to server_name mytest1.com www.mytest1.com;
Change this index index.html index.htm index.nginx-debian.html; to this index index.php index.html index.htm index.nginx-debian.html;

Make value for fastcgi_pass socket path is correct:

Run: ls /var/run/php/

Results:

php7.2-fpm.pid php7.2-fpm.sock

Add the php7.2-fpm.socket location in the server block file if note pointing in the right direction and see that the location  portion of the file looks like so, remove the # to achieve this in some areas:

...
    location ~ \.php$ {
                           include snippets/fastcgi-php.conf;
          #
          #                 # With php-fpm (or other unix sockets):
                            fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
          #                 # With php-cgi (or other tcp sockets):
          #                 fastcgi_pass 127.0.0.1:9000;
           }
 ...

Close the editor and test nginx configuration with sudo nginx -t. See any errors repeats the steps backwards. For a valid syntax you will see:

 nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
 nginx: configuration file /etc/nginx/nginx.conf test is successful

Repeat step 5 and 6 for the other site using mytest2.com where we had mytest1.com for site one, additionally for second site do the follow when editing the /etc/nginx/sites-available/mytest2.com file change this:

listen 80 default_server;
listen [::]:80 default_server;

to this:

listen 80;
listen [::]:80;

Reason:

  Only one server block can have the default_server specification. This tells Nginx which block to revert to if the server_name requested does not match any of the available server blocks.

Create Symbolic links:

sudo ln -s /etc/nginx/sites-available/mytest1.com /etc/nginx/sites-enabled/
sudo ln -s /etc/nginx/sites-available/mytest2.com /etc/nginx/sites-enabled/

Remove the Symbolic link for default server block:

sudo rm /etc/nginx/sites-enabled/default

Restart Nginx:

sudo service nginx restart

11: Optional: Edit Hosts file:

 127.0.0.1 mytest1.com
 127.0.0.1 mytest2.com

Now go to your browser and type localhost, or mysite1.com if you made entries in the /etc/hosts file. Now also note that nginx listens on port 80 not 8080. Not the php server.

Resource:

https://devanswers.co/installing-nginx-ubuntu-18-04-multiple-domains/

https://devanswers.co/installing-php-nginx-ubuntu-18-04/


Hang with Ubuntu 20.04 64 Bit on Raspberry Pi

not sure it will resolve the problem, but i think i had the same issue, 30 min ago
i found out that 20.04LTS lubuntu-desktop have by default, this option
into settings, click on power, by default, the option automatic suspend is on, yu may set it to off
it fixed my issues, ( after a while my desktop wasnt reacting anymore, only terminal was working on ssh )
since then, everything is fine.
hope this help.


Names for interfaces are configured in the file: /etc/udev/rules.d/70-persistent-net.rules

You may edit this file to customize what names are given to network interfaces when the computer boots.


how can I download IOS Iphone app via apple store apps link in any third party website directly

You can use online software testing platforms. One suitable choice is www.browserstack.com.


Flickering horizontal line while scrolling

Okay, looks like I figured out how to fix this. Maybe it will help someone.

Go to NVIDIA X Server Settings application.
Choose X Server Display Configuration.
Click Advanced.
Check Force Full Composition Pipeline.
Apply.
Probably restart the system.

I have tried every single option suggested here on stackoverflow with compizconfig-settings-manager, /etc/X11/xorg.conf, e.t.c. but noting seemed to work for my issue.


After learning that Ubuntu was running Unity 2D I started suspecting that there was a problem with my video drivers.

I purged nvidia-current* and nvidia-settings* packages and rebooted (turns out logging off and on again is all that is necessary).

Logging in again the "aerosnapping" now works so I'd consider this answered.

Now to figure out how to get these drivers correctly installed.


GConf is obsolete and it has been replaced by dconf/gsettings. To disable desktop icons run the following command in Terminal.

gsettings set org.gnome.desktop.background show-desktop-icons false

For a GUI alternative use dconf-editor instead of gconf-editor, navigate to /org/gnome/desktop/background/, and disable show-desktop-icons option.

Alternatively, use GNOME Tweaks (gnome-tweaks) to turn off the "Show Icons" option in the Desktop tab.


You also need to do this

apt-get update && apt-get install -y uwsgi


Why doesn't Ctrl+Alt+Del work in KDE when set as a shortcut for Log Out?

Did you add the shortcuts from before an upgrade, I noticed that the key shortcuts changed from ctrl to something like primary and secondary, to support right and left ctrl shortcuts.

Try changing the keypress, and use the option to press the keys to get the shortcut.


I'd like some help installing and running Minecraft on Lubuntu 13.10

In my memory, most people I know use OpenJDK Java 6 Runtime to run Minecraft because it doesn't work with OpenJDK 7, but it works well with OpenJDK Java 7 Runtime for me.
Try to right click → Properties → Open with → OpenJDK Java 6 Runtime → Set as default.


Won't login, resolution off, screen flickers

I have had the same issue in the past. I recommend installing and using GDM. You can do this by typing

sudo apt install gdm3

Logout and choose gdm. Tell me if this fixes your issue too. Or type

sudo dpkg-reconfigure gdm

and then choose gdm3.


Change Right-click menu background color

Try to use this How To :Revert to Dark Menus for Ambiance Theme in Ubuntu 12.04


Synaptics 6cb:00df fingerprint sensor not working

I actually managed to solve the issue with the fingerprint.
I first had to upgrade fwupd to version > 1.5 (the version from apt is lower, but it's possible to install a newer version using snap)
sudo snap install fwupd --classic

Then enable the testing channel and it should find the new firmware.
fwupdmgr enable-remote lvfs-testing
fwupdmgr refresh --force
fwupdmgr update

Finally, disable the testing channel again
fwupdmgr disable-remote lvfs-testing

I had some temporary issue when suspending the PC (keyboard was not responding anymore) that was solved by upgrading the kernel with Ubuntu Mainline (but I'm sure it was something temporary that could have been solved in a simpler way).


Unable to open "Lutris" on ubuntu[18.10] for gaming

This is because litrus is not able to find your system locale.

Goto Systems Settings ->  Language support
Set a system wide language
Restart system and relaunch litrus


Are you try an application, as VLC, Cheese, Record My Desktop, etc?? For default, Ubuntu don't have an direct acces to the Webcam and microphone, so you need an application to access to this hardware.

In the case of the webcam, the most common is Cheese (but I say others examples) and for the microphone I recomend Audacity


Ubuntu 18.04 Can't assign shift to keyboard

I had that working fine in Ubuntu 16.04 Gnome, I just switched to 18.04 and noticed that.

It seems that input switching "Alt+Shift" conflicts with creating shortcuts desired for moving windows to new workspace.

Disable "Alt-Shift"

sudo apt install gnome-tweak-tool

Open Tweaks -> Keyboard & Mouse -> Additional Layout Options -> Switch to another layout -> (uncheck Alt+Shift and choose a different combo if you need)

Reference: Switching to another layout

Change combinations to Ctrl+Alt+Shift+Arrow
In keyboard settings -> Under "Navigation" -> Move window one workspace up/down -> Set shortcut (Ctrl+Alt+Shift+up/down)

Note:
Perhaps people with single input language won't notice this if the system is not configured for multiple input methods.


Finding the vlc.so file in linux - Java Development

The library is libvlc.so and part of the packages libvlc-dev.

Therefore install the development library via

sudo apt-get install libvlc-dev

The complete path of the library is

/usr/lib/libvlc.so


Where can I find the file format specification for MATE .desktop files?

This is not actually MATE-specific, .desktop launchers follow the freedesktop.org standards.

You can find the detailed specification here: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

This is a table containing the standard keys retrieved from the link above:


How connect to open vpn server without gui?

I cant imported file via gui, because ovpn config have string:
route x.x.x.x 255.255.0.0 vpn_gateway
Bug: https://bugs.launchpad.net/ubuntu/+source/network-manager-openvpn/+bug/606365/comments/68

My vpn cant work with console because i have problem in dns, solution(based on Ubuntu 18.04 no DNS resolution when connected to openvpn):

Install openvpn
sudo apt-get install openvpn
Install openvpn-systemd-resolved
sudo apt install openvpn-systemd-resolved libnss-resolve
Edit /etc/nsswitch.conf. Find string "hosts:" and replace to:
hosts: files resolve
For application which used /etc/resolv.conf directly create symlink:

ln -svi /run/systemd/resolve/resolv.conf /etc/resolv.conf
ls -la /etc/resolv.conf

Start systemd-resolved:

systemctl enable systemd-resolved
systemctl start systemd-resolved

Edit *.ovpn file, add:

script-security 2
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved
down-pre

and at the end of file:

dhcp-option DOMAIN-ROUTE .

Connect to vpn and enjoy

sudo openvpn --config my-vpn.ovpn


How do I change mac address on Ubuntu 16.10?

Go to dash, search for Network Connections.
On Network Connections window  select your current connection, then click Edit.
Navigate to WiFi tab (for WiFi connection) or Ethernet tab (for Wired connection).
Under Device field, type your desired MAC address on "Cloned MAC Address" field.

NOTE: Change we have applied to MAC Address are temporary, they will be reset after every reboot.


So that you may retain your ubuntu specific firefox and flashplugin installation for purposes other than running that particular game, I suggest you install the windows version of firefox and adobe flashplugin using wine. To do this, run the following commands in an open terminal:

mkdir FF; cd FF
sudo apt-get update
wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/37.0.2/win32/en-US/Firefox%20Setup%2037.0.2.exe
sudo apt-get install p7zip-rar
7z e Fire*

It may ask you if you would like to overwrite a file; press u to rename the file and then run the following commands:

wine setup.exe

accept the basic options but decline to "make firefox your default browser" and keep the option to "automatically start firefox" at the end. After firefox starts up for the first time, close firefox.

Next, run the following commands to install adobe flash on your windows version of firefox:

wget https://fpdownload.macromedia.com/get/flashplayer/pdc/17.0.0.169/install_flash_player.exe
wine install_flash_player.exe

follow the instructions accepting the default options and accept the licensing agreement if the installer asks you to do so.

There should be a firefox icon on your desktop, click the icon to run the windows version of firefox and don't forget to go to settings > addons > plugins to enable the flashplugin.


You did install the PHP5 from the source.  PHP 5.3.25 was never part of Ubuntu release.

Hopefully if you did install it into a /usr/local, it could be removed by just going through the files in the /usr/local directories and remove files which seems to be belonging to PHP.  If you did install PHP to /usr, then it could be more complicated, and it might require the original source directory where you have compiled the PHP.

If you still have PHP source directory you might want to try doing 'make uninstall' from the source directory, or if that command doesn't work, you could do another 'make install', noting the files which gets installed and removing them manually later.

However this is not really an Ubuntu related question.

It's never a good idea to install software directly from the sources, if you don't know exactly what you are doing.

P.S.: You might want to try the poor man's man "packaging" system - stow - next time to manage installed files in a sane way.


Can't handle tinychat broadcasting option

I can confirm the bug with Firefox on a 13.10 system.

I'd suggest to install Google Chrome to get access to the Adobe Flash player settings.


Can access server from outside network but not within LAN

Welcome to Ask Ubuntu. Your question can be answered here, but it's not a Ubuntu specific issue. It really belongs in serverfault.com
If I understand this correctly, you have this server on your LAN and you port-forwarded on your router from your WAN to the internal address? And your issue is that your other computers can see the server only if they are outside your LAN (or use the internal IP)?
If so, what you have is that any internal computer asking to resolve the DNS name of "bbb.scotia.ie" will get the answer to look for 93.107.237.199, which is not an internal IP address. It will send your request outside the LAN, but since your outgoing IP is also your requested IP, it doesn't go anywhere. That's why it's not working within your LAN.
You have a couple options here:
1.NAT Reflection: if your gateway/router supports this, then enable it. pfSense has good support for it (pfSense Manual)
2.Split DNS (recommended): create your own internal DNS server, which will be queried first for all internal computers. Setup the internal DNS server so it will provide 192.168.1.5 instead of 93.107.237.199 to the internal computers. Your router might have DNS caching as well, which might be utilized for this purpose as well.
3.Write to every computer's host file: the least amount of initial work! But the one that will keep you tripping! You could edit the host file on each computer to indicate that bbb.scotia.ie should be 192.168.1.5. But we aware, if you leave the LAN, you will need to disable that entry to access it again from the outside!


MDADM - Degrading when copying files to share

You can run some tests with smartctl, dd and so on.

smartctl --test=long /dev/sda (and sdb)
dd if=/dev/urandom of=test.file bs=64K count=1000 (for example)

I think it is hdd or hdd controller problem.


I had the same problem after I fiddled around with the various themes. Especially the 'plastic' window decoration froze the entire desktop. Selecting the default 'breeze' theme seems to have solved it.

On a related note: when the desktop freezes, one can just kill the x-server by pressing Ctrl+Alt+Backspace (provided the option is set in System Settings --> Keyboard --> Advanced --> Key sequence to kill the x-server). So no need to force a reboot.


Is it possible to delete the trash folder?

Install Gnome Tweaks from the Ubuntu Software Center and navigate to Desktop and set Wastebasket to OFF.

This hides the icon from the desktop but doesn't delete the location where trashed files are sent to [~/.local/share/Trash] which will automatically be regenerated by the system if not present.

So, a workaround to avoid deleted files even reaching there is to simply use ShiftDelete when deleting files.


Does Microsoft Office run in Crossover/Wine/Playonlinux?

The answer is yes. In fact the other two are also based on Wine.

Considering just Wine, see this question. But later versions of MSOffice, 2007 and 2010, are much easier to install in Wine than older versions like 2003 and XP. For 2007 and later see my other answer. (Personally, I was not able to install msoffice xp or 2003 in Wine, although I deem it possible.).

Playonlinux has the advantage of offering the possibility of using different versions of Wine for different programs or program versions. See this answer for more details on installing msoffice 2007.

CrossOver greatly facilitates the installation of MSOffice, even of different versions that could be used in parallel, new and old. (I was able to install very easily msofficexp.) This is a very useful and recommendable application, especially for the users who want the comfort and are ready to pay for it.

(To make things even smoother, you can improve appearance of the programs installed in this way; for Wine and playonlinux, look here; for crossover, here.)

Related answer here.


How do I add Netbeans to the Unity launcher?

Create a netbeans.desktop file with somewhat following content in your $HOME/.local/share/applications/ folder(If not present create it). And drag and drop the netbeans.desktop file to your launcher. I am doing the same with eclipse. If you want netbeans to be available to othe users as well you can create the desktop file in /usr/share/applications as well.

[Desktop Entry]
Name=Netbeans
Comment=Netbeans IDE
Exec=path/to/executable i.e. $HOME/netbeans/netbeans
Icon=netbeans
Terminal=false
Type=Application
Categories=Development,IDE;
StartupNotify=false

Make sure you have correct path and keep in launcher is checked.


Mouse and trackpad stopped working on an Asus Eee1215n

Have a look at the following link too, which was also a similar issue with a hp mini netbook.


Increase the font size in text editor of ubuntu

If you are using "gedit" go to menus

Edit => Preferences

Select Fonts & Colors and increase the font size.


How to share a wireless Internet connection as a wireless hotspot?

Iptables and manual routing aren't necessary when using Ubuntu's provided defaults.
You would need two Network Interface Adapters to provide a Hotspot via Ubuntu.
NIC #1
This will be used for your connection to the internet.  While both NICs could be wireless, this NIC (the connection NIC) is usually a wired NIC.  For your particular case, I used a wireless NIC for testing these steps.
NIC#2
The second NIC (in the case of your question details, a Wireless adapter) will be used for configuring as a Hotspot to share the connection (the Hotspot NIC).
Configuring one NIC won't affect the other.
You can setup your Ubuntu Hotspot connection using three parts:

Part 1: Create the Hotspot network
Part 2: Edit/Configure the Hotspot network
Part 3: Start the Hotspot service

Create the Hotspot Network

-> (From the System Settings menu (click) Network)
-> (Select the desired Wireless Device) -> (click) Use as Hotspot
-> (The Hotspot is Network is created) -> (Click the ON/OFF button to turn it off)
-> (Exit the Network Window)

Edit/Configure the new Hotspot network

-> (From the Connection Icon of the Ubuntu Top Panel click) Edit Connection
-> (Select the new Hotspot connection that has been created) -> (click) Edit
-> (fillin Connection name) My Hotspot (the name can be any name including spaces
-> (fillin SSID) My Hotspot (This is what appears in the hotspot connections)
-> (Mode: select) Hotspot
-> (Device: select the NIC #2... not the already NIC connected to the Internet)
-> (The other items can be left at default) -> (click the tab) WiFi Security
-> (From the drop-down slect and fillin the preferred access code type)
-> (click) Save -> (click) Save

(Important: To make changes to the Hotspot configuration, the Hotspot has to be turned off first in Part 1)
Activate the Hotspot

-> (Go back to the Network icon in the top panel)
-> (click) Create New Wi-Fi Network
-> (Wi-Fi Adapter: Select the desired Wi-Fi adapter (the NIC #2)
-> (Connection: Select the Network Name you configured in part 2 above.
-> (click) Create

Your new network will now show availability in the list of wireless networks.  These connections are handled by your Hotspot and are invisible to your original provider.  I tested the steps on an internet Hotspot that has a web interface for the computer connection.  The Ubuntu Hotspot provides access without having to connect to the Web interface.
To turn off your Ubuntu Hotspot perform Part 1... click the ON/OFF button to OFF


nautilus: no modification, access dates for folder

Okay, my bad.

The image on the right appears to refer to an inode type as opposed to an html type.

It appears that the basic properties cannot be resolved with an inode type.


Anyone has a Decent Ubuntu 13.10 Apache 2.4 Multivhost setup?

I run VirtualMin on Centos. Works great, can create and delete servers, SQL databases and has IP sharing. Creates a new user for each site you are hosting and puts all their web data into that directory. Real nice solution. Free version is what I use. BTW don't see the need to get the corporate unless I want to rent out SSH accounts.