Compiling new driver for Wi-Fi adapter (TP-WN823N) fails

Your wireless device which has the usb.id of 2357:0109 and mysteriously, no description at all, is covered by the driver 8192eu. With a working internet connection by ethernet, tethering or whatever means possible, open a terminal and do:

sudo apt update
sudo apt install git dkms build-essential
git clone https://github.com/Mange/rtl8192eu-linux-driver.git
sudo dkms add ./rtl8192eu-linux-driver
sudo dkms install rtl8192eu/1.0
sudo modprobe 8192eu

Your wireless should now be working.


Just make sure it is a bootable USB (if not you can make one really easy with a program called pendrive. I followed Ubuntu's own tutorial) and then shut down your computer and restart. It should boot from the USB and you will be given the option to install Ubuntu. Click that and then it will ask if you want to run along side windows or replace it. Selecting to replace windows will delete all your windows information and do a clean install of Ubuntu. Hope that helps!


Force rewrite of Gnome-Do summon binding on login because keeps being set to disabled

The keybindings are stored in GConf - /apps/gnome-do/preferences/Do/Platform/Common/AbstractKeyBindingService/.

Although, since you've tagged this GNOME3, most likely your problem is that GNOME Shell claims the Super key, so Do can't bind to Super+Space.

The next version of Do will notify you when this is the case so you can change your keybinding to something that will work.


Is there a way to combine a folder listing and count of items?

This should more or less mimic what you have on Windows:
ls -l | awk '1; END { print NR - 1, "entries" }'

total 0
-rw-r--r-- 1 root root 0 Apr  2 19:38 bar
-rw-r--r-- 1 root root 0 Apr  2 19:38 foo
2 entries


I was unable to locate a Linux compatible driver for your device. Until some one far more motivated than I writes a driver or support for this device into the kernel, it appears that if you want to use it you are stuck with using the Operating Systems that support it which according to the product link you provided are:

• Windows 7 32-bit
• Windows 7 64-bit
• Windows 8.1 32-bit
• Windows 8.1 64-bit
• Windows 10 32-bit
• Windows 10 64-bit

Note: NDISwrapper is known to make some drivers work with the Linux kernel, sadly to the best of my knowledge it requires drivers that comply to the NDIS 5.0 spec which went out with Windows XP I believe, so that isn't likely to  help you with this particular device.


Pointing a domain-name to my local RaspberryPi running Raspbian Wheezy

I'd like to point out that there are two different paths there. First hand you have a static IP, second you are unlucky and you IP is dynamic.

If your IP is static then the problem is quiet simple :

-> Go to your registrar website (where you bought your domain)
  -> Find out how to EDIT your DNS ZONE
  -> Add a new "A" record (I guess A stands for address)
    -> this requires 3 bits of information usually : a name or prefix (that thing before the dot like the www in www.yourdomain.com), an IP (that RPi IP ) and a TTL which is a duration expressed in seconds (3600 could be a fair value). This TTL represents how long the clients will keep this in their cache before asking again to your server.

If you have a dynamic IP then it gets a bit more complex, you need to set-up somthing to update your DNS zone every time you change IP. There are many solution to do that, things like no-ip.org, or dyndns... These are the 2 I know of. They work but I don't think they are opensource, AND you rely on yet another third party. You can achieve the same goal by using the dnssec and nsupdate to update your zone yourself. Here is a good tutorial on howto do that.

You should definitely read some documentation about DNS, just so you get the correct terminology and a general understanding of how it works. Here is some.

Have fun !


X11 MappingNotify does not fire as anticipated from X11 documentation

On my system, MappingNotify keyboard layout events from X do not normally fire. They do fire from within the Gnome Tweaks tool when modifying keyboard shortcuts through it, but not otherwise, so effectively, they seem not to be usefully and generally available to X clients (because that fringe case when fiddling shortcuts inside the Tweak tool is not the key use case we expect to get that notification at).
On my systems (18.04, and after upgrading to 20.04 alike), the X KEYBOARD Extension to X11 is active. This extension was designed to add various flexibilities over the standard X handling of keyboards.
So specifically to keyobard layout changes, since this X11 extension is active, MappingNotify will not fire under normal circumstances, but rather this extension will insert a different event into the client queue:
A XkbQueryExtension API call should query the X Keyboard extension for the "global" event code used by the X Keyboard Extension, and then when such an event is detected on the X11 queue, a XkbStateNotify sub-type included with the event will be used to inform clients of the keyboard layout change!
This flow is described along with a larger flow it belongs in, in the X Keyboard spec, and given in C code here. A slightly cleaned up version of that code follows:
#include <stdio.h>
#include <X11/XKBlib.h>

int main(int argc, char **argv)
{
        XEvent e;
        Display *d;

        if (!(d = XOpenDisplay(NULL))) {
                fprintf(stderr, "cannot open display\n");
                return 1;
        }

    // initialize the XKB protocol and obtain the integer event code that will be used by it
    int xkbEventType;
    XkbQueryExtension(d, 0, &xkbEventType, 0, 0, 0);  // assigns the integer code for XKB to xkbEventType
    printf("%d\n", xkbEventType);

    XkbSelectEvents(d, XkbUseCoreKbd, XkbAllEventsMask, XkbAllEventsMask);

    XSync(d, False);

    while (1) {
        XNextEvent(d, &e);
        if (e.type == xkbEventType) {
            XkbEvent* xkbEvent = (XkbEvent*) &e;
            if (xkbEvent->any.xkb_type == XkbStateNotify) {
                printf("keyboard layout change, or mouse click");
                fflush(stdout);
            }
        }
    }

    return(0);
}

Note that this same event will also fire for any mouse click ... something I believe we can filter away e.g. by tweaking our XkbSelectEvents arguments by device type if we mapped the devices on the system (haven't tried yet).


How do I copy files from Windows partition to my Ubuntu partition

Te console command is: sudo cp -R /mounted/win/hdd/location/ /target/location/


Ubuntu software application shows icons and software brand, but no description

"Just a plain list" would include tens of thousands of packages for you to sift through. So that approach seems inefficient.

Something like Notepad is already included with Ubuntu - Gedit. It's quite good.

But on to your question. Here's how to find software in Ubuntu...

Take a look at the top-left corner of Ubuntu Software. Look for the Search icon. Click it.

Let's Search for "Notepad" and see the kinds of results we get...


is there a way to convert old Unix Scribe documents?

This website might help you : http://scribenet.com/

Another possible solution -- there is a program called s2latex which converts Scribe documents to LaTeX:       s2latex – A scribe to LaTeX converter .


Does this command work in your machine?

git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements

If you have new (relatively fast) machine, you could try with BOMSI. It's much more simple, and you can install everything with a single click. It does it a while to install everything do.

This will get you a 3 node set up with Kilo:

git clone https://github.com/julenl/BOMSI.git
cd BOMSI/CentOS7-Kilo/
for NODE in controller compute1 network; do ./bomsi-iso.sh -n=$NODE; done

Or if you prefer a GUI:

git clone https://github.com/julenl/BOMSI.git
cd BOMSI/CentOS7-Kilo/
./bomsi_gui.py

... and click on "Local KVM" (make sure 3_nodes is selected).


Solution was to create a Fat32 Partition at start of Ext Drive and then install Ubuntu Mate 18.04 to the later part of the Ext Drive obviously in Ext4 format. Install grub in the fat32 partition boot sector and all works well with no need to keep going in to BIOS. To install Ubuntu, Secure Boot had to be disabled but once installed it can be re-enabled.


Ubuntu PPC64 14.04 LTS with dual VIO on IBM Power8

The multipath packages are included in Ubuntu 14.04 LTS for ppc64el as well, which handle the dual VIOS scenario (as well as Fibre Channel, and IPR controllers w/ multipath capability)

See Ubuntu Help, 14.04 LTS (Server column), DM-Multipath, sections  "Setting up DM-Multipath Overview" then "DM-Multipath Setup Overview", and "Device Mapper Multipathing" then "Installing with Multipath Support".

Basically, either:

Install Ubuntu with the disk-detect/multipath/enable=true option in the kernel command line; or
In an already installed system, install the multipath-tools-boot package (this installs the multipath-tools package automatically).

Note: On option 2, some users had boot problems (LP bug) if not using user_friendly_names (which is enabled by default on option 1).

You can enable it before installing multipath-tools-boot with this command:

$ cat <<EOF | sudo tee -a /etc/multipath.conf
defaults {
    user_friendly_names yes
}
EOF

If you enabled it after installing multipath-tools-boot, just update the initramfs; for example:

$ sudo update-initramfs -u


Create a new (empty) directory on your flash drive (e. g. with Nautilus or any other file manager) and
use the Steam settings dialogue to configure it as alternative library location.


Running Ubuntu from external SSD / HDD without reset upon reboot

Full Install vs Persistent install
Comparison between Persistent and Full install USB
Advantages of a persistent install:

You can use the persistent pendrive to install Ubuntu to another computer.

A persistent install takes up less space on the pendrive.

You can reset the pendrive by overwriting the old casper-rw file with a new one.

The install to pendrive takes less time.

Slightly less wear on the drive.

Advantages of a Full install:

You can update and upgrade.

If you have problems or wish to modify, the solution is the same as with an internal install, (You can ask for help in the forums).

No ugly startup / install screen.

Better security, you can use full encryption

You can use proprietary drivers.

Hibernation can be activated.

Many persistent installs are limited to a 4GB casper-rw and a 4GB home-rw persistence file, to get more persistence requires persistence partitions. Once casper-rw is full, the drive will not boot.

More efficient usage of disk space. Does not require reserved space for persistence.

Faster boot, no automatic disk checking or Try Ubuntu/Install Ubuntu screen.

You can run VBox and use virtual machines.

Generally faster boot than Live or Persistent USB's.

More stable

Note that once booted, both methods run at about the same speed. If the computer has lots of RAM Ubuntu should run mainly in RAM and there will not be a big difference between running off internal HDD and USB3 flash drive.
Full Install Method
A quick and easy method to flash a Full install to USB can be found here: Easy Full Install USB that Boots both BIOS and UEFI
A more traditional methods for creating a Full install USB from scratch can be found here: How to Create a Full Install of Ubuntu 20.04 to USB Device Step by Step


Go to usr/share/applications/ and drag&drop computer icon on dockbarx. It works on my Linux Mint 17.2 MATE 64.


Why does my chromium look like this? Is it affected by malware?

First close the browser try to remove all config and cache files for chromium:

rm -rf ~/.config/chromium
rm -rf ~/.cache/chromium

Now open browser and check if all things go well, else try to purge then install:

sudo apt-get purge chromium

sudo apt-get install chromium


How do I get Guake(terminal) to report the correct terminal?

It looks like you are experiencing this launchpad bug.

Given that you are now using the unsupported 10.10, this will not be fixed for this release.  A workaround is the best you can expect unless you install and compile your own later version of Guake and GNU screen.

Post #73 gives a suggested workaround - reproduced below:

echo "export TERM=xterm" | sudo tee /etc/profile.d/set_term.sh && source /etc/profile

Alternatively add:

[ "$TERM" = dumb ] && export TERM=xterm

to your ~/.bashrc


How do I fix broken networking in cloned virtual machines?

There are udev rules preventing the new interface from being brought up.

In the Master machine, just delete them before you clone the new machines:

sudo rm -f /etc/udev/rules.d/70-persistent-net.rules

(source)


On a Mac using live-usb with EFI the key to access the GRUB menu is esc.


How to roll back failed gparted ext4 partition growth

You might try using the command line utility gdisk to re-set the GPT partition to the following values (start: 2,048, end: 27,341,617,151).  The start and end values are from the gparted_details.htm log file that you provided.


How to print using only the color cartridge?

Open up the Printers utility.

Right click on your printer and select Properties.

From the list on the left side, select Printer Options. Then scroll down to the Printer Features Common section and change the Ink Set option to Color.

Hit Apply. The printer will now print using only the ink from the color cartridge.


"dpkg: trying to overwrite '.../gsettings/gnome-settings-daemon.convert also in package gnome-settings-daemon" when upgrading to Trusty

First of all, I tried to edit your question and make from it a canonical question for the following error:

Unpacking package_name ...
    dpkg: error processing archive /path/to/archive_name.deb (--unpack):
     trying to overwrite 'file_name', which is also in package another_package_name

My answer will be for this general case, but also for your particular case:

You can solve your problem by running:

sudo dpkg -i --force-overwrite /path/to/archive_name.deb

In your particular case:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/gnome-settings-daemon-schemas_3.8.6.1-0ubuntu11_all.deb

If somehow the first step doesn't work, run also:

sudo dpkg -i --force-all /path/to/archive_name.deb

In your particular case:

sudo dpkg -i --force-all /var/cache/apt/archives/gnome-settings-daemon-schemas_3.8.6.1-0ubuntu11_all.deb

Finally, run again:

sudo apt-get -f install

If you have the same problem with another package, start again with first step.

Source


Installing php5.5 on Ubuntu 16 with apache2

After adding the repository
http://ppa.launchpad.net/ondrej/php/ubuntu
you have to update your repositories.
Please try this:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.5

You can use php5.6 instead..


Cinnamon on Ubuntu has two different 'System Settings'. Search for System Settings in the menu and you'll notice that this is, the case. Obviously then you can just change your touchpad settings in the other System Settings window and you're all sorted.


It is kind of true. But you want to be careful while doing this.

You can install Ubuntu on a partition as small as 4GB to run the OS and its essentials. Ubuntu / Linux can mount different partitions at mount points and work with NTFS partitions as well. If you have a windows data partition formatted with NTFS that you use for storing data, then you could make an entry in FSTAB to mount that partition in your Ubuntu at boot time.

However I will advise extreme caution if your Windows partition is system partition and contain Windows system files and boot partition before doing this.


No, to the best of my knowledge that is not possible without creating a virtual machine. There would need to be something like a hypervisor in the bios. You could certainly (theoretically) create such a hypervisor (perhaps, even into the bios), but it isn't available on commodity hardware and that would necessitate a virtual machine.


You can leave your partitions as it was and just create a symbolic link to those music partition or any other ones in your home directory.
During installation you can mount musics partition as /home/USERNAME/Musics
After simple installation you can change your /etc/fstab and point /home/USERNAME/Musics to your musics partition. you can find a good information of how to do so from https://wiki.archlinux.org/index.php/Fstab and http://en.wikipedia.org/wiki/Fstab. And also there is a full manual available by typing man fstab in terminal.


database is not being queried for my web site

this was the problem, originally my connection function looked like this;

<?php

$conn = mysqli_connect('www.mydomain.com', 'root','mypassword', 'dbname');
mysqli_select_db($conn, 'dbname');

when it should have looked like this;

<?php

$conn = mysqli_connect('localhost', 'root','mypassword', 'dbname');
mysqli_select_db($conn, 'dbname');

i thought since i was conncting the site to the internet instead of just serving it locally on my machine, i needed to USE my server address as the host name, but thats not correct.


I think that what you are asking for is:

echo 1 && { echo 2 & } && echo 3 && echo 4

In the above echo 1 runs in foreground but echo 2 runs background.

Note that the && after echo 2 may not be doing what you think.  Consider:

$ echo 1 && { false & } && echo 3 && echo 4
1
[2] 28445
3
4

The above shows that echo 3 runs even though the second command false returns failure.  This is because the return code for the background process is not available when the decision to start echo 3 is made.

Let's consider your more realistic example:

compile && { run server & } && run test 1 && run test 2 && kill server

run test 1 will start regardless of whether run server succeeded or failed.  Worse than that, run test 1 may start before run server has finished setting up the server.  A quick fix is to delay run test 1 by enough time that you are confident that run server has finished doing its setup:

compile && { run server & } && sleep 1 && run test 1 && run test 2 && kill server

Alternatively, you would need to know something about run server so that you can test its successful setup.

Background

The braces, {...}, create a list.  Thus the construct { echo 2 & } allows us to run echo 2 with the effect of the operator & confined to just the commands in the list.
&& is bash's logical and.  The command following the && is run only if the prior command succeeds, that is, returns with code 0.


Hangs up while booting after editing grub.cfg

The primary configuration file for changing menu display settings is /etc/default/grub.
Configuration changes are normally made to /etc/default/grub and to the custom files located in /etc/grub.d.

The /boot/grub/grub.cfg file should not be edited by the user; changes to this file are made by configuration scripts.

grub.cfg is overwritten anytime there is an update, a kernel is added/removed, or the user runs update-grub. After editing /etc/default/grub, you need to run sudo update-grub for your changes to take effect on the next boot.

The user can use a custom file, /etc/grub.d/40_custom, in which the user can place his own entries. This file will not be overwritten.


The standard audio settings dialog only allows to change the output device for all applications. But there is (or has been, depending on perspective) an alternative. Pulseaudio, the sound server used with Ubuntu, comes with its own volume setting tool called pavucontrol. It isn't installed by default any longer, but you can just install it yourself from the standard repositories.

Pavucontrol allows you not only to control the volume of any application currently playing sound independently, but you can also control to which of the available output devices the applications sound is "routed". So you can have your video players' sound on HDMI, your VoIP phone apps sound on your headset, your radio apps sound on your stereo (provided it is a PulseAudio sink) and so forth.


I got the same error message on Ubuntu 12.04 when I was missing the "ifenslave" package.  I fixed that with this command: sudo apt-get install ifenslave-2.6


Closely reading the output of sudo apt-get install wireguard showed the following lines for me:

Building for 4.15.0-70-generic 4.15.0-72-generic
Module build for kernel 4.15.0-70-generic was skipped since the
kernel headers for this kernel does not seem to be installed.

Installed missing kernel headers via sudo apt-get install linux-headers-$(uname -r).

Then retry package installation via sudo apt-get remove wireguard followed by apt-get install wireguard.

Now sudo modprobe wireguard doesn't complain, and lsmod | grep wireguard shows:

wireguard             212992  0
ip6_udp_tunnel         16384  1 wireguard
udp_tunnel             16384  1 wireguard


Nautilus crashed - Black desktop and can't access any folder

Since we had a lot of exchanges in comment, here is the summary of the answers for readability and easier future reference.

In general, we more done a work around: we have created a new user and copied the files, rather than restoring the account affected by access rights loss.

Since you could still launch terminal in your session, you have created a new user:

sudo adduser ottolapiloto2

This new user had a fully working Gnome, which confirmed that the issue had to do with access rights for your original "ottolapiloto" account.

Then you moved the content of /home/ottolapiloto to /home/ottolapiloto2. If possible, I would have rather recommended to copy instead of moving to avoid risk of losing files, but your drive had no free space enough to allow duplication of your home directory. So in this case, it is good to backup files on an external drive if possible. You did this graphically with a Nautilus session with sudo rights. It could have been done with terminal too.

After confirming that this was indeed moving the files from your former account to the new one, you could rename the old account:

sudo usermod --login ottolapiloto_old /home/ottolapiloto_old --move-home /home/ottolapiloto

At this time, you had 2 user accounts: ottolapiloto_old (affected) and ottolapiloto2 (working fine) . So then you could disconnect and reconnect with ottolapiloto_old, open a terminal and rename the new user account:

sudo usermod --login ottolapiloto /home/ottolapiloto --move-home /home/ottolapiloto2

Here you had 2 user accounts: ottolapiloto_old (affected) and ottolapiloto. So last, you could disconnect again, connect back with ottolapiloto, check again that you had all your files :-) and remove the old affected account:

sudo deluser ottolapiloto_old

Enjoy!


I have had this error before. If you have a duel boot Ubuntu and Windows 8+, you need to hold down the SHIFT key while powering down windows. Windows will still keep files open as if in a sleep mode and you will not be able to do a full mount or unmount from the computer while these files are in this state. Holding down SHIFT forces windows to do a complete shut down and you should then be able to boot into Ubuntu and change the partitions.


How do I install a click package on Ubuntu Touch Trojita?

It's not in the store yet, but you can download .click packages that I've been building here: http://people.ubuntu.com/~mhall119/trojita/

Then you'll need to manually copy them to your phone and install it from the commandline, here's how I did it:

mhall@mhall-thinkpad:~/projects/Ubuntu/sdk/trojita/click$ adb push net.flaska.trojita_0.4.1~git280-g05de2a5_armhf.click /home/phablet/Downloads/
2420 KB/s (11078920 bytes in 4.469s)

mhall@mhall-thinkpad:~/projects/Ubuntu/sdk/trojita/click$ adb shell
root@ubuntu-phablet:~# sudo -iu phablet

phablet@ubuntu-phablet:~$ cd ~/Downloads/

phablet@ubuntu-phablet:~/Downloads$ pkcon install-local net.flaska.trojita_0.4.1~git280-g05de2a5_armhf.click


How much memory do I use exactly and how can I optimize it?

In fact, the virtualmin shows you the memory used by applications.
You are using 1887kk of ram, but there is a cache of 951kk. Calculating this, I see you have 936kk used, that's almost the same as the 2 minutes old value of virtualmin says.
Linux uses free memory for cache, to improve performance.
I'd say, your system is ok!

Virtual memory is beeing used if your system is out of free memory Swapping


Problems with fillable PDF in LibreOffice Writer?

It might be worthwhile to look at what PDF forms are and do. PDF forms do primarily not make a difference between text, number, date etc. It is all text fields, and if you want to be specific, you have to provide the means to do so.

However, the conversion of drop downs selectors should be better, because there is the combobox field type which is a drop down.

If you want to allow only numerical entries in a text field, you have to set its Format properties accordingly.

In any case, what LibreOffice creates as PDF form is a base, and you will have to finish the form (particularly if you want/need logic) in Acrobat (Pro). Again, this is because the object models of .odt and PDF are too far apart that a conversion is possible.

LibreOffice/OpenOffice is a good low-cost way to create PDF forms, but you still need Acrobat to finish the PDF form.


May be the problem is that apple tv uses IOS 5, in this case you have to install the lib to could mount the tv.

I could try installing the next lib:

sudo apt-get install ifuse libimobiledevice-utils

then try this comand:

idevicepair unpair && idevicepair pair

now try again!


how to capture video from webcam in MJPG opencv

Have you tried building OpenCV from source with -D WITH_V4L=ON and -D WITH_LIBV4L=ON?


Cannot enable SSL on my website in 18.04

For those who have the same issue, don't forget to forward port 443 on your router [just changed port 80 to 443 :P].


Does the Thinkpad X41 Touchscreen work with Ubuntu?

I've been using the x41 with stylus for years and stylus worked out of the box with almost any ubuntu release. Particular settings are possible with Inkscape and Gimp. Mypaint is nice to use, too. Enjoy.


Disable printScreen in windows 7 when connected firom ubuntu 16

It's impossible to prohibit screen capture in Ubuntu due to how the X11 protocol (that takes care of graphics display) works. Either you give a user access to the displayed graphics in whatever way they wish or you don't.

On another note, a user can just take a photography of the screen if they can't or don't want to use the screen capture feature.


Error when starting VirtualBox on Ubuntu

You need to run the command that is being provided in the error, as well as recompile it.

First, start by installing build-essential to get the essential libraries for building things:

sudo apt-get install build-essential

Next, run the command that error is specifying:

sudo /etc/init.d/vboxdrv setup


Why is update-grub hanging, and what can I do to fix it?

Try to:

kill os-prober process
run sudo umount /var/lib/os-prober/mount
run sudo update-grub again


16.04 not bootable - fresh laptop, no preinstalled OS

I'm on an Acer Aspire and I've been facing similar issues. Tried boot-repair, manually updating and reinstalling grub, turning secure boot off with no success.

You have to select the grubx64 uefi file as trusted from BIOS. Detailed instructions can be found here - https://askubuntu.com/a/630662/237187


The libgphoto2-port122.5.14+201706200750~ubuntu16.04.1:{i386:amd64} versions was comming from ppa:mutlaqja/ppa not from ubuntu repository. I finally solved it myself by downloading directly 16.04 ubuntu stable versions from http://pkgs.org/download/libgphoto2-port12 with:

 $ wget http://archive.ubuntu.com/ubuntu/pool/main/libg/libgphoto2/libgphoto2-port12_2.5.10-3_amd64.deb
 $ wget http://archive.ubuntu.com/ubuntu/pool/main/libg/libgphoto2/libgphoto2-port12_2.5.10-3_i386.deb

Then, installing them with:

 $ sudo dpkg -i libgphoto2-port12_2.5.10-3_i386.deb
 $ sudo dpkg -i libgphoto2-port12_2.5.10-3_amd64.deb

Finally, I removed the offending ppa (temporary until bug solution) with:

 $ sudo add-apt-repository --remove ppa:mutlaqja/ppa

After, I reboot to clean cache and execute standards apt-get update and upgrade, without errors. Now I am free again to install new packages.


xcalc is perfect, and it's already on the system (x11-apps).  It's just like a pocket calculator, has memory, and additionally has factorial and parenthesis.


BleachBit on Ubuntu 18.04 LTS after updating

I've run it multiple times on multiple systems, and it did not uninstall updates.


Recommended WOL-Compatible LAN Card/Chipset?

Just wanted to post the solution in case anyone else stumbles upon this thread.

I fixed it by setting my BIOS Settings to the following:

ACPI suspend state: [from S1] to S3.

That seemed to clear it up.

So maybe the LAN Card/Chipset was being unnecessarily shutdown where I didnt want it to be.

Anyway it works now :)


Question regarding dual boot (BIOS/UEFI, SSD)

Most modern computers support EFI, but most also provide a BIOS compatibility layer called the Compatibility Support Module (CSM), which enables booting in the older (BIOS, CSM, or legacy) mode. Thus, your computer may be using that mode and booting Windows much like an older computer would. If so, you should be sure to install Linux in the older BIOS/CSM/legacy way, too, because switching between boot modes can be a little awkward, or at least require special software. (GRUB can't do it, for instance, although my rEFInd can.)

The partition table your computer uses is the best clue to your Windows boot mode. Windows ties its partition table type to its boot mode; it boots to BIOS/CSM/legacy mode ONLY from MBR disks and to EFI/UEFI mode ONLY from GPT disks. See my page on this subject for more details, and also for tips on how to determine your boot mode in Linux. (You might want to drop to a shell and check to be sure you install Ubuntu in the way that matches your Windows boot.)

As to swap and SSDs, I wouldn't worry about it. Modern SSDs are much better able to cope with frequent writes than the ones sold a few years ago. Furthermore, if you're like most people, your swap space won't really see all that much use, so you probably won't overtax the SSD.


Ubuntu 18.04 does not connect to Android smartphone

I have the same problem with ubuntu 18.04 lts and a samsung s6 edge. When I connect the phone to my pc and open Nautilus it shows no files or folders. But I stumbled on a work around: close all instances of Nautilus, dismount the phone and turn it off without disconecting it. Then turn it on and sometimes Nautilus can see it. Hope it works for you


Can I make a Ubuntu bootable USB on a Mac?

Try Wine(Download:https://dl.winehq.org/wine-builds/macosx/i686/winehq-staging-1.9.14.pkg) with Rufus(https://rufus.akeo.ie/?locale=en_US).

I hope I could help you.


Autoremove wants to remove 127 (~5 Gb) packages

As long as you go with sudo apt autoremove , and [NOT remove *] you're good to go. You must haven't done that for quite a long time.


Synaptics Touchpad v7.4 cannot move while pressing a key?

Open Mouse and Touchpad. Under the touchpad tab there's a setting Disable touchpad while typing, deselect it and you're ok.

This option avoids typing somewhere else on your computer while accidentally moving your hand across the touchpad.


What is the media-key command in 14.04 for sound and brightness?

For sound, the basic keys are:

XF86AudioNext
XF86AudioPause
XF86AudioPlay
XF86AudioPrev
XF86AudioLowerVolume
XF86AudioRaiseVolume
XF86AudioStop

You can link them to you favorite music player, for example, setting XF86AudioNext to execute gmusicbrowser -cmd NextSong. The specific code will depend on the options allowed by your particular music player (which you can check in a terminal writing "my_music_player" --help or alike).

See this link for a list of all available XF86 commands.


You could try xrandr: https://wiki.archlinux.org/index.php/xrandr or a easier http://www.omgubuntu.co.uk/2010/11/set-your-screen-resolution-higher-than-you-should-with-newrez


How much time does it take to zero-out hard disk of 500gb?

What command did you use?  Just for the record, if you used dd without specifying a block size, it will take an eternity.  If you specify a decent block size, it goes quicker.

That said, it depends on so many factors that it's impossible to give you a decent answer.  (For example: Disk speed, interface type, whether there are errors on the disk, ...)

My first question is: why do you want to zero it out?  If it's for your own use, just repartition.  If you want to trash the disk, the most efficient way is to use a nice big hammer on the disk until its heavily damaged.  That should stop most amateurs getting any data from it.


Audio comes out of only one speaker on a Macbook Pro 7.1

Does alsamixer show more outputs? try giving the other outputs more volume and see if your sound works then :)


how to point cmake to detect newer package version instead of refering the version number from apt-cache?

apt-cache show shows the versions available / installed from the repositories or as deb-packages. It don't know anything about software you download and install by other means, like here by a tar.gz file you unpack and compile manually.


Run this on the processes the user has.  If it has problems on a particular process it'll show you the parent process.  You can then run the script on the parent process.

I haven't found a process that it won't subsequently kill yet.

Create the bash script with:

$ gedit killprocess.sh

The script:

#!/bin/bash

if [[ ! "$1" ]]
then
    echo "Parameter error... exiting..."
    exit
fi
process=$1

count=0
results=0
while [[ $(ps h -fp $process) ]]
do

    kill -9 $process
    str1=$(ps h -fp $process|awk '{print "["$2"]["$3"]"}')
    results=$?
    echo -ne "[$str1]Response:$results..."

    ret2=$(ps -ef | egrep "\s$process\s" | awk '$2 == '$process'{print "["$2"]["$3"]"}')

    if [ ! "$ret2" ]
    then
        break
    fi

    if [[ -f stop ]]
    then
        exit
    fi
    if [[ $((count++)) -gt 5 ]]
    then
        echo -ne "\nGiving up... exiting...\n"
        exit
    fi

    sleep 20
done

echo -ne "\n"

Make it executable:

$ chmod +x killprocess.sh

Run the script:

$ sudo ./killprocess.sh


wifi not working after upgrade from 12.04 to 14.04

Please do:

sudo apt-get purge b43-fwcutter firmware-b43-installer
sudo apt-get update
sudo apt-get install linux-firmware-nonfree

reboot


Sometimes you can use your computers 'boot menu', which is different on different computers, to go into all the bootable devices and find the grub that way. For example on my razer blade stealth, i could hit f12, and it would bring up a menu similar to the GRUB, with the grub actually in that list. navigating to the grub option allowed me to go into the grub


Windows 10 is not loading correctly alongside 16.04

If you have one take a Ubuntu liveCD/USB and open the terminal. Run these lines of code one by one.

sudo apt-add-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair

Click recommended repair and do everything it tells you to.


I had the same problem, I solved this problem using

noapic

nolapic

acpi=off

boot parameters and using the BIOS legacy.


How can I get the i-tec USB 3.0 Docking Station running under Ubuntu 18.04?

FWIW. i-tec USB 3.0 / USB-C / Thunderbolt 3 Dual Display Docking Station works for me with Ubuntu 19.04 and DisplayLink USB Graphics Software for Ubuntu on Dell XPS 13 9365 with Intel 615

00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 615 (rev 02)

See the log below (it seems to be identical to the log from 18.04)

$ ./displaylink-driver-5.2.14.run
Verifying archive integrity...  100%   All good.
Uncompressing DisplayLink Linux Driver 5.2.14  100%
DisplayLink Linux Software 5.2.14 install script called: install
Distribution discovered: Ubuntu 19.04
Installing
Configuring EVDI DKMS module
Registering EVDI kernel module with DKMS
Building EVDI kernel module with DKMS
Installing EVDI kernel module to kernel tree
EVDI kernel module built successfully
Installing x64-ubuntu-1604/DisplayLinkManager
Installing libraries
Installing firmware packages
Installing licence file
Adding udev rule for DisplayLink DL-3xxx/4xxx/5xxx/6xxx devices

Please read the FAQ
http://support.displaylink.com/knowledgebase/topics/103927-troubleshooting-ubuntu
Installation complete!

lsusb
Bus 002 Device 007: ID 17e9:6000 DisplayLink

2 external monitors are detected:

$ xrandr --listproviders -v
xrandr program version       1.5.0
Providers: number : 3
Provider 0: id: 0x47 cap: 0x9, Source Output, Sink Offload crtcs: 3 outputs: 5 associated providers: 2 name:modesetting
Provider 1: id: 0x23f cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Provider 2: id: 0x1f9 cap: 0x2, Sink Output crtcs: 1 outputs: 1 associated providers: 1 name:modesetting
Server reports RandR version 1.5

Only 2 external monitors can be connected to this dock. 2-port splitter connected to any DP, or HDMI of the dock does not work.
Charging does not work. There is a workaround. Charging works when connected via "i-tec USB-C Travel Adapter PD/Data".


Errors from nouveau when installing or booting from live usb

The answer is what @MichaelBay said in the comments. I had this same issue when trying to live boot Linux Mint 18, any of the flavors with an Nvidia 970 GPU.

For UEFI boot, press e when it says “Start Linux/Ubuntu”.
Find the line that says quiet splash
Right after that, add nomodeset and then press F10 to boot (or whatever key it instructs you to press).

It should boot Linux now with no graphics drivers, which appears to be the problem.


How do I get a Lexmark t630 printer working?

Here is the file that you need in order to get Lextmark T630 working(with mirrors):

http://tny.cz/be4c97db
https://dl.dropboxusercontent.com/u/70950457/lexmark-lext630.ppd
http://ubuntuone.com/1gurLwFc4pujCLyAZrXiRY
http://www.artica.fr/download/ppd/lexmark-lext630.ppd.gz
http://paste.ubuntu.com/5922895/

I hope one of them will be still alive when someone needs this file in the future.


Who tried Ubuntu with Coreboot/Libreboot?

You can get only coreboot for the motherboards it supports (i.e. the motherboards it is ported for), see the doc and you have to compile it from the sourcecode by yourself and then flash it to the bios chip externally with a Raspberry Pi or internally. So is it difficult, probably not because I am just a regular GNU/Linux user and I was able to flash it to my coreboot supported machine with the help of #coreboot people on freenode and yes it supports Ubuntu and all its variants. Take a look into the rookie guide.


Have you tried to make a new live usb? If yes, the image file may be corrupted, so try to download it again and make another live usb.


Try

sudo do-release-upgrade -d

the -d flag at the end of the command, it will upgrade to the current development version. Which might or might not be 18.04.


The DNS323 suffers from this server side DFS bug but it is possible to work around it.

In the samba config file on the nas, add the following line under ;[ global ]

msdfs root = no
client lanman auth = yes

and use the following rule in the /etc/fstab

//x.x.x.x/dir /home/username/mountdir cifs uid=myuser,workgroup=myworkgroup,username=xxxx,password=xxxx,dir_mode=0777,file_mode=0777,n odfs,rw,iocharset=utf8 0 0


My eee PC 900HA has Ubuntu 18.04.2 LTS.
And I solved it with this purely physical solution:

Turn on the computer by pressing the power button.
Quickly close the lid.
Wait for the leftmost green led to start blinking. Power led next to it will also be lit.
Open the lid and tap the power button to wake up the computer.
After a minute or so, the unscrambled clean screen appears.


Looks like you are using the wrong distribution codename in the sources.list file.

I personally prefer to have a separate file for each 3rd party repository, you can create one for virtualbox using the following in CLI:

sudo echo "deb http://download.virtualbox.org/virtualbox/debian `lsb_release -sc` contrib" > /etc/apt/sources.list.d/virtualbox.list

After creating virtualbox.list, remove or comment out the out-dated line from your sources.list.

It may look like this => deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free.

Once done, update your system sudo apt-get update && apt-get dist-upgrade -y.


Missing ipmi Device (Remote Access Card) / ipmitool Failue: Could not open device at /dev/ipmi0 ... No such file or directory

I ran into the same problem ... just recently ;)
Just tried to follow the way to add some paraemeters to the kernel so that the address of the device is correct ... ( if I understand well )

Found this solution via link : http://bodgitandscarper.co.uk/tag/microserver/ look at one of the topics. He found the answer to his problem at http://patgardner.blogspot.co.uk/2013/03/hp-microserver-remote-management-card.html ...

Adding the parameters "ipmi_si.type=kcs ipmi_si.ports=0xca2" to the kernel startup command in grub did the trick for me in Ubuntu 18 lts.

After reboot:
sudo ipmitool chassis status
--> worked
sudo ipmitool raw 0x6 0x46 0x02
--> worked

Hope this helps you,
Greetings
Jan.


Postgresql fails to start on Ubuntu 10.04.4 LTS

I found the answer to my own question. I had a Zend installation on my server that interfered with the installation process and caused the error. Since I don't need Zend, I removed it and made sure anything Zend related was removed, by typing:

"rm -r /usr/local/zend"

after which Postgresql installed and started smoothly. I can't recommend this solution if you need your Zend but for me it worked. I hope this will help people in a similar situation.


Google Chrome themes are not transparent

Answered by Braiam in comments:

  I found that it's because the theme depends on some gtk2 (as the theme suggest in a link in the description) functions not present in gtk3 and that's why it fails. I've tried in my Debian 7 and failed too. So, the theme(s) is too old or chrome don't support the transparency in newer systems.


How to kill unity panel & unity launcher?

Both Unity and the Launcher are part of the Unity Compiz plug-in, so to kill Unity , terminate compiz from the System Monitor.

However you can't Kill compiz and have the Launcher or Unity running.


How to shutdown the computer when hitting the Power button?

When you hit the power button, the script /etc/acpi/powerbtn.sh is called. So one option is to modify this script to just call the shutdown script, bypassing the power management daemon. This works across all distributions and environments that I know of.

Since you're using Xubuntu, you can however just change the setting 'power-switch-action' in xfce4-power-manager.xml to the shutdown action - the default value is the ask action.


If you build stuff from source, you should be careful not to override files installed by the package manager - doing so may result in

programs which depends on the library may (or may not) refuse to work with the updated version, depending on the changes in the library
when a new version of the library arrive to Ubuntu repository, update manager will override your custom files without warning


It seems the wallpaper mode is setup to keep proportions. If the wallpaper image you have does not match the resolution of your desktop, then such black borders appear. You can try the following to make any wallpaper fullscreen:

In kubuntu, right click on desktop and select "Default desktop properties".

In the dialog that opens, on the right side, select "scaled" or "scaled and cropped" under positioning.


How to Disable System beep in Ubuntu 14.04

System beep sounds on boot usually are not controlled by Ubuntu (or any other OS). In most BIOS we have beep codes to indicate hardware issues on boot which will be played on a tiny speaker on the motherboard.

Some BIOS allow configuring the internal speaker, e.g.:

On a desktop computer we can also physically remove the beeper from the motherboard:

 Wikimedia

Note that after disabling the internal speaker we may no longer be able to hear errors on booting.


Want to Run SSD + HDD Drives, Can't Access HDD

The links provided by OldFred within the comment section under your question describe what you need to do in detail. So briefly (assuming legacy BIOS boot):

Open dash with Alt+F2
Type gparted, select the icon and press Enter

In the screen below I'm in the process of creating a new Extended partition of 95 GB which I will be using for Linux in the future:

This gives you an idea of what you will be doing without going into a lot of detail.

In your case you will be selecting /dev/sdb (the second hard drive) to setup your Linux files. On my system this has already been done so I can't show how to create from scratch but here is an example of /dev/sdb from my system:

Notice the top right hand corner where you select the SSD or HDD you want to work with.

If you have any questions post them as comments below and I'll update the answer accordingly.


Dualbooting Ubuntu 16.04.1 - Win 10 Partition Problem

Make sure to boot your installation media in legacy-mode. Your drive is MBR-partitioned.

The Installer will give you options how to install. Choose "Something else".

Look for the 97GB-partition and choose it as target for your installation, you have to format it to ext3 or ext4. Mount-point is "/".

When the installer asks where to install Grub (the boot-loader) your answer is sda.

After reboot you will be greeted with the Grub-menu which lets you choose the operating-system to boot up.


How to list all the PIDs and names of all the runing processes

You can use the o argument instead of u to specify what you want to see:

ps axo pid,comm


wget always going some other IP not the requested IP

Just to be sure, that your webserver at PC-2 is not follwoing a redirect, check with cURL:

  curl - v http://192.168.1.209/mydoc

and read closely through the verbose output; You should see something like this in the beginning:

* About to connect() to 192.168.1.209 port 80 (#0)
*   Trying 192.168.1.209... connected
* Connected to 192.168.1.209 port 80 (#0)
> GET / HTTP/1.1

Now, the important part is the server response, either:

< HTTP/1.1 200 OK

or

< HTTP/1.1 301 Moved Permanently
< Location: http://10.102.0.3:80

Please post your cURL output for further help.

Check if you have set http_proxy environment variables; wget evaluates http_proxy and HTTP_PROXY. If you are not sure call wget with the '--no-proxy' option


How to properly dual-boot in seperate drive

I believe this is what you are looking for: Dual-drive vs. a Dual-boot menu selection.
This 'should' pose no risk to your win10 data but, just in case, back everything up before anything else!

So,
If you are using two physical drives (1 hdd + 1 ssd) then I would go as far as:

Temporarily remove the physical windows hdd and set aside.
Mount the ssd into the primary drive slot.
Run the Ubuntu install on the ssd as a primary drive.

1 partition (if you want only one) & 100% Ubuntu. Personally I use a dually accessable partition as my storage, formatted as NTFS. My Ubuntu partition is "ext4".
Thus: Ubuntu can: also access my storage partition as well as the windows partition. But, windows can: ONLY also access the storage partition.
Why? I don't want/need microsnoooop being able to access any data in/on my primary OS. (Call me paraniod but I been in the game since the trs-80 days) And, using a memory stick is just too darned slow!!
Anyhoooo... Once your Ubuntu install is finished you can put the win/hdd back into the computer.
Here I would decide which system I will use more... Ubuntu/ssd?(!) Then I would place the win/hdd into the secondary drive slot. (me = single ssd laptop. Ubuntu is my primary partition & preferred OS... the win10 partition is only there for the hell of it ;)
After this, you can choose which drive to boot from in the BIOS (and in which order). And if you did't know, during POST you can also select a temporary boot... In my Dell it is "f12"... hit that the same time you would hit "f2" (or whatever you use to get into your BIOS settings). This will let you choose what device you want to boot from right then. (ie. USB, CD, SSD, HDD, etc...) I vaguely recall 'f10' on one system... and that one is probably still sitting in the cellar! HEH!
_______ Hope this helps and Good luck!
Peace............


Slow startup: xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command

this should help: https://askubuntu.com/a/1239249/326048
The answer this person gives is a educational answer about diagnosing kernel issues related to USB hardware.


How do I force apt-get to install a package that will not install due to a bug introduced by Ubuntu 11.10?

The python-profile package just includes a few .py files:

$ apt-file list python-profiler
python-profiler: /usr/lib/python2.5/profile.py
python-profiler: /usr/lib/python2.5/pstats.py
python-profiler: /usr/lib/python2.6/profile.py
python-profiler: /usr/lib/python2.6/pstats.py
python-profiler: /usr/lib/python2.7/profile.py
python-profiler: /usr/lib/python2.7/pstats.py
python-profiler: /usr/share/doc/python-profiler/README.Debian
python-profiler: /usr/share/doc/python-profiler/changelog.Debian.gz
python-profiler: /usr/share/doc/python-profiler/copyright
python-profiler: /usr/share/lintian/overrides/python-profiler

Hence, you can download the binary package using apt-get download python-profiler and extract its contents with dpkg -x python-profiler_<version>_all.deb <dir>. Once you have the contents of the package, you can just copy the .py files to their location to make the profiler modules available in your python installation.


why does cinnamon desktop installation install Unity and Gnome packages?

Cinammon desktop has something known as package dependencies, most of which are fulfilled by the ubuntu-desktop (Unity) and gnome-shell (GNOME shell) packages.

Rater than define every single package dependency, Cinammon uses the meta package ubuntu-desktop.

As for Xubuntu, it shouldn't. I've had KDE, LXDE, XFCE, Unity and gnome-shell all installed on the same machine with no problems.


Where to download the Cycles render engine?

Use this ppa - ppa:irie/blender @ https://launchpad.net/~irie/+archive/blender.


Using Daily/Alpha/Beta Builds Through Release

Unlike Debian, Ubuntu does not have a rolling, next-release repository. There's nothing comparable to testing or sid. Until release, the repositories of that release get updated, and the contents of the daily build are updated to reflect that. Post-release, the main repository is frozen (updates for that version go to <release>-security, <release>-updates, <release>-proposed, etc.).

You may start from a daily build, but that just means you're using whichever version's repository that daily build used. After the installation, all upgrades are a matter of the repositories used. Post-release, the daily builds are updated to use the next release's repositories. And your installed Ubuntu isn't.

So: until release, running apt update/apt upgrade should mostly keep you in sync with the daily builds, but post-release, that won't be true.


Application Typora not found in Dash and no Icon visible

The most likely reason for this is that you have accidentally deselected  applications on the filters setting for unity dash Try setting your filters as shown in the image below and searching again for typora:

Edit: If the root cause of your issue is a packaging problem as indicated by this comment removing your existing package and installing the current one should resolve your issue.


You need three slashes after the colon, a la file:///path/to/stuff


How do I install and use PyCharm without having to use a terminal?

PyCharm (like Intellij Idea and other JetBrain products) have a built in function to create desktop icon :

Tools > Create desktop Entry.

Once done you will find PyCharm in your Ubuntu Dash.


You need to install the libpam-yubico package. You can find details on configuring in the README from the upstream repository. The documentation should also be installed along with the package.


There is an overheating problem with some Intel processors running Linux kernel < 3.2 (power regressions). This issue, I read, has been fixed in 12.04 (Linux
kernel 3.2) So upgrade to 12.04 when it is released in 16
days. Hope this helps


That message basically means that you have not set up the partition to mount the root (i.e. "/"). Please boot from the CD and start installation; assuming the new hard disk, sdc1 is empty, do the following.

1) Choose the option to set up the partition system manually

2) Create your first partition, set the partition type to swap (this will be the swap partition, something like windows page file, you won't see or deal with this partition again but it is necessary for good performance), specify the size (I usually use 4 GB) and create it.

3) Create another partition of type "ext4" (or any other llinux filesystem you wish) and set the size for this one. Where it says to select the mount point, select /

4) (optional) I usually create a separate partition for /home where my files are kept, it is usually a good idea in case you want to do a clean install of ubuntu in future, your data will be on a separate partition. Just create a partition of the desired size and type ext4 and mount point /home

Now install in the partition mounted at / and life is good :)


Failed to download ubuntu Desktop 12.04 iso

We can't tell what the problem is - there's not enough information, what are you using to download it?

If you keep getting the same issue try using a torrent download instead - that will pickup where it left off if you lose connectivity.

Torrent download links can be found here -

http://www.ubuntu.com/download/desktop/alternative-downloads


Remove GRUB and keep Windows Boot Loader

You can remove grub, but it would be unwise to do that. GRUB boots Ubuntu because it knows how to start the Linux kernel, like the Windows boot loader knows how to start the Windows kernel.

You can't expect Windows to boot an alien system from its boot loader, just like GRUB doesn't actually boot the Windows kernel - it just switches to the Windows boot loader.

You mention space and organisation, but GRUB really doesn't use that much space. On a server I logged in to which uses GRUB to boot the operating system, I found it only used 98MB of space and typically is found hidden away in the /boot folder.


Upgrade back to latest Nautilus/Files after downgrading

try the following command,

sudo apt-get install nautilus

it will ask for your password; enter it then nautilus should be updated. but watch the console because it might ask you if you want to use that much space on your hard drive. if it does type y for yes or n for no.


Ubuntu 12.04 Mobile Broadband Settings with Terminal

You can use find to find all files changes since a timestamp file.

in bash:

touch time-stamp-file
set up modem
find / -newer time-stamp-file

This method finds a few false positives, but should find all files you are looking for.


To fix locales check your language support settings - English (India) should be installed. If not, install it. Then run:

sudo locale-gen en_IN.UTF-8

If that doesn't generate the locale, you can use

sudo dpkg-reconfigure locales

and choose en_IN UTF-8 from the massive list to do the same thing

After generating the locale you want, check the output of locale. You want to see:

LANG=en_IN.UTF-8
LANGUAGE=en_IN:en
LC_CTYPE="en_IN.UTF-8"
LC_NUMERIC=en_IN.UTF-8
LC_TIME=en_IN.UTF-8
LC_COLLATE="en_IN.UTF-8"
LC_MONETARY=en_IN.UTF-8
LC_MESSAGES="en_IN.UTF-8"
LC_PAPER=en_IN.UTF-8
LC_NAME=en_IN.UTF-8
LC_ADDRESS=en_IN.UTF-8
LC_TELEPHONE=en_IN.UTF-8
LC_MEASUREMENT=en_IN.UTF-8
LC_IDENTIFICATION=en_IN.UTF-8
LC_ALL=

If you don't see en_IN.UTF-8 for everything, then do this:

sudo update-locale LANG="en_IN.UTF-8" LANGUAGE=en_IN:en

and check locale again. If the LC variables are still wrong, then do:

nano ~/.pam_environment

and edit so it looks like this:

LANGUAGE=en_IN:en
LANG=en_IN.UTF-8
LC_NUMERIC=en_IN.UTF-8
LC_TIME=en_IN.UTF-8
LC_MONETARY=en_IN.UTF-8
LC_PAPER=en_IN.UTF-8
LC_NAME=en_IN.UTF-8
LC_ADDRESS=en_IN.UTF-8
LC_TELEPHONE=en_IN.UTF-8
LC_MEASUREMENT=en_IN.UTF-8
LC_IDENTIFICATION=en_IN.UTF-8
PAPERSIZE=a4

(leave the papersize alone - I'm not sure what it should be for you!)

Save, exit, type: source ~/.pam_environment and now your locale is fixed.


Suspend only works once on Toshiba Satellite

if I got you right, check the System Settings(can be found on side panel)/Power as by default on my OS it was set to Don't Suspend you can choose Suspend when inactive for 5/10/30/hour


How do I customize the home screen of Ubuntu and Xubuntu?

Ubuntu 18.04

For those who are looking for extending the current list of wallpapers with your own (example:music-wallpaper-3840x2160.jpg):

Step-1: Copy the desired wallpaper in target folder /usr/share/backgrounds/

Step-2: Edit file:/usr/share/gnome-background-properties/bionic-wallpapers.xml

Step-3: Create an entry as shown below:

 <wallpaper>
 <name>Music-1</name>
 <filename>/usr/share/backgrounds/music-wallpaper-3840x2160.jpg</filename>
 <options>zoom</options>
 <pcolor>#000000</pcolor>
 <scolor>#000000</scolor>
 <shade_type>solid</shade_type>
 </wallpaper>


Installation of Ubuntu 16.04 usb live section

This image will install Ubuntu Server.

If you wish to install it, go ahead and select Install Ubuntu Server and follow the instructions.

You can go to custom installation and do a custom install selecting the correct disk and partitions.


That seems like https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1435988 you might want to comment on that bug/confirm it/subscribe


I had this problem and fixed it by installing libstdc++5. After that it worked fine.


Adjust quotas in a microstack deployment

Had this issue today, and changed the quota from 10 to 20 as below

sudo snap install openstackclients --classic
openstack quota show

Get your project id and check the quota for secgroups:

openstack quota set --secgroups 20 <project id>

This worked using 18.04 LTS.


Ubuntu 16.04 - Can't align 4 monitors next to each other

I was able to fix this using xrandr commands. It was a bit of trial an error, so I don't have the exact commands that ultimately did the trick, but it involved using the xrandr --left-of command. With the above xrandr output I set the --left-of DVI-D-0 to output DP-4.8 and HDMI-0 --left-of to DVI-D-0. Once that was set I was able to set the positions relative to each other using both xrandr commands and the Displays settings.

For more info see the --left-of and --right-of commands under do useful things here.


How can I change the Software Centre prices to GBP?

It does not look like this is possible at the moment (however, I might be wrong). There is however a bug on the subject: https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1002647

You could help out by going to the bug and click on "Does this bug affect you?".

It should be fixed! =)


Ubuntu 14.04 Snap to 1/4 of the screen instead of 1/2

Run

sudo apt-get install compiz-config-settings-manager

Run ccsm to open it.

You might be looking for the Grid or the Snapping Windows section.


WARNING: did not receive ack of last datagram after 10 tries

If you're not seeing anything at all on the server side, it's likely not receiving anything at all from the client. I noticed your client and server appear to be on different networks, so I'd first ensure there's a path between them and that they can communicate with each other (can they ping?). Another possibility is a firewall exists in between them (default iperf port is 5001), so double-check to make sure the traffic isn't being blocked.

One way to quickly check is to use nc to see if you can pass UDP datagrams back and forth. On the server side, run:
nc -l -u 5001

On the client side, run:
nc -u 192.168.2.2 5001

Then type something into the client side and see if it appears on the server side.


In the Terminal application (gnome-terminal I'm assuming) hit menu Edit → Keyboard Shortcuts...

A window will open with all the actions and the bound keyboard shortcuts.

Locate the group of actions Tabs.
Click the value of the action you want to change.
Click the same value again. It will be blanked.
Press the key combination you want to assign to the action.
Release all keys. The new key combination should be shown and active.


Is a Samba share being used by an external system?

sudo smbstatus

You can get a more compact output by running it with the -S switch:

sudo smbstatus -S


Thanks for the replies. I originally copied using dd /hdd1 /hdd2 and it took 2.5 days to clone. I found a comment regarding dealing with errors and ran fsck from the initramfs prompt. The SSD did then boot but trying to look at two identical drives (as sudodus noted) implied directory inconsistencies.

Finally tried

dd if=/hhd1 of=/hhd2 bs=64K conv=noerror,sync

again. I had to run fsck but this time e2.fsck and all looks good.

I'm running a 32bit Lenovo Ultra and Bionic Beaver seems to run well... SSD is faster and I hope the old battery will run longer.


xrandr not saving settings permanetly in Ubuntu 14.04

You can add

display-setup-script=<your_xrandr_command>

to /etc/lightdm/lightdm.conf in [seat defaults] section.

This will ensure it starts before you login into the system.

It also can be done in xorg.conf file, or better in a new file in

/usr/share/X11/xorg.conf.d/<50-some_name.conf>


How Do I change Default Wine Browser to Native Ubuntu Browser instead of IE?

wine regedit

HKEY_CURRENT_USER -> Software -> Wine
Create WineBrowser key if it doesn't exist
Create Browser string if it doesn't exist under WineBrowser
Edit Browser string to read the following

xdg-open,firefox,konqueror,mozilla,netscape,galeon,opera,dillo

Save in regedit

wine regedit

HKEY_CLASSES_ROOT -> http -> shell -> open
Create/Edit command key to read the following

C:\windows\system32\winebrowser.exe -nohome "%1"

Save in regedit

Completely close out of Wine and reload Wine.

Summary
Here, we are setting xdg-open to be the first Browser, and then changing the behaviour of command by adding "%1" as an argument.  Be sure to perform step #2 for both http and https to support both protocols, as mentioned in comments below.


Installing Ubuntu server 12.04 on VMware Workstation 8 in an Ubuntu 12.04 desktop

I've just downloaded 12.04.3 from torrent and it works fine. The problem was either the 12.04.2 or my version was damaged!


Code was working fine, Problem was that upstart script didn't run BASH scripts by default, un less u mention it is bash script. So i change my upstart script to this:

start on filesystem and net-device-up IFACE!=lo
stop on runlevel [016]

script
    exec bash -c '/opt/local/our-sync-pkg-2.0/sync_users start'
end script


bridge networking not working on ubuntu 16.04

I think

bridge_ports enp2s0

should be

bridge_ports eno2s0

to match the interface above


How to install AFNI? "unable to locate package libXp"

In Ubuntu , packages can be installed with apt-get and not with yum.

you can install package with

sudo apt-get install <package_name>

for your case , The proper command is to install is

sudo apt-get install libxp tcsh

and its not libXp.


Broken dependencies stopping me from installing Emulation Station

The immediate problem is written in plain language in your error message:

dpkg: error processing archive /var/cache/apt/archives/libsdl2-2.0-0_2.0.2+dfsg1-3ubuntu1.1_amd64.deb (--unpack): trying to overwrite '/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0', which is also in package libsdl2:amd64 2.0.3+z4~20140315-8621-1ppa1precise1

Okay, that actually could be plainer. Let's say it again without all the complicated filenames:

dpkg: error processing NEW_PACKAGE: trying to overwrite FILE, which is also in OLD_PACKAGE

Each file in your system can be provided by one (and only one) package at a time. When more than one package tries to provide the same file, those packages conflict.

In other words, NEW_PACKAGE and OLD_PACKAGE conflict. They both try to provide the same FILE.

The deeper problem is that you are adding PPAs and other Non-Ubuntu sources that provide conflicting packages.

Example: Your old libsdl2 is libsdl2:amd64 2.0.3+z4~20140315-8621-1ppa1precise1.

It's a 12.04 package on a 14.04 system (bad!)
It's a PPA package providing a key system service (bad!)
The PPA package uses a weird, nonstandard versioning that doesn't quite match either Ubuntu nor Debian (bad!)

A couple of these, and you are well on the road to a broken system and a full reinstall.

The easiest way to avoid this problem is to minimize the use of PPAs and stick to the tested, compatible Ubuntu repos.

How to fix your immediate problem:

Find that PPA in your apt sources. Delete it. It's not your friend anymore.
Uninstall all packages provided by that PPA.
Since you changed your sources, refresh your package database (sudo apt-get update)
Reinstall the removed software, this time from the Ubuntu repos (sudo apt-get install <whatever>)


ubuntu 13.04 wifi not working after installation inspiron 5520

OK I Didnt know that Ubuntu was a little dumb...

while installing the WiFi worked, not sure why, but in Additional drivers tab the device was disabled even though a driver was present.

Shouldn't the default behavior be to enable device even if the only driver available is a proprietary one.

All i had to do was go there and select the driver.


What files do I have to write to define a personnal keyboard layout?

I believe you can do that by editing the /usr/share/X11/xkb/symbols/gr.

sudo gedit /usr/share/X11/xkb/symbols/gr

I'm not sure exactly what you have to edit, though, since I can't understand greek, but the file is very self explanatory.

Don't forget to make a backup of the old gr file and after you are finished moving things around

rm -rf /var/lib/xkb/*

in order to clear kbd's cache. You may also need to

sudo restart lightdm

but it wasn't necessary in my case.

I believe there is a more organized way to inherit language keyboard changes/options, but I'm also not experienced with that.

My source here was https://radu.cotescu.com/remapping-keys-in-ubuntu-14.04/


If you run: vblank_mode=0 optirun xbmc OR vblank_mode=0 primusrun xbmc How's that?

vblank_mode=0 is just for the graphic card not to set a default refresh rate on the screen (monitor/tv). It set the best possible refresh rate. It MAY make tearing because it sets the refresh rate higher then your monitor supports.

For the "optirun" vs "primusrun" I found this information:

Primus brings better performance and less power consumption when using Bumblebee, by replacing VirtualGL. According to the Bumblebee G+ page, this has the following advantages over the optirun (VirtualGL) solution used by default in Bumblebee:

- Less overhead (better framerates) and cleaner solution (no networking or compression involved at all)

- Fixes the "bug" that causes Bumblebee to shut down the GPU too early sometimes (no more need for the "optirun bash" workaround)

- Less buggy/glitchy, easier to debug

- Only uses/starts secondary GPU for OpenGL parts of applications - everything else remains on your main GPU (power savings)


Is there a significant disadvantage to aliasing rm to do something else?

The 'significant disadvantage' is that you'll get used to rm not being the big nasty, use with extreme care tool it is. This means if you ever (in your whole life, so pretty likely) use another computer not set up with this 'soft-rm' then you may use rm more carelessly, forgetting your safety net is not there.


Can't boot Ubuntu 12.10 from USB key on Dell Inspiron 15R 5520 (2012 model)

I also have a Dell Inspiron 15R (5520). When installed Ubuntu and Linux Mint from a USB drive by using Startup Disk Creator. Disable Secure Boot, change your settings to Legacy, then reboot with the USB image on your USB drive. Push the F+12 key for the boot menu and you should see your USB drive - highlight this and touch Enter and you should then be booting from the USB drive. This worked for me after much experimentation with different options. Hope this helps --


Are all pages of a process loaded in swap file / partition?

If the system needs more memory resources and the RAM is full, inactive pages in memory are moved to the swap space. That is largely the answer, but how its decided that a page is inactive and should be moved to swap? It depends on the page replacement algorithms being used.
Mostly demand paging is used.
Nothing gets loaded to swap directly from the hard disk. On the hard disk pages do not exist; pages exist only when a program is loaded in memory, and it's from there they get transferred (swapped) to swap space and that's done according to paging algorithms.


How do I set up Ubuntu 15.10 so I can Filezilla from my windows 10 desktop and create/remove/add files to my server

Please refer to this link
share between windows and linux


I was trying to create an encrypted partition in that unallocated space following these instructions at the Wiki, this being the reason why I was using the Disk Utility. But it was returning the error above, even when instructed to create a non-ecrypted partition (ext4).

Even though GParted seems to lack this functionality it succeeded in creating a non-encrypted partition in the allocated space. After that the Disk Utility itself was able to encrypt the partition. In all likelihood the Disk Utility version shipped with Ubuntu 14.04 has a bug that prevents it from creating new partitions.

The detailed steps were:

In GParted select the unallocated space and select New, give it a label in the menu the opens and click Add.
Click Apply all Operations and wait for the process to finish.
Open the Disk Utility, select the newly created partition and click More Actions (the little icon with cogs) and then Format....
In the menu that opens select "Encrypted, compatible with Linux systems (LUKS + Ext4)" in the Type drop down; create a Passphrase and click Format....


Check the output of free -m. It will look similar to this:

             total       used       free     shared    buffers     cached
Mem:          7459       1483       5975          0         63        730
-/+ buffers/cache:        689       6769
Swap:         9536          0       9536

With different numbers probably. The first line ("Mem:") gives you the overall consumption, including cache and buffers (to speed up things, Linux uses free RAM to cache things like e.g. file system info -- see the "cache" column in my example. If the RAM occupied by this cache is needed elsewhere, that cache will shrink to free it). So look at the second line ("-/+ buffers/cache:"), which gives you the amount of memory really used by applications (plus kernel etc. of course). This should usually rawly match your calculation.


To simply create the file, use command touch /path/to/file. But you have to be sure that this path exists and you have write permissions into that directory.

Now, you choose /mnt/cdrom as path to file. This is obsolete path to CD-ROM. Since it was created manually (probably with sudo prefix), it allows writing there only to the root user. Correct path is /media/cdrom. And even if it was mounted, you would have no write permissions into that directory, because it is a CD-Read Only Memory. The only way you can write files directly onto CD filesystem is using DVD+R/DVD+RW disks.

So, the right command in your case would be such:

touch ~/usbfile.bin
dd if=/dev/zero of=~/usbfile.bin bs=1024 count=1048576

Then burn this file on DVD. I still have no idea why do you need this wasting of DVD, but if you want to do this, it is the right way.


File a bug report tagged "Wishlist" on Launchpad, or marked "enhancement" at GNOME Bugzilla.


Nvidia GeForce 750M Getting really hot on Ubuntu 14.04

According to the Geforce forums:
https://forums.geforce.com/default/topic/351453/geforce-basics/gpu-temperature-what-is-good-/post/2529566/#2529566 it is not extremely hot.

Nevertheless there might be something wrong with a fan. If you're worried you can probably have your computer checked in a computershop.

You might try software called tlp to reduce overheating. It apperas to do a good job with the default settings.
To install it do the following:
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start


I guess I can answer first part of your question. The second part seems little complicated :-(.

For the first part, instead of running these loops, you can use GNU parallel utility.

The following command should do the job:

parallel echo ::: {a..z} ::: {a..z} ::: {a..z} ::: {a..z} ::: {0..9} ::: {0..9} ::: {0..9} ::: {0..9} > /tmp/a

Hope this helps!

-- Mike


Compile the source code

./autogen.sh
./configure
make

And don't use make install or

./autogen.sh
./configure --prefix=~/.local
make
make install

to install in your home folder.


try to use this in terminal

sudo apt-get install ntfsprogs
sudo ntfsfix /dev/sdXY

where XY is the name of the drive
for example sda4


I ended up tearing apart my computer and disconnecting the CMOS battery for a few minutes. That resets the BIOS.


Does my laptop have Ubuntu- compatibility issues?

The delay when pressing alt+tab seems to be a feature in gnome and can be removed by installing the Alt-Tab Switcher Popup Delay Removal gnome extension.

First, install the gnome-tweak-tool if you haven't already done so. From the terminal:

$ sudo apt install gnome-tweak-tool

Next, launch ubuntu software by pressing super (or click show applications, by default it's in the bottom left corner under the favorites) and typing ubuntu software. Once launched, type Alt-Tab Switcher Popup Delay Removal and select install.

Lastly run tweaks (again using super), navigate to the Extensions-section and verify that the newly installed extension is set to on.


Apple magic track pad not working with 12.04.01

I had to uninstall and reinstall bluez bluetooth package and it is working fine now.


ctx.save();
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.beginPath();
ctx.moveTo(75,90);
ctx.lineTo(75,70);
ctx.closePath();
ctx.stroke();
ctx.restore();

edit

If someone is looking for an academic explanation, the problem is that you need two points to draw a line and apparently the library doesn't supply you with a starting point. You should set it with the moveTo method. Setting starting point with lineTo happens to work, but it is not clearly documented as such (so it may and will break).


" is not responding" while debugging in gnome 3 (ubuntu 17.10)

Another thing to consider is if, when stepping through the code, you are getting to a point where the app is expecting some input from the user: a keyboard input, mouse movement etc. If the app is now locked waiting for that input it will be stuck there, but you are in the debugger, stepping to the next line of code. So your app never gets there because its waiting, and the debug can't move on because its waiting for the app to complete whats its doing.
Its called a deadly embrace


Laptop power button not working on Ubuntu 20.04

Have you tried to push the power button for more than one second? It needs some time to trigger the event. It works for me as I described on Lenovo ThinkPad T480s and Ubuntu 20.04.


Get rid of visual bugs for intellij idea under unity

For me (Ubuntu 13.04 64bit) an update to Intellij IDEA 12.1.4 resolved the problem.


yes you can do that.
open your terminal and paste these lines

sudo add-apt-repository ppa:tsbarnes/indicator-keylock
sudo apt-get update && sudo apt-get install indicator-keylock

credit goes to omgubuntu


How to install dogtail script recorder in ubuntu 14?

It’s not easy to get this information, but dogtail’s README implicitly states that the "Dogtail Script Recorder" is only available in dogtail version 0.7.x, which is for GNOME 2 only. The newer versions for GNOME 3 and KDE 4.8+ including v0.8.2 in Trusty’s repositories don’t come with the script recorder, which is why you can’t find it. The only way to get it would be to install dogtail version 0.7.x, but neither could I find a download link nor would it work with any desktop environment else than GNOME 2 – maybe with the exception of MATE, but I’m not sure.


The USB drive was pre-formatted with the exFAT file system.  You have two options:  You can either format the disk to use a different file system, or you can install the packages that Ubuntu needs to read and write to the exFAT file system.

To format the disk:

Open the "Disks" utility (gnome-disk-utility)
Select your USB device.
In the top right corner, open the options menu and select Format Disk...

(Choose a quick format for speed and MBR for compatibility.)
Now that the disk is formatted, select "create a partition in allocated space" below the map under "Volumes".
Set the partition size to max.
Name the volume and select a file system.  Note the compatibility descriptions with each choice.  FAT/FAT16/FAT32 have the most compatibility and will work on Linux, Mac, & Windows.

To add exFAT capability to your system:

Open a terminal

sudo apt update
sudo apt install exfat-fuse exfat-utils

reboot your system


I finally found the answer I was looking for here:

Bash script to convert multiple avi in to mp4

The important line in the proposed script is

avconv -i "$i" -vcodec libx264 -acodec aac -strict experimental  -threads 3 "$name.mp4"

changing "$i" for the input filename and "$name.mp4" for the desired output name.


You should be able to accomplish this by first partitioning your HDD as usual. The official instructions are here

you'll need to select the disk from your bios, instructions can be found by searching your PC model "bios" in Google. once you boot from your disk. follow the official instructions. Here

as far as I know there is no way to install server from within windows, I may be wrong though. Good Luck :)


"libmtp error: Could not get file from device." on attempting to transfer files from Android phone

Install this dependency to build libmtp

sudo apt-get install libusb-dev --install-suggests
Get the libmtp here libmtp Latest Download
Extract the file using a file explorer program [or via the terminal]

tar xvf libmtp-1.1.1.tar.gz
cd into the new directory you just extracted
Configure (MAKE SURE YOU'RE ARE IN THE /libmtp-*/ DIR)

./configure --prefix=/usr
make
Install (AGAIN, MAKE SURE YOU'RE IN THE /libmtp-*/ DIR)

sudo make install
Copy rules to /etc/udev/rules.d/ (you might wanna double check the rules.d/ dir to see if coping over the new set of rules is necessary ... it probably is)

sudo cp 69-libmtp.rules /etc/udev/rules.d
Install the gMTP GUI Util

sudo apt-get install gmtp --install-suggests
Open/Run the gmtp program from the menu or term and enjoy!

  NOTE: If you have issues you might need to disconnect the device. Or restart. Or update things... sudo apt-get update and/or sudo apt-get upgrade

Hope this helps, if so vote up. If more help is needed hit me up and I'll do what I can.


Will not boot to prompt after do-release-upgrade; gdm not running xserver

3.0 dmesg is nearly identical to previous versions; however sudo apt-get remove  will return "previous installation interupted please run sudo dpkg --configure -a" this will fix the problem.


Create a VPN Connection which connects to a Socks server

It's impossible to use Socks as tunneling protocol, so you can't make VPN using Socks. The reason is simple: Socks forwards only TCP (and UDP in Socks5), so other protocol can't pass through Socks.

You can use ProxyChains to pass every connection through your Socks proxy. It does same as Proxifire in MS-Windows.


ram usage is too high after update of fglrx driver

this steps solved my problem,

change fglrx driver to xrog display wrapper
purge remove fglrx driver
reinstall fglrx driver

if not solved
change your

Compositing system to XRender

and
Qt graphics system to Native


What is the correct way to completely remove an application?

apt-get remove packagename

will remove the binaries, but not the configuration or data files of the package packagename. It will also leave dependencies installed with it on installation time untouched.
apt-get purge packagename or apt-get remove --purge packagename

will remove about everything regarding the package packagename, but not the dependencies installed with it on installation. Both commands are equivalent.

Particularly useful when you want to 'start all over' with an application because you messed up the configuration. However, it does not remove configuration or data files residing in users home directories, usually in hidden folders there. There is no easy way to get those removed as well.
apt-get autoremove

removes orphaned packages, i.e. installed packages that used to be installed as an dependency, but aren't any longer. Use this after removing a package which had installed dependencies you're no longer interested in.
aptitude remove packagename or aptitude purge packagename (likewise)

will also attempt to remove other packages which were required by packagename on but are not required by any remaining packages. Note that aptitude only remembers dependency information for packages that it has installed.

And many more exist. Lower-level dpkg-commands can be used (advanced), or GUI tools like Muon, Synaptic, Software Center, etc. There's no single 'correct way' of removing applications or performing other tasks interacting with your package management.

The list you found are just examples. Make sure you understand the meanings and try out what it wants to do before accepting the action (you need to press Y before it actually performs the actions as proposed).

The asterisk version in the question is probably wrong; apt-get accepts a regular expression and not a glob pattern as the shell. So what happens with

sudo apt-get remove application*

is the following:

The shell tries to expand application* looking at the files in the current directory. If (as is normally the case) it finds nothing, it returns the glob pattern unaltered (supposing bash with default behavior here --- zsh will error out).
apt-get will remove the packages whose name contains a string that satisfies the regular expression application*, that is, applicatio followed by an arbitrary number of n: applicatio, application, applicationn, libapplicatio, etc.
To see how this can be dangerous, try (without root for double safety) apt-get -s remove "wine*" (-s will simulate the thing instead of doing it) --- it will say is going to remove all packages that has "win" in their name and the dependant, almost the entire system...

Probably, the command that was meant is really

 sudo apt-get remove "^application.*"

(note the quotes and the dot) which will remove all packages whose name starts with application.

These commands,

sudo updatedb                  # <-- updates the locate database (index). harmless
sudo locate application        # <-- locates the file 'application'. harmless
sudo rm -rf (file/folder name) # <-- removes files/dirs recursively. dangerous.

are completely outside the scope of the package management. Do not remove files belonging to packages without using the package manager! It will get confused and is the wrong way to do things.

If you don't know to which package a file belongs, try this:

dpkg -S /path/to/file


Good program to cut out image regions manually

Gimp, using the Crop tool. You can set the Crop tool to Fixed: aspect ratio with dimensions 1:1 and save that as a default

Edit > Preferences > Save tool options > Save tool options now

or save it until you reset it:

Edit > Preferences > Save tool options > Save tool options on exit

If you need to process many images in sequence, the ofn-file-next script will do the Save current image, Close current image, Open next image in one operation (one keystroke if you make a shortcut for it).


How to set the gnome-terminal color scheme to "Solarized Dark" via commandline?

Also I can't find that something like Solarized Dark in gsettings or dconf.

Method1:

But according to this answer, we can find Solarized Dark RGB parameters, and set gnome-terminal colors to that parameters.

You can do this with dconf-cli:

sudo apt install dconf-cli

And then find your profile id with this command:

dconf list /org/gnome/terminal/legacy/profiles:/

That can be something like this:

:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/

And set this values on gnome-terminal to make your desired theme.

dconf write /org/gnome/terminal/legacy/profiles:/<profile id>use-theme-colors "false"
dconf write /org/gnome/terminal/legacy/profiles:/<profile id>background-color "'rgb(0,43,54)'"
dconf write /org/gnome/terminal/legacy/profiles:/<profile id>foreground-color "'rgb(131,148,150)'"

For example:

dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/use-theme-colors "false"
dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/background-color "'rgb(0,43,54)'"
dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/foreground-color "'rgb(131,148,150)'"

Method2:

Also you can do this with gsettings:

gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ use-theme-colors false
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ background-color 'rgb(0,43,54)'
gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ foreground-color 'rgb(131,148,150)'

That b1dcc9dd-5262-4d8d-a863-c897e6d979b9 is my profile id and you can find yours with this command:

gsettings get org.gnome.Terminal.ProfilesList default


How to print PDF documents with a CMYK color profile from LibreOffice?

According to the LibreOffice support page , printing in CMYK is not currently possible.

  LibreOffice uses only the RGB color model for printing in color.
      The CMYK controls are provided only to ease the input of color values using CMYK notation.

To my knowledge, you will need to export the pdf using a tool like pstill which does pdf conversion to either a PostScript(.ps) or EPS(.eps) format. The software is rather old; but it does run, for me, on a 12.04 machine.

There is also the Gutenprint driver that you may want to investigate. It appears to be a bit newer.

As far as the conversion process goes, I had seen a bit of a color-shift in document quality with pstill . YMMV, as my print jobs have not been color critical on Ubuntu.


automatically set permissions for new file

[...] I am sharing these files through Samba [...]

There you go :)
The permissions are likely to be defined in

/etc/samba/smb.conf

Please have a look at the settings for

create mask =
directory mask =
force create mode =
force directory mode =


How to find specific package name from list of installed packages

Try according to these commands:

Identify the program,

which eclipse

Look for the package using the output of the which command line for the path

dpkg -S /path/eclipse

I think the package name is eclipse. You can run

apt-cache policy eclipse

to see the versions. It seems to me that the version, that you have, 3.8.1-8, is the current one in 16.04.x LTS.

(I have not installed eclipse, but apt-cache shows the 'candidate' to be installed.)


USB pendrive : the copy takes about 3 minutes but the unmount takes a very long time : 10 to 12 minutes

You are probably suffering from buffering caching. To speed up writing to USB sticks (and hard disks in general), Linux uses a filesystem cache:

When you (think you) write something to the stick then it is first written to the cache (in RAM) and the cp command (for instance) returns immediately pretending a really fast write operation. While you do other things, the contents of the cache is then written to the stick in background. You may notice that an LED on the stick still flashes showing write operations (depends on your stick) although nothing apparent happens.

When you issue umount soon after a write operation, then umount waits until all the filesystem's cache content is written to the stick in order to make sure no data gets lost.

With sync you can manually force emptying the cache and writing the data to the stick. However, this won't speed up the total elapsed time because then you will have to wait for the sync to complete (instead of waiting for umount). But the umount will then return instantaneously because the cache is already flushed.

In summary you have three choices after copying large or many files to the stick:

umount and wait 10 minutes for it to complete
sync, wait 10 minutes to complete, followed by umount (will return almost immediately)
simply wait for 10 minutes (perhaps a bit more) and do nothing (or something unrelated to the stick) and then issue umount. Because the cache gets written in background automatically, umount will then return almost immediately as well.


Did I accept the ttf-mscorefonts-installer EULA?

No you didn't accept the EULA. And no, you don't have the fonts installed, but yes, you've installed the package.

I understand that's confusing. Let me explain that.

The actual accept/reject value is written to the debconf database. It is independent of the package installation. The post-install script of the package is responsible for the fonts to be installed and prevents it if you don't accept the EULA.

To check what the value is in the debconf database, install debconf-utils , then do

$ sudo debconf-get-selections | grep 'msttcorefonts/accepted-mscorefonts-eula'
ttf-mscorefonts-installer       msttcorefonts/accepted-mscorefonts-eula boolean true

This is true for my machine, because I did accept it. For you this should be probably false.

Even if you installed the package but you did not accept the EULA, then the fonts aren't installed. Why? Because the package does not contain the font files. It downloads the fonts from an external website due to license restrictions in distribution. To prove, see the contents of the package:

$ dpkg -L ttf-mscorefonts-installer
/.
/var
/var/lib
/var/lib/msttcorefonts
/usr
/usr/share
/usr/share/fonts
/usr/share/fonts/truetype
/usr/share/package-data-downloads
/usr/share/package-data-downloads/ttf-mscorefonts-installer
/usr/share/doc
/usr/share/doc/ttf-mscorefonts-installer
/usr/share/doc/ttf-mscorefonts-installer/README.Debian
/usr/share/doc/ttf-mscorefonts-installer/copyright
/usr/share/doc/ttf-mscorefonts-installer/changelog.gz
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/ttf-mscorefonts-installer
/usr/lib
/usr/lib/msttcorefonts
/usr/lib/msttcorefonts/update-ms-fonts

and that's why it's called an installer. This is ugly and totally non-standard packaging. Developers are forced to do this, because of the aforementioned licence restrictions. A similar workaround for this has been developed for Flash, packaged as flashplugin-installer .

After installation of the package the postinstall script, located at /var/lib/dpkg/info/ttf-mscorefonts-installer.postinst, will download and install the fonts only if the license is accepted (asked in the preinstall script). It uses the /usr/lib/msttcorefonts/update-ms-fonts application (which is part of the package) to perform the actual download and installation. Have a look at the scripts yourself; they're not rocket science at all.


Mounting windows partition from live ubuntu

Did you try booting up windows and on the log-in screen press "Shut-Down" button. If the fast-booting is on this won't work.(I know this isn't the answer just a small thing you might have forgot, i would've posted this as a comment but i don't have the enough reputation).


How do I lock/unlock my screen using my iPhone and USB dock?

Found an excellent script here courtesy of Evan Boldt on how to do this. Thanks Evan!

First find out the id of your device by using lsusb

The create a script under your home dir (let's use /home/me/iPhoneLock.sh for this example) that looks sort of like this:

#!/bin/bash

#Replace with the ID of your USB device
id="ID ffff:1234 Apple, Inc. iPhone 3G"
serial="12345"

#runs every 2 seconds
for ((i=0; i<=30; i++))
do
if [ -z "`lsusb -v 2> /dev/null | grep "$serial"`" ]
then

    echo "Device is NOT plugged in"

    if [ -n "`DISPLAY=:0 gnome-screensaver-command --query | grep "is active"`" ]
    then
    if [ -e /tmp/autoUnlock.lock ]
    then
    #stop locking the screen
    rm /tmp/autoUnlock.lock

fi

elif [ -e /tmp/autoUnlock.lock ]
then

    DISPLAY=:0 notify-send -t 5000 --icon=dialog-info "iPhone Disconnected" "Locking     screen"
    #lock the desktop
    DISPLAY=:0 gnome-screensaver-command --lock

    rm /tmp/autoUnlock.lock

fi
else

    echo "iPhone IS plugged in"
    if [ ! -e /tmp/autoUnlock.lock ]
    then
    DISPLAY=:0 gnome-screensaver-command --deactivate
    DISPLAY=:0 notify-send -t 5000 --icon=dialog-info "iPhone Connected" "Welcome     Back!"
    touch /tmp/autoUnlock.lock

    fi

fi
sleep 2
done

Next, edit your crontab:

crontab -e

Finally configure it so that it runs every minute:

* * * * * bash /home/username/bin/autoUnlock & >/dev/null 2>&1

Note of warning though: Of course this means that anyone with your phone will be able to unlock your screen. A nice improvement would be to only unlock your screen if your phone was unlocked.

This of course is applicable to any usb device.

The script is licensed under the CC-GNU GPL version 2.0 or later.


You can use mpv. This example will overlay video.mp4 as the background and image.png as the foreground. image.png will be placed in the lower right with a 10px padding.

mpv --lavfi-complex="[vid1][vid2]overlay=W-w-10:H-h-10[vo]" video.mp4 --external-file=image.png

See the overlay filter and mpv documentation for more info.


BIOS Error: System crash when booting from live USB with bionic 18.04/ focal fossa 20.04 daily build

Boot Live USB using grub from Internal Drive

If you are having trouble booting a Live Ubuntu 19.10 USB made using balenaEtcher, mkusb, Startup Disk Creator, dd or other method that uses an ISO9660 file, you may be able to boot using your internal drives grub.

Try adding the following menuentry to your internal drive's grub menu or to /etc/grub.d/40_custom and then run sudo update-grub.:

menuentry "Ubuntu - flash drive" {
 search --set=root --fs-uuid xxxx-xx-xx-xx-xx-xx-xx
    set gfxpayload=keep
    linux   ($root)/casper/vmlinuz$casper_flavour  file=/cdrom/preseed/ubuntu.seed quiet splash  ---
    initrd  ($root)/casper/initrd$casper_flavour
}

Where xxxx-xx-xx-xx-xx-xx-xx is the UUID of the Live USB.

This method should work for any live or Persistent USB that boots ISO9660 files.


How do I import a private key into GPG so that it becomes the default key?

To change the GnuPG behaviour on what key it selects on signing/encryption, use the default-key configuration parameter with the key ID as the value.

So, for example, with

$ gpg --list-secret-keys
/home/gert/.gnupg/secring.gpg
-----------------------------
sec   4096R/13371337 2011-01-01 [expires: 2014-01-01]
uid                  Gert van Dijk (1st key) <name@example.tld>
ssb   4096R/31337313 2011-01-01

sec   4096R/12345678 2013-04-23 [expires: 2014-01-01]
uid                  Gert van Dijk (2nd key) <name@example.tld>
ssb   4096R/87654321 2013-04-23

add a line in ~/.gnupg/gpg.conf:

default-key 12345678

or, alternatively, use the long key ID (recommended as short key IDs can have collisions):

$ gpg --list-secret-keys --with-colon
sec::4096:1:ABCDEFAB12345678:2013-01-01:2014-01-01:::Gert van Dijk (2nd key) <user@example.tld>:::

and add a line in ~/.gnupg/gpg.conf:

default-key ABCDEFAB12345678


How can I change the icon of an app launched from keyboard shortcut (or terminal)?

I'm not positive about this, but I think the icon you're referring to is set by the application itself. Therefore, to change the icon you have to either change it in the program settings (if possible) or alter the program's source code.

I know for a fact that this is how an app I wrote works; I don't know if all are this way, though.


Kubuntu 12.10 - Do I have to install all the i386 packages in order to run wine on an amd64 machine?

I found the answer... at least a solution for me.

Can't install wine (or ia32-libs) in Ubuntu 12.10 64 bit

I don't need to remove my ppas.  Using /etc/apt/preferences to assign Pin-Priority would solve the dependencies problems while installing wine-i386.  However, in some of my machines it would remove almost all kde packages and I need to re-install them back after installing i386 packages.


If you have already decided to use Ubuntu, you should feel free to install Ubuntu 12.10, because you can upgrade to 13.04 when it comes out.

Assuming you wait for the actual release date to upgrade, most likely there will be no problems upgrading. I do recommend reading the release notes before upgrading, in case there are bugs that might affect the upgrade. (Similarly, I recommend reading the release notes before performing a fresh install, if you choose to do that.)

It's possible that a fresh install will work better than an upgrade, even if nothing is noted in the release notes about it. But if you have any preference at all, I recommend going with your preference. There's no strong reason to think a fresh install will work better, and if something goes wrong during the upgrade or afterwards, you can always just wipe the disk and perform a fresh install of 13.04!

You also have the options of:

Sticking with 12.10 even after 13.04 is out (12.10 will be supported through April 2014).
Installing 13.04 now, even though it is not yet released (please note that if you do this, you cannot get support for it here on Ask Ubuntu until it is released, but you can get support from a variety of other official Ubuntu help resources). You shouldn't do this unless you're prepared to face bugs, including crashes. Unless you know or want to learn how to report bugs, I recommend against using a development release of Ubuntu. But I've included this because it's one of your options. In my experience, 13.04 works pretty well now, but my experience with it is highly limited.


Effect of sudo on the performance of `gsettings set` command

dconf settings are stored in a database on a per-user basis. When you run a command with sudo, the $USER is root, not anymore your own user. gsettings will therefore act on the dconf database of the root user if it exists, rather than on the dconf database of a specific user.

An in depth guide for system administrators about dconf is available on the gnome wiki. It suggests that the database on which dconf acts can be set by the DCONF_PROFILE environment variable.


How to make a shortcut for the command kerio-kvc start, stop and restart commands?

Open the bashrc file on your /home

nano ~/.bashrc

Then create an alias for what you want, on the end of the file. Like:

alias startkerio='/etc/init.d/kerio-kvc start'

Oh, and to be possible to use your new command without relogging or rebooting do this:

source ~/.bashrc