Hearthstone game starts but stays blurry

Temporary workaround that will still result in some black screens, but not in-game:
Create the Software/Wine/Direct3D registry key (if it doesn't already exist) and set "StrictDrawOrdering"="enabled".
More information: https://wiki.winehq.org/Useful_Registry_Keys


Your xorg.conf has two device sections:

Section "Device"
    Identifier  "aticonfig-Device[0]-0"
    Driver      "fglrx"
    BusID       "PCI:1:0:0"
EndSection

Section "Device"
    Identifier  "intel"
    Driver      "intel"
    Option      "AccelMethod" "uxa"
EndSection

This is causing your machine to attempt to load both the fglrx and the intel drivers. While it is actually possible to use multiple graphics cards on Linux, I doubt you can do that with an integrated (intel) and a dedicated (ATI) one. It is very likely that removing the intel section will return everything to normal (assuming the fglrx driver works on your system but as I understand it used to, so it probably will). So, comment out the intel section and keep only fglrx:

Section "Device"
    Identifier  "aticonfig-Device[0]-0"
    Driver      "fglrx"
    BusID       "PCI:1:0:0"
EndSection

#Section "Device"
#    Identifier  "intel"
#    Driver      "intel"
#    Option      "AccelMethod" "uxa"
#EndSection

Then restart X and, assuming there is no other issue, everything should be fine.

If not, you can try creating a new xorg.conf using ATI's configuration tool, aticonfig:

sudo aticonfig --initial

If you do go down this road, I also recommend you read through that program's options, they're quite extensive:

aticonfig --help | less

Finally, the Arch wiki page on ATI/AMD cards is a great source of information on this kind of thing.


Compiz antialiasing with xserver-xorg-video-radeon?

I think that this is an internal compiz issue - not necessarily one of aliasing. The window buffer is sent to this little window preview and scaled down, giving it that crunchy feel. Perhaps you should report a bug dealing with that plugin.


How can I access one desktop session from another on the same machine?

Using X2Go should work, actually. I see no reason why it shouldn't.

However, I would not recommend using a terminal server for this. I think it would be much better to use a nested X server, such as Xephyr.


Steam (Dota2, CSGO) not launching after 16.10 upgrade from 16.04

Open a terminal

nano fix_steam

Paste this

#!/bin/bash

find ~/.steam/root/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" \) -print -delete

find . -name libgpg-error.so.0 -exec rm {} \;

Ctrl+O to save, then Ctrl+X to exit

chmod +x fix_steam

^ make the script executable

./fix_steam

^ run the script

This simple script deletes some of the (out of date) shared libraries (like windows dll's) than steam installs, which are built to work with 14.04 I think. The so's are incompatible with your system, you have newer versions installed so you can just delete the steam ones and Linux will pick up your new ones.


To see information from your most recent boot, run

journalctl -b

To see the details that were logged during a previous boot, just in case you need to compare them with your most recent, run

journalctl --list-boots

You will then see results similar to the output shown below, but will need to page to the bottom of the output to see the most recent.

-2 5d45a92d9d5a42d8ae1c8b454f7e1314 Sun 2018-08-19 02:29:21 PDT—Sun 2018-08-19 02:36:26 PDT

-1 d5b8ebc236734ee69c48c3809ae452b1 Sun 2018-08-19 02:43:06 PDT—Sun 2018-08-19 07:20:54 PDT

 0 6f844406186e4e31ba0375a7bc736242 Sun 2018-08-19 10:43:31 PDT—Sun 2018-08-19 18:54:51 PDT

At the very bottom of the output, you will see a line that starts with 0, which will represent your most recently logged boot info, the same info you saw when you ran journalctl -b.

To see the data that was logged during the previous boot, copy the identifier from the line that starts with -1 and run the following

journalctl --boot=d5b8ebc236734ee69c48c3809ae452b1

To go back further in time, just change to -2, -3, -4, etc.


Resolution not in xrandr and make new Resolution permenent?

I had a similar problem that I solved by putting the xrandr commands in ~/.xprofile


HP Envy m6 Subwoofer Beats Audio not working

Here's what I did to solve my issue with the subwoofer.

I searched for ALSA Tools in software manager. Do note, ALSA Tools now have HDAJackRetask packed into it.
I installed ALSA Tools from the search result. Fired up HDAJackRetask. Selected ALC3241. Here I noticed my Pin IDs were set up as below:

Pin 0x12 = internal mic
Pin 0x14 = internal speaker
Pin 0x15 = headphone
Pin 0x1a = microphone

To activate the subwoofer, all I had to do is select 'Show unconnected pins', override Pin ID: 0x17 to Internal speaker(LFE) and click apply now. I checked the sound output using VLC/Rythmbox/Videos. Finally I clicked Install boot override to make the setting permanent.


You should be able to install Ubuntu over Ubuntu Netbook, however bear in mind Netbooks are not very powerful - running a full Ubuntu install may be too much for them.

If you wish to proceed, see https://help.ubuntu.com/community/Installation/FromUSBStick for instructions on how to install from a USB drive - there is a little more to it than simply unzipping  and copying it to the USB drive.


Duplicity with Google Cloud throwing TypeError

your probably not using the latest https://launchpad.net/duplicity/+milestone/0.8.14 .
lots of encoding errors have been fixed since the port to python3.
in case you are backing up to S3 there is also the new boto3+s3:// based on the maintained boto3 module.
here the install notes from the release announcement (take care to remove the distro's duplicity as suggested in the bottom first)

There are multiple options both stable and daily:

Source - https://gitlab.com/duplicity/duplicity
Stable tarball install - https://launchpad.net/duplicity/+download
Daily duplicity PPA - https://code.launchpad.net/~duplicity-team/+archive/ubuntu/duplicity-develop-git
Stable duplicity PPA - https://code.launchpad.net/~duplicity-team/+archive/ubuntu/duplicity-release-git https://code.launchpad.net/~duplicity-team/+archive/ubuntu/duplicity-develop-git
Stable snap builds - “sudo snap install duplicity —classic"
Latest snap builds - “sudo snap install duplicity —classic —edge"
Latest pip3 builds - “sudo pip3 install duplicity"

NOTE: UNinstall duplicity first if it was installed via the distribution repository.  For Ubuntu, that would be "sudo apt-get purge duplicity".

..ede/duply.net


How to define an environment variable systemwide with /etc/environment?

You can define a variable like pythonpath like this export PYTHONPATH=$PYTHONPATH:/home/chris/my_new_path/ this concatenates the existing data of your variable with the new path.

You can check if your variable is set correctly with echo $MY_VAR and you can check your environment variables with the command printenv everything from a console.

You can add the export command to your ~/.bashrc or ~/.bash_aliases file in order not to execute it manually every time you log in.


OS-Uninstaller does not uninstall any other operating systems except for the OS that is selected to be uninstalled, but if you choose to uninstall an OS it will remove everything on that partition including the data. If you want to save any of the data that is stored on that partition then back it up before you uninstall the OS that is on that partition.
If you tell OS-Uninstaller to uninstall the Windows 10 that is installed on the HDD it will not uninstall the other Windows that is installed on the SSD. If there are multiple partitions on the HDD OS-Uninstaller will not delete any other partitions on the HDD except for the partition on which Windows 10 is installed.


How can I configure proxy authentication?

Try specifying the proxy address as username:password@address


No idea of the actual answer, but here are some things to think about:

For the last year or two, many, if not all, settings have been migrated out of Xorg.conf.  I think they ended up in hal.  If this is the case for the settings in question, changes in the Xorg file would have no effect.  I ran into this when I was trying to fix touchpad issues.  I've heard some rumblings from the horizon that the whole X11 system is being depreciated in the not too distant future. (google wayland).

Screen shots are great, but I'm not sure what I'm seeing.  It looks like some of the characters are not in the "English" (iso-whatever) character set.  If that's what you're seeing, check your language and font settings for your desktop and individual applications.  Also check your locale settings and make sure you're not "turning Japanese" ;)

Also, check what fonts you have installed.  There should be a font manager in your system settings.  Linux comes with only a few installed by default (but there should be more than enough to get a display like the one you showed to work right.)  There's usually also an option to import Windows fonts if Windows is installed on your system.


Unable to load Windows and unable to mount Windows partitions (probably corrupted )

ntfs-3g has an option to deal with this kind of situation: remove_hiberfile (see man page).

The man page goes on to warn about the consequences of using that option.

  Please note, means that the saved Windows  session  will  be  completely lost. Use this option under your own responsibility.

If those are acceptable for you, you can try to mount your partition by adding remove_hiberfile to your -o string.


what are the issues if any when installing Ubuntu only OS on a 2009 MacBook pro

You do not need any extra drivers. Only maybe nvidia, if there is an Nvidia adapter. But there may be some tricks with EFI, if you want to keep OSX.


Is there a better way of changing transparency of gnome terminal window? I don't like using the mouse

Run dconf watch / in the terminal and then change the transparency value using the mouse. You'll see output like so:

$ dconf watch /
/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/background-transparency-percent
  51

/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/background-transparency-percent
  51

/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/background-transparency-percent
  52

Note the dconf key path: /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/background-transparency-percent (it might be different for you). You can use that with dconf write to set the transparency:

dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/background-transparency-percent 60
dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/background-transparency-percent 10


I found a solution on the Ubuntu forums (it's a link from the link Michael Barlach provided).

First run this in a terminal:

sudo chattr +i ~/.config/xfce4/desktop/icons*

This will lock your icon placement, so that when the desktop is resized, your icons technically remain in the same place.
When your desktop gets resized, press F5 to reload it.
Optionally, you can create a launcher on the panel with this command: xfdesktop --reload which will reload the desktop.

If you need to reverse the lock on your icon placement run:

sudo chattr -i ~/.config/xfce4/desktop/icons*


As @muru commented, there are references to a mvn spring-boot:run command (asking Google about that second part), so that's probably what that's meant to be.

What might have happened is that the writers of the doumentation got to that command through history, had the cursor on the "m" for mvn then pressed Ctrl+C to cancel the command. The shell will then print a ^C (to indicate that the keystroke was received and the command was cancelled) which would then overwrite the "mv" in mvn... Leaving you with one single non-sense ^Cn.


Unable to boot Ubuntu 20.04 LTS, always end up in busybox

Hard drive has bad sectors, backup from livecd with ddrescue if there's anything important, replace drive and reinstall.


Synaptic 'Complete Removal' messed my system

You can look to /var/log/apt/history.log and see what has been removed.

Then just re-install what is missing.

I would suggest to start with

sudo apt-get install --reinstall ubuntu-desktop

This may be enough.


You can download all the official Ubuntu and Ubuntu community flavour iso files (Kubuntu, Lubuntu, ... Xubuntu) via this link,

http://releases.ubuntu.com/

For Lubuntu you arrive at

http://cdimage.ubuntu.com/lubuntu/releases/

and yes, these are http (not https) URLs.

But there is a signing mechanism. The gpg-files contain signatures from Ubuntu, and they can be used to verify that the MD5SUMS or the stronger SHA256SUMS are correct.

The accepted answer at the following link describes how to verify the checksum files with all the necessary details,

verifiying ubuntu iso with repository gpg-keys


How do I install a .zip file via the command line?

You cannot install a zip file by itself. First unizip it (unzip yourzipfilename.zip) then navigate to the extracted folder (cd yourzipfilename), then install it's contents using command(s) that are appropriate to the content type.


UBUNTU 20.04 on Raspberry Pi 4/8GB, direct boot from SSD

I managed to install and run Ubuntu x64 on pi4-8gb  from a usb ssd by :

Upgrade bootloader instructions: https://peyanski.com/stable-raspberry-pi-4-usb-boot/ (remember to copy all elf and dat files)

Install ubuntu on the usb (you can use etcher or raspberry imager)

Overwrite elf and dat files (with the ones save earlier)

Decompress vmlinuz, instructions here https://www.raspberrypi.org/forums/viewtopic.php?f=131&t=278791

if you want to use WIFI you can setup SSID and pass in the network-config file and after boot issue the following commands :

sudo netplan --debug try (to check for errors)
sudo netplan --debug apply (to apply the config)

You can check the IP using ip addr show
If you plan to use a SSD via USB 3 ports do yourself a favor and get a adapter with UASP (explication here https://www.youtube.com/watch?v=t0kYcM1E5fY )
L.E. After install and update I made an image of the SSD. Restoring that image will be way faster then all the steps mentioned above (if you use linux you can make image a drive using gnome-disk-utility).
Sorry for all the links ...


Are you using Google Chrome? Then you're using Google's implementation of Flash called Pepper. Pepper has a bug where flash videos cannot go fullscreen.
Chrome fails to render Flash video in full-screen correctly
Go to about:plugins in the chrome omnibar.
Then, on the right side click Details and disable the flash plugin PPAPI and use the Mozilla plugin. Hopefully it gets fixed in an upcoming Chrome release.
EDIT: This appears to be fixed in Google Chrome v21.


Things I have done

Installed UbuntuStudio 20.10, then upgraded to a 21.04 using : do-release-upgrade -d

Result of uname -a
5.11.0-13-lowlatency #14-Ubuntu SMP PREEMPT Fri Mar 19 18:13:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Make sure linux-firmware is installed
sudo apt install linux-firmware

The wifi is Intel AX201, relevant data is available at https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
The link available on this page to get specific firmware  for that wifi card is totally outdated.
One should download the one provided at : https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
For example linux-firmware-20210315.tar.gz, which is the latest at the time I'm writing.
wget -O /tmp/linux-firmware-20210315.tar.gz https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-20210315.tar.gz
cd /tmp/
tar xfz linux-firmware-20210315.tar.gz

At this stage, it's interesting to compare, what is in this archive, with what is already in the system, and what is coming from the outdated link I mentionned :
cd /tmp/
wget -O https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi/iwlwifi-qu-48.13675109.0.tgz
tar xfz iwlwifi-qu-48.13675109.0.tgz
cd wlwifi-Qu-48.13675109.0
for i in /tmp/iwlwifi-Qu-48.13675109.0/iwlwifi-Qu-* ;do  d=$(echo $i | cut -d/ -f 4) ;\
    md5sum /lib/firmware/$d ;\
    md5sum /tmp/iwlwifi-Qu-48.13675109.0/$d ;\
    md5sum /tmp/linux-firmware-20210315/$d;echo;\
done

The last command results gives :
4b5d629ac5b4a1e117b1ac2b4015cd67  /lib/firmware/iwlwifi-Qu-b0-hr-b0-48.ucode
292972c64b0939e4a9c85260a2605077  /tmp/iwlwifi-Qu-48.13675109.0/iwlwifi-Qu-b0-hr-b0-48.ucode
4b5d629ac5b4a1e117b1ac2b4015cd67  /tmp/linux-firmware-20210315/iwlwifi-Qu-b0-hr-b0-48.ucode

8123d7111ab0ef605e63d71bcbd6a3a6  /lib/firmware/iwlwifi-Qu-b0-jf-b0-48.ucode
ece6e6651021f5b598ce9b930aa85ee3  /tmp/iwlwifi-Qu-48.13675109.0/iwlwifi-Qu-b0-jf-b0-48.ucode
8123d7111ab0ef605e63d71bcbd6a3a6  /tmp/linux-firmware-20210315/iwlwifi-Qu-b0-jf-b0-48.ucode

16e59dd2792af9a569a958ff92bd3679  /lib/firmware/iwlwifi-Qu-c0-hr-b0-48.ucode
92c163abb627018a36d0b772fc7f9328  /tmp/iwlwifi-Qu-48.13675109.0/iwlwifi-Qu-c0-hr-b0-48.ucode
16e59dd2792af9a569a958ff92bd3679  /tmp/linux-firmware-20210315/iwlwifi-Qu-c0-hr-b0-48.ucode

fa192c1c7b6592ed81b58673431ffd72  /lib/firmware/iwlwifi-Qu-c0-jf-b0-48.ucode
43b1df97a1ad32b9964df5cb0befdbd7  /tmp/iwlwifi-Qu-48.13675109.0/iwlwifi-Qu-c0-jf-b0-48.ucode
fa192c1c7b6592ed81b58673431ffd72  /tmp/linux-firmware-20210315/iwlwifi-Qu-c0-jf-b0-48.ucode

So now I know I have the latest available, and that the ones coming from iwlifi archive are outdated.

Problems I still face

Unstability of the A2DP Bluetooth sink to my Bluetooth speakers, with appearance in /var/log/syslog of lines like :

hci0: urb 00000000bb1ddbc1 submission failed (90)
hci0: sending frame failed (-90)
hci0: SCO packet for unknown connection handle 0

HW Specs
My hw specs are as follows :
0000:00:00.0 Host bridge: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers (rev 01)
0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake GT2 [Iris Xe Graphics] (rev 01)
0000:00:04.0 Signal processing controller: Intel Corporation Device 9a03 (rev 01)
0000:00:06.0 System peripheral: Intel Corporation Device 09ab
0000:00:07.0 PCI bridge: Intel Corporation Tiger Lake-LP Thunderbolt 4 PCI Express Root Port #0 (rev 01)
0000:00:07.1 PCI bridge: Intel Corporation Tiger Lake-LP Thunderbolt 4 PCI Express Root Port #1 (rev 01)
0000:00:0a.0 Signal processing controller: Intel Corporation Device 9a0d (rev 01)
0000:00:0d.0 USB controller: Intel Corporation Tiger Lake-LP Thunderbolt 4 USB Controller (rev 01)
0000:00:0d.2 USB controller: Intel Corporation Tiger Lake-LP Thunderbolt 4 NHI #0 (rev 01)
0000:00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller
0000:00:12.0 Serial controller: Intel Corporation Tiger Lake-LP Integrated Sensor Hub (rev 20)
0000:00:14.0 USB controller: Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller (rev 20)
0000:00:14.2 RAM memory: Intel Corporation Tiger Lake-LP Shared SRAM (rev 20)
0000:00:14.3 Network controller: Intel Corporation Wi-Fi 6 AX201 (rev 20)
0000:00:15.0 Serial bus controller [0c80]: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #0 (rev 20)
0000:00:15.1 Serial bus controller [0c80]: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #1 (rev 20)
0000:00:16.0 Communication controller: Intel Corporation Tiger Lake-LP Management Engine Interface (rev 20)
0000:00:17.0 System peripheral: Intel Corporation Device 09ab
0000:00:1c.0 PCI bridge: Intel Corporation Device a0be (rev 20)
0000:00:1d.0 System peripheral: Intel Corporation Device 09ab
0000:00:1f.0 ISA bridge: Intel Corporation Tiger Lake-LP LPC Controller (rev 20)
0000:00:1f.3 Audio device: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller (rev 20)
0000:00:1f.4 SMBus: Intel Corporation Tiger Lake-LP SMBus Controller (rev 20)
0000:00:1f.5 Serial bus controller [0c80]: Intel Corporation Tiger Lake-LP SPI Controller (rev 20)
0000:00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (13) I219-V (rev 20)
0000:55:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
10000:e0:06.0 PCI bridge: Intel Corporation 11th Gen Core Processor PCIe Controller (rev 01)
10000:e0:17.0 SATA controller: Intel Corporation Device a0d3 (rev 20)
10000:e0:1d.0 PCI bridge: Intel Corporation Tiger Lake-LP PCI Express Root Port #9 (rev 20)
10000:e1:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5405
10000:e2:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5405


AppSocket/HP JetDirect - how to find host and port number

The host is the printer itself. You have to configure the JetDirect card in the printer to a proper IP address. Is the printer use autoconfigure options (like dhcp - what mostly is a bead idea) you may print the configurtion of the JetDirect card from the printer status menu.

The port normaly is TCP/9100 for the raw-printing protocol. Have a look here for a overview of used ports.


Is there a performance difference between running .NET applications via Mono and running them via the .NET framework on WINE?

See this benchmark.

Mono can sometimes run faster than .NET, and faster than native compiled code. However, Mono may not include all the .NET platform libs features. Starting version 5 it seems to include all of the C# features.


Gaming performance difference between Windows and Ubuntu

From a 7+ year experience I can say the following:

I have tried Wine since around 2005-2006. Also tried Cedega (Dead for me after Wine 1.2 came out) and PlayOnLinux (PoL for short). I have also seen how the developing process in Wine under Ubuntu has been quickly catching up to the latest games. For Wine installation and configuration please see How to install and configure Wine?

Around 4 years ago if somebody came to me and wanted to change to Ubuntu, one of the questions they would ask would be: Can I play X game on Ubuntu?. If the answer was positive for that game the next question would be something along the lines of: Will it have the same performance?

4 years ago my normal answer was no in most cases. After Wine 1.2 and in this year 1.4 came out, I had changed my answer for several games and for the first time I was more on the positive side about telling a new user that they could actually play the game.

Cases like Deep Space 2 which is/was one of the latest games I could play. Alice in Wonderland (The new one I mean), The Sims 3, World of Warcraft, Amnesia and others. Even Skyrim could be played. This are games that demand powerful graphics and you can play them with little to no additional setups other than the normal install and play steps.

A quick way to know what games can or can not be played on Wine (In Ubuntu) can be found in the Wine App Database: http://appdb.winehq.org/ which holds more than 11000 games (Litte over 5000 about two years ago). This also includes information for most games about the performance, which is not the same for each game that can be playable on Linux. This helps in knowing if a game is playable and has the same confirmed performance over the same game on Windows.

Wine also offers something called Ranking which helps in determining what games can be played with less configuration and a bigger chance of them working out of the box. If you see a game with a Platinum ranking it means you have a 99% chance it will work out of the box with no problems at all, from start to finish. If you see one with the Gold ranking you might find yourself doing a little bit of configuring but at the end it will work out good. In most cases, Gold status will work out of the box. They show as Gold because they have not being updated with the latest Wine version. Of course if you have a game with the Garbage rank it means it will never work or will only work if Superman starts eating kryptonian cereal in the morning.

A couple of years ago the amount of Platinum games was less than 50. In August 2012 (First time I wrote this answer) you could find More than 1500 games out of which almost 200 were in the Latest Titles. Today there are more than 5800 Games of which more than 1800+ are Platinum. And this is only in the Development phase of the 1.5.x. I can only imagine the amount that will reach Platinum rating once 1.6 is released. The only need here is for more people to participate and test the games on Wine (If applicable) or Steam (Which is new right now).

With this in mind I will always recommend using the PPA from Wine found here . This is because the official ones like the 1.4.x series, after several months, are outdated when compared to the 1.5.x development series, which to me is very stable, has many improvements and solves many issues.

Simply run the following in the terminal: sudo add-apt-repository ppa:ubuntu-wine/ppa

Then run sudo apt-get update. Afterwards install the latest version (As of this writing it is the 1.5.23). To verify the version you have installed type wine --version in the terminal.

HOW BIG IS THE PERFORMANCE HIT?

Seeing as the Wine development is taking huge leaps (Specially in the DX10 and DX11 departments) and can say the following from experience:

Games like world of warcraft run much smoother in older PCs. They somehow use LESS MEMORY than in their Windows scenario and achieve better FPS in older PCs. This I tested in 8 PCs for friends that wanted to test out Ubuntu but also played WoW. All cases mentioned the same positive result. In the DX11 gxApi setup I actually could play WoW with very awesome graphics. But for best results OpenGL is better. This is not the same for high spec PCs where you can actually enjoy better graphics with the high end ones until Wine catches up to this graphic technologies.
Will games with DX10 or DX11 work out of the box. Right now the answer is NO, they will not. Will they work in the future, Yes. The speed at which Wine has shown to be inn development suggest it so. Specially for the latest games and DirectX 10/11 support.
The amount of games that are working out of the box (Great graphic games in this case) have exponentially grown in the last year alone. This gives you an idea on how things will look at the end of 2012 or beginning of 2013 for Wine. To give you a background idea, I played in Wine Deep Space 2, 3 days after it officially launched. I was not even thinking that it would work and here I was amazed how everything work great from the first time. I also managed to play Dishonored a day after release without any problems. Others like Portal 2, Skyrim and Trine 1 & 2 are playable with no problems.
Wine does not only focus on one app at a time but also on libraries or DLL. This means that if 100 games use X type of library, they will all benefit from a simple improvement made to it. This is why, when each update of wine comes out, it can change many things regarding one single fix. As an example we can still remember the famous small fix about Mouse and Audio that ended up fixing more than 100+ games.

PLAYONLINUX - PoL for short, works with Wine side by side. They try (in a very efficient way) to make it so that when you install a program/game it will work out of the box. they might use an old wine version that works perfect for a particular game or they might add some scripts, additional dlls or files to make the game work. PoL does not need Wine installed but it would be wise to have it install just the same. You can find the latest version in here.

For example installing a game with Wine might make you do several additional steps to make it work. With PoL is just one click away, PoL will take care that the game installs and works as it should by adding a layer that reads what program or game you are installing and running a script to make sure that all DLLs and additional components that application needs are installed (For example DirectX or .NET). That is what PoL is aiming at, for you to "Play On Linux". Note that it is based on the technology that Wine offers.  It actually updates itself rather fast in comparison to add new installer scripts.

Many of this apps can be found in the long list of supported apps.

With that said, PoL does not do anything out of this world that Wine does not have, for example translating DX11 to OpenGL. This would be more in the area of Wine.

What I would recommend as I normally do it, is to do some Testing with several games and help the Wine community with your feedback. By doing this you would be speeding up the process for that particular game to work correctly.

CODEWEAVERS CROSSOVER

This is similar to PoL but it is paid. You actually get a lot of support and there is even a neat Top List of most voted apps

STEAM

The move by Valve to offer steam on Linux (Specially in Ubuntu) just goes to show the potential Linux is having over gaming. I should also mention that Valve is not the only one looking into developing games for Ubuntu. Many other are also looking this way as an alternative to Windows (Specially Windows 8).

NVIDIA / INTEL / ATI

Even graphics card companies are focusing more and more on enhancing their performance on Linux. With the huge jumps we have had so far gaining after every update a significant performance boost.

UBUNTU

To top it off. The performance that Ubuntu has received over every version since Unity came out has been positive. For each new release, Unity has consumed less resources, has had less bugs and has improved performance to the point of becoming excellent for playing any games, based on Wine or native like Steam.

The performance many users have noticed in 12.04, then again in 12.10 and even more in 13.04 is just a small example of where Unity is heading and what kind of enhancements we can expect to receive, not only for Graphics performance but for a more general one. I for one have taken many evaluations over the resource usage and video performance since 11.10 and for each new version, specially since 12.04, the resource usage has started to drop significantly and the FPS count has gone up.

Tested a couple of days ago was Dead Space 3 & Dishonored with both DLC contents. I was amazed at the fact that both worked flawlessly and they detected my video card, CPU and memory correctly. I could select the highest possible video configurations and play perfectly.

UBUNTU PERFORMANCE

I have to tell you, when it came out, Unity was possibly the worst DE for gaming. It was bloated, heavy and crashed a lot. But it had an objective set forth and a way of working that was great for many productive tasks. The improvements over each new version brought many changes to the Unity DE to a point that for each new version, the end user could actually see many enhancements and performance fixes.

12.04 marked such an improved point where many end users that criticized Unity were overwhelmed by the functionality and the speed of Unity. It is from this version on that I will show some benchmarks that I feel should be pointed out to give an idea of how Unity stands in gaming. So Here are several links (Chronologically Ordered) about Unity's performance:

Ubuntu 12.04 - Unity 5.2
Ubuntu 12.10 (Before Compiz Upgrade) - Unity 6.4
Windows 7 Vs Ubuntu 12.10
Ubuntu 13.04 Beta - Unity 6.6
OS X vs 13.04
Windows 7, 8 vs Ubuntu 12.10, Ubuntu 13.04
Ubuntu Performance from 8.04 to 13.04

I added the 2 Windows Performance links to prove a point. If you look at the benchmarks you will see that there are jumps between the performance in 12.10 and 13.04. Many fixes and enhancements done to Unity/Compiz have given Unity the edge when it comes to 3D.

And Note that all of this benchmarks are using Unity from the 6.x Series. The one in 13.04 right now is the 7.x Series. There are also some very awesome patches that will be arriving to 13.04 in the coming weeks that will further lower the memory usage, cpu usage
and boost the graphics performance. Additionally, here are some answer that will help you when Performance or Compatibility is an issue:

Any way to check the clock speed of my processor?
How do I install the Nvidia drivers?
Installing Ubuntu Alongside a Pre-Installed Windows with UEFI

UBUNTU STATS

But why so much focus from Steam and other companies. Well, many surveys have been conducted and in most (If not all) have shown that most Linux users, use Ubuntu or a derivative from it. As the latest G+ Poll shows, with a total of 14000+ votes so far, most users us Ubuntu (More than 50%) and most use the Unity desktop (More than 50%). This gives an idea to gaming companies where to focus, in what DE to work on and how to adapt their game to this emerging gaming platform.

TIPS - There are several tips I can leave for anybody that reads this related to Wine, Wine usage, configuration and hints in general for anybody new or old, this are:

How do I install Half-Life 1 and 2? - Covers Winetricks

Adjusting resolution for individual Wine programs - Handle several apps (Different Windows/Resolutions).

For some of the ones I can vouch that are working after testing them in at least 3 computers with the correct hardware requirements (Including updates and DLC) are:

Far Cry & Far Cry 2
Dead Island & Dead Island: Riptide
Dishonored
Hitman 1...4 (Blood Money)
Trine & Trine 2
GTA3, VC & SA
Dead Space 1...3
World of Warcraft
Elder Scrolls 3...5
Penumbra Collection
And many more...

Hope this helps and gives you an idea of how things are moving.


How can I use custom unity sidebar icons?

I managed to solve changeing my pycharm icon by finding the image used for the icon in ~/.local/share/icons/jetbrains-pycharm-ce.png and simply renamed this and placed my new icon with the same name there.

Not exactly how I changed the geany icon, but it works for me.


In general, to install a tar.bz2 (or .tar, or .tar.gz, or tar.xz, or, rarely, .tar.Z), see this guide. Please note that the specific flag to indicate to the tar command that you want to extract (or create) a bz2-compressed archive is j.

However, you should probably not install Firefox 8 from upstream sources, as you seem to be trying to do. That is not the best way to get it, other programs that depend on it would not necessarily know that it was installed, you would not benefit from changes made specifically for Ubuntu (if any), and you would not automatically receive updates (including security updates)--instead, when a new version comes out, you would have to manually compile and install that version.

Instead, you should probably update to Firefox in the recommended way for Ubuntu:

How do I install the latest stable version of Firefox?


relinux and remastersys create a bootable .iso from your current system, which means that a good portion of your filesystem is directly copied (and compressed) to the .iso file.

If your filesystem is larger than 4GB, it will bail, since 4GB is the largest file size that the ISO 9660 Level 2 specification allows.

Keep the size of your filesystem under 4GB, if at all possible (although, /home will not be included, so that can be as large as you want). Slightly more than that (say, 5GB) probably won't matter (depending on the type of data that exists on your filesystem), since it is compressed, but don't go much larger than that.


Try connecting the removable-media interface.

$ snap connect kodi:removable-media

The optical-drive interface should be auto-connect and I believe it's declared for kodi. The removable-media interface on the other hand is not auto-connect. It's possible your system is not recognizing /media/jarosch/ as an optical-drive.


I recognise one of my old guides being used here:). mutt would normally create this file for you but you can create the file manually and then set the correct permissions and owners. First create the file:

sudo touch /var/spool/mail/aparna

Then set the correct permissions:

sudo chmod 660 /var/spool/mail/aparna

Finally make sure the ownership is correct:

sudo chown aparna:mail /var/spool/mail/aparna

Test this with ls, on my own system I see the following:

andrew@ilium~$ ls -l /var/spool/mail/andrew
-rw-rw---- 1 andrew mail 30743 Jul 17 15:30 /var/spool/mail/andrew

and you should see something similar when using:

ls -l /var/spool/mail/aparna

And this should be enough to get you going...


Is it possible to run some SSH commands using SFTP?

You can only run commands on the local system using SFTP. Run help to see what commands are available:

sftp> help
Available commands:
bye                                Quit sftp
cd path                            Change remote directory to 'path'
chgrp grp path                     Change group of file 'path' to 'grp'
chmod mode path                    Change permissions of file 'path' to 'mode'
chown own path                     Change owner of file 'path' to 'own'
df [-hi] [path]                    Display statistics for current directory or
                                   filesystem containing 'path'
exit                               Quit sftp
get [-afPpRr] remote [local]       Download file
reget [-fPpRr] remote [local]      Resume download file
reput [-fPpRr] [local] remote      Resume upload file
help                               Display this help text
lcd path                           Change local directory to 'path'
lls [ls-options [path]]            Display local directory listing
lmkdir path                        Create local directory
ln [-s] oldpath newpath            Link remote file (-s for symlink)
lpwd                               Print local working directory
ls [-1afhlnrSt] [path]             Display remote directory listing
lumask umask                       Set local umask to 'umask'
mkdir path                         Create remote directory
progress                           Toggle display of progress meter
put [-afPpRr] local [remote]       Upload file
pwd                                Display remote working directory
quit                               Quit sftp
rename oldpath newpath             Rename remote file
rm path                            Delete remote file
rmdir path                         Remove remote directory
symlink oldpath newpath            Symlink remote file
version                            Show SFTP version
!command                           Execute 'command' in local shell
!                                  Escape to local shell
?                                  Synonym for help

As can be seen, there's no SFTP command that:

allows running commands on the remote system. There's only ! for local commands.
allows appending to or editing a file. You can get the file, edit it locally and put it back.

I wouldn't expect anything like this to exist, since a common use case for SFTP is to jail users and provide file access without the ability to run any commands.

Instead of zipping, maybe use the -C option with sftp:

 -C      Enables compression (via ssh's -C flag).


Controlling fan on Acer Aspire 5315 Using Ubuntu 16.04

I had an Aspire 5720Z, and suffered the exact same issue.
I was actually dual-booting with Vista at the time, so applying the BIOS update was not an issue for me.
For you though, you should try running the update EXE inside of Windows PE. Might not get you anywhere, but it's worth a shot.
Disclaimer: It is possible (not likely) that doing this ^^^ could brick the motherboard. Of course, any flashing of the BIOS, regardless of the method, carries this risk.
Of course, your other option is dual-booting with Windows...


Uninstalling Transmission will damage my computer?

ubuntu-mate-desktop is the meta-package for the Ubuntu Mate distribution, which contains all dependencies to the default installed packages for Ubuntu Mate desktop environment. You can see all of its dependencies with dpkg --status ubuntu-mate-desktop | grep '^Depends:' or online.

If you are to remove one of the dependencies in that list, the meta-package does not any longer have all of its dependencies and must also be removed in order to have a consistent package-graph.

Consequences: If the meta-package is uninstalled, since it is only a meta-package, it wont do much, but, since you don’t have the meta-package any more, any additions to the meta-package (new dependencies) will not affect your system any more. So a dist-upgrade won’t add new applications to your Ubuntu installation if they are added to it.

The addition of new packages often happens when doing a release upgrade.
So your system might be good as long as you are using 15.04, but I would reinstall the meta-package before eventually upgrading to 15.10.

Also, the meta-package is the package, that marks a dependency to other packages.
In earlier versions of Ubuntu, apt-get autoremove could accidentally mark packages, that is not installed directly, as unused, thus marking them for uninstallation. This should have been fixed in 15.04, so it will probably not affect you.

You can read more about meta-packages.


Ubuntu 20.04 systemd-coredump user ownership

I think I've got it.
So, after I did what I described in the question, I kept on doing my regular work. What I've found is that my docker container mysql crashed when I attempted to do docker cp. This reverted the ownership of the whole HOME directory, again, to systemd-coredump.
This time, I used coredumpctl to see what went wrong:
TIME                            PID   UID   GID SIG COREFILE  EXE
Fri 2020-08-14 20:40:57 CEST   2489  1000  1000   6 present   /opt/eset/esets/bin/esets_gui
Sat 2020-08-15 00:07:00 CEST   2014  1000  1000   6 present   /usr/libexec/tracker-miner-fs

So, ESET GUI app crashed, but more importantly tracker-miner-fs also crashed. Found out I needed to remove:

$HOME/.cache/tracker
$HOME/.config/tracker (if exists)
$HOME/.local/share/tracker

This way tracker would start from scratch and will not crash...


If you want the separator lines to be white:

tail -f logfile.log | awk '/connected/ {print "\033[31m" $0 "\033[39m\n-----------------------------------"}'

If you want the separator line to be red:

tail -f logfile.log | awk '/connected/ {print "\033[31m" $0 "\n-----------------------------------\033[39m"}'


Dlink wireless adapter dwa 125 on ubuntu 11.04

(EN)

I could install my N150 Wireless Desktop PCI Adapter on Ubuntu 10.10 "Maverick" and I have recently installed the 12.04 version "Precise" (works with all)

You must have installers card CD or downloaded from the website of D-link (DWA-525)

STEPS

First remove the card from the port.
Install "ndiswrapper" and "ndisgtk" from Software Center

or search the packages

http://packages.ubuntu.com/oneiric/i386/ndiswrapper-utils-1.9

When "ndiswrapper" and "ndisgtk" were installed the application creates the application "Drivers for Windows wireless networks".

Go to System> Administration> Drivers for Windows wireless networks
You go and look for the *. Inf in the drivers (DWA-525 folder) and voila, It worked to me with WinXP driver
Turn off the PC
Place the card into the PCI slot and turn on .....
automatically recognizes you.

:)

/////////////////////////////end ///////////////////

(ES)

Pude instalar mi N150 Wireless Desktop PCI Adapter en Ubuntu 10.10 "Maverick", y hace poco he instalado la versión 12.04 "Preciso" (funciona con todos)

Debe tener los instaladores de CD tarjeta o descargado desde la página web de D-Link (DWA-525)

PASOS

En primer lugar retire la tarjeta desde el puerto.
Instalar "ndiswrapper" y "ndisgtk" del Centro de Software

o buscar en los paquetes

http://packages.ubuntu.com/oneiric/i386/ndiswrapper-utils-1.9

Cuando el "ndiswrapper" y "ndisgtk" se ha instalado la aplicación crea la aplicación "Controladores para redes inalámbricas de Windows".

Vaya a Sistema> Administración> Controladores para redes inalámbricas de Windows
Ve y busca el archivo *. Inf. en los conductores (DWA-525 carpeta) y voilá, funcionó a mí con driver para Windows XP
Apague el PC
Coloque la tarjeta en la ranura PCI y encender .....
Automáticamente reconoce.

:)


Try formatting the area that is being shown as unallocated (that you think you installed Ubuntu upon) in Windows disk management. Details for it are available online. Then reinstall the Ubuntu with a fresh ISO image. Remember to switch the boot sequence in Boot Menu before proceeding.


what is the difference between / and //?

I hope this helps.

A path name consisting of a single slash / resolves to root directory of the process.  A path name that begins with two slashes // may be interpreted diffrently, although more than two leading slashes shall be treated as a single slash.

Most implementations simply treat // as / , but may still show // .

Also see UNIX, difference between path starting with '/' and '//'


redis install: unsupported locale setting

Install all the locals

sudo apt-get install language-pack-id

and then configure

sudo dpkg-reconfigure locales

then try again.

Ok configure them manually .

paste these lines one after one

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales


How to play Minecraft with a PS3 Sixaxis controller on Ubuntu?

I suggest you go to the Ubuntu help community. They have an excellent help guide. Here's the link: https://help.ubuntu.com/community/Sixaxis Hope it helps !


How can I get the HP RC6 ir (HP SPS : 435743-001) Remote for my Laptop to also work on my desktop

The RC6 remotes all use Infrared (ir), not Bluetooth.

The only reliable source (i.e. won't disappear or be out of stock all of a sudden) to buy those receivers that I know of is Ebay. Ironically, it's almost cheaper to buy a remote + receiver bundle than to buy the receiver alone.

The receiver alone (with a Lenovo branding) currently costs $14-$20, a fullsize remote + receiver bundle (with various vendor brandings) $19-$25. Kinda weird, but oh well..

Search for RC6 receiver or RC6 remote, then select only the computers & networking category. RC6 is a Philips Infrared communication standard, so they should all be compatible with each other for the most part.


If you simply removed bcmwl-kernel-source, it leaves behind a blacklist file that prevents the native driver b43 from loading. Let's remove it and see if we get your wireless working:

sudo rm /etc/modprobe.d/blacklist-bcm43.conf
sudo modprobe b43

Is your wireless now working? If not, try a reboot. If it is still not working, please edit your question to add the result of:

dmesg | grep b43

Please ignore 'Additional Drivers.' It installs the wrong driver for your device.


if you are using ubuntu 11.04 or ubuntu 11.10 then it is possible

Try powertop and turbostat from the acpidump package (run sudo modprobe msr before sudo turbostat).


You could use

sudo apt-get purge lightdm

and before you accept the changes make sure it is not also going to remove any applications you want to keep or need to use in the process.

Do the same for gdm or gdm3 and any other dm(s) that may still be installed; I've never done it but it should boot to one of the tty screens if no dm is present.

Use the command,

startx

after you login.

dbus should already be started, however, if it's not, you won't be able to start X without it. To start dbus use:

sudo service dbus start


Possible data "corruption":

LSI 1068E can use at most 2.2TB of a disk, which is apparently a hardware limitation. This could explain you seeing problems with RAID.

Unable to boot from a LSI 1068E based controller:

These  controllers usually lack EFI Option ROM, which is required for booting under UEFI. You can flash one using sasflash -o -b [file] under Linux.

Side notes:

This controller adds ~20 seconds to boot time.
Opinionated suggestion: Switch from hardware RAID to Linux Software RAID (the latter is continuously developed whereas hardware implementation..not so much).

In 1068E case, there are two firmware variants. One is "IT", which passes drives directly to the OS. The other variant is "IR", which has hardware RAID capabilities.

Sorry if this didn't answer your question directly.

sasflash
Installer_P21_for_Linux.zip
Version: 1.30.00.00
EFI Option ROM
EFI_BSD_PH_21-3-22-00-00.zip
Version: 3.22.00.00
Firmware and BIOS Option ROM
SAS3801E_-Package_P21_IR_IT_Firmware_BIOS_for_MSDOS_Windows.zip
Version: Firmware: 01.33.00.00; BIOS (option rom): 6.36.00.00


Wifi connection keeps dropping on 16.04, sometimes would not connect to the network after more than 10 attempts

Run in a terminal

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi 11n_disable=8"

and reboot.

If that does not fix the issue, do:

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi 11n_disable=1"

But as you said, it may be a hardware problem with your antenna.


I think I figured out your problem
The Gparted screenshot is strange! The file system shows iso9660, a format for data DVD. The "key" means it is mounted. This makes me think you are somehow using the SSD as the Live DVD (or media). Based on DD command is not working as intended you have transferred the ISO image to the SSD and now you are booting from the Live ISO image from the SSD. Based on the picture you posted in the other question, your Live USB was /dev/sdb when you copied it into the SSD.
Make sure you boot from the flash drive not the SSD.
Next you need to erase the ISO image from the SSD and setup Guided Partition Table (GPT):
Your system has UEFI, the newer kind of BIOS. You are booting in the new UEFI mode, not in legacy BIOS mode. UEFI expects the GPT (Guided Partition Table) but you have setup your SSD with MBR (Master Boot Record).
To change the partition table of the SSD you will have to start from scratch. This will erase all the data and partitions in the SSD.
Step 1: Boot from the Live USB flash drive and choose "Try Ubuntu without installing".
Step 2: Open Gparted and select the SSD from the drop-down menu at the top right corner. In this image below it says /dev/sdc. Yours should say /dev/nvme0n1.
Step 3: Click on the Device > Create Partition Table... from the top menu. A sub-window will pop up:

Step 4:  Change the Type from msdos to gpt as shown in the picture above.
Step 5: Click on the Apply button to create the new Guided Partition Table.
The following steps are not necessary. The Ubuntu installation should recognize the SSD now and you should be able to use "erase disk and install Ubuntu".
Since you are here, you may as well create the partitions needed, the EFI partition and the root filesystem partition /. Ubuntu 18.04 uses swap files by default. So you don't need to create the swap partition.
The EFI partition must be a primary partition formatted FAT32 and should have the esp and boot flags set. You can select these flags from within Gparted.
The / partition can be formatted ext4.
Hope this helps


How can I reverse my wifi from monitor mode to normal mode?

The "normal" mode is called managed. Just type:

ifconfig wlo1 down
iwconfig wlo1 mode managed
ifconfig wlo1 up

You may need to restart some services that you killed:

service network-manager restart


Would AppArmor protect against a bug like Heartbleed?

No, I don't think AppArmor would help. Heartbleed is a bug within openssl, it allows to read out memory allocated to the process. It has nothing to do with rights escalation or similar.


I cant change the permission with SU in Ubuntu.

Use sudo (not su), and change ownership, not permissions, unless you're totally sure the ownership is already correct.

If you are logged in on the Ubuntu system, them you can get ownership of your home folder and all its contents by running:

sudo chown -R $USER:$USER $HOME

That can entered (copied and pasted, or typed in) exactly; you do not need to (and should not) replace USER or HOME with anything.

If you cannot log in to the Ubuntu system and are accessing it on an Ubuntu live CD/DVD/USB or from another Unix-like OS (such as Puppy Linux), then this command will probably do what you want (an Ubuntu system's first user almost always has UID 1000):

sudo chown -R 1000:1000 /home/username

For that command, you do have to replace username with your actual username on the Ubuntu system.


Out of curiosity, do you use a thinkpad x1 carbon gen6 ? I am ashamed to say, I won't most likely be able to help you because I am brand new to Ubuntu. But before installing it on my laptop, I did massive research to know what to expect and ran into a few posts about suspend on the archwiki and lenovo's forums. Maybe you have the same issue.


Either back up your data, format the drive, and restore, or you can try to use ntfsresize to shrink the filesystem in sda2, then use fdisk to delete and recreate the partition with the same starting sector, but an ending sector that does not overlap with sda3, and is still large enough to contain the new size you shrank the filesystem to.

Obviously the first option is less error prone.


Can i run an installed (using wine) windows executable file at startup?

Add this to your Startup Applications (look for it on your dash):

wine "<pathtoyourapplication"

You will have to know where your application is (usually inside your /home/.wine/drive_c folder, look for it) but after adding it your application will run on startup.


Sharing a Network Drive through OpenSSH for a Specific Group

I believe what you want to do is this:

found on http://www.howtogeek.com/howto/ubuntu/how-to-mount-a-remote-folder-using-ssh-on-ubuntu/

  by Lowell Heddings :

  First we’ll install the module:

sudo apt-get install sshfs

  Now we will use the modprobe command to load it

sudo modprobe fuse

  We’ll need to set up some permissions in order to access the
  utilities. Replace  with your username.

sudo adduser <username> fuse

sudo chown root:fuse /dev/fuse

sudo chmod +x /dev/fusermount

  Since we’ve added ourselves to a user group, we need to logout and
  back in at this point before we continue.

  Now we’ll create a directory to mount the remote folder in. I chose to
  create it in my home directory and call it remoteserv.

mkdir ~/remoteserv

  Now we have the command to actually mount it. You’ll be prompted to
  save the server key and for your remote password.

sshfs <username>@<ipaddress>:/remotepath ~/remoteserv

  Now you should be able to cd into the directory and start using it as
  if it was local.

this is run from the client, not the server.


Go to your Ubuntu Software Center and install Pointing devices.


Here is another link i have found that help me and its the same solutions as k2shah mention it, but with more details.

Instead of downloading the spotify_control, you use the D-Bus commands. Before you add it as a new keyboard command, feel free to execute those commands.

Play/Stop

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause

Next

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next

Previous

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous

Once you validate the above commands, feel free to add them as Key Shortcut.
For Ubuntu, "Settings > Devices > Keyboard" than add (+) and put the name and copy the commands, than put the keyboard shortcut.

TheLink


Eye Strain and Nausea when running 18.04.1 on Intel i915 graphics

Ubuntu (and Debian based Linux in general) give you much more diverse options than Windows; you can change your display environment from GNOME, change your window manager, and use either hardware manufacturer's drivers or open source nouveau drivers if you have NVIDIA graphics.

Bug 1776642 discusses dithering with Intel HD 530 Graphics driver integrated into the Linux kernel with earlier versions of the kernel than you have.  You are using a Intel graphics driver. Therefore, I believe dithering is used on your graphics display as well, and suggest you add an update to that bug report that dithering is causing a problem with the 5.0 kernel.  (Also, bug 1819023 discusses NVIDIA driver dithering.)

The bug report for your video driver mentioned changing from the GNOME desktop which is standard with Ubuntu 18 and up to the KDE desktop (it's standard with Kubuntu and easily added from the repositories you have with Ubuntu).

Therefore, I suggest you try the KDE desktop.

Also recommended has been adjusting the gamma (more) with sudo xgamma -gamma 0.7 which requires experimenting with the value (shown above as 0.7) to find the gamma which minimizes your eye strain the best.


It's in /var/log. Open a terminal (press ctrl-alt-t) and type

gedit /var/log/jockey.log

If you need help figuring out the contents / problem, I suggest you paste the file's contents in a pastebin (http://pastebin.ubuntu.com) and update your question with a link to it, so we can go have a look.


There are a number of factors, not just the window manager, it is a sum of the window manager, desktop environment, and your hardware.

For this post, I assume the hardware drivers (kernel) is the same across all versions of Ubuntu.

See - What is the difference between a desktop environment and a window manager? for a discussion on window managers vs desktop environments.

As a Desktop Environment, Lubuntu uses a light weight window manager, with little or no "special effects" or "eye candy". xfce, kde, and gnome, in that order, use more resources in your RAM and graphics card just to run the window manager + effects.

Also, as part of the Desktop environment, Lubuntu starts less programs in the background at login. You can see what apps are run at startup (login) on lubuntu , xubuntu, kde, and gnome by looking at startup in each DE

In general Lubuntu starts less apps, and thus uses less RAM at startup.

And the third factor is the default applications. Each DE has a different set of default apps for web browsing, text editing, etc. With Lubuntu these apps are lighter weight in that they use less storage and less ram when they run than similar apps in other DE. Sometimes the difference is small, but sometimes large.

For the most part, running a similar application gets about the same performance across DE. So firefox or libreoffice, to name a few, are going to run about the same on any DE. Lubuntu is faster in one aspect because it uses lighter weight applications and thus better performance from the apps themselves.

The only exception would be RAM. If you are low on RAM, your apps are going to start using swap, which will affect performance. In this respect, lubuntu is going to use less RAM at startup preserving as much as possible for apps.

See /desktop environments ram use or similar.

In general, for the average desktop user you are going to want 2-4 Gb of RAM. If you have less it makes sense to find an alternate to the heavy weight apps and change from firefox to an alternate. You can do this in any DE, Lubuntu selects one default set for you already as a start point.

IMO, to determine if Lubuntu is right for you you have to ask:

Do you like the look and feel of the desktop ?
Do you "need" any additional startup apps ? How easy is it to add if needed ?
Do you like the default apps ?


How do I adjust the snap size in compiz grid?

I don't see a possibility to do this in the plugins options in the CompizConfig Settings Manager (command ccsm from the package compizconfig-settings-manager):

Seems to not be possible unless you change the program code and recompile.


If you have a mouse with a scrollwheel, place the mouse pointer over the launcher and scroll up or down. If you have a laptop, you maybe able to use two-finger scrolling to do the same thing.


Switch on your WiFi switch
Enter the following command

rfkill list all

You will get something like this

0 : sony-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

If any value (Highlighted above) is displaying yes
Enter the following command

rfkill unblock all

Check your WiFi Status Again.


I, unfortunately, do not have enough reputation to comment, so I am saying this in an answer. Have you tried pressing one of the "function" keys? (f1, f2, f3, etc.) This should bring up the boot output. you can then see if there is anything there to identify the problem.


same problem here except sound works when headphones are plugged in all the way.

already tried this with no luck:

gksudo gedit /etc/modprobe.d/alsa-base.conf

Insert this line at the bottom:

options snd-hda-intel model=dell-m4-3 enable_msi=1

Save. Close. Reboot. Check your levels in alsamixer.

alsamixer

Press F6 to select the correct soundcard.
Press F3 to show playback levels.
F4 selects capture levels [or use Tab].
Use the left/right arrow keys to select and up/down arrow keys to change levels.
M to mute/unmute.

Go to "System ->Preferences ->Sound" and make sure the correct soundcard is default and adjust your profile on the hardware tab.

No joy? Change that previous entry to this and reboot:

options snd-hda-intel model=hp-dv5 enable_msi=1


Language change doesn't work in ubuntu 15.04

1.I recommended you to read this Ubuntu documentation about "use alternative input source" .

It is explaining it step by step .

2.you can try reconfigure the keyboard configuration with this command

dpkg-reconfigure keyboard-configuration

I hope it helps you.


EDIT:
Given that you have WSL2, you should get the corresponding drivers.
See CUDA on WSL.
For a guide on how to install, please refer to
https://docs.nvidia.com/cuda/wsl-user-guide/index.html#abstract
Related

https://ubuntu.com/blog/getting-started-with-cuda-on-ubuntu-on-wsl-2
https://medium.com/swlh/how-to-install-the-nvidia-cuda-toolkit-11-in-wsl2-88292cf4ab77
https://www.reddit.com/r/bashonubuntuonwindows/comments/hxro9i/help_how_to_get_nvidia_driver_work_on_wsl2/
https://www.reddit.com/r/bashonubuntuonwindows/comments/n8lkts/where_to_download_old_version_of_nvidia_wsl_driver/
https://github.com/microsoft/WSL/issues/6323

It is very strange that the commands you posted do not even show your main graphics card.
Possible causes
(Strange hardware issues may be the culprit).

GPU is disabled at the BIOS level. Check that. If you have double boot with Windows, that would be good for a comparison.
Removing and replacing the CMOS battery may help.
An HDMI cable may also be the problem.

Extra / useful info
Please post the output of:

dpkg -l | grep linux-modules-nvidia
dpkg -l | grep nvidia-driver
uname -a
inxi -G (you may have to install inxi)
grep 10de /lib/udev/rules.d/*
dmesg | grep nvidia
dmesg | grep NV

Related

https://ubuntuforums.org/showthread.php?t=2443222


mkdir: cannot create directory `/opt/schrodinger2015-3': Permission denied

In the installation guide, you can read

tar -xvf Schrodinger_Internet_Download.tar
cd Schrodinger_Internet_Download

But instead of

sh ./INSTALL

run

sudo sh ./INSTALL

Why sudo? As not-privileged user you can't create folders in /opt. You need the rights of an administrator, on Linux also known as root.


For Python, use Gio module. Specifically, here's an example of two functions I use in my own code (feel free to see how they're used within my Launcher List Indicator):

from gi.repository import Gio

# Define your own class here

    # Note that these use `self` for use with classes
    # this could be removed otherwise

def gsettings_get(self, schema, path, key):
    """Get value of gsettings schema"""
    if path is None:
        gsettings = Gio.Settings.new(schema)
    else:
        gsettings = Gio.Settings.new_with_path(schema, path)
    return gsettings.get_value(key)

def gsettings_set(self, schema, path, key, value):
    """Set value of gsettings schema"""
    if path is None:
        gsettings = Gio.Settings.new(schema)
    else:
        gsettings = Gio.Settings.new_with_path(schema, path)
    if isinstance(value, list):
        return gsettings.set_strv(key, value)
    if isinstance(value, int):
        return gsettings.set_int(key, value)

These functions make getting and setting values easy and similar to the command-line utilities; schema, path, and key values are all strings. For instance, to set Unity launcher position to "Bottom" you would do:

self.gsettings_set( 'com.canonical.Unity.Launcher', 'launcher-position', 'Bottom')

For shell scripts, there are dconf and gsettings command-line tools, the later being a front-end to dconf. The gsettings command is preferred because it performs safety checks on the input values.  Example of usage:

 gsettings set com.canonical.Unity.Launcher launcher-position 'Bottom'

You can call these two from python using subprocess.call() or subprocess.check_output(), but this has the overhead of spawning extra process, which is unnecessary (And if  you're going to do it Pythonic way, do it right via the API).

See also

Do GUI based application execute shell commands in the background?


Unable to Boot to Either System After Dual Boot Install

Get Boot-Repair Tool and burn it into Live USB. Follow the instructions here.  You can also try EasyBCD. post back if this did not solve your problem with the exact error you are getting.


Unable to change Hugepagesize value in Ubuntu 16.04.3

Answer is simple:
execute as root

sysctl -w vm.nr_hugepages=256

nr_hugepages number is in MB.


wget particular TEXT string from HTML side

This command directs wget's output to the console, greps the chosen line and finally redirects it to a .txt file:

wget -q -O - "$@" http://www.bafg.de/php/KOBLENZRHEINW.htm | grep "Letzter gemessener Wert" > file.txt


No Alt + Tab in 14.04 Gnome Flashback session?

First try through the

Basic settings

Go to 'Applications','System Tools','System Settings'

Click 'Keyboard'

Click the 'Shortcuts Tab'

Click 'Navigation' on the left

In the right-hand pane click on 'Switch applications' and press Alt-Tab to assign that as the accelerator.

EDIT: It's been marked in comments, citing "The first method alone does not work. The compiz plugins are definitely necessary!". I can not check it at the moment, now I just put this comment here.

Or can be fixed by installing

Compiz

and enabling Static Application Switcher

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

you might need to install compiz-plugins-extra as well and then

ccsm


Already answered here: 13.10 XRDP problem with gnome-fallback

As you know by now, the ability to fire up a gnome-session with xrdp broke with Ubuntu 14.

Bug here: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1251281

Ubuntu 12 does not have this problem. This might be your solution. However it will be soon out of support so that is not an acceptable option for many.

XFCE4 + tightvncserver + xrdp is an option, but you said that is not acceptible. And you may run into problems with this too. See my post here: Ubuntu 14.x with xfce4-session desktop - Terminates abruptly

I have been hanging out in #ubuntu freenode IRC chatroom looking to see if anyone has an ETA on fixing gnome + xrdp. Nothing yet.

I would suggest trying another well supported Linux distro such as CentOS6 that does not have this issue.


Firefox will not permit me to change the default search engine

Add DuckDuckGo to the Firefox one-click search engines.

Click the downward little black arrow in the Firefox search box (located next to the magnifying glass) to show the Firefox one-click search engines dropdown menu.
Click Change Search Settings.
Click Restore Default Search Engines (marked by a diagonal black arrow in the below screenshot).
Check the checkbox to the left of DuckDuckGo to add it to the list of one-click search engines as shown in the below screenshot.

Change the Firefox default search engine to DuckDuckGo as shown in the below screenshot.

Click the downward little black arrow in the Firefox search box to show the Firefox one-click search engines dropdown menu.
Click Change Search Settings.
Change the Firefox default search engine to DuckDuckGo as shown in the below screenshot.


Keyboard cursor invisible in libreoffice and abiword

Ok. I'm answering my question myself. The problem disappeared when I chose "xfce" instead of "xubuntu session" when logging in. No idea why this happened though.


executing a .sh and ending in a different directory

According to this:

https://stackoverflow.com/questions/255414/why-doesnt-cd-work-in-a-bash-shell-script

you can run your script using

. ./scriptname

and it will run the shell script with your shell, not invoking a subshell like what usually happens.


Ubuntu 16.04 LTS black screen after suspension on Dell

Seems to match something I've seen already for 14.04:

https://bugs.launchpad.net/ubuntu/+source/xubuntu-default-settings/+bug/1303736

File a new bug, and for now try the workaround from here:

  map some key combination to:
  xrandr --auto
  and you'll get your screen back by pressing it.


Is the long freeze-up normal on 18.04 and ThinkPad R61 after memory swapping starts?

From the looks of your updates, I would lean towards changing your swappiness value as it's contributing to a lack of disk cache. The default value for an Ubuntu installation is 60 and, unless you are running a server or have a great amount of RAM on hand, it's a decent number to stick with. However, as every system and every configuration is slightly different, it's best to start by testing solutions.
Start by changing the swappiness value in place:
sudo sysctl vm.swappiness=60

This value will be reset to 10 on your next reboot. If you notice the system is performing better as a result of being set at 60 (or any other value), you can make it permanent like this:

Open Terminal (if it's not already open)
Edit the sysctl.conf file as root:
sudo vi /etc/sysctl.conf

Note: Feel free to use any text editor you prefer. The use of vi here is more muscle memory than an explicit endorsement.
Find vm.swappiness and set it to the value that works best for you
Save the file and apply the change:
sudo sysctl -p

A little bit on vm.swappiness ...
A swappiness value of 10 does not mean that data only gets swapped out when there is 10% of RAM remaining. This is better thought of as a "ratio of preference" for stealing pages from cache vs. swapping to make memory available. A low value will strongly prefer stealing pages from the cache while a high value strongly prefers swapping pages to disk. The setting is mostly ignored by the system until the memory is almost completely used and the kernel is forced to decide how to free some of the memory for use by other processes.
The cache that is referred to in the above explanation is disk cache so, by decreasing the value of swappiness, you increase the chance that a process will not be swapped out of memory. This also decreases the overall amount of disk cache that the system has available, which can make reading/writing to the SSD much slower than it needs to be. As a result, the effects of this setting on the actual performance of your system are not as two-dimensional as many people think.
There is no "magic formula" to determine what the correct amount of swappiness for any given system might be, so a little trial and error may be in order. That said, the default of 60 that ships with many Debian-based OSes seems to be a good balance for the vast majority of people running a desktop.
I hope this gives you what you need to have a more reliable system.


How to change Google Chrome UI Size on Ubuntu 19.04

If you do not have gnome-tweaks installed, please install it using sudo apt install gnome-tweaks. Then launch it by typing tweaks in the dash or gnome-tweaks in the window brought up with Alt+F2.

In there, click on Fonts in the pane on the left and choose the font size you want in your UI in the Interface Text section. (Keep in mind this will affect all applications, not just google-chrome.)

gnome-tweaks GUI

This is what google-chrome looks like with Ubuntu Regular 11

Ubuntu Regular 11

And this is with a larger font size:

Ubuntu Regular 16

The limitation is that the font size in the address bar aka omnibar is unchanged. This is a long-standing WontFix issue.

Other SE links on the small size of fonts in the omnibar:

Text size in Chrome's omnibar is too small
https://stackoverflow.com/questions/18343740/how-to-change-font-size-of-address-bar-in-chrome-programmatically


Or press e when you see the grub boot message, go to the line that starts with "linux", cursor to the end of the line and delete "splash" and "quiet", then Ctrl-X to continue the boot process.  This will allow you to see what is happening during boot.  Good luck!


After installing Ubuntu 14.04 LTS for the first time, my hard drive won't boot windows

Boot from a Ubuntu live-usb and select try ubuntu option. Then install Boot Repair and run it with recommended options. I believe it will fix the problem otherwise post the pastebin link that boot-repair provides here.


How to move/resize xfce4-terminal using the command line?

The man page for xfce4-terminal specifies using the --geometry option to set the size and placement of a terminal.
This flag uses the options  "-geometry WIDTHxHEIGHT+XOFF+YOFF (where WIDTH, HEIGHT, XOFF, and YOFF are numbers) for specifying a preferred size and location for this application's main window."
Refer to the "Geometry Specifications" section of the man page for X (man X).
Here are several examples of xterm placement:

Place a short and wide terminal window on upper left-hand side of the display:
xfce4-terminal --geometry 140x20+50+50

Place a square terminal window in the lower left-hand corner of the display:
xfce4-terminal --geometry 100x40+40+500

Place a square terminal window in the upper right-hand corner of the display:
xfce4-terminal --geometry 100x40+1500+40

Place a short and wide terminal window on lower right-hand side of the display:
xfce4-terminal --geometry 140x20+1500+500

If you would like to make this setting permanent, follow these instructions:
"copy the terminal launcher (terminal's .desktop file) from /usr/share/applications/ to ~/.local/share/applications/ and edit the Exec field accordingly" as mentioned in the answer here.


You can use Samba for both Windows and Linux, however the standard for Linux is NFS. Both Samba and NFS can coexist on the same host.


What does the name after '@' at terminal prompt mean?

It's the hostname, i.e. the name that you gave your computer.

Showing this as part of the prompt is useful so you can easily tell which host a given shell is running on if you're logged into multiple computers (via ssh or telnet for example).


Upgrade Ubuntu 11.10 to 12.04 Without the Button in Update Manager

The Update Manager takes command-line options:

user@host:~$ update-manager --help
Usage: update-manager [options]

Options:
  -h, --help            show this help message and exit
  -V, --version         Show version and exit
  --data-dir=DATA_DIR   Directory that contains the data files
  -c, --check-dist-upgrades
                        Check if a new Ubuntu release is available
  -d, --devel-release   Check if upgrading to the latest devel release is
                        possible
  -p, --proposed        Upgrade using the latest proposed version of the
                        release upgrader
  --no-focus-on-map     Do not focus on map when starting
  --dist-upgrade        Try to run a dist-upgrade
  --no-update           Do not check for updates when starting
  -s, --sandbox         Test upgrade with a sandbox aufs overlay

In particular, running update-manager --dist-upgrade brings up the distribution upgrade window.


Problem using sed with files containing quotation marks

I do not get the same results you do. The first thought that comes to my mind is line endings though. Traditionally \n means line feed (go down) while \r means carriage return (go back to start), and both in a row means go down then back. Unix traditionally uses only \n, while Microsoft uses \r\n.

I'm speculating on how sed would handle this, but perhaps your file has \r\n for the line ending, but sed being a Linux tool is matching \n. So first the carriage returns to the start of the line, then sed matches the next character, \n, and puts an x (but now the cursor is at the start of the line, so it overwrites the first character).

Try creating the file using a Linux editor, if you weren't already.


How do I use a Launchpad recipe for patching and building an original package?

Yes, you should indeed create a new branch derived from the vim Bazaar branch on Launchpad (lp:ubuntu/vim), and commit your patch to that branch.

As long as there are no conflicts when merging, the recipe will merge the two branches when one of them changes, and rebuild. This means that if there is a new revision in the ubuntu branch, it will happily rebuild.

The recipe would look something like this:

# bzr-builder format 0.3 deb-version {debupstream}+myfix{revno:myfix}
lp:ubuntu/oneiric/vim
merge myfix lp:~YOURNAME/ubuntu/oneiric/vim/myfix

The guide for this is here


The scripts in home folder results in race conditions with others if not taken care of...

I suggest to have these commands in some place say /usr/local/bin/awesome-personal script.

So create a file called /usr/local/bin/awesome-personal and the contents of it being:

#Assuming the awesome binary file is /usr/bin/awesome

xmodmap -e "pointer = 3 2 1"

setterm -blank 0 -powersave off -powerdown 0 <br />
xset s off

exec /usr/bin/awesome

Now copy the global xsession file /usr/share/xsessions/awesome.desktop (to save the original copy) by running the command:

cp /usr/share/xsessions/{awesome.desktop,awesome2.desktop}

Now start editing the /usr/share/xsessions/awesome2.desktop file and replace

Exec=/usr/bin/awesome

with:

Exec=/usr/local/bin/awesome-personal

Things should work now. On starting Ubuntu, you can select the personal awesome window manager by selecting the new entry awesome2 session. (You can select it from the lightdm where you enter the password while logging in ubuntu).

If it still doesn't work, comment back here...


You can use the Opacity, Brightness & Saturation plug-in.

Open ccsm Compiz manager
Go to Accessibility → Then enable: Opacity, Brightness & Saturation
Open it, Go to Saturation tab
Add new rule:

Windows: any Value: 0

I got all windows in grayscale only unity dash & top panel still in color, may be needs a reboot. :) sorry not the time to test that.

BTW, it is possible to get a hardware solution for VGA with just few resistors to make an RGB channels merger/mixer.


I do it only connecting the cable and switching the notebook display to external monitor (Fn F5 usually). You may have to switch your resolution to something the TV accepts but I think usually HDMI TVs accept a bigger range of resolutions than most monitors.

To have sound through TV speakers, I open sound preferences and select output to the HDMI device that appears when I connect the TV.


Two network interfaces assigned to addresses from two DHCP servers

If the installer did not create a connection profile for each network interface automatically during system installation, you can go to Edit connections and create them yourself.

Make sure that:

On the first tab, the option to connect automatically if available is checked for both interfaces.
Each profile is linked to the respective interface's MAC address so that you don't end up with two profiles linked to the same one.  The addresses are provided by the network manager automatically.

All other settings are configured by network manager automatically to acquire the necessary data from DHCP.


What does 'snap "opera" has "remove-snap" change in progress' mean and how do I stop it?

When you see a "change in progress" message it means that Snap is working on something in the background. You can get a list of what's going on in the Terminal like this:
snap changes

If Snap does have something going on, then you'll see a message like:
123  Doing   2021-05-06T00:00:00Z  -  Remove "opera" snap

Otherwise, you'll see:
error: no changes found

If you need to abort a Snap change, you can do this:
sudo snap abort {ID}

Note: {ID} is found in the result of snap changes.


What should be the partition scheme for Ubuntu 18.04 500 GB HDD (no SSD, no dual boot)?

The real answer to your question "What should be the partition scheme for ubuntu 18.04 lts 500gb hdd?" is: how you wish it to be. There is no rules. You should partition according on how you want to organize your data.

By default, the installer will establish one single partition containing system and user data. For a personal computer (not a server), this is the simplest solution. The drawback is that if you do a clean install in the future, then you also will need to place your data back. This is the simplest configuration, and there is nothing wrong with that.

Some people prefer to have a separate home partition. The root partition can then be as small as 15 GB or less. The second partition is then mounted on /home. Thus, all user configuration data and user data will be on the other partition. The convenience here is that your user data can remain in case you do a fresh reinstall in the future.

None of these scenarioś eliminates the need to having good backups of your personal data on removable drives or media.


I resolved the issue by running

sudo nvidia-xconfig

and rebooting my pc.


Burnt out from trying to install linux onto pc..... What am I doing wrong?

If you are using a mobo that uses an EFI boot, sometimes that only works on certain USB ports.  Also, on one of my machines(ASUS MB) the boot selection provides both an EFI and non-EFI boot option.  You might want try one or the other.  Ubuntu Live USB Boot is pretty robust, so as long as you have a good download (more than likely) it should work with no issues.  I am often surprised how well it works out of the box on very old gear (i.e. 10+ year old Dell XPS laptop)


Degrading to python 3.5 from python 3.6 on ubuntu

Here, this should help.

Download python 3.5

cd /usr/src
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
sudo tar xzf Python-3.5.2.tgz

Install required packages

sudo apt-get install build-essential checkinstall \
libreadline-gplv2-dev libncursesw5-dev libssl-dev \
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Install python

cd Python-3.5.2
sudo ./configure
sudo make altinstall

Now check the python version python -V


Can I make a window always stay in the background?

In xfce (I'm using Xubuntu) you can simply right click bar on top of the window and choose "keep on background" (or something like that, I don't use english version of my system).


I was wrong before, libsdl2-2.0-0 is still available for Ubuntu 16.04 (see the official package description). As Zanna stressed, your problem is related to the fact that your sources.list is not compatible with your current OS version. Have you upgraded from 12.04?

Anyway, to restore your sources.list file you might want to follow the instructions given by this answer.


How to scale display in Lubuntu up 150% or 200%?

In Lubuntu 18.04 and newer:

In the Lubuntu menu (what appears when you press the Windows key), search "KDE System Settings."
Scroll down to the "Hardware" section, near the bottom, and select "Displays and Monitor."
Here, there's an option to scale your display, near the bottom of the panel on the right.

You can also adjust the size of the fonts and icons individually, at the top of the same menu you found "Displays and Monitor" in.


Trouble Installing libxp6 and multi-arch-support

Then you have to install multiarch-support package from 18.04 LTS first with
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1_amd64.deb
sudo apt-get install ./multiarch-support_2.27-3ubuntu1_amd64.deb

and continue to follow the guide.


Copying folder to NAS drive using terminal

You cannot cd to a smb share like this.
Nautilus/Nemo can do that, because it uses a virtual file system (gvfs) in the background and mounts the share to a folder somewhere in your file system automatically.

After you fired Nautilus/Nemo to mount it, you could go to /run/user/1000/gvfs/[...] (compare your mount output) and voilà. You should see the smb share there.

From the terminal without Nautilus/Nemo you need to mount the smb drive manually. There are several options doing so.

Most common option afaik is using cifs. smbfs is an alternative.
Alternatives for mounting smb in userspace (without the need of having sudo rights or being root) are described here or here or here.

Install cifs-utils:

sudo apt-get install cifs-utils

Then mount your drive

--> either temporarily:

sudo mount -t cifs -o <Options> //<Server>/<Sharename> <Mountpoint>

Note: <MountPoint> must exist.

e.g.

sudo mount -t cifs -o credentials=~/.smbcredentials //nas/shared_folder /media/nas_shared

with ~/.smbcredentials being just a regular text file with following content:

username=<username of the share>
password=<password of the share>

Leave out the -o credentials=[...] part if it's a public share without login.

--> or permanent using fstab:

//<Server>/<Sharename> <Mountpoint> cifs credentials=/home/user/.smbcredentials  0 0

Then you can cd to <Mountpoint>.

Get more information from the Ubuntu WIKI.


I ran the following commands from the terminal and it worked.

echo "export PATH="/bin:$PATH"" >> ~/.profile

echo "export PATH="/usr/bin:$PATH"" >> ~/.profile

Though the error in ./xsession_errors still exits ,the login loop problem is solved.


Keyboard shortcut moving windows to the side no longer work

You  might be better using the GNOME extension Put Windows

In your browser enter https://extensions.gnome.org/ in the address bar and search for the extension.
I use this extension all the time in 20.04 having previously used it in 18.04 and it's quite functional in that you can define the size of the windows width and height, the keyboard shortcuts, Move Focus and application based size and location settings.

I tried it with the terminal window and it performs just fine.


How to get git producing output to a file?

Thanks for your help!

I just have found the solution:

Part 1

(Thanks to the answer of dessert)
git by design does never write to stdout but stderr. So I needed to redirect stderr, too, in order to get the output using

git clone XYZ &> git_clone.file

Part 2

Anyway this wasn't enough and I only received the "uninteresting" part of the output to the file but not the lines of the progress I really wanted.

Doing further reserach again in man git-clone I realized there exists an option

--progress
        progress status is reported on the standard error stream by
        default when it is attached to a terminal, unless -q is
        specified. This flag forces progress status even if the standard
        error stream is not directed to a terminal.

Though I'ld think it actually was already attached to a terminal, this now seems to force git to write the lines of the progress part I'm most interested in finally to stderr as well so I can now get them using

git clone --progress XYZ &> git_clone.file


Ubuntu Black Screen on Resume-After-Lid-Close

In my experience, Ubuntu's support for suspend/sleep/other low-power modes is rather hit-or-miss. When I first installed Ubuntu, my custom desktop would suspend just fine, but it wouldn't come out of it to a functional desktop. Some time after rebuilding my system with new hardware, it started working. If I recall correctly, Ubuntu 14.04 is what made it so my computer would suspend and resume correctly. However, on my work computer, an HP Compaq something-or-other also running Ubuntu 14.04, I haven't had any luck with suspend.

Basically, in my experience, Ubuntu sometimes has trouble correctly interfacing with a computer's hardware when it comes to sleeping and resuming. It is completely possible that there is a way to fix such compatibility issues, but I don't know enough to generate a solution, and I may not know enough to comfortably implement such a solution. Unfortunately, that's the best answer I can give, but it's totally possible that some Linux guru may see your problem and come up with a solution.


Ubuntu 16.04 - Trying to write an image to my microSD card but getting "no such file or directory"

Assuming you saved the compressed archive in the ~/Downloads folder...

The program unxzcan't find the file because it is looking for the file in the current folder. When you open a terminal the current folder of the terminal is /home/$USER, where $USER is your user name.

When you download a file using something like Firefox, it puts the file in /home/$USER/Downloads. You can either change the current folder to the location with the command:

cd Downloads

and the use the previous command:

unxz ubuntu-mate-16.04.2-desktop-armhf-raspberry-pi.img.xz

Or you can tell unxz the full path of the file:

unxz /home/$USER/Downloads/ubuntu-mate-16.04.2-desktop-armhf-raspberry-pi.img.xz

Note: Ubuntu is case sensitive. Downloads, downloads, and DOWNLOADS are 3 different folders.

Hope this helps


Invalid argument - Brother scanner not working after upgrade (brscan2 driver)

After I update to 13.10 I got the same error when scanning. There are two problems here.

The error Invalid argument is not a argument problem, but is a write access problem.
The other problem is that the bus and dev number are wrong from the scanimage error.

How to find and fix the problem?

Install the brscan4 drivers from the brother website

sudo dpkg -i brscan4-0.4.2-1.amd64.deb

Check to see if it works

sudo brsaneconfig4 -d

Test to see if the scanner is installed (scanner need to be powered on). And run as a user NOT root

$ scanimage -L
device `brother4:bus5;dev1' is a Brother ADS-2000 USB scanner
$ scanimage --test
scanimage: open of device brother4:bus5;dev1 failed:
Invalid argument

or

$ scanimage
scanimage: open of device brother4:bus5;dev1 failed:
Invalid argument

You can use the following script to update the permissions for the scanner.

lsusb | grep -i brother | sed 's/://' | awk '{printf "/dev/bus/usb/%s/%s", $2,$4}' | xargs -i -t sudo chmod 666 "{}"

lsusb lists usb devices

grep -i brother will find the brother device (assumption I made is you have only one brother device connected to the USBs at a time)

sed 's/://' | awk '{printf "/dev/bus/usb/%s/%s", $2,$4}' will find the bus & device numbers

xargs -i -t sudo chmod 666 "{}" will add write permission to scanner

Here is more detailed information on why we did what we did above

To find out where the brother scanner is on the bus use lsusb. This is one of the problems in the scanimage. The bus is 003 and the device is 002 and not bus 5, dev 1 as per scanimage

$ lsusb
Bus 003 Device 002: ID 04f9:60a0 Brother Industries, Ltd**
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
...

To fix the problem, you will need to use the path based on the location of the brother scanner in the lsusb command. In my case it was bus 003 and device 002. Note that if you unplug the USB cable to the scanner and plug it back in the device, you will get a new number and/or bus. (The number return back to 2 when you reboot the PC)

Examples:

sudo cd /dev/bus/usb/003
sudo chmod 666 002

or just:

sudo chmod 666 /dev/bus/usb/003/002

Scanimage need to fix the message when it can not access the scanner to have the right bus and dev number and also tell the user that the problem is a write access problem.

Brother needs to update the driver code so that global user can write to the scanner i.e. chmod 666 to the scanner driver location


Wifi local connection or unstable connection only

What eventually resolved the issue was following the steps in the link virtualxtc shared from Kassius:
Can't reach wi-fi signal on Ubuntu, but can do it on other OS/devices (ath9k)

Regards,

Mihael Souza.


I ran into similar problems with an ASUS PRIME-B250M-C/CSM motherboard.  I tweaked the UEFI settings:
        disable FastBoot
        enable CSM (compatibility support mode)
and then the system pauses after the above boot messages, but then gets Ubuntu-18.04 server started.

Also, note that the Xen kernel does not expose EFI variables to Dom0, so efibootmgr(8) fails.


errors were found while checking the disk drive for /home

The message says some errors were found on the filesystem which fsck will not fix automatically,since it may affect your data so you should do it manually.

To do this, press M (when you be asked for) - this will drop you into a root console

fsck /dev/sdXX

Replace XX with your /home disk name partition

If this doesn't work try the command

sudo badblocks -sv /dev/sdX

Replace X for your harddisk.


How do I stop the D key from showing desktop

If you have CompizConfig setting manager installed open the application and choose General, General option, key bindings and look what keybinding is assigned to "Show Desktop" and change it as you like.


How to add a python libary to a specific Blender build?

/path/to/blenderspython/python pip install numpy where /path/toblenderspython is the path to your version of blenders python directory. which may be /usr/share/blender/2.79/python/bin/ based on your report error image.

Then try to enable your addon called "Animation nodes" again.

Sources:

this comment from sambler

https://blender.stackexchange.com/questions/56011/how-to-use-pip-with-blenders-bundled-python


Having trouble with apt-get upgrade and removing KDE Plasma

dpkg -r --force-depends kde-telepathy kde-telepathy-minimal
followed by sudo apt-get purge $(apt-mark showmanual | grep kde) and finally
sudo apt-get autoremove completely removed KDE Plasma


How to open a directory and view images if it contains a large number of image files (~70,000)?

70k image files are a lot.

The first thing I can suggest is to disable thumbnails (In nautilus > preferences, choose the "preview" tab, select  Never).

Then you can test the various image viewers/manipulators (the standard viewer, gthumb, shotwell, darktable, etc etc ) and see if someone is reasonably fast.


I dont know if this will help anyone, but there might be an issue with UEFI, Lenovo, and non-Windows OS.

What I ended up doing was repartition the drive as MSDOS, creating new partitions, and installing Ubuntu in BIOS Compatibility mode.


How might I install fglrx 9.0.2 on Ubuntu 13.04?

I would purge the current driver and alter my sources.list to use quantal
sudo sed -i 's/raring/quantal/' /etc/apt/sources.list;sudo apt-get update
then install the driver you want and what ever other quantal stuff you want
then switch back to raring
sudo sed -i 's/quantal/raring/' /etc/apt/sources.list;sudo apt-get update
then lock the driver in synaptic
then lock it in dpkg
echo $MY_PACKAGE_NAME_HERE hold | dpkg --set-selections
I think this would easier than downloading the debs and then hunting down all of the dependencies
You may have to downgrade Xorg to install older AMD drivers and have them work


Firefox is lagging after update to the 29 version

You could try to reset Firefox to factory defaults, this is actually something Firefox proposes to do if it detects that the start-up takes too long. Beware, however, this procedure will delete all your installed add-ons and your search engine settings.

To do a factory reset, follow the instruction on this page.

Another thing you could check is whether hardware graphics acceleration is set up correctly. The answer to this question describes how to do that.


First try to remove lenses and reinstall them again.

sudo apt-get remove --purge unity-lens-applications unity-lens-music unity-lens-files unity-lens-videos

Then remove the ~/.cache dir

rm -r ~/.cache

Then install them again

sudo apt-get install unity-lens-applications unity-lens-music unity-lens-files unity-lens-videos

Then Logout and Login. or try unity --reset command in the terminal.

If this method does not work, Try completely removing the configuration files. First make backup of your home dir and remove the configuration folders.

Backup:

sudo rsync -aP /home/your-user-name /home/your-user-name_old

Remove configuration folders

rm -r $HOME/.config
rm -r $HOME/.compiz-1
rm -r $HOME/.cache
rm -r $HOME/.gconf

Then try Logout and Login or unity -reset command.

Credit goes to this forum post


Using the standard Windows disk partitioning tool to create partitions for Linux is risky at best. There are several problems with this tool, but the biggest for your scenario is that, when you create a layout that holds more than four partitions, it will convert the disk into one that uses the Logical Disk Manager (LDM, aka "dynamic disks"). At least, that's true on MBR disks; I'm not sure if the same happens when using GPT disks, which a computer that ships with Windows 8 probably uses. LDM is a Microsoft-specific technology, and installing Linux to an LDM disk is either very difficult or not possible -- certainly I've never heard of anybody doing it. When people are hit by this problem, they typically end up using third-party tools to convert back from LDM to a standard configuration. There are other problems with the Windows disk partitioner, too; depending on the version, there are known bugs that can create illegal partition layouts, which of course cause their own headaches.

A better way to accomplish your goal is to use the "Something Else" installation option, as described here:

"Install alongside" option missing. How do I install Ubuntu beside Windows using "Something Else"?

This will enable Ubuntu to do the partitioning, but under your control. This way, you won't risk a disastrous outcome should Windows decide to convert your disk to an LDM setup or otherwise mess up the partitioning.


How to solve frozen screen after installing Bittorent ?

Sounds very much like a hardware problem...even though you PC has been running for a few days.   If you can not even boot your hard drive and can not even enter setup...these steps occur before the booting of Ubuntu.  Try pushing in the memory cards and drive connectors.
Do you get any beeps as the PC is booting?

Does the Initial motherboard boot accurately display the memory installed? If the memory is detected, I would try some system diagnostics by booting from a liveCD e.g. you installation DVD you used to install 12.04.

In Linux, you rarely need to reset the computer when it freezes.  If you do this while something is being written to critical areas of the hard drive in any operating system, you can cause file system corruption. This may explain why your computer may be appearing not to boot. Even though your computer may appear frozen, usually the kernel is still accessible and cane be made to safely reboot from a frozen state


How do I transfer large files from my phone to my computer?

If you'd rather connect via wi-fi you can try an app called Airdroid on the play store. After installing this app on your phone you just need to open a browser and go to the provided address. From then you can copy paste files and look everything almost like you were on your phone. And all of this is done wirelessly.

You can also use FTP if you have an FTP Server installed.

Hope I could help.


I don't know why it works this way, but booting into the 2.6.38 kernel shows up the wireless adapter. Booting into 2.6.35 doesn't.