Desktop zoomed in and enlarged in Ubuntu 16.04

Before you do anything else, write these two commands for escaping from a login loop on a piece of paper, so if you get stuck in a login loop when booting you will be able to do something about it.

sudo chown $(whoami):$(whoami) .Xauthority
sudo dpkg-reconfigure lightdm

Also write down the link to this answer:  Ubuntu gets stuck in a login loop which has more detailed information about how to get unstuck from a login loop.

In a comment you wrote: Yes I tried to install cuda. Installing CUDA in Ubuntu 16.04 is known to cause exactly the same error as you described in your question, the desktop is zoomed in and enlarged to huge proportions, such that the login password input box is way larger than it should be and you can't even see all of the icons in the Launcher at the same time. Your problem may have been caused by the NVIDIA proprietary graphics driver that was installed as a dependency of the NVIDIA CUDA toolkit (nvidia-cuda-toolkit). nvidia-cuda-toolkit installs nvidia-367 as a dependency in Ubuntu 16.04. Maybe you will have better luck if you installed the NVIDIA proprietary graphics driver that is recommended for your computer's hardware.

Bring up a text-only virtual console from the login screen, using the keyboard combination Ctrl+Alt+F3 and then you will get a text-only console which shows you a login prompt. Login to the console at the login prompt with your username and password.
Uninstall NVIDIA CUDA toolkit and the NVIDIA proprietary graphics driver from a text-only console.

sudo apt remove nvidia-cuda-toolkit nvidia-*
sudo reboot

Identify the recommended proprietary graphics driver for your system. Open the terminal and type:

ubuntu-drivers devices

If you can't login and get to a terminal yet, you can run the ubuntu-drivers devices command from a text-only console, the same way as in Step 1.
Install the recommended NVIDIA proprietary graphics driver and reboot.

sudo apt install <package-name-of-the-recommended graphics-driver> nvidia-settings
sudo reboot


Why is ls -R called "recursive" listing?

First off, let's define an arbitrary folder structure:

.
├── a1 [D]
│   ├── b1 [D]
│   │   ├── c1
│   │   ├── c2 [D]
│   │   │   ├── d1
│   │   │   ├── d2
│   │   │   └── d3
│   │   ├── c3
│   │   ├── c4
│   │   └── c5
│   └── b2 [D]
│       ├── c6
│       └── c7
├── a2 [D]
│   ├── b3 [D]
│   │   ├── c8
│   │   └── c9
│   └── b4 [D]
│       ├── c10
│       └── c11
├── a3 [D]
│   ├── b5
│   ├── b6
│   └── b7
└── a4 [D]

When we do ls, we get the output of the base folder only:

a1 a2 a3 a4

However, when we call ls -R, we get something different:

.:
a1  a2  a3  a4

./a1:
b1  b2

./a1/b1:
c1  c2  c3  c4  c5

./a1/b1/c2:
d1  d2  d3

./a1/b2:
c6  c7

./a2:
b3  b4

./a2/b3:
c8  c9

./a2/b4:
c10  c11

./a3:
b5  b6  b7

./a4:

As you can see, it's running ls on the base folder, and then all the child folders. And all the grandchild folders, ad infinitum. Effectively, the command is going through each folder recursively until it hits the end of the directory tree. At that point, it comes back up a branch in the tree and does the same thing for any sub-folders, if any.

Or, in pseudo-code:

recursivelyList(directory) {
    files[] = listDirectory(directory)              // Get all files in the directory
    print(directory.name + ":\n" + files.join(" ")) // Print the "ls" output
    for (file : files) {                            // Go through all the files in the directory
        if (file.isDirectory()) {                   // Check if the current file being looked at is a directory
            recursivelyList(directory)              // If so, recursively list that directory
        }
    }
}

And because I can, a reference Java implementation of the same.


How to set current default font-families to websites in Chromium?

Cick on the "tools spanner" in the top right then click on Preferences.

From here click on "Under the Botnet" and then "Customize fonts".

The screenshot below is from Chromium 10 Beta, in earlier versions the dialogues will look a little different.


How to count the characters within quotes?

Using grep:

var=$(grep -Po '(?<=").*(?=")' fileName | tr -d '\n' | wc -c)

for your example returns:

echo $var
3

Using sed:

var=$(sed -r 's/^.*"(.*)".*/\1/' fileName | tr -d '\n' | wc -c)


Synaptics touchpad keeps getting disabled

Try this:

xinput set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Off" 0


how do i get latest skype on my machine?

Try to download and install the latest version from skypes homepage. Just download and double click the .deb file. Then follow the instructions. You may need to remove the old skype version with sudo apt-get purge skype

http://www.skype.com/de/download-skype/skype-for-linux/downloading/?type=ubuntu64


Built-in calculator to GNOME search window

The pre-installed GNOME Calculator in Ubuntu 18.04 is a snap application which may lack some features provided by the traditional one due to restrictions of snap packages.

Remove the snap application by running

snap remove gnome-calculator

and install the traditional apt one by running

sudo apt install gnome-calculator

You may need to to restart GNOME shell by hitting Alt+F2, then typing r and pressing Enter for it to take effect.

Update: Version 1:3.28.2-1~ubuntu18.04.3 of the apt version of GNOME Calculator has stopped showing calculations in search results, refer to this bug report.


Able to run Ableton 10 on Wine, but unable to import MP3s

This is most likely a problem with Ableton itself, not with WINE or any codecs. Sometimes, when I try to drag mp3 tracks to make a mix, on Windows 7 with Ableton 9.0 and 9.5, the same error appears. At other times, Ableton loads mp3 files without any problems.

I am able to work around the issue by renaming the file extension to wav.


Cannot install wine on Ubuntu natty 64bit [broken dependency]

The main problem is you are using "Server for Bangladesh", means Bangladesh mirror. This mirror is not updated very regularly and users of this mirror faced this kind of problem several times including me. So change the mirror to Main Server or US server or anything.


Why when I disabled bluetooth from startup applications does it still run on boot?

That is because of its damon
you can remove it from runway to forbid it to be executed
one of the graphical ways is using BootUp-manager ("bum") program you can install it from ubuntu software center. it's easy to use or if you don't use it at all just uninstall it


Enabling a multi display desktop completely broke Gnome Shell. Help?

I think you are experiencing the AMD variation of the NVIDIA second monitor kluge, see this bug.

I got a limited use of a second monitor by dropping Unity and switching to Xubuntu.

BTW while Unity probably will be great for the casual computer user, it severly restricts the way I work.  Dropping it was a huge step forward.

BTW I really like Xubuntu and will not go back to Gnome.

BTW Gnome Classic still produces duplicate panel icons after removing Unity.

Here are screenshots of screen0 and screen1...

Open in a separate window/tab for full size: screen0->2560x1600; screen1->1440x900


How to hide whitespace indicators in Vim

Thanks to Lasall's suggestion to check my plugins the behavior turned out to be caused by a plugin named vim-indent-guides - removing that resolved the issue.


1st Way to solve your issue:

Try to reconfigure lightdm (if it doesn't solve your issue then go for Alternate way mentioned below.)

Open terminal(CTRL+ALT+T) and execute following command:

sudo dpkg-reconfigre lightdm

Then chose lightdm from the list. As shown below:

(source: akamaihd.net)

Restart your system:

sudo reboot now

It  should fix your issue.

an alternate way, which would solve your issue. Give it a try.

Installing a new display manager can fix your problem. Steps to install GDM(a display manager much like lightdm):

Open terminal(CTRL+ALT+T) and execute following commands:

sudo apt-get install gdm
sudo dpkg-reconfigure lightdm

then chose gdm from the list:

(source: akamaihd.net)

    sudo reboot

If it's still not fixed, try removing lightdm after installing gdm:

sudo apt-get remove --purge lightdm
sudo reboot

Reply if something goes wrong..


why does this page say java is running if I don't have the java plugin installed? How do i find and disable the java plugin for firefox, and others?

If you have Java 6, like I do. you can disable the IcedTea plugin.
but the exploit is only for java 7.
and you can see your version on this page: javatester.org


Sandisk ultra pendrive doesn't show up on the desktop after formatting but it shows in gnome-disks

I would reformat it using gparted. After that eject an re-insert in the usb port.


"Error while loading shared libraries" on Ubuntu 18.04 LTS

Checking my system, I see multiple copies of that library buried under /snap/gnome-system-monitor/...  so of course the loader cannot find them.
Either add a link yourself to the /usr/lib/x86_64-linux-gnu location pointing to one of these installed /snap locations, or add one of the /snap... locations to the LD_LIBRARY_PATH.
  Maybe your package manager defaults to offering snap packages when available -- try changing that default.  You can explicitly use apt-get in a terminal:
 Crtl+ Alt+t   then

sudo apt-get install libatkmm-1.6-1v5


Ubuntu goes to sleep, runs out of battery, then completely freezes when waking up

It can't still be powered on if it ran out of battery [ubuntu would not be on the screen. It would be pure black darkness]; If it ran out of battery it would be booting back up into ubuntu after you turned it back on after you plugged it in.

...So that makes no sense at all. Apparently, it can't be out of battery and is just in a frozen state. Why its freezing is something else and you would need to learn what's causing it to learn how to fix it.

At least on mine, when it runs critically low on battery Ubuntu shutsdown automatically. Then it needs to be turned on again. There's nothing unsafe about that.

As long as the hard drive isn't active, the head is parked, it shouldn't hurt it. Everything else really is motionless. I have no problem with forcing a locked pc or laptop down if its necessary cause what else to do? Throw it? [could always do that :-) ]


Ubuntu 13.04 + Gnome 3.8 input switch keyboard shortcut

This seems to be a bug in Ubuntu 13.04. You might be able to fix it by using the Gnome3 PPA, but I haven't tried myself.


How to export to AAC audio from Audacity?

This seems to be a known issue between ffmpeg and Audacity 1.3.x

Read more about it here.

My guess is that the Ubuntu packagers decided not to compile Audacity with support for the ffmpeg libraries because of these issues. I don't know what versions are in the official repo, as I'm using the Getdeb.net ones. I can confirm that what you said does not work for me either, but it applies to all ffmpeg exports.


On 14.04 64 bit  I did this to fix the colour

1) Download the driver from Canon

http://www.canon.co.uk/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_mg_series/pixma_mg3250.aspx?type=drivers&driverdetailid=tcm:14-994521&os=Linux%20%2864-bit%29&language=EN

Extract the files to somewhere

2) Fix a dependency by installing an old library version

http://packages.ubuntu.com/precise-updates/amd64/libtiff4/download

(this was not a clean system, if your missing something else find that on the packages site too, the latest version you find)

3) Install the appropriate .deb files in the 'packages' folder in the stuff you extracted in step 1, 'common' then 'mg3200series'

4) Install or change the printer driver or 'make and model' and look for "Canon MG3200 series Ver.3.80" the broken one lacks the version info.

Once updated the prints were excellent.


VLC video playback is trimmed and blacked out

It's a Qt 5.5.x bug: https://bugreports.qt.io/browse/QTBUG-48321

You'll have to disable the "Integrate video in interface" option in Tools -> Preferences -> Interface until it's fixed.


How install a new app from LiveCD into sleeping hard drive installation

Chroot to the drive containing existing ubuntu installation

2 . sudo apt-get install <package name>


What does it mean for a network interface to be primary?

Pretty much. I guess if you lose signal at wlan0, then it will switch to eth0, but it should use wlan0 as soon as it's up.


How to install openjdk-14-jdk on Ubuntu 16.04?

Compiled answer by myself:
Get fresh link from: https://jdk.java.net/14/
Download binary:
wget https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/12/GPL/openjdk-14.0.2_linux-x64_bin.tar.gz
Unpack it:
tar xvf openjdk-14.0.2_linux-x64_bin.tar.gz
Move to jvm folder:
mv jdk-14.0.2 /usr/lib/jvm
Update java and javac alternatives:
update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-14.0.2/bin/javac" 3
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-14.0.2/bin/java" 3
update-alternatives --set "javac" "/usr/lib/jvm/jdk-14.0.2/bin/javac"
update-alternatives --set "java" "/usr/lib/jvm/jdk-14.0.2/bin/java"

Use to switch between versions:
update-alternatives --config java


Ubuntu 12.04 desktop freezes, or rather the mouse recognition

In xorg.conf I changed the Option "Protocol" for Input Device "Mouse" from "auto" to "Microsoft" and my problems with auto clicking and mouse freezing have completely cleared up.


USB keyboard won't work after upgrading kernel to 4.18(Ubuntu 18.04)

So, the solution ended up being kind of ridiculous.  I used a USB-A to USB-C adapter and plugged my keyboard into the rear USB-C port on the machine and it worked perfectly.  I now was able to log into my system with 4.15.32 and relax.


It won't cause security problems or vulnerabilities.
But it can cause damage on your OS and loss of data depending on the tasks that are running at the time.
That being said, your computer still shouldn't get stuck at high ram usage.


USB WiFi dongle TP-Link Archer T4UH based on RealTek rtl8812au chipset doesn't work

Finally found that the problem was -D wext. Need to be changed to nl80211
So correct command should be

# wpa_supplicant -B -i <wlan0> -c wpa_supplicant.conf -D nl80211
# dhclient <wlan0>

And that's it.

Don't know what is the problem with network manager - why it can't connect to this WiFi. But at least have working WiFi.


Need to mount second internal hard drive to specific location

This should work

Look at the output of df. It will tell you the device for your external drive:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             446G   36G  388G   9% /
udev                  1.9G  4.0K  1.9G   1% /dev
tmpfs                 750M  888K  750M   1% /run
none                  5.0M  8.0K  5.0M   1% /run/lock
none                  1.9G  4.7M  1.9G   1% /run/shm
/dev/sdb1              58G   17G   39G  30% /media/external

Then add an entry to /etc/fstab (use sudo pico /etc/fstab for instance):

/dev/sdb1    /mount-point/you-want  ext4  defaults   0   0

"ext4" should reflect the actual filesystem on your drive. Don't know it? look at output from "mount" to see the "type".

Once all this is done, as long as the drive is connected to the system when it boots, it should appear under the mount point you specified.


You already found out that your administrator (aka root) has all powers to control the system. This includes read and write access to all files on your computer. So from file permissions alone there is no way to prevent root from accessing files in a user's HOME.

In order to prevent privacy abuse from root there are a few option only:

Do not grant root access to people you don't trust that they respect your privacy. As everybody can get root access we also need to make sure only trusted people have physical access to our machine.
Never store private data on the machine's internal drive or on a local network drive. Use an external medium such as a pen drive or storage in the cloud for that. Lock this drive away from nosy people. Do not store the password to the cloud storage on your computer.
Use encryption (e.g. ecryptfs) for private data. This will however only work in case your administrator allowed encryption on your account. Also, it will not stop root from deleting your encrypted files but at least they can't read them.
Do not underestimate the benefits from parental control on your computer. If root is your caring parents then there is all reason to always trust them.


Install Steam using a command:

sudo apt-get install steam

Then you can run Steam from the Dash:


apparmor aa-logprof not asking about all dependencies

I don't think it's your fault.
Version 2.8.98-0ubuntu2 (present in Ubuntu 14.10) of apparmor-utils seems to be buggy. aa-genprof crashes regularly (python errors) and I noticed a similar behavior as described by you with aa-logprof. It fills up some of the rules but others seem to be left out.

Hopefully next version will be better. Newer versions are already out just not included yet.

Incidentally the crashes in aa-genprof are connected with socket rules similar with the ones you posted so I suspect the log parser has some problems.


How to get the output (stdout/stderr) of a click application?

click apps log all output in ~/.cache/upstart/application-click-$APP_ID.log


bluetoothctl - What is a bluetooth agent?

The Bluetooth agent is what manages the Bluetooth 'pairing code'. It can either respond to a 'pairing code' coming in, or can send one out.

The default-agent should work for you. You say you're new to Bluetooth, so I suggest you go with the default for now.

Not using an agent will mean the 2 devices cannot negotiate the 'pairing code'.

An example might help, so here's an example of what worked for me on my Raspberry Pi 3 called Shep:

pi@shep:~/bluetooth $ bluetoothctl
[NEW] Controller B8:27:EB:B0:BC:22 shep [default]
[NEW] Device 18:9E:FC:94:8C:33 iPhone4
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[CHG] Device 18:9E:FC:94:8C:33 Connected: yes
[CHG] Device 18:9E:FC:94:8C:33 Connected: no

Here I asked the iPhone to pair with Shep, and iPhone sent 680044.

[CHG] Device 18:9E:FC:94:8C:33 Connected: yes
Request confirmation
[agent] Confirm passkey 680044 (yes/no): yes

Or see the following if you want to set the pass key in advance:

http://www.heatxsink.com/entry/how-to-pair-a-bluetooth-device-from-command-line-on-linux

  Setup bluetooth-agent to pass the expected pairing code

  $ bluetooth-agent 0000 &

Obviously the '0000' could be any number.

These agents and 'pairing codes' are specific to Bluetooth rather than Wi-Fi.


Why does my VirtualBox VM take so long to install Windows 7 updates?

In regards to the updates, it could just be how long it takes. I've had updates take up to 1 hour on my netbook with 7 before, and I know of people who have had much longer.


How can I run command to install software without sudo?

Sudo is required to make edits to the system files, unless you log in as root. It is not possible to my knowledge.


I cannot enter my password in the terminal - can't install packages

More than likely, you can enter your password just fine.  The password does not show up in the terminal when you type it, but that is for security reasons.  Just try typing your password out, and hitting enter.  If your password was entered correctly, the action will continue.  If your password was spelled wrong, it will prompt you to enter it again.  Hope this helps!


acpi=off needed when BIOS graphics mode is switchable

The circumstances summerized are: you need acpi on for bumblebee to work, but you can only install the os with acpi off.

This issue appears to only affect ubuntu 12.04 and around that, because since 14.04 and onwards I haven't had this issue anymore (on the same hardware and also other similar hardware). The correct time modifying kernel parameters was key:

Before Installation

Set gpu-mode to switchable in BIOS

During OS Installation

Set acpi=off as custom kernel parameter before starting os installation
install as usual

After finished OS Installation

install bumblebee
remove acpi=off as custom kernel in grub configuration
reboot

You should now be able to boot with working graphics and working bumblebee.


Screen brightness keys not working (fn + f5/f6)

On Ubuntu with Unity desktop environment, one can use qdbus to issue some of the system commands via dbus service, and there are two commands for increasing and decreasing brightness.

For increasing ,

qdbus org.gnome.SettingsDaemon.Power  /org/gnome/SettingsDaemon/Power org.gnome.SettingsDaemon.Power.Screen.StepUp

and for decreasing

qdbus org.gnome.SettingsDaemon.Power  /org/gnome/SettingsDaemon/Power org.gnome.SettingsDaemon.Power.Screen.StepDown

These commands can be bound to keyboard shortcuts for convenience. Go to System-Settings ->  Keyboard  ->  Shortcuts  -> Custom Shortcuts , click on  + icon to add new shortcut.

A popup will appear, and add one of the commands above. In the screenshot you can see me adding the step-down command

Once you click apply, you will see a new entry added to the list. You can click on the Disabled text, and it will wait for you to press the key combination you want to correspond to this command.

I've set mine to Alt+Shift+Arrow Down for decreasing brightness. Feel free to select your own combination.


I had difficulties with this problem on Ubuntu 14.04. The CPU Usage was charged by compiz over 60 %...I followed the instructions from a Bug-report:

Download the "Compiz Config Settings Manager" from Ubuntu Apps
Run the Compiz Config Settings Manager and select the section OpenGL
Turn the option Sync to VBlank off
Reboot or log out and in.

After this procedure the CPU Usage of compiz is at 10%..

I hope this helps others as well.


I found this solution

sudo rm /tmp/hotspot.pid

this will delete the process id created temporarily  and no more the error is displayed. This worked in my case.


Alsa, internal mic on macbook works sometimes

I figured it out. It looks like it's a bug with Ubuntu probably. I went to system settngs>sound>Input tab> select microphone built in audio, and then over on the right hand side where there is the input volume and the mute button.

Checkbox the mute button, and then un-check it again and that causes the microphone to start working. I hope it works for anyone else having this problem.


Getting function keys working on Samsung RV510 notebook

there are two main problems, i had too and i fixed this way:

1) you have to force release of the keys (search internet)
   Pratically you have to add your exaxct pc model name to the file
   /lib/udev/rules.d/95-keyboard-force-release.rules

to take exact name of the pc run:

sudo dmidecode -s system-product-name

Then add the model like this on the file:

ENV{DMI_VENDOR}=="[sS][aA][mM][sS][uU][nN][gG]*", ATTR{[dmi/id]product_name}=="*N128*|*N130*|*N140*|*N210*|*N220*|*SR70S/SR71S*|*YOURMODEL*",
RUN+="keyboard-force-release.sh $devpath samsung-other"

2) Install voria's samsung-backlight module:

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

Hope is useful.

Andrea.


Cannot install openssh-server: useradd: cannot lock /etc/gshadow

Is there still an adduser process running?

You can check this using the following command:

ps -ef | grep useradd

If so, you can kill it using:

sudo killall -9 useradd

You may have to delete the lock files because useradd got interrupted and therefore couldn't remove the lock files itself:

sudo rm -f /etc/passwd.lock /etc/gshadow.lock

Now try installing using apt-get again.


Take a look at this GitHub page for a user with a similar issue, the rest of this answer will be citing that source.

The example base code they gave was the following

button {
        min-height: 22px;
        min-width: 24px;
        @include button(shade($bg_color, 1.2), $fg_color);

        .inline-toolbar &,
        .linked > & { @include linked_button(shade($bg_color, 1.2)); }

        .linked.vertical > & { @include linked_vertical_button(shade($bg_color, 1.2)); }

        &.circular { // FIXME: aggregate to buttons
            border-radius: 20px;
            -gtk-outline-radius: 20px;

            label { padding: 0; }
        }
    }

Notice the 2 first lines, min-height and min-width You say that you have only changed height as of now, however, if there are options enabled in the theme to lock buttons to a certain ratio (usually to prevent text wrapping), you will need to change both height and width to see an effect:

button {
        min-height: 11px;
        min-width: 12px;
        @include button(shade($bg_color, 1.2), $fg_color);

        .inline-toolbar &,
        .linked > & { @include linked_button(shade($bg_color, 1.2)); }

        .linked.vertical > & { @include linked_vertical_button(shade($bg_color, 1.2)); }

        &.circular { // FIXME: aggregate to buttons
            border-radius: 20px;
            -gtk-outline-radius: 20px;

            label { padding: 0; }
        }
    }

A couple more comments on the page;

  Setting min height-width below 16px should resolve the issue. But this calls for trial and error.

  Try using min height/width = 16/14 or 14/12 and then try optimizing. Everything should change proportionally.

The changelog of the page itself indicates this is a problem that was never really resolved, there was more so a workaround developed. Hope this helps.


Change Xubuntu's default text editor globally

If you do not want to install additional applications you will have to manually edit ~/.local/share/applications/mimeapps.list

Under the [Added Associations] section add:

application/x-perl=sublime.desktop
text/plain=sublime.desktop
text/x-chdr=sublime.desktop
text/x-csrc=sublime.desktop
text/x-dtd=sublime.desktop
text/x-java=sublime.desktop
text/mathml=sublime.desktop
text/x-python=sublime.desktop
text/x-sql=sublime.desktop
text/x-tex=sublime.desktop


Error installing ath9k Wireless Driver for Ubuntu 12.10

You need some packages before you can build it.

Please refer to: https://gist.github.com/chrisjlee/3406323


define vim key mapping for user defined bash function

It turns out that as @dessert suggested, using execute '!bash -ic "myfun %"' works.


Hybrid Graphics cannot switch, ATI drivers can't find adapter?

I had similar problem, try edit /etc/default/grub and add radeon.runpm=1 to GRUB_CMDLINE_LINUX_DEFAULT so something similar to this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.runpm=1"

save and run sudo update-grub then reboot.

Also try sudo aticonfig --initial --px-dgpu if --adapter=all isn't working.


The following steps fixed my battery charging on a Carbon X1 5th gen. Your BIOS might be a bit different, but the principle might be the same:

shut down notebook
go to BIOS (to enter the BIOS, I pressed ENTER at boot, and then F1)
in the BIOS, go to Config, then selecte Disable Built-in Battery. This disables the battery completely (i.e. disconnects the battery circuit logically)
unplug the charger
press the power button for about 10 seconds
plug the charger back in
boot up

Now my notebook is charging again.


Bash delete file with two variable path not working

By not quoting the assignment

ext=*.csv

You will set ext to "*.csv'" only if there are NO.csvfiles in the current directory. If the current directory has*.csvfilesext` will get a list of them.

For example, I have 18 .csv files in my home directory, and none in ~/bin.

walt@bat:~(0)$ cd ~/bin
walt@bat:~/bin(0)$ ext=*.csv
walt@bat:~/bin(0)$ echo $ext
*.csv
walt@bat:~/bin(0)$ cd
walt@bat:~(0)$ ext=*.csv
walt@bat:~(0)$ echo $ext
abook15.csv abook62.csv abook8.csv abook.csv accountactivity.csv Address book headers.csv addresses.csv allphones.csv assets.csv bbook.csv Jchq-2013-08-01-2014-07-31.csv Jchq.sort.csv PCF2016Aug04.csv portfolios.csv rickdisk.csv test.csv testmoo1.csv testmoo2.csv

Clearly, "$path/$ext" will look funny.

To preclude this filename interpolation, quote your assignment:

ext='*.csv'


How to create image carousel in lockscreen?

Go for variety, its the best out there.

Variety is packed with great features, yet slim and easy to use.

It can use local images or automatically download wallpapers from lots of online sources, allows you to rotate them on a regular interval, and provides easy ways to separate the great images from the junk.

Variety can also display wise and funny quotations or a nice digital clock on the desktop.

To install type in terminal:

sudo add-apt-repository ppa:peterlevi/ppa
sudo apt-get update
sudo apt-get install variety

To launch variety type in terminal:

variety


Does anyone know how to create pretty + cool conky?

"cool" is very subjective. I would start on the conky site, there are some sample configurations with screen shots

http://conky.sourceforge.net/screenshots.html

If you wish, there are a graphical tools to help with configuration

I like conkywizard

http://gnome-look.org/content/show.php/ConkyWizard?content=126352

There is also a conky gui on sourceforge

http://conkygui.sourceforge.net/pages/home

From there, conky is very flexible, sort of depends on what you want. You are going to have better luck if you as a more specific question about some specific feature you desire.


Can Ubuntu recognize an external disk drive created by windows xp?

Yes sure. It should be installed by default. Assuming there is something wrong just try to  install ntfs-config

sudo apt-get install ntfs-3g ntfs-config
gksudo ntfs-config`

You should see the external drive in File Explorer (called nautilus) at the left side if you open you Computer Icon or Home Folder


Errors using Wubi on Windows 7 Home Premium 64 bit

Without the log file it's not possible to identify the exact cause of the problem.

However, the easiest way to install Wubi is to download wubi.exe and the desktop CD ISO yourself and save them both in the same directory on your harddrive.
e.g. the 11.10 64-bit desktop CD ISO and the 11.10 wubi.exe

Then remove all Ubuntu USB and CDs from the computer (any ISO on the root of a drive e.g. E:\ as well). This is important. Now run that wubi.exe

Some software will associate itself with the .iso extension and identify the ISO as an archive or offer to do some default action. Just select to save the ISO. Or right click on the link and select "Save link as" to bypass the software. If you go direct to http://releases.ubuntu.com/11.10/ there are other download options e.g. the .torrent extension which will open up in your bit torrent client. It doesn't matter where you save the ISO as long as it's in the same place as the wubi.exe of the same release.


Mouse is stuck in drag mode (hand icon). Cannot click anything other than the top bar. Restarting doesnt fix it!

In my case I knew which program had caused the mouse cursor to 'freeze up'. I was using Archive Manager to drag and drop an image out of a zip file when I got the hand icon. Tried the other answers here without luck.

What worked for me was Alt-Tabbing to activate the application then press Alt-F4 to close the program window. Once the window closed, my mouse cursor returned to normal.


How do I get video thumbnails on Ubuntu 18.04.1 LTS?

I had a similar issue. There is an article on Hectic Geek about how to set ffmpegthumbnailer as the default thumbnail viewer for video. It's not enough to install the package. However, you don't need to overwrite the totem.thumbnailer file either, just edit the TryExec and Exec lines (sudo -H gedit /usr/share/thumbnailers/totem.thumbnailer):

TryExec=/usr/bin/ffmpegthumbnailer
Exec=/usr/bin/ffmpegthumbnailer -s %s -i %i -o %o -c png -f

Leave the rest of the file as-is. After this, you may need to close your file browser and delete the thumbnail cache for it to take effect.


Handle file conflicts last while transferring data. (+rename automatically)

Assuming you are using the default file manager in Ubuntu:

Right-click the folder containing the files on your phone you want to transfer to your PC, then click Open in Terminal.
Run one of these two commands (copy or move), replacing <target> with the destination path:

cp -r --backup=numbered * <target>
mv -r --backup=numbered * <target>

This will rename the target file with a .~1~ suffix if there is a file name conflict. If a file ending with .~1~ exists, .~2~ is used, and so on.


Beats Studio 3 bluetooth headset won't work in ubuntu 20.04

I have the same issue!
HW:

Beats Studio 3 wireless (worked OK with different OS, phones, etc.)
Lenovo Yoga slim 7


Your "full name" is written along with your user name to /etc/passwd and available for any program on your system. You can change your full name at any time using the User dialog in the system settings.

It's used as a default by most programs that use something like a "full name". Other than the ones mentioned by you and Linux Distance that includes for example LibreOffice.


Touch Pad is detected as a generic mouse device in 12.04

Here is my solution. I totally remove psmouse by following commands

sudo dkms remove --all  psmouse/alps-dst-0.4

and I remove the config file;

sudo rm /etc/modprobe.d/psmouse*

and my touchpad came into life


This happened to a computer I worked on. Try resetting Unity  configuration and resetting LightDM configuration. Sometimes, an NVIdia driver can mess things up, too.

On Grub, choose Advanced options for Ubuntu.
Choose the lowest version of Linux you can find with recovery mode. This is very important.
On the new menu that apears choose Drop to shell prompt.
Type sudo unity --reset
Type sudo apt-get remove nvidia-*
Type sudo apt-get install --reinstall lightdm
Type sudo reboot

Now, if it was the same as mine, it should be able to boot now. If it gives you an error, let me know, as I'm very willing to help.


uninstall lubuntu 13.04 to not interfere with built in win 7 installer

I don't know if there is a place where you can download a copy of windows 7 legitimately. What I did was go to the piratebay.se and download myself a copy and of windows 7. I do not condone pirating but by doing this you can burn the CD and have access to the recovery utilities. I personal do not consider this pirating because I am not using the software other than just the recovery tools, and I have paid for windows so I just re install with the computers product key if i have to.


Is it possible to have Ubuntu only on the flash stick?

Yes, that is exactly what it will do by default. Just boot the flash drive and press "try." If you decide you like it but still want to keep your Windows desktop around, you can also install it in addition to windows on the same hard drive. Just look up "ubuntu dual boot windows" or similar to see how to do that.


System settings -> Appearance -> Behavior -> Enable workspaces checkbox. Works for me


Is there any program that can open files from Sketch

Figma can import Sketch files. It's web-based and should work fine on Ubuntu as long as your browser supports WebGL.


Ubuntu 18.10 Cannot install php7.2-dev for install phpize

Let's look at the available sources in the Ununtu repositories for those packages:

$ apt-cache madison libpcre3
  libpcre3 |  2:8.39-11 | http://us.archive.ubuntu.com/ubuntu cosmic/main amd64 Packages

Ah, there's the problem. On 18.10, you are telling apt to install -9 instead of -11. You're tying to install an OLDER version that's not in the 18.10 repos. This means you have unwisely added a non-Ubuntu source that is intended for an older release of Ubuntu (like 18.04).

When a release of Ubuntu is built from Debian sources, all the versions are synchronized. All of the thousands of package depend upon a single version of each dependency. And then that one version goes into the repos. That's why Ubuntu is referred to as a snapshot distro. When you change versions, you might break all those dependencies. And that's why a release-upgrade involved replacing thousands of packages...all the dependencies must be updated to the new snapshot.

The problem you have is caused by trying to add packages with 18.04 dependencies to an 18.10 system. It won't work without expert ongoing maintenance. You can add 18.10 packages to an 18.10 system, or you can add 18.04 packages to an 18.04 system. But you cannot cross versions with the risk of breaking your system quite horribly, so the whole distro, repos, releases, and apt are set up to stop you from doing that.

Now let's take a look at libssl:

$ apt-cache madison libssl1.1
 libssl1.1 | 1.1.1-1ubuntu2.1 | http://us.archive.ubuntu.com/ubuntu cosmic-updates/main amd64 Packages
 libssl1.1 | 1.1.1-1ubuntu2.1 | http://security.ubuntu.com/ubuntu cosmic-security/main amd64 Packages
 libssl1.1 | 1.1.1-1ubuntu2 | http://us.archive.ubuntu.com/ubuntu cosmic/main amd64 Packages

Same problem. Version 1.1.0g-2ubuntu4.1 is in 18.04, not 18.10. You are trying to add 18.04 packages to an 18.10 system. Stop doing that.


Allow one process access to /dev/uninput without completely compromising security

OBSOLETE, read the UPDATE at the bottom of this reply

You are right. This is the reason it's listed as a Known Issue. I assume they'll find a way sooner or later.

This is not secure, but it works (until there is a proper fix).
Create a file /etc/udev/rules.d/99-steam-controller.rules with the following content:

# replace game group by a valid group on your system
# Steam controller keyboard/mouse mode
SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", GROUP="games", MODE="0660"

# Steam controller gamepad mode
KERNEL=="uinput", MODE="0660", GROUP="games", OPTIONS+="static_node=uinput"

Then add the user you use to start steam to the "games" group

sudo usermod -a -G games <YourUsername>
#Restart udev service
sudo udevadm control --reload

Source:
https://github.com/ynsta/steamcontroller

UPDATE

This has been added to the list of known issues. Make sure you are using the udev rule from the official site:
https://steamcommunity.com/app/353370/discussions/0/490123197956024380/

There are instructions on how to fix your problem there, and the rules are updated once in a while when Valve adds support for new controllers.


Packard Bell TK11 Wifi not working (Ubuntu 12.10)

Please run:

    lspci -nn

Is the pci.id for your device 14e4:4358? If so, please get a temporary ethernet connection and do:

    sudo apt-get install linux-headers-generic
    sudo apt-get install bcmwl-kernel-source
    sudo modprobe wl

If we guessed the wrong pci.id, please edit your question to add it.


Why is $PATH different in the Nautilus-Elementary embedded terminal?

Like all terminals launched in gnome, it should be inheriting the PATH environment from the parent process. These ultimately come from the /etc/login.defs and /etc/environment files and are initialised when ever you login.

In fact if you go to another tty and log in (Ctrl+Alt+F1) you'll see the same path as gnome terminal. But not the same limited path as elementary.

I'd ask you to report a bug, but the elementary team hasn't registered a bug reporting service.


What path do I need to give to 'dd' when creating a bootable USB stick on Mac OS?

The guide contains a useful tip:

  Tip: Drag and drop a file from Finder to Terminal to 'paste' the full path without risking typing errors.

Here is what I would do:

write sudo dd if= (without pressing Enter);
drag and drop the .img file to the terminal;
type a space, write of=/dev/rdiskN bs=1m and press Enter (remember to replace N with the correct number).


Why do I keep getting monthly charges after cancelling?

You would need to contact Ubuntu One support for that. Fill out the form on this page
https://one.ubuntu.com/support/contact/ and select the "I have a billing question" from the drop down box


So I wound up using the following two iptables inputs to redirect all DNS traffic to my DNS server instead of straight blocking it. This allows devices with hard coded DNS addresses to still function (albeit a bit slower)

iptables -t nat -A PREROUTING -i br0 -p udp ! --source 192.168.2.196 ! --destination 192.168.2.196 --dport 53 -j DNAT --to 192.168.2.196

iptables -t nat -A PREROUTING -i br0 -p tcp ! --source 192.168.2.196 ! --destination 192.168.2.196 --dport 53 -j DNAT --to 192.168.2.196

Where 192.168.2.196 is the IP address of my DNS server.


With this card, use the open source radeon drivers, no installation is necessary, it is in the kernel.


Once you burn the .iso to the CD/DVD, be sure to check 'Verify disc after burning' / 'Verify disc' check box on your burn application. This is rareley useful, but could be the cause of the problem.


Alright so I solved the issue, it turns out that the file was actually installing. Although it wasn't becoming accessible from the command-line.

So adding:

"serve": "nodemon server.js"

in the scripts section of package.json for your node.js project, then you want to run this command to start it:

  npm run serve

just make sure that you are in the project directory


This is what I did to finally install pgadmin3:

First I checked the available version on the repository:

apt-cache policy pgadmin3

Then installed that version (may change in time, use the proper version shown by the previous command):

sudo apt-get install pgadmin3=1.22.2-1 pgadmin-data=1.22.2-1

As Elder Geek points out, you need to enable the universe repository


Ubuntu VM Unity GUI Not Starting After Appliance Export VirtualBox

Lets check the file system to make sure there aren't any errors.

boot to the GRUB menu
choose Advanced Options
choose Recovery Mode
choose root access
type sudo fsck -f /
run fsck more than once if there were errors
type reboot


Disable sleep on laptop lid close in tty1

Try to edit the /etc/systemd/logind.conf file and modify the line:

#HandleLidSwitch=suspend

to

HandleLidSwitch=ignore

Then reboot.


Installation of Display Card Driver : [ATI Radeon HD 4770]

Your log suggests that you are missing the linux-headers-generic package.

You can install this by either searching the software centre or entering in a terminal

sudo apt-get install linux-headers-generic

Should the install continue to fail you may also need to install build-essential, gcc,dkms and make.

you can do this in a terminal by typing sudo apt-get install build-essential dkms gcc make


Will Ubuntu Software Center function in Raspbian OS?

You might get better response if you ask on Raspbian Support Forums. As far as I know, Raspbian is based on Debian, not Ubuntu, and Debian does not yet include the Ubuntu Software Centre.

If you are just looking for a way to install software however, you may try Synaptic. Some guidance here http://www.neil-black.co.uk/install-a-graphical-package-manager-on-the-raspberry-pi#.Uj8BkUTK3Fg (usual disclaimer about third-party sites -- I'm not affiliated with that site, found it through google search)


how to make linux prefer sudo pm-hibernate over systemctl hibernate as default?

I faced the same problem on Ubuntu 18.10. You need to edit the hibernation service :

sudo systemctl edit systemd-hibernate.service

then paste this:

[Service]
ExecStart=
ExecStartPre=-/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep
ExecStart=/usr/sbin/s2disk
ExecStartPost=-/bin/run-parts -v --reverse -a post /usr/lib/systemd/system-sleep

Save, then:

sudo systemctl daemon-reload

Run sudo systemctl hibernate it should work now.


How to fix start of Windows 7 after Ubuntu Gnome 16.04 LTS instalation?

According to your Boot-Repair Log

  The boot of your PC is in Legacy mode. You may want to retry after
  changing it to EFI mode.

You need to enter BIOS and change Boot Type from Legacy to UEFI.


Downloading youtube videos with minitube

Using a terminal you may wish to give a chance to youtube-dl which can be easily installed by dropping sudo apt-get install youtube-dl and its usage is quite easy: simply copy the youtube url and add it in the terminal just after youtube-dl as shown in the next example:

youtube-dl http://www.youtube.com/watch?v=yQEaXAoB6Ck

This code will download Baltimora Chinese Restaurant video.

This will resut in the flv video to be downloaded in the folder where the terminal resides at the very moment that you start downloading, so make sure you first change directory to your videos folder.

Another excellent option is via GUI, by using Mobile Media Converter by MikSoft

And or JDownloader. JDownloader will also allow you to choose which video format you want to donload based on the available formats in youtube, which may include but not limited to: mp4, flv, ogv, mp3 and a few other.

Good luck!


Select full column in text file (geany)?

Possibly Ctrl + Shift + selection with the Mouse will be more productive for you.


How to make dash load faster in unity-2d

Yes, this is Ubuntu 11.10. I have an old computer, so maybe that's the problem. My processor is Intel® Pentium(R) 4 CPU 1.50GHz and my graphics card is GeForce2 MX/AGP/SSE2

I think you are correct -- the problem is your CPU is old and very slow and your GPU (graphics card) is also old and doesn't support compositing and other features. This means everything must be rendered in software, and that is a burden for your CPU.

The Pentium 4 CPUs were notorious for providing extremely poor performance compared to what their clock speed was (1.5 GHz, here); for example, the CPUMark below shows that a Celeron M at half-the-speed or 800 MHz (released 3 years later) is faster than a Pentium 4 1.5 GHz:

Unfortunately, the solution to continue using the latest Ubuntu on your current hardware probably involves switching from Unity 2D to a lighter desktop environment such as XFCE or LXDE; perhaps you could try an Xubuntu/Lubuntu LiveCD to get a feel for what kind of performance to expect.


Rkhunter warnings : file exists on system but not in rkhunter.dat (and vice versa)

Indeed I have two versions installed. One in /usr/bin/rkhunter (version 1.4.0) and was installed from the apt-repositories. There was a second version installed in /usr/local/bin/rkhunter (version 1.4.2) which was installed as an update to 1.4.0 but appears did not actually replace 1.40. Updating crontab to the correct path has solved the issue.

So, having two versions of rkhunter is probably not ideal, but that's a different question!


Is there a way to control flash video brightness independently, via config file?

You can control video overlay settings with the proprietary NVIDIA driver. (nvidia-current package, in case you're using the default nouveau driver.) Open System > Administration > NVIDIA X Server Settings. Hit X Server XVideo Settings in the list on the left, and tweak the values on the right to suit your needs. This should affect anything that uses XVideo, such as most media players.

The only issue may be Flash, which could bring you back to square one. It's possible that it does use XVideo (and awesome if it does) but if not you don't have a whole lot of options for that.

Edit: I tried this out myself, and it turns out Flash is not affected, unfortunately. You may have to wait for Adobe to implement XVideo or video acceleration in Flash unless another solution comes up.

However, it is possible that the darkness issues you're experiencing could also be video driver related, though I've never heard of an instance of this on Linux before.


Problem while install mysql in ubuntu 18.04

Is the mysql service running?
Try

sudo service mysql status

There should see something like this on the third line

Active: active (running) since Thu 2018-09-06 13:29:28 CEST; 3s ago

If not, you can start the mysql service with

sudo service mysql start


Set TeXStudio as default software to open .tex files in Kubuntu 15.04

Go to your system settings, there should be something like file assignment (I am not using English Kubuntu, but the icon should consist of 3 different diagonally arranged file symbols, and it should be in the uppermost block), if you click you can search for latex in the search field, then click on x-tex, or tex or whatever comes up, then sort texstudio to the top in the right field that appears when you click on "tex" from the list.


Assuming that each slave (node) has only one Ethernet adapter in it...

Make sure that each node's Ethernet adapter is connected to the same Ethernet switch.  Make sure that one Ethernet adapter from your MaaS controller is also plugged into that switch.  If you want, you can label that switch "Private".

In MaaS, make sure that you issue a good network address range (CIDR) to this Private network.  You might issue 10.1.1.0 as the network, 24 or 255.255.255.0 as the mask and bind 10.1.1.1 to the Ethernet adapter in the MaaS controller.  When defining the cluster you could indicate that static addresses are from 10.1.1.10 through 10.1.1.50 and dynamic addresses are from 10.1.1.100 through 10.1.1.200, for example.

Now for the other Ethernet adapter in your cluster controller, this would be the one that faces the Internet.  Typically, you would connect this one to a different Ethernet switch.  The network would be something else appropriate for your existing setup.  As long as you issue a unique IP address within this range and set the default gateway to point to the next upstream router then things should work smoothly.

It's important that each node can fetch software from the Internet so the routing must be correct to allow for this.  The cluster controller typically only provides DHCP for the Private side of this, btw.  People often already have an existing system in place when they add a MaaS controller and they don't want MaaS taking over things on the opposite side of the network.


The closest thing to a Windows-like restore point is by using Timeshift. I use it to save snapshots to an external USB hard drive. Although it can, it's normally not used for backing up your /home directory, just system-level changes. Use Backups (Déjà Dup) for backing up /home files.

Timeshift is a system restore utility which takes snapshots
of the system at regular intervals. These snapshots can be restored
at a later date to undo system changes. Creates incremental snapshots
using rsync or BTRFS snapshots using BTRFS tools.

More information at https://github.com/teejee2008/timeshift

Add the PPA and install with:

sudo add-apt-repository -y ppa:teejee2008/ppa

sudo apt update

sudo apt install timeshift

Update #1:

Timeshift can now be found in the Ubuntu 19.x repos.


Change Background Color of Libreoffice Writer Comments

I have LibreOffice version 4.4.2.2 in Xubuntu 14.04. I noticed that I can change the background color of the comments to my liking if I go to Tools > Options > LibreOffice > User Data. There I would add myself as an owner with a certain name (for example, my first and last name, only my first name, etc.). Then I would close and add a comment. Each time there was a new name, there was a new background color for the comment. I did this until I came across a color I liked. Then I stuck with that name. I think the different colors may be coming from the Xfce theme colors I have installed, although I am not 100% sure. It is pretty nice to just stumble upon an answer. :)


In the general case you can install plugins as user plugins  in the Gimp user profile. Go to Edit>Preferences>Folders>Plugins, this lists two folders, the "system" one in the snap package (or /usr/lib), and the "user" one in /home (~/.config/GIMP/2.10 in recent versions,~/.gimp-2.8` in earlier versions). Just drop you executables in the "user" one.

If you need to recompile your plugin, you need Gimp header files and the best way to get them is to compile your own Gimp, which is not too complicated, since the Gimp development+install output put the necessary files in places coherent with plugin compilation if you use the same environment settings). However your GAP is for Gimp 2.6
and Gimp has moved quite a bit since so I don't know how far you can go with this antique thing, especially if you need Gimp header files.

This said, many functions in GAP have equivalent with Python or Scheme scripts.


Configuring routes so that vpn is only used for local resources

I managed to solve it.

First I increased the metric of the default gateway route to 1 so that all my traffic goes trough that.

sudo ifmetric enp4s0 1

After that I added a new route for the 10.x.x.x subnetwork

sudo ip route add 10.0.0.0/8 dev ppp0 metric 25

this now allows me to access all vpn network resources and use my local internet connection for everything else.

I also added a script into /etc/network/if-up.d/ that automatically does this every time I connect to the vpn.

#!/bin/sh

if [ "$IFACE" = "ppp0" ]; then
     ifmetric enp4s0 1
     ip route add 10.0.0.0/8 dev ppp0 metric 25
fi

Where ppp0 is the interface name of my vpn connection.
And the routing table in the end looks like this:

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    1      0        0 enp4s0
0.0.0.0         0.0.0.0         0.0.0.0         U     50     0        0 ppp0
10.0.0.0        0.0.0.0         255.0.0.0       U     25     0        0 ppp0
10.150.1.254    0.0.0.0         255.255.255.255 UH    50     0        0 ppp0
169.254.0.0     0.0.0.0         255.255.0.0     U     1      0        0 enp4s0
192.168.0.0     0.0.0.0         255.255.255.0   U     1      0        0 enp4s0
195.230.180.187 192.168.0.1     255.255.255.255 UGH   1      0        0 enp4s0


How do I compress multiple files into a .xz archive?

Use tar with -J option:

tar -cvJf images.tar.xz /directory/containing/images/*

tar is used to combine multiple files into one (Archive) and then we need to compress the archive using XZ compression algorithm.

From man tar:

-c, --create
       create a new archive
-v, --verbose
       verbosely list files processed
-J, --xz

-f, --file ARCHIVE
       use archive file or device ARCHIVE

Also note that images.tar.xz will be created in the current directory, if you want to save it somewhere else use /full/path/to/images.tar.xz.


Remove additional processes/services from Ubuntu server

Install rcconf:

sudo apt-get install rcconf

And then run it with root privileges:

sudo rcconf

What I usually do is disable postgres and start it manually when I need it (I'm only using for my course of database management, so I don't need it running all the time).

sudo service postgresql-9.1 start
sudo service postgresql-9.1 stop


Juju 1.16.0 has preliminary support for manual provisioning, and a manual provider. Unfortunately we found quite late (too late for inclusion in 1.16.0) that there were a number of bugs that made it quite difficult to use. For this reason, we've not announced this widely yet.

If you're going to try it, I'd suggest either waiting for 1.17.0 (or later), or if you're adventurous, build from source. There's only one known bug now (discounting those caused by it), and that's that you can't destroy the environment (uninstall the agents) via the juju tool.

Everything in the docs is still true right now, but may change as we develop things. It is quite likely the name of the provider ("null") will change, for instance. If you have more specific questions after reading the docs, please update your question.


Can't install 12.04 inside Windows 7 using WUBI

This is a bug - remove the CD and run Wubi standalone again. Also take a look here


Login Manager does not have a selection for other user

Which architecture do you run Ubuntu on? This looks also like the bug https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/952909?comments=all which affects accountsservice on some architectures like ARM (e.g., on Toshiba AC100) or PPC. It has already been fixed in the original Debian packages, but not yet in Ubuntu's packages AFAIK.

If that's the case, read also User Accounts not listed in System Settings User Accounts, a question where the architecture has been explicitly stated.


How can I install jdk-8u91-linux-x64.tar.gz on Ubuntu?

look here

https://stackoverflow.com/questions/6477415/how-to-set-oracles-java-as-the-default-java-in-ubuntu

not the accepted answer but Barracuda's, which I reproduce below:

  to set Oracle's Java SE Development Kit as the system default Java
  just download the latest Java SE Development Kit from [here][1] then
  create a directory somewhere you like in your file system for example
  /usr/java now extract the files you just downloaded in that
  directory:

$ sudo tar xvzf jdk-8u5-linux-i586.tar.gz -C /usr/java

  now to set your JAVA_HOME environment variable:

$ JAVA_HOME=/usr/java/jdk1.8.0_05/
$ sudo update-alternatives --install /usr/bin/java java ${JAVA_HOME%*/}/bin/java 20000
$ sudo update-alternatives --install /usr/bin/javac javac ${JAVA_HOME%*/}/bin/javac 20000

  make sure the Oracle's java is set as default java by:

$ update-alternatives --config java

  you get something like this:

There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                           Priority   Status
------------------------------------------------------------
* 0            /opt/java/jdk1.8.0_05/bin/java                  20000     auto mode
  1            /opt/java/jdk1.8.0_05/bin/java                  20000     manual mode
  2            /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java   1061      manual mode

Press enter to keep the current choice[*], or type selection number:

  pay attention to the asterisk before the numbers on the left and if
  the correct one is not set choose the correct one by typing the number
  of it and pressing enter. now test your java:

$ java -version

  if you get something like the following, you are good to go:

java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) Server VM (build 25.5-b02, mixed mode)

  also note that you might need root permission or be in sudoers group
  to be able to do this. I've tested this solution on both ubuntu 12.04
  and Debian wheezy and it works in both of them.

  [1]:
  http://www.oracle.com/technetwork/java/javase/downloads/index.html


The BNSL EVDO does not work by default for me too. I use it through gnome-ppp/wvdial. Please see if this helps:

Install gnome-ppp.
Run it as super user.
Give your 10 digit account-number as username AND password.
Give Phone number as #777 (I've used in Kerala and Karnataka circles).
Click on 'Setup'.
In the 'Modem' tab, click 'Detect'. The device gets detected as dev/ttyACM0.
In the 'Options' tab, along with the default options, also enable 'Ignore Terminal Strings (Stupid Mode)'.
Close the 'Setup' and try connecting now.

Also, before connecting, make sure the Modem is up. It usually takes about 30 seconds and the light stops blinking when the device is ready.


Problem connecting to SQL server via FreeTDS/UnixOdbc

Problem was related to the default port of SQL Server instance in target machine, it was changed to 1434. so all the configuration is correct juts need to adjust the port number, also before connecting make sure about the SQL Server's port.


On 16.10, I keep getting "waiting to install" error message for direct installation of any app (e.g., google chrome)

use app grid or synaptic or apt-get.software center is usually like that.

To install chromium ( the open source chrome without flash):

open a terminal by pressing ctrl+alt+T or pressing windows key and searching for terminal.

type

sudo apt install chromium-browser

type your password. you won't see anything while you type. just type and press enter. it will ask for confirmation again. type 'y' without quotes and press enter. it will download and install chromium.

but if you want graphical package manager. open a terminal as above and type

sudo apt install synaptic

synaptic is a well rated package manager.

if you want chrome, then, download the deb file from its site .
install gdebi from synaptic. and open the deb file with gdebi which will take care of dependencies and install it for you.


DVD-drive detected by BIOS and UEFI but not by Ubuntu 12.04

SORRY MISREAD YOUR QUESTION.
    NEW ANSWER
    I have this exact board w/Slackware64-14.0 installed
    My etc/fstab

/dev/sda1       /boot/efi       vfat    defaults,noatime,discard        0   2
/dev/sda2       /               ext4    defaults,noatime,discard        0   1
/dev/sda3       /home           ext4    defaults,noatime,discard        0   1
/dev/sda4       swap            swap    defaults,noatime,discard        0   0
/dev/sr0        /media/dvd      auto    noauto,users,ro,comment=x-gvfs-show     0   0


"WARNING:root:file 'saucy.tar.gz.gpg' missing" on distribution upgrade

I had apt-cacher installed.

https://help.ubuntu.com/community/Apt-Cacher-Server

Remove or edit the proxy file you added in /etc/apt/apt.conf.d/
to bypass apt-cacher.


Have you try to install not from Wubi ? but from DVD or bootable USB.Here are the steps to install it from DVD or Bootable USB

  Creating bootable media

1-If you use DVD you can directly burn an Ubuntu ISO then boot it

2-If you want to use USB drive,you need some apps like Universal USB Installer or rufus to make a bootable USB

  Preparing Partition and Installation

1-Make a spare partition for Ubuntu from Windows by running diskmgmt.msc.Choose a partition to shrink (left-click and choose shrink) then insert the amount of the new partition.

2-After a new unallocated partition created,don't create a partition on it and now safe all your works and shutdown your computer then boot from your Ubuntu Installation media (you can change your boot configuration from BIOS)

3-Boot it up and wait till a window appeared and then choose "Install"

4-Follow the instruction,till you get option like "Install Ubuntu Alongside Windows".etc choose "Do something else" .A new window will appear

5-Choose your unallocated partition and click "+" there you will choose the mount point,the partition size and the filesystem,for the filesystem choose ext4
and i suggest to make more than one partition so you can make separate partition for other mount point and a partition with filesystem swap (well not all mount point should have a partition)

5.5-Make sure you've make a partition with mount point "/" because that mount point is equal to C: partition on Windows.And for the swap partition,it's equal to paging file on Windows,so theoretically with this partition on your HDD it will add a little for the memory peformance

6-After you finish with the partitioning stuff,you can proceed and follow the instruction

P.S.:After you installation done and reboot,restore your boot config. to previous state so it may to boot from HDD.


How do you completely reset monitor configuration (e.g. what used to be dpkg-reconfigure xserver-xorg)?

If you think it's some user preferences settings, then you can create a new user "temp", login as a "temp" and see if it's ok.

You can also try xrandr --auto.


Install from ISO image on the same hard drive

Boot to RAM, unmount partitions, use gparted to create a small partition 1-2gb, copy iso image there, set up grub to boot iso. boot iso. install. Hope this will work


You can add Windows entries to your GRUB menu (Ubuntu bootloader) via the Recommended Repair of Boot-Repair.


As far as I know, glibc is not something you can just upgrade.
However, you can just use "pbuilder" and PPAs to have your stuff built.
Or even VirtualBox with a simple Ubuntu server.

For more information on Pbuilder and PPAs, check the Packaging Guide.


Why does ubuntu not see my maximum monitor resolution?


Need Graphics Drivers foe AOpen MK77M-8Xn PC

IMHO, Ubuntu is not a good candidate for old hardware, try Xubuntu instead. It's less pretty, but should run snappier, and it also doesn't need recent OpenGL enabled graphics with a decent driver support.

VIA's graphics are known to have bad reputation in the Linux world. There are a least two drivers, both incomplete, and porly maintained. If the AGP slot on the board works, it's worth getting an Nvidia card, even something like FX5200.

Searching for a driver for computer X, downloading an installation file, doubleclicking, and going through a wizard is something you'd do with Windows. Linux doesn't have that, in fact, graphics drivers in linux are a mess with various components, not always compatible with each other, worked on by different devs, not easily installable or upgradable, etc.


How do I set up the brightnes control on a Toshiba Satellite L650?

This is the answer OP posted in the question:

I've just found solution and brightness started to work.

I just change put:

gedit /etc/X11/xorg.conf

and my xorg.conf was very short:

Section "Screen"
    Identifier  "Default Screen"
    DefaultDepth    24
EndSection

Section "Module"
    Load    "glx"
EndSection

So added at the end:

Section "Device"
    Identifier     "ATI Radeon HD 5000M"
    Driver         "radeon"
    Option         "NoLogo" "True"
    Option         "RegistryDwords" "EnableBrightnessControl=1"
EndSection

And now is ok.


You should make sure the disk is in good condition first.

sudo umount /dev/sda1
sudo fsck /dev/sda1

Be careful with this, you don't mention why it's mounting as read only. However, it is possible to re-mount the root filesystem in r/w mode. Try something like this to remount

sudo mount  -o rw,remount -force /dev/sda1 /


Degrading administrative privilege to standard with single admin user account

Assuming that the utility you were using prevents you from taking away your administrative privileges (i.e., remove yourself from the admin group) when there are no other administrative users, arguably if it permits you to take away your administrative privileges when all other administrative users' accounts are disabled, that is a bug.

If you consider this a bug, I recommend that you report it as one. Please make sure to read the documentation on bug reporting carefully first, and also to search to see if someone else has already reported a similar bug. This would be a bug in the utility you are using to modify user accounts, and what utility that is depends on what version of Ubuntu you are using as well as what desktop environment you are using (for example, Users and Groups (users-admin, which is part of the gnome-system-tools package) stopped being the default utility for this in Ubuntu 11.04, being superseded by the User Accounts control panel in System Settings (a.k.a. GNOME Control Center; gnome-control-center, provided by the package of the same name). But in Ubuntu 11.04 and Ubuntu 11.10, users-admin is still the default utility for this in Lubuntu.

When you report this bug, you should start the report by running ubuntu-bug with the package name for the utility that allows this arguably undesirable behavior (for example, ubuntu-bug gnome-control-center or ubuntu-bug gnome-system-tools). You'll have a better handle on how to use the ubuntu-bug utility once you've read the bug-reporting documentation. You should make sure your bug report is complete and self-contained, so that it is not necessary for Ubuntu developers to refer to this question in order to fully understand and appreciate the problem you're describing. It would also be helpful for you to post a comment here with a link to the bug, once you've reported it.


How can I record audio in & mic in as 1 channel in Audacity?

It will be difficult with pulse or alsa (directly).

But you can use jack audio server (version 2 is better).
With jack you can route audio signals from sources (line in, mic, etc.) to sinks (speakers, recorders, streaming encoders), passing through filters (vu meters, equalizers, etc), using a sort of virtual cable.

Virtual audio cables on Windows got the idea from JACK :D

The tricky part is that you have to configure jack on your main sound card and hope the sound card allows you to use mic AND line-in at the same time (it's a hardware feature).


Install Ubuntu 18.04.2 black screen install

Disable or change GPU drivers? Usually you can choose between proprietary and open source. If both fail, try recovery mode.
If you are booting from a USB stick, try reflashing with the included "USB image writer". Also, make sure that the architecture of the image matches your settings.


I ran these commands and want to learn how to reverse them

You first command is not rightly put, perhaps you meant:

echo "deb https://pkg.tox.chat/debian nightly release" | sudo tee /etc/apt/sources.list.d/tox.list

Now let's undo the commands one by one:

You can either rename or remove the /etc/apt/sources.list.d/tox.list file:

sudo mv /etc/apt/sources.list.d/tox.list /etc/apt/sources.list.d/tox.list.bak

Or

sudo rm /etc/apt/sources.list.d/tox.list

Let's remove the gpg key of tox from the keyring of apt:

sudo apt-key del 1A171ABE

Let's remove the apt-transport-https package:

sudo apt-get remove apt-transport-https

sudo apt-get purge apt-transport-https   ## Removing configuration files too


Installating software off Ubuntu Store "frozen". How do I safely stop this/restart my system?

Just kill the gnome-software process by running the following command in the terminal:
killall gnome-software

Alternatively, you can end the process using a more Windows-like way by launching System Monitor → Processes tab → right click on Gnome Software → Kill.


Instead I think this CPU usage is not normal and is related to the well-known kworker bug:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/887793

The solution for me and for many others was, first of all, find out the "gpe" that is causing the bad stuff with something like:

grep . -r /sys/firmware/acpi/interrupts/

and check for an high value (mine was gpe13 - with a value like 200K - so, you have to change it accordingly, if differs). After that:

~ cp /sys/firmware/acpi/interrupts/gpe13 /pathtobackup
~ crontab -e

Add this line, so it will be executed every startup/reboot:

@reboot echo "disable" > /sys/firmware/acpi/interrupts/gpe13

Save/exit. Then, to make it work also after wakeup from suspend:

~ touch /etc/pm/sleep.d/30_disable_gpe13
~ chmod +x /etc/pm/sleep.d/30_disable_gpe13
~ vim /etc/pm/sleep.d/30_disable_gpe13

Add this stuff:

#!/bin/bash
case "$1" in
    thaw|resume)
        echo disable > /sys/firmware/acpi/interrupts/gpe13 2>/dev/null
        ;;
    *)
        ;;
esac
exit $?

Save/exit, done.

Tested and working on :

Ubuntu 12.10 on Samsung Chronos 7 series - Model no. NP700Z7C --
Ubuntu 16.04.2 on Clevo - Model no. P650RS --


Ubuntu 18.04 - Logout form an user and login to other user only mouse show up

I had the same issue
Disabling Wayland did the trick

Edit the file /etc/gdm3/custom.conf
FROM:
#WaylandEnable=false

TO:
WaylandEnable=false


KDM accepting username and password but doesn't load desktop

KDE is huge, so it's not very surprising that you ran out of space. Next time, though, try to resolve before you reboot. It can save you a lot of headache.

Follow these steps to restore normal Unity.

Enter a TTY by pressing Ctrl + Alt + F1.
Log in with your username and password.
Run sudo apt-get purge kde-* kubuntu-*.
Run sudo apt-get install --reinstall ubuntu-desktop.
Reboot.
You should be back to LightDM, and Unity should start when you log in.

Make sure that Ubuntu Desktop is selected in the menu at the top right of the password box. If this menu doesn't exist, that's fine. Just log in.


there's 2 version you can find the old one on 'https://downloads.sourceforge.net/project/macbuntu/'  Installation :

$ wget https://downloads.sourceforge.net/project/macbuntu/macbuntu-10.10/v2.3/Macbuntu-10.10.tar.gz -O /tmp/Macbuntu-10.10.tar.gz
$ tar xzvf /tmp/Macbuntu-10.10.tar.gz -C /tmp
$ cd /tmp/Macbuntu-10.10/
$ gksu './install.sh' && sudo apt-get update && sudo shutdown -r


What does it mean to down load the ..common.. driver?

They could mean Common Unix Printing System CUPS.

  CUPS is the software you use to print
  from applications like the web browser
  you are using to read this page. It
  converts the page descriptions
  produced by your application (put a
  paragraph here, draw a line there, and
  so forth) into something your printer
  can understand and then sends the
  information to the printer for
  printing.

  Now, since every printer manufacturer
  does things differently, printing can
  be very complicated. CUPS does its
  best to hide this from you and your
  application so that you can
  concentrate on printing and less on
  how to print. Generally, the only time
  you need to know anything about your
  printer is when you use it for the
  first time, and even then CUPS can
  often figure things out on its own.1

1http://www.cups.org/documentation.php/overview.html.


Disabling secure boot has no effect - 16.04

There are at least three possible solutions:

Don't use the proprietary Nvidia drivers -- The proprietary drivers might or might not provide any real benefit to you. Thus, you might want to at least try not using them. (Personally, I avoid proprietary video drivers whenever possible. In my experience, they cause more problems than they solve. OTOH, I'm not into gaming, so their benefits are pretty modest for me.)
Disable Secure Boot the "hard" way -- You could disable Secure Boot by using your computer's firmware setup utility rather than the tool provided with Ubuntu. The trouble with this approach is that there's no standardization of the menus and methods used to do this. The good news is that, despite the lack of standardization, there are some strong similarities between implementations in practice. See this page of mine for several examples.
Sign the modules yourself -- You can sign the kernel modules with a tool called sign_file, which is provided with the kernel source code. I don't have an exact step-by-step procedure handy to sign the Nvidia modules, but it ought to be similar to the procedure needed to sign VirtualBox modules, which is covered in this question and its answer. Note that the question references a couple more question, so you may be picking through several questions and answers to piece together something that might work. You'll also have to know enough about the driver files to apply the VirtualBox process to the Nvidia drivers. You'll need to create your own Secure Boot key pair and enlist the public key as a MOK (or as a regular Secure Boot key, if you go all-out and take full control of Secure Boot on your system).

These options are listed in roughly increasing order of difficulty, although the first two could easily be flipped, depending on your system's current state and how hard it is to remove the Nvidia drivers if they're already installed.

BTW, I doubt if disk encryption is complicating anything.


How to take a screenshot in KDE Plasma Ubuntu?

These keyboard shortcuts are the default in Kubuntu 20.04.1:
To take a screenshot of the entire screen (all displays), the keyboard shortcut is Shift + Prt Sc.
To take a screenshot of the active window, the keyboard shortcut is Super + Prt Sc.
Screenshots taken from keyboard shortcuts are automatically saved in ~/Pictures.
You can customize the keyboard shortcuts for screenshots under System Settings > Shortcuts > Custom Shortcuts > Screenshots.


In general, output from APT when removing a single package would tell you if after removing that package, there are other packages that are no longer required and will propose to remove them as well.

I suppose it would be the case if all these plugins where, in fact, installed. Because, apt-cache search pidgin will search for any available package: installable and already installed.

You could merely use apt list pidgin* instead of apt-cache search pidgin. The difference is that the former will display [installed] next to an installed package that appears on the list.

You could use the following command to remove all (if any) pidgin plugins installed: sudo apt remove ^pidgin. (You could also use sudo apt purge ^pidgin to completely remove this package).

Regarding the package manager, it's hard to tell, you could be speaking of Ubuntu Software Center. Else, I can't tell.


How can I tell what workspace I am in with Unity?

13.04

This functionality is now inbuilt within 13.04 and later - the launcher workspace icon shows which workspace you are currently on:

12.10 and previous

10.04/10.10/11.04/11.10

To do this, first install the PPA:

sudo add-apt-repository ppa:geod/ppa-geod

Update and install:

sudo apt-get update
sudo apt-get install indicator-workspaces

12.04 onwards

The PPA author does not have a preprepared package for 12.04 and later.  However, you can download the same deb-package used in 11.10 and install that.

Download the v0.6.2.2 deb package

Install the prerequisite:

sudo apt-get install python-wnck

how to start

Finally add indicator-workspaces to your startup-applications (search in Dash for this) if the installation hasn't already added this:


KDE Network Manager Notification Options Not Available

Different version of the KDE Network Manager widget have various number of the notifications.

Kubuntu 12.04 LTS - KDE 4.8 has:

Kubuntu 14.04 LTS - KDE 4.13 has:

Kubuntu 15.04 - KF5 / plasma 5 has:

With the 14.04 LTS, KDE 4.13,the Connection Activated' or 'Deactivated' are shown by the 'Active connection state changed'.


Unable to install ANY package (Unable to locate package)

For uuku you have to pay since uuku version 19.01

uuku moves to a licence model. More info from dev


Upgrading from Ubuntu 16.04 LTS or 17.10

Upgrades from 17.10 will not be enabled until a few days after 18.04's release (April 26, 2018).

Upgrades from 16.04 LTS will not be enabled until a few days after the 18.04.1 release expected in late July.

There are no offline upgrade options for Ubuntu Desktop and Ubuntu Server.

This is from here: wiki.ubuntu.com/BionicBeaver/ReleaseNotes


apt-get on Ubuntu always requires sudo.

You should copy paste this command into the terminal:

sudo apt-get autoremove


This may be a late reply, but it may help others that own this printer.

I have just completed a new install of Ubuntu 14.04 and hooked up my Lexmark E210 to my system. The system did not discover it automatically and show me a prompt that a printer was installed and available. However, by going into System Settings and choosing the Printer option, I discovered my printer listed as one of the options. I merely had to select the printer and set it as my default. It works flawlessly. I can't say the same for this printer and Windows 8.


no /usr/share/sounds/ubuntu file found in ubuntu 20.04 LTS

You have to (re)install two (1, 2) packages with sound files placed in the /usr/share/sounds/ubuntu folder by:
sudo apt-get install --reinstall ubuntu-sounds ubuntu-touch-sounds


Retroarch is a pretty good choice, it has cores for just about any older emulator type (the newest system I've emulated with it is PS1 with pcsx_rearmed core); as far as control pads, I find that a PS4 pad with ds4drv is the most plug-and-play (of course you have to configure the emulator itself to use the gamepads buttons).


you can try with live cd .

and follow this guide : https://help.ubuntu.com/community/Boot-Repairenter link description here


How to backup programs without using apt cache?

Backup

Ctrl + Alt + T(Opens Terminal)
Get root access (i) Type "sudo su" then press Enter (ii)Give Your Password
Install Require Packages (i)apt-get install fakeroot(ii)apt-get install dpkg-repack
cd to Your Backup directory For example ,Say U have a Thumbdrive and created a folder backup "cd /media/usb/backup"
Run the Following in terminal

fakeroot -u dpkg-repack dpkg --get-selections | grep install | cut -f1

.Restore

Steps to reinstall packages

1.Ctrl + Alt +T(Opens Terminal)

2.cd to the "backup" directory

Eg: "cd /media/usb/backup"

3.Run the Following in terminal

sudo dpkg -i *.deb

Source :Facebook doc

Edit

If it lead to broken dependencies open the terminal and type

sudo apt-get install -f


Steelseries Arctis 7 Wireless headset frequently disconnects

For future searchers, I found a workaround. Steelseries doesn't release software for linux but they do for windows. I connected the headset to a windows machine where their software has a timeout option for powering itself off - I set this to unlimited and it seems to have changed something in the headset firmware, such that it no longers disconnects in linux.


I think this post might serve you well; I had the same problem as you and following its instructions fixed it for me.

18.04 does not shutdown, it goes into suspend modus

I was using a dual boot (Windows 10/Ubuntu) Intel machine however (Full specs can be found here); as far as I can tell this is a graphics issue though.

Finally, mine hung the first time I shutdown (forcing a final forced shutdown) but after I booted it up after that it runs perfectly.

Hope this helps!


how to connect multiple clients on server

The nc utility cannot handle multiple connections simultaneously. It can handle them sequentially, though.

You could use the -k option so that the connections that are "waiting in line" from subsequent clients get handled after the first client disconnects. For example:

# terminal A: 'server'
$ nc -l -vv -p 8000 -k
Listening on [0.0.0.0] (family 0, port 8000)
Connection from localhost 45080 received!
hi
bye
Connection from localhost 45082 received!
hi
bye

#terminal B: 'client 1'
nc localhost 8000
hi
bye
^C

Although terminal C tries to establish a connection before terminal B disconnects, the 'server' on terminal A automatically picks it up and handles it afterward.

# terminal C: 'client 2'
nc localhost 8000
hi
bye
^C

[EDIT-1]: If you're scripting something and need multiple ones, you could consider launching multiple instances of nc 'servers' listening on a set of pre-defined ports and then decide which ones to connect to, but that can get more complicated.

[EDIT-2]: I found this answer to basically the same question, which mentions other tool alternatives.


Can be achieved easily with awk as follows:

awk 'NR==FNR{inFileA[$1]; next} ($1 in inFileA)' fileA fileB > write_to_fileC

result,

seg1       one
seg2       two
seg3       three

at above, first we are reading the fileA and holds the entire column1 from into an array named inFileA, then look in fileB for its first column and if it's matched with the saved column1 from fileA then goes to print entire row of fileB.


Multiple Monitors using bumblebee on Ubuntu 13.10

My appologies for bringing this up from the dead, but as it still comes up near the top of some google serches, it is still relevant.

xf86-video-intel v2.99, 22/Dec/2014, has a new tool.

Check and see if you have the tool 'intel-virtual-output' installed. This is included in 'xf86-video-intel' =< v2.99, aprox date released is 22/Dec/2014 Running 'intel-virtual-output' without any extra parameters will daemonize itself and detect attached displays in the background.

It will then perform all the trickery of virtualizing and cloning so that the newly attached screen can be used via conventinal screen management methods, such as cloning/extending with xrandr. The tool itself can be run with a standard bumblebee installation, as it will switch on bumblebee for access to the nvidia chipset.

If no displays are attached, or you are using the laptop display only, the tool can be killed so that bumblebeed can then disable the nvidia chipset for powersaving. To make it easier to kill 'intel-virtual-output' after running, start it in a console with the -f switch.

Usage: intel-virtual-output [OPTION]... [TARGET_DISPLAY]...
  -d <source display>  source display
  -f                   keep in foreground (do not detach from console and daemonize)
  -b                   start bumblebee
  -a                   connect to all local displays (e.g. :1, :2, etc)
  -S                   disable use of a singleton and launch a fresh intel-virtual-output process
  -v                   all verbose output, implies -f
  -V <category>        specific verbose output, implies -f
  -h                   this help
If no target displays are parsed on the commandline,

intel-virtual-output will attempt to connect to any local display
and then start bumblebee.

Games can be run on the external display via "export DISPLAY=:8", however they will not grab the mouse or keyboard properly. You will also need to start games with "primusrun" or "optirun" as per usual.


password is incorrect - when tried to login into ubuntu 13.04

Don't you remember the password you put on installation?
Do you put any pass? Try without any pass.

If this don't result, try:

How do I reset a lost administrative password?


Compatibility with the MSI K7n2g motherboard?

When the disc is booting and you see the man and the keyboard, press any key. Select English, then press f6 for options. Use combinations of nomodeset and acpi=off and noacpi until it boots without lines.


Why does Ubuntu's full disk encryption require no time?

Okay, before I answer your questions, I need to first explain the difference between "Quick format" and "Full format" (to borrow Windows terminology), and the difference between a logical volume and a physical volume:

Quick format: Writes the file system structure onto the drive (on top of existing data).

Full format: Erases the drive (typically by writing 0's) before writing the file system structure.

All file systems in use today (ext2, ext3, ext4, btrfs, zfs, xfs) perform a "quick format" by default. This means that previous data that resided on the disk, while not directly visible through the file system, is still available if you were to scan the disk using data recovery software.

As an example: you have a 100GB hard drive which used to store photos. You decide to format this hard drive and install Ubuntu. Let's pretend the Ubuntu installation will take ~4GB. After installing Ubuntu approximately 4GB of the 100GB of data would be overwritten with your Ubuntu installation. The remaining 96GB of photo data is still physically present on the hard drive. If you used data recovery software, you should be able to retrieve most of these photos, despite the fact that the drive was "formatted" during the Ubuntu installation.

Logical volume: Any region of a storage medium, up to and including the entire physical space. e.g. if you create a partition of 100MB on a disk of 100GB, the 100MB partition is considered a logical volume

Physical volume: The entire physical capacity of the hardware^. In our example with a 100GB hard drive, the physical volume is the entire device (100GB) without any smaller volumes allocated inside.

^ The hardware itself will have additional capacity (over provisioning) to handle degradation of the physical medium. This additional capacity is managed by the device itself and is not visible to the operating system except through the S.M.A.R.T. interface, which you can access by installing smartmontools.

Now on to your questions...

  But if that would be true, then the "Encrypt the new Ubuntu installation for security" option in the installer is not full disk encryption at all.

This is a difference of definition/perspective. You are interpreting "full disk encryption" as meaning the entire contents of the physical volume is encrypted, while Ubuntu is using "full disk encryption" to mean the contents of the logical volume where Ubuntu is installed is encrypted.

Therefore if you installed Ubuntu and filled up the hard drive completely with data, the encrypted logical volume would fill the entire physical volume.

However there are cases where someone installs Ubuntu along side Windows on their disk. In this case, the Windows installation may be unencrypted but the Ubuntu installation is encrypted.

In this scenario, Ubuntu is still providing "full disk encryption" because all data on Ubuntu's logical volume is encrypted. Ubuntu doesn't care about the data on other logical volumes which are present on the physical volume.

  If he is correct, then it does not encrypt the entire disk then. It only encrypts used disk space. The empty space is not encrypted then.

Yes because encrypting empty space would make the system much slower, and there is no security benefit to doing so.

  Now, the question is: If that option is checked, does it just overwrite the empty disk space? Or does it also encrypt it?

I have not verified myself, but it is most likely overwriting the unused disk space with random data. It is certainly not encrypting the empty space. Properly encrypted data is indecipherable from random data, so filling the disk with random data before installing Ubuntu would make it impossible to tell which portions of the disk are "empty" and which are encrypted

  I was assuming that it only overwrites it with zeros before encrypting it. I was assuming that the entire disk would be encrypted anyway using the "Encrypt the new Ubuntu installation for security" option

Again, "full disk encryption" in this context refers to the encryption of all logical data on disk, not encrypting the entire physical device.

There is no security benefit whatsoever to encrypting empty space. If you are concerned about free space not being encrypted, then select the "For more security: Overwrite empty disk space (The installation might take much longer.)" option during installation to overwrite the entire physical disk.

Now, it is possible to purchase a self-encrypting drive (SED). For SSDs the relevant feature is called OPAL. If your computer has an SED installed, the encryption is handled by specialized encryption hardware within the device. All data written to the physical medium (magnetic platters for a hard drive, or silicon for an SSD) is encrypted by the device before being written. This means if someone were to remove the platters or silicon chips, they cannot read the data. However, it does depend on you trusting the SED's encryption implementation. As the device firmware is closed source and rarely audited, you're placing trust in the vendor to have implemented it properly and without any backdoors. You decrypt the SED at boot by providing a password.


Synaptics Touchpad - cursor moves around when just 'tapped' after Ubuntu 12.04 upgrade

It seem to be just a synaptics driver configuration, I solved by adjusting the FingerLow and FingerHigh values with sinclient. See your current configuration with synclient, here is my console output

$ synclient | grep FingerHigh
    FingerHigh               = 30
$ synclient | grep FingerLow
    FingerLow               = 25

I change the FingerLow value to 35, and FingerHigh value tu 40 and it works better! Try:

$ synclient FingerHigh=40
$ synclient FingerLow=35

The values were determined experimentally. To make the configuration permanent I created the file /etc/X11/xorg.conf with the following content

Section "InputClass"
    Identifier "touchpad"
    Driver "synaptics"
    MatchIsTouchpad "on"
    Option "FingerHigh" "40"
    Option "FingerLow" "35"
EndSection

Regards!


Wubi - Download stops when in middle of download

I had the same problem and got a great answer. You can download the iso file with a torrent client or your browser or a download manager. Then do your own MD5/SHA-1 check using Microsoft File Checksum Integrity Verifier. Put the iso file in the same directory as wubi.exe and it will use that instead of trying to download. Unfortunately there is another bug that prevents it from successfully checking the MD5 sum. So you have to open a Windows command prompt and type wubi --skipmd5check.

For me that got the install to go, however I personally ran into what I think is another bug. The install says (on both of two attempts) that "Serious errors were found while checking the disk drive for /".  There is forum discussion on this and even a youtube video on how to fix it and says that "This happens when you use the Wubi installation method with Ubuntu 14".


How to see the size and free disk space on the / filesystem's partition?

As @Anwar mentioned, one way is to use the df command:

df -h

Note that sudo isn't required.

For a graphical application, I like GParted. It's intended to be a disk partitioner, but I find other uses for it, as well--including this one.

sudo apt-get install gparted


Why is htop not aviable for Ubuntu touch?

sudo su -
cd /home/phablet/Downloads

download deb file, e.g: from debian wheezy repositories:

wget http://ftp.de.debian.org/debian/pool/main/h/htop/htop_1.0.1-1_armhf.deb

remount root filesystem to read-write (I use the bellow command on my bq aquaris. Your filesystem name you can find by df -h /)

mount /dev/mmcvlk0p6 -o remount,rw
dpkg -i htop_1.0.1-1_armhf.deb


Why is Ubuntu 16.04 very slow on my laptop?

The problem is not related to RAM. You have almost half of the RAM available and the system is not swapping.

But your CPU is pretty slow (Dual Core 1.5GHz)

  the SoC is only suited for very basic tasks like web surfing (not many tabs), word processing and video playback. (via)

Recommended System requirements for Ubuntu 16.04:

  2GHz dual core processor or better

Try to use a more lightweight desktop like LXDE.

sudo apt-get install lubuntu-desktop

See some closely related questions:

How to improve Ubuntu performance on netbook
How do I find out which version and derivative of Ubuntu is right for my hardware in terms of minimal system requirements?


Wireshark invalid permission for usb monitor

After reading through the wireshark documentation I discovered that usbmon module needs to be activated for everything to work properly.

If you are running into this problem which you likely are if you are using 16.04 since it appears this module isn't active by default in the kernel.

modprobe usbmon

After that you should be able to use any of the devices listed.  At least this worked for me.


How can I disable Hibernate completely in Kubuntu?

Triggers for hibernation:

Press the Hibernate button in Kickoff -> Leave -> Hibernate
Press Hibernate on the Energy icon in the system tray
Send a dbus signal: qdbus org.kde.kded /modules/powerdevil suspend 4

When hibernation is triggered, this is the execution flow:

/usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux is called
/usr/sbin/pm-hibernate is called with some arguments
Logging starts to /var/log/pm-suspend.log
Hooks are executed to prepare for hibernation. These hooks are located at /usr/lib/pm-utils/sleep.d/ and /etc/pm/sleep.d, and sorted by name (numbers first)
performing hibernate is written to the log
The shell function do_hibernate is called, instructing the system to hibernate
When the system resumes, hooks are executed to restore from hibernation
The system is running again

To disable hibernation, create /etc/pm/sleep.d/000no-hibernation with the next content:

#!/bin/sh
# prevents hibernation
. "$PM_FUNCTIONS"
[ "$1" = "hibernate" ] && inhibit || true

As 000no-hibernation is called before scripts like 00logging (outputs modules and memory info in the log), no applications or modules are interrupted or unloaded. This name was inspired by /usr/lib/pm-utils/sleep.d/000kernel-change. Beware of bug #665651 which makes non-zero return values of hooks fail to cancel suspend or hibernation.

This fixes the hibernation issue for me. Although the screen gets locked, I can live with this. It's much better compared to a crashing system.


Currently Ambiance (and Humanity / Ubuntu Mono icons) is still default in Ubuntu 18.04. The Communitheme (which Suru is a part of) is available to install as a snap from the Ubuntu Software application.

Install Communitheme snap via Ubuntu Software or using the command line:

snap install communitheme

Next, logout (a reboot might be needed, I'm not 100% sure) and select the “Communitheme snap session” from the login screen.


how can bind the compiz Scale plugin to the corner of my window?

You chose the wrong one.

Use initiate_edge instead:


Try This font.

Download and open as usual, click "Install font"


The TODO Screenlet sounds like what you are looking for.

Additional information and a download link can be found on its gnome-look.org page. Alternatively, you can check out the source code for it at GitHub.

If you need help on how to install additional Screenlets, check this section from the Screenlets.org FAQ.

Disclaimer: I have not actually used this software before.


Why page number in libre writer shown as grey-background text "page numbers"?

There's an option to toggle between the field value and the field name - in your case, it seems that LO is displaying the field name instead of the field value. You can change it on different, alternative  ways:

CTRL+F9;
Menu "View" -> "Field Names";
Menu "Tools" -> "Options" -> "LibreOffice Writer" -> "View" -> disable "Field Codes".

(tested with LO 4.2.6.3 and Ubuntu 14.04 LTS)


I would like to change the size of my partitions (increase Windows 7 by approx 50gb)

You should boot up with the Ubuntu BootCD and use Gparted to resize your Ubuntu partition. When finished, boot into Windows and use the Disk Manager to resize your Windows partition.


Help! Crash during upgrade amd64 11.04 -> 11.10 Now El Deado-Meato

I've learned some more.

I started two upgrades, both amd64 11.04 to 11.10, using standard gui prompt.

One machine is a Dell OptiPlex 745, 2 core Pentium D, the other a Shuttle x27d, an Atom D510.

The installs both "crashed" at similar points:  Some user feedback was required (the OptiPlex needed an answer to whether it should replace or leave alone some NetworkManager config file; the Atom needed an answer to similar question about apparmor config file) and the screen timed out.  The screen saver came on (it's just to black, turning off the display) and then the machine appeared to be frozen.  Wiggling mouse, hitting various keys and so on had no effect.  Getting in with vnc and poking gui buttons and so on had no effect.  Logging in with ssh, ps showed
  gnome-screensaver --nodaemon
eating up vast time.

I googled a bit and tried various Alt-F1 kinds of things on the OptiPlex to no effect.  Googled some more and learned that I should probably have killed the gnome-screensaver before doing anything else.

I had not yet done anything to the Atom.  I logged into it with ssh, killed the gnome-screensaver.  The screen was still dead on the actual machine, but when I went in with vnc I was able to poke the button that it appeared to have been waiting for; the installation proceeded and now it seems to be alive with everything as expected in the upgrade.

Unfortunately, when I got around to trying to fix the OptiPlex and killed gnome-screensaver, whatever keystokes I had given it had queued up and caused all hell to break loose.  I eventually got to the point where I saw no choice but to reboot.

It would not come up.  It hung early, with no clue about where.

More googling led to a successful reboot on the previous (11.04) version of things.  I then did the google-suggested
  sudo apt-get update && sudo apt-get upgrade
and that led to some dpkg thing that ended up doing the complete upgrade successfully using command line.

So it's all better now.

But.

Now I face the irritation and annoyance that the Powers That Be think my computers ought to look like iPhones rather than computers.

Grrr.

Thanks to anyone who thought about trying to help.