Can you move the swap FILE in 17.04 to an encrypted home directory or get rid of it completely?

When you are using Ubuntu with encrypted home directory, as you should know, your files within your home directory only are accessible when you are logged in, it means when you are booting up Ubuntu tries to access a swap file which is not available at that time.

So if you want to move the swap file into your home directory, you should disable it first, check this two link for that purpose: How can I turn off swap permanently? & How do I disable swap?.

After that you can move the file, then I believe you should turn the swapping on manually each time you login to  your account using swapon. Also remember if you logout, your home will be encrypted and your swap file will not be accessible anymore.

If you don't want to encrypt everything then just consider enabling home encryption, disabling swap file and creating a swap partition and encrypting it using luks.


where can I find the commands for the startup programs in Ubuntu 16.04?

If you are looking for the links to start installed graphical programs (that you can drag to the launcher bar or copy + paste to your desktop), they are in the directory /usr/share/applications/ and end with the suffix .desktop.

Example for automounting disks with Startup Applications :
udisksctl mount --block-device /dev/disk/by-uuid/01D0EED1CBC97EE0.
The hexadecimal UUID can be found with terminal command: ls -al /dev/disk/by-uuid/.


CompizConfig Settings Manager "Enhanced Zoom Desktop" feature doesn't work with Cinnamon 1.4 in Ubuntu 12.04LTS

Cinnamon is based on Gnome Shell, which uses Mutter. It doesn't use Compiz, so the settings you are changing will have no effect here. They will only apply when you use Unity.

To enable zooming in Cinnamon, open System Settings, and choose the Universal Access panel. There is a switch to turn the feature on, and you can set additional options there. For example, the Screen part option lets you split the screen in half so one half shows everything zoomed out and the other half has everything zoomed in (centred around your mouse pointer). This might be useful if you are looking for something more like a magnifier.

If there are shortcuts set for activating zoom and changing the zoom level, they will be listed beside the switch to turn Zoom on and off. If these shortcuts are not set, open the Keyboard settings panel, and look for Universal Access in the Shortcuts tab. You can set those shortcuts as you please. Unfortunately it is not possible to zoom in or out with the mouse wheel, but hopefully this will do the trick.


400GB is small these days.  Why would you want to split it up?  Keep it as a single volume.

I don't see the need to encypt ALL files.  Why not just keep the ones that need to remain private in a container file, and leave the rest as normal unencrypted files.  Less hassles in the long run.


Hibernating vs Shutdown/ Restart - which is better if suspend is not an option for SSD equipped systems?

It is OK to use hibernation on SSD. It is very "gentle", because you do it just a few times a day. It is much less writes that a working system is doing.

Resume from hibernation is fast and it is the best solution from all points of view.


Disabling Control-Alt-Delete shutdown is not working

Not sure if this works the same in 10.04, but in 12.04 this is controlled by keyboard shortcuts, and you can easily disable it using GUI:

Is a similar dialog available in 10.04? (try in System > Preferences menu)

Also, as Ben pointed out, even if you prevent Ubuntu from Logging out / Rebooting / Shutting down etc, the simple fact of Ubuntu receiving the Ctrl+Alt+Del event from the VM software may prevent your host OS from acting upon it when Ubuntu has the focus.

That means you may fix the issue in Ubuntu side, but you would still need to make sure that this event is not captured by the client, even if it has the focus.

In VirtualBox, there's an "Auto-Capture Keyboard" option that controls this behaviour.


Meltdown and Spectre when using encryption and VPN

Yes.

Disk encryption protects against access to the disk when it is not in use, for instance if someone steals your computer. VPN protects against anyone sniffing the wire.

Meltdown and Spectre can give attackers local access to the data, before it is encrypted.

For the system to use any kind of information, it more or less has to be available in un-encrypted form. Whenever it is available in un-encrypted form any attacker with superuser access to the computer can copy it at will.


Unable to login to 14.04 after successful installation

After upgrade to 14.04, I had changed the driver to NVIDIA proprietary for my GF119M [GeForce 610M] graphics card which was causing this issue.

I had to do a fresh installation of 14.04 and this time I continued with driver X.Org X Server (Open Source) from xserver-xorg-video-nouveau.

This resolved my issue.


apt-get doesn't install latest PHP 5.4 from oldstable sources

The reason you are unable to install the package you want is because it is no longer in the PPA that you added. The php5 5.4.23-1+sury.org for raring was removed from the PPA.

Here's what the PPA looked like on Dec 16, 2013 : http://web.archive.org/web/20131216111917/https://launchpad.net/~ondrej/+archive/php5-oldstable

You can see that at that time there was a raring package for php5 in the PPA. This is what your other servers have installed. If you look at it today, that package is not there. Ubuntu will not remove a package that has been installed; so your other servers will still have it.

The reason for removing that package from the PPA is probably because Ubuntu 13.04 has ran out of support. It stopped receiving updates in January. Anyone still on 13.04 should upgrade to 13.10.


dircolors/ls not being displayed correctly under NTFS drive

I had same issue and I found solution here: http://ubuntuforums.org/showthread.php?p=4779965

Note that on Ubuntu 12.04.1, you don't need to change your .bashrc (bash script already takes care of .dircolors file in home dir).

So just do:

> dircolors --print-database > ~/.dircolors
> vi ~/.dircolors

and change following lines:

STICKY_OTHER_WRITABLE 01;34 # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE 01;34 # dir that is other-writable (o+w) and not sticky


I just bought the Huawei Matebook D for university and I'm installing right now Ubuntu on a partition.
Everything works fine and there's no driver issues, the only thing that doesn't work is the mic hotkey, not a dealbreaker if you ask me!


How do I report an Ubuntu Software Center "Listing" problem?

This is a simple misunderstanding as there are many types of software in the software center. There is Free and Open Source software, that is not only free but licensed under a open source license.

Then there is software available to buy this is usually proprietary but sometimes open source as a developer can make it easier to access by putting a lot of work to get it into the software center and charges for the compiled version of the software.

Then there is proprietary software that was uploaded in the for "purchase" in the software center but the developers chose not to charge for the software aka "Free" as in the cost of money. This however will still list "Buy" and requires a Ubuntu One account, but no monetary transaction takes place.

Launchpad bug: https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/968974

Why do I have to 'buy' a free item in the Ubuntu Software Center?

But don't worry they aren't scams.


I think I acidentally removed Ubuntu/files by removing libc6

Try this:

Boot the Ubuntu Live DVD/USB.
Press Ctrl-Alt-F1
Use fdisk utility to list the partitions on a device.

sudo fdisk -l

Suppose it informs that / is /dev/sda1, continue running:

sudo mount /dev/sda1 /mnt
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
nano /etc/resolv.conf

In the open file paste these lines:

nameserver 208.67.222.222
nameserver 208.67.220.220

Control + O, save file. Control + X, close nano. Continue running:

apt-get update
apt-get install --reinstall libc6 libc6-dev ubuntu-desktop
apt-get dist-upgrade
exit
sudo reboot


After some time of working i did it myself. You can find the steps below.

Check which MPM apache is currently running:

apachectl -V | grep -i mpm

Result:
Server MPM:     prefork

List Available MPM Modules (Make sure mpm_worker is listed)

ls /etc/apache2/mods-available/mpm*

Result:
/etc/apache2/mods-available/mpm_event.conf  /etc/apache2/mods-available/mpm_prefork.conf  /etc/apache2/mods-available/mpm_worker.conf
/etc/apache2/mods-available/mpm_event.load  /etc/apache2/mods-available/mpm_prefork.load  /etc/apache2/mods-available/mpm_worker.load

List Enabled MPM Modules (If mpm_worker is not enabled we should enable it and disable the mpm_prefork module)

ls -l /etc/apache2/mods-enabled/mpm*

Result:
/etc/apache2/mods-enabled/mpm_prefork.conf -> ../mods-available/mpm_prefork.conf
/etc/apache2/mods-enabled/mpm_prefork.load -> ../mods-available/mpm_prefork.load

Disable MPM_PREFORK module

a2dismod mpm_prefork

Enable MPM_WORKER module

a2enmod mpm_worker

To check if Apache is running on MPM WORKER

apachectl -V | grep -i mpm

Result:
Server MPM:     worker

If you get this error after executing these commands:

Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP

Try to remove libapache2 package:

apt-get remove libapache2-mod-php5


Need to unplug computer to power it since I installed ubuntu 16 (dual boot)

With the Samsung SSD, you'll want to check that it has the latest firmware. Learn how to do this by looking at http://www.storagereview.com/how_to_upgrade_samsung_ssd_firmware.

With Windows, you'll want to turn off hibernation. In an elevated command prompt terminal, type powercfg -h off.

With Windows, you'll also need to turn off fast boot. You'll find the setting in the power control panel.

Cheers, Al


Three fingers swipe and page back and forth in browser on Ubuntu 13.04

I don't have much time now to write an elaborated answer, but you should have a look at Easystroke.
I use it and it's really great.

I use motions such as

"twofinger-doubletab + stroke" to switch to another workspace (a bit "OSX-like")
the corners of my touchpad are assigned to functions as "next/previous track", "workspace switcher" and "shot launcher"
thee finger tab is set to "spread windows" (like super+w)
... (you can also combine geastures with a modifier key for even more possibilities)


On the page The Ubuntu lifecycle and release cadence is provided information that gives exact answer of this question:

  LTS or ‘Long Term Support’ releases are published every two years in
  April....

Once a new release is launched, the Software Updater will ask you to update to that new release.


Default user in Ubuntu fresh installation

In Ubuntu the first user or owner of the system is automatically added to the sudo group and can act like as an sudo member. There two ways in which you can act or exercise sudo or root powers, these are:

When you run a command that needs sudo privileges like say:

sudo apt update

here you will be asked for password which will be used to check if you belong to the sudo group like the root user, if so the command will run else it will not

When you switch to the root user with the command:

used when root account has been unlocked and here root password will be needed

su -

used when root account has not been unlocked you will be asked for your password to check if you belong to root group

sudo -i

Adding a new user to Ubuntu does not change that, and if you want that user to have root powers or sudo powers you will need to add the user to the sudo group with:

sudo usermod -G sudo -a user


No editors installed to fix sources list

Try using vi:

vi

vim - Vi IMproved, a programmers text editor


Try Kid3 which is available in Ubuntu Software Center. It has the ability to add album artwork image.


How to import and export database from SQL SERVER to MYSQL SERVER vice versa in mono2.2 with gtksharp2.10 in ubuntu?

As a starting point, dump the SQL Server database as explained here. Then, import the database into MySQL using the mysql utility.


Failed to Start mysql community Server (5.7)

Okay, I fixed that by adding innodb_force_recovery = 1 under [mysqld] in my mysqld.cnf File. You can try numbers from 1 to 10 because it may not work first time. Also for people with old mysql versions you should do that on your main config file because old versions have config files in etc/mysql/my.cnf but 5.7 mysql version have them in etc/mysql/mysql.conf.d/mysqld.cnf
Answer taken from here. After you do your edits try and start the mysql server using sudo systemctl start mysql


I have Ubuntu-14.04 installed. How do i install Windows 7 on a separate partition?

I'm not familiar with efuse.  However, you can typically install Windows after Ubuntu by following these steps:

Back up your current Ubuntu installation.  Unless there isn't anything on there you would be sad to lose, you should do a backup.
Get an Ubuntu Installation CD or Live Boot USB. (You'll need this because Windows will erase grub, the Ubuntu boot-loader).
Use a partition editing utility to make a partition for Windows to use.  I like gparted, it is an easy to use partition editing utility with a graphical user interface.
Shutdown Ubuntu, reboot using your Windows Installation Media, and then install it onto your newly created partition.
Shutdown Windows, reboot again, this time using your Ubuntu installation media, but don't install Ubuntu; instead select the option to try Ubuntu before installing. When you have an Ubuntu Desktop up, use the Boot-Repair utility to get grub working again, and you should be all set.

I realize this description is brief, but there are some very good tutorials on this topic already out there:

There are some excellent answers to your question here on Ask Ubuntu.
This is another tutorial on the whole procedure worth looking at.
This is a tutorial about how to recover grub after installing Windows.

Hope this helps.


How to fix Thinkpad FnLock LED behavior?

I had the same issue, it was a BIOS problem, resolved by updating to the latest BIOS.
I'm not sure if Ubuntu automatically handles checking and updating Thinkpad BIOS versions. If not:

Check your current bios: sudo dmidecode -t bios -q
Search for new BIOS versions here: https://pcsupport.lenovo.com
(search for product based on model ID > drivers and software > choose
firmware/bios update)
If there is a newer version available, download the .iso image file
Extract the bios.img from the .iso file e.g. using geteltorito (if
available on Ubuntu): geteltorito.pl -o bios.img FIRMWAREUPDATER.iso
Create bootable image on USB stick: sudo dd if=bios.img of=/dev/SDX
Reboot, selecting USB stick as bootable device, then follow bios
updater prompts


You just need to turn the Unity plugin back on. The problem is this is a pain in the bottom because you've now got no graphical method to do this. So:

Try to open a terminal with Ctrl+Alt+T.

This may not work but you can try right clicking on the desktop and selecting "Open terminal here." Otherwise, you may need to change to a "hard" terminal by pressing Ctrl+Alt+F1 and log in.

Install compizconfig-settings-manager by running

sudo apt-get install compizconfig-settings-manager

Then run it with this:

DISPLAY=:0 ccsm &

The first part tells the terminal which display you want it to load on (otherwise it won't have a clue).

If you switched to a TTY in step 1, switch back to the graphical server by pressing Ctrl+Alt+F7 (or Ctrl+Alt+F8 sometimes).

There there should be a CompizConfig Settings Manager waiting for you.

Find the Unity plugin. Enable it. You will be asked "Ubuntu Unity Plugin requires the plugin OpenGL. Enable Ubuntu Unity Plugin / Enable OpenGL"

Everything should spring into life but if it doesn't, you might have to restart. You can do that by going back to the terminal and running sudo reboot.


What updates is 'Ubuntu Software' installing?

They're two different programs that do similar things.

Software Updater is the update-manager package (Gnome apt) and uses the apt database.

The Software Center (Titled "Ubuntu Software") is the gnome-software application and doesn't seem to use the apt database.  But if you see "OS updates" under the "Updates" tab, you can click on it (the text) and it will show you what will be installed.

Why the two show different things is probably in the way they pull their package metadata.

Also, you can view the history of installs and updates here /var/log/apt/history.log


How to increase boot partition on Ubuntu Server, via SSH?

Sorry, but it is very likely you can't.

Resizing partitions cannot be done while the partition is in use. While your system might tolerate you unmounting /boot at runtime, in order to resize it, you need some free space directly after or before that partition, which in all likelyhood is taken up by your /, which you cannot unmount while the OS is running.

There's one chance this might work after all, but it depends on you having a swap partition adjacent to /boot. If that's the case, you can unmount /boot and disable swapping, then remove your swap partition, use that space to grow /boot and create a new, slightly smaller swap partition in the leftover space. Another question here on AskUbuntu has all the details on that.


how to block ip address with IPTABLES on ubuntu 14.04 desktop?

Install ufw (ufw wiki), it makes things easier.
More info here.


Could you please clarify whether you want mnemonics (keyboard shortcuts for gui widgets i.e. ctrl-q) or accelerators (keyboard shortcuts for activating menu items i.e. alt-f q). As far as I understand these are two different things, so setting a mnemonic for a menu item will not also form a accelerator for it.

In any case, for the accelerators you can form them by simply creating your menu items with a different function: Gtk.MenuItem.with_mnemonic("_File"); in stead of Gtk.MenuItem.with_label("File"). It is then re-definable with e.g. the file.set_label('Fil_e') function

For the mnemonics, I'm not exactly sure why it doesn't work, as I'm totally new to vala. But I was able to piggy bag of of this c-example and get it to work using accelerator groups in stead of the accelerator map. So I replaced

// Register a new accelerator with the global accelerator map
Gtk.AccelMap.add_entry("<MyWindow>/File/Quit", 'Q', Gdk.ModifierType.CONTROL_MASK);
quit_mi.set_accel_path("<MyWindow>/File/Quit");enter code here

with

var accel_group = new Gtk.AccelGroup();
this.add_accel_group(accel_group);
quit_mi.add_accelerator("activate", accel_group, 'R', Gdk.ModifierType.CONTROL_MASK, Gtk.AccelFlags.VISIBLE);

and that seems to do the trick.

I hope it helps.
Regards TLE


Every binary 'wine' executable "does not exist"

Knackered path? Wang echo "$PATH" into a terminal and see what it says. I expect something along the lines of:

/home/oli/bin:/usr/local/bin:/usr/bin:/bin:/usr/games

The repo-installed wine lives in /usr/bin so if that segment of the path is missing, it's going to break things. That said, I'd expect that to break a whole lot more at the same time too. Perhaps the issue is so local because there's something squiffy in your ~/.bashrc


Ubuntu hangs at Plymouth screen during shutdown

From what I know, there is a bug with some graphic cards you can check here, I've tryed kubahaha's way and it worked for me:

Type in terminal:

sudo gedit /etc/default/grub
Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change it to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
Save and close the file.
Finally, in terminal: sudo update-grub

Similar questions with this bug:

Ubuntu 12.04 does not Shut Down at all and gets Stuck on 3 or 4 dots
Shutdown does not power off computer


Ubuntu 16.04.5 freeze after suspend | Black Screen

Okay, as I know, it was due to multiple linux(ubuntu) distro in my system. My GRUB was in Ubuntu 18.04 and the problem arose in Ubuntu 16.04.5.

I figured out simply by removing ubuntu 18.04 as my primary OS is 16.04.5 and sudo update-grub.

  Note: removing 18.04 and updating grub might encounter some problem like Grub Rescue on Boot.
  Read this: How do I fix "Grub Rescue"? Uninstallation?


Unable to start XAMPP using sudo in Desktop Entry

To run applications in distributions like Ubuntu where root account is disabled by default, sudo is used. When sudo with a command is run in Terminal, it asks for the password. But when it is used in Desktop entry, there is no way by default to provide that. However, to run the application as superuser using a Desktop entry, below methods can be adopted.

Using Terminal Key:

The Terminal key allows the application to execute in Terminal,i.e., the command line used in Exec would run as if it was executed in terminal opening a new terminal window and allowing user to enter the password. The key should be appended like this:

Terminal=true

But this method has an issue. Since it opens an extra application, i.e. the terminal window, it results in extra RAM and CPU cycles consumption.
Using pkexec:

Another way is to use pkexec. pkexec opens a graphical window to provide password. But it doesn't allow to run X11 applications as another user since the $DISPLAY and $XAUTHORITY environment variables are not set (Reference: Radu Rădeanu's answer).

However the variables won't be expanded in desktop entry since it ain't a shell. Therefore, you can run the command using shell, i.e.

Exec=sh -c 'pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /path/to/executable'

You can use bash or any supported shell instead of bash.

But this  would create an sh or bash process which would wait for the application to exit, thus consuming some memory.
Editing /etc/sudoers:

Some applications such as XAMPP needs to be run as superuser. You can allow some specific applications to run without even asking for password by editing /etc/sudoers and adding the application there.

To allow all sudoers to run the application without password, append the below line to /etc/sudoers.

%sudo ALL = (root) NOPASSWD: /path/to/application

To allow specific user in sudoer to run the application without password, append

USER ALL = (root) NOPASSWD: /path/to/application

for example:

kulfy ALL = (root) NOPASSWD: /opt/lampp/manager-linux-x64.run

To append through command line, you can use tee with option a. Example:

echo 'kulfy ALL = (root) NOPASSWD: /opt/lampp/manager-linux-x64.run' | sudo tee -a /etc/sudoers

Warning: Don't overwrite the content of /etc/sudoers, otherwise you won't be able to perform sudo actions. Only append the above line. It is recommended to have a backup of that file.

Footnote: To use XAMPP Control Panel manager-linux-x64.run should be executed instead of xampp-control-panel.py. The earlier is an executable binary file and responsible for showing the GUI while the Python script is a part it, i.e. it is not the complete Control Panel.


Error message while installing any software?

Software center is telling you that you must also install:

libavcodec-extra-53 (>= 4:0.8.1)
libavcodec-extra-53 (< 4:0.8.1.99)
libavutil-extra-51 (>= 4:0.8.1)
libavutil-extra-51 (< 4:0.8.1.99)
libgsm1 (>= 1.0.13)
libschroedinger-1.0-0 (>= 1.0.0)
libva1 (> 1.0.15~)
libvpx1 (>= 1.0.0)

The numbers in the parentheses specify constraints on the versions of the additional packages desired.


Can I view the password of a mounted encrypted volume?

Full disk encryption uses cryptsetup to manage LUKS encrypted devices and not ecryptfs and ecryptfs-unwrap-passphrase is a part of ecryptfs-utils which I guess is not installed on your system and has nothing to do with your setup and encrypted volume.

The answer to your question is: No you can not see the passphrase of an encrypted LUKS volume.

What I suggest is using:

sudo cryptsetup open /dev/sdXY new_mapper

which /dev/sdXY is your encrypted partition, it will ask for your user password (sudo) and then for the passphrase. try different possible passphrases to find the correct one.

If your passphrase was wrong you will get an error:

No key available with this passphrase

otherwise (if it was correct) an message will show up complaining that device is already in use. then you are good to go and safe to reboot knowing what your passphrase is.


Microphone not working on 18.04 for any web or desktop conference app: No one can hear me

Your Ubuntu is listening to the stereo mic with left and right channels. You can eliminate one channel (either left or right).

First you need to run Pavucontrol by running on your terminal:
pavucontrol

If Pavucontrol is not installed, you install it with this command:
```
sudo apt-get install pavucontrol
```

Go to the input tab and click on the lock icon.

You should now see the left and the right sliders. Slide one slider to the left until it's 0%

Chrome and some other apps may adjust your volume automatically, undoing step 3. To prevent this behavior in Chrome, install the "Disable Automatic Gain Control" extension.


You may need to install alacarte from the Ubuntu Software Centre or using:

sudo apt-get install alacarte -y

The instructions covered in the question you linked seem very descriptive for the rest of the process.


Where is the CD / DVD Burner application

The way i use the nautilus cd/dvd burner is quite easy.

Select files and folders that you want to write to disc in nautilus.
Right-click those selected files/folders to get the context menu to appear.
In the contextual menu choose "Send to... " .
When the "Send to.." box appears,choose "cd/dvd creator" as the destination.
Also choose new cd/dvd right below and remove the check from the compression checkbox.
Press the send button.
You will now see a new window with the selected items, you can change the title and add or remove items to write to disc.
When you are ready to write the disc, just press write to disc button.


What can I do if Synaptic can't get the latest version of software?

The best way to get the latest version is to get it directly from the authors' website.

It takes time and energy to turn software into nice Ubuntu packages. Sometimes it can be a while before it turns up in the Ubuntu repositories. You can try enabling the less-stable repositories, such as backports, but in this case, SWIG 2.0.9 is not in there. Sometimes there are non-official repositories, but I couldn't find one from a quick Google.

There are a few negatives to this. The software will usually not auto-self-update, unlike repository packages. The software has not been tested by Ubuntu devs for compatibility, so there might be a few glitches. Finally, sometimes dependencies are packed into the software itself, so the manual download might be larger than a repository version.

New versions of Ubuntu itself come out every six months. In each Ubuntu release, new versions of software that add new features are generally not provided. Generally speaking, within a single Ubuntu release, only security and serious stability bug fixes are rolled out. Upgrading to the next release upgrades software to the versions that were considered stable when that release came out. You can sometimes use backports and PPA's to get newer software within a single release, but generally speaking if you need the latest version of a program, you'll likely need to download its source code and build and install it yourself (see also this howto).


Sharing Connection to other PCs (Via Wired Ethernet)

Sharing internet connection via ethernet is one step more than doing it wirelessly. Here are the steps:
PC Sharing Connection
PC that will share connection

Open your Network Manager via the Network Icon on the Unity Panel:

Go all the way down to the Edit Connections option and click on it.

You will appear on the Wired Tab. Each Wired connection is by default related to each Ethernet Wired NIC card you have. For example if you have 2 Wired NICs you will see 2 options here. In the image below you see one since this is a Laptop and they normally have one. Select the Wired connection you wish to edit and double click on it or select the EDIT button.

You will appear on the Wired Tab (Again). This time, go to the IPv4 Settings if you are using IPv4 or IPv6 if you are using that one. On the Method option select Share to Other Computers. Now SAVE. You are done.

This will do all the stuff that was normally done 6 or 7 years ago with all the terminal commands and iptable stuff.
Now just connect the 2 computers and you are done.
NOTE: If both computers have a Wired Gigabit Ethernet NIC then you can actually connect them directly since most 1000BASE-T have automatic MDI/MDI-X. If not just connect them to your switch, router, hub, whatever and that is all.
Client PC
PC That will receive Shared Internet Connection (Depends on Network Setup)

Open your Network Manager via the Network Icon on the Unity Panel:

Go all the way down to the Edit Connections option and click on it.

You will appear on the Wired Tab. Each Wired connection is by default related to each Ethernet Wired NIC card you have. For example if you have 2 Wired NICs you will see 2 options here. In the image below you see one since this is a Laptop and they normally have one. Select the Wired connection you wish to edit and double click on it or select the EDIT button.

You will appear on the Wired Tab (Again). This time, go to the IPv4 Settings if you are using IPv4 or IPv6 if you are using that one. On the Method option select Manual. The options in Addresses will be editable now. Add the IP you want, the Mask you need and the IP of the PC that is sharing the connection. In this case I said that the IP of the Client PC will be 192.168.0.2, the Mask is 255.255.255.0 to imply that is a Class C (LAN) network and 192.168.0.1 to mention that the computer sharing the connection has the IP 192.168.0.1 with it. Additionally add the same IP of the computer sharing the connection to the DNS Servers (As shown in the image).

You can also (Depending on the network setup) select instead of Manual, select Automatic and just put the IP of the computer sharing the Internet in the DNS Servers section.

Note that this depends on the network setup. For example if you have both PCs connected to a switch or router, the switch/router will take care of the Client, so you only need to setup the PC Sharing Internet and just connect both to the switch/router. If by chance you are connecting the PCs directly together then it is better to do the additional setup of the Client.
In most cases, you will not need to setup the client, just connect to the network and done. Ubuntu will take care of everything. I just added the Client part for specific cases where problems might arise.
This should cover all the possible scenarios in a home LAN when one wants to share the internet connection over Wired cable.


Try dpkg -l | grep linux-image that does the trick for me. To get the current kernel that is in use you can run uname -r.
MAKE SURE NOT TO REMOVE THE CURRENT RUNNING KERNEL

To remove a kernel you can use sudo apt-get purge linux-image-3.13.0-66-generic of course replace 3.13.0-66 with the version you want to remove.
You can remove multiple kernels with a command like sudo apt-get purge linux-image-3.13.0-{66,67}-generic (just replace 66,67 with the versions you want to remove)

The dpkg -l | grep linux-image will show you two version for each kernel, for example linux-image-3.13.0-66-generic and linux-image-extra-3.13.0-66-generic you can just ignore the second one (the one with -extra) as it will get removed by the apt-get purge command.

Example for me:

pascal@Lenovo-2013:~$ uname -r
3.13.0-68-generic
pascal@Lenovo-2013:~$ dpkg -l | grep linux-image
ii  linux-image-3.13.0-66-generic                         3.13.0-66.108                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-67-generic                         3.13.0-67.110                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-3.13.0-68-generic                         3.13.0-68.111                                       amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-66-generic                   3.13.0-66.108                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-67-generic                   3.13.0-67.110                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-extra-3.13.0-68-generic                   3.13.0-68.111                                       amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-generic                                   3.13.0.68.74                                        amd64        Generic Linux kernel image
pascal@Lenovo-2013:~$ sudo apt-get purge linux-image-3.13.0-{66,67}-generic
[sudo] password for pascal:

After that it will ask your confirmation for the uninstal.


Why does Ubuntu 16.04 hang up on splash screen when starting?

I have found my solution. I ran sudo apt-get update. To 'apply' the updates, I went to Ubuntu Software and applied the OS updates from there. Once the update had completed, I restarted. There were no problems. I restated one more time to check for stability and it was fine - no errors.


How can one configure Atril to correctly display the diacritics in an epub document in spanish language?

This is what worked for me:

First. Unpack the epub file (rename it to .zip and then unzip it)

Second. Put the following line as the first line inside all html files
inside the 'OEBPS/Text' folder:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
(you can use the 'sed' command for this step)

Third. Pack the files using the following command (there's a specific
way of doing it, just zipping the file won't allow the apps to recognize
the epub format):
zip -rX ../myfile.epub mimetype META-INF/ OEBPS/

Probably this will be solved in some Atril's future release. By now
you can use the procedure above and maybe create a script to automate
the process, just in case you have too many files with this problem.


collect2 error while compiling fortran code

I linked the libraries and included the netcdf.mod file and then compiled as given below:
gfortran  -o xy -I/home/dd/local/include/ simple_xy_wr.f90 -L/home/dd/local/lib/  -lnetcdf

I get the following output:
SUCCESS writing example file simple_xy.nc!


From a chat message from destroll:

Log in using the recovery mode. Then default to root prompt. Mount the alternate ISO and run the upgrade using the command ./cdromupgrade.


Accessing SSH server outside the local network

I found out about the VPN client that my university offers for outside access (CISCO VPN) and from there onwards it was easy to access the SSH server.


I'm assuming that you're using Gnome3 as your question is tagged with Gnome3

1 Open Settings (SUPER, they type 'settings')

2 Keyboard

3 Shortcuts Tab

4 Custom Shortcuts

5 Hit the + button

For Nautilus the command is nautilus. There's actually a pre-made shortcut for terminal under the "Launchers" option on the left side, you just have to set it to the button you want.


Use gparted to shrink Ubuntu partition and make enough unallocated space for windows. Insert Windows installation DVD or USB. Power on the PC and bring BIOS menu to boot into Windows installer. During installation go to advanced option, create new primary drive in unallocated space and install Windows in that drive. Be careful to not touch the Ubuntu drive. Proceed with installation. After installation is complete you have both Windows and Ubuntu on your PC. To switch between them you have to shutdown the PC. Then power it on and bring the BIOS menu. Then change the boot order. That's it.


How do you view the screen of a guest OS in Virtualbox

The reason for this behavior lies in the fact that you are using vagrant, which is by default assuming a "headless" situation (i.e. a server accessed via ssh).

You can edit the Vagrantfile, around line 50 you will find

# config.vm.provider :virtualbox do |vb|
#   # Don't boot with headless mode
#   vb.gui = true
#
#   # Use VBoxManage to customize the VM. For example to change memory:
#   vb.customize ["modifyvm", :id, "--memory", "1024"]
# end

change it so

config.vm.provider :virtualbox do |vb|
  vb.gui = true
end

and with the next vagrant up you will get a GUI.


How to close a VPS and leave programs running (using "screen" command)?

If I understand correctly you want to close the connection to your VPS (and not the server itself).

Follow those steps after having logged in to the server:

start screen: screen
start your command: session
detach screen from the ssh-session by pressing ctrl+b then d
now you can terminate your ssh-session
after logging in again some time later type screen to reattach the screen session to the ssh-session


How is SFS partition different than other?

These are dynamic disks, fairly common with Win 7. Usually if you try to create a 5th partition it offers to convert to dynamic. What it means is that you could have other partitions not shown in the MBR partition table (that Ubuntu won't see).

Check this out for some options for converting back: http://ubuntuforums.org/showthread.php?t=1692248


Display dims when not in use and it turns off when not in use or while watching movies

Click on the Dash Home button and type screen. and click on the Screen Control Panel that comes up. There you can tell Ubuntu not to dim and and then turn off the monitor (but not brightness, you may be able to do that by pressing marked keys on your laptop). I'm not aware of software to do that on 11.10.

If you take Ross Fleming's advice and update to 12.04 you can use the Brightness and Lock control panel to control screen brightness and when the monitor is turned off.


Upstart: report (email, log) on respawn and failure

Upstart automatically logs when jobs are respawning and when it gives up on them.

[266017.061509] init: foo main process (11582) terminated with status 1
[266017.061684] init: foo respawning too fast, stopped

So just watch the logs for these messages and send an email alert when they are seen.


How to get GeForce card playing nicely with RadeonHD card on 12.04 64bit

You can't have 2 video cards from 2 manufacturers in Linux because the kernel requires a module to operate the video card that is specific to each manufacturer and you can only load one at a time.

You can alternate between the cards by switching the drivers but you can't use both at the same time.


openssl passwd crypt algorithm and salting function

You can get the source via apt-get source openssl. Documentation? That's what search engines are for.


I keep losing connectivity with an RTL8723E wireless card (12.04)

I would suggest you to install both drivers from this page even if you don't need/have bluetooth. That worked for me. Here you have the link:

Wireless card Realtek RTL8723AE-BT is not recognized


F10, F11 ,F12 key now allowed Ubuntu 18.04.1 LTS

The F keys have two functions each, one is the shortcuts we know and use, and one is the built in with the manufacturer, in the BIOS there is a setting to which of the 2 is the default, i.e. which one will execute when you press one of the F keys, and the other use is accessed via pressing fn+F?.


In Ubuntu 13.10, none of the hotkeys of LibreOffice works in non-English keyboard layout

It is a bug, see here:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1246583
Should be fixed in next version

I can add I have the same issue in UBUNTU 13.10 with Apache openoffice 4.0.1

EDIT:
It has now been fixed in the new LibreOffice beta 4.2 version.
It can be downloaded from the Libreoffice website.


"find: missing argument to `-exec'" when using "-exec rm -f {}\"

You missed the a ; at the end (and a space too between {} and ;). The correct command is:

find . -type f -name "IMAG1806.jpg" -exec rm -f {} \;

; indicates the end of -exec predicate of find.

Also note that we have used \; i.e. \ in front of ; to escape the interpretation of ; by shell, otherwise shell will treat ; as end of the whole find command and find will throw the same error. You can also use ';' instead of \;.

You were using \ at the end, this indicates your shell will continue to take input via PS2 (indicated by >), you typed IMAG1806.jpg again, so the whole command becomes:

find . -type f -name "IMAG1806.jpg" -exec rm -f {}IMAG1806.jpg

As you can see this is not a valid command at all with IMAG1806.jpg at the end, no closing of -exec predicate and without a space between {} and \;.


Unable to change the root password in Windows 10 WSL

There is a simpler method.

Open cmd.exe
Type wsl -u root
Type passwd username and change the password
Type exit
Type wsl
Type sudo echo hi to confirm the new password works.


I assume you have already installed Compiz. If not:

sudo apt-get install compiz

gsettings has an equivalent operation to the mateconf-editor key-change operation you had to do to set the window manager to Compiz. Now, to activate Compiz, simply run the following terminal command:

sudo gsettings set org.mate.session.required-components windowmanager compiz

This will change the windowmanager key to compiz in the org.mate.session.required-components schema. Next, I highly recommend installing CompizConfig Settings Manager:

sudo apt-get install compizconfig-settings-manager

With this, you are done. You may either run compiz --replace in the Terminal to start Compiz, or simply reboot your machine. I recommend the latter, as the former may have problems.


Netbeans 7.1.2 not available after installation in Ubuntu 12.04

Copy the .sh file to the home directory and  in terminal enter

chmod +x netbeans-blabalbla.sh

After that  go to the netbeans file in home directory and double click and select run in terminal. This procedure worked for me.


Installing Office 2010 on Ubuntu 15.04 using Wine

Short version

Switching to the latest Wine version (1.7) and installing winbind were additional steps needed.

Long version

The instructions are for Ubuntu 15.04 64bit. This borrows heavily from Crag Gomez's guide, so thanks to him for a lot of these instructions.

Install the latest version of Wine - dotnet20 installations cause issues otherwise

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install wine winetricks

Install mesa OpenGL - may already exist, so the below commands would simply state that.

sudo apt-get install mesa-utils mesa-utils-extra libgl1-mesa-glx:i386 libgl1-mesa-dev

Create softlinks for the 32bit OpenGL librariies (needed only for 64 bit systems)

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/mesa/libGL.so
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so /usr/lib/i386-linux-gnu/libGL.so

Create a new WINEPREFIX for Office - this will be the directory that contains your files. You can use any directory, but I followed the standard Wineprefix directory (add your username).

export WINEPREFIX="/home/<username>/.wineprefixes/office2010/"

Additionally, create that directory:

    mkdir -p /home/<username>/.wineprefixes/office2010/

Set the WINEARCH to 32 bit. Office 10 32 bit is the version that works best.

export WINEARCH="win32"

Install winbind. Office installation stops midway if this is not done

sudo apt-get install winbind

Install dotnet20, msxml6 and corefonts modules using winetricks.

Once you run the command you will be asked if you want to install a Mono package as well as a Gecko package - select no for both. wine-mono and wine-gecko should have already been installed when you installed wine

winetricks dotnet20 msxml6 corefonts

Do the actual Windows install.

Browse to the folder with the installation media and run

wine setup.exe

Change settings for libraries in the wineprefix after installing

Run winetricks
Select Run winecfg. select the "Libraries" tab.
You should see msxml6 (native, built-in) in the Existing overrides section. Highlight it and click Edit and select Native (Windows) and click OK. Now, it should show up as *msxml6 (native).
Then add the riched20 and gdiplus libraries from the New override for library section and make sure these are also set as "Native"

Your office programs should show up in the Unity lenses.


Have you tried to grub? Perhaps updating/repairing it work.

http://ubuntuforums.org/showthread.php?t=2041483


How does a Python DBus session service know the user is logging out?

You can either do something like this:

bus = dbus.SessionBus()
bus.call_on_disconnection(your_method_to_do_stuff)

Or you can connect to the NameLost signal on the org.FreeDesktop.DBus interface. The former doesn't let you pass additional arguments, and your method can only take the bus connection object itself as an argument. The latter is a bit more complicated, but doesn't seem to allow passing in other arguments of your own accord either, and you are limited to taking the arguments which the signal itself sends, which in this case is a string of the message bus name your process formerly owned.

On the other hand, if your process does stay around after that, you should theoretically get a SIGKILL at some point as well.


The way I'd approach that is to open Settings -> Keyboard -> Shortcuts -> Custom, and add a new shortcut, linking it to the following command

bash -c "xdotool getactivewindow key F11"

You will need xdotool to be installed , so run sudo apt-get install xdotool.

This has limitations, howver. This works only in GUI, won't work in TTY1 or terminal emulators.


How can an application receive system environment variables, even when launched from a Favorites icon?

Set the variables in ~/.profile instead of ~/.bashrc.

You may want to study the page EnvironmentVariables for explanations.


Studying the image is above my paygrade. However, the first step is to isolate the cause of the problem.

"Boot failure with Kernel 4.x" implies that your system boots with 2.x or 3.x. However, you write that your workstation also isn't booting with 3.9x. This suggests that your system doesn't boot regardless of the Kernel.

If you want to test this, then try installing a system with 2.x or 3.x again. If these also fail, then the cause probably isn't the kernel.

Possible causes:

Hardware Failure

Could be USB media/CD-DVD Drive/Memory/CPU. etc...

Bad Install Media (Check MD5 or SHA Checksum)
BIOS Setting

Another test is try a non-Linux distribution, something like PC-BSD. If this boots, then this suggests that the problem might be related to the Linux kernel. If it doesn't boot, then this suggests hardware failure.


as this link says, it's: sudo apt-get install --no-install-recommends kubuntu-desktop. it still works, just tried it.


Is there any ability to set my primary monitor?

Turn off the current Primary monitor in "Displays" application and apply.

The secondary monitor will become the Primary. Then simply turn the old primary monitor again to have both displays active again.


You don't need to use pip3 to install Django in Ubuntu 16.04 and later releases because Django is in the default repositories. Open the terminal and type:

sudo apt update
sudo apt install python3-django

If you want to install Django using pip3 anyway, you should update pip3 to the latest version in order for pip3 to be able to install Django and its dependencies. Run these commands:

sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install django

You can verify that the installation was successful by typing:

django-admin --version


just sudo apt-get install exfat-fuse exfat-utils on >= 13.04 it's already there

NOTE: do not install fuse-exfat with those ... that's a source of a package conflict


dual boot problems, grub 2 fails to install

I have two suggestions:

Try running Boot Repair from an emergency disc. This might fix the problem, but there's a chance that it won't. If it doesn't work, save the URL that Boot Repair provides. If the next suggestion also doesn't work, post the URL that Boot Repair gave you, along with any additional observations. The URL will point to a document with partitioning and other configuration details for your computer, which will be helpful in doing further diagnosis of your problem.
Download the USB flash drive or CD-R version of my rEFInd boot manager and prepare a suitable medium. Try booting with it. If rEFInd lets you boot both Windows and Linux, install the Debian package version of the program from Ubuntu. This will then take over from GRUB 2 as the default boot manager. (It's essentially maintenance-free, unless something else gets in the way or you have a problem with a kernel bug or the like.)


How do I remotely control another Ubuntu desktop from Ubuntu?

Overview of Solution
You need to change some settings on your host machine (to enable desktop control) and create a Remote Desktop Client profile on your client machine in order to connect to the host machine and ultimately view and control the host machine's desktop.
And yes, it is possible to use Remmina Remote Desktop Client on your client machine.
Enable Remote Control of Host Machine
Do the following on the host machine:
vino-preferences

vino-preferences also in Dash under Desktop Sharing

Tick Allow other users to view your desktop
Tick Allow other users to control your desktop
Tick Require the user to enter this password
Enter a difficult to guess passphrase
Close

Create Remote Desktop Client profile on your Client Machine
Do the following on the client machine:
remmina

remmina also in Dash under Remmina Remote Desktop Client

Ctrl+N or Connection > New

Fill in your IP address [123.123.12.3] where it says Server
Connect

View and Control Host Machine
On the client machine, when asked for the VNC password, enter the passphrase you previously entered into the host machine.
If successful at this step, you should now be viewing and controlling the host machine's desktop from your client machine.


Is there a problem connecting to archive.ubuntu.com?

You have given very little useful information: which server are you using (because archive.ubuntu.com itself is up as you can see by typing this into the adressbar of your browser)? How did you try downloading with the terminal?

Nevertheless: you could try the following:
Open software center; go to 'Edit'->'Software Soures...', click on the selection menu of 'Download from' and choose: 'other'. Then click on best server.

If you had a server that is not reachable, this should give you a working one.


Ubuntu doesn't remember my keyboard layout options after reboot

You need change /etc/defaults/keyboard to:

XKBMODEL="pc105"
XKBLAYOUT="us,ru" <-- chagne appropriate to your language
XKBVARIANT=","
XKBOPTIONS="grp:caps_toggle,grp_led:caps"

or remove any entry in it since they are interfere with GUI tool from Unity/Gnome


Add filename search into the gnome-shell bar

Open Settings, go to the Search section and toggle on "Files".

Then click on the gear symbol at the bottom and toggle on/add locations you want to be included for searching. Then reboot.

If it fails to search for files from the locations you just set, see this: GNOME 3 search bar with no results.


Swap partition not used on fresh Ubuntu 14.04

cryptswap1 (skipped, device /dev/disk/by-uuid/df55bf68-b824-4f21-83f3-dfa80a0b74ab does not exist)

Whatever volume had UUID=df55bf68-b824-4f21-83f3-dfa80a0b74ab, when that /etc/crypttab entry was generated, doesn't exist any longer.

How to fix it

Run sudo swapoff -a just to make sure that all swap spaces are released. The output of swapon -s should now be empty (apart from a column header line).
Remove (or comment out) the lines about swap in /etc/fstab and /etc/crypttab. Make back-ups, if you're unsure.
You say you want to place swap on /dev/sda8. Ignore it's current content for the remainder of these instructions; treat is a garbage data. You will lose all data on sda8 in the process! Make a backup, if you value it!
Set up a new swap space on /dev/sda8, either unencrypted or encrypted.

My previous advice (please use the above one instead)

Since raw devices (or raw dm-crypt devices) don't have UUIDs, you'll need to resort to other device identifiers. Kernel names (/dev/sd* and friends) aren't stable across boots, so your best bet is to find the entry inside /dev/disk/by-id/, that links to your intended encrypted swap partition. Those are stable enough in my experience (barring changes in the kernel or udev scripts).

Assuming that /dev/sda8 is the intended place for the encrypted swap partition, you can find it's ID-based path(s) in the output of

ls -l /dev/disk/by-id/* | grep sda8

or more elaborately with:

find -L /dev/disk/by-id -samefile /dev/sda8

You can use one of the results for the second column of the crypttab entry.


How do I open under VNC a Firefox window that belongs to a Firefox session running outside of VNC?

Try either firefox --display=:0 or DISPLAY=:0 firefox. This should theoretically work over SSH as well as over a second VNC display. However, I have not tested this solution.


NVIDIA installer fails when upgrading kernel

You can change which gcc version you use by running
sudo update-alternatives --config gcc

It will list you installed version of gcc and you can set any gcc version as default.


Ubuntu server desktop environment, minimal install

A "minimal" install of server software, doesn't include a GUI. You have to install and configure a desktop environment. Minimal installation gives you what's called a "head-less" setup. Everything is configured via the command line, or you SSH into the box and configure.


How do I get my Lenovo 100S to boot from USB?

It turns out these computers require a hybrid of 64 and 32 bit images.

I found these instructions to be most helpful.

I was having trouble creating the bootable USB with Ubuntu, because it gave me a permissions error when I tried to replace the 64 bit boot loader with a 32 bit one. Rufus on Windows 10 did this just fine.

I was also having issues seeing any option to boot from USB in the EUFI BIOS. I solved this by following the steps below (copied from the linked article) exactly.

Turn off the machine
Press the recovery button next to the HDD light.
Select BIOS Setup
In configuration, turn off Secure boot, select Reset to Setup Mode.
Press F10 to save and exit.
Turn off the machine again, press the recovery button.
Select Boot Menu
Select Ubuntu under EFI Boot Devices.


Can I restore with Déjà Dup after formatting my computer?

Yes, it's possible. Just do a backup before formatting the computer, and, after installing Ubuntu, open Déjà Dup and follow the instructions. Tested myself!


Sounds like it is a bug. To report a bug press Alt+F2 and type ubuntu-bug ubuntuone
You will need to register in launchpad to report.

In the mean time I might try sudo rm -rf ~/.ubuntuone

This will remove the user file which may be corrupt then restart ubuntuone.


How to refresh a webpage with the keyboard?

CTRL/⌘+R or F5 (and in some cases FN+F5) are the only two reliable ways of doing this.

Pressing Tab until you get to the refresh button can be unsuccessful if you don't start in the right place with the selection, and ultimately it's pretty unreliable. If you have any other keybindings set in the personal preferences of the browser or your OS, then you could use those, but the universal way to refresh a page without a mouse would be CTRL/⌘+R or F5.

Note: On some laptops, the key combination is FN+F5. This can depend on how the function keys are configured in the BIOS. (Thanks to Android Dev for pointing this out!)


How to configure the data servers for a pnfs metadata server?

I checked on the linux-nfs mailing list and they confirmed that this is not possible to do this with flexfile layouts. The upstream linux knfsd server currently only supports a very simple flexfiles layout where the MDS and the DS are the same server, so there's no way (as of 4.20 kernel version) to configure knfsd to give out flexfiles layouts that point to other DS servers.


How can I launch mono application on startup with root rights?

Since you are running Ubuntu 16.04 which by default uses systemd you should write a systemd service unit to control the startup behaviour of your application.

A simple systemd unit file looks like as follows, assuming mono is at /usr/bin/mono since the ExecStart line must begin with an absolute path.
Save this in /etc/systemd/system/my-mono-app.service.

[Unit]
Description=my mono app
# If the service relies on network uncomment the next line.
#After=network.target

[Service]
Type=Simple
ExecStart=/usr/bin/mono /home/yahniukov/Documents/programs/my_programs/game_backup/backup.exe <your-parameters>

[Install]
WantedBy=multi-user.target

You have added "$@" which implies that there are some parameters passed to your command, so you have to replace <your-parameters> with the ones actually used.
You also could use the systemd options Environment or EnvironmentFile to store this. For more information have a look in the man pages systemd.unit, systemd.service and systemd.exec.

After you have created the file, execute the command as follows to tell systemd that there was a change.

systemctl daemon-reload

Now you should be able to control the service as follows. For a full description see man systemctl.

systemctl status my-mono-app
systemctl start my-mono-app
systemctl stop my-mono-app
systemctl restart my-mono-app

To enable the service as start up, you have to enter the command as follows.

systemctl enable my-mono-app

Depending on the behavior of your script and application, it might be necessary to change the Type=simple part to oneshot or forking. Not that you have to run systemctl daemon-reload after you have made changes to the my-mono-app.service file to pick up the changes.


Is this an upgrade over SSH or just a standard desktop upgrade?

This seems to suggest that just stopping mysql might do the trick, and that makes sense to me so open up a terminal and fire in sudo stop mysql or sudo service mysql stop and see what happens. Obviously if this is a server, ssh in and run the above.


How to create a data file which can be opened by octave

The octave load command is used for loading variables that were saved in a special file format by a previous octave save command, ex.:

>> A = [1 2 3; 4 5 6]
A =

   1   2   3
   4   5   6

>> save('FeaturesX.dat','A')
>>
>> clear all
>> A
error: 'A' undefined near line 1 column 1
>>
>> load('FeaturesX.dat')
>> A
A =

   1   2   3
   4   5   6

>>

For loading user-data, you will most often want to use a delimited text file (TSV,CSV etc.) which you can load with the dlmread or csvread functions.

For binary data files, there is a low-level C-style fread function.

You can obtain documentation about all these functions from the built-in octave help system e.g. help dlmread.


Wacom Tablet Not Showing Up in Settings (18.04)

I faced the same problem when upgraded to Ubuntu 18.04 from 16.04.
The following steps worked for me.

Removing the existing xserver-xorg-input-wacom
Installing the latest input wacom from source


After upgrading to 11.10 and attempting to install Wine, I get "the method driver /usr/lib/apt/methods/ppa could not be found"

As it turns out, the problem was related to having added the line "ppa:ubuntu-wine/ppa oneiric main" in the software sources application on the desktop and then subsequently trying to use apt-get from a terminal. Removing the line from the gui software sources application fixed the problem. Not sure where that line is stored, but it certainly wasn't in /etc/apt/sources.list.

The line "ppa:ubuntu-wine/ppa" came from the instructions on the page:
 https://launchpad.net/~ubuntu-wine/+archive/ppa


Expanding on this post: HUION H610 Tablet

I'll provide a nice little script for the HUION H420 at the bottom that you can create.

To determine your monitors you can run the command: xrandr

Out put should look like:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+
   1680x1050     59.95
   1600x1200     60.00
   1600x900      60.00
   1440x900      59.89
   1400x1050     59.98
   1280x1024     75.02    60.02
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)

The DVI-I-1 connected primary 1920x1080+0+0 is the line we are interested in, specifically the DVI-I-1

One more piace of information is needed, the id number of the stylus. This can be found by running the command xinput

In my case it returns:

   ↳ HUION H420 Pen stylus                      id=20   [slave  pointer  (2)]
   ↳ HUION H420 Pad pad                         id=21   [slave  pointer  (2)]

To get the tablet to work on only that monitor you can run the command:

xinput map-to-output 20 DVI-I-1

To wrap this in a script with buttons you can create a file with your favorite text editor, tablet.sh that looks like:

#!/bin/sh

#Change DVI-I-1 to what monitor you want from running command: xrandr
MONITOR="DVI-I-1"
PAD_NAME='HUION H420 Pad pad'

#undo
xsetwacom --set "$PAD_NAME" Button 1 "key +ctrl +z -z -ctrl"

#define next 2 however you like, I have mine mapped for erase in krita
xsetwacom --set "$PAD_NAME" Button 2 "key e"
xsetwacom --set "$PAD_NAME" Button 3 "key h"

ID_STYLUS=`xinput | grep "Pen stylus" | cut -f 2 | cut -c 4-5`

xinput map-to-output $ID_STYLUS $MONITOR

exit 0

now chmod +x tablet.sh and then run the command ./tablet.sh

If using the script, the MONITOR variable needs to be changed, and you can change what you want the buttons to do.

There is a project that actually has a gui for the monitor and drawing tablet setup. http://wenhsinjen.github.io/ptxconf/


Well, I didn't find an actual solution to the problem, but a workaround.

Strip the part from rc.local
Save alsa-config to file: alsactl --file ~/.asound.state store
Edit /etc/init.d/shairport-sync by adding /usr/bin/sudo /usr/sbin/alsactl --file /home/[username]/.asound.state restore after do_start() {

Now, everytime shairport-sync is started, volumes will be reset, and since it get's started on boot my goal is achieved. Still, I have no explanation for this strange behaviour.


1 Question at a time per the FAQ

What is kernel panic?
When the kernel can't load properly or "freaks out" and fails to boot properly or crashes(see edit credit at the bottom).
Why it occurs?
Hosed updates, failing hardware, unsupported hardware, failed or missing drive or partition (see edit credit at the bottom)
How can I understand kernel panic occurred?
Watch boot prompts(turn off quiet kernel parameter) OR your machine fails to boot
What effect it has on system?
Failure to boot or system crash
Does it only occur in Linux?
No, all unix-like operating systems can have kernel panics.  It's the equivalent of a Windows Blue Screen of Death
How can I prevent it?
It normally doesn't happen.  Test updates and troubleshoot the problem.  Use stable instead of development branches.

Additional note: Kernel panic and system failure/shutdown can be directly responsible for protecting your computer from physical damage.  Examples include halting before extreme overheating or disk corruption.  See edit credits at the bottom for direct quote.

edits

Per B. Roland Missing or corrupted disks or volumes can cause this as well.
(Good point and I overlooked it)

Per Kees Kernel panic can also occur while running.
note: Can happen when a function fails sort of gracefully inside the kernel, but most often happens during module or kernel loading(which is usually during boot).  I thought I touched on it at "during boot or system crash", but I see how my answer to (1) stated it only occurs during boot.

Per rafalcieslak direct quote - 'There is one very important thing that must be added: The main point in the whole kernel panic is to protect your computer. The kernel freezes not only because it failed to do something, but also in order to prevent your computer from f.e. overheating, hard drives corruption, and any other hardware problems, that may occur, if some incorrect orders are executed, of a module (for example a module responsible for controlling the fan) failed to load, etc. This is why the kernel prefers to freeze, than to overcome the problem.'


Video edition program that can make several hours long clips from a picture and mp3 files on resolution 480p with only 1 fps

The program imagination from the 13.04 repository combined with avconv also from the main Raring repository allowed me to make a 1 FPS video (with music!) just for you.

The destination video file is 693180 octets long for an average of 69KB/second which isn't bad since some of the source images were larger than 100KB and I didn't even bother trying to optimize anything.

The time consuming part of the exercise was signing up to a video hosting service so you could see my 10 second magnum opus.

EDIT Seeing slides at 1 FPS is pretty fatiguing even for 10 seconds; I can't imagine what 6 hours of that would do. In service to my fans, I made the same video but at 0.2FPS. Of course this bumped the video size up, but one does have to suffer for one's art, I hear. Enjoy the "director's cut"

I don't think you understand how video compression works; parts of an image that stay the same don't require (barely any) extra video data. The increase in file size has a lot to do with there being 5 times as much audio data.


Download videos from youtube playlist or user based on date

Yes.  From the youtube-dl man page:

--date DATE
          Download only videos uploaded in this date

--datebefore DATE
          Download only videos uploaded on or before this date (i.e.  inclusive)

--dateafter DATE
          Download only videos uploaded on or after this date (i.e.  inclusive)

Not stated there, but only hidden in the code, is that DATE is in the format YYYYMMDD or
    (now|today)[+-][0-9](day|week|month|year)(s)?, so for example the 17th August 2016 would be 20160817, and seven days ago would be now-7days or now-1week.

You can specify a range by using --datebefore and --dateafter together, so:

youtube-dl -i --dateafter 20160808 --datebefore 20160810 https://www.youtube.com/channel/CHANNEL

will download all videos from a channel uploaded between and including August 8th and August 10th 2016, and:

youtube-dl -i --dateafter now-1week https://www.youtube.com/playlist?list=PLAYLIST

will download all videos from a playlist uploaded in the past week.

The -i option prevents youtube-dl from exiting prematurely if some videos are unavailable.

Note youtube-dl will still say it is downloading each video even when it doesn't. For example:

[download] Downloading video 1 of 123
[youtube] xxxxxxxxxxx: Downloading webpage
[youtube] xxxxxxxxxxx: Downloading video info webpage
[youtube] xxxxxxxxxxx: Extracting video information
[youtube] xxxxxxxxxxx: Downloading MPD manifest
[download] 2016-08-07 upload date is not in range 2016-08-08 - 2016-08-10
[download] Downloading video 2 of 123
...


is there any way to put notes on pdf in evince?

EDIT:

On newer versions of Evince (a.k.a Document Viewer) you can edit annotations by pressing the pencil button on top left of the app window (tested on Evince 3.30.2).

ORIGINAL:

On the left sidebar, where Thumbnails is usually shown, click on Thumbnails and select Annotations. Then, go to Add under Annotations there is small edit button. Click on that one and you can add comments on your pdf.

Alternatively, you can use Okular which may offer more options.


Webview load specific URL (Quickly/Glade)

You would need to connect to the switch-page signal on your Gtk.Notebook, and in the callback call load_uri() on your Webkit WebView


Ubuntu or Debian package for creating book covers?

Well that heavily depends on your needs. The packages/ways that you mentioned are not overly complex given the tasks that they can solve.

You should probably give more details on:
What do you want on the book cover, and who needs that cover?
E.g. If you have a publishing company, then they might want a certain format.

To give some basic recommendations:
Assuming you want text, then why not use LibreOffice Writer (or KOffice or Abiword)?
Assuming you want graphics, then Inkscape (or LibreOffice Draw) might be another option.


memcached default port should be changed?

IMO changing ports adds little if any security. Anyone interested in cracking you will simply do a port scan ;)

By default you can only connect from localhost anyways so , IMO you are fine.


snapd return status code 400: Bad request

Run this command in terminal

sudo rm -r /var/lib/apt/lists/*

And Then

sudo apt update

I think your /var/lib/apt/lists/ files are corrupted So You Can delete them to regenerate them.


Read this for an insight to ENCFS security.

http://en.wikipedia.org/wiki/EncFS#Disadvantages

In answer to your question, all encrypted data can be decrypted. The proviso being how much computer power and time you put to the task of decrypting.

The data is fairly secure as long as the "FBI" doesn't throw their computers at the task. As you are "small fry", no offence, its unlikely that this power will be used on your data.

You can use other encryption systems that take longer to decrypt like truecrypt but in the end its just time and power. Theoretically in ten years when computers go "quantum" all this data will be trivial to decrypt.


What is the linux version that best fits my system to install?

When you say 'linux version', I assume you mean 'Linux distribution'.

You have fairly low specs, so I would recommend, (as you are on ask ubuntu) Lubuntu.


How can xp pen deco mini 7 installed on ubuntu? Please mention ubuntu version it supports too

Yes, according to https://www.xp-pen.com/product/613.html, Ubuntu 14.04-20.04 support it (and later versions may support it too).
In case it is not recognized, you would need to download the driver from https://www.xp-pen.com/download-525.html.
Here is the download link for the .deb installer.
Afterwards, have a look at this question for software to utilize your graphics tablet.


BIOS boot partition : how to fix "Superblock invalid"?

You have a serious error, so the best thing to do before you start is to make an identical copy of your SSD to another SSD or HDD larger or equal to your current size.  CloneZilla Live is the easiest way to do that.  If you make a mistake or something else goes wrong you'll have an up-to-date image to fall back to.

No?  You want to live dangerously and totally mess up your system and lose all data???  OK, your choice!  Just execute:

e2fsck -b 8193 /dev/sda

and if that fails:

e2fsck -b 32768 /dev/sda

because the hint is in the <device>:

/dev/sda is your SSD (device)
/dev/sda1 is the first partition on your first device.

Oh, did I mention that if the second command fails, you have to restore your image and come back and ask a new question?


Java Error: Core dumped failed! Try doing ulimit -c unlimited before you start java next time!

Do what it says. In a terminal run, ulimit -c unlimited before you start playing.

From man ulimit:

User limits - limit the use of system-wide resources. A bash built-in command that provides control over the resources available to the shell and to processes started by it, on systems that allow such control

Syntax
      ulimit [-acdfHlmnpsStuv] [limit]

Options

   -c   The maximum size of core files created.

If you want a permanent solution, edit /etc/security/limits.conf and change the first line to:

#<domain> #<type> #<item> #<value>
*         soft    core    unlimited


Right click desktop, uncheck 'Keep Alligned'.


Install Adaptec RAID 6405 on Ubuntu 12.04 (3.13.0-37-generic)

Here's what I did (I asked adaptec at http://ask.adaptec.com/app/account/questions/detail/i_id/117462)

Go to http://ask.adaptec.com/app/answers/detail/a_id/17202 and download the minimally tested driver

Essentially follow the instructions in
Ubuntu Server/Ubuntu 12.04 LTS/Ubuntu 12.04.2 thru 12.04.5 LTS/Installing Ubuntu 12.04.2 thru 12.04.X LTS on Adaptec RAID Controllers.txt

apt-get install build-essential dkms
Unpack the archive.
Install the deb file:
Ubuntu Server/Ubuntu 12.04 LTS/Ubuntu 12.04.2 thru 12.04.5 LTS/aacraid_1.2.1.40700-1_all.deb
dkms add -m aacraid -v 1.2.1.40700
dkms build -m aacraid -v 1.2.1.40700
dkms install -m aacraid -v 1.2.1.40700
reboot

And after the reboot the host should come up with the new driver.  If something fails you can go back to the old initrd copy it makes (/boot/initrd.img-3.13.0-35-generic.old-dkms in my case)

You can verify it via

/usr/StorMan/arcconf getconfig 1

if you have that installed.


I found it.

First: All setting

Next: Language Support


Can't login to Ubuntu server 14 after fresh install; never given chance to set password in first place

"By default the first user's account is an administrative account, so if the UI is prompting you for a password it's probably that person's user password.If the user doesn't remember their password you need to reset it. To do this you need to boot into recovery mode."
Quoted from
How do I reset a lost administrative password?


Ubuntu's poor performance compared do Mac OS X (Same hardware!)

As you have confirmed in the comments, you had the use of Intel's "Procesor microcode firmware" driver disabled.

This microcode can be described as hot-patch for the firmware of Intel CPUs, which gets loaded and applied every time you boot Ubuntu (because it can not be written persistently) and fixes some bugs or improves some things.

More information could be found e.g. in the questions Unknown Additional Driver: Processor microcode firmware for Intel CPUs for intel-microcode and Should I activate the additional driver: Processor microcode firmware for Intel CPUs for intel-microcode .

To enable this microcode patch, simply open your System Settings and click on Software & Updates. Navigate to the Additional Drivers tab and wait until the list of drivers is loaded, which can take some moments.

Search for a device that has options mentioning "Intel", "microcode" or similar keywords. Most likely it is labelled as "Unknown" for whatever reasons.

Anyway, make sure that the option named "Using Processor microcode firmware..." or similar is the selected one. You probably should reboot for the changes to take effect after that.


From the terminal run:

sudo squid3 -k reconfigure

-k reconfigure - Parse configuration file, then send signal to running copy and exit


Configuring to detect if a command does not exist, suggest installation

This feature is provided by the command-not-found  package. Ubuntu installs it by default, and makes it active by default in bash but not in zsh. Just add this line to your ~/.zshrc:

. /etc/zsh_command_not_found


I tried to use xubuntu with compiz , i see a different decoration theme (very transparent) that leave TRACES all over the desktop and its annoying?

Compositing options are disabled when Compiz is used.  Compiz in Xfce needs a window decorator.  Either compile and install Emerald from source http://ubuntuforums.org/showthread.php?p=11401326 and look on gnome-look.org for compiz/beryl themes (my personal fave is DarkAndNameless), or use gtk-window-decorator like so
Using compizconfig-settings-manager, select Window Decoration and change to gtk-window-decorator ---replace --metacity-theme=Ambiance


Easy way via GUI:

See that an update is available (in RStudio by selecting Help then Check for updates, same as karel's answer).
You then navigate to https://www.rstudio.com/products/rstudio/download/ and under Installers for Supported Platforms go to the one for your OS (mine is same as question, Ubuntu 16.04 +) and click on it.
When faced with the open or download option, select open with the Software Installer (actually the default option).
The file will open with the 'Ubuntu Software' program and will prompt you to install R-studio via a blue button. Click that blue button marked install.

Next time you open R-Studio it will be the most up to date version.


Sorry for the late reply. Xen 4.2.1 shipped with Ubuntu 13.04 has a bug in the xl toolstack (you are using xl?) that prevents a reboot of the HVM guest.

A work around is to use the xm toolstack (you need to enable it), or to upgrade Xen - see also Xen stable update to 4.2.2

Also, this Xen mailing list thread sheds some light on the xl bug, with a recommendation to use xm when trying VGA passthru.


"game must be in the same directory" error using wine

You should copy the game folder to your ~/.wine/drive_c directory. To do this, open nautilus and press Ctlr+h to reveal hidden folders and files. After this, copy the complete folder of the program you are trying to run using wine. Now, go to your home folder(where you have your Documents, Downloads directory by default) and here you will find a .wine directory, open the directory and paste the folder in the drive_c folder and try to run it again.


Depending on what you mean in 'roaming'... But.
Here is a solution to your need:

OpenLDAP as directory server
Linux client with PAM, NSS and the lpad client
Users /home folders can be created on each client machine at first logon of a user, or created on an NFS share on the server for full Roaming.
See those docs for more information
 - https://help.ubuntu.com/community/LDAPClientAuthentication
 - https://wiki.gentoo.org/wiki/Centralized_authentication_using_OpenLDAP
 - https://www.systutorials.com/39544/unified-linux-login-and-home-directory-using-openldap-and-nfsautomount/


How to restore, refresh or reset your PC

  Warning:

  All of your personal files will be deleted and your settings will be
  reset. Any applications that came with your PC will be reinstalled,
  but all other applications will be removed.

is it enough for your question?


Audio shortcuts stopped working in Clementine

Check this out.

You need to disable the gnome shortcuts for these features...

  "Then its under “Shortcuts > Sound and Media“. The only way I managed
  to get the conflict resolved was to clear the Gnome shortcuts by
  pressing backspace when it says “new shortcut…”, then entering my old
  Clementine shortcuts back in Clementine’s properties menu."


FSCK reports that filesystem still has errors

S.M.A.R.T. information of HDD and SSD

Check the S.M.A.R.T. information. It is easy using Disks alias gnome-disks according to this link,

Reformating hard drive after malware damaged boot sector - scroll down to 'Maybe the disk hardware is damaged'

Select S.M.A.R.T. via the button at (1) and check the overall assessment at (2).

Run fsck on an ext4 file system

When I use fsck on an ext4 file system I boot from another drive and unmount the file system.

sudo e2fsck -f /dev/sdxn

where x is the device letter and n is the partition number, in your case /dev/sda1 according to the screenshot.

Sometimes it helps to run this command twice. Sometimes the file system is damaged beyond repair.

Sometimes there are bad sectors (hardware defects on the drive). Then you can  mark the bad sectors (and make the system avoid them) with the following command

sudo e2fsck -cfk /dev/sdxn

See the manual

man e2fsck

for more details, and the following link for more tips about repairing file systems,

Repair the partition table and file system of a pendrive


Getting on screen keyboard when click on text entry field

You can use OnBoard (a virtual keyboard preinstalled in Ubuntu) and enable the floating icon (from its settings) to make it appear when you touch it and you can close it after you type.
http://i.imgur.com/mxADd.png (options)

Another solution (I didn't try it yet but it should be better) is to use "Maliit" which is Meego Input Methods and it's packaged for Ubuntu here :
https://launchpad.net/~openismus-team/+archive/openismus-meego-im
it should appear on touching the text field.


Ubuntu 20.04 Text splitting and screen flickering

I had the exact same condition and I was able to fix it by removing the 3rd party AMD Radeon drivers I had previously installed (and had been working fine up until this morning when I did a SW package upgrade & rebooted). I ran the following commands and rebooted. Now my display is back to normal:
sudo apt install ppa-purge
sudo ppa-purge ppa:oibaf/graphics-drivers


Can't connect to wpa2-enterprise networks like eduroam with certificate in 15.10

I added my username to the group 'netdev', logged out and in again, and now everything went smoothly. Found this info on a Debian site.


Does the Ubuntu Touch web-brower app need some extra css styling, to style buttons and such

If I understand it correctly, you want to style the form elements on a web page using CSS, not the alert box itself, right?

By default form controls in the touch browser have the default QtWebKit look’n’feel, not the Ubuntu SDK’s one.

Form controls can be fully styled using CSS (there are some limitations, this article is a good read on the topic).

The standard CSS properties should work, for example border-radius.


Skype issue : not getting my voice back while testing with echo calling

Don't know if these will work but..

1) In a terminal type alsamixer
check all volumes for Mic's are up

2) Look at pulse audio volume control pavucontrol- see if you are getting a signal when calling Echo - and check that you are using duplex configuration.

There is a setting in skype which lets skype alter volume - its a good idea to try that.


Configured a static ip but it didn't take effect immediately

When you modify a "connection" (in NetworkManager's speak) which is currently activated in a device, those changes don't take effect immediately. Well, your UI could implement it in a way to apply them right away, but they don't.

You have to re-activate the connection, like
  nmcli connection up $NAME
or whatever your preferred UI is.

You don't have to restart NetworkManager. Also, you usually don't use ifconfig with NetworkManager together.


I use the following to setup my static IP address. You were close, but you must have a valid gateway. "255" is the broadcast address, not the gateway...
auto eth0
iface eth0 inet static
  address 192.168.1.192
  netmask 255.255.255.0
  network 192.168.1.0
  broadcast 192.168.1.255
  gateway 192.168.1.1
  dns-nameservers 75.75.75.75 75.75.76.76
  dns-search m2osw.com

Make sure to use valid dns-nameservers and for the dns-search, you probably don't need that line. If you don't want to access the Internet from the Jetson, then you also don't need the dns-nameservers.


Mouse/Keyboard not working in Ubuntu 14.04 LTS

First install the drivers:

sudo apt-get install xserver-xorg-input-all

If it already installed, reinstall it.

sudo apt-get --purge autoremove xserver-xorg-input-all && sudo apt-get install xserver-xorg-input-all


How does Network Manager gets started automatically at boot?

NetworkManager is a system service. It includes integration with the init system to be started on boot.

Per-user programs also exist to talk to this service and provide UI for managing network connections, and can be started in multiple ways, including directly being run by the session manager, or indirectly via the use of autostart files.


Are you sure you re-install ubuntu? if you have any data you could just back it up to a cloud like google drive and reinstall you system with the correct layout.
Sorry if this wasn't very helpful

              ~Rainbow Dash


How do I switch to a closer Ubuntu mirror?

Go to software & updates app in dash and on the first page it says Download from: set the server here

Set your nearest server, of course, in the dropdown.


How can I hide desktop icons but keep a custom wallpaper background?

1. Disable Icons

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

2. Use Feh  to set the wallpaper


Linux swap file and Hibernation partition

Since Linux is Free, Open Source Software, you could download the source sudo apt-get install linux-source-4.4.0 and look at these files:

w3@aardvark:/usr/src/linux-source-4.4.0(130)$ tar tvf linux-source-4.4.0.tar.bz2| grep -i swap
-rw-r--r-- root/root      1278 2017-04-27 11:28 linux-source-4.4.0/spl/include/sys/fs/swapnode.h
-rw-r--r-- root/root     36409 2016-01-10 18:01 linux-source-4.4.0/drivers/mtd/mtdswap.c
-rw-r--r-- root/root      6169 2016-01-10 18:01 linux-source-4.4.0/drivers/net/wireless/ath/ath10k/swap.c
-rw-r--r-- root/root      2262 2016-01-10 18:01 linux-source-4.4.0/drivers/net/wireless/ath/ath10k/swap.h
-rw-r--r-- root/root       502 2017-04-27 11:28 linux-source-4.4.0/arch/mips/lib/bswapdi.c
-rw-r--r-- root/root       254 2017-04-27 11:28 linux-source-4.4.0/arch/mips/lib/bswapsi.c
-rw-r--r-- root/root       610 2016-01-10 18:01 linux-source-4.4.0/arch/arm/lib/bswapsdi2.S
-rw-r--r-- root/root       417 2016-01-10 18:01 linux-source-4.4.0/include/linux/swapfile.h
-rw-r--r-- root/root      2752 2016-01-10 18:01 linux-source-4.4.0/include/linux/frontswap.h
-rw-r--r-- root/root       876 2016-01-10 18:01 linux-source-4.4.0/include/linux/swap_cgroup.h
-rw-r--r-- root/root      6038 2016-01-10 18:01 linux-source-4.4.0/include/linux/swapops.h
-rw-r--r-- root/root     18137 2017-04-27 11:28 linux-source-4.4.0/include/linux/swap.h
-rw-r--r-- root/root     38097 2016-01-10 18:01 linux-source-4.4.0/kernel/power/swap.c
-rw-r--r-- root/root       251 2016-01-10 18:01 linux-source-4.4.0/tools/build/feature/test-sync-compare-and-swap.c
-rw-r--r-- root/root      5738 2017-04-27 11:28 linux-source-4.4.0/zfs/module/zfs/zfs_byteswap.c
-rw-r--r-- root/root      2768 2016-01-10 18:01 linux-source-4.4.0/Documentation/power/swsusp-and-swap-files.txt
-rw-r--r-- root/root      5282 2016-01-10 18:01 linux-source-4.4.0/Documentation/vm/zswap.txt
-rw-r--r-- root/root     15384 2016-01-10 18:01 linux-source-4.4.0/Documentation/vm/frontswap.txt
-rw-r--r-- root/root     13398 2016-01-10 18:01 linux-source-4.4.0/mm/swap_state.c
-rw-r--r-- root/root     33755 2017-04-27 11:28 linux-source-4.4.0/mm/zswap.c
-rw-r--r-- root/root     79828 2017-04-27 11:28 linux-source-4.4.0/mm/swapfile.c
-rw-r--r-- root/root     32859 2016-01-10 18:01 linux-source-4.4.0/mm/swap.c
-rw-r--r-- root/root     14595 2016-01-10 18:01 linux-source-4.4.0/mm/frontswap.c
-rw-r--r-- root/root      4732 2016-01-10 18:01 linux-source-4.4.0/mm/swap_cgroup.c

They all have swap in their filenames, and might have something to do with swap.


How to refresh the software sources in Ubuntu Software Center?

The software sources needs to be updated. You can do this a couple of ways:
Running

sudo apt-get update

Starting Update Manager and clicking "Check".
The software sources cannot be updated within USC.


How can I get the latest VLC if its not available from the VLC download page and its PPA

You can install it from source as soon as these are updated.
Start here: http://www.videolan.org/vlc/download-sources.html

How to compile?
Please have a look at VLC's sub-page on the developers website. There are detailed descriptions for most systems, supported by VLC. If something is not mentioned there, searching the forum is worth a try.

From developers website:

Get VLC Source Code
VLC is available through Git or by browsing the releases.
You can also see the release notes and the ChangeLog. You can also give an eye on the "Get the source" wiki page.

The source for VLC 2.1 can be found here.


How to disable suspend in 20 minutes from the lightdm login screen?

Finally, a solution has been found.
The cause of the problem was that in the system with lightdm and unity-greeter installed as a desktop manager and a greeter respectively timeout intervals are given twice as numeric values:
(1) Time before suspend in lightdm.
(2) Time before suspend in unity-greeter.
To change the first set of parameters (for lightdm) I needed to specify the values for
the user lightdm by means of dconf editor:
sudo -u lightdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
sudo -u lightdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0

I also changed the type of action after the suspend time elapses to 'nothing'
sudo -u lightdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
sudo -u lightdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing'

To change the second set of parameters (for unity-greeter) I needed to perform a
similar action:
sudo -u lightdm dbus-launch gsettings set com.canonical.unity.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
sudo -u lightdm dbus-launch gsettings set com.canonical.unity.settings-daemon.plugins.power sleep-inactive-battery-timeout 0

And
sudo -u lightdm dbus-launch gsettings set com.canonical.unity.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
sudo -u lightdm dbus-launch gsettings set com.canonical.unity.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing'

Test showed that no further suspend event was observed.
There was no bug, rather simple misunderstanding of that lightdm and unity-greeter store parameters in different places.
With kind regards, Ruben Alexandrovich Iskandaryan.


How to replace the content to multiple files?

With awk you can just use | as column separator and print the first column:

awk -F '|' '{print $1}' file1.txt file2.txt file3.txt

output will be concatenaded. If it's necessary to keep output in separate files, consider using a for loop in shell around awk

# assuming they're all in the same directory,  hence `*`
for fname in ./file*.txt ; do
    # add extension to current file in "$fname" variable indicate new file
    # > does the actual redirection
    awk -F '|' '{print $1}'  "$fname" > "$fname".new
done

Having new output in .new might be desirable for backup. Otherwise, we can use sed -i to perform in-file replacement. Run it without -i first for test trial

# use file*.txt if they're all in the current directory
sed -i 's/|.*$//' file1.txt file2.txt file3.txt
sed -i 's/\(^.*\)|.*/\1/g' file1.txt file2.txt file3.txt

Another option is via Python:

#!/usr/bin/env python3
import sys

for fname in sys.argv:
    with open(fname) as fd_read, open(fname+'.new','w') as fd_write:
        for line in fd_read:
            fd_write.write(line.split('|')[0] + '\n')

This script is intended to be used as ./script.py file1.txt file2.txt file3.txt and will write output to new files with .new extension


Can't install Ubuntu on Fujitsu Siemens M52212

I just find out that for ubuntu-12.04.3-desktop-i386.iso during boot time for some reason brightness decrees to 0 - just increase brightness by keyboard and you should be good to go.

Hopefully that helps


Solved by the OP:

  I´ve since discovered that the reason those keys require double
  presses is that they can be used to add accents to other characters
  (e.g. áèú).


You are right, the command

test "x/usr/share" = "x/usr/local/share" -o "x/usr/share" = "x/usr/share"

returns true (0) always.

It looks like if the file in question was generated from a more generic version but the way of generation was not optimal. The script should either ask for actual paths each time or keep just the relevant branch in the generated file.

However, this particular file comes from a package – not being generated on your machine. This is likely something to be fixed/improved… You can file a bug on Xfce Bugzilla (if it’s not present there already) or fix it yourself. You can clone the Git repository for Xfce4 session, you can also get in touch with Xfce4 developers using their mailing list. Good luck with improving the code!


Mount Flashdrive: Not Authorized to perform operation

In Ubuntu 18, this error is caused by Chrome Remote Desktop. The solution is:

Stop the Chrome Remote Desktop Service:

/opt/google/chrome-remote-desktop/chrome-remote-desktop --stop

Open all external disks, that logo appears
Start again the Chrome remote desktop service:

/opt/google/chrome-remote-desktop/chrome-remote-desktop --start

I think you have to do this after each reboot.


How can I set external monitor as default?

I see you have intel driver. You shouldn't need xorg.conf anymore at all.

Just plug in the external display, go to monitor settings and configure the displays the way you want:

Then click "Make Default". After this Ubuntu should automatically detect whenever you connect your external monitor and automatically change display settings.


Is there a way to download additional stemming packages for Recoll?

Recoll uses Xapian which has Snowball sub-project. Here are current available stemming algorithms

arabic.sbl
basque.sbl
catalan.sbl
danish.sbl
dutch.sbl
english.sbl
finnish.sbl
french.sbl
german.sbl
german2.sbl
greek.sbl
hindi.sbl
hungarian.sbl
indonesian.sbl
irish.sbl
italian.sbl
kraaij_pohlmann.sbl
lithuanian.sbl
lovins.sbl
nepali.sbl
norwegian.sbl
porter.sbl
portuguese.sbl
romanian.sbl
russian.sbl
serbian.sbl
spanish.sbl
swedish.sbl
tamil.sbl
turkish.sbl


Customary format for multi-word filenames?

I rarely type complete file names in the terminal. Instead I navigate to the parent directory of the file, sometimes type ls to show what files are contained in that directory, then type the first few letters of the file and autocomplete the full name of the file by pressing the Tab key.

Following the Ubuntu motto "Linux for human beings", it doesn't matter what pattern the file names are formatted in as long as it's easy for human beings to read. The easiest format to read is ordinary text with the words separated by spaces. If the files are part of a series like the songs in an album, I precede the file name with its sequence number in the series like nn track name where nn starts with a 0 for padding if the track number has only one digit like 01 instead of 1. That way 10 comes after 09 in the terminal results of ls and in all audio/video devices instead of coming after 1.


Ubuntu 16.04 Audio not working correctly

Firejail's website describes a known problem with pulseaudio 7.0/8.0:

  The srbchannel IPC mechanism, introduced in PulseAudio 6.0, was enabled by default in release 7.0. Many Linux users are reporting sound problems when running applications in Firejail sandbox. It affects among others Arch, Ubuntu 16.04 and Mint users. This problem was fixed PulseAudio version 9.0. The following configuration will mask the problem:

$ mkdir -p ~/.config/pulse
$ cd ~/.config/pulse
$ cp /etc/pulse/client.conf .
$ echo "enable-shm = no" >> client.conf

  If you have problems with PulseAudio 9.x use the previous fix, or configure enable-memfd = yes in /etc/pulse/daemon.conf.

This fix worked for PulseAudio/Firejail problems I had on 16.04 that were similar to what you describe.


Display issue Ubuntu Server 19.10.1 Raspberry Pi 4 with Xubuntu Desktop

Try/use Berryboot and install your Ubuntu via this tool. I also had problems with my monitor. Berryboot seems to set/change values in the config file. After using it my TV was recognized and the resolution was correct.

Another neat feature, you could install more then one OS if you want it.

If you don't want Berryboot, then install it, install Ubuntu, make a copy of the config file and reinstall Ubuntu gain without Berryboot. Change the monitor part with the one from the config file from Berryboot.

You also can change the config file without Berryboot, I tried, but the result was not as good (even with a in depth tutorial).

Also a tip. If you added a SSD to your PI4, there are tuts out there how to copy over your / partition to it, so that you will only boot from the SD-card and the rest of the system gets loaded from an SSD HD. I run a Linux Mint Mate on my PI4 via Berryboot, runs awesome!

I hope that helps to get rid of your problems. Berryboot did the trick for me.


version.h does not show up after headers installation

Alright. I don't think it is supposed to show up at all. Apparently the version of catalyst I am trying to install is simply incompatible with ubuntu versions above 12.04. Which is not a problem since Gallium still supports that video driver.


Configure APT to also cache all dependencies of a package?

This is likely the easiest method:

apt download $(apt-rdepends <package>|grep -v "^ ")


They have. It is man bash or man builtins. Bash is the software so it has the manual where its commands are explained. We shouldn't have a manual for every command we can give in a software. E.g ftp has some same commands like bash(e.g cd ) or same command like a binary (ls), that would be very bad to make a manual for all of these. And I didn't talked about other shell's builtins.


Reinstalled OS X, rEFInd doesn't boot anymore and goes straight to OS X

When you reinstalled OSX, it cleared out the old boot information, namely rEFInd. The one and only way to fix this is to reinstall rEFInd.


Ubuntu One windows Uninstall.exe file missing

This seems to indicate the install process is crashing somehow before the uninstaller is created.

You can uninstall ubuntu one manually. What version of windows are you using? (Some steps change depending on it)


When you type bash ifconfig, bash is interpreting "ifconfig" to be the name of a script file that you want bash to run.  Bash is complaining because it wasn't expecting ifconfig to be a binary.  The correct form would be bash -c ifconfig.


How to create password protected archive in Caja file-manager?

To create password protected archive in Caja file-manager one should:

Open Caja file manager
Make right click on the folder to arhive

New window named Compress will open

Click on Other Options and select password capable archive type in the right part of Filename (such as default .zip, .7z, .cbz, .ear, .exe, .war) then enter password in Password field and click Create

The password protected archive is created.

Note: if Caja and its archiving functionality are not installed -
one can install them with sudo apt install caja engrampa. Here Engrampa is archive manager for MATE desktop (an analog for file-roller in GNOME).


Wifi disabled by hardware switch, but hardware switch doesn't help

Apparently this is part of a bigger problem with certain Broadcom chips, see https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1097519

  Instead use the driver brcmsmac, that actually works with BCM4313

Also, there's loads of info here, but I haven't looked through it all, may be you find something relevant


You could compile mysql 5.6 from source with ./configure --prefix=/opt/mysql56
make
make install
 if it still uses autoconf.
You would also have to change the port number.

But i think it would be much easier to have mysql 5.6 in a separate virtual machine, using virt-manager (kvm), vmware ore virtualbox.