Short answer (applies to your specific situation)

Install the qt4-qmake package (or if that's unavailable, the qt3-dev-tools package). Also install the libbz2-dev package. (You can install both from the command-line by running sudo apt-get update followed by sudo apt-get install qt4-qmake libbz2-dev.)
If you don't want imgcnv installed in /usr/bin (which is the default location), edit Makefile and change the first line (which reads prefix=/usr). For example, if you want it in /usr/local/bin, which is the normal place for software you build and install from source (and not through Ubuntu's package manager), make this line say prefix=/usr/local. If you want to install imgcnv in your home directory, then create $HOME/bin if it doesn't already exist and edit Makefile's first line to read $HOME.
Run make.
Run sudo make install (unless you're installing in your home directory; then run make install).
Assuming that worked, it's pretty clear the official installation instructions are faulty, so optionally, you may want to report this as a bug to imgcnv's maintainers.

This worked for me to build imgcnv 1.52 on an Ubuntu 11.10 Oneiric Ocelot amd64 (i.e., 64-bit) system. If it doesn't work for you, please comment with details (including error messages and the version and architecture of your Ubuntu system).

If it doesn't work for you, you might try deleting your imgcnv folder and starting over, re-extracting the archive. Perhaps running the script manually, as you have done, has messed up something that prevented make from working.

Longer answer (applies also to similar situations)

The standard way to build software from source that has good instructions that work is to follow them. Unfortunately this doesn't.

The standard way to build software from source without instructions (or with non-working instructions) is to see if there is a script called configure. If there is, run ./configure --help to see what kind of command-line options it takes. Then run the script, with whatever options are appropriate for your needs. Often you may run ./configure with no options, as the defaults are often acceptable. After running ./configure, you may be given instructions. If you are told to run make, or if you are not given instructions, you should then run make.

If there is no configure script (as is the case here), see if there is a file called Makefile. If there is, then run make. (When there is a configure script, this script will often generate the Makefile, or on rare occasion may modify it.) You may first want to edit Makefile to customize options for building or installing. One purpose of a configure script is to render this unnecessary by creating a Makefile that is customized according to your specifications. One of the most commonly customized variables in a makefile is prefix, which controls where the software will be installed. (See the "Short answer" above for a specific example of this.)

Running ./configure or make will sometimes fail, telling you that you don't have something you need. When that happens, you must install that thing. When I ran make, everything seemed to be going well until it eventually failed because the qmake command was not present on my system. Since qmake is a command, I tried to run it manually, which gave me a detailed message telling me I didn't have it (which I already knew) and what packages I could install to get it. Then I installed one of those packages (qt4-qmake) and ran make again. (If it had been a library or header files, I might have needed to search at http://packages.ubuntu.com to see what provides it.)

Running make again will often be able to pick up where it left off (or even if not, then from somewhere later than the beginning). Some software--including imgcnv--can take quite some time to build, so it's a good idea to try to pick up where you left off. Occasionally this causes problems though, so if you run make again and it fails, you can run make distclean to bring things back to the way they were before you ran make, then run make. (If make distclean doesn't work, run make clean.)

Sometimes a source distribution has build scripts, like build-imgcnv-linux.sh in imgcnv. If there are both build scripts and a Makefile, and the documentation doesn't tell you to run a build script manually, it's advisable to try running make first, especially if the instructions tell you to run make install. In a properly set up source distribution that has a Makefile, running make install would do the same thing as running make followed by make install (i.e., it would see that the software hadn't been built yet, and it would build it before attempting to install it). But sometimes that doesn't work, so then you have to run make first.

It's advisable to run make before make install anyway, even if you know running make install by itself would take care of the make step automatically. There are three reasons for this:

If anything happens during the make step that causes you alarm (even if it isn't an error), you're not installing software that might not be built the way you want it. For example, there could be warnings advising you of potential problems.
This doesn't apply to imgcnv. But many source distributions come with testsuites to see if the built program is likely to work properly. You can build and run them with either make check or make test. (If the documentation doesn't say anything about them, I recommend trying those commands in that order.) These don't get run automatically by running make install, and while you might be able to just run make check or make test without running make first, that's undesirable because it might not be clear if an error happened while building the software or while building/running the testsuite (which is crucial information for troubleshooting the problem).
If you're installing the software for the whole system (rather than just your user), which is almost always the default configuration, then make install needs to be run as root. On Ubuntu, the proper way to do this is by running sudo make install instead of make install. But you don't need to actually build the software as root, so you can build the software as yourself with make and then install it as root with sudo make install.

If you're sure you want to both build and install (no matter what kind of scary warnings come out of building) and make install doesn't work, you can use the idiom make && make install. This also addresses the root/non-root issue, as you can run make && sudo make install. The && operator, used in this way, causes the command to the right of it to run only if the command to the left of it seems to have succeeded.

(I've intentionally left out discussion of how to build software that requires the user to invoke autoconf, automake, and/or an autogen.sh script, as source code of stable releases very rarely requires this. However, if someone wants to edit this post an add instructions covering those situations, under a third subject heading, I would have no objection.)


Ubuntu + docking station and two external monitors

I solved installing this: https://www.displaylink.com/downloads/file?id=1576
rebooted and it works!


Adobe has changed their support for Flash on Linux.

  NOTE: Adobe Flash Player 11.2 will be the last version to target Linux
  as a supported platform. Adobe will continue to provide security
  backports to Flash Player 11.2 for Linux.

Adobe is saying that they will provide security updates:

  Mozilla, Firefox, SeaMonkey (Flash Player 11.2 is the last supported
  Flash Player version for Linux. Adobe will continue to provide
  security updates.)

link

---- content merged from Tom Brossman's answer ----

Instead of a standalone plugin, the latest version is available only in Google's Chrome browser for Linux.

Reading their press release from the marketing team, it seems that they are  'partnering' with Google.


I need an image viewer controllable from terminal

When I first asked this question I already knew about xdotool which can send keystrokes to X-windows and much more. Example:

xdotool key a

I obviously didn't want to be typing command lines for each photo I had to view.
I've finally created my own script translating keystrokes to xdotool commands.
I can now control unconditionally any X-window from terminal.


Internal Server Error 500 Bugzilla installation

If you do a

ls -l /var/www/bugzilla/index.cgi

and it shows

ls -l -rwxr-x--- 1 root apache2 2.6K Feb 20 01:16 /var/www/bugzilla/index.cgi

you will see that the user of the file (root) is not the apache user. Change it to the user you use for Apache. Let's assume this is www-data then ...

sudo chown www-data /var/www/bugzilla/index.cgi

will change this file (and only this file) to user www-data. This will set all files in /var/www/bugzilla/ to user www-data:

sudo chown -R www-data /var/www/bugzilla/

Be careful with that one though: it might change more than you want.


Are you logging in with your email address or by your username?  Empathy requires you to log in with your username, which can be found in your personal information on facebook.  Try logging in with your username and see if you still have the same problem.


Can you use the same bootable USB for multiple installations

The installation USB does not store any installation-specific config files.
So, YES, you can use the same USB for multiple installations without any worries.


Stuck at "Erase disk and install Ubuntu"

Your best course of action is probably to run wipefs on the drive manually before starting the Ubuntu install process.

The automated Ubuntu install process, by default, works very hard to preserve data and avoid accidental OS erasures that plagued early Linux installers and soured new users to the Linux experience.

Sometimes, if a disk has an exotic or unusual partitioning or formatting, the install process can get hung up. In your case, the disk seems to be part of an LVM group, so the installer may be trying to make sure it isn't damaging a disk that is part of a disk set.

Was the drive pulled from a RAID array or another multi-disk set? Those kinds of disks tend to present corner cases that standard, friendly installers may not cope well with. Manually clear the drive and try the install again, or engage the Ubuntu installer team to see if you can locate the bug.

To start down the rabbit hole of bug submission, check the install logs in /var/log and /var/log/installer by opening a terminal window CtrlAltF1-6 with the username "ubuntu" and no password. You can use CtrlAltF7 to return to the GUI.


Noise from mic recording audio with screen recording

If you're using Windows, please check this start > sound > input > your mic > properties
Then from the above properties you will find one of them that prevent the out noise. Check it and you will not find any other noise, again.


Where does network-manager store WPA keys when "Available to All Users" is ticked?

I don't have an wifi to check it right now, but according to http://live.gnome.org/NetworkManager/SystemSettings , system connections should be stored at /etc/NetworkManager/system-connections/ .


There is an app on APT called recordmydesktop (gtk-recordmydesktop with a graphical interface). Its very easy to use. You may also check this location and see what you prefer:

http://www.sysadminwiki.net/site/doku.php/os/linux/ubuntu/screen_captures_desktop_recording

You could try to use VLC movie player which is available on apt but it may be outdated so get it from here:

http://www.videolan.org/vlc/

It is possible to configure it so it will record your desktop/game or whatever you need.


Ubuntu 12.10 : is possible to use dash as a Google desktop alternative?

With a special lens, this is possible. You can use the Recoll lens to search your files (with an index) just like you do with Google Desktop.

You can install it from this PPA: ppa:recoll-backports/recoll-1.15-on

sudo apt-add-repository ppa:recoll-backports/recoll-1.15-on
sudo apt-get update
sudo apt-get install recoll-lens


Sounds like you are in Ubuntu 2D. You want Ubuntu (aka Unity 3D). First, check that you are signed in to 'Ubuntu' at the login screen:

Failing that, make sure you have the latest NVIDIA drivers installed. Go to your System Settings (click the gear icon at the very top right of the screen), and select 'Additional Drivers'.

Choose the default selection, labeled 'version-current' like below:

If this doesn't fix it after logging out and logging back in, check that your card is capable of supporting Unity's 3D effects:

/usr/lib/nux/unity_support_test -p


File permissions: why  can't I list a directory?

To be able to "enter" a directory, which is kind of a prerequisite for listing its content, you also need the +x permission.

Also note that this is a requirement all the way from the top (root) of the directory structure. To be able to enter a /foo/bar/baz directory a user needs to have the +x permission on every single intermediate directory.


How can I get a new /etc/apt/sources.list?

There is a copy of this file in /usr/share/doc/apt/examples/sources.list

You can make a new copy by doing:

sudo cp /usr/share/doc/apt/examples/sources.list /etc/apt/sources.list


i select the usb boot option from Bios it opens up all the files from the usb, asks me for a specific file to boot

Navigate the BIOS to an EFI file.
You should be able to find it in the folders on your bootable device (USB stick?)...
Check the /boot/ and /EFI/ folders on your screenshot.
Hope it helps you out.


How to raise up a Rsync environment on WSL to mirror changes from PC to VPS?

First make sure you are able to connect over SSH from the remote machine to the local one. For this purpose you must copy your private key in the directory /root/.ssh and it has enough restrictions - sudo chmod 400 /root/.ssh/id_rsa. Also you can create /root/.ssh/config file as this:

$ sudo cat /root/.ssh/config

Host my-localhost-name
    HostName 77.71.11.10
    IdentityFile ~/.ssh/id_rsa
    User my-user-name
    Port 22122

Now you can use rsync from the remote machine in this way:

sudo rsync -avzp -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress my-localhost-name:/var/www/<my-folder>/ /var/www/<my-folder>/

In case you don't have /root/.ssh/config file the command should be:

sudo rsync -avzp -e "ssh -i /root/.ssh/id_rsa -p 22122 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress my-user-name@77.71.11.10:/var/www/<my-folder>/ /var/www/<my-folder>/

Where:

-a, --archive is a quick way of saying you want recursion and want to preserve almost everything  (with  -H being  a  notable  omission). The only exception to the above equivalence is when --files-from is specified, in which case -r is not implied.
-v, --verbose increases  the amount of information you are given during the transfer.  By default, rsync works silently.
-z, --compress - compress file data during the transfer.
-p, --perms causes the receiving rsync to  set  the  destination permissions to be the same as the source permissions.  (See also the --chmod option for a way to modify what rsync  considers  to be the source permissions.)
-e, --rsh=COMMAND allows you to choose  an  alternative  remote  shell program  to  use  for communication between the local and remote copies of rsync...

Also you can add here additional options to the ssh command. The options used in the above example -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null are useful to keep Rsync quiet and not prompting everytime you connect to a new server.
--progress show progress during transfer.

  A  trailing slash on the source changes this behavior to avoid
  creating an additional directory level at the destination.  You can
  think  of a trailing / on a source as meaning "copy the contents of
  this directory" as opposed to "copy the directory by  name",  but  in
  both  cases  the attributes   of   the  containing  directory  are
  transferred  to  the containing directory on the destination.  In
  other words, each  of  the following  commands  copies  the files in
  the same way, including their setting of the attributes of
  /dest/foo:

rsync -av /src/foo /dest
rsync -av /src/foo/ /dest/foo

Sources:

man rsync
Ubuntu Documentation: SSH/OpenSSH/Keys
How To Copy Files With Rsync Over SSH


A simple loop will do the trick. unzip supports specifying a target directory, so you can do

for f in *.docx
do
    mkdir -p "$f"-images
    unzip "$f" "word/media/*" -d "$f"-images
done


Basically you need to update the bootloader from Ubuntu. You can do this by booting a live-ubuntu to make the neccessary changes there: ubuntu-community

Please also have a look here for specific configuration you might need.


Hide loop partitions / snaps in Krusader

So, is there a way to hide them in Krusader?

A developer named Soul Trace / S-trace has written the main part of the source code that allows hiding those unwanted entries :-)

If you can follow the steps of
https://invent.kde.org/utilities/krusader/-/blob/master/INSTALL
then you can build the git version of Krusader and get its latest features now (and even tell Krusader developers about what you find).


Terminal window doesn't show my input after using popen() in my program

had a similar problem with python Popen solved it by adding -nostdin flag to ffmpeg command
https://stackoverflow.com/questions/65329483/python-subprocess-popen-ffmpeg-breaks-terminal-input


Nvidia stops working after repairing Grub

I uninstalled, rebooted, installed again without DKM, and that solved the problem.

This answer comes "as-is" from the original author of the question who posted this solution in comments.


Rhythmbox is the Gnome's default music player.

Read this explanation from the Official Ubuntu Documentation.

Version 3.4.3 has been released with numerous bug fixes.

Not least of which includes:

Improved Android plugin to work better with Samsung and Android 9 devices
Replaced status bar with floating bar as used by Nautilus
Fixed crash when store request processing fails
Fixed crashes when editing auto playlist sorted by Location / Bitrate
Fixed crashes when insert a cd
Fixed issue that can not transfer songs to phone over MTP

In order to install the latest PPA and benefit from the new version, open a terminal and run the following command:

sudo add-apt-repository ppa:ubuntuhandbook1/apps

Then launch Software Updater to upgrade the music player packages

You can purge the PPA which will also downgrade Rhythmbox to the stock version (3.4.2-4ubuntu1) via the command in terminal:

sudo apt install ppa-purge && sudo ppa-purge ppa:ubuntuhandbook1/apps


How to replace /etc/apt folder after deleting it

If You have iso image of Ubuntu, then follow these steps:

First mount iso file in /media/cdrom

 sudo mkdir /media/cdrom
 sudo mount -o loop ubuntu-14.04-desktop-i386.iso /media/cdrom

Where "ubuntu-14.04-desktop-i386.iso" is filename of your iso file
Then mount filesystem.squashfs at /mnt

sudo mount -o loop /media/cdrom/casper/filesystem.squashfs /mnt

Now you can copy /etc/apt from /mnt/etc/apt

If You have live disk then follow these steps:

Mount /casper/filesystem.squashfs from disk to /mnt

sudo mount -o loop "/media/pandya/Ubuntu 14.04 LTS i386/casper/filesystem.squashfs" /mnt

where "pandya" is username and "Ubuntu 14.04 LTS i386" is disk in my case
Now you can copy /etc/apt from /mnt/etc/apt


Landscape server is not available for 18.04 yet. Supported version is 16.04 https://help.landscape.canonical.com/

Client for desktop/server is available for 18.04


I also have this laptop and issue, but using Fedora 22. Supposedly, this is the laptop's firmware not implementing Active State Power Manager correctly. You can tell the Linux kernel not to use ASPM by adding this kernel parameter: pcie_aspm=off. I don't know if this is better or worse than KGill's suggestion of pci=nomsi.


After upgrading to Ubuntu 13.04, should I stick with NVIDIA 310 driver or should I change it to 313 driver?

There is a huge difference in gaming performance between the 304 and the 310 one. I have a GeForce GTX 660Ti and i'm using version 310. Also tested version 313 but couldn't see any difference at all. After digging around the nvidia.com site, it seems the 313 version just adds support for the newest high-end cards like the GTX Titan.

Cheers


That's due to what logrotate does. It's kinda like a log files janitor, moves them, compresses and caches. You can also consider changing SSH server's port, I run mine on 44 instead of 22 and that keeps people from doing stupid scans :)


Shortcut to capture a custom ROI with shutter in Xubuntu

In 18.04, man shutter has:

CAPTURE MODE OPTIONS
    -s, --select=[X,Y,WIDTH,HEIGHT]
            Capture an area of the screen. Providing X,Y,WIDTH,HEIGHT is optional.

In Xubuntu 18.04, to set Control+Shift+PrintScreen as a shortcut to use Shutter to capture an area of interest, open the Whisker Menu, the icon for which is usually located at the left of your panel, click on Settings in the right column, and then on Keyboard in the left column. A window titled Keyboard opens. In there, click on the Application Shortcuts tab near the top and then on the Add button near the lower left (marked in red).

As soon as you click Add, a smaller window, titled Shortcut Command, pops up in which you need to type or paste in the command for which you want to assign a keyboard shortcut. In this case, we'll use shutter -s.

Once you're done entering the command, press the Okay button near the lower right corner.

Now, another window, Command Shortcut, appears.

In this one, you need to simultaneously press Control+Shift+PrintScreen and that will be reflected in the window.

Once you release the keys you pressed, that window disappears, the shortcut is established, and you can see it listed. It is functional immediately.


Is there a LiveCD that contains TeamViewer that works out-of-the-box? If not, how can I generate one?

There is no LiveUSB/LiveCD or distribution of Ubuntu that comes with TeamViewer builtin.  TeamViewer is third-party closed source software that is packaged by their development teams for Ubuntu - it is not included in the repositories.

It is possible under every Ubuntu distribution to set up x11vnc or similar, however, to do VNC functionality that you can access with a VNC viewer.  You may refer to "How do I install a VNC server?" for further guidance on setting up x11vnc or other solutions on an Ubuntu system.  (There are not, however, LiveUSBs/LiveCDs of Ubuntu which ship with this - you would have to install them after the fact)


"Connection failed" during $ sudo apt-get update

If you are behind a proxy, edit or create the file : /etc/apt/apt.conf

And insert your proxy settings :

Acquire::http::Proxy "http://<proxy_host>:<proxy_port>";

Save it, and relaunch the apt-get command


No login screen after Ubuntu 18.04 update

First, eliminate a possible disk file system problem...

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo fsck -f /
repeat the fsck command if there were errors
type reboot

If for some reason you can't do the above...

boot to a Ubuntu Live DVD/USB
start gparted and determine which /dev/sdaX is your Ubuntu EXT4 partition
quit gparted
open a terminal window
type sudo fsck -f /dev/sdaX # replacing X with the number you found earlier
repeat the fsck command if there were errors
type reboot

Next, eliminate a possible video subsystem problem...

At the GRUB menu, hit the e key, and edit the line that contains "splash quiet" to "splash quiet nomodeset", hit ctrl-x to continue booting. See if it will fully boot, even if the video display isn't at the correct resolution. If it boots, do one of the following...

1. Eliminate a possible wayland problem...

Boot to recovery mode, and choose root access. Then type:

sudo mount -o rw,remount /

In terminal...

cd /etc/gdm3 # change directory
sudo pico custom.conf # edit this file

Find and change:

#WaylandEnable=false

To this:

WaylandEnable=false

Save the file.

sudo dpkg-reconfigure gdm3 # select gdm3 DM

Select gdm3 and OK.

reboot # reboot the computer

2. Update/reinstall the current nouveau/Nvidia video drivers.

Update #1:

While trying the wayland fix, errors indicated a gdm3 problem. Reinstalling gdm3 resolved the problem.


Trying to install Ubuntu 15.04 on iMac not working

Don't make a PPC disc. It won't work PowerPC is the type of processor Macs used until Mac OS 10.4 was released. Your 2013 Mac is definitely an Intel, so you need to get the normal version, or it won't boot for sure.

P.S. -- this is what you meant right?


How to fix "error: unknown file system" on all available partitions

boot Windows 7 rescue disk. When command prompt appear type:

BootRec.exe /fixmbr

or

BootRec.exe /fixboot


Ubuntu MATE 15.10 - Cannot recognize my monitor through DisplayPort

Looks like the nvidia card can't figure out the EDID of your monitor. You can try creating a manual entry for it in /etc/X11/xorg.conf

Can you open "nvidia-settings"? To be able to save it to a xorg.conf file, you will need to open it as root.

Press Alt-F2, then type 'gksudo nvidia-settings'. Type your password, and then the settings window will open. Select 'X Server Display Configuration' on the left. See if you can't activate the screen from there. But the most important part will be to 'Save to X Configuration File'.

Next you will want to post in your question the output of your xorg.conf.

Open a terminal and paste:

  cat /etc/X11/xorg.conf

Highlight the text that came out and right-click and 'Copy' it. Now paste it as part of your question. That will give us more information on how to help.


"The file is not a valid icon theme archive." - KDE Plasma 5 can't install one single icon theme

Figured it out.

Download icon manually.
Extract the file to a temporary folder.
And move the folder (it should have an index.theme inside) to: ~/.local/share/icons or /usr/share/icons
Enjoy.

There's a lot of misinformation on the Internet about the correct icon folder. And downloading icons using the System Settings is very unreliable.


An easy way to disable right click on Lubuntu 16.04 toolbar

Save yourself the trouble and either

run Chrome / Firefox in kioskmode if this is the only app you want to make available (you can do anything with browser based cloud apps right?)
switch to a more sophisticated desktop environment which supports "kiosk mode" natively and set it up properly:

XFCE - Xubuntu
https://wiki.xfce.org/howto/kiosk_mode
KDE - Kubuntu
https://userbase.kde.org/KDE_System_Administration/Kiosk/Introduction

or schedule an hourly/daily/weekly automated snapshot restore, which puts the lxde environment back in it's original state.


CPU working hard while sleeping after upgrading to 12.04

Sometimes background processes are specifically set to run only when the system is otherwise idle.  I have seen this setting with anti-virus and backup software on various systems.

To find out which process is busy, you just need to open a terminal window and run 'top'.

The default settings won't help much as they're designed to be watched as they run rather than read later.  If you change the settings in top to update only once a minute, then make sure you wait AT LEAST a minute after the trouble starts, and stop top from running as soon as you have logged back in, there's a decent chance the problem process will be at the top of the list!

To be totally sure, I would re-run this trick at least 2 or 3 times.

It may also help to check the system log files in '/var/log'.


From a FOSS article:
What is Preload?
Preload is a daemon application and runs in the background. Preload analyzes the user behavior and tracks what applications are run frequently by the user. Based on these analysis, it predicts what application the user might run next and fetches those binaries and their dependencies into memory and hence increases the startup time of the application.

You can't really clear the cache
You can't really clear the cache but you can disable specific programs from preload. As per this Arch Linux article:
To disable the loading of a program, remove the appropriate list in /usr/share/gopreload/enabled or move it to /usr/share/gopreload/disabled.
You should read the whole article!

Also of interest to you:

Drawbacks of using preload? Why isn't it included by default?


Does Banshee have a log of files deleted from the drive from within Banshee?

It's not an answer to your main question, but it could solve your problem: Open Banshee and in the menu Tools run Rescan Music Library.

This should work, as long you didn't delete the files from your harddisk.


Multiple shortcuts for same functionality

If you are using Compiz (chances are that you are) you can install Advanced Desktop Effects Settings (ccsm), either from the Software Center or from the command line

sudo apt-get install compizconfig-settings-manager

Now go to System-> Prererences-> CompizConfig Settings Manager.

Click on the Viewport Switcher icon. The window should change, go to the Desktop-bases Viewport Switching. Click on the buttons after Move Prev and Move Next (labeled Disabled on the screenshot). A new window will open, click enabled, another one will open, here you can select a mouse button for each action there, always or only when the mouse is in some screen places or when a special key is pressed.


Removing and readding the snap with devmode works:

snap remove strace-static

snap install strace-static --devmode

The error (Basically see snap help refresh) when trying to change it to devmode with install without removing it and a quick scan of the help for snap refresh gives the impression that it can be fixed with snap refresh


key presses go crazy after Android adb device is connected

I found the problem.  I had a powered 4 port USB hub that my keyboard was plugged in to like this one.  When I connected my keyboard directly to the PC the problem goes away.


First of all, it is 8192 kilo bytes, and not bytes. Furthermore stack is one thing, variable is another, and heap yet another. See this explanation of differences between stack and heap, for example, or this page. As far as I know stack is used for local and short lived variables, and it depends on the compiler whether stack or heap are used.

As far as I can tell, if you use [mc]alloc and friends to allocate memory, you are not touching upon the stack, and the limits do not hold.

But yes, trying the following at ulimit -s equal to 8192 will result in a segmentation fault:

#include <stdlib.h>

int main() {
  char foo[10000000] ;
  foo[0] = 'a' ;
  exit( 0 ) ;
}

Here, the variable foo is too large.

$ gcc test.c
$ ./a.out
Segmentation fault (core dumped)

However, if you change the ulimit (e.g. ulimit -s 16000), it will work.


Installing Brother scanner MFC-7225N in Ubuntu 16.04

I came up with a unsatisfactory solution by reading this carefully: For me on a Lenovo Thinkpad X240 it's not working with USB 3.0. I disabled USB 3.0 support in my BIOS and suddenly it worked just fine. However, of course by doing that all USB ports on the machine are just as fast as USB 2.0 now - apparently one has to make a decision here, or be okay with changing the BIOS setting every time one want to scan or rather use USB 3.0 functionality.


How do I create .desktop file for repository program?

Sounds like you have installed the snap version of those applications mentioned in the question. You should find the associated .desktop files in the /var/lib/snapd/desktop/applications/ directory. But it is not recommended to directly edit these files. Instead copy a .desktop file to your ~/.local/share/applications/ directory first and then edit the copied file.


This site can't be reached after wordpress migration

Well I think there is an issue with the Custom Design. So please do check before submitting the migration.


In Zeitgeist, it is possible to blacklist some folders in the activity log manager:

see: http://www.webupd8.org/2011/05/keep-files-from-showing-up-in-unity.html


How do I edit/access Chrome app properties on GNOME?

Follow the steps below.

Copy the Google Chrome launcher from the /usr/share/applications/ folder to your ~/.local/share/applications/ folder. It should appear as a file with .desktop suffix.
Open the .desktop file with a text editor of your choice.
Look for the Exec= line. This line contains the command that is currently used to launch Google Chrome. Append the flag you want to add to this line (e.g. add  -disable-prompt-on-repost at the end of the Exec= line).
Save the file.


Firebug problem in 64 bit Ubuntu distribution

I used to have this problem for a while on lucid. There was also a bug submitted to firebug (firefox crashed with firebug installed). Going to a newer version of firefox/firebug solved the problem at the time.

I had no problems so far with firebug on amd64 using Maverick (10.10).

Maybe you need to be more specific what the exact issue is, if this will not help.


As a workaround, the MaximizeFlash extension for Chrome works. It maximizes any Flash video to fill your browser window. This doesn't solve the problem directly, but makes it less annoying.


Found the answer here:

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

See #3

When Firefox is downloaded directly and installed via the install script, it sets /usr/bin/firefox.ubuntu as the launch path.

sudo mv /usr/bin/firefox.ubuntu /usr/bin/firefox

Did the trick.


install extra compiz plugins (burn) and (groups & tabs)

You will need to install the compizconfig-settings-manager, compiz-plugins-extra, and of coarse compiz. All available in the repository through the software center or synaptic. Once installed you can select the "extras" that you want enabled. Watch the tutorial here

BTW when you install compiz it will pull in a lot of extra packages. Just let it. You will need them to run.

*since the first half of my answer isn't working for you I will edit this to include another option *

Remove the two .HIDDEN files in your ~/HOME directory, .compiz-1 and .compiz then log out or reboot. To verify that these are indeed the correct files....open your file manager> in your ~/HOME directory> Ctrl+h which will show your hidden files. You may have the option to rename them or make a backup by opening a terminal and use this CLI:

sudo mv ~/.compiz-1 ~/.compiz-1_old

and

sudo mv ~/.compiz ~/.compiz_old

REBOOT


What's the difference between Try Ubuntu and Install Ubuntu option in VirtualBox?

Try Ubuntu will run live image of Ubuntu system, this will not actually installing Ubuntu—thus changes you made here not gonna be saved and will be gone after shutdown.

Install Ubuntu probably is the one you want, it will install full Ubuntu within Virtualbox sandbox, storing all the changes on virtual hard disk (usually .vdi file).

Installing Ubuntu on Virtualbox will not affect your main filesystem—except for hard disk space usage I assume you already figure that out.


How do I get randomness in command-line?

The variable $RANDOM (actually a bash function) returns a random number from 0 to 32767 inclusive.

You would typically want to limit its range by dividing it by some number and take its remainder, eg.

# output a random number 0 to 3
echo $((RANDOM % 4))

In this simplistic example it'll be very slightly biased for any divisor that doesn't divide equally into 32768 (eg, anything that isn't a power of two), but in your scenario I don't think you'd be troubled by a slight bias.

To pick a random file, you'd name your files something like:

file0.jpg
file1.jpg
file2.jpg
file3.jpg

And then you can pick a random one with

# output a random file from file0.jpg to file3.jpg
echo "file$((RANDOM % 4)).jpg"


Using this script:

Install x11-utils, we need xwininfo

sudo apt-get install x11-utils

and create a script with the code below

#!/bin/bash
# resizes the window to full height and 50% width and moves into upper right corner

#define the height in px of the top system-bar:
TOPMARGIN=27

#sum in px of all horizontal borders:
RIGHTMARGIN=10

# get width of screen and height of screen
SCREEN_WIDTH=$(xwininfo -root | awk '$1=="Width:" {print $2}')
SCREEN_HEIGHT=$(xwininfo -root | awk '$1=="Height:" {print $2}')

# new width and height
W=$(( $SCREEN_WIDTH / 2 - $RIGHTMARGIN ))
H=$(( $SCREEN_HEIGHT - 2 * $TOPMARGIN ))

zenity --entry --ok-label=sure --width=$W --height=$H

Source


How to import a file with correct method?

When we had mechanical typewriters...
there were two things,

Carriage return, that moved the roller back when it reached the right margin and
Line feed, that moved the roller up so that the type heads won't
write over the existing line, but write on a new line.

https://stackoverflow.com/questions/6521685/why-does-windows-use-cr-lf
Here is a longer explanation of the history and some details on the CR and LF codes: http://penguinpetes.com/b2evo/index.php?title=argh_microsoft_notepad_crlf_argh
Even today...
Windows uses CR/LF codes at the end of each line while Ubuntu (Linux in general) uses just the LF code.
When you open a text file generated by Ubuntu, real, virtual, or Windows Subsystem for Linux (WSL), the file will look fine. When you open the same file in Windows, all the lines are together.
What can you do?
First, verify that the text file created WSL actually have file names in separate lines:
cd /mnt/d/VirtualNes/
ls >list.txt
cat list.txt

The last line displays the contents of list.txt in the Ubuntu terminal. You should see the file looks fine.
Ubuntu comes with a terminal based text editor nano. You can use it to edit the text file instead of Notepad:
nano list.txt

On the other hand if you open the same file in Windows using notepad.exe, for example, you will see the lines jumbled up. You will get the same results if you create a similar file in "real" Ubuntu and open is in Windows.
If you want to open the text files created in Ubuntu in Windows you will have to convert the LF code at the end of each line to CR/LF code. You can do this in Windows CMD prompt (not the Ubuntu terminal) by entering:
TYPE list.txt | MORE /P > win_list.txt

You will get a new file win_list.txt that will open correctly in Windows.
There are other ways of doing this, such as unix2dos and dos2unix utilities. In Ubuntu you can install both these 2 utilities by the following command:
sudo apt install dos2unix

See https://stackoverflow.com/questions/17579553/windows-command-to-convert-unix-line-endings and https://stackoverflow.com/questions/3891076/how-to-convert-windows-end-of-line-in-unix-end-of-line-cr-lf-to-lf for more.
Hope this helps


Does package manager remove dependencies when original package is removed?

I believe it depends on the package. Obviously, some dependencies are also dependencies for other packages, so those will stay installed.

However, if you run sudo apt-get remove test or sudo apt-get purge test, then it will let you know that there are a bunch of dependencies that can be removed (albeit manually via sudo apt-get autoremove) if there are any dependencies that only that package relied on.

Now, I don't have a super credible source (no Debian or Ubuntu documentation) currently (searching now.) But, what I do have is what I get in the terminal when I try to remove a package (shutter) in my case:

Obviously, there would be a bunch of dependencies left over that would have to be manually removed.

From the man page for apt-get:

  autoremove

    autoremove is used to remove packages that were automatically
    installed to satisfy dependencies for other packages and are now no
    longer needed.

Hope this helped! I'll look for a more credible source just to augment my answer.


HP laptop running 14.04 : Wireless not working

description: Ethernet interface
   product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
   vendor: Realtek Semiconductor Co., Ltd.
   physical id: 0
   bus info: pci@0000:03:00.0
   logical name: eth0
   version: 0a
   serial: c8:d3:ff:cf:a0:3e
   size: 100Mbit/s
   capacity: 100Mbit/s
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
   configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8107e-2_0.0.2 02/26/15 ip=192.168.1.8 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
   resources: irq:130 ioport:3000(size=256) memory:b4104000-b4104fff memory:b4100000-b4103fff

*-network UNCLAIMED
       description: Network controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:05:00.0
       version: 10
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:b4000000-b4001fff


How to change wrong ELF class: ELFCLASS64 to 32-bit on Ubuntu 20.04 LTS

I think you need to add 32-bit support to 64-bit Ubuntu 20.04. Use the following commands
sudo dpkg --add-architecture i386
sudo apt update
sudo apt dist-upgrade

After that try installing the 32 bit libraries, if any required. The most common 32-bit libraries can be installed using the following command
sudo apt install ia32-libs


How to download a GitHub repo as .zip using command line

From the comments I saw you actually speak about GitHub.

It won't work like this because:

Downloading a project on GitHub causes the GitHub server to first pack your project as zip and than forwarding you to a temporary link where you get your zip ..

this link will only work for a certain time and than GitHub will delete your zip file from their servers..

So what you get with wget is just the html page which would forward you as soon as your zip file is generated.

As suggested use

git clone http://github.com/<yourRepoLink> <optional local path where to store>

to download the git repo ... If for some reason (e.g. for transfer it to others) you need it explicitly as zip you still could pack it after cloning is finished..


Creating a bootable usb that runs mainly off of ram, but saves files and applications to the same usb

You can split usb to two partition. One for booting ubuntu, second for data.
Simple mount second partition of usb and you data is available. This data is also available on any other pc or on the same pc when boot from hdd.

To speed up your live system try to add swap via file.
Create swap file and add them when running live.

dd if=/dev/zero of=/path/to/swap_file bs=1024 count=${size_of_additional_swap}
mkswap /path/to/swap_file

After booting a live sysyem turn on swap with

swapon /path/to/swap_file

Swap file can be on usb or on same partition like live distro.

Try, maybe this will be solution for you.


How can I use pip to install python packages for python3?

If you're using python 3 you need to use pip3:

pip3 install pandas

You've installed pandas for python 2.7 not 3 so it won’t work.


Ubuntu 12.04 Depends: postgresql-9.1-postgis

Install the missing package. It will pull in postgres-9.1 (not the other way around):

sudo apt-get install postgresql-9.1-postgis localwiki


high cpu/gpu temerature after installing nvidia drivers

Yep. If you use a more powerful processor, the temperature will go up, as per the Second Law of Thermodynamics.

Intel has no problem with anything under 100C as per https://ark.intel.com/content/www/us/en/ark/products/75117/intel-core-i7-4700mq-processor-6m-cache-up-to-3-40-ghz.html


Error message during boot after installing tlp

The message "thinkpad_acpi: Not yet supported Thinkpad detected!" is triggered by TLP. To check whether it's running on a ThinkPad it tries to load  thinkpad_acpi kernel module.

But the real cause is the kernel module thinkpad_acpi itself, which confuses your Ideapad with an unknown ThinkPad model.

Solution: either ignore the message or file a bug report against the kernel.

Remark: don't confuse thinkpad_acpi – part of the standard kernel – with tp-smapi – additional dkms package needed – or acpi-call. Neither tp-smapi nor acpi-call a related to the error. TLP tries them only after thinkpad_acpi was successfully loaded.


Nautilus in Ubuntu 13.04 opens underneath other windows

The easiest thing to do was to perform these steps to 'downgrade' to an older patched version of nautilus. This seems to have fixed all my problems without generating any new ones.

sudo add-apt-repository ppa:webupd8team/experiments
sudo apt-get update
sudo apt-get dist-upgrade
killall nautilus

This is based on an answer provided to another ask ubuntu question.


Unable to load VPN connection editor in Ubuntu 14.04 LTS

Run

sudo apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome

This will prompt for both your password, and a Y/n answer, please provide it with your password, and Y.


Problems with notifications from already uninstalled gnome-shell extensions

I might have found more information.
My problem apparently resided in the GNOME shell integration add-on of my browser, Firefox, which for some reasons still showes the troublesome extensions listed. I found this out in Tools->Add-ons->GNOME-shell Integration->...->Preferences->Syncronisation
I uninstalled this add-on, rebooted and installed it back, but the extesions I deleted from basically anywhere else in my laptop, are still in that list.
For now I'll delete that add-on, since it' not strictly necessary, but it still is a hassle I would like to know how to fix, heh.


Slow Boot Times -- "gave up waiting for root device" error

You can have this problem when the entry in /etc/fstab no longer matches the disk.

You may have something like this

UUID=d77c6fe4-f734-4b17-a614-22a96e6b8e28 /  ext4  errors=remount-ro 0 1

On a laptop you might want to replace this with

/dev/sda3 /  ext4  errors=remount-ro 0 1

(or whatever your root partition is)


Go to System > Control Center and, in the filter bar, type 'Keyboard Shortcuts'. Click on the resulting configuration tool to open a new window listing all your keyboard shortcuts. Find the 'Ctrl+Space' shortcut, select it, and hit backspace. The shortcut will now be disabled.


old rs232 trackball must be restarted after every restart

Hi I have solved it the solution is here

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


Just simply run select-editor, this will let you choose any editor you want.


grub update making automated install stuck

Reconfigure the grub-pc package

sudo dpkg-reconfigure -plow grub-pc

When asked about the partition or disk to install Grub to, choose one, or just skip the options and click OK if you don't want Grub to be installed anywhere.

Then check the options

debconf-show grub-pc

You should see the key grub-pc/install_devices set to the disk/partition you've chosen, or grub-pc/install_devices_empty set to true if you chose not to install Grub.

Then if you test this by reinstalling the package

sudo apt-get --reinstall install grub-pc

you should not be asked any You chose not to install GRUB to any devices questions anymore.


you are installing node from binaries which is self installation (not using ubuntu software center).

When you do self installation of node usually you create a symbolic link to /usr/bin or /usr/local/bin to put in the path for everyone system-wide.

If you installed new version of node all you have to do is to remove the symlink of the old one and place the new one instead.

 ln -s /path/where/node/installed/bin/node /usr/bin/node

Remove of course the one in /usr/local/bin or /usr/bin before.


Does Thermald for Ubuntu work with AMD processors?

Yes.

According to apt-cache show thermald, thermald's home page is  https://github.com/01org/thermal_daemon. That GitHub project merged some code fixing things on several AMD processors, which implies it is supposed to work on AMD processors.


They are in the binary file

/usr/lib/sudo/sudoers.so

(found by: find /usr/lib/sudo -type f | xargs grep "fallen in the water")

If you enable source downloads and do

apt source sudo

You can find the insults files in the source directory under

plugins/sudoers

The files are

ins_2001.h
ins_classic.h
ins_csops.h
ins_goons.h
insults.h

Example of what these files look like:

#ifndef SUDOERS_INS_GOONS_H
#define SUDOERS_INS_GOONS_H

/*
 * Insults from the "Goon Show."
 */

    "You silly, twisted boy you.",
    "He has fallen in the water!",
    "We'll all be murdered in our beds!",
    "You can't come in. Our tiger has got flu",

and so on... they are quite readable.


Configuring Asus USB-N13 Wireless Driver without Internet Connection

http://tuxstack.wordpress.com/2013/10/23/install-drivers-for-wifi-usb-adapters-trendnet-tew-624ub-tp-link-wn821n-asus-edimax-etc-on-linux/

The asus n13 uses the powerful rtl8192cu chipset which apparently has crappy linux support.
The problem is solved by using a modded version of the old driver and injecting it into the kernel.
Thanks to janez troha.


How do I access Google Chrome's built-in adblocker?

It is available in the latest build of chromium

https://www.chromium.org/getting-involved/download-chromium

The download is a binary in a zip file.

Download , unzip, and run the binary from the command line

Direct download:

https://download-chromium.appspot.com/

unzip chrome-linux.zip
cd chrome-linux/
./chrome

Screenshot 1 (content menu)

Screenshot 2 (ads menu)

Chromium is the same as chrome without the branding. Has all the same features including sync across platforms, sync with chrome, development tools, etc.

I suspect you have to wait for google to release a new linux version of chrome or the ubuntu developers to package chromium.

In the mean time you can use chromium from the link I gave you without damaging your system or chrome.


Ok, I found solution somewhere else:

sudo apt-get install --reinstall rsyslog

It seems rsyslog was removed itself at some point.


Failed to start Raise network interfaces

execute dmesg | grep eth and see whether it is ens192.
edit /etc/network/interfaces and append a few lines like bellow:

iface ensxxx inet static
address 192.168.1.138
netmask 255.255.255.0
gateway 192.168.1.1


How to truely separate Gnome & KDE on the same computer?

Unfortunately, once the two Desktop Environments are on the same installation (using the same or different directories), there is no real way to separate them.

The only way to get them "completely separated" is to install them on two separate installations. I'm sorry that it is that way, but essentially that's what it boils down to.

In light of your comment, there is an option you can add to the .desktop files that prevents them from showing in specific environments.

I believe this setting should be "OnlyShowIn" and the value would be KDE, GNOME, Unity, etc.

In KDE it is possible to set this manually for your startup applications (but only for KDE itself).


The file or folder /media/partitionname/foldername does not exist. Kubuntu. Dolphin

Solved: simply edited .kde/share/config/dolphinrc to remove homeurl entry which had been previously set on the partition when it still existed


After several attempts, I finally found a solution... The password cannot be longer than x characters, and I think is 5, according to this post.

I find it strange, but I hope it can help someone !


Mouse speed faster vertically than horizontally

I have the same issue after upgrade from 15.10 to 16.04, but it looks like it's not related to HorizResolution or VertResolution.

In my case, it was an issue of mouse Acceleration profile (horizontal acceleration faster than vertical).

Just turn it off and compare results:

xinput list
xinput set-prop 12 'Device Accel Profile' 0
xinput set-prop 12 'Device Accel Constant Deceleration' 2

Where 12 is your mouse pointer device id.


I personally wouldn't worry about the software centre. I never use either of them (Ubuntu Software/Ubuntu Software Centre). I always look up what kind of program I'm wanting to install, search how to install it, then follow the instructions. With some software, you have to add a PPA, install, say, snap or something, and all of this would be listed in the installation instructions. I just find that there is typically better software available from sources other than the software centre. However, if you're just trying to update your software, you can run:

sudo apt-get update
sudo apt-get upgrade


Disable password length/complexity in Raring

Odds are your username is not test1
sudo passwd $USER would change your password
That will break something if you have encrypted your home folder, if I remember correctly


Something keeps writing lots of data on disk and causes me to run out of space

On your VM you can type du -sh /* this would list the usage of each directory, then you could just continue to which directories look large and look inside those.


How to upgrade bitcoind (Bitcoin Core) in Ubuntu?

bitcoin-cli stop
sudo apt-get update (assuming you have bitcoin installed via the Ubuntu ppa)
sudo apt-get upgrade bitcoind

If you're using QT just swap bitcoin-qt for bitcoind since that's the name of the package you're upgrading.


If you

open the calender in the panel by clicking the clock,
select a date and drag it somewhere and
release it

then it's copied to where it's released.

For instance if release it into a text editor it inserts the date. This is just an example of a drag and drop feature.

The reason that you end up at http://cdn.ruanjian.com/bibei/ is, I guess, that an URL of the form http://www.2011-08-11.com/ (but not exactly this URL) links there.


Try to install the PHP MySQL extension using the following command:

apt install php7.4-mysql


Mimetype mess after calibre installation. How can I fix it?

The problem was solved reinstalling the shared-mime-info package, as suggested by  Glutanimate, with

  sudo apt-get install --reinstall shared-mime-info


How can I map the docky anchor button so that it will launch the unity dash?

Create a .desktop file, in which you use the command to Open the Dash remove the Docky anchor and place the .desktopfile you made in it's place.


How to translate routing commands into netplan rules？

Here is a configuration that should work. (Please note the indentation, which was incorrect in your question but presumably correct on-disk on your system.)
network:
  version: 2
  renderer: NetworkManager
  ethernets:
    eth0:
      addresses: [192.168.20.3/24]
      nameservers:
        addresses: [192.168.10.1]
      routes:
      - to: 0.0.0.0/0
        via: 192.168.20.1
    eth1:
      addresses: [192.168.20.3/24,192.168.10.8/24]
      nameservers:
        addresses: [192.168.10.1]
      routes:
      - to: 192.168.20.13/32
        via: 192.168.20.3

Differences from your original config:

remove the static route to 224.100.100.0, which was redundant with your default route.
replace the use of gateway4 with a routes entry, which is clearer
add a host route for the sensor on eth1.

It is recommendable that you not use the same network address on different segments on your network. This is contrary to basic principles of routed networks.


Getting .NET Core SDK not located error when I open a script in VS Code in Unity3D. All solutions on Google only work for Windows and not Ubuntu 20.04

A reboot should do the charm. However, there are a few issues with snap installation. Installing dotnet through APT worked for me without a reboot. Dotnet SDK Ubuntu


Swap is not copied back into physical memory

I'm simplifying things but there are only two instances where paged memory in swap is copied back out to physical RAM:

There's a page fault (app tries to call memory mapped to swap).
You use sudo swapoff -a (et al) to turn swapping off.

Anything else tends to be a waste of time. Memory in swap tends to be relatively unused, low trafficked stuff. The algorithm Linux uses things going into swap is LRU (Least Recently Used). If you find yourself in a situation where you're getting disk trashing and applications are stalling on page faults, the problem is simple to fix: you need more RAM.

Memory just sitting in swap will not slow the computer. It only has that effect when something has to be stuck in swap and used.

Note: As I said, I'm simplifying things here. Memory management is a absolutely huge topic and my few paragraphs don't do the algorithms, their designers or their implementers any justice. I've had my own share of battles with Linux memory and cache management over the years but something I've learnt so far: the Kernel devs know more than me. They set things up the way they are for a reason.


"Writable"-partition on Ubuntu Snappy Core smaller than remainder of free space on disk

So I did some further research, and found this question and answer which lead me to believe that 'Disks' might be showing me something different than what I was looking for (I was under the impression that there were no unallocated space within partitions, obviously I was wrong).

GParted on the other hand paints a different picture:

Total size of partition: 12.74GiB
Used space: 1.47GiB
Unused space: 96.10MiB

The numbers don't add up, and in properties it becomes clear what's going on:

So I unmounted the partition, selected it, and under partition chose 'check' and applied.

Problem solved.


Catalyst 12.8 doesn't support Kernel 3.5, Catalyst 12.9 doesn't support my videocard

Maybe installing legacy fglrx 12.6 would help. Chceck it out: http://www.ubuntuvibes.com/2012/10/how-to-install-amd-catalyst-legacy.html


dell inspiron 1300 installed now no internet

Download these two files:

http://mirrors.kernel.org/ubuntu/pool/main/b/b43-fwcutter/b43-fwcutter_015-9_amd64.deb
http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2

for 32-bit Ubuntu you will need a 32-bit b43-fwcutter instead of 64-bit.

http://mirrors.kernel.org/ubuntu/pool/main/b/b43-fwcutter/b43-fwcutter_015-9_i386.deb

and copy them to the Ubuntu Home folder.

Then run in terminal:

sudo dpkg -i b43*.deb
tar xfvj broadcom-wl-5.100.138.tar.bz2
sudo b43-fwcutter -w /lib/firmware broadcom-wl-5.100.138/linux/wl_apsta.o

If you do it correctly, Wi-Fi will work after reboot.


Enlarge "persisitent" image on USB stick after installation?

If you boot from a Live CD you can mount and access the casper-rw file on the Persistent USB using:

sudo mkdir /media/casper

sudo mount -o loop casper-rw /media/casper/

You can then move the contents of the casper-rw file to an ext2 partition named casper-rw, (on the persistent drive), then delete the casper-rw file.

I have not tried this exact method so better to keep a copy of the original casper-rw file as backup.


netstat is in the net-tools package, which is installed with:

sudo apt-get install net-tools

You can search for packages, or package contents, on https://packages.ubuntu.com/. Alternatively you can use apt-cache search.


Make an Ubuntu Live CD or USB and boot from it.
Check if Ubuntu files are still there. If your Ubuntu partition is ok, maybe there's some problem with the Kernel. You may try to install a new one...


Ubuntu 20.04 won't resume after suspend (lid closed and then opened)

Sometimes, the BIOS has options for how to handle power buttons, lid open/close, etc.  If it's never booted Ubuntu before, it would be useful to look over the BIOS settings.
Does the power LED indicator show it went into suspend?  If not, then the suspend process never completed.  This is likely to be a peripheral without suspend support.
When the lid is opened, does the power led still indicate suspend or does it indicate that it's running and trying to resume?  If the former, then the lid open signal was never received and this could be a BIOS or hardware issue.  If the later, try to ssh into the machine from another to see if you can tell what's going on.  Thia may not work of resume didn't get far enough.  Killing the X server will start a new login session and do a full reset of the graphics if it's the graphics that's hung up.  You can also try to pull up a terminal with ctrl-alt-fN and then return to the GUI which might bring it back.
If it looks like it started to resume and you close the lid again, does the LED go back into suspend?  If this is the case, ssh should work when the lid is up and that would be the best way to see what's happening.
You should also look at /var/log/kern.log to see how far it got if it started to resume, but couldn't finish or if it failed to completely suspend.  This could help narrow down the problem.  It generates quite a bit of noise when suspending and resuming.
If it fails to boot, wait a few minutes before power cycling so that anything waiting on timeouts might leave a log trace.  There could also be something slowing down the resume by waiting on a timeout, so try waiting 10 minutes or so before giving up on the resume and if it does resume, the logs should point you in the right direction.


How can I create something similar to an alias, that does properly expand to the initial command?

Bash programmable completion is something I haven't bothered much with myself, but I believe this will do what you want (NB assumes bash version 4.0 or newer. If you run Ubuntu 10.04 or newer, you're good.):

alias agi='apt-get install'
_agi_completion() {
    mapfile -t COMPREPLY < <(apt-cache --no-generate pkgnames "${COMP_WORDS[COMP_CWORD]}")
}
complete -F _agi_completion agi

Programmable Completion in bash's manual explains how it works, though it's quite complex.


For Display

If you go to

System Settings >Software and Updates > Additional Drivers you can see which all drivers are available for Nvidia.

Or you can go to Nvidia website and search for driver corresponding to your graphics card/

http://www.nvidia.com/Download/index.aspx


Shift + Alt consumes triple-key combinations

There is a lot of work being done about this issues. Layout change was really broken by the upgrade from 13.04 to 13.10, and although most of it has been fixed, there are still problems.

The general bug with links to all the others is here: https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1218322

There is an issue similar to the one you mentioned with  Ctrl+Shift here: https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1246656

Reading https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1218322/comments/407 seems that your problema can be fixed by adding the experimental PPA from attente. But there are conflicting reports around.

If you need help to add a PPA see https://askubuntu.com/a/40351/16395


(1) Check if fglrx is blacklisted. (This was my solution on my HP pavilion dv7 with a AMD/Ati Radeon HD 6770M)

To do that you can grep through all of the files in /etc/modprobe.d/:

grep fglrx /etc/modprobe.d/*

In my case this gives following output:

blacklist-local.conf:blacklist fglrx
fglrx.conf:# This file was installed by fglrx
fglrx.conf:alias fglrx fglrx

All I had to do is to edit /etc/modprobe.d/blacklist-local.conf file and comment out line with blacklist fglrx by inserting # in front of the line. So it looks like this now:

# blacklist fglrx
credits: Gumili(link)

(2) Reinstall fglrx

apt-get install fglrx fglrx-amdcccle fglrx-updates

(3) Re-run fglrx initiate

 amdconfig --initial -f

Here is the documentation this command

AMD Initial Configuration:
  --initial
        Generate a default AMD device section in the configuration file which
        is capable of loading the fglrx driver.
 --initial=dual-head
        Same as '--initial' but generate a basic dual head configuration file.
  --initial=check
        Identifies if the fglrx driver is present in configuration file.

(4) Reboot


How to execute script in different directory?

The leading dot in your command means "relative to the current directory". Remove it and it'll refer to "the file someScript in the directory /home/user/scripts:

/home/user/scripts/someScript

If you get "Permission denied", it's either because you do not have sufficient permissions to access the file in the directory of other users or because the file is not executable. To make it executable, run:

chmod +x /home/user/scripts/someScript


Enabling, disabling camera from terminal

Press Ctrl+Alt+T on your keyboard to open the terminal.
When it opens, run command to disable the camera until reboot:
sudo modprobe -r uvcvideo

You will be asked for your password, and after typing it, if there are no errors shown in the terminal, your webcam should be disabled.
To enable your webcam again, run:
sudo modprobe uvcvideo


Share Internet throught network interfaces

You must enable IP forwarding in your Linux guest.
In /etc/sysctl.conf put this:
net.ipv4.ip_forward = 1
Then issue this command:
sysctl -w
It should echo back the same line you put in the file.
Check if it was properly enabled:
sysctl net.ipv4.ip_forward
Should output 1 if enabled and 0 if disabled.
If required restart the networking service for changes to take effect.


Well the syntax of the command can help you

bwa samse [-n max_occ] [-f out.sam] [-r RG_line] <prefix> <in.sai> <in.fq>

Now let's look at your bash:

for j in {004,005}; do
    for i in {001..004}; do
        bwa samse -f $j_$i.sam $hg19 $j_$i.sai $j_$i.fastq

        # Do the other conversions from $j_$i.sam
        samtools view -bS $j_$i.sam > $j_$i.bam
        samtools mpileup -uf genome.fa $j_$i.bam | bcftools view -bvcg - > $j_$i.bcf
    done
done

I have no idea what $hg19 is.
It expects a "prefix" there so if you know what that means, substitute it in.

Anyway, that should generate 8× .sam files. You can either change the loop above so that after generating the .sam with bwa, you perform your other conversions, like so:

for j in {004,005}; do
    for i in {001..004}; do
        bwa samse -f $j_$i.sam $hg19 $j_$i.sai $j_$i.fastq

        # Do the other conversions from $j_$i.sam
        samtools view -bS $j_$i.sam > $j_$i.bam
        samtools mpileup -uf genome.fa $j_$i.bam | bcftools view -bvcg - > $j_$i.bcf
        # ... whatever is needed to convert bcf to vcf  ...
    done
done

Or you can do a separate loop(s): for f in *.sam; do command $f ...; done.


You can scan for open ports with nmap

nmap {ip addr}

Like so:

nmap 192.168.0.1

The output should be something like this:

Not shown: 998 closed ports
PORT    STATE SERVICE

8080/tcp  open  http

9020/tcp open  iss-realsecure


You probably need to chdir to the correct directory before calling the script. This way you can ensure what directory your script is "in" before calling the shell command.

$old_path = getcwd();
chdir('/my/path/');
$output = shell_exec('./script.sh var1 var2');
chdir($old_path);
echo "<pre>$output</pre>";


Yes, this is all very, very doable!  In fact, I've done it myself (as the lead architect behind the Orange Box).

The only gotcha, is that typically, the Orange Box is shipped from TranquilPC with each node's AMT (out of band power management system) hard coded to static IP addresses.  Node1 get's IP 10.14.4.11, Node2 get's IP 10.14.4.12, etc. to Node9 with 10.14.4.19.  That's on each individual Orange Box shipped.

What you'll want to do is instead configure each node in Orange Box #2 to have different static IPs, perhaps 10.14.4.20 - 10.14.4.29, and perhaps Orange Box #3 to have 10.14.4.30 - 10.14.4.39.

That'll take you a few minutes on each node to setup, and you'll need a keyboard/mouse/monitor, and you'll have to login to BIOS/AMT/MEBx to set this up.  But you only have to do it once per node.

Everything else should "just work".  MAAS and Juju can both handle hundreds of nodes easily.

A single ethernet cable will definitely connect them.  All nodes will be registered and boot off of Node0 on your first Orange Box (or wherever you have MAAS/Juju installed).

There will be 1 gigabit of bandwidth between the two gigabit switches.  You could, perhaps look into port aggregation on the D-Link switch (which is listening on 10.90.90.90), to combine a couple of ports.  Note that I have not, personally, tried this, but theoretically, it might work :-)


Can Mal/JavaJar-B infect an Ubuntu/Linux OS?

In theory, yes. In this case, the malware is 'just another program' running in java to steal data I believe. Malware goes cross platform!

In practice there's already a certain degree of hardening in browsers that's likely to mitigate the risk of this.

First and formost, unless you're clicking everything you see (and apparently its plausible that the developers in question explicitly trusted this site), firefox is adding click to play for plugins, so its slightly less likely that you'll have something just running willy nilly on your computer.

You can also mitigate the risks of this by not installing java (or installing it on a VM). Obviously this is slightly paranoid - you can instead disable the java plugin in your browser as twitter has suggested

These are often 0 day attacks so the ability of AV to catch them before they happen is limited. They're also more interested in user data, so, the system itself is safe. The best defense here is common sense.  They're also targetted attacks so unless you're an obvious target, well, there's less to fear. If you are, well, a good, sensible security policy will help as much as, or even more than AV - for example isolating sensitive stuff off the internet where possible, and/or having network monitoring in place to catch unusual things.


Duplicate options exporting NFS share (Ubuntu 16.04)

You needed to unexport the directory. Try this

sudo exportfs -u /storage
sudo exportfs -u /storage
sudo exportfs /storage

When you checked the export list again you'll probably not see any duplicates.


Logical volume back up and recovery using dd

Some more inform over logical volume, I try to play with thin-pool and cache

sudo lvs
  LV        VG  Attr       LSize   Pool      Origin Data%  Meta%  Move Log Cpy%Sync Convert
  cache     vg1 Cwi---C--- 100.00m
  cache1    vg1 Cwi---C--- 100.00m
  lv2       vg1 owi-aotz-- 500.00m thin-pool        4.97
  lv2_snap   vg1 swi-I-s--- 100.00m           lv2    100.00
  lv3       vg1 Vwi-a-tz-- 500.00m thin-pool        0.00
  lv4       vg1 -wi-a----- 500.00m
  lvol0     vg1 -wi-a-----   4.00m
  lvol2     vg1 Cwi---C--- 100.00m
  thin-pool vg1 twi-aotz-- 500.00m                  4.97   11.23

lv convert also failed with below:

sudo lvconvert --merge /dev/vg1/lv2_snap
  Unable to merge invalidated snapshot LV "lv2_snap".

Here's what I found, I can't restore to a snapshot logical volume, I have to create a new logical volume, then restore it.

sudo lvcreate -L 500M -n lv5 vg1
  WARNING: Sum of all thin volume sizes (1000.00 MiB) exceeds the size of thin pools (no free space in volume group).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "lv5" created.

$sudo dd if=lv2snap.dd of=/dev/vg1/lv5
sudo mount /dev/1024000+0 records in
1024000+0 records out
524288000 bytes (524 MB, 500 MiB) copied, 17.9297 s, 29.2 MB/s

$sudo mount /dev/vg1/lv5 snap_recover/


Can I use GNOME 3 themes and icons with Unity too?

First, install GNOME Tweak Tool from the Ubuntu Software Center.

Once you download a theme or icon set you'll have to extract the theme or icon set and put it in the right folder. Use gksu nautilus to navigate to the downloaded file then right-click to extract the theme's tar or zip. Then, put that extracted folder in /usr/share/themes if it's a theme or /usr/share/icons if it's an icon set.  After that, open GNOME Tweak Tool and go from there.


Upgraded and digikam ignores most folders

Turns out that digikam saves the full path to the photos directory, not just relative to your home directory.  I had to correct this in a few places as I had changed username when moving laptops, so the full path to the photos had changed from /home/user1/Photos to /home/user2/Photos.

First I had to edit the text file digikamrc - gedit ~/.kde/share/config/digikamrc and search for user1.  The settings were called "Database Name" and "Database Name Thumbnails".

Then I had to edit some settings in the sqlite file.  I did this by using the sqlitebrowser GUI app which allowed me to open digikam4.db, choose each table one by one, and then edit the contents by double-clicking on a cell in a table.  The tables that needed updating were:

AlbumRoots - this had the full path to the albums in the identifier column.  I had to change volumeid:?path=%2Fhome%2Fuser1%2FPhotos to volumeid:?path=%2Fhome%2Fuser2%2FPhotos and similar
Tags - the iconkde column has some entries where the tag image is a photo, which is saved as the full path to the photo, so they needed their paths updating.


why did my old history and extensions appear in a fresh install of chrome?

None of those commands removes any files in your $HOME directory.

When you apt-get remove apt will leave the (system) configuration files in /etc in place. When you apt-get purge apt will remove the (system) configuration files in /etc as well.

remove
       remove is identical to install except that packages are removed
       instead of installed. Note the removing a package leaves its
       configuration files in system. If a plus sign is appended to the
       package name (with no intervening space), the identified package
       will be installed instead of removed.

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

See http://manpages.ubuntu.com/manpages/jaunty/man8/apt-get.8.html for details

Neither option will remove configuration files in your home ($HOME) directory, those have to be removed manually.

Thus when you re-installed it reused all the files you already have.

To remove all that additional stuff run

rm -rf ~/.config/google-chrome


whenever i am trying to open firefox, it shows a massage " firefox is already open but not responding"

Check the Firefox profile directory .mozilla/firefox/<profile> in your home directory and see if there is a file named .parentlock. Removing it should allow you to open Firefox again.


You can set a disk to spin down when it is not accessed for a certain period of time

You need to edit /etc/hdparm.conf

try an entry along the lines of

/dev/disk/by-id/disk_id {
    spindown_time = 36
}

The spindown time is in blocks of 5 seconds, so 36 means spindown after 3 minutes on inactivity.
disk_id is the id of the disk you want to spin down (ls -l /dev/disk/by-id to find the right one)


Your problem may be related to Ubuntu not detecting all your speakers correctly. I solved all sound related problems on my Zenbook (UX390UA) by editing:

sudo nano /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common

and changing this section:

[Element PCM]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

Into this:

[Element Master]
switch = mute
volume = ignore

[Element PCM]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right

[Element LFE]
switch = mute
volume = ignore

save (with Ctrl+x) and restart pulse audio:

pulseaudio -k

Source: Ubuntu 16.10 on Asus Zenbook 3 UX390 - Ubuntu Forums

PS: This also works on Asus Zenbook 3 UX490 and Asus Zenbook Pro UX550VE


Editing with nano, Alt is caught by the window menus, how can I fix that?

The terminal emulation handles that already. If a key combination with ALT is used by the terminal itself, you can just substitute ALT with ESC. For example, if you want to count characters, words and lines in nano and ALT+D is used by the terminal, just type ESC+D.


How to replace Lohit Bengali font in Ubuntu 18.04 LTS?

You have system-wide default fonts and what you are seeing is the Bangla glyphs of those fonts. You can change it in Tweaks. Here is my setup,


Why cant apt-get install the i386 version of any package?

This normally is because you don't have enabled multiarch and updated your package lists. This can be achieved easily:

sudo dpkg --add-architecture i386
sudo apt-get update

The first tells dpkg that we like to support the i386 binaries in our system, APT query this and starts downloading not only the amd64 package list but also the i386. I'm not sure why this isn't the default in Ubuntu (in Debian it isn't, but Debian supports way more architectures) but that's why.


Until I read your last sentence, I thought this sounded like your GRUB installation had gone south; however, if your MBR partition table is showing partitions that aren't present in the GUID Partition Table (GPT), then that sounds like some serious partition table corruption. To diagnose this, both GPT and MBR data is required. You can get this in one go from the Boot Info Script. Run it from an emergency Linux boot and post a link to the RESULTS.txt file that it produces. Be aware that this is likely to be a highly system-specific problem.

OTOH, if I've misunderstood, it could be that you need to re-install GRUB on the computer, or install another boot loader. I generally recommend using an EFI boot loader on Macs, especially if they don't boot Windows, since this enables you to do without all the flakiness associated with hybrid MBR configurations. OTOH, some models don't do well booting Linux in EFI mode because Linux doesn't correctly activate all their hardware (sometimes including video hardware). The only way to know for sure is to try it. I've written a Web page on EFI boot loaders for Linux, so you can peruse it and decide which one you want to install. Since rEFIt is already installed, you should just be able to drop the files into a subdirectory of the EFI directory on your ESP or the OS X boot drive (as in EFI/elilo or EFI/grub) and rEFIt should pick them up. (An exception is if you want to use the Linux kernel's EFI stub loader; for that, you should replace rEFIt with rEFInd.)


Type this into your terminal: sudo cvt 1366 768. It will output something similar to:

# 1366x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1366x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync

Yours may be different than what I have, so copy everything after "Modeline" from your terminal.

Now paste in what you copied into this command, e.g.
sudo xrandr --newmode "1366x768_60.00"   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync

The final step is to add the new resolution to the VGA1: sudo xrandr --addmode VGA1 1366x768_60.00

That should give you the resolution you want for the TV.

To keep the settings after restart use the answer here with your settings and you won't have to redo it.


The libreoffice team have not updated their PPA with any newer version of libreoffice beyond 3.3.2 for maverick and natty.  I note (at the time of writing this) they have attempted to produce a build of 3.4.1 for Oneiric.

Reading the oneiric blueprint - the libreoffice will be updated for lucid/maverick/natty when oneiric has been successfully tested/built.  This will either be through the PPA or through the standard backports repository.

Whilst we wait - see this AU Question as a guide on how to update to the latest version of Libreoffice.


Ubuntu 18 - HTTP2 enabled but serving http 1.1

Curl is responding with HTTP/2, as is the keycdn test. So your server is using HTTP/2 but your browser is not.

This suggests one of the following:

You are using anti-virus software which is intercepting the HTTP connection and downgrading it to HTTP/1.1. You can often turn off HTTPS scanning in your AV programs settings to avoid this.
You are using a blacklisted cipher that is not allowed to be used for HTTP/2. Some browsers (e.g. Chrome) enforce this and will use HTTP/1.1 if stronger ciphers are not configured in your server, though I think others (Firefox maybe?) don’t so you could check with that to see if that’s the issue. Or use the SSL Labs tool to see what ciphers will be used.
You’ve cached content or using a service worker so Dev Tools is not reporting the protocol your site supports.


Is it possible to have CUDA 8.0 installed and still be able to use the graphics card for displaying desktop?

CUDA support for background computation is included with nVidia proprietary drivers, at least since 2014 (possibly longer ago than that).  I run background CUDA tasks (Einstein@Home GPU tasks) 24/7 on my desktop machine, and don't see it interfering in any way with normal use of the machine for web browsing, word processing, even graphics-intensive games (Path of Exile, for one).

I don't recall doing anything special, other than having a video card that supports one or more CUDA cores and up to date nVidia drivers.


Do Apple Thunderbolt displays work with Ubuntu 14.04 on 11,2 Macbook Pros with Iris graphics

As of mid-2015, probably not - although I haven't personally tested it. Andreas Noever wrote the initial kernel support for Thunderbolt and his version 3 features are listed here

I have a 11,1 MacBook Pro with Iris Graphics running Ubuntu 15.04 that supports DVI monitors via a DisplayPort (DP) adapter - but this setup only uses the Thunderbolt port as a DP port i.e. there is no PCIe transmission being muxed.


Normalize volume of MPEG-4 AAC tunes purchased from iTunes?

What wasn't working for you?

Having just tried this out, I can do this in (current) Quod Libet on an AAC (.m4a) album, using the Replay Gain Plugin, and confirming the RG tags look OK and sound about right when enabling / disabling the RG on playback (as it happens I wrote some of that code too). They are marked as read-only though, but this doesn't bother me.


lenovo ideapad 320 suddenly stopped working in ubuntu 18.04

Maybe it is not a bug, maybe it is a feature... ;^)
Check the documentation from supplier for possible hot key or otherwise disabling of the touchpad. In that other OS this is common to have the touchpad disabled for when typing. Maybe you now have that feature enabled by accident. Just my 2c worth. Check your BIOS settings as well for such.


It was a bug in BIOS. BIOS update from http://www.lenovo.com fixed it.


How to install packages of 16.04 to 17.10

Installing the binary (.deb) package of libpcl-dev from the 16.04 repositories on a 17.10 system is difficult, if not impossible, due to its many dependencies, some of which have to be installed from 16.04 and may conflict with packages already installed from 17.10.

However, building the source package from 16.04 on a 17.10 system is possible, because all the build dependencies are available in 17.10.

First make a directory to work in

mkdir ~/libpcl
cd ~/libpcl

Get the source package

wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pcl/pcl_1.7.2.orig.tar.gz
tar xf pcl_1.7.2.orig.tar.gz
cd pcl-pcl-1.7.2
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pcl/pcl_1.7.2-14build1.debian.tar.xz -O - | tar xJ
debuild

Probably when you run debuild you will get a "command not found" telling you to install devscripts; install it and run debuild again. Now it will complain that some build dependencies are missing; install them and run debuild again, and now the build should be successful (errors about debsign can be ignored). You will have some .debs in your ~/libpcl directory, which you can install as usual.

Warning: if some bugs, including security issues, are found in this version of PCL and a fixed version is released in 16.04, you will not automatically get it; instead you must repeat the above process with the new source package.


Beaglebone black with Debian OS on Ubuntu 14.04 in Virtualbox VM

I don't see that you are connecting your BBB(Beaglebone Black) to the internet "eth0" card is provided with a dhcp client by default.

The "usb0" card is a virtual card that help you to connect your BBB to a PC with any OS, you can allways connect your BB to windows after installing drivers and you can simply use putty to reach the terminal of BBB, if your are sure about using Ubuntu you can install it into your PC or you should connect your BBB to the internet using Ethernet, also you can use any standard Wifi card to make BBB online.

I'll be glad for any help ThanKs.


Ubuntu installation isn't working on Dell XPS 13 laptop running Windows 10

I just needed to switch to AHCI mode in the BIOS of the laptop, so the installer could detect my SSD. Everything worked fine afterwards for me.


Laptop touchpad triggering 3-finger gestures randomly

I'm not able to answer all of your questions, but I can answer #3. If you're using a touchpad on your laptop, you can click on the Power button (upper right-hand corner), and choose "System Settings". Then, click on the Mouse and Touchpad option. In there, click the tab for touchpad, and uncheck the "Enable mouse clicks" option. You can also set the scrolling to Disabled, or Edge Scrolling.

As for the other two questions, you can always try updating to see if that fixes the issues. If you open Software Center, you can search for Synaptiks touchpad management, or touchpad. Install the appropriate application (synaptiks is for KDE, but it should work in Unity as well), and configure the touchpad.

Hope this helps you, and have a great weekend:)
Patrick.


Why node Failed commissioning while setting up MAAS?

The big issue that I'm having is similar, the default commissioning timeout is set to 10 minutes.  In theory, BEFORE running the "juju bootstrap" command you can alter this "bootstrap-timeout" to be something like 1800 (30 minutes) instead but this doesn't seem to be configurable after you've run the bootstrap command.

The documents suggest that you can just edit the environments.yaml file and it will adhere to your suggested update but I'm not seeing that actually happen.


how can I modify binfmt_misc kernel module to make postscript files system executeable?

Adapting the example from the linked U&L post works fine enough for me:

$ echo ':postscript:M::%!PS::/usr/bin/gs:'  | sudo tee /proc/sys/fs/binfmt_misc/register
:postscript:M::%!PS::/usr/bin/gs:
$ cat > foo.ps
%!PS
/Times findfont 72 scalefont setfont
306 396 translate % move center to here

4{
         2 2 moveto
        90 rotate
        (H@x0rz) true charpath stroke

}repeat
showpage
$ chmod +x foo.ps
$ ./foo.ps
GPL Ghostscript 9.25 (2018-09-13)
Copyright (C) 2018 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Querying operating system for font files...
Can't find (or can't open) font file /usr/share/ghostscript/9.25/Resource/Font/Times.
Can't find (or can't open) font file Times.
Didn't find this font on the system!
Substituting font Times-Roman for Times.
Loading NimbusRoman-Regular font from /usr/share/ghostscript/9.25/Resource/Font/NimbusRoman-Regular... 4646060 3103684 11124488 9679005 1 done.
>>showpage, press <return> to continue<<

Opens up a ps file with H@x0rz written in various orientations.


How can I calibrate the touch screen and stylus on HP Pavillion TX 2500?

You could go an grab the xinput calibrator which will allow you to get the calibration values for the touchscreen. After that you can set those values using xinput.

You can acquire a full list of devices with xinput list, a list of all properties of the device with xinput list-props $device_id. There should be a property like Evdev Axis Calibration which you can set like this:

xinput set-prop 12 "Evdev Axis Calibration" 0 4132 0 4135


You can install ubuntu by downloading an ISO image from ubuntu homepage. Image can be put on usb disk with programs like unetbootin and then you can install (or just try) ubuntu directly from usb.

You don't need any drivers for ubuntu except some proprietary drivers (like vga and wlan) which you can install with "Additional Drivers" program that you can run on freshly installed ubuntu system.

AutoCAD and any other software that is made for windows can't be installed on ubuntu or any other linux distribution, but there is a program (Wine) that emulates windows system and you can install some windows software with it. But this kind of software usage can be really buggy and sometimes it can't work.
Other option is to install Windows in virtual machine in Ubuntu.


You really don't want to download the source code for all of Ubuntu. That's millions and millions of pages of text – literally. Instead, you'll get the source code for specific packages you're interested in, and that's very easy.

Ubuntu is written in lots and lots of different languages. C, C++, Vala and Python are highly popular, but all kinds of languages are used. Getting the source code for a specific package is very easy. As an example, let's download the source code for the Ubuntu One control panel. Open a terminal and run apt-get source ubuntuone-control-panel

You now have the source code for Ubuntu One Control Panel in a directory called ubuntuone-control-panel-VERSION_NUMBER.

Ready to explore? :)


Need proper driver for IBM x206m xserver graphics chip

Some searching revealed that ES1000 = RV100 = Radeon 7000.

So use the AMD Catalyst driver and you can find it here with installation instructions: http://support.amd.com/en-us/download/desktop?os=Linux+x86

Then again ... when talking ATI the only choice is the Catalyst driver ;)


Try that :
In Pavucontrol, "output device" tab:
when headphones are  connected , you logically  see "headphones" in output port:
  but try to switch port to "speakers"   .

This worked  recently for me on a HP 820 g1.
Real fix  is to use hdajackretask to modify bad  audio feed to  headphone,  but it depends on your hardware .


lines starts with # and integers in .bash_history

They are timestamps. From man bash

       HISTTIMEFORMAT
              If  this  variable  is  set and not null, its value is used as a
              format string for strftime(3) to print the time stamp associated
              with  each  history  entry displayed by the history builtin.  If
              this variable is set, time stamps are  written  to  the  history
              file  so they may be preserved across shell sessions.  This uses
              the history comment character  to  distinguish  timestamps  from
              other history lines.

The integer value is an epoch time - you can convert it to human readable time using date for example ex.

$ date -d @1582696021
Wed Feb 26 00:47:01 EST 2020


After a lot of digging, i found this setxkbmap -option caps:hyper


Can I restart X without having to close all applications in my current session?

You can't.

What you can do is start a new X-session on a different tty (screen) which should leave the apps running in the first session untouched. (This is how some display managers [e.g., KDM] allow multiple log-ins of different users using the the same physical display/keyboard.)

Source: http://www.linuxquestions.org/questions/linux-desktop-74/how-to-restart-x-without-having-to-close-connected-applications-689430/


Open ssh in terminal by clicking on "ssh://user@host" links in browser

No, there is no package for this because there is already support for it, you just have to enable it.

To enable it in a gnome desktop: (How to open ssh://username@hostname link)

gconftool-2 --set --type=bool /desktop/gnome/url-handlers/ssh/enabled true
gconftool-2 --set --type=string /desktop/gnome/url-handlers/ssh/command 'gnome-terminal -e "%s"'
gconftool-2 --set --type=bool /desktop/gnome/url-handlers/ssh/needs_terminal false

My script to install the handler application:

#!/bin/bash
# We need root to install
if [ "$(id -u)" != "0" ]; then
  echo "This script must be run as root" 1>&2
  exit 1
fi

# In case file exists
if [ -f "/usr/local/bin/ssh-url-handler" ]
then
  echo "Found an old install, moving to ssh-url-handler.old"
  mv /usr/local/bin/ssh-url-handler /usr/local/bin/ssh-url-handler.old
fi

# Install handler file
touch /usr/local/bin/ssh-url-handler
echo '#!/bin/sh' >> /usr/local/bin/ssh-url-handler
echo 'd=${1#ssh://}' >> /usr/local/bin/ssh-url-handler
echo 'x-terminal-emulator -x bash -c "ssh $d" &' >> /usr/local/bin/ssh-url-handler
chmod a+x /usr/local/bin/ssh-url-handler

# Check that it is there
type ssh-url-handler >/dev/null 2>&1 || echo "Warning: the ssh-url-handler could not be found! Please check that /usr/local/bin is in the PATH"

# Now for the desktop piece:
if [ -f "/usr/share/applications/ssh-url-handler.desktop" ]
then
  echo "Found an old desktop handler, moving to .old"
  mv /usr/share/applications/ssh-url-handler.desktop /usr/share/applications/ssh-url-handler.desktop.old
fi

touch /usr/share/applications/ssh-url-handler.desktop
echo "[Desktop Entry]" >> /usr/share/applications/ssh-url-handler.desktop
echo "Type=Application" >> /usr/share/applications/ssh-url-handler.desktop
echo "Name=SSH URL Handler" >> /usr/share/applications/ssh-url-handler.desktop
echo "Exec=ssh-url-handler %u" >> /usr/share/applications/ssh-url-handler.desktop
echo "Icon=utilities-terminal" >> /usr/share/applications/ssh-url-handler.desktop
echo "StartupNotify=false" >> /usr/share/applications/ssh-url-handler.desktop
echo "MimeType=x-scheme-handler/ssh;" >> /usr/share/applications/ssh-url-handler.desktop
chmod a+x /usr/share/applications/ssh-url-handler.desktop

Just drop that into the install.sh of any debian package. You can easily do this using https://github.com/jordansissel/fpm/wiki to make your own package and distribute that.


Script fails to parse arithmetic comparison with double bracket

((...)) is not available in sh shell you are attempting to run your script with that in sh ./my-script.sh, use bash ./my-script.sh instead.


Screen Resolution Issue on Ubuntu VM running in VMware Workstation on Win7 host

After 13 months of struggle I have finally fixed my issue.

First make sure that you are running the "VMware Tools" properly on your VM, and I did that by follow the instructions here!.

Then I fire up the Terminal (Ctrl + Alt + T) and enter the following commands

(Note -> References to these 5 display command xrandr are a plenty here on this site, but without resolution to my problem. However I must mention them again here for proper visibility for people facing similar problem like me. This will save them the trouble of visiting other pages for completing a phase of the resolution. So here it goes..)

xrandr -q

From the output of the above command, check which output is connected. For me it was Virtual1

Then type the following command  cvt followed by your desired resolution. Please give attention to spaces in the following command. For me it was

cvt 1920 1080

This generated the a output from which we need to copy (Ctrl+Shift+C) text after the word "Modeline" till the end and paste it (Ctrl+Shift+V) into the below code. Make sure to delete the _60.00 from between the quotes, before you run the code. For me  it was like this

xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088
1120 -hsync +vsync

Observe I have removed the _60.00 from the original "1920x1080_60.00". Next take the screen resolution from between the  quotes and enter into the following code

xrandr --addmode Virtual1 1920x1080

After this add the following command

xrandr --output Virtual1 --mode 1920x1080

This should bring your screen resolution in Ubuntu to the desired one (1920x1080)

At this point if you restart then the new resolution will not be saved. So I went back to the System Setting -> Display. I now see that the desired resolution 1920x1080(16:9), (which was previously unavailable) has now become available in the Resolution drop down.
Now when I select the resolution here and click on Apply, it retains the changes, even after restart.

So this way you don't have to make and custom resolution file and put it in startup items. i would like to say thanks to @DevRobot for this suggestions and efforts (he was the only one to do so).


Can Canonical Landscape be used with Ubuntu-derived distros?

You might be able to find landscape-client for mint, however, do you really want to?  The system is able to find and detect packages that are needed among other tasks.  But without using official ubuntu repos, would you want Ubuntu telling you what you should install?


Make sure to reboot your system, I just had that issue installing logging out. A full reboot fixed it for me.


Flash Player does not install on Ubuntu Web Browser

What do you mean with 'can not install'? The normal install command would be

sudo apt-get install flashplugin-installer

If that isn't what you are searching for then could you please provide more information about your problem? Also this might be helpful. Regards, ADDB


My solution to that occasional issue was to replace Transmission with Deluge, which is more featureful and seems to be more solid.


Brightness control command on "startup Applications" is not working

install indicator-brightness 'bar for brightness control'

$ sudo add-apt-repository ppa:indicator-brightness/ppa
$ sudo apt-get update
$ sudo apt-get install indicator-brightness

or

make it start on boot
install
$ sudo apt-get install xbacklight

open the 'Startup Applications' then and add a 'new startup item' with the command:

  xbacklight -set 40

40 is the brightness lvl
from 1 => 100

 don't use them both


MySQL: Suddenly connection error without making any changes

I faced that similar problem using lamp , check if you may have more than two MySQL path like in

Find all the other mysql installed in your system

whereis mysql

mysql: /opt/lampp/bin/mysql /opt/lampp/bin/mysql.server /usr/share/man/man1/mysql.1.gz

Now if in you're system two MySQL if overlapping then remove others and keep only one MySQL installed by lamp

sudo rm -rf /etc/mysql

Here is the link I found for apache2 i did the same with mysql and it's working
http://xmodulo.com/how-to-uninstall-and-remove-apache2-on-ubuntu-debian.html

Finally stop all the MySQL existing service running

sudo service mysql stop
sudo /etc/init.d/apache2 stop
sudo /opt/lampp/lampp start


Virtualhost document root access previous folder

According to Apache documentation - Files Outside the DocumentRoot:

  There are frequently circumstances where it is necessary to allow web
  access to parts of the filesystem that are not strictly underneath the
  DocumentRoot. Apache offers several different ways to accomplish this.
  On Unix systems, symbolic links can bring other parts of the
  filesystem under the DocumentRoot. For security reasons, Apache will
  follow symbolic links only if the Options setting for the relevant
  directory includes FollowSymLinks or SymLinksIfOwnerMatch.

  Alternatively, the Alias directive will map any part of the filesystem
  into the web space. For example, with

      Alias /docs /var/web

  the URL http://www.example.com/docs/dir/file.html will be served from
  /var/web/dir/file.html.

So, in your case you could either follow Jo-Erlend Schinstad suggestion and create a simbolic link to "parent file" or try to define Alias directive.

For example you could add:

 Alias /file.html /var/www/banking/file.html
 <Directory /var/www/banking>
    Require all granted
 </Directory>

A request for https://www.zbux.com/file.html would cause the server to return the file /var/www/banking/file.html.

Here is mod_alias manual.