How to find WPS Spreadsheet exe, located in wine (lubuntu 16.04)?

I have figured it out.

When i have install wps_setup.exe in wine at that time , the setup had ask me to where to install WPS , by default i go with next next details and clicked install now , so by default setup installed in

"C:\users\username\Local Settings\Application Data\Kingsoft\WPS Office\"

but again when i  run wps_setup.exe from wine and choose  installation path to

"C:\Program Files\WPS Office\" which was correct way.

So the setup install correctly & also i have figured out exe's

for spreadsheet its name et.exe   at

~/.mywineprefix/drive_c/Program\ Files/WPS\ Office/10.2.0.5820/office6/et.exe

for word its name is wps.exe at

  ~/.mywineprefix/drive_c/Program\ Files/WPS\ Office/10.2.0.5820/office6/wps.exe

for presentation its name is wpp.exe at

~/.mywineprefix/drive_c/Program\ Files/WPS\ Office/10.2.0.5820/office6/wpp.exe

where 10.2.0.5820 is WPS version.

After this i am able to run WPS spreadsheet in wine using command

WINEPREFIX=~/.mywineprefix WINE=/opt/wine-staging/bin/wine /opt/wine-staging/bin/wine ~/.mywineprefix/drive_c/Program\ Files/WPS\ Office/10.2.0.5820/office6/et.exe


How to stop x11vnc from shutting down when I log out?

Same problem for me on Kubuntu 16.04.1, but your script given me an idea for a solution.

Create a service file for systemd:

sudo nano /etc/systemd/system/x11vnc.service

this is my x11vnc.service file's:

[Unit]
Description=Start x11vnc at startup.
After=multi-user.target display-manager.service

[Service]
Type=simple
ExecStart=/bin/bash -c '/usr/bin/x11vnc -auth /var/run/sddm/* -noxdamage -norepeat -rfbauth /home/x11vnc/passwd -display :0 -rfbport 5900 -shared -o /var/log/x11vnc.log'
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

Set permissions for execute:

sudo chmod u+x /etc/systemd/system/x11vnc.service

Reload and activate script on systemd:

sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service

Important: Be sure to not use the -loop and -forever options on the x11vnc command otherwise x11vnc will not be able to kill the process after a logout and systemd will not be able to restart the service.


How can I override passwd's checks for good passwords?

You can change the password as the root user for a specific user.....it might complain but allow you to do it.


Installation on a ZFS filesystem missing in the installer

What Ubuntu 16.04 did was include it in the kernel and the distribution, so you don't have to add extra PPAs anymore or build modules with DKMS everytime there is a new kernel update.

This is a big deal.

Integrating it with the installer is a natural next step, but it wasn't done in time for the 16.04 release. Maybe in a point release in the future.


You need to install libxml2-dev ; the compiler needs the header files for this library to compile code against it's API. This is true of most binary libraries (but not libraries for scripting languages like Python).


How to enable default file manager(nautilus) to handle desktop icons

As you already know - it is impossible, the functionality was removed from Nautilus.
By such actions GNOME developers do not respect user habits, so it is time for taking action by us, the users.
You have to install MATE DE with Caja (fork of Nautilus) by
sudo apt-get install ubuntu-mate-desktop^

then select MATE session in login screen and enjoy.
The below screenshot demonstrated all features of normal desktop integration between file-manager and desktop:

Here we have Mutiny panel layout and the following elements arranged by user:

home folder icon;
link to Dropbox folder (the folder itself is located in ~/Dropbox, controlled by caja-dropbox extension);
desktop shortcut to Caja application copied from menu;
pdf file with preview;
simple text file;
folder with Git repository inside (controlled by RabbitVCS extension);
folder with Mercurial repository inside (controlled by TortoiseHG extension);
simple folder with opened dropdown menu which demonstrates custom actions and menus from various extensions including custom caja scripts (usually located in ~/.config/caja/scripts) and actions configured using caja-actions-config-tool.

The screenshot of dropdown menu for empty desktop space is below:

Note: above screenshots may be overloaded by the stuff, but they demonstrate how flexible MATE desktop is nowadays. You can compare them with default GNOME Shell and GNOME FlashBack to make conclusions by yourself.


How to solve this problem while installing Ubuntu in my laptop with FreeDOS?

re-download the ISO over a more stable connection. It said something about junk in the archive so the download probably corrupted.


Ubuntu 13.10. After login, no desktop displayed. Two Nvidia Graphics Cards, Four Monitors

no support for 2d in 13.04/10 if you wish to do 2 video cards I would suggest 12.04/10 as it still had 2d support.


Where can I find when new version become available for Ubuntu?

You can find from Ubuntu official site http://www.ubuntu.com/download/desktop


In order to deploy on bare metal you might want to look into MAAS (https://maas.ubuntu.com/). You can deploy MAAS on your ESXi server and commission as many VMs as you'll need (that's your base environment). After that, using Juju, you can then deploy OpenStack on top of MAAS (that's your openstack environment). And finally, on top of that you can use Juju yet again to deploy workloads.


What are the alternatives for notify-send?

My suggestion is to use yad, which is a fork of Zenity.

Installation:

sudo apt install yad

If not available on your version, first run the following:

sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt update

Learn about yad:

man yad

It is not an ideal solution, but yad is powerful and flexible, and it has a time-out option.


CPU frequency not changing in Ubuntu 13.10 Thinkpad T440

You can also monitor frequency changes using my GUI , and beside that, low, high & Turbo ratios.

You will be surprise that standard /proc/cpuinfo is not accurate because the Base Clock is not updated. Check one of the Widgets I named System Information.

In the other Widget named Cores, click Task to see in real time which processes are hogging your  CPUs.

You can get source code and instructions at http://code.google.com/p/xfreq/


Xdesktopwaves, Xsnow, Xpenguins won't work

Look here and here.

These (old, nice) programs were designed when the root window was a window, DBUS and gsettings where unknown, and the concept of desktop environment was to install fvwm. You need to recompile them with tricks and often also then they wouldn't work...


sudo apt-get update not working after install PPAs

The grumbel ppa does not show any packages for bionic. When you look at the launchpad page for this ppa, under "Overview of published packages" there is a filter where you can select the Ubuntu version and bionic is not listed.

You can delete this ppa by running the following command:

sudo rm /etc/apt/sources.list.d/grumbel*

Also, I don't know how you installed the qgis.org repository so you will have to do one of the following.

First, if you have a file in /etc/apt/sources.list.d for this repository, edit the file and change "ubuntu" to "debian", save the file and then run: sudo apt update.

However, if you edited your /etc/apt/sources.list file to add this repository, edit this file and on the qgis.org repository line, change "ubuntu" to "debian". and then run: sudo apt update

Click here for more information on installing the qgis.org repository.

Alternatively, you can remove the offending ppas in Software&Updates.


Xubuntu XFCE4 context menu position annoying behaviour

I had this problem when I tried to make the panel auto-hide until hovered. Had to give up on auto-hiding.
In panel preferences, set Automatically hide the panel to never, and uncheck Don't reserve space on borders.
I remember having to log out or reboot for this to fix the issue on older Xubuntu versions, but it doesn't seem to be necessary on 20.04.


How can I get a list of supported Ubuntu releases from the CLI?

Use distro-info:

$ distro-info --supported
lucid
precise
trusty
utopic
vivid

You may need to sudo apt-get install distro-info first. The tool takes its information from the package distro-info-data, which is updated in all supported releases when release data changes.


It is not possible to do this from a graphical user interface, you have to do it from command line.
You can install the Ubuntu server edition and install a desktop environment on that afterwards.
But this is not recommended for users without some more advanced knowledge how to do it ...
It is much easier to install the Ubuntu desktop edition and remove the unwanted applications.


Anthy (japanese input) keyboard shortcut

Using Ubuntu Software Center install ibus-anthy. This will give
you Japanese keyboard layout.
Once you installed iBus, open Dash and look for iBus. Once iBus is
running, go to the second tab called Input Method.
Make sure "Customize Input Selection Method" is checked. Click on
Select and Input Method and select Japanese > anthy. Do not chose "Anthy (m17n)" it does not allow F7, F8 etc. to change fonts Then hit the
Add button to add this input method. If Japanese is not at the top,
click on it and click Up button to move it to the top. Click on
Close button. You will notice a keyboard icon on the top panel in
Unity.
Now, open a new window of LibreOffice or Gedit or where ever you
want to type in Japanese and hit Ctrl+Space.
This will change the input method to Anthy for that app. You will
notice that the icon on the tray now shows Aち. If you
don't see Aち and see the keyboard icon or another language
icon on the top panel, click on it and select Japanese-anthy. Now
type you can type in Japanese.

Hope this helps


How do I add my network drive to Wine to use applications from there?

Just mount them through your Ubuntu desktop, either by clicking their bookmarks or setting up a new connection using "Connect to server".

Then, you can map a drive in Wine's configuration settings dialog to /home/username/.gvfs, a (normally hidden) folder in which virtual folders represent your network shares.

Obviously, username must be substituted with your own username (run whoami to find out).


Your raid array appears to be a disk in a fake raid, which is not even possible.  You must have left over fake raid signatures somehow.  Erase it with sudo dmraid -E /dev/md0.


How to boot back into Android from Ubuntu Touch?

If you followed the instructions on that page you overwrote Android with Ubuntu, so there is nothing to dual boot to.  If you want to restore the backup of Android you made, there is a set of instructions linked from that page:

http://developer.ubuntu.com/start/ubuntu-for-devices/reinstalling-android/

If you want to set up your device for dual boot, you should follow the instructions on this page:

https://wiki.ubuntu.com/Touch/DualBootInstallation


Reduce interface effects to improve performance on 18.04

I've found out that there's a Tweaks tool and in the Appearance tab is an option where you can turn off animations. Just that made the computer breathe again.
You can install Tweaks using:
sudo apt install gnome-tweaks


Automatic wireless scan on startup/login and resume

As I suspected, this was probably a problem with Network Manager, and not driver related. I installed Wicd as a workaround and removed Network Manager, and now everything is working perfectly.

If I try to reinstall Network Manager and remove wicd again, I will post the results here, in case the problem was a corrupt config file or something similar.


Why my Ubuntu 12.10 can't recognize Canon IP1980?

Before you install the package from canon you need to install libcupsys2. Download it and use Ubuntu Software Center to install it. Then download the driver from the Canon here with Debian as operating system: http://software.canon-europe.com/products/0010647.asp

Use a terminal to go to the directory where this file is saved and extract the file (I assume ~/Downloads/) and do ...

cd ~/Downloads/
tar xvf iP1900_debian_printer.tar
cd iP1900_debian_printer/
sudo dpkg-i *.deb
sudo apt-get-f install

and the printer should work.

Last time I used this was in 2011 so please leave feedback if it does not anymore.


In short, you don't want to use the im-config utility to change input methods.

Set the default input method from System Settings >> Language Support >> Default input method

After that, both input method setup and keyboard layout setup are now in System Settings >> Text Entry.

These changes seem to have caused some problems for Ibus. Assuming you have ibus-anthy installed, if you don't see Anthy in the list of input methods in Text Entry, go ahead and reinstall Ibus with sudo apt-get install --reinstall ibus and reboot.

I had similar problems but Anthy is now working fine after reinstalling Ibus.

Anthy has it's own setting for the keyboard layout that it uses.

1) In Text Entry, make sure your German keyboard is at the top of the list of input methods. This will make it the system default keyboard.

2) Highlight Anthy and click the the toolbox/configuration button that appears down by the keyboard button. This opens the Anthy settings.

3) Go to the tab called Typing Method. Change the keyboard layout to Default (which will now be German).

4) Be sure to hit the Apply button, before hitting OK.


Installing / booting into older kernels - Ubuntu 20.04, Linux 5.4.0-65

I also had similar freezing issues after upgrading to 5.4.0-65 from 5.4.0-64, and had to revert back to the earlier kernel.
In many cases, simply pressing Esc and/or Shift after the BIOS/UEFI splash logo would get you access to the grub menu, where you can then choose to boot into an older version of kernel. Judging by the output of ls -l /boot, you seem to have 5.4.0-64 still available on your machine.
If that doesn't get you the grub menu, then you might need to edit the grub timeout style and duration. See the answers in this post for more details.
Assuming you tried 5.4.0-64 and it works, then if you want grub to use the last choice by default, so that you don't have to press Esc and/or Shift to get the grub menu every time, you can use the following grub options (e.g. modify /etc/default/grub and then sudo update-grub):
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

It is also possible to specify the actual default kernel entry that grub should use, albeit it's slightly more sophisticated. See the answers of this post for details.
In case you want to increase the number of old kernels that the system keeps in the future, it's also possible. See this post for details.


You should be able to accomplish this with ffmpeg from the CLI. There is some information on this page which I have pasted in below

First, rename your pictures to follow a numerical sequence. For example, img1.jpg, img2.jpg, img3.jpg,... Then you may run:

ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg

Notice that ‘%d’ is replaced by the image number.

‘img%03d.jpg’ means the sequence ‘img001.jpg’, ‘img002.jpg’, etc...

If you have large number of pictures to rename, you can use the following command to ease the burden. The command, using the bourne shell syntax, symbolically links all files in the current directory that match *jpg to the ‘/tmp’ directory in the sequence of ‘img001.jpg’, ‘img002.jpg’ and so on.

x=1; for i in *jpg; do counter=$(printf %03d $x); ln -s "$i" /tmp/img"$counter".jpg; x=$(($x+1)); done

If you want to sequence them by oldest modified first, substitute $(ls -r -t *jpg) in place of *jpg.

Then run:

ffmpeg -f image2 -i /tmp/img%03d.jpg /tmp/a.mpg

The same logic is used for any image format that ffmpeg reads.


Alfa AWUS036ACH Adapter suddenly not working after successful driver install

I experience this on Ubuntu 19.04 whenever I perform an update.

I found this post for fixing a kink in the dkms.conf file that instructs how to rebuild the wifi driver upon kernel updates.

sudo vim /usr/src/rtl8812au-4.3.8.12175.20140902+dfsg/dkms.conf

Find the line starting with MAKE (or possibly MAKE[0]), e.g.:

MAKE="'make' all"

Replace with:

MAKE="'make' all KVER=${kernelver}"

Save and exit editor. Then remove and rebuild the adapter for the current kernel:

sudo dkms remove -m rtl8812au -v 4.3.8.12175.20140902+dfsg -k $(uname -r)
sudo dkms install -m rtl8812au -v 4.3.8.12175.20140902+dfsg -k $(uname -r)

Alternatively, a quick and dirty workaround is to simply remove and reinstall the driver after each upgrade:

sudo apt purge rtl8812au-dkms && sudo apt install rtl8812au-dkms


How can I install Windows software or games?

Short answer

.exe files are not binary-compatible with Ubuntu. There are, however, compatibility layers for Linux, such as Wine, that are capable of running .exe.

Detailed answer and solutions

The underlying problem:

Ubuntu is a completely different system than MS Windows. Not only it looks differently, but it also uses different mechanisms for its core functions.

The problem with .exe files is that they are specific to Windows. No other system is capable of running them, because their contents are designed to work on a Microsoft's system. Linux uses different standards, different concepts, and therefore Ubuntu applications need to be adapted to them to work correctly.

If you have just migrated from Windows and are doing your baby steps with Ubuntu, you may be indeed surprised that .exe files fail to run. There may be different symptoms, either an error message may appear, or there may be no effect at all when double-clicking an .exe. This all happens, because Ubuntu has no idea what should it do to run that file. Ubuntu is not knowledgeable about how MS Windows works "behind the curtain", and therefore it can't execute the code that's within them. In technical jargon, one says that Windows and Linux executables are not binary-compatible.

Looking for alternatives

The first thing you should do is to realise that most likely you do not want to run that .exe file. Most Windows applications you are used to have their Ubuntu alternatives in Ubuntu Software Center.

Therefore the very first step when you try to run an .exe file is to check whether there is a Ubuntu version of the same application (like Firefox - it has both a Windows and Ubuntu edition), or a close alternative, which is not the same app, but does 99% the same stuff. For example, if you want to compose a document, instead of MS Office you will want to use LibreOffice.

How can I find an alternative?

Here are some tips.

Search Ubuntu Software Center.

Launch the Ubuntu Software Center, type in the search box what kind of application you are looking for. For example, typing in "photoshop" finds The GIMP, which is a great advanced image editing tool, and is a great substitute for Adobe Photoshop.
Many Windows applications are also available for Ubuntu, and have their identical version in Ubuntu Software Center, which is the preferred way of installing software in Ubuntu.

Search Ask Ubuntu (this very site).

There are many questions here that explain what applications can be used as substitutes. Also, do not forget to ask a question if you need software-recommendation.

This Ubuntu Help page contains great tips when seeking for alternatives.
http://ubuntuguide.org/wiki/Alternatives
http://alternativeto.net/

Okay, but not all applications have alternatives. There are a number of cases where you will want to run the .exe program anyway. Examples include:

You are trying to run an application of which alternative makes no sense. In case of most video games you will want to run them and not an alternative.
You may want to run the original application instead of an alternative, because the alternative is not good enough. For example, many people consider Photoshop to be a much better editor than The GIMP.
This is a very Windows-specific program, that makes little sense on Linux.

Luckily, you can get .exe files to run on Ubuntu.

Running .exe files on Ubuntu with WINE

What is Wine? Well, technically it's a compatibility layer. What it means is that it provides an environment similar to Windows to any .exe application you try to run. Therefore, with WINE .exe files will run on Ubuntu.

WINE is not installed by default. You can get it either by:

Searching for "wine" in Ubuntu Software Center.
Running the command: sudo apt-get install wine.

Details on installing WINE can be found in this question.

Okay, so I installed WINE. Now what?

Proceed to launching your .exe file! Double-click it, and with a bit of luck everything will seem like on Windows. Voilà!

WARNING: Not all applications will behave correctly when run with WINE. WINE is by no means perfect, and because it pretends to be a Windows environment instead of actually being a real one, some applications may malfunction. Common problems may include incorrectly displayed fields, fullscreen issues with video games, copy-protection problems. Some of them can be solved with litte hassle, make sure to check the WINE application database and use google to find hints in case your .exe does not work correctly.

Running Windows applications on Ubuntu with PlayOnLinux

There is another tool you may like which aids you in running Windows applications.

It's called PlayOnLinux (website) and it supports quite a wide range of software (browse).

What it does is it runs a specific version of Wine which is known to work best with the application you are willing to run. It also installs additional paths to provide maximum compatibility with Ubuntu. But you don't need to know about that; everything is done automatically.

Because of that, PlayOnLinux tends to provide the best results in case of running a widely known piece of software, including many video games.

Installing PlayOnLinux:

Find it in Ubuntu Software Center, or
Run sudo apt-get install playonlinux

Using PlayOnLinux:

Instead of double-clicking the .exe (which launches it with WINE), run PlayOnLinux application. Select "Install" button on the toolbar, and choose what application you wish to install. PlayOnLinux will guide you through the installation process (of course you will need installation media).

Once it's done, your installed application will be displayed in PlayOnLinux main window. Double click to launch it!

Commercial solutions

If you are not satisfied with WINE, there are some commercial softwares that runs Windows applications on Linux. One of the most well-known is CrossOver. In some cases it has significantly better results, yet it is not available for free.


Problem with Nvidia GT 545 driver on a Dell XPS 8300

Try this  source:

  Do a fresh install of Ubuntu 11.10 with Alternate CD, X64-bit (probably any dist of 11.10 will work).
  Use another computer to download and burn SuperGrub2 iso.-image to a cd/dvd and boot with it (or create a bootable usb-stick with it).
  Select the Third option: "Detect Grub .cfg" and boot with it (press Enter two times).
  Wait 10 seconds and enter your full disc encryption key and press Enter, even if the screen still is black.
  Wait 30 seconds and you'll have the 11.10 login menu with perfect drivers and hardware acceleration.
  Use Software Center to install GNOME Shell.

I had the same problem with X64 and Nvidia graphic card, and finally got it to work with hardware acceleration and everything.


Cant boot ubuntu because it cant mount the system disk on startup

If you don't use secure boot or disk encryption, You can boot up Ubuntu live from USB drive (select option: try without installing) and launch any tool to fix your issue.


Cannot install 16.04.1 ubuntu on my system running Windows 10

To clarify, Ubuntu will not inject an entry into the Windows Boot Loader to boot either Ubuntu or Windows from there. Rather, by default it will configure a chain-loading process by loading the Windows Boot Loader from Grub2 which is the default Linux boot loader in many distributions.

Without further details it's difficult to say for sure, however try the following:

If you have UEFI enable, ensure you're using the 64-bit version of Ubuntu as the 32-bit version is incompatible.
Use Rufus here to ensure you're getting a good live USB.
Disable UEFI secure boot in your BIOS.  The way to do this may vary depending on the manufacturer.
With UEFI, Grub2 will not chain-load to Windows.

If you still can't continue in the installer try look at the partition details under the 'Something else' option to see what partitions and free space are visible. Be careful if modifying anything and ensure you have 'good' backups.


My Snapstore is not properly showing Apps Images

Ubuntu 20.04 is still under development. So, you must have tried the daily build. I hope it will be resolved before the stable release.


Here is a little Python 3 script that captures clipboard changes and prints them to the terminal:

#!/usr/bin/env python3

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk

import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)

def callback(*args):
    print(clip.wait_for_text(), flush=True)

clip = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
clip.connect('owner-change', callback)
Gtk.main()

You can save this file e.g. ...

as ~/bin/cliplog (any name inside the bin/ directory in your user's home directory - you might have to create that directory and run source .profile first if it doesn't exist yet) if you want it for your user only,
or as /usr/local/bin/cliplog (any name inside /usr/local/bin/ - you need sudo / root privileges to save a file there though) if every user on your machine shall have access to it.

Don't forget to make it executable using chmod +x /path/to/wherever/you/saved/cliplog.

Now you can simply type the command cliplog (or however you named it) in your terminal and the script above will capture all changes to your clipboard and print the changed content.

Please note that this command runs forever until you interrupt it by pressing Ctrl+C in the terminal. (Yes, it's the same shortcut for copying stuff on the desktop as for sending the SIGINT interrupt signal in the terminal.)

To automatically store this log in a file, simply use Bash's redirection:

cliplog > mylogfile.txt

Or if you want to both see the output and have it saved in a log file, use tee:

cliplog | tee mylogfile.txt

If you want to append to the log file instead of overwriting it, use >> or tee -a instead.


Libre Office Math - Characters not showing up

Your picture looks like normal LibreOffice Math window. So nothing looks broken.


When I upgrade for 14.04 to 16.04 will the changes I made for 14.04 to work on my laptop be lost?

Config files tend to be overwritten if an overwrite is needed (i.e. a new config format version), and if the current config file is reported as altered.

If this is the case, apt will prompt you to decide whether to keep the old file or replace it. Your prompt will look something like this:

Configuration file `/opt/application/conf/XXX.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:

Y or I  : install the package maintainer's version
N or O  : keep your currently-installed version
  D     : show the differences between the versions
  Z     : background this process to examine the situation

From there on out, the choice is completely yours. Apt will not overwrite files unless they're unchanged without asking you first.


Unable to view search results in the Activities Overview for locations I have previously disabled but now re-enabled in the settings

Yes, once you disable it in the settings it clears the cache specifically for the Activities Overview search, once you have re-enabled it you will need to wait a while for it to re-index all your files and folders etc.


Can I set a time-out for auto-mounted shares that are unavailable?

After some searching, I found your answer in the Centos documentation.

In autofs, when you define your mount, you can set options in auto.master, including a time out, in the third field as an options

Example:

/misc   /etc/auto.misc --timeout 60

See http://www.centos.org/docs/4/4.5/System_Administration_Guide/Mounting_NFS_File_Systems-Mounting_NFS_File_Systems_using_autofs.html


Wireless, Ethernet and Bluethooth not working with lenovo G5080 under Ubuntu 12.04.5/14.04 64bit

Hello all I got solution from this ubuntu bug link https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1436940/+index?comments=all
It has not official solution from ubuntu, bug is still pending but I have followed comment #81 & #90 from it's comments and my wifi and wired both are working now. One more point need to share that. After apply solution I got update from ubuntu and I updated my ubuntu but unfortunately I lost my both wifi & wired connection. Again I apply #81 & #90 comment from above bug comments it is working fine now. So after apply fixes take care of new updates for ubuntu.
I have check above with 14.04 64 bit. not checked with ubuntu 12.04. May be above fixes works with ubuntu 12.04 too.


Delete all files whose filenames contain a particular string?

Use find to recursively find and delete files with "text" in their names:

find -type f -name '*text*' -delete

You might also want run find -type f -name '*text*' (without the -delete) before that to make sure you won't delete any files you didn't intend to delete.

In fact, you can place wildcards anywhere in the search string, so -name '12_angry_men_lone_holdout-*.jpg' might be more suitable in your case.


How to recover the root password on ubuntu server

Try Control-D when it prompts you for the root password. If that doesn't work, then try this:
http://www.howtogeek.com/howto/linux/reset-your-forgotten-ubuntu-password-in-2-minutes-or-less/
Then scroll down to "Alternate Root Shell Method".


It looks like you have a small home network behind DSL router, log in to your router settings 192.168.x.y and set up port forwarding on your router, you should set up port forwarding for port 80 from your router to the IP of machine hosting your LAMP server, this will forward all http requests on port 80 made to your router's public IP to your LAMP server behind the router. This is not related to Ubuntu though.


Ubuntu 13.10 blank screen with cursor after installing libopencv-dev

Ok the problem was a libopencv-dev bug that installs Nvidia packages on non Nvidia graphics machines, causing the blank screen problem. To fix this:

sudo apt-get purge nvidia-319*


FILES

Refer to this howto: http://ubuntuforums.org/showthread.php?t=35087

In simple terms, the backup command is: sudo tar czf /backup.tar.gz --exclude=/backup.tar.gz --exclude=/dev --exclude=/mnt --exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/lost+found /. Add more --exclude= parameters if you need to.

It will create an archive of all your files at /backup.tar.gz, which you can then copy over to another computer/drive and restore your files if the install goes pear-shaped. You can do it from a LiveCD, by mounting the "bad" system under /media or /mnt and running tar xf /path/to/drive/with/backup.tar.gz -C /mnt (substitute for the actual path to the "bad" system).

GRUB

This will not cover GRUB, however you can easily reinstall it by following this guide here. You only need to do steps Three and Four.


Signing dkms module automatically enabled in ubuntu 20.04

Installation

Create a directory under /root, say /root/module-signing, put the three scripts below in there and make them executable: chmod u+x one-time-setup sign-modules dkms-sign-module
Run one-time-setup
Reboot your computer to deploy the MOK
For each module you will want to sign via DKMS, create a file /etc/dkms/<module_name>.conf with the following content:
POST_BUILD=../../../../../../root/module-signing/dkms-sign-module

The awkward relative pathname is important since DKMS prepends its own path to it, so an absolute path will not work.
What's missing in the Installation instructions

Here are more details for each step in the instructions.
Step 1. How to put the three scripts in /root/module-signing:
sudo mkdir /root/modules-signing
cd /root/modules-signing
sudo -H gedit one-time-setup
sudo -H gedit sign-modules
sudo -H gedit dkms-sign-module

Each time you run gedit copy and paste from the github page into gedit's window. Then use 'Save' option and quit.
Step 2. Run one-time-setup
cd /root/modules-signing
sudo ./one-time-setup

Step 4. <module_name> setup
To get this to actually work, substitute <module_name> with the name of your RTL module.
If you run into difficulties post comment(s) below.


Without sudo, users are limited to only having access to the /home directory in general, and then without permissions being modified for other users' home folders, they can only access their own home folder. So, as far as I know, what you're describing is largely the default behavior for non-sudo users.

That said, I think that any user can read many files in the system without sudo, but one really can't do anything without write permission anyhow, so I would consider that a moot point.


Is it possible to install Desktop edition in Server edition, then access remotely?

you should install ubuntu-desktop and openssl-server

apt-get install ubuntu-desktop openssh-server

then use ssh -X to access your server remotely.

or you can follow this to config your ssl


Thunderbird won't open after a fresh install of 12.04, how to fix?

Perhaps updating thunderbird to the latest stable version (currently 13) will fix this problem. Open a terminal console and enter:

  sudo add-apt-repository ppa:mozillateam/thunderbird-stable

  sudo apt-get update

  sudo apt-get upgrade

After that, your thunderbird should be the latest stable version (and function). I hope this helps.


Your configuration looks legit,
 but postfix requires it's smtp_sasl_password_maps file to actually be stored in a optimized way not clear text.

if you don't have such a file

running the command:

  postmap /etc/postfix/sasl_password

will generate a sasl_password.db

  service postfix reload

to apply changes


How to enlarge a partition on an micro-sd card after burning an ubuntu image for an ARM- Board

Boot from another drive. For example, you can use the computer, where you burned the image to the card. Use gparted to edit the partition table.

If you run Ubuntu live, gparted is available directly from dash (or a the menu in other flavours of Ubuntu). In an installed system, you install gparted with

sudo apt-get install gparted

The details how to move and/or grow partitions are described (for a similar case) at the following link,

GrowIt.pdf

Comment: If you move the head end (left edge in the graphics of gparted), of the partition with the /boot directory (often the root partition /), the bootloader will not find it, and you have to repair it. This is not difficult, but it is more convenient to keep the position of that head end.


I want to install Ubuntu but need all the files from windows. How can I keep them?

Backup all the Windows files that you want to keep to an external hard drive before you install Ubuntu. Backing up the Windows files by copy/pasting them is the best way to do it, because backup utilities sometimes create their own directory structure, but copy/pasting the files preserves the original directory structure which makes the Windows files much easier to find on the external hard drive. Depending on what Windows file synchronization application you have installed, your Windows file synchronization application may have a feature in it that allows you to make a backup of your Windows files that preserves their original directory structure.

After Ubuntu is installed you can either access the Windows files from the external hard drive or copy them from the external hard drive to your computer's internal hard drive so that you can access those files even if the external hard drive is not connected to your computer.


Is there a keyboard shortcut to obtain a non-breaking hyphen?

You can use this shortcut: Ctrl+Shift+U and then type 2011 followed by Space which will turn into ‑ (non‑breaking hyphen).


the command you used
sudo add-apt-repository ppa: nemh / gambas3

only adds a repo. To install you will still need to update and actually install:
sudo apt-get update

sudo apt-get install <pakage>


When using grep on html files, how can I display only the text and not the tags?

One solution I have found is piping grep's output to html2text:

sudo apt-get install html2text
grep "som* interesting" | html2text

This largely works, but it fails a) to keep the color highlighting of grep, b) to use unicode, and c) to replace certain characters. Here is a more complete alternative that does not have these disadvantages.

grep --color=always "test*" * | html2text -utf8 | sed 's/l&rsquo/\"/'

Of course you can edit the stream using sed to change other elements as well.


Why is errors=remount-ro not working with hibernated Windows partitions?

The mounting is sent to the ntfs-3g driver and that one does not support the "errors=" option (I would call that a compatibility bug). It only supports the "ro" option. That is also why you see people using /etc/rc.local or xinitrc or by adding the "remove_hiberfile" option so it does mount "rw".


Ctrl-Super-Up after Ctrl-Super- moves workspace

Ok so the solution that worked for me is to install Compiz configuration settings manager

Go to window management and check that the Grid option is ticked. This should be all you have to do. So let's test it,
first ensure your window is maximised. Then do  CTRL + SUPER + LEFT to shift it the left and then CTRL + SUPER + UP to maximise it.

But if it doesn't click on Grid and check that this Maximise Key is set up as

Maximise Key <Control><Super>Up


How can I not show my public IP in Glances?

Your question doesn't state how you're accessing the data, but assuming you're using the CLI, simply press I to hide your IP address. Note that this will hide your private address too; I don't believe there is a way to hide just one.
UPDATE
I found the docs link that shows how to do this and some other UI-related stuff.


Laptop boots into Windows after restarting from Linux

I just installed BootRepair, and with just a few clicks, problem solved


Ubuntu 16.04 CIFS to 2012R2 DFS drop connection seemingly random

Looks like this is a bug in the 4.4.0 kernel. Some sort of race condition every 15 minutes causes a flood and disconnect.

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

I upgraded to 4.9.30 and it appears to have resolved the issues. The steps I followed are:

Download all the Kernel deb's

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9/linux-headers-4.9.0-040900_4.9.0-040900.201612111631_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.30/linux-headers-4.9.30-040930_4.9.30-040930.201705251131_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9/linux-headers-4.9.0-040900-generic_4.9.0-040900.201612111631_amd64.deb

Then install with:

sudo dpkg -i *.deb

Then reboot into the new kernel. Confirm with:

uname -r

Obviously be careful if you have hardware or services deeply dependent on a certain kernel. My server only runs Plex and I was able to update with no ill effects.

Forgive the poor formatting, the 'code' format wasn't working correctly!


How do I install a printer on Ubuntu Server 12?

First, look to see if you have the necessary packages installed correctly with the service running:

dpkg -l cups
service cups status

If CUPS is not running start it.  Here is the command to install it and an offical CUPS link:

sudo apt-get install cups

https://help.ubuntu.com/10.04/serverguide/cups.html

If you have the GUI (desktop environment) installed on your server, simply enter this into Firefox as a URL to configure it:

http://localhost:631

If not, I'd recommend accessing the printer from another computer's web browser.  By default, network access is denied, so you'll need to allow another computer by IP address.  To do this, modify the configuration file to "Listen" to the other computer's IP address:

vim /etc/cups/cupsd.conf

Finally, configure the printer from the other computer by using the Ubuntu Server's IP address instead of localhost, like this:

http://192.168.0.3:631

Credit: https://www.linux.com/community/forums/printers/installing-hp-printer-in-ubuntu-1104-server

Here are a couple more links if you need them:

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

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


How to switch input language on Caps Lock in Ubuntu 15.10 Gnome 3.16

Gnome tweak tool GUI check:

Gnome tweak tool > typing > Caps Lock key behavior check Caps Lock is disabled.

Terminal:

gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['VoidSymbol']"


How to fix empty __dummy__ problem on desktop - ubuntu 16.04

When I tried to delete it in the GUI, the prompt said 'No such file or directory'.

So ran this in the problematic directory and worked well.

$ mkdir __dummy__
$ rm -r __dummy__


First revert your chmod: you don't want to make that file world-writable.

sudo chmod 644 /etc/apache2/apache2.conf

"Read only" means you don't have permission to write to the file. The reason you can't write to this file even though you added write permission is that you don't have write permission on the directory, but you must leave the directory permissions alone too. There is almost never a good reason to change the file modes of system directories. Just don't do it!

Instead perform the edit as root as in your original attempt. To use gedit:

sudo -H gedit /etc/apache2/apache2.conf

Since it's a graphical application we'll use -H to prevent root becoming owner of gedit's config files.

Do your thing, save and exit...

To use nano

sudo nano /etc/apache2/apache2.conf

Do your thing, then type Ctrl+O and then enter to write and then Ctrl+X to exit.


Quality and detail settings are actually set per-game within the game's own configuration screens. If you open up a specific game and click on "Settings", most games have a "Quality" or "Video" options screen where you can change the quality and resolution settings.


how do I remove a startup application from the command line?

Quoting the Xfce Docs ("Some of my applications are always started when I login"):

  You can also manually delete those files in ~/Desktop/Autostart and ~/.config/autostart.

For example: open a terminal, type

cd ~/.config/autostart
ls

then rm the files that you want to delete.


Ubuntu 16.04 fresh install freezes on boot

The network installer asked me to confirm installing GRUB boot loader to the booting hard drive, unlike the normal installer, maybe that is why it works now?

Tbh I'm very tired already of this software. It should not make me waste so many hours when I just want to run some programs on it.


Is there a way to create an Open vSwitch internal port with netplan?

Netplan does not currently support to explicitly define arbitrary OVS internal ports (as of v0.102).
What you can do, though, is defining a VLAN on a given OVS bridge like this:
  vlans:
    #implicitly handled by OVS because of its link
    vlan1:
      id: 100
      link: vmbr0

This will create a "type=internal" Port/Interface for you on the OVS bridge defined by the "link" setting, as can be seen in this test scenario: https://github.com/canonical/netplan/blob/master/tests/integration/ovs.py#L184
That port can then receive arbitrary configuration (via netplan or ovs-vsctl).


Apache2 Reverse Proxy configuration for Docker Containers

EDIT:
Found out how to fix it, just had to edit /etc/hosts file

Original:

127.0.0.1    www.gitlab.ch
127.0.0.1    www.email.ch

Fixed:

172.17.0.2    www.gitlab.ch
172.17.0.3    www.email.ch

The problem was that i used the host machines local IP insted of the Docker Conatiners IP.


Hardware compatibility regarding multiple audio interfaces on Intel i5 2G?

Usually the compatibility of the hardware is based on the kernel that the OS is running (3.8 in Ubuntu 12.04 and 3.11 in Ubuntu 13.10). I think that you won't have problems to try with Ubuntu Studio 12.04.3 LTS (more stable) and Ubuntu Studio 13.10 (latest) due to the specs of your computer http://h10025.www1.hp.com/ewfrf/wc/document?cc=es&lc=es&dlc=es&docname=c03003921#N46

The best thing I think you can do is try with a LiveUSB both version and try with your audio interface and an audio interface that someone could lend you to know with version could work better for you.


Will the Nouveau driver continue to get updates?

Unless there are security fixes or certain bug fixes specifically for the drivers in Ubuntu, it is unlikely that you will get regular updates of the Nouveau drivers.

You can read more about Stable Release Updates on the wiki but basically once a version is released it does not change much.

Nouveau is an open source graphics driver so there will be improved drivers each Ubuntu release. Nouveau's 3D support is rather new and there will definitely be performance improvements by the time Ubuntu 11.10 is released.


I can't find my ISO/ZIP file for step 2 in the universal usb installer process

The ISO is probably in /home/user/Downloads.  That's where all download go by default, unless you have saved it somewhere else.

If that is the case, then you can search for the file.  To do so, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

find $HOME -name '*.iso'


Ubuntu 12.04, software center, opening applications

Ubuntu Software Center is not used for running applications. It is for purchasing, installing, and removing applications. If you want to run an application that is installed, simply open the dash by clicking on the Ubuntu logo on the top of the left bar (launcher), and you can search for the application, and run it. Or you can switch to the Applications view there, and browse your installed applications, as well as possibly some recommended apps.


Cannot use command line Argument list too long

The instructions you linked say

  add the following to your ~/.bashrc

export GOPATH=$HOME/.go
export PATH=$PATH:/usr/lib/go-1.10/bin:$GOPATH/bin

source ~/.bashrc

What the author presumably intended was

  add the following to your ~/.bashrc

export GOPATH=$HOME/.go
export PATH=$PATH:/usr/lib/go-1.10/bin:$GOPATH/bin

  and then execute the command

source ~/.bashrc

If you actually add the line source ~/.bashrc to ~/.bashrc, then bash will hang for ever while it recursively sources the file - likely this is also what's causing the argument list too long errors as it will repeatedly add arguments to lesspipe and dircolors

To fix it you will need to edit ~/.bashrc and remove the source ~/.bashrc line.


Is there a problem with my Ubuntu RAID array

Thanks Terence. Smartctl showed both disks to be ok so I ran sudo mdadm --manage /dev/md0 --add /dev/sda2 and it went ahead and added the the disk and rebuilt the array. All is looking to be ok again now.
cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sda2[0] sdb3[1]
      975578112 blocks super 1.2 [2/2] [UU]
      bitmap: 2/8 pages [8KB], 65536KB chunk

unused devices: <none>

lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0     7:0    0  99.2M  1 loop  /snap/core/10908
loop2     7:2    0  99.2M  1 loop  /snap/core/10859
sda       8:0    0 931.5G  0 disk
├─sda1    8:1    0     1G  0 part
└─sda2    8:2    0 930.5G  0 part
  └─md0   9:0    0 930.4G  0 raid1 /
sdb       8:16   0 931.5G  0 disk
├─sdb1    8:17   0     1M  0 part
├─sdb2    8:18   0     1G  0 part  /boot
└─sdb3    8:19   0 930.5G  0 part
  └─md0   9:0    0 930.4G  0 raid1 /

sudo mdadm --detail /dev/md0
/dev/md0:
           Version : 1.2
     Creation Time : Fri Aug 30 21:55:50 2019
        Raid Level : raid1
        Array Size : 975578112 (930.38 GiB 998.99 GB)
     Used Dev Size : 975578112 (930.38 GiB 998.99 GB)
      Raid Devices : 2
     Total Devices : 2
       Persistence : Superblock is persistent

     Intent Bitmap : Internal

       Update Time : Mon Apr  5 07:46:14 2021
             State : clean
    Active Devices : 2
   Working Devices : 2
    Failed Devices : 0
     Spare Devices : 0

Consistency Policy : bitmap

              Name : ubuntu-server:0
              UUID : 1d9d79bd:d675f751:144db975:0d24caa9
            Events : 1930973

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       8       19        1      active sync   /dev/sdb3


How to set permanent ip address from script

For setting a ip address on interface you can use fallowing command

sudo ifconfig eth0 xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy

after that

sudo route add default gw xxx.xxx.xxx.xxx

And you network will work.

If you wish put this command in /etc/rc.local

Use eth0 if you configure wired connection if you try to add ip on wless conection use wlan0.
List of interfaces you will get with command ifconfig


upgrade from 10.10 to 11.04 on dell latitude 430

Launch Synaptic (it is the default package manager in 10.04) and check in Menu/Settings/Repositories that you are using the main server, and not a local server. Some mirrors keep only LTS and current Minor release, so 11.04 may not be available. Try this and let me know. If it doesn't work or if you want to install 12.04 directly, got to step 2 and 3.
Go to the "Updates" section of the windows, and check that "Notify me a new Ubuntu version" is set to "For long term support versions"
Close Synaptic, start the Update manager, click on check. Instead of suggesting an update to 11.04, it should suggest to upgrade to 12.04. Try this and again, let me know.


Customizer freezes on Ubuntu 11.10 using 32 bit or 64 bit iso

Try to use /opt/Customizer/CLI.sh (use "-h" argument to see the help) to
extract the ISO. See the documentation for more details how to use
Customizer from the CLI (https://docs.google.com/document/d/1PfhHnSBjv-
IDI7Yh5obhMGYCAV9Gw1NPEynU4GqKTsA/edit) but keep in mind the the
argument to extract the ISO is now "-e" or "--extact" and the path to
the ISO must be specified in /opt/Customizer/settings.conf before doing
so and must be quoted (i.e. ISO="/home/user/test.iso").

If the terminal outputs error that a variable is not set in
settings.conf when extracting than probably the GUI is doing something
wrong .

Please, do the following so I can see whether the variables are set
correctly:

run Customizer
click "Select ISO" and choose the ISO you want
cat /opt/Customizer/settings and post the output

Also, make sure that you update Customizer (if the PPA doesn't contain
recent build you can update with the install.sh script, just follow the
instructions at https://github.com/fluxer/Customizer/wiki/Install) to
the last stable version available. The master (stable) branch is not
frozen and if I find critical bugs/issues I fix them in it too so
tracking on the GitHub.com page for commits is recommended (altought the
PPA should be up to date in matter of few hours, worst case scenario in
a day).

-- You received this bug notification because you are subscribed to the bug report. https://bugs.launchpad.net/bugs/920975
Title: Customizer 3.2.1 Fails to load ISO in Ubuntu 11.10
Status in Customizer - LiveCD Remastering Tool: New Bug description:
I have tried loading both 32 bit and 64 bit ISOs from the Ubuntu website of Ubuntu 11.10. None seem to work. I am using Customizer 3.2.1 on Ubuntu 11.10 64-bit. I installed the application from the ppa ppa:customizer-dev-team/devel and from the zip file provided on github. Both have the same problem. The bug is as follows: When I open the program, all buttons are grayed out except "Select ISO". When I click the button and navigate to the Ubuntu 11.10 ISO I want to remaster, I click open and the file browser dialog closes. The interface has not changed, all the buttons are still grayed out except "Select ISO". I can do this as many times as I like, the same thing happens. The terminal output is as follows:

williamt@FatalError-HP-Ubuntu:~$ gksudo /home/williamt/1/GUI.gambas
===================== Get_Str() begin =====================

[DEBUG] SrchFile: /opt/Customizer/settings.conf`
[DEBUG] SrchStr: WORK_DIR=
[DEBUG] Def: /home
[DEBUG] Loading file: /opt/Customizer/settings.conf

================== Get_Str() end (found) ==================

===================== Get_Str() begin =====================
[DEBUG] SrchFile: /opt/Customizer/settings.conf
[DEBUG] SrchStr: WORK_DIR=
[DEBUG] Def: /home
[DEBUG] Loading file: /opt/Customizer/settings.conf
================== Get_Str() end (found) ==================

===================== Get_Str() begin =====================
[DEBUG] SrchFile: /opt/Customizer/settings.conf
[DEBUG] SrchStr: WORK_DIR=
[DEBUG] Def: /home
[DEBUG] Loading file: /opt/Customizer/settings.conf
================== Get_Str() end (found) ==================

[EVENT] Checking configuration file
[EVENT] Checking essential directories and files
[EVENT] Disabling widgets

===================== Get_Str() begin =====================
[DEBUG] SrchFile: /opt/Customizer/settings.conf
[DEBUG] SrchStr: ISO=
[DEBUG] Def:
[DEBUG] Loading file: /opt/Customizer/settings.conf
================== Get_Str() end (found) ==================

=================== Replace_Str() begin ===================
[DEBUG] SrchFile: /opt/Customizer/settings.conf
[DEBUG] SrchStr: ISO=
[DEBUG] RpcStr: /home/williamt/Downloads/ubuntu-11.10-desktop-amd64 (1).iso
[DEBUG] Loading file: /opt/Customizer/settings.conf
[DEBUG] Saving file: /opt/Customizer/settings.conf
================ Replace_Str() end (found) ================

[DEBUG] Extracting ISO
[EVENT] Detecting Terminal Emulator
[EVENT] Checking essential directories and files
[EVENT] Disabling widgets


How to find out location / path of current active desktop background image (Ubuntu 18.04, GNOME)?

Launch Terminal and run the following command

gsettings get org.gnome.desktop.background picture-uri

This should show you the full path to the picture currently set as desktop background.


Sudden black screen after login Xubuntu 13.10

I'm having this same problem. In my case I just reinstalled Ubuntu. On my last installation, everything worked fine, but this time around I get a black screen following login. Gnome and Unity still load fine, though. I haven't installed any packages that weren't installed on my previous setup, either.


Ubuntu 14.04.1 Bug - issue with my on-board networking adapter and the ACPI of my computer

I suggest you remove all the instances you mention above. The correct way is:

sudo -i
echo "options forcedeth msi=0 msix=0"  >  /etc/modprobe.d/forcedeth.conf
exit

Upon reboot, the parameters will be applied. Whether they fix your exact issue is another question.


How to configure surround sound audio using three 3.5mm jacks as output?

From my understanding, you need to have the correct connections on your sound device first (ex. 4 or 5 outputs that correspond to each speaker). Otherwise, you are just emulating the surround. I do not think you can tell 'mic' or 'line-in' to output sound, as they are not designed to do this.

This may give you more info - Using microphone input port as headphone output


How to modify behavior of workspace navigator in Gnome 3.10?

Try this Gnome extension. It supports both up-down and left-right workspace navigation.


High CPU temperature and Fan speed in ubuntu 12.04

Apparently you didn't install drivers for your dGPU (your Radeon), here is what you have to do:

You have to download the following packages:

sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6

sudo apt-get install dkms libqtgui4 wget execstack libelfg0 dh-modaliases

sudo apt-get install linux-headers-generic xserver-xorg-core libgcc1

If you're using a 64bit system, addditionally install these packages as well

sudo apt-get install ia32-libs lib32gcc1 libc6-i386

cd /usr ; sudo ln -svT lib /usr/lib64

Download and install drivers

cd ~/; mkdir catalyst12.10; cd catalyst12.10/

wget http://www2.ati.com/drivers/linux/amd-driver-installer-catalyst-12.10-x86.x86_64.zip

chmod +x amd-driver-installer-12-10-x86.x86_64.run

sudo sh ./amd-driver-installer-12-4-x86.x86_64.run --buildpkg Ubuntu/precise

sudo dpkg -i fglrx*.deb

sudo aticonfig --initial -f

Reboot

If you are having problems with switching to your iGPU and Unity3D, you may have to change the /etc/X11/Xsession.d/10fglrx with root

gksu gedit /etc/X11/Xsession.d/10fglrx

If you are using a 32 bit system, the file has to look like this:

LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri
if [uname -m= 'x86_64' ]; then
if [ -d /usr/lib32/fglrx/dri ]; then
LIBGL_DRIVERS_PATH=${LIBGL_DRIVERS_PATH}:/usr/lib32/fglrx/dri:/usr/lib32/dri
if [ ! -z $LD_LIBRARY_PATH ]; then
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:
fi
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}/usr/lib32
export LD_LIBRARY_PATH
fi
fi
export LIBGL_DRIVERS_PATH

If you are using a 64bit system, like this:

LIBGL_DRIVERS_PATH=/usr/lib/fglrx/dri
if [uname -m= 'x86_64' ]; then
if [ -d /usr/lib32/fglrx/dri ]; then
LIBGL_DRIVERS_PATH=${LIBGL_DRIVERS_PATH}:/usr/lib32/fglrx/dri:/usr/lib/x86_64-linux-gnu/dri
if [ ! -z $LD_LIBRARY_PATH ]; then
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:
fi
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}/usr/lib32
export LD_LIBRARY_PATH
fi
fi
export LIBGL_DRIVERS_PATH

Reboot


Make sure that you correctly wrote an image to an usb drive and usb drive can be read on another PC. Then reboot your PC and either go to BIOS and set boot sequence so it loads from your USB HDD or USB FLASH, or press a button to open boot menu and choose to boot from your usb drive. This should be enough, and if not - describe where exactly are you having problems.


Why won't my system boot off of a partition that I just transferred the Ubuntu install image to using the dd command?

Maybe this Link (Ubuntu Live-USB Creation) can help you. It worked fine for me, because I never got it to work manually just with dd, the other tools worked for me just fine :)


Brother MFC-L2700DW printer can print, can't scan

I had a similar problem with brother printer/scanner MFC-J625DW.
Could not get the scanner to work until I followed the instructions on this faq.  Second item, "I cannot find the brother machine".  Apparently, some files may be copied into the wrong folder.  My system is lubuntu 17.10 32-bit and the driver is brscan4.

According to the faq the fix is :
Check if the following directory exist.

For 64bit Users:
/usr/lib/x86_64-linux-gnu/sane

For 32bit Users:
/usr/lib/i386-linux-gnu/sane

Type the following command if the above directory exists.

For 64bit Users:
Command : sudo cp /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane

For 32bit Users:
Command : sudo cp /usr/lib/sane/libsane-brother* /usr/lib/i386-linux-gnu/sane

Next to this, your username must also be part of the group owning the scanning device. 'lp' in my case.
And if you want to start scanning from the device, you need to install and run first brscan-skey

To clarify I will list all actions I did to get my MFC-J625DW to work (reboot between some steps may be useful):

download, unzip and run script for your device from
support.brother.com (this installed all necessary packages for my
device) Follow all instructions on that site.
add myusername to the
group lp, owning the scan device sudo adduser <myusername> lp
if you need to find out the name of this group, switch on the device, do
lsusb, note the busnr and devicenr of the brother, and execute ls -l /dev/bus/usb/busnr/devicenr (3 digits per nr)
did the filecopying fix described above
to enable all features of brscan-skey, I need gimp, sane and xsane
sudo apt install gimp
sudo apt install sane sane-utils libsane-extras xsane


How to dual boot Ubuntu without USB or CD/DVD?

Sadly, there's no way that I (and probably anyone else for that matter) know of to install Ubuntu without needing a USB stick or other form of installation media, so your best bet is to wait until you get some form of installation media.
Also, if you have a low end computer, I wouldn't recommend normal Ubuntu, since the Gnome desktop enviroment is pretty resource heavy. Instead I would recommend some other Ubuntu flavour with a lighter desktop enviroment, like Xubuntu or Lubuntu.


Wireless disabled even though the direct connectin (thru modem) is working fine

never Mind, i was able to figure it out, I actually installed b43-fwcutter driver manually by coying the file from a network earlier but i guess that was not the correct way.

Solution: I connected directly using the modem and network cable and used System Settings -- > Additional Drivers and have it download the **Broadcom STA Wireless Driver automatically from the internet and activate it and restarted my laptop. Wireless now works as expected.

FYI: In case : you are not able to use my solution (i.e. not able to connect to internet and download the driver automatically) , i found this while searching for all these issues in help pages which might be useful to you.

https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx#b43%20-%20No%20Internet%20access

Happy Surfing!


How to install bug fixes for nvidia in kernel 3.7.9?

If you want to stay on LTS you should try to install the hardware enablement stack, especially the kernel. You can install the quantal kernel via linux-image-generic-lts-quantal package, there is also a metapackage for the xserver. The raring kernel should be available in 12.04 shortly after the release of 13.04. Until then I recommend disabling the nvidia graphics, which isn't that bad because those Zenbooks all ship with latest Intel processors that feature Intel integrated graphics, which run almost flawless.


How can I immediately disable all emails using postfix?

/etc/postfix/main.cf

You should find there the specified line and modify it accordingly.

After that, try to restart the postfix service for the new configuration to take effect by issuing the following command:

sudo /etc/init.d/postfix restart

Or just reboot the system.


How to disable samba shared folder password prompt

check "Remember My password" check box.

Then check "Reconnect at logon"


Xubuntu 20.04 not utilizing Radeon driver amdgpu correctly

I downloaded the driver installation package from Radeon and ran ./amdgpu-install per their instructions in ./doc/index.html. Gave it a restart and everything is now just fine.


SMPlayer plays mp4 video too fast on Ubuntu 14.04

I've got the same problem in Xubuntu 14.04. Some videos are being played extremely fast in both mplayer and smplayer.

Thanks for your workaround with ''-fps'' parameter, now I am able to play the weird videos with correct speed via:

mplayer -fps `exiftool *.MOV | grep -i "frame rate" | cut -d : -f 2` *.MOV


The issue is the browser does not know what to launch with the .ica file in Ubuntu.

I used the following article link to get my Citrix Client to Work in Ubuntu 13.10. I've since upgraded to Ubuntu 14.04 64-bit and haven't tried to install Citrix yet, but try this to see if it will work in Ubuntu 14.04. Also, for further follow up, it would be helpful to know if you're using the 32-bit version or 64-bit version of Ubuntu.

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

I do know the regular client did not work for me (Citrix Receiver), I had to download and install the Web Client (XenApp).


Better late than never...

Finally found this, somehow:

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

Tested this preseed option (in Ubuntu 18.04), and it works. It seems specifying a single value for multiarch effectively restricts its default behavior of adding i386 package support.

Add this to your preseed file:

d-i apt-setup/multiarch string amd64


Charms and juju. Why there are no charms under saucy?

Most charm authors only release charms under the LTS release unless the charm is not functional on the non-LTS releases. If you are having an issue deploying a charm under saucy your best bet is to contact the charm author for an update. Since charms are designed for software deployments in production environments we recommend using an LTS.

Saucy only has a support life of nine months, while LTS releases will be supported for over 5 years. As such, server deployments (and by association, charms) are targeted at LTS releases of Ubuntu (precise, trusty). Charm authors can choose to provide versions of charms for other Ubuntu releases, but it's not a requirement.


Usb wireless mouse and keyboard freezing only when external screen is connected

My ubuntu 16.04 was upgraded from 14.04 with "Laptop Mode Tools" installed and I have the same problem.

In my case, I found it might caused by "Enable module usb-autosuspend" option of LMT.
However, turning option off seems no effect on the problem.

Here is what I do and it works...
edit /etc/laptop-mode/conf.d/usb-autosuspend.conf and change the value of AUTOSUSPEND_TIMEOUT. (I changed it to 300 seconds)

Also, you can solve this problem by adding your USB device (mouse/keyboard) ID into LMT's blacklist.

under Terminal, use lsusb to find out your USB device ID
in the usb-autosuspend.conf as mentioned above, add the device ID to AUTOSUSPEND_USBID_BLACKLIST option.


Plug your hard drive. Open Disk Utility. Choose the drive. In format Type option you will have ext2 option format it. [You may need to unmount it before formatting]

OR

you can install gparted and format to desired partition. You need to install gparted I guess. Just do sudo apt-get install gparted.

EDIT: I myself would recommend ntfs to any other partition if you have to access it on windows. Or create one partition on ntfs and other on ext4 on 50-50 storage basis.


Failed to build app with Apache Cordova on ubuntu 16.04

I found the solution to my problem is that I am using the Android sdk build-tools 24.0.1 sdk and this version brings the judgment, those who have the same problem I should install an earlier version to this , for example, 23.0 . 3 operates properly! I hope that it will help for those who
have the same system with the same problem, Greetings!

look here Android SDK Manager

The selected version work properly !


Enable ecryptfs for all new users, even those authenticating through kerberos and ldap

I have managed to get it to work using pam_exec:

Create a script to setup ecryptfs for all new users in /etc/security/ecryptfs:

#!/bin/bash

home=`eval echo ~$PAM_USER`
ecryptfs=/home/.ecryptfs/$PAM_USER/.ecryptfs

read password

if [ -d $ecryptfs ];  then
    # ecryptfs is set
    echo "Ecryptfs is already configured"
    exit 0
elif [ `id -u` == 0 ]; then
    # Setup ecryptfs and make home
    umask 077
    mkdir -p $home
    group=`id -gn $PAM_USER`
    chown $PAM_USER:$group $home

    ecryptfs-setup-private -u $PAM_USER -l "$password" -b --nopwcheck
    exit 0
else
    # NOT ROOT
    echo "Cannot login with 'su' for the first time"
    exit 1
fi

Make sure the script is executable:

sudo chmod a+rx /etc/security/ecryptfs

Add entry to execute it with pam_exec on auth:

sudo vim /etc/pam.d/common_auth

Add the following lines:

auth    required        pam_exec.so     expose_authtok /etc/security/ecryptfs
auth    optional        pam_ecryptfs.so unwrap

The pam_exec is set to required, because it will not setup ecryptfs if the script doesn't run as root. This is the case if su is used from a non-root user. So if ecryptfs is not setup and su is used (that is when the user attempts to login for the first time using su) then his will get refused. As such we ensure that the user cannot login without an ecryptfs setup.
Create another script to populate the home directory in place of pam_mkhomedir

sudo vim /etc/security/mkhome

This script will copy everything in /etc/skel if the file .donotremove doesn't exist.

#!/bin/bash

cd ~

if [ ! -f .donotremove ] ; then
    echo Copying /etc/skel
    cp -ra /etc/skel/* ~
    touch .donotremove
fi

Also make sure this file is executable:

sudo chmod a+rx /etc/security/mkhome

Add another entry to execute this script on a session

sudo vim /etc/pam.d/common_session

Add the following lines:

session optional        pam_ecryptfs.so unwrap
session optional        pam_exec.so     seteuid /etc/security/mkhome

Now LDAP users can login and have an ecryptfs encrypted home directory.

Update

Instead of editing the files in /etc/pam.d directly (which is generally not recommended), it is better to apply the settings as a PAMConfig profile.

Just paste this code into a new file /usr/share/pam-configs/ecryptfs-nonlocal:

Name: Enable EcryptFS for users from remote directories such as LDAP.
Default: no
Priority: 0
Conflicts: ecryptfs-utils
Auth-Type: Additional
Auth-Final:
    required    pam_exec.so expose_authtok /etc/security/ecryptfs
    optional    pam_ecryptfs.so unwrap
Session-Type: Additional
Session-Final:
    optional    pam_ecryptfs.so unwrap
    optional    pam_exec.so seteuid /etc/security/mkhome
Password-Type: Additional
Password-Final:
    optional    pam_ecryptfs.so

And then run pam-auth-update:

Check Enable EcryptFS for users from remote directories such as LDAP. and make sure that eCryptfs Key/Mount Management is unchecked. Leave all other options up to your preferences.

This will make sure that relevant configs in /etc/pam.d are applied and that they stay there.


Snap package with QT4 application cannot find sql database driver

I was able to set the plugin path using an environment variable, found deep in the Qt4 documentation:

    environment:
      QT_PLUGIN_PATH: "$SNAP/usr/lib/x86_64-linux-gnu/qt4/plugins/"

Not nice is the hard-coded architecture part of the path. But it seems that's a common problem on envvars in snapcraft.yaml. I would expect something like $SNAP_ARCH but that one contains the string amd64


There's a partial answer in this ubuntuforums post .

There are examples using ffmpeg and mencoder, which "works with mp4,avi,mpeg,wmv1,wmv2,mkv output" .

The two examples cor2y gives are:

 ffmpeg -i file.avi -vcodec copy -acodec copy -metadata title="Dancing Bear" -metadata comment="Title Created Using FFmpeg metadata tag" outputfile.avi

and

 mencoder -ovc copy -oac copy file,avi -info name="Dancing Bear" -info comment="File Title Created with Mencoder Info tag "  -o outputfile.avi


Using file test code to test for permissions, I have used -rwx inside [] but will not work?

Your script works for me as you coded it.  Works fine as is but should start

#!/bin/bash

I created the file test.sh and pasted in your code.

chmod +x test.sh

./test.sh

Received the correct echo message depending on what privs I had when I executed the script.


The problem is, that your cannot partition your hard-drive because it is active. Therefore, your hard-disk need to be in an inactive state. I recommend you to install Gparted-live on an external drive, e.g. on a USB stick. It will help you to partition your hard-disk. For more information and instructions, see:
https://gparted.org/livecd.php

There are also installation instructions.


Ubuntu server 12.04 can't connect home wireless network

I ran into a similar problem with wireless access when I entered the Linux world a few months ago.

I found what seems to be a solution on the forum page listed below. What worked for me was to run the two "sudo" statements from the terminal (I don't know exactly what they do, but it worked):

  sudo modprobe -r iwlagn

  sudo modprobe iwlagn bt_coex_active=0

  ----- To make the change permanent:

  gsku gedit /etc/modprobe.d/iwl.conf

  ----- Copy/paste this line into the new file:

  options iwlagn bt_coex_active=0

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/876147

...I tried to follow the directions and "make the change permanent", but it didn't seem to work for me. So I just run the two "sudo" statements via a bash file every time I restart my computer...

(Sorry, I can't post anything intelligent about your WPA or the IP questions)

I hope that helps...


Configuring network settings in Linux via gsettings/script/terminal

You can use the nmcli tool to edit connections through NetworkManager.

For example, say you want to create an ethernet connection for device: enp1s0.

IP: 192.168.1.10
gateway: 192.168.1.1
DNS: 8.8.8.8
connection name: "net-enp1s0"

sudo nmcli con add con-name "net-enp1s0" ifname enp1s0 type ethernet ipv4.method manual ip4 192.168.1.10/24 gw4 192.168.1.1 ipv4.dns 8.8.8.8

or as a script (you will need to use sudo to run this script):

#!/bin/bash
nmcli con add \
con-name "net-enp1s0" \
ifname enp1s0 \
type ethernet \
ipv4.method manual \
ip4 192.168.1.10/24 \
gw4 192.168.1.1 \
ipv4.dns 8.8.8.8

These are the options:

con = connection
add = add
con-name "net-enp1s0" = connection id
ifname enp1s0 = connection interface-name
type ethernet = connection type
ipv4.method manual = use static IP
ip4 192.168.1.10/24 = local ipv4 address and netmask (24=255.255.255.0)
gw4 192.168.1.1 = gateway
ipv4.dns 8.8.8.8 = DNS server

You can also edit an existing connection.

Configuration file for our "net-enp1s0" connection is: /etc/NetworkManager/system-connections/net-enp1s0. The file should look like this:

[connection]
id=net-enp1s0
uuid=5099a1ae-1ae0-42d7-acf8-178ef3772f4f
type=ethernet
interface-name=enp1s0
permissions=

[ethernet]
mac-address-blacklist=

[ipv4]
address1=192.168.1.10/24,192.168.1.1
dns=8.8.8.8;
dns-search=
method=manual

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto

If you edit the configuration file for a network, you can run the following command to apply the changes:

sudo nmcli con reload

The following example is for a WPA wireless connection with PSK named "coffee-shop" on a network named "freewifi" using the password "freepassword":

sudo nmcli con add con-name "coffee-shop" type wifi ifname wlp2s0 ssid "freewifi" -- wifi-sec.key-mgmt wpa-psk wifi-sec.psk "freepassword" ipv4.method manual ip4 192.168.1.10/24 gw4 192.168.1.1 ipv4.dns 8.8.8.8

Here it is as a script:

#!/bin/bash
nmcli con add \
con-name "coffee-shop" \
type wifi \
ifname wlp2s0 \
ssid "freewifi" \
-- wifi-sec.key-mgmt wpa-psk \
wifi-sec.psk "freepassword" \
ipv4.method manual \
ip4 192.168.1.10/24 \
gw4 192.168.1.1 \
ipv4.dns 8.8.8.8

Links:

Wifi example based on this answer by user @cody-G
NetworkManager nmcli documentation at gnome.org
CertDepot tutorial "RHEL7: Configure IPv4 addresses"

Also, this Arch Linux wiki page has a list of nmcli examples.

The CertDepot tutorial is for RedHat but pretty much all of the nmcli stuff applies to Ubuntu. However, Ubuntu configuration files are in /etc/NetworkManager/system-connections and you can directly edit these files.


Samsung Battery Life Extender - limit battery charging to 80% under Ubuntu

This was tested and validated to work on Ubuntu 12.04 x64 - 14.04 x64 and Linux Mint 16 x64 - 17.3 x64 and Samsung NP300E5Z laptop.
Essentially, we need to change content of /sys/devices/platform/samsung/battery_life_extender file to 1 or 0.

To turn on Battery Life Extender (run command from bash console):

sudo tee /sys/devices/platform/samsung/battery_life_extender <<<1

To turn off Battery Life Extender (run command from bash console):

sudo tee /sys/devices/platform/samsung/battery_life_extender <<<0

You may also use text editor, I used Sublime Text once.
There also seem to exist one or more aliases of above mentioned file, one being: /sys/bus/platform/devices/samsung/battery_life_extender


How can I make Ubuntu more responsive on a netbook?

Logout, and select Ubuntu2d as session. Ubuntu2s (aka Unity2d) looks very similar, still uses Metacity, and should provide better performance, especially on machines with Intel GPUs.
If you like the result, make Ubuntu2d the default session:

sudo nano /etc/lightdm/lightdm.conf

change the line

user-session=ubuntu

to

user-session=ubuntu-2d

Info source: How do I change the default session for when using auto-logins?


You can reboot via the terminal with shutdown -r now, assuming you're root.


Installing odbcins1debian2, broken dependency on Ubuntu 20.04 LTS

This problems looks like you forgot to run sudo apt-get update before installing odbcinst1debian2. On focal this package does not depend on multiarch-support.

By the way multiarch-support may be installed manually:
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_amd64.deb
sudo apt-get install ./multiarch-support_2.27-3ubuntu1.4_amd64.deb


Is there a way to disable Intel SpeedStep on an Ubuntu Server using a command line application?

To disable SpeedStep, you would run cpufrequtils.  It should already be installed on your system if you're running a Gnome desktop.  If not you can install it by clicking below

Once you install it, you would run

 sudo cpufreq-selector -g performance

However, running the CPU at full speed, may cause it to shutdown after a few minutes.

sudo cpufreq-selector -f <specify speed>

To verify your CPU speed, use the "cat" utility:

cat /proc/cpuinfo


GPG encrypt a file with only a passphrase (no key storage needed)

What you want is called symmetric encryption -- where the same key is used for both encryption and decryption -- and yes, GnuPG can do it.

Use --symmetric or -c instead of -er RECIPIENT.

PS: You can combine the two modes so that a file can be decrypted by either the symmetric passphrase or by any of the RECIPIENT private keys.


Wrong display configuration used by LightDM in Ubuntu 13.10 when laptop lid is closed in docking station

i use

session-cleanup-script=path-to-script

to launch my script and it works fine for me ... lightdm screen shows the correct resolution and monitors are on the proper sides.

do keep in mind that i use something like

nvidia-settings --assign CurrentMetaMode="HDMI-1: 1280x720_60 +1920+0 {ViewPortIn=1280x720, viewportout=1240x697+20+11}, DVI-D-0: nvidia-auto-select +0+0"

and not xrandr as i need to also correct the overscan for my TV since it doesnt have an option for it.

P.S.
13.10 changed the location of the file to a sub-directory (read this from this blog)

http://blogs.bu.edu/mhirsch/2013/10/ubuntu-13-10-removing-guest-access-and-removing-remote-login/


Well, first of all, if you'd like Gnome on your netbook, you could technically install Ubuntu on it (no Netbook Edition).

If it's already there, you can just log out and choose the 'Gnome' session at the login screen. And maybe follow this guide to make it fully customizable.


I use the proprietary ATI driver on Natty. It comes with a Catalyst Control Center that allows me to control brightness, contrast etc.

If you have an ATI graphics card the driver should be easy to install if you go to 'Additional Drivers' in Ubuntu.

I don't know how to adjust contrast etc. without using the closed-source driver though.


How can I completely remove Ruby + Rails + Gems?

If you're using Ubuntu Packages run sudo apt-get purge <packages>

So that should be something like:

sudo apt-get purge ruby rubygems

From the apt-get man page:

  purge
      purge is identical to remove except that packages are removed and purged (any configuration files are deleted too).


I was able to install it by disabling RAID.


Recommendation for a lightweight midi editor/sequencer?

MusE is a MIDI/Audio sequencer with recording and editing capabilities. MusE aims to be a complete multitrack virtual studio for Linux, it is published under the GNU General Public License.MusE

MusE is part of Ubuntu Studio.


Avconv doesn't convert .MKV to .MP4 no errors output file 0KB

Try installing the Ubuntu restricted extras package. You may be missing some of the required codecs. You can install through the software center as shown below:
Or you can install via the command line with sudo apt-get install ubuntu-restricted-extras


Try the below commands and update the nvidia,

sudo apt-add-repository ppa:xorg-edgers/ppa

sudo apt-get update

sudo apt-get install nvidia-current nvidia-settings

Hope this will helps to get relieve from the laggy desktop.


Ubuntu 17.10 grub and splash screen low resolution with Nvidia driver only

You can edit GRUB to set a custom resolution to fix this. If I remember correctly the splash screen will also be the correct resolution then.

Because editing the GRUB has potential consequences and terminals are scary I like to use a GUI for this.

Add the PPA and install Grub-Customizer

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

Inside Grub Customizer, set the cutom resolution and save.


The first thing to do is to install Java:

$ sudo apt-get update
$ sudo apt-get install openjdk-7-jre icedtea-7-plugin

Restart chromium-browser and then use about:plugins to check if it's enabled.


How to get apt to make files in /var/cache/apt/archives always world-readable?

APT is affected by the umask of root which is inherited from the global setting from /etc/profile. You've likely a line in it with umask 077. To make the files world-readable by default, you'll have to change it to:

umask 022

To change default the permissions of existing files, run:

sudo chmod 644 /var/cache/apt/archives/*

To copy archives from one machine to another, you can use netcat. On the source machine (ip = 10.0.0.2) which has .deb files to be distributed you need to install netcat-traditional and run:

cd /var/cache/apt/archives
tar c * | nc.traditional -l -p 1234

Replace * by the files you want to copy.

On the target machine, run:

nc 10.0.0.2 1234 | sudo tar xv -C /var/cache/apt/archives


I found a similar question which provides the answer How do I run a command using libertine-container-manager exec

libertine-container-manager exec -c "tool"

This works for apps installed in the default puritine container. If you want to use something you have installed in a container you created yourself you need to specify that:

libertine-container-manager exec -c "tool" -i your_container


How set ntpd log to DEBUG or something more verbose

You don't need increased log verbosity.  What you need is to view (and probably graph) the statistics files in /var/log/ntpstats/, and/or monitor NTP through a monitoring system like collectd, nagios, prometheus, or telegraf.

Synchronisation is not a one-off event; it's something that happens constantly.  NTP makes constant minor adjustments to the rate of the clock, not its value.  So you shouldn't expect to see log messages saying ntpd has synced the clock; rather, in the stats files you'll see point-in-time samples of how well it is synced.

To see how well your local clock is doing, you'll want to look at loopstats.  I made a (very rough) interactive graphing script to do that.  You can check out how well your peers are doing by looking at peerstats.  I made a similar script to do that.  You can find out more about the stats files at http://doc.ntp.org/current-stable/monopt.html

To monitor your system with one of the above-mentioned monitoring tools, check out NTPmon, starting at the top level of that repo.

If you are concerned about your clock's accuracy, the most important thing you should do is include more sources in your configuration.  The NTP Best Current Practices (RFC8633) recommends a minimum of 4 sources, but using the pool directive and letting ntpd decide how many it needs is best.

(You probably also don't need burst in your server line - some NTP servers will block clients which use this; iburst is usually fine, though.)


If I download Ubuntu 10.04, having 11.10, will my files be in in 10.04?

You can not downgrade Ubuntu.

If you wish to install a previous version of Ubuntu then you should do a new fresh install which will reformat your file system and hence lose all data.

So you must first backup your files. The most important to backup is probably your home directory, but you might want to backup some configuration files from the /etc/ directory.

You can backup your files to Ubuntu One cloud, a CD or a USB drive.


Gnome as all GTK application, its RTL switch comes from locale definition and it's tight coded. So you have to change to RTL locale/language. If that locale is not installed GUI will be flipped but text/labels/menu will fall-back to the original language (English in most cases) with warning message:

Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

As I know Chinese is direction independent, I suppose it is configured as LTR. So it is better to look pure RTL locales like Arabic, Hebrew, Persian ...

To change setting for Unity or Gnome Sessions/Desktop

To change global settings /etc/default/locale, Example (ar_DZ, Arabic_Algeria):

LANGUAGE=ar
LANG=ar_DZ.UTF-8

Need to logout
To change only user setting ~/.pam_environment

LANGUAGE=ar
LANG=ar_DZ.UTF-8

Need to logout

Another way, If you want to flip GUI or switch locale/language for just one application:

Open terminal Ctrl+Alt+t
Run it with LANG=ar_DZ.UTF-8 or LANGUAGE=ar_DZ.UTF-8, try both of them not all application use same env variable:

LANGUAGE=ar_DZ.UTF-8 evince
LANG=ar_DZ.UTF-8 okular

Qt applications have a separated RTL switch -reverse which could be used without language change. Example:

qv4l2 -reverse

Now, If your language is not English and you want to use RTL flipped interface with it. There is a trick, you may test it:

Generate new locale as variation of an RTL language, example:

sudo locale-gen ar_YY.UTF-8
sudo dpkg-reconfigure locales

Copy your language translation (of gettext) files to new locale folder. As example French.

sudo cp -r /usr/local/share/locale/fr /usr/local/share/locale/ar_YY

Not all application put their locales in /usr/local/share/locale/. If you face such case, you may look where all locale files:

locate /locale/fr

References:

Some menus are in Chinese/Japanese!
How to switch between Right To Left and Left To Right layout
How to open a PDF view 2 pages at a time, but for Arabic PDFs (where left page is on right)


I cannot login to Ubuntu 14.04 LTS after upgrade from 12.X

I found this buy searching Ask Ubuntu. I know how it is when you really need an answer. Try using the search features before posting next time.

Same issue resolved in this thread


Not able to find wifi network and change brightness on ubuntu 16.04

Jeremy31's "comment" should be the correct answer. I am on an HP Pavillion on Ubuntu Gnome 16.04.2, and recently upgraded the kernel to 4.8.0-53-generic from 4.8.0-52-generic, upon booting, I lost all networking and brightness was set to 100%, brightness control was missing from the menu and the keyboard's brightness was unusable.

After booting back on 4.8.0.52-generic, I noticed that the linux-image-extra package had not been installed for the -53 version, so I installed it manually, and rebooted. All was back to normal from that point.

The strange issue here is that I used the standard "software update" app to update the kernel, and it seems like it didn't install the extras package for some odd reason, hope this helps.


The syntax of mv is mv <source> <target>, so the final command that find executes should look like:

mv test-a test-10

So, the first guess would be try:

find ~ -type f -name test-a -exec mv {} test-10 \;

However, this will fail, since {} gets expanded to the full path and mv is still run in the current directory, resulting in all the files being moved to your current directory and getting overwritten. To avoid this, you can use -execdir so that mv gets executed in the directory where the file was found:

find ~ -type f -name test-a -execdir mv {} test-10 \;

Or, since the filename is always the same:

find ~ -type f -name test-a -execdir mv test-a test-10 \;


Accidentally created another root user. How to delete or change permissions?

userdel has an option -f to force removal. userdel would probably just delete the passwd entry and home directory, without affecting the actual root account.

To be safer, I might be inclined to hand-edit the password file to remove the entry for your new root user, then hand-remove new root user's home directory. You may have a command on your system named nano, which lets you safely edit /etc/passwd in a text editor.

Source: https://superuser.com/questions/804210/how-can-i-delete-root-users


How to synchronize hamster-tracker with ubuntu one

You could add ~/.local/share/hamster-applet/ to your list of Cloud Folders syncing with Ubuntu One. You can do that by right-clicking on the folder > Ubuntu One > Syncronize This Folder.

Another option might be to move the ~/.local/share/hamster-applet/ folder into your ~/Ubuntu One folder and put a symlink at ~/.local/share/hamster-applet/ pointing to the folder in your Ubuntu One directory. You can easily make a Link by right-clicking and selecting Make Link.

NOTE: One thing you can not do is put a symlink in the Ubuntu One folder pointing at ~/.local/share/hamster-applet/. Ubuntu One will not follow a symlink.


Seems to me I've run into that problem with a bad USB write from a good file -- unetbootin sometimes changes an ISO in a way that prevents it from booting successfully; dd makes a faithful copy that, in my experience, always works.  It's also possible for a damaged partition to cause this kind of failure; recreating the partition table on the flash drive usually corrects that problem. If the MD5 is good, those are the two things to look for.


How install ubuntu-touch emulator on ubuntu13.10

Go into the directory through terminal and run the below command to execute run-emulator.sh file,

./run-emulator.sh


Asus Laptop Battery Health Charging support in Ubuntu

I have a dual boot laptop Asus (win10 and ubuntu) and I had a similar problem.

After many efforts, I finally found a solution to this problem:
When you turn on your laptop, first boot Windows 10 and run "ASUS cheath charge" and select your battery mode, then restart (** not turn off **) and boot your ubuntu. After this, the battery will remain on the selected level in Windows 10, for example 60% or 80%
Now enjoy your Ubuntu.


change permission to read write and execute

Run sudo chmod a+rwx /var/lib/iHRIS/sites/manage to give read, write and execute to all who wants to access it.

Note: a=All (u=User, g=Group) and rwx is Read, Write and eXecute. + means add permission, - means remove permission.


What has been your experience with paid support from Canonical?

When I was an inexperienced ubuntuuser I chose to buy support from Canonical. I run Ubuntu on my business pc too, so I had to be absolutely sure that I would never be alone with a problem, and with Canonical I wasn't. They turned out to be very persistent, and wouldn't leave me alone till the problem was solved :o)


Automatic authentication for samba shares

You can declare the share as public. Edit the /etc/samba/smb.conf file, and use this template:

[public]
   path = /usr/somewhere/else/public
   public = yes
   only guest = yes
   writable = yes
   printable = no

Beware, disable authentication at your own risk. This is accessible by anyone. Use the writable flag to secure it to read only.


Getting Adware/Malware popup on Chromium

In Chromium scroll down to the Privacy header and click on the big Content settings button.

Scroll down a little bit more in the window that appears until you see the Pop-ups section. The option Do not allow any site to show pop-ups should be selected; if it isn’t select it. Click the Done button at the bottom of the window.

In later versions of Chromium the above navigation is similar but changed a bit to 3 vertical dots icon in upper right corner ⋮ -> Settings -> scroll down to Advanced -> Privacy and security -> Content settings -> Popups -> Blocked (recommended).
AdBlock is the most popular Chrome extension, with over 40 million users. AdBlock blocks ads all over the web. AdBlock is also included by default in the QupZilla web browser from the Ubuntu repositories.


installing grub is for getting an installed system to boot, this does not apply to you,

In your case it is one of two possibilities,

1) the installer doesn't have raid capability thus can't see it.

this I think is your most likely cause, since the installer doesn't report the drive. there is a way to get the raid support in the installer but I am not knowledgeable enough about the boot images to tell you how.

2) your USB is booting in a different mode than your windows install. (UEFI vs Legacy). the boot system of one can not read a drive partitioned for the other.

In this case the installer will usually see the disk but think it is unpartitioned. the fix is to get the USB to boot in the same mode as the windows install. the method depends on which way you need to go.

I know this isn't quite an answer but it is too big for a comment and hopefully helps guide you to the next step


Problem installing certificates with letsencrypt

Let's Encrypt has currently disabled TLS-SNI-01 challenge due to some security issue. The temporary workaround according to Let's Encrypt is provided in the link below (this worked for me).

sudo certbot --authenticator webroot --webroot-path <path to served directory> --installer apache -d domain

For more details please check:

https://community.letsencrypt.org/t/solution-client-with-the-currently-selected-authenticator-does-not-support-any-combination-of-challenges-that-will-satisfy-the-ca/49983


Please try Alt-F2 & then in the pop-up enter single character r & then submit. This would restart Gnome.


Is there a way to access my music on Vista while I work on Ubuntu?

Simply mount your windows drive in Nautilus (click the drives in the left pannel), and then with Banshee or other player import those songs.
If you want to automatically mount the drives in ubuntu, here
is a link on how to do it.

P.S. For ITune, you woul require wine (as far as I know). The mounting is a solution if your music is on the windows drive.


using su for a user which does not have a password

For using su user1 as user2 you need to enter the password of user1 when doing this as standard user. A simple workaround however is doing it as root, as then no password is needed. I.e.: become root (using sudo su), then su into the user1 (using su user1). I do not understand why you want to su to ubunut when you already are that user (as indicated in your screenprint) but that is the way to go.

Make sure that the user is acutally a user account and not a system (service) account like mail

Following the comments below: sudo su user1 is quicker and will also allow you to go back to user2 with one, instead of two exit commands, as you only will create one instead of two login shells.


Problems with installing aircrack-ng on ubuntu 12.04

There is a ppa for that and it works all the way up to 13.04. It also contains reaver if you want it.

sudo add-apt-repository -y ppa:pi-rho/security
sudo apt-get update
sudo apt-get install -y aircrack-ng


Ubuntu 14.04 Issues setting up email encryption in Thunderbird with Enigmail

These should not be owned by root. You can change the permissions and it should work.

To do so:

Open a terminal, and assuming your username is john you would enter the following.

sudo chown -R john:john /home/john/.gnupg

Verify that the owner changed from root to john by running ls -al /home/john/ again. You should now be able to import this without any issues.


Fake UserTrust.com Certificates in Chrome?

They are NOT safe and that is why they are marked as Untrusted. These were bogus  certificates. See this article on EFF:

On March 15th, an HTTPS/TLS Certificate Authority (CA) was tricked into issuing fraudulent certificates that posed a dire risk to Internet security. Based on currently available information, the incident got close to — but was not quite — an Internet-wide security meltdown. As this post will explain, these events show why we urgently need to start reinforcing the system that is currently used to authenticate and identify secure websites and email systems.
There is a post up on the Tor Project's blog by Jacob Appelbaum, analyzing the revocation of a number of HTTPS certificates last week. Patches to the major web browsers blacklisted a number of TLS certificates that were issued after hackers broke into a Certificate Authority. Appelbaum and others were able to cross-reference the blacklisted certificates' serial numbers against a comprehensive collection of Certificate Revocation Lists (these CRL URLs were obtained by querying EFF's SSL Observatory databases) to learn which CA had been affected.
The answer was the UserTrust "UTN-USERFirst-Hardware" certificate owned by Comodo, one of the largest CAs on the web. Comodo has now published a statement about the improperly issued certs, which were for extremely high-value domains including google.com, login.yahoo.com and addons.mozilla.org (this last domain could be used to trojan any system that was installing a new Firefox extension, though updates to previously installed extensions have a second layer of protection from XPI signatures). One cert was for "global trustee" — not a domain name. That was probably a malicious CA certificate that could be used to flawlessly impersonate any domain on the Web.


How can I use a local package mirror at system installation time?

Maybe you should just install a (transparent) http proxy. I would suggest that you install a solution based on apt-cacher/apt-cacher-ng.

This way you only have to set the http_proxy environment variable while installing.


Can I use the same home folder on different Linux systems (multiboot)?

Although it is possible to have the same partition as a home partition on both installations, I would not recommend this:
Apart from user files, the home folder includes also the settings for programs in hidden folders, and if the both operating system (OS) versions use the same programs in different versions, this can lead to conflicts.

Therefore it is better to only share only the user files. This can be done as follows:

On the first OS installation, just
use a normal separate home partition
On the second OS installation, don't use a separate home partition, but bind all folders inside the home folder you want to share on both operating systems via /etc/fstab:
first, be sure to mount your home partition from the other OS somewhere. E.g., when your home partition is a ext3 partition on /dev/sda5, this fstab line does this:

/dev/sda5  /mnt/sda5       ext3    defaults        0       2

now, bind all folders from that home partition to your own home folder on the second OS. This could also be done with a /etc/fstab line:

/mnt/sda5/username/Downloads    /home/username/Downloads      none  bind  0  0

does this for your Downloads folder. (adjust path to your own needs and repeat that with all other folders you want to.)
when you have finished /etc/fstab editing, remount all /etc/fstab entries by

sudo mount -a