Can X.org Load Two Different Drivers? (Triple-Head Setup with Intel and NVidia Card)

Yes, X can use multiple drivers.  Yours is a very similar setup as what I have.  I have an NVIDIA 9800 GT with two monitors connected and an 2nd generation intel card with a single monitor.

I don't see any problems with your xorg.conf.  I suspect that you will need to create an xorg.conf if only to tell X to use both nvidia and intel drivers.  My xorg.conf looks very much like yours; I have three monitor and screen sections because the nvidia card has two monitors, but I'm pretty sure that X is ignoring those sections.

First, you will want to make sure that xinerama is disabled in xorg.conf (maybe not necessary).

xorg.conf:

Section "ServerFlags"
    Option  "xinerama"  "off"
EndSection

When you do a xrandr --listproviders you should see both cards.

cody@IRIS> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x290 cap: 0x1, Source Output crtcs: 2 outputs: 5 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x48 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 3 outputs: 6 associated providers: 1 name:Intel

If you don't see both cards, you probably are missing a driver. (But OP says console is using one and X is using the other, so they probably both work)

You should be able to use xrandr --setprovideroutputsource to add the Intel ports to the list shown by your xrandr | grep conn
In my case I use the names given by --listproviders:

xrandr --setprovideroutputsource Intel NVIDIA-0

If that doesn't add the Intel ports, it may be already connected in a way you can't see it.  Disconnect it with:

xrandr --setprovideroutputsource Intel 0x0

Then try to connect it again:

xrandr --setprovideroutputsource Intel NVIDIA-0

All of the output ports should be shown now.  And you should be able to add a display with the gnome display settings or with xrandr.

So when I finally got my intel display working, the nvidia displays decided that they needed to pan when I tried to move the mouse to the third display.  It would now show the third monitor's content both on the third and second monitor.  And the second's original content slid over to the first monitor with the first's content off-screen.  It would slide back to normal if I tried to move the cursor over to the first monitor again.

I finally fixed that with another xrandr call:

xrandr --output DVI-I-2 --panning 3840x1200+1680+0/1920x1200+1680+0/0/0/0/0

This call requires knowledge of the physical screen geometry and logical layout.  I have a 1680x1050 monitor, a 1920x1200, and a 1920x1080.  They are in that order from left-to-right.  The right most is connected to the intel card.

This call is setting the panning region on the middle monitor.  --output DVI-I-2 happens to be the port connected to my middle monitor.

The first four numbers set the panning region to the total of the middle and right screens. 3840x1200 as width and height and +1680+0 to offset the region to start at top-left on the middle monitor. (Apparently [0,0] is at the top-left of the left monitor)

The next 4 numbers are the cursor tracking region.  I set this to only track the cursor on the middle screen.  This way when the cursor leaves this screen, it doesn't try to shift the image to follow the cursor.

The last 4 numbers define a border around the panning region.  I'm just using the default values here.

Versions of related software I was using:

xorg-server-1.17.4
gnome-3.18.0
xrandr-1.4.3


The answer to your either/or question is "both". Yes, you'll have to mount each subvolume. Each subvolume behaves like a normal file system, so they will appear in mount points like /etc.

There are a few advantages to that idea. For instance, you could make your MySQL database directory into a subvolume, which would enable you to take snapshots for use with backups. You could also choose to make that directory into a RAID1, so that if one disk failed, your database would still be intact. Another is using a subvolume for /etc so that you could always reverse any kind of system wide configuration changes. Using a subvolume for /home/username would potentially allow each user to have a time machine, though probably in a much more flexible way than what Apple provides in their system.

And of course, one benefit of having a subvolume for homes and another for the root is the ability to reverse an upgrade. For instance, you upgrade from 12.04 to 12.10 very early, discover that it's a tad too buggy after the first month, so you just un-upgrade your operating system. I haven't tried that myself, but it should work just as good as keeping your home and reinstalling the previous system, except it would take about a second insted of an hour. :)


I am not able to open a .jar file in Ubuntu 18.04.4

The jar file must have MANIFEST file in it which tells the compiler which class has the main method. Since this file/information is missing in the jar file, you need to know the fully qualified name of this class, e.g.
java -cp app.jar com.somepackage.SomeClass

We can find this special class even if we do not have the source files.
e.g. Download a helloworld file without the main manifest attribute from java2s.com.
mkdir hello && mv helloworld-2.2.jar.zip hello
unzip helloworld-2.2.jar.zip
unzip helloworld-2-2.jar
grep -nr main .

This' output
Binary file ./org/glassfish/jersey/examples/helloworld/App.class matches

Here we know which file contains the main method. To get the "Fully Qualified Class Name", we replace '/'s with '.'s. Now we have two options

We pass the class name to java command.
java -cp helloworld-2.2.jar org.glassfish.jersey.examples.helloworld.App

Install default-jdk, and update the jar manifest file with this class name

jar -uvfe helloworld-2.2.jar org.glassfish.jersey.examples.helloworld.App
java -jar helloworld-2.2.jar


Upgrade console ubuntu 14.04.3 LTS to 15.10

You need to edit the following file

sudo vi /etc/update-manager/release-upgrades

and change from
Prompt=lts to Prompt=normal

This will allow you to upgrade to the next release which is 14.10 and then you can rerun the command to upgrade to the next.


What changes were made that resulted in GTK3 Themes  broken?

changes in the Gtk.CssProvider and various other changes are at fault:  See the answer to this question:  No Items show in dash of gnome-shell when using "Axiom" Theme?  Gtk3 is currently in a state of flux so Gtk3 styles written for gnome-shell 3.2 (which is what most people were using a few months ago) are not current for 3.3 and 3.4  Unfortunately that means a lot of styles are unavailable or requires fixing in order to work.  My recommendation is to compare a working 3.4 style like malys unisex with any styles from 3.2 you wish to use and see where changes need to be made.


Intermittent connection issues on Netgear EX6150 Extender in Ubuntu 18.04

A WiFi Wireless Extender basically uses the maximum speed of your wireless extension at the point the Wireless Extender is installed.

That means: a Wireless extender will pick up the existing WiFi signal where it is installed and re-broadcast it from there.

So if your original is in the basement (-1) and you installed the WiFi Wireless Extender in your bedroom (+2) it will rebroadcast the weak signal it is receiving on +2. So to improve performance:

move the Wireless extender to the ground floor (0) or the first floor (+1)

OR
Get a Wireless Access Point instead of a Wireless Extender and use a decent network cable or PowerLine Adapter to re-broadcast a 1Gbps or 100-333Mbps connection respectively.

This also makes this question off-topic on Ask Ubuntu as it has no relation to Ubuntu itself.


It sounds like you've already installed Ubuntu in BIOS mode. If I'm mistaken, you can either do so or try my first suggestion and/or a rEFInd installation to boot the installer in EFI mode to do the installation directly in that way.

First, try disabling Secure Boot and booting the Ubuntu installer in EFI mode. Secure Boot support is brand-new in Ubuntu 12.10, and it may yet be buggy, so eliminating Secure Boot as a possible troublemaker is worth trying.

If that works, you can boot the Ubuntu disc into live CD mode and use it to install the EFI boot loader of your choice. Ubuntu 12.10 uses GRUB 2, but several others are available, and you may prefer one of them. You could try something similar with the System Rescue CD, which supports an EFI-mode boot.

If you can't seem to get Ubuntu or System Rescue CD booted in this way, try installing my rEFInd boot manager from within Windows. (You'll need to either disable Secure Boot or jump through some extra hoops to get it working, though.) A basic installation with no extra changes will present a menu with Windows and nothing else; but you can enable a boot to Ubuntu in either of two ways:

You can edit the refind.conf file, uncomment the scanfor line, and add hdbios to the list of options. This will enable scanning for, and booting to, BIOS-based OSes, such as your Ubuntu installation. This option works with many, but not all, UEFI-based PCs.
You can install the ext4fs driver that comes with rEFInd 0.6.0. This will enable rEFInd to search for Linux kernels and launch them from your regular installation. You'll also need to create a refind_linux.conf file and put it in your Linux /boot directory, though; without it, the kernel will launch but it won't be able to find your root filesystem. You could do a one-time boot by selecting the Linux icon, hitting the Insert key a couple of times to bring up the editor, and adding ro root=/dev/sda3 (or whatever the Linux root partition's identifier is) to the boot options. Once Linux is up, running the mkrlconf.sh script that comes with rEFInd should generate a suitable configuration file to obviate the need for manually entering this option.

The last I heard, none of the BSDs had a working EFI-mode boot loader. If I'm misinformed or if this has changed recently, you should be able to install BSD and select it with rEFInd. If the BSDs are still behind the EFI times, though, you'll need to use either your firmware's selection tool or rEFInd to switch between Windows and BSD; AFAIK, no other boot program can switch BIOS/EFI boot modes on UEFI-based PCs. (rEFIt can do this on Macs, though.)


Can I enable one-click-uninstall on in the Cinnamon menu?

what the cinnamon devs do is create a link to this feature, because the feature depend of the distro... So this feature need an specific support on your current distro (in this case ubuntu).
Is relatively easy add this feature to ubuntu if you want to use this with synaptic (thats will be copy the mint implementation to the right place on ubuntu), but if you don't want to use synaptic then you need use the feature with the ubuntu software center and this will be more difficult... Anyway there are an alternative implementation if you want to use this feature (and also with more features like search for packages or install a packages). You need to change the default cinnamon menu and use instead the Configurable Menu...

Please see that Configurable Menu is not an official Menu and the alternative implementation included on Configurable Menu is also not an official implementation, so use this as your risk... Any way i'm the author.

http://cinnamon-spices.linuxmint.com/applets/view/171

Last version:
https://github.com/lestcape/Configurable-Menu


The package libpython3.6-stdlib needs to be reinstalled, but I can't find an archive for it

You can find any official package available for Ubuntu on packages.ubuntu.com. For your specific package, the result can be found here:

https://packages.ubuntu.com/search?keywords=libpython3.6-stdlib&searchon=names&suite=all&section=all

As the search result shows, this package is available for artful, bionic and cosmic. You can choose according to the version of Ubuntu that you are using.


Is it safe to remove python2 in ubuntu 18.04 LTS

See for yourself safely using apt's --simulate flag:

$ apt remove python --simulate

Read the proposed removals very carefully for applications and components that you don't want to remove.

If it turns out, after removing Py2, that you needed it after all...then it's trivial to reinstall.

WARNING: This answer applies only to Ubuntu 18.04 and newer. Earlier releases of Ubuntu have key components that depend upon Py2 (like apt). You may be very, very sorry if you remove Py2 in earlier releases of Ubuntu.


Ubuntu 12.04 not booting after upgrade error drm:gen6_santiize_pm

I do not know which Kernel you are using. I had the same problem with 3.2.0-58-generic #88 and I recently updated it to 3.2.0-61 (the latest one available from the update manager) but since this problem appears when I didn't reboot since long time I am not sure if this solved the problem (I guess it didn't)

I have found that in principle 3.3.6 fixed this problem but I am not sure how to do it with Ubuntu 12.04 or if it is safe. Have a look here:

https://bugs.launchpad.net/ubuntu/+source/gnome-nettool/+bug/1168467


pngquant 2.0 for ubuntu 12.04 not available

You can install pngquant 2.0 in ubuntu 12.04 using ppa:danmbox/ppa Repository:

sudo add-apt-repository ppa:danmbox/ppa

sudo apt-get update

sudo apt-get install pngquant


Assign persistent MIDI Port to USB device?

You can try to make the card ID permanent:

options snd-usb-audio index=2 vid=0x1234 pid=0x5678

(If you have other USB audio devices, you have to add more options to ensure that the other devices do not occupy card index 2 first.)


In principle, you should be able to do it in a terminal emulator with upower. Firstly, find the device name:

[romano:~] % upower -e
/org/freedesktop/UPower/devices/tablet_wacom_battery_1
/org/freedesktop/UPower/devices/DisplayDevice

and then, inquire:

[romano:~] % upower -i /org/freedesktop/UPower/devices/tablet_wacom_battery_1
  native-path:          wacom_battery_1
  model:                Wacom Intuos PT S (WL)
  power supply:         no
  updated:              Wed 27 Feb 2019 18:10:02 CET (77 seconds ago)
  has history:          yes
  has statistics:       yes
  tablet
    warning-level:       none
    percentage:          100%
    icon-name:          'battery-full-charged-symbolic'

...I can confirm it's working (be aware that the name of the battery can change):

[romano:~] % upower -i /org/freedesktop/UPower/devices/tablet_wacom_battery_0
  native-path:          wacom_battery_0
  model:                Wacom Intuos PT S (WL)
  power supply:         no
  updated:              Tue 12 Mar 2019 10:47:18 CET (47 seconds ago)
  has history:          yes
  has statistics:       yes
  tablet
    warning-level:       none
    percentage:          45%
    icon-name:          'battery-good-symbolic'
  History (charge):
    1552384038  45.000  discharging
    1552384037  64.000  discharging
    1552383975  0.000   unknown
  History (rate):
    1552383975  0.000   unknown


There is a big difference between reboot and login, and your system treats them both quite differently.

REBOOT jobs are run by the root user (not your user), and must be headless (no display). The best way to do boot-time jobs in 16.04 and newer is to create a service, and include that service in the appropriate systemd target during the boot process.
LOGIN jobs are run by your user (not root) after you enter your password. The best way to do login jobs is to place them in your ~/.config/autostart/ directory.

But you have a second problem. You seem to want a user-level job to use root-level services. There are many, many ways to do this.

The easiest way is to simply run your script as root manually every day. You already know how to do this, so let's look at other options.
The fastest way is to hack at the sudoers file and generate a special permission set. However, it may not backup properly with the rest of your system, AppArmor may block some actions anyway, and it's hard to troubleshoot and maintain.
The appropriate way is to separate your user-level and root-level functions into two separate scripts, and to use dbus to launch the root-level script and return it's output. This is easy to maintain and troubleshoot, but requires the greatest skill and a bit of learning about dbus.


Installed Ubuntu now i cant get to BIOS menu

Starting up the System you have to press ESC to get in your Bios.
Grub does not touch the Bios on a Windows PC .


I am not actually sure if there are other ways or not to configure GDM, but it seems my question was sparked with this bug: https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/753707

If so, gdmsetup configures what there is to configure about GDM, GDM only does not take autologing into account if ecryptfs is used.


Can I use C++ to write the source package for a .deb package?

Yes.

Source code that requires compilation will be compiled when building the binary package; see IntroDebianPackaging at wiki.debian.org for instructions on how to create a source package containing source code that requires compilation.


Unable to install the correct software version via apt

If you visit the ppa url, given below, you will find that it has packages of kicad-5.1 for Ubuntu-19.10 and Ubuntu-20.04 only.
http://ppa.launchpad.net/kicad/kicad-5.1-releases/ubuntu/pool/main/k/kicad/


Create the folder $HOME/.local/share/applications if it doesn't exist
Copy the file /usr/share/applications/xfce4-notes.desktop into the folder $HOME/.local/share/applications
Open the file $HOME/.local/share/applications/xfce4-notes.desktop in a text editor, for example gedit
Remove the line

OnlyShowIn=XFCE;GNOME;

near the end of the file
Save the file


Not getting option to Boot with USB in Boot Options

Ubuntu 16.04 does not support UEFI, therefore, does not support GPT.

It will also lose support in another year. So the best thing that you can do is use Ubuntu 18.04 or 20.04.

See How to create a bootable USB with Windows.

You can use the same tutorial you have posted in the question. It tells you to use something else option but you can use install alongside windows option too.


From the description of the gource package:

  OpenGL-based 3D visualisation tool for source control repositories.

  The repository is displayed as a tree where the root of the repository is the centre, directories are branches and files are leaves. Contributors to the source code appear and disappear as they contribute to specific files and directories.

Thus, gource needs to be run in a directory that contains a version control repository, as it visualizes changes to this repository.

Version control systems, such as Git, Subversion or others, are used to keep track of changes made in software projects, especially useful when multiple people are working on the same project, as most VCS allow you to create a branch, i.e. a copy of the project at a certain point in time, which you can work at, and which can later be merged back to the master branch, allowing you to work without other people breaking your stuff.

They also allow you to revert the state of the repository to a certain point in time, in case you screwed up.

And that is where your error appears: If you run gource outside a directory managed by a version control system, it obviously won't work.


I want to recover my data from an external NTFS drive

Try a more user-freindly usb or cd/dvd bootable linux, maybe Mint or Knoppix live.  You should be able to to 'fdisk -l' for partitions less than 2TB to be sure what it shows up as.  You may be able to use the gui filemanager to mount it, but command line mount will show you errors if they exist.  Also, use Midnight Commander if you can, it'll be faster and easier to get your files if they are there.  Command is just 'mc'.  Use arrow keys and Enter to navigate.  'apt-get install mc' if it's not installed.


From Windows XP to Lubuntu 12.04 LTS: was Windows graphically best detailed?

Graphics resolution, icon design, windows decoration, all are configurable with Openbox the default LXDE windows manager. Desktop design really only is a matter of your own preferences (e.g. you can still run Windows 7 with the look and feel of Windows NT).

You may find a theme which suits your taste better here:

Box Look themes for Openbox

Also see

Lubuntu/Theming
Lubuntu Artwork

Of course you can always start to contribute by developing your own theme.


Enable vulkan for mesa (oibaf) graphics driver

Take a look at these two files:

/usr/share/vulkan/icd.d/radeon_icd.i686.json
/usr/share/vulkan/icd.d/radeon_icd.x86_64.json

They should look something like:

/usr/share/vulkan/icd.d/radeon_icd.i686.json

{
    "file_format_version" : "1.0.0",
    "ICD": {
        "library_path": "/usr/lib32/libvulkan_radeon.so",
        "api_version" : "1.0.49"
    }
}

/usr/share/vulkan/icd.d/radeon_icd.x86_64.json

{
    "file_format_version" : "1.0.0",
    "ICD": {
        "library_path": "/usr/lib/libvulkan_radeon.so",
        "api_version" : "1.0.49"
    }
}

If not you can modify them for a quickfix, and please report as a packaging bug if this fixes your issue.

I don't own an AMD card, but spoke with a kind soul to find out the proper library should be as this is a known issue with some nvidia packages already.


Failed to start gunicorn.service: Unit gunicorn.service not found. Ubunto 18.04

You have the [Install] section in your service which means you needs to run the command sudo systemctl enable gunicorn.service to start the service on system startup.

Once you run the command a symlink to this file will be created in the directory /etc/systemd/system/multi-user.target.wants/.

Note that you also need to create the socket file named gunicorn.socket and need to enable the same. Once you enable, you can activate the socket by running the command sudo systemctl start gunicorn.socket. You don't need to run the service as systemd will figure out the dependency.

You can check the status of the service with systemctl status gunicorn.service.


Just download the latest windows version from there website

When it is finished right click it and choose open with wine.


How can I recover a vdi (VirtualBox) file?

If the dvi file was located on the same partition as Ubuntu (or is in use by you) there is a small chance for recovery. Foremost and scalpel both read directly from the disk or partition, and need to be instructed to work with the correct header and file end. As VDI's are often some gigabytes in size, it's not getting easier.

If you want to take the foremost approach, I would suggest looking for the header format using your favorite search engine. In any case, if your vdi was located on the disk you are currently using, power the machine off and use a LiveCD so your disk does not get touched.


I have been struggling through this issue for months. Apparently this is a recognized issue with devices using the Realtek ALC256 card (which includes the Acer Swift 3). There is a long thread on something similar on bugzilla.
I finally stumbled across a workaround to enable use of headset mics here: acer swift 3: microphone not working with ubuntu 18.04, to add options snd-hda-intel model=dell-headset-multi to the alsa-base.conf. You can follow the steps mentioned there (I did however have to restart my computer as alsa force-reload did not do the trick for me). This worked for me on Acer Swift 3 and Ubuntu 20
Please note however, the onboard mic will still not work.


Keyboard shortcut increase/decrease font size when using Guake?

Make a script file with the following line.

gconftool-2 --type string  --set /apps/guake/style/font/style 'DejaVu Sans Mono 10'

Change the value '10' to whatever suits you.


Convert odt file to pdf from the command line using unoconv

Install libreoffice-writer if not already installed:

sudo apt-get install libreoffice-writer

Whether or not unoconv was installed with libreoffice, run it once so it can complete configuration.


nVidia drivers on 15.04 kernel 3.19 stalling system load

Figured it out on my own, guys.

First, assuming your system can actually boot into Ubuntu you'll want to open up a terminal and install kernel version 4.0 as follows. Please note that if you're using a 64 bit version at the end of the wget command you'll want to change that to _amd64.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-vivid/linux-headers-4.0.0-040000_4.0.0-040000.201504121935_all.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-vivid/linux-headers-4.0.0-040000-generic_4.0.0-040000.201504121935_i386.deb

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0-vivid/linux-image-4.0.0-040000-generic_4.0.0-040000.201504121935_i386.deb

sudo dpkg -i linux-headers-4.0.0*.deb linux-image-4.0.0*.deb

sudo reboot

From there what you want to do (and be patient, it takes a bit for the first time to load after installing 4.0) is open another terminal and do the following. My preferred driver of choice that works best with my card is nVidia-346 but insert your version where I put my 346

sudo apt-get install nvidia-346
sudo reboot

Again, it may take a bit for it to start, but besides the strange Starting version 219 (which I think I read has to do with the systemd version, could be wrong) your Ubuntu system should boot without issue, as well as Steam starting. I was quite pleased when BioShock Infinite started back up.

Cheers


How to remove packages that are part of ubuntu-desktop

There is a way to do this. Aptitude is only a layer abstraction on top of dpkg that makes it more user-friendly, or easier to use, or safer, or less powerful, or patronizingly child-proofed depending on your relationship with your system and your outlook on life.

By definition, when you remove a package that is a (in this case a completely arbitrary) dependency, you are going to 'break the package' that depends on it. More often than you would think, this doesn't actually impair the functionality of the broken package perceptibly. Just always know that you can press CTRL+ALT+F1 or CTRL+ALT+F2 F3, F4, etc. once the OS is loaded and get a terminal to fix whatever you need to. Though you very well may have to be able to configure networking from the command line in that case... Anyways, If anyone tells you that "you can't", take it with a grain of salt. Because "you can".

Check that you got the right package name
~$ dpkg --list | grep "update-"

You should get some output like this with version numbers and some other info:

ii  python3-update-manager
ii  update-inetd
ii  update-manager
ii  update-manager-core
ii  update-notifier
ii  update-notifier-common

Cool. Now you can see that update-notifier has another library associated with it update-notifier-common. Let's remove these unnecessary packages. (Because seriously, let's face it, that ubuntu makes the entire gnome setup dependent on a GUI interface to an abstraction-layer of the Debian package manager is ridiculous.)

~# sudo dpkg -r --force-depends update-notifier

The -r flag is short --remove and --force-depends removes the package even though it breaks a dependency.

Or if you hate the thought of a bunch of configuration files for packages that you don't have on your computer laying around:

~# sudo dpkg -P --force-depends update-notifier

The -P flag is Purge.

I usually restart at this point and check to make sure nothing I care about is broken. If it's all good, repeat the process for update-notifier-common, and check again. You would be amazed at how much you can break and still have a fully functioning workstation.

And there you go. It's gone.

In fact, instead of update-notifier you should just install unattended-upgrades then run dpkg-reconfigure -plow unattended-upgrades to automatically update unattended upgrades, and get the vital security updates without thinking about it ever again.

To reiterate: if this does break something you can't live without, you can always get to a terminal via CTRL+ALT+F1 when the OS loads and reinstall the package. But seriously, if it's not a production system at work. Break it, and fix it, and break it again. Not only is it more fun, but you learn more faster. When you've messed around with packages enough to feel comfortable, I recommend moving on to kernel modules. Seriously, I'm not joking. You will learn so much.


llvmpipe (LLVM 10.0.0, 256 bits) is getting detected instead of NVIDIA

Okay, then I make an answer. It turns out the nivida-packages (440) was not compatible wiith the kernel from Paket linux-generic-hwe-18.04-edge (5.4:XXx) and blocks dkms itself.  Reverting to linux-generic (4.15.xxx) and purging (linux-generic-hwe-18.04-edge) and his dependencies and reinstalling package nvidia-dkms-440 did the trick.


At this moment, here is no way to change the launcher width in Unity 2D, as you can read here:

https://answers.launchpad.net/unity-2d/+question/158873

https://answers.launchpad.net/unity-2d/+question/141757

I suggest to register to this bug on launchpad, that is the related feature request:

https://bugs.launchpad.net/unity-2d/+bug/789638

Note: the are few other options you can choose, see question How do I configure Unity 2D?


You are user root. The ~ is pointing to your root home. And root is not a desktop user so has no Downloads directory. So your 1st command fails because it needs to be ~/Downloads and you need to be the normal desktop user.  To exit the root shell use exit or logout.

Please leave the root shell and issue these commands as your desktop user. It can and will break your system if you do this and use an malformed rm.

If part of the installation is to use root please, stop using that software. If that software has any backdoors or other stupidly coded software you could be opening your whole system to the world. And please use the native LAMP stack. It is build and setup to work out of the box on Ubuntu, easier to setup and easier to maintain. It is as easy as issueing 4 commands and 1 password and you have a working apache and mysql with php installed.


Read errors when installing on a 2009 Macbook Pro from CD

Redownload the .iso file, and when you burn the CD, burn it at the lowest speed possible. Your .iso seems to be corrupted. Also, when you boot the CD, hit the Space button at the icon with the man and the keyboard, and select (arrow keys and Enter) Check disk for defects.


How to backup the installed applications in ubuntu

The most useful backup application I've seen is called Aptik - all you need is a backup directory, stored locally or in the cloud. Aptik will backup PPAs, downloaded packages, software selections, application settings and themes and icons. Very useful.

You can install it through the ppa:

sudo apt-add-repository –y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install aptik

Hope this sorts you out :)


Random Chinese text in "New Document" dialog in right click menu of Nautilus

Seems you're using WPS office (provided by Kingsoft, a Chinese company). These are the default names set by the installer for the product. Below are the translations for your reference.

文档 = Document
演示文稿 = Presentation
工作表 = The worksheet

You can modify the names by editing the corresponding file names in ~/Templates.
So, you shouldn't be worried if you have WPS office and trust Kingsoft.


how to disable Empathy notifications in ubuntu 13.04

You can disable using dconf editor.

Go to:

org > gnome > empathy > notifications

and disable the keys "notifications-enable" and "notifications-focus". It worked to me in Ubuntu 13.04.


How do I fix "MANPATH: undefined variable." in csh?

The error message

MANPATH: undefined variable.

is because Ubuntu doesn't set MANPATH by default (man has a built-in search path) and csh (unlike Bourne shells) doesn't treat unset variables as empty.

However it should not in itself prevent the shell OR any C-shell script from running.

Nevertheless, if you want to "fix" it, you will need to modify your ~/.cshrc file to check whether MANPATH is set or not and treat the two cases appropriately - something like

if ( ${?MANPATH} ) then
  setenv MANPATH ${MANPATH}:${HOME}/share/man
else
  setenv MANPATH ${HOME}/share/man
endif

DISCLAIMER I'm not fluent in csh syntax so YMMV.


How to display correct time in persistent live USB

Answer from HERE

  sudo dpkg-reconfigure tzdata

After executing this, ensure the correct timezone was selected, then set this command to be run automatically and non-interactively at startup by adding it to System -> Preferences -> Sessions -> Add -> Command:

  sudo dpkg-reconfigure -f noninteractive tzdata

Although in Lubuntu I was not able to add new staff to session, the settings made with first command seem persistent.


You didn't outline the reasoning for this and before helping I wanted to let you know that "attaching as USB" in most cases is a bad decision, most other ways (virtio disk, scsi disk, passthrough, ...) are much better to pass a block device (if backed by a file or real) to the guest. Passing USB to guests is usually only used to pass real devices through to the guest.
But you might have a specific test in mind so for now let me assume there is a reason for using USB here :-)
If you need an image as USB disk there are two things to do.
First if you use libvirt you can as well use it here for more than just passing your commands. It does most complex work for you (that is what it is for):
# qemu-img create -f qcow2 test.img 10M
Formatting 'test.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=10485760 lazy_refcounts=off refcount_bits=16
# virsh attach-disk ubuntu20.04-Desktop --targetbus usb --source /var/lib/libvirt/images/test.img --target hda
Disk attached successfully

Of course you can convert this to an XML (or directly use an XML) for a more programmatic approach, but the above works fine.
And seconds you need to be aware of common and uncommon paths.
If you just happen to attach a file to qemu it will be blocked by apparmor isolation - see the section in the server guide.
You need to tell libvirt what path you use to make it allow that path.
In my above example that all is done for you and just works.
There is a set of paths defined for where all this can happen automatically and e.g. /var/lib/libvirt/images + telling libvirt what you do with attach-disk is one of them.
If need to have it run on other paths you need extra rules for virt-aa-helper in /etc/apparmor.d/local/usr.lib.libvirt.virt-aa-helper.
And if further you "insist" to have to do it manually instead through libvirt you'd need to add a rule that allows the guest a given path/file to /etc/apparmor.d/libvirt/libvirt- and then reload that profile (or restart the guest). Then that path would be allowed for qemu to access.


Open the shell script and replace

proz -k=20  --no-curses

With

wget

If you don't have wget you can sudo apt-get install wget or use curl...


How to recover Ubuntu partition after computer failure?

Testdisk may be helpful for you.

A video can be reached on: http://www.youtube.com/watch?v=EncqYP1ijFg&feature=player_embedded

NOTE: Testdisk will bring back any partitions you accidentally erased or lost. But some data may not come back with the partition. However, you can gain access to that data when the partition table is available again.

Good luck!

BTW: Testdisk and useful information related can be reached clicking here: http://www.cgsecurity.org/wiki/TestDisk


want to access local Ubuntu server to get files to hosting

Depending on what you mean you can use filezilla to upload files to an external hosting site if you have the username and password that was supplied by the hosting site.

Or if you are suggesting that you would like to point the hosting site to your local computer then you will want to open your firewall with ufw and do some port forwarding on your router. Which would entail opening a browser and navigating to the router admin page something like ( http://192.168.0.1 )

If you mean that you would like to host files from your ubuntu server then there are several methods to do this.

You could set up your own SFTP service.
You could use openSSH-server, or
you could use apache to
serve files over http.


Wifi not working now. Was working fine until yesterday

you can try another distribution to see if you can connect to a hotspot. if you can, there's something wrong with your ubuntu, drivers are a deep part of the system, so may i suggest that you reinstall the whole system. if you can't, there's something wrong with you laptop, and you may need to take the machine to the service center.


Would anyone know the source of this error in mediawiki?

To fix this error. You need to fill in the credentials in the username and password fills, located in /vendor/mail/Mail/smtp.php. Once this is done, it would be safer to set up an array called $wgSMTP, containing info on the username and password, in LocalSettings.php.


Music player that removes duplicates from library

It's not clear from your question if the problem is Rhythmbox's own metadata or if you want to actually remove (near-)duplicate files from your music library.

If it's the latter, I wrote a Duplicates Browser plugin for Quod Libet that can do that, with configurable settings and compound key to de-dupe on (e.g. artist plus title plus album)


Rsync full backup --exclude option not working

You've got some very funky quotes in your exclude line. Some are normal " quotes, and others are ” quotes. I'd try to make everything one type of quote (preferably the former) and let us know if that helps.


I've actually written pair of quite in-depth articles on using Ubuntu for web kiosks. I used Chrome but there's little difference. You can start from a full install or an Ubuntu Server install (and just install the bits you need).

There is far too much to go into but I'll give you the brief outline here:

Install things you'll need. Here's a suggestion if you're coming from Server:

sudo apt install --no-install-recommends xorg openbox firefox pulseaudio

Prep the browser. Chrome has its own kiosk mode but Firefox will likely need something like R-Kiosk installing.
Create a script of things to launch (pulseaudio, firefox, etc) in the X session. If you're coming from a Desktop install, you'll need to disable some things (like lightdm) too.
Create a new Upstart script (assuming 14.04 LTS) to launch X and start that script. You'll be launching something like this:

sudo -u $USER startx /etc/X11/Xsession /opt/kiosk.sh --

Consider security, networking, remote access, etc, etc.

As for hardware, you can get dedicated kiosk hardware, or just take a consumer 24" screen, a USB touchscreen overlay and a low-end computer (even a Raspberry Pi 2) and put the two together. Even if you have to custom-make an enclosure, it's likely going to be cheaper than a 24" tablet.


Installing Ubuntu with Windows 8 goes dark

Pentium D are quite old but still working with Linux. Your memory base is not a problem, nor the disk.

Graphic card is not a problem too since Nvidia cards are well supported.

You have to try first the "Live" session by downloading the Raring Tail 32 bit version of Lubuntu. Lubuntu is the light-most version of Ubuntu distribution. It uses LXDE desktop environment very light but complete and fast.

If the "Live" session will work well for you, you can eventually decide to install it permanently on your disk.

This is the link to the 32 bit iso:
http://cdimages.ubuntu.com/lubuntu/releases/raring/release/lubuntu-13.04-desktop-i386.iso

Further useful links:
http://lubuntu.net/
https://help.ubuntu.com/community/Lubuntu/Documentation/MinimalInstall

Let we know what you will experience so the community will improve, possibly, the support.


where did /proc/acpi/battery/BAT0/XXX go in 12.10?


How can I set-up Postfix to handle multiple domains?

What you seem to be looking for is virtual domains.

There are good tutorials out there regarding this topic. For instance, this one: https://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-ubuntu-12.04-lts


Are appindicators and notifyosd useful for other than Ubuntu's Gnome users?

Application indicators require another library, so you would have to follow the guides for them on the ubuntu wiki. However, they also support a fall-back mode, so they will still work on standard GNOME.

However, NotifyOSD is just another implementation of a standard notification spec, so nothing changes here.
On GNOME the notification system has a different implementation, but it's the same underlying library - so it's code once, run anywhere.

In response to your comment:

No, standard GNOME applications will not adapt to using application indicators, for no other reason than that (if we are honest here) the GNOME developers don't really like Canonical/Ubuntu, and reject just about anything (most of the time) they (Canonical/the Ubuntu community) produce. For this reason, Canonical has to patch GNOME applications, or third party developers have to create replacements, that honestly should just be pushed upstream, but are blocked by the pointless dam that upstream has in place.


potentially corrupted microsd card after computer shut down during a transfer, not automounting

From dmesg seems like is unable to read the partition table, so let's recreate it. // Are comments and not part of the commands

sudo fdisk /dev/sdb //Here you're using fdisk utility on /dev/sdb disk
d //d stands for delete partition
g //g is for recreating GPT table
n //n stands for new
p //p stands for primary partition
ENTER //Press enter key
ENTER
ENTER
w //w means write changes on disk
sudo mkfs.ext -F 32 -I /dev/sdb1 //Command that formats the partition you created in EXT32, must be run outside fdisk

After that if you want to add it in fstab, first grab the new UUID:
sudo blkid /dev/sdb1

And add an entry in /etc/fstab like this:

UUID=(UUID) /folder/where/to/automount vfat defaults 0 0


How do I boot the Ubuntu OS istalled on a 32GB USB drive?

I'm guessing you used UNetbootin.

For whatever reason, people are always having problems with it.

I suggest this  alternative: http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

If that fails too, have you verified the ISO's SHA-1?


Pidgin -> Accounts -> Manage accounts -> Add -> Facebook.

Under "User options -> Local alias:" you can set your desired name.


Ubuntu bootable drive- Couldn't get size: 0x800000000000000e ; MODSIGN: Couldn't get UEFI db list

I had the same issue with:

AMD Athlon 200GE Dual-core
MSI B450I Gaming Plus AC

I followed this guide to install Elementary OS, should be the same with Ubuntu

https://elementaryos.stackexchange.com/questions/10000/elementary-os-wont-boot-past-live-cd-screen

Once installed I used the same nomodeset to boot into Elementary OS

Once booted in I updated the kernel to 4.19 using this guide

http://ubuntuhandbook.org/index.php/2018/10/linux-kernel-4-19-released-install-ubuntu/

I had no more issues after that


There is not any "built-in" support for Asus FLipLock. I have come up with a script that toggles those.

    #!/bin/bash
    #toggle keyboard and touchpad
    key_device=12
    key_property=138
    touch_device=13
    touch_property=138
    flipped_state=$(xinput list-props "$key_device" | awk"/\\($key_property\\)/{print 1 - \$NF}")
    xinput set-prop "$touch_device" "$touch_property" "$flipped_state"
    xinput set-prop "$key_device" "$key_property" "$flipped_state"
    #toggle onboard
    #dbus-send --type=method_call --est=org.onboard.Onboard/org/onboard/Onboard/Keyboard org.onboard.Onboard.Keyboard.ToggleVisible

I commented out the onboard touch keyboard, as I could not get this function to work, and there are other ways to configure your onscreen keyboard.

I created a launcher for this, and added to my panel. Now I can turn those on and off at will.

I used this to modify my arandr generated scripts to rotate touch input with the display:
Touchscreen Input Doesn't Rotate: Lenovo Yoga 13 / Yoga 2 Pro


To click use this two commands:

mouse.click_relative_self(x, y, button)

mouse.click_absolute(x, y, button)

The first command is relative (to click near the mouse's current location) the second is absolute (from the entire screen).
The button takes 3 arguments:

1: left click

2: middle click

3: right click

For example in a strategy game to perform a right click at the mouse's current location do this:

mouse.click_relative_self(0, 0, 3)


This was, in fact, a bug and I believe it should be fixed now.  It is definitely fixed in 11.10.


Found the error. I was trying to install the 64bit version on a 32bit system


How To Install Visual Studio, SQL Server On Ubuntu

First of all, I suggest you to stay with Windows, because it seems everything you are using is depend on Windows. You should wisely choose your tools, and making Ubuntu into something it's not is not a logical thing. Even if you do, it's not going to be as good experience as you had with windows.

If you insist, my suggestions are:

Dual boot Ubuntu and Windows
Its the best thing you can do, you've got all your necessary stuff on your windows while you have your Ubuntu on same machine.
Use Virtualization
Some of your applications are not suppose to work with GNU/Linux at all, you better install them on a virtual Windows machine so at the same time you have Ubuntu and your windows programs.
Use Wine
Wine is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux

Check Wine applications database to see if your desired applications are supported by wine if they are, you can use wine to run them on Ubuntu.
Combine Wine/Virtualization
Some of applications are fine to run using wine, the others might have some problems, use wine and virtualization to get best result you can.

Useful questions:

How can I install Windows software or games?
How can I install Visual Studio?
Can I run SQL Server on Ubuntu?


How do you install .tar.xz files offline?

Alright, after a few days I have finally received my Ethernet adapter. From there I installed the drivers from GitHub and finished it off by installing them.


Recent versions of Vino require encryption by default, that unfortunately, virtually nothing else provides!

This page is one place that will tell you about it and how to fix it.  Basically, you're just turning off the "require-encryption" option in Vino.


Recursive Search broken in Nautilus 3.6 on Ubuntu 12.10

The bug was fixed on Nautilus 3.7.1. Here is the full list of improvements.


How do I Fix my update center from displaying error

You can try asking apt-get to resolve dependencies with:

$sudo apt-get -f install


This problem was caused by Network Manager.  Replacing it with WICD completely solved the problem.  Network Manager continues to be a serious problem, I don't understand why WICD is not the default program.


Verify Ubuntu installable USB created by usb-creator

First identify your USB device with the command:

lsblk

Lets assume it is /dev/sdb1
Now generate the MD5 hash code:

sudo md5sum /dev/sdb

It will take some time. It will give a long code like:

69c2a3c0e7f4a209734e8531f1e5b771

Finally compare it with the the codes issued in Ubuntu web site:
If the your hash code is different, probably your USB key is corrupted.


Ubuntu 17.10 won't use nvidia drivers, but uses nouveau instead

A common problem is not loading the correct kernel module. You have that very issue (see follows):

Kernel modules: nvidiafb, nouveau

Please follow the advice of

  Elder_Geek

in the original article on this subject: Install Nvidia driver instead of nouveau

0) Download the current NVIDIA driver

1) shutdown your login manager with Ctrl+Alt+F1, and type in

sudo service lightdm stop

2) blacklist the non-proprietary drivers by editing /etc/modprobe.d/blacklist.conf

blacklist nouveau
blacklist nvidiafb

3) remove the existing nvidia drivers and purge any old status and module entries

sudo apt-get remove --purge nvidia-*

4) rebuild your current kernel

sudo update-initramfs -u

5) reboot

6) install your new NVIDIA driver from the commandline: exit the login-screen and stop the x-server [see step (1)], run your NVIDIA-downloaded driver, install the driver, and reboot

7) execute lshw -c video and modprobe nvidia to make sure the correct kernel module is running:

modinfo nvidia
filename:       /lib/modules/4.13.0-36-generic/kernel/drivers/video/nvidia.ko
alias:          char-major-195-*
version:        390.25
supported:      external
license:        NVIDIA
srcversion:     B5B1CA3087B567ADFADC070
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        ipmi_msghandler
name:           nvidia
vermagic:       4.13.0-36-generic SMP mod_unload
parm:           NVreg_Mobile:int
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_UpdateMemoryTypes:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_MapRegistersEarly:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_CheckPCIConfigSpace:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_UseThreadedInterrupts:int
parm:           NVreg_EnableStreamMemOPs:int
parm:           NVreg_EnableBacklightHandler:int
parm:           NVreg_EnableUserNUMAManagement:int
parm:           NVreg_EnableIBMNPURelaxedOrderingMode:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_IgnoreMMIOCheck:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RegistryDwordsPerDevice:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_AssignGpus:charp

lshw -c video

  *-display
       description: VGA compatible controller
       product: NVIDIA Corporation
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:04:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:64 memory:f2000000-f2ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:2000(size=128) memory:c0000-dffff

If the entries license, name and configuration: driver are for you the same as they are here, all went well and the proprietary driver is running.


KDE is broken after upgrade to 19.04: org.kde.solid.udisks2: Error getting props

Solved after upgrade Plasma to 5.16:

http://ubuntuhandbook.org/index.php/2019/06/install-kde-plasma-desktop-5-16-kubuntu-19-04/


How do I browse a website that uses WebGL?

Actually it says there you need a Browser that supports WebGL, not openGl. As you can see in the following links, no officially released version of Firefox, Chrome or Opera support WebGL at 100%. The nightly builds do but they still need work:

http://www.khronos.org/webgl/wiki/Getting_a_WebGL_Implementation

http://wakaba.c3.cx/w/webgl.html

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

As WebGL uses Canvas then it needs a browser that supports HTML 5 (Which is like the latest for browsers)

Also there is a web page to test if your browser supports WebGL: http://www.doesmybrowsersupportwebgl.com/

Remember that apart from the Browser supporting WebGL, you need a video card that supports OpenGL ES 2.0 which would be supported if your graphics card supports OpenGL 2.0+.

UPDATE
With Firefox 4.x and starting with Chrome 9 you have support for WebGL apps. For course, for the time being, Chrome renders faster than Firefox but Firefox is more standard than Chrome.


How to play h264 encoded videos with Totem?

You just have to install the gstreamer ugly plugins that includes the h264 codecs:

➜  ~  apt-cache show gstreamer1.0-plugins-ugly | grep Gstreamer-Encoders
Gstreamer-Encoders: audio/AMR; audio/mpeg, mpegversion=(int)1, layer=(int){ 3, 2 };video/x-h264, stream-format=(string){ avc, byte-stream },alignment=(string)au, profile=(string){ high-4:4:4, high-4:2:2, high-10,high, main, baseline, constrained-baseline, high-4:4:4-intra, high-4:2:2-intra, high-10-intra }

So, just run:

sudo apt-get install gstreamer1.0-plugins-ugly

or

sudo apt-get install gstreamer0.10-plugins-ugly

and it's done. You don't need to install anything else, nor use the ubuntu-restricted-extras package.


Max speed and acceleration in Gpointing-device-settings have no effect

I seem to see the same issue in Ubuntu Mate.   To adjust the speed the old-school way, you can use the xinput command line tool.   For example on a Dell XPS 13:

# list your devices
xinput

# list properties
xinput --list-props "CyPS/2 Cypress Trackpad"

# increase acceleration
xinput --set-prop "CyPS/2 Cypress Trackpad" 265 2

The --set-prop commands can be turning into a script and added to your Startup Applications.

I haven't found a GUI that sets all the touchpad options, yet.


Trying connect by SSH and get "access denied" by localtunnel

You'll need to authenticate with the SSH private key that corresponds to the public key that you used to set up your tunnel. The latter is explained in the instructions on [1], while the reasons for using public keys are explained in [2]. However I cannot find there which username to use along with your SSH key. To me [2] sounds like they are using only one user whose authorized_keys file contains all public keys. If so, it is unlikely that you can use e.g. your subdomain as the username. I tried looking it up for you (can probably be done with ps -o args -C ssh while localtunnel is running) but didn't get localtunnel to work on my machine quickly.

[1] http://progrium.com/localtunnel/

[2] http://www.twilio.com/engineering/2011/06/06/making-a-local-web-server-public-with-localtunnel


How to change the colours of the embedded terminal in gedit in Ubuntu 16.04 LTS?

I ran into the same problem today and stumbled on this question. Sadly it had no answer. Happily, I manged to figure it out. HTH someone else.

I'm using an Ubuntu 16.04 VM, and followed the same tutorial, and had the same results.

The issue lies here, in /usr/lib/x86_64-linux-gnu/gedit/plugins/terminal.py lines 88-98:

def get_profile_settings(self):
profiles = self.settings_try_new("org.gnome.Terminal.ProfilesList")

if profiles:
    default_path = "/org/gnome/terminal/legacy/profiles:/:" + profiles.get_string("default") + "/"
    settings = Gio.Settings.new_with_path("org.gnome.Terminal.Legacy.Profile",
                                          default_path)
else:
    settings = Gio.Settings.new("org.gnome.gedit.plugins.terminal")

return settings

When the plugin gets the terminal settings, it first checks the dconf-editor path for the default terminal settings, which, if yours is like mine, only has the use-theme-transparency setting. As a result, the embedded terminal has no settings to actually use. I figure the hard way to fix this would be to replicate the keys in org.gnome.gedit.plugins.terminal into the org.gnome.Terminal.ProfileList. Instead, open terminal.py, comment out the if statement, and force the settings to use the org.gnome.gedit.plugins.terminal settings.

    def get_profile_settings(self):
    profiles = self.settings_try_new("org.gnome.Terminal.ProfilesList")

#        if profiles:
#            default_path = "/org/gnome/terminal/legacy/profiles:/:" + profiles.get_string("default") + "/"
#            settings = Gio.Settings.new_with_path("org.gnome.Terminal.Legacy.Profile",
#                                                  default_path)
#        else:
#            settings = Gio.Settings.new("org.gnome.gedit.plugins.terminal")

    settings = Gio.Settings.new("org.gnome.gedit.plugins.terminal")
    return settings

Once you restart, you should have a black and white terminal-


Poor compiz performance on NVidia 9500 GT

My first question would be which version of Ubuntu did you install.  Regardless though, that seems to be a fairly old driver for the 9500gt. If you go to System > Administration > Additional Drivers, you should see that there are 2 choices, one of which is the 173 driver you have. The other one is a much more recent version (260.19.06), at least in the latest Ubuntu version, which is 10.10, it is. You want to activate this version. 173 is meant to maintain support for older cards.


Unable to connect to Internet by Ethernet or Wireless - HP530 [Ubuntu 16.04.1]

You installed a wrong driver for your wireless adapter. Remove it this way:

sudo apt purge bcmwl-kernel-source

Then you will need to install firmware for your adapter. Use this answer as a guide.


Here goes the sample script:

#!/bin/bash

# Here put the name of your process
ProcName="process_name"
# Here put the desired memory limit in KBytes
MemLimit=400000
ProcID=$(pidof "$ProcName")
if [ -z "$ProcID" ] ; then echo "Process not found" ; exit ; fi

while true
do
  MemCurrent=$(grep VmSize /proc/"$ProcID"/status | cut -f 2 | tr -d ' kB')
  if [ $MemCurrent -gt $MemLimit ]
  then
    kill -9 "$ProcID"
    exit
  fi
  sleep 5
done

Set your desired process name and memory limit in ProcName and MemLimit variables. Save this script somewhere, for example as ~/killer.sh. Make it executable: chmod +x killer.sh. Then run it: ./killer.sh.

What do you mean by "change it back"?

N.B. Actually VmSize will not give you exact memory usage. Calculation of real process memory usage is a complex task. You can get some insight here: https://stackoverflow.com/questions/131303. But I think that this script will be sufficient in your case.


Unable to install MikTex on Ubuntu 20.04

nothing works. but lol... I can install it again after ignoring it for one week.
~$ sudo apt update
Hit:1 http://pl.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 https://download.docker.com/linux/ubuntu focal InRelease
Hit:3 http://ppa.launchpad.net/sunderme/texstudio/ubuntu focal InRelease
Get:4 http://pl.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Hit:6 http://download.opensuse.org/repositories/Ubuntu:/debbuild/Ubuntu_20.04  InRelease
Get:7 http://pl.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Hit:10 http://deb.playonlinux.com trusty InRelease
Get:8 https://sunsite.icm.edu.pl/pub/CTAN/systems/win32/miktex/setup/deb focal InRelease [2 030 B]
Get:11 http://pl.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [841 kB]
Ign:9 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod InRelease
Get:12 http://pl.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [434 kB]
Get:13 http://pl.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [264 kB]
Get:14 http://pl.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [746 kB]
Get:16 http://pl.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [555 kB]
Get:17 http://pl.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [302 kB]
Get:18 http://pl.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2 468 B]
Hit:15 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod Release
Get:19 http://pl.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [1 768 B]
Get:20 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [24,2 kB]
Get:21 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [58,2 kB]
Fetched 3 554 kB in 1s (2 409 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Skipping acquire of configured file 'stable/source/Sources' as repository 'https://download.docker.com/linux/ubuntu focal InRelease' does not seem to provide it (sources.list entry misspelt?)
N: Skipping acquire of configured file 'universe/binary-i386/Packages' as repository 'http://miktex.org/download/ubuntu focal InRelease' doesn't support architecture 'i386'

The problem was simply
E: The repository 'http://miktex.org/download/ubuntu focal Release' no longer has a Release file.

just let it go and wait.


OpenStack (Microstack) installation issue

Sometimes when you configure edge channel and it does not work, try this.

It works with me.

Replace:

$sudo snap install microstack --classic --beta

or

sudo snap install microstack --classic --edge

with:

$ sudo snap install microstack --devmode --edge

The steps:

$ sudo apt install snapd   or $ sudo snap install snap-store
$ sudo snap install microstack --devmode --edge
$ sudo microstack.init --auto

https://microstack.run/docs/


Installed laptop-mode-tool 16.04, now USB mouse not working after rebooting until it is re plughed in

I had the same issue and you have to do a couple of steps:

In terminal check with lsusb, the ID vendor and ID product of your mouse. In my case I have a wheel optical mouse from Microsoft. So id is 045e:0040

$ lsusb
Bus 002 Device 004: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical

Next edit your /etc/laptop-mode/conf.d/runtime-pm.conf using sudo and check if the line is set to

AUTOSUSPEND_USE_WHITELIST=0

Next, add the result of lsusb ID of your mouse as follows:

AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST="045e:0040"

Reboot and everything should be ok with the mouse.


Can't find back the procedure to make a bootable key (suggested at first use of the computer)

You can use the Startup Disk Creator to create a bootable usb stick. It should already be installed, use the search function to start it.

https://help.ubuntu.com/stable/ubuntu-help/addremove-creator.html.en


Thin Client Lubuntu over PXE Server with DHCP and TFTP

One way is to use memdisk from syslinux-common package to boot using ISO image directly though TFTP.

Copy memdisk & ISO images to TFTP root
Add menu entries to PXE configuration file, Example:

LABEL slitaz
    MENU LABEL ^Slitaz.iso
    TEXT HELP
Testing boot from iso.
    ENDTEXT
    KERNEL memdisk
    APPEND initrd=slitaz-cooking.iso

LABEL mini_ubutnu
    MENU LABEL Mini-Ubuntu
    KERNEL memdisk
    APPEND initrd=ubuntu_mini.iso


Is it possible to disable ipv6 using cloud-init?

you could do
write_files:
  - path: /etc/sysctl.d/10-disable-ipv6.conf
    permissions: 0644
    owner: root
    content: |
      net.ipv6.conf.eth0.disable_ipv6 = 1

to test it without restating:
sudo systemctl restart systemd-sysctl


Changing the brightness value in the /sys/class/backlight/acpi_video0/brightness file can make the issue solved. Here the command:

echo {brightness_value} > /sys/class/backlight/acpi_video0/brightness

Brightness value must be between 0 to 20. I'm not sure whether it can vary device to device.

You could create a script and invoke it on shortcut key press.

I found a reference. I'm pretty sure the marked answer in the following link can make your issue solved. Why does my Thinkpad brightness control skip steps?.


How do I see what program accessed my files?

Is there anyway I can tell what program or process accessed that file?

No -- not in default implementation as there is no process (or kernel for that matter) tracking that in general (there could be specific cases for some programs, which are program specific obviously), and dumping log or keeping in memory.

But there are ways, if you want to do that. The best IMO would be to use the inotify family of system calls to track the filesystem accesses. You are basically looking for the inotifywait userspace command (comes with inotify-tools package) to set a watch on the accesses of desired file(s), and do any operation like logging if you want.

Here is an old answer of mine to get you started.

Further hint: you're looking for the access event.


How to delete all files in current directory but keep files in subfolders

Just run:

rm *

It's that simple.  It won't touch the directories unless you add the -R or -r flag:

rm -r *

If you also want to delete empty directories, add the --dir flag:

rm --dir *


Gnome session flashback - 2 parter question

No. GNOME Flashback is GNOME + metacity, gnome-flashback, gnome-panel and gnome-applets. So most likely it will be available in 18.04. :)
Open upstream bugs with improvements you want to see. GNOME Flashback is not developed / improved by Ubuntu developers - that is not going to change...

Open bugs here:
https://bugzilla.gnome.org/page.cgi?id=browse.html&product=gnome-flashback
(I will move bug to correct package if needed)


How do I identify my network interfaces?

Names like enp0s3 are new. To get back traditional names like eth0 run this command.

# ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules

It's from ArchWiki, but I guess it should work in Ubuntu, too.


install hp officejet 5740 e-all-in-one ubuntu 14.04

You have to have the LATEST hplib installed, and you have to download the installer here:

http://hplipopensource.com/hplip-web/models/officejet/officejet_5740_series.html

Then follow the directions in the download link. As of 07/15/15 the latest is hplip-3.15.7.


How can I access Windows 10 if I have installed Ubuntu 20.04 alongside Windows 10 but it is not shown in boot options?

Based on your "Gparted" data, there is no Ubuntu OS installed, and no free space for you to install it.

Windows Task: Free some space (say 100G from the Windows "Basic data partition"), using Windows "Disk Management" -- shrink it! And you should be able to see the availbale free space. From my (limited) experience, you don't even need to format it.
Ubuntu task: Boot your system through a bootable Ubuntu USB disk; follow the prompt. And let Ubuntu do the rest, including fixing your boot up sequence.

It worked for me. Hope it does for you too. Good luck.


First you need to install the required programs sudo apt install lm-sensors fancontrol then you can use sensors-detect to detect what sensors you have, follow the prompts and I normally just go with the defaults. Then after you have detected the sensors you can configure their curves with pwmconfig that will guide you through generating the /etc/fancontrol configuration file, after you're done you must start the fancontrol daemon by running fancontrol or rebooting. Once you started it make sure it started OK by doing service fancontrol status

Most of the time this works fine, but some boards don't let you control the fan or in the case of the Thinkpad T430 it uses ACPI to control the fans, if thats the case I always just write my own python script to do that, you normally can just write to the fan's file to change its speed in code.

You may need to add options thinkpad_acpi fan_control=1 to your /etc/modprobe.d/options file if you are using a thinkpad.
Here is thinkwiki's article about it


Dualbooting doesn't work, defaults to windows 8

You can edit your grub.conf file to order your boot options however you want.  Use your favorite editor (VIM, nano, pico, etc) and just put Ubuntu at the top of the list or Windows at the bottom of the list and reboot your machine to verify the options are listed how you like.


How does Wine (windows programme loader) work on Ubuntu?

As says wikipedia: http://en.wikipedia.org/wiki/Wine_(software)

  "Wine is a compatibility layer. It duplicates functions of Windows by providing alternative implementations of the DLLs that Windows programs call,[4] and a process to substitute for the Windows NT kernel."

So, WINE is set of in-house developed libraries, one side of which (visible to programs) is the Windows API, and the other side (visible to linux kernel and linux libraries, like glibc and libX11) is POSIX, Linux and X11 API. Also, there is special loader of windows programs which can read EXE file, load it and all needed DLL libraries to the memory, connect everything with internal Wine libraries and system libraries and run it. There can be several helper programs inside WINE too.

  As there is two different operating system windows (closed source) and Ubuntu (Linux open-source)

Wine provides its own versions of various Window system DLLs. Wine also has the ability to load native Windows DLLs. Attempting to call into the Windows kernel directly is unsupported. If your Windows program makes calls that Linux can handle, then Wine passes them on to the Linux kernel. If the program wants to do something that Linux can't do, then Wine translates the call into something that Linux can deal with first.

Both OSs (Windows and Ubuntu) have different APIs (and ABIs (Application Binary Interface)). Windows has WinAPI, and Linux has POSIX API, with some additional Linux-specific APIs, graphics APIs (like X11) and with its own Linux ABI.  Different APIs don't let you, for example, open the file, and read from it, if you are using wrong API. This difference is not about package management, but about interfacing between programs, libraries, and OS kernels.

  Then Why wine is important and what means by "Wine Is Not an Emulator"?

An emulator should load program instructions, parse them, and imitate their actions. So, emulators of ARM are possible on x86 (Intel). For example, there is the great qemu (name decoded as "Quick EMUlator"), or an older x86 emulator written in C - bochs. Emulators usually emulate an entire PC, starting from the BIOS, processors and HDDs, and they boot into the OS you install on this virtual PC.

WINE is not an emulator because it doesn't interpret instructions of target binary or simulate processors. It just loads a program into memory and provides an API translation from WinAPI to the host's POSIX/Linux APIs (and Xlib for graphics and mouse, and some other API for sound, etc).

  why it is projected (or what is need/why it should allow to) to run windows programmes on Ubuntu?

WINE was projected much before Ubuntu was created, the project was started in 1993 after Solaris's similar project "Wabi". It is useful to have the capability to start applications that are made to run on another OS, especially if this other OS is used widely, and has a lot of software (and games) created exclusively for it which can't be started directly from any other OS like Unix, Solaris or Linux.

  However it is not fully supports several software of windows and graphics.

WINE can't have the exact implementation of all WinAPI (some parts of it are undocumented) and all needed libraries. Some Windows programs are using APIs or libraries which are not implemented, so they can't work with WINE.

  And what is parallel packages like cross-over,play on linux?

Crossover is commercial variant of WINE with better support, some helper GUI tools (to easy install some software) and verified compatibility list of working windows programs and games. Usually you should pay some (40 US$) money to CodeWeavers, developers of CrossOver, in order to use the package for long time and have support. CodeWeavers (small company) supports wine project, by resending all patches to it, and by paying to several wine developers. According to wikipedia:

  "CrossOver is developed by CodeWeavers, based on Wine, an open-source Windows compatibility layer. CodeWeavers modifies the Wine source code, applies compatibility patches, adds configuration tools that are more user-friendly, and provides technical support. CodeWeavers employs several Wine software developers, and contributes source code to Wine."


concatenate two images one below the other

Just:

convert img1.png img2.png -append  full_img.png

See the manpage:

    -append         append an image sequence top to bottom (use +append for left to right)


A command returns exit code after it is executed.  $? variable will have the exit status of last executed command.
If this variable has value other than zero then command threw error.

 <command>
 if [ $? -ne 0 ] ; then
       echo error
 else echo no error
 fi


Type in terminal

sudo apt-get install default-jre

If you want the latest version of java (Java 8)
Then type in terminal this:

sudo apt-get install oracle-java8-installer

After you installed it press right click on it (The Minecraft.jar) then "Open with" after that you choose what version you want Java 8 or Java 7


Does anyone know how to automatically login to a website using a shell script?

You can use lynx to automate the login and it provides much more features.
Refer the man page of lynx here

lynx can be easily integrated with a shell script.
Using lynx with -auth parameter you can pass a id and password for authentication.

  -auth=ID:PASSWD set authorization ID and password for protected documents at startup. Be sure to protect any script files which use
  this switch.

Hope this helps.


In this context, IPv6 timeout simply means that Network Manager looked for but was not offered an IPv6 address. That's not alarming or uncommon, as relatively few Internet Service Providers are set up for IPv6 and, if they are, relatively few consumer-grade routers behind the ISP pass IPv6. As long as you get an IPv4 address, possibly something like 192.168.x.y, you should be fine.

If you'd like to troubleshoot why you have an address but no internet access, edit your post to add the result of:

nm-tool


Just had to run this before installing:
sudo apt-get install libtre-dev


Booting Into Fresh Install of Ubuntu on Lenovo x120e

Ended up installing an older version of Ubuntu 10.04.4 LTS - Lucid Lynx; after first disabling UEFI in the BIOS. Then, installed the latest Ubuntu 14.04.2 LTS - Trusty Tahr over it. This remedied the boot issue and am now able to boot into Ubuntu on my X120e.


Setting up Bluetooth on Ubuntu 18.04 LTS

Depending on the manufacturer of the BT chipset, it may not work at all with Hyper-V passthrough. BCM2070A0 chipsets don't like it at all. If you could share what chipset the BT in the computer uses, I may be able to help.

(posting as an answer because I can't comment)


NVIDIA Linux Driver Hack Gives You Root Access?

This affects all current Nvidia proprietary drivers available in the official repositories, PPAs or from the Nvidia website; until a fix is released, there's nothing to upgrade/downgrade to.
This is not the Ubuntu/Linux kernel's fault or problem, it's a vulnerability in the Nvidia driver - the kernel must let the driver run with very high privileges for it to properly function.

What can you do?
The exploit is a demonstration only; if you follow normal security practices and do not install random packages or execute or compile random binaries, you should be safe.
If you are still concerned and can do without the 3D functionality provided by the proprietary  drivers, consider uninstalling them, which leaves you with the open-source nouveau driver -- it is not affected by this vulnerability.


How can one get more than 12 commands in Compiz->Commands?

System > Preferences > Keyboard Shortcuts

That allows you to add conceivably an infinite amount of key bindings.


Use gparted to clone the MBR and Windows partition(s) to the 500GB drive. Then put it back in the "target" computer and install Ubuntu 12.04 on it, partitioning as desired. Don't forget the 100MB "boot" partition Windows 7 usually creates at the beginning of the drive.

This will work fine as long as Windows 7 is installed at the beginning of the drive, i.e. Fedora is installed after Windows as seen in gparted. If you want to give the power user way a try, even dd will do the job, i.e. dd if=/dev/sdSOURCE of=/dev/sdTARGET bs=1M, and then use gparted on the target (500GB) drive to remove the Fedora 16 partitions.

Also, if grub is your bootloader, as is normally the case when dual-booting wih Windows, removing Fedora may also remove your ability to boot Windows until Ubuntu 12.04 installs it's own copy of grub with the appropriate boot entries.

Whatever you do, be sure to keep your 320GB source drive safe until you verify everything is working on the 500GB drive, including Windows. You can then wipe it, re-use it, etc.


Running multiple monitors with different DPI

First off I will say that I am no expert at this and anyone else is welcome to provide insight or correction...
I was able to somewhat duplicate the scenario. I have a laptop-->1920x1080 and a TV-->1280x720
My first "answer" is, I was able to push the TV to 1920x1080i without a lot of extra wizardry involved, so have you tried just moving your 34" LG up to a different resolution?
...but with me using the resolutions that were "auto" selected, this is what worked for me:
xrandr --output eDP --auto --verbose --output HDMI-A-0 --auto --scale 2x2 --panning 2560x1440+1920+0 --right-of eDP
This the part where I can use some input... In the panning, I took my TV H-resolution and subtracted it from the H-resolution of the laptop... and added that to the laptop resoultion:
1920 - 1280 --> 640 + 1920 = 2560
.... and then the same with the V-resolution
1080 - 720 --> 360 + 180 = 1440
This was the only way I could get the scaling to behave properly on the TV, otherwise it would be limited to a small portion of the screen and the rest of the screen was not accessible by the cursor.
I am positive that there is a more elegant way of coming up with this, and I am really don't even think it is fully correct, because when crossing between the screens the bottom of the TV doesn't exactly line up with the bottom of the laptop screen. Exactness is going to take more experimenting.
I ran a Transformers action scene on youtube (on the TV) for a few minutes to see if it would behave... unfortunately I didn't realize my laptop wasn't plugged in and it shut off so I only got about 3-4 minutes of testing...
In your case:
With respect to your hesitation to use xrandr... there are a couple of things you can do...

First grab the current settings and put them in the command line or even a script and call it with a launcher.
xrandr --current will show your current config.
You could type out xrandr output eDP-1-1 --auto --verbose --output DP-1-3 --auto --right-of EDP-1-1 and execute it. Nothing should happen, this is your current config... but once you start testing, if you end up screwing up the display you could always "up-arrow" to this command and get back to this config. (A while ago, when I was having a similar problem, out of laziness I made a launcher on the panel and put this command in it... so I would just log in and hit the launcher and fix my screens)
If you find that your screen blows up and you can't move your mouse or get back to your terminal, then CTRL+ALT+F4... log in... sudo init 3 to kill your graphical log in... and then sudo init 5 to start it back up again. I believe it takes you back to the graphical login, if not, then either CTRL+ALT+F1 or CTRL+ALT+F7 will. Log back in and continue testing. I haven't been able to cause any permanent damage with xrandr yet...

You may want to check my math but I think your command will be:
xrandr --output eDP-1-1 --auto --verbose --output DP-1-3 --auto --scale 2x2 --panning 5120x3240+3840+0 --right-of EDP-1-1
If you wanted to use a specific resolution instead of "auto", you would remove --auto and replace it with --mode ####x####(an available resolution)... but if there is multiple of the same resolution (ie 1080pvs1080i) you may want to use the register that it has assigned to it, like --mode 0x254 (be aware these may not be persistent).... refer to your xrandr --verbose output.
Again, I am no expert on this, but you can experiment with those numbers, the same way I did until I found a working set. It seemed that the panning was the key when I added the 2x2 scale.
I have read that scaling doesn't always work well with NVIDIA cards.


python: os.system does not execute shell comand

I figured out the problem. I should close file graph.dot before executing the command.


Where is the python environment in Ubuntu 18.04?

Did you tried the where python command ? It should print you the path to your python. It's possible that yours is in /usr/bin/.


CPU temperature goes high when playing video in a browser - what can I do?

The problem is that browsers don't support hardware video decoding on Linux, but other players, like VLC, do.

That's why when you are playing video in a browser, it requires more CPU power and more heat is generated.

You can enable hardware video decode in some browsers, but it is not guaranteed to work smoothly on Linux.


How to inject or know if my wireless card is injectable

The aireplay-ng command can do this for you. Once your card is in monitor mode, just run:

sudo aireplay-ng -9 <your_interface>

Note that your card will need to support monitor mode (you can check this with iw list), and you will need the aircrack-ng package installed.


Axure doesn't have Linux version, but you can try to install it under wine.

I would like to mention that I tried it using Wine. it gets installed but unable to run.


Service won't start when using the service utility but works when calling the init script directly

The problem was that the user mule didn't have a shell. It was set to /bin/false.

The -m flag for su preserves the environment, so when I called sudo /etc/init.d/mule start the SHELL environment variable was set and passed down to su.

But when calling sudo service mule start the environment is cleaned. From service man page:

  service runs a System V init script or upstart job in as predictable an environment as possible, removing most environment variables and with the current working directory set to /.

Therefore the environment does not contain a SHELL variable and the user mule does not have a shell as well. So no command is executed it seems.


Canon MP280 scanner not recognised in 12.04 after updates

Press Ctrl + Alt + F1, in the terminal run:

sudo add-apt-repository ppa:michael-gruz/canon-trunk

then

sudo apt-get update

you should get a prompt to install new packages, install them. Report back.

It would be helpful if you provided us with a list of specific things you tried that didn't work.


Did these issues occur when using the live "cd"? (you probably used it on a USB stick).

If you haven't installed/activated a driver for your Nvidia card yet, I'd start there.

If you're using a wireless mouse, I would try plugging in the receiver into a different port to see if that helps.


won't pass the terminal on linux 12.10 on a I Mac g5

Try typing CTRL+ALT+F7. If that doesn't work try typing "startx" into the terminal.


vim-airline status bar not shown when only single file is open

Put de following line in your .vimrc:

set laststatus=2

This helped me on the commandline :)


upgrade 16.04 > 16.04.1 = unable to move windows (even though move windows is checked in ccsm) and other gui issues

You need to disable the ccsm "window decoration" as it conflicts with the newest unity plugin.

Also, you need to enable the unity plugin in ccsm.

When using unity, all you need to do is click and drag down from the top panel to grab a window to move it.

I have found that alt button1 is a good option for the move plugin that works. Just press alt and hold down left click to move a window.


How to set proper resolution at bootloader and screen login

As to the login screen: try a static X11 configuration by creating a file /etc/X11/xorg.conf.d/10-monitor.conf with content such as
Section "Device"
  Identifier "Configured Video Device"
  Driver "intel"
EndSection

Section "Monitor"
  Identifier  "Configured Monitor"
EndSection

Section "Screen"
  Identifier "Configured Screen"
  Device "Configured Video Device"
  Monitor "Configured Monitor"
  SubSection "Display"
    Modes "1600x900" "640x480"
  EndSubSection
EndSection

Useful web page: https://wiki.ubuntu.com/X/Config/Resolution
As to the grub screen: did you consult the grub info file?
Note on gdm3
This only works with gdm3 if wayland is disabled in /etc/gdm3/custom.conf, i.e. remove in /etc/gdm3/custom.conf the '#' comment sign from the line
#WaylandEnable=false


Can't play LOL on ubuntu 14.04 Bugsplat error

For games that are not compiled to run on Linux it is better to use 'Play on Linux' since it does have some automated scripts to run some games properly.

$ sudo apt-get install playonlinux

or (for earlier versions):

$ wget -q "http://deb.playonlinux.com/public.gpg" -O- | apt-key add -
$ sudo wget http://deb.playonlinux.com/playonlinux_`lsb_release -sc`.list -O /etc/apt/sources.list.d/playonlinux.list
$ sudo apt-get update
$ sudo apt-get install playonlinux


Wifi is connected, but no internet access. (Ubuntu 12.04 LTS)

If it's connected, then you have 99% changes that it isn't a problem with your computer.
Instead, you should make sure your router or modem is working correctly.
In most cases, a LED will indicate wether if you're connected to the Internet or not.

If that can't be the case, you need to provide more information, such as:

Output of route -n
Output of ifconfig
Output of sudo iptables -L
Output of ping -c5 4.2.2.2 (via @Alaa)

In order for us to be able to better diagnose the problem.


Script That Checks For Newly Installed Software

Workaround: If you use unity, when you install software using the software-center (ubuntu software center), there's a note at the bottom of the window asking you if you want to create a unity launcher. You can click "Yes" or "No" accordingly.
On the other hand, you could create some script that checks the log file:

cat /var/log/dpkg.log|grep installed

There are triggers, but as far as I can read, they are incorporated in debian packages:

man debian-trigger deb-triggers

(I wonder how desktop-file-utils triggers dpkg: Processing triggers for desktop-file-utils)

less /usr/share/doc/dpkg-dev/triggers.txt.gz
ls /var/lib/dpkg/triggers/

Finally, maybe you could use dnotify for your script and watch the /usr/share/applications directory, where .desktop files are saved:

https://serverfault.com/questions/50127/how-to-automatically-run-a-script-when-the-contents-of-a-directory-changes-in-li


Connecting to Ubuntu server via SSH externally

First of all, the correct command is:
ssh user@my.external.ip.address

And the router should be configured to forward the SSH port 22 to your server's local IP address.

For further debugging:

1) Check that port 22 (SSH) is open on your server and on the router (port forwarding).

2) Check that the SSH server is running on your server

3) Use ping, ssh -v while connecting and look at /var/log/auth.log to debug any further connection problems.

1) On your router: follow router specific instructions

On your server: sudo ufw status (unless you use another firewall configuration utility) or sudo iptables -L (general method, but complex output)

To open port 22: sudo ufw allow 22

cf https://help.ubuntu.com/12.04/serverguide/firewall.html

2) Check it is installed: dpkg -l openssh-server

Check it is running: service ssh status or ps aux | grep sshd

3) On the connecting client:

ping my.external.ip.address
ssh -v user@my.external.ip.address

On the server:

sudo less /var/log/auth.log

You can check the router logs as well if necessary.

Here's an online port scanner: https://www.grc.com/x/ne.dll?bh0bkyd2

I think you can use tools like nmap or other as well, but I'm not that familiar with them yet.

Dealing with a changing external IP address:

1) Get a dynDNS or similar account: http://dyn.com/dns/

Lists of dynamic DNS providers:

http://dnslookup.me/dynamic-dns/
http://www.dmoz.org/Computers/Internet/Protocols/DNS/DNS_Providers/Dynamic_DNS/

2) Another solution, is to set up a crontab job, which regularly mails you your external IP address or puts in into an online storage service like dropbox.

Here's a script a friend of mine uses:

    #!/bin/bash
    # Bash script to get the external IP address
    MYWANIP=$(curl http://mire.ipadsl.net | sed -nr -e 's|^.*([0-9.]+).*$|\1| p')
    echo "My IP address is: $MYWANIP"

    IPold=$(cat /home/USER/Dropbox/test.txt)
    echo "Previous IP Address: $IPold"

    if [[ $IPold != $MYWANIP ]] ;
    then
      echo "New IP"
      rm /home/USER/Dropbox/test.txt
      echo $MYWANIP >> /home/USER/Dropbox/test.txt;
      echo $MYWANIP;
    else
      echo "Same IP";
    fi

    # example crontab entry:
    ## m h  dom mon dow   command
    ## */10 * * * * /home/USER/Dropbox/test_ip.sh

Router port forwarding:

1) First, figure out your router's local IP address by running:

ip route | grep default

It is usually something like 192.168.x.x.

Alternative ways and other OS solutions:

https://www.cyberciti.biz/faq/how-to-find-gateway-ip-address/
http://www.howtogeek.com/233952/how-to-find-your-routers-ip-address-on-any-computer-smartphone-or-tablet/
https://wiki.amahi.org/index.php/Find_Your_Gateway_IP
https://portforward.com/networking/routers_ip_address.htm

2) Using any computer connected locally to the router, access the IP found previously, i.e. via http://192.168.1.1 for example. This should bring up the router configuration interface.

3) The next steps vary depending on your router. Here is how it is done on a router with OpenWRT for example:

https://newspaint.wordpress.com/2012/08/26/how-to-add-a-port-forward-using-the-web-interface-on-openwrt-10-03-1/


Boot menu does not show up - dual boot Windows 8 and Ubuntu 12.04

You will need to use the 64-bit version of 13.04, 12.10 or 12.04.2 and from the UEFI menu boot the flash drive in UEFI mode. That way it will install in UEFI mode. You will also need Boot-Repair, for several work-arounds for UEFI Vendor issues, and grub bugs.

The system needs Windows 'fast start up' (hibernation) and UEFI/BIOS 'fast boot' 'quick boot' UEFI settings turned off or disabled. Vital for some systems.

Use the Windows Disk Tools to shrink Windows main partition, but not to create a new partition, if installing on same drive. Reboot after shrinking so it can run repairs to its new size.

Backup EFI partition and Windows partition before installing Ubuntu.

This shows install with screen shots.

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

this also shows Windows 8 screens

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI

Full Ubuntu 13.04 liveDVD or USB Install with Boot-Repair included (for newer computers)

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


How to stream music over the network to multiple computers?

Yes, with pulseaudio this can easily be done. You will need to install and run paprefs  that makes your sound devices available over the network.

These settings allow both sound sources and sinks to be published over the network, ideally to another pulseaudio server.

In case you have your server setup without desktop manager you will need to install a sound system first (see this question). You can then edit /etc/pulse/default.pa uncommenting these lines in the Network access section:

load-module module-esound-protocol-tcp
load-module module-native-protocol-tcp
load-module module-zeroconf-publish

If you want to use RTP sender uncomment these lines the RTP sender module section:

load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
load-module module-rtp-send source=rtp.monitor

The pulseaudio server needs to be started as a daemon with pulseaudio -D in case it's not yet running. For optimizing sound qualitity settings in the /etc/pulse/daemon.conf may be adapted to personal needs.

An alternative method to stream audio in your network would be to setup an Icecast Server (see this question).


Here is a work around. In the panel properties set the panel to autohide. This way you should be able to grab the window and move it. Or use the expo effect and move the window that way.


Could this be the same that is mentioned at
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1568604
?

One workaround until a fix is released seems to be to hit Ctrl+Alt+F1 then Ctrl+Alt+F7.

A Debian user reported that running xset dpms force off and then hitting a key also worked.

This was the most pleasant workaround for me:

Put the following into /etc/lightdm/lightdm.conf.d/50-workaround-mouse-cursor.conf:

[Seat:*]
session-cleanup-script=/usr/local/bin/VTswitch

And the following into /usr/local/bin/VTswitch:

#!/bin/sh
n=$(fgconsole) || exit 1
case "$n" in
    [0-9])
        /bin/chvt 1
        /bin/chvt "$n"
        sleep 1
        ;;
    *) echo "error from $0; fgconsole gave $n" >/tmp/VTswitch.log
esac

And run chmod +x /usr/local/bin/VTswitch. After a restart, you should no longer lose the cursor on suspend/lock.


Apt-get operations fails with huge error message

Panasonic driver was creating the issue. I didn't understand how but. What I did was delete, all instances of the below two folders from all places by searching for it.

panasoniclpd-init
plymouth

I deleted it from /etc/int.d/ first and then recursively searched for all other instances and deleted those too. After it i rebooted, and all was fixed.


Netbeans styles. Are there style profiles similar to Notepad++?

I don't know whether there is any style presets other than the default ones you can use, but you can definitely change the various fonts and there sizes, colors etc.

Open netbeans and Go to Tools → Options from menu
Select the Fonts and Colors tab. The window will look like below

Then select the catagory and change fonts, size and colors as of your choice.

Please note that, foreground color refers to the color of the text, which is may be of your interest. Background color is color behind those text.

Also, you may alternatively try some other style presets given by default by changing the value of the dropdown selection menu named profile.

Hope it will help.


Can I remove cpp from Ubuntu without causing any issues?

You shouldn't have any issues with a server not having a compiler installed.

Normally a compiler does not belong to a LAMP server for security reasons. It "helps" an attacker to type in some code, compile it to a program, execute it and do a lot more damage.

A possible exception is if you have a device driver not part of the standard distro. Every time you update the kernel you would have to recompile that driver.


UBUNTU 14.04 Right mouse click and paste (shift+ctrl+v or ctrl+v) does not work when pasting on to the terminal. HELP!

Select what you want to copy, then use the middle button of your mouse to paste. If you don't have a middle button, try pressing both mouse buttons at once.

In any case, CtrlV isn't supposed to work. The shortcut for pasting into a terminal after having copied with CtrlC is ShiftInsert


20.04 - Logitech MX Keys won't pair with Bluetooth

I fixed it, installing some missing firmware. All I had to do is run this command:
cd /lib/firmware/brcm && sudo wget https://github.com/winterheart/broadcom-bt-firmware/raw/master/brcm/BCM20702A1-0a5c-21e8.hcd

and unplug and plug again my bluetooth dongle


"/usr/bin/env: ‘node’: No such file or directory" even though it is in PATH

Install nodejs8

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

Install nodejs10

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

Then try again with node


If both command are working, you should try

curl -s http://s3.aws.com/backup.sql | sudo -u postgres psql


What is the difference between optirun and primusrun?

Bumblebee is the current workaround for using Nvidia optimus with linux.

At the heart of bumblebee has been VirtualGL which is now being superseded by Primus.

If you have Bumblebee you'll know that to use your discrete card you need to invoke optirun application from the command line and then after a short wait your application runs using the VirtualGL backend.

Unfortunately the VirtualGL backend does not play nice with some applications, particularly Wine and Crossover.

Primus is the replacement of optirun and it all it means to the end user is that instead of using optirun you now invoke an app with primusrun application.

The developers of Bumbleebee highly recommend primus over VirtualGL because there are a host of benefits.

One benefit is that it works perfectly with Wine and Crossover meaning You can play your Windows games on your discrete card instead of having to use your integrated one and has substantially better performance too.


Very nice laptop which unfortunately gets hot in Windows and Linux, the mobility HD 3670 graphics doesn't seem to be supported any longer in the Ati binary driver for linux...  Don't worry though, a lot of work has gone into the open-source variant which seemed to work for you and will get even better in October when Ubuntu 13.10 is out...

As for heat, you could try a few things to lighten the load like switching from a 3D intensive desktop (unity) to Xubuntu (xfce) or even lubuntu (lxde)...  Also try installing Jupiter for power management which lets you turn off hardware you don't use and helps with power stepping...  http://www.webupd8.org/2010/07/jupiter-ubuntu-ppa-hardware-and-power.html


Failed to install bootloader /dev/mapper no /dev/sda

If you just want a clean install, I would recommend booting from a live cd and removing all partitions, effectively wiping your entire hard drive. Then try the Installation again.

Remember that ppa's for Ubuntu do not necessarily work with Mint. I don't know if boot-repair is supported on Mint.

How to delete partitions using gparted

Start gparted from a live cd ("try ubuntu" mode)
Select the correct device (physical hard drive) in the right upper corner

Click(top menu) on Device > Create Partition Table
Select MSDos or GPT and click apply (you might get a warning about not being able to inform the kernel)

Reboot and start the installer.


1.Log in into your windows 8 os.Download and install EasyBCD from here.

2.Under linux section,set grub2 as bootloader add a boot entry for your Ubuntu Partition.And also add entry for your windows 8 partition.

3.reboot

Or

try boot-repair disk .
Manual: https://help.ubuntu.com/community/Boot-Repair


Install ubuntu server 12.04.2 LTS with RAID 5

If your intention is to use the RAID for general storage not directly tied to your Ubuntu install - i.e. not using it for /home, /var or other directories - I would set up the RAID after installing onto the 500GB drive. You would still have the option later on for moving those directories to partitions created on the RAID.


blinking cursor in the left when booting from the harddrive but works fine from flash drive

Same happened to me, ran repair etc, re-installed twice the second time without internet access and it booted up ok.


/usr/src full with header files, purge and autoremove not helping

If you've upgraded your system or had an update with a new kernel, do a reboot before running below command
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
This will remove all the unused headers and images. When you reboot again, you will see only current kernel being listed in grub menu
I drop a reference here in case of if you wonder how that regex works