Windows7 Gone after Ubuntu dual boot install

My suggestion: Keep trying to load windows from the boot menu.

I had this problem too. However, I was getting the "Windows has recovered from an unexpected shutdown. . ."

I was given the option to either start in safe mode or start windows normally. Safe mode didn't work. I played the game a bit. I kept selecting windows on the boot screen and telling it to start windows normally. It took 10-11 tries (I was kinda stubborn.) But one of the times windows actually loaded. Once I got windows to load successfully once, I haven't had too much trouble with this again. I have been running both windows and Ubuntu successfully for about two weeks.

I would recommend being vigilant and just continuing to try to load windows repeatedly. If you can get it to load successfully once, then you shouldn't have too much trouble after that.

I hope this helps.


Ubuntu - Internet isnt working nor popping up

You might want to include info about your laptop.

Using a 12.04 live disc for testing might be your option.

The live session should automatically find any active eth0 and connect to it.

If there is a wireless signal nearby it will also advise that a connection is available.

This you should be able to connect to with your access password for the wlan0.

If neither is occurring then you must have an issue with on board LAN & / or on board wireless device/s.

Good luck

Look up this Old "Ubuntu help" for the Dell Driver on your Vista machine.

https://help.ubuntu.com/community/WifiDocs/Driver/Ndiswrapper#Configuration

And this for the ethernet connection.

https://wiki.ubuntu.com/HardwareSupportComponentsWiredNetworkCards


Should /var/log/wtmp be always present in a new Ubuntu 14.04 installation?

/var/log/wtmp is created during the installation of the package base-files.

The post-installation script (/var/lib/dpkg/info/base-files.postinst) contains the following code:

if [ ! -f /var/log/wtmp ]; then
    echo -n>/var/log/wtmp
  fi
...
chown root:utmp /var/log/wtmp /var/log/btmp /var/log/lastlog


How do I remove Confluent CLI completely?

TL;DR: Running sudo apt --purge autoremove should work to complete the uninstallation.
Use the autoremove action to uninstall the remaining dependencies.
You've uninstalled the confluent-platform-oss-2.11 package, but this is a metapackage, which doesn't itself provide any software.1 Installing it caused several other packages to be installed, which themselves provide the software. Removing confluent-platform-oss-2.11 causes those other packages to be eligible for automatic removal, but it doesn't actually remove them. To remove them now, it should be sufficient to run:
sudo apt autoremove

Or, if you also want to remove systemwide configuration files associated with the software, you can run this command instead:
sudo apt --purge autoremove

In either case, apt will show you what packages will be removed and ask you if you want that done.
You are still able to run the confluent command because that command is provided by the confluent-cli package,2 which installing confluent-platform-oss-2.11 caused to be installed. confluent-cli is, accordingly, one of the packages that autoremove will uninstall.

If you need (or want) to investigate further...
This section is in case you want to know more, or for the fairly infrequent situation where the autoremove action is insufficient.
When you originally installed confluent-platform-oss-2.11, the output of apt-get would have included something like this:
The following additional packages will be installed:
  confluent-camus confluent-cli confluent-common confluent-kafka-2.11 confluent-kafka-connect-elasticsearch
  confluent-kafka-connect-hdfs confluent-kafka-connect-jdbc confluent-kafka-connect-s3
  confluent-kafka-connect-storage-common confluent-kafka-rest confluent-rest-utils confluent-schema-registry

It is rare that you would have to remove those packages manually, though. Every package installed on your system is marked as manually or automatically installed. You specifically asked for confluent-platform-oss-2.11 to be installed, so it was marked as manually installed. Packages that are installed only because other packages depend on them, and that you never subsequently attempt to install by name, are marked as automatically installed. The autoremove action (passed to apt or apt-get) removes automatically installed packages that are no longer depended on by any currently installed packages.
If autoremove didn't remove everything you expected, you can try removing packages manually. First, unless you know specifically what packages were installed, you should inspect the logs to check, in case it's not the same as what I showed above. The most useful logs are usually /var/log/apt/history.log and /var/log/apt/term.log. You can try uninstalling packages with sudo apt remove ... or sudo apt purge ... (or the corresponding commands with apt-get, if you prefer). If you do, you may be asked if you want to proceed. Look at the list of packages carefully. If autoremove didn't work, there may be something else depending on the packages. The remove action will remove them nonetheless, and also remove whatever depends on them!3

Notes
1 I had guessed that this was so; I then confirmed it by inspecting the output of dpkg-query -L confluent-platform-oss-2.11 on a system on which confluent-platform-oss-2.11 was installed.
2 Running type confluent to find out where confluent is, followed by dpkg -S /usr/bin/confluent to find out what package provides it, reveals this.
3 The real story of dependency resolution is more complex, in general, than I've been letting on, because there is more than one strength of dependency. It is sometimes possible to install package A, causing package B to be installed automatically, then remove package B without package A having to be removed. However, in your case, the packages that remain installed were installed because the metapackage has a strict "Depends" relationship to them, and it's unlikely anything else has has declared any kind of dependency on them.


I think this is what you're asking:

You need to run screen -dmS (somenamegoeshere) -X (pathtoscript) and replace (somenamegoeshere) with a unique name to identify it and (pathtoscript) with the path to your script.


How to fix Ubuntu installation error with wubi?

Your question has the answer in itself! you shouldn't do that. I you want to change the location, test this:

Install another instance of Ubuntu where you like.
Replace new Ubuntu files with old ones.

I haven't tested this myself.


Where does Ubuntu (or Linux in general) install its applications?

Packages, whether on a Server or Desktop edition, generally follow the Filesystem Hierarchy Standard of the Linux Foundation which has an illustrated overview at https://www.howtogeek.com/117435/htg-explains-the-linux-directory-structure-explained/ . Appimages, flatpacks, and snaps may deviate further from the standard than do apps installed through apt.


Why does grep require a backslash before a plus sign to treat the plus sign as a quantifier?

There are various classes of regular expressions that GNU grep supports:

Basic Regular Expressions (BRE) - the default. Doesn't support + directly, but does support *. You can make + make sense when you escape it \+. From GNU grep documentation:

In basic regular expressions the meta-characters ‘?’, ‘+’, ‘{’, ‘|’,
‘(’, and ‘)’ lose their special meaning; instead use the backslashed
versions ‘\?’, ‘\+’, ‘\{’, ‘\|’, ‘\(’, and ‘\)’.

Extended Regular Expressions (ERE) - the option -E enables this. Supports both + and * directly.
Perl-compatible Regular Expressions (PCRE) - the -P option enables PCRE. Supports syntax similar to Perl's, such as lookaheads and lookbehinds.

BRE and ERE are usually POSIX-defined standard classes, so you should find them on any grep which aspires to POSIX compatibility, and expect to behave similarly.


error installing Android Studio 2.2.preview

solution - use this command instead:

bash studio.sh

details:

the problem is, that the studio.sh script uses the hash-bang #!/bin/sh and declare (in line 137). But declare is not valid in sh - only in bash.


How to configure apt-get in ubuntu 11.10 behind proxy?

Placing a line like

Acquire::http::Proxy "http://proxy-address:8000/";

in a new file in for example /etc/apt/apt.conf.d/10-proxy should do the trick. Be sure to have set up HTTP mirrors in your sources.list if you want to connect to an HTTP proxy or just add another Acquire::ftp::Proxy line for FTP mirror/proxy. Also change address and port number accordingly.


Can't uninstall virtualenv and virtualenvwrapper

So I think I figured out the answer, for anyone out there who has any issues that are similar.  When I rebooted, the workon command was gone.  So then I logged in as root and installed virtualenv and virtualenvwrapper from scratch. I exited root, and then was able to install packages with pip normally in my virtualenv, the key being that I not use sudo.  The use of sudo was messing everything up.  So I still don't understand it perfectly, but those steps worked for me.


libdrm
This library implements the userspace interface to the kernel DRM services. DRM stands for "Direct Rendering Manager", which is the kernelspace portion of the "Direct Rendering Infrastructure" (DRI). The DRI is currently used on Linux to provide hardware-accelerated OpenGL drivers.

So I would assume... no, unless you want to research if they are used somewhere. They are "s hared o bject" files. You can use ldd to see if they are linked.

From dobey in comment:
The ones which are for drivers that are not needed for video display on the system can be removed, but they should be removed by apt-get remove on the package containing them, not simple rm of the files.


What are 'boot' and 'root' options when loading kernel?

If you have your system and your bootloader on different partitions, set the "boot" argument, otherwise set the "root" argument.


First boot into Ubuntu and resize sda3. Leave the new unallocated space as is and restart the computer.Now boot into Windows and increase the size ofsda4 from within Windows. A restart may be required again.

Edit Windows-partitions only with Windows-tools, and Ubuntu-partitions only with Linux-tools!


This related I believe to another known bug in Ubuntu 16.04, with many others affected. Most also do not have connection icons after Resume from Suspend, or no connection at all!

See here; Wifi doesn't work after suspend after 16.04 upgrade

See here: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1448555

You can also just restart Network Manager.

sudo service network-manager restart

I hope a fix comes out soon.


How to speed up really slow boot on Ubuntu 16.04?

You can try to find out what is taking the most time with systemd

systemd-analyze blame


Search and Replace Similar but Different Phrases

Depending on whether you could represent the "common but different phrases" by regex, you could use the following from the folder containing the files:

Search n replace with Perl
Syntax:
$ perl -p -i -e 's/search_for/replace_with/g' filename(s)

-e is for "execute" – It allows you to define Perl code to be executed by the compiler
-p is for "process" – It adds a loop around your -e code so that it is applied to each line of any specified files
-i creates a backup file before making your changes.
-i.bak suffixes .bak to the filename. If -i has no arguments, the file names don’t change.


Can I use complex mouse button combinations with xbindkeys?

It's not possible to do normally, but fortunately xbindkeys supports a scripting language called guile that allows you to do things like set states/variables which allows you to create buttons that act like modifier keys.

I made a thread about it:
https://www.linuxquestions.org/questions/linux-desktop-74/%5Bxbindkeys%5D-advanced-mouse-binds-4175428297/


www.PenDriveLinux.com offers both the Universal USB Installer (UUI) and YUMI (multiboot tool, similar to UUI). Both are primarily Windows applications, but the site has some guidance on creating the same USB device via Linux.

It writes many popular GNU/Linux (and other) distros to a USB device with a Live boot configuration. Ubuntu support is pretty mature. I am not experienced with running a Live server using it, but I imagine it is possible.

If you have a Linux system, you could also just write the .ISO to the USB via:

# dd if=ubuntu-server.iso of=/dev/path/to/USB

although this may not create a usable Live device. I don't know if the Ubuntu devs included Live booting capabilities to the server .ISO (they did add it to the desktop .ISO...)


The apt-offline package no longer functions correctly based upon bugs reported in Debian and Ubuntu such as Debian Bug #871656 and Ubuntu Bug #1848755.  Although you followed a posted procedure from a well-known site, Debian pulled the package from testing upstream since it doesn't meet their standards.  Currently the development of apt is breaking all offline installation solutions per Debian Bug #934657 which has not been updated since August 2019.

The package author is waiting on changes in apt itself before the tool can get some re-writes accomplished to be able to function again.  This situation cannot be fixed presently.  You didn't do anything wrong, though.


How do I get classical greek to work in Ubuntu?

If you install the ibus-m17n package, log out, and log in again, you'll get access to a Greek, Ancient (...mizuochi (m17n)) input method.


I found an easy way to do this. I can add an icon for Xmind file by setting MIME type.
According to this thread.
xmind.xml was created under /usr/share/mime/packages with the content below:

<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-xmind">
    <comment>Xmind files</comment>
    <icon name="application-x-xmind"/>
    <glob pattern="*.XMIND"/>
    <glob pattern="*.xmind"/>
  </mime-type>
</mime-info>

Then I downloaded an icon.  Move the icon to /usr/share/icons/gnome/scalable/mimetypes

sudo mv downloaded.svg /usr/share/icons/gnome/scalable/mimetypes/application-x-xmind.svg
sudo update-mime-database /usr/share/mime
sudo update-mime-database /usr/share/mime

Now Xmind file looks


What do I do about a machine that is running out of memory and crashing?

The description and the free output suggest that the system may be crashing when it runs out of RAM, and swap is not enabled. (Browser tabs can sometimes consume a staggering amount of resources)

One easy solution:

Add a swap file if there is not an existing swap partition/swapfile.
Activate swap using swapon
Tell him that when the system gets sluggish it's time to close a few tabs.
If the system remains sluggish with all tabs closed, bring it to you in the sluggish state.


why can't I create a new gnome terminal profile or edit one?

The most probable reason is that you lost permissions of your own files. This could be easily solved with chmod/chown:

sudo chown -R $USER ~/.gconf/apps/
sudo chown -R $USER ~/.config/dconf
chmod -R u+w ~/.gconf/apps/
chmod -R u+w ~/.config/dconf


Where can I find technical documentation for training in Ubuntu?

It's for 8.04, but much of the work should still be applicable.

If nothing else it will provide a great framework for you to get started:

https://wiki.ubuntu.com/Training


How do I correctly upgrade the kernel on Ubuntu 10.04 LTS?

The correct way to do this is dist-upgrade as already stated:

sudo apt-get update
sudo apt-get dist-upgrade

It sounds like you've already installed it manually however, so your system probably didn't have the grub updated automatically - it's one of triggers that get done if you do it correctly with apt-get.  You can update grub at any time though with:

sudo update-grub

There's no need to remove previous kernels, and in fact you should leave some known working ones there in case the current one breaks - it gives you more options for recovering the system than you would have otherwise.  They will appear in the grub menu, though the latest should appear first on the list and the one that is booted automatically after the 10 second timeout.


18.04: How can udev rule RUN script access network

Yeah, this behavior is the same udev, trigger for short time just enough to configure new device, and it is run in a confined environment.

I would recommend a higher level script that run at user level, like Python/pyudev.

Reference: man udev

  Note that running programs that access the network or mount/unmount
  filesystems is not    allowed inside of udev rules, due to the default
  sandbox that is enforced on    systemd-udevd.service.

Update:

Another possible approach is using a systemd unit, like in this example:

storage:
  files:
    - path: /etc/udev/rules.d/01-block.rules
      filesystem: root
      mode: 0644
      contents:
        inline: |
          ACTION=="add", SUBSYSTEM=="block", TAG+="systemd", ENV{SYSTEMD_WANTS}="device-attach.service"
systemd:
  units:
    - name: device-attach.service
      contents: |
        [Unit]
        Description=Notify about attached device

        [Service]
        Type=oneshot
        ExecStart=/usr/bin/echo 'device has been attached'

Source: CoreOS - Using systemd and udev rules

Note:

I'm surprised that systemd which run as root allowed to connect directly (wget, curl, ...) and download files. Better to watch and verify, from where and what you are downloading. Even key sign them, if required.


How to access a similar shorter-name application on Gnome-Do?

So I found that one possibility is to press the PgDn or "Page Down" button when 'Guake Preferences' shows up as the option, to access the similarly named application.

EDIT: The solution is to access the new preferred path with the down arrow key enough times until it overrides the previous one.


Ubuntu 18.04: Where are the power management profiles?

If you have package gnome-settings-daemon installed, you can change behavior of lid, buttons and low-battery actions in dconf within location:
[org.gnome.settings-daemon.plugins.power]

Example config:

[org/gnome/settings-daemon/plugins/power]
lid-close-ac-action='nothing'
lid-close-battery-action='nothing'
power-button-action='nothing'
sleep-inactive-ac-timeout=3600
sleep-inactive-ac-type='nothing'
sleep-inactive-battery-timeout=900
sleep-inactive-battery-type='suspend'

critical-battery-action='suspend'
percentage-action=2
percentage-critical=3
percentage-low=10

On low and critical percentage there will be notification. On percentage-action there will be an action defined in critical-battery-action.

Method #2 (Upower settings)

There is also second option to change battery level triggers. All values are stored in /etc/Upower/Upower.conf

Selected values has to be replaced:

PercentageLow=10
PercentageCritical=3
PercentageAction=2
CriticalPowerAction=HybridSleep


Ubuntu 14.04 shutdown like when that it had a power cut

Your computer could be overheating pretty bad when going to ubuntu. Have you seen the temperature in BIOS when you boot to ubuntu? Tell in celsius.


Steam problems with read-only filesystem

Since this partition/drive is shared with Windows, can I assume it is formatted in NTFS? If that is the case, you will not be able to modify permissions or ownership of files. Check that the NTFS driver your system has installed is ntfs-3g which will permit you to read/write to NTFS partitions.
Make sure your fstab entry includes the UID and GID for the partition.
Here is a good explanation of this: How do I correctly mount a NTFS partition in /etc/fstab?
Additionally, if you have your Windows install set for 'fast-boot' the NTFS partition will not be properly unmounted by Windows on shutdown. This leaves the drive in a sort of limbo state, which means Linux can not properly mount it when booted.
This is why you want to disable 'fast-boot' when dual-booting: Why disable Fast Boot on Windows 8 when having dual booting?


Please add this ppa  https://launchpad.net/~fkrull/+archive/ubuntu/deadsnakes This one has the latest 3.5 version


Cannot install Wine (held broken packages)

Type the following into a terminal:

$ sudo apt-get remove --purge wine
$ sudo apt-get install wine

This should remove any held packages, and properly install Wine. Also make sure that you did not install Wine from source.


How can I zip a large amount of data based on a condition upon the size of the zip files?

Zip has on average approximately 62% compression for most data. Using this fact you can write a script which selects images until their combined size is (1.8 GB / 0.62) = ~2.9 GB, then compress that set, move the originals somewhere, then repeat with another set, and so on.
Or more simply, you can take advantage of the fact that a single Zip file can be split. Then you can make one huge archive and split them into smaller files of whatever size you want as described here: https://superuser.com/questions/336219/how-do-i-split-a-zip-file-into-multiple-segments
Other formats such as 7-Zip offer better compression ratios, so you might consider them if space saving is important.


Modifying the speed at which a process runs ( Cheat Engine alternative as a Flash Game Speed Hack)

These might help with slowing processes down, but not speeding them up...

1) SIGSTOP and SIGCONT:

The kill command can issue a STOP and a CONT signals to a process with a given pid.
I've used it for 'pausing' and 'throttling' python scripts before, and it works fine for that purpose.

Here's an example in a bash script (pass in the PID of the relevant process as the commandline parameter):

PID=$1
while true; do
    sleep 0.5
    kill -s STOP $PID
    sleep 0.5
    kill -s CONT $PID
done

Those sleeps (in seconds) would need to go down to a much smaller amount to reduce jerkiness, but the bigger interval makes it more obvious for testing.

Once your happy with a particular interval, you could make the ratio of sleeps adjustable with a variable.

2) One other possibility, for throttling, is 'cpulimit':

sudo apt-get install cpulimit

To limit firefox to 30% CPU:

cpulimit -e firefox -l 30


How do I install Python 3.7 on Ubuntu 16.04 and 18.04?

Currently there is no trusted PPA containing python 3.7, so you will have to build it yourself.
Download desired version and follow the instruction on this documentation page.

It should be as easy as:

./configure
make
sudo make install

Update:
Thank you to C14L, also now it is on doc page.
make install can overwrite or masquerade the python3 binary. make altinstall is therefore recommended instead of make install since it only installs exec_prefix/bin/pythonversion

./configure
make
sudo make altinstall


xUbuntu Default desktop Icons do not display?

Solved!!

Went to "Settings Manager" then "Desktop" then "Icons" and under the "Appearance" dropdown menu picked "File/launcher icons," and then like magic..... the desktop icons displayed!!!!    I am a happy camper.


Wifi slow and unstable on HP Probook 450 G2 under 15.04

Your laptop model is very similar to mine. See if this helps you: HP ProBook 855 G2 wireless problem in 12.04.
The trick for me was to put the msi=1 option in the .conf file.


Are AMD processors less well supported than Intel processors?

Short answer: no, makes no difference what so ever what CPU is installed on your laptop.

Makes a huge difference what graphics chip is installed tough, specifically what chipset it will be using.

In terms of CPU type, RAM, hard disk, those wont be the issue. The issues will come from graphics, special media keys, integrated webcams and sound devices.

An AMD laptop will have a built in ATI graphics card, you need to make sure that the card is well supported by the driver for Linux.

An Intel laptop will have either an Intel (which is supported by the included driver on Ubuntu) or an nVidia card, which, on the last case needs to be check also for support from drivers.

The most probable reason you are seeing many Intel bases laptops supported by Ubuntu (or Ubuntu friendly) is probably that there are not drivers required to install out of the box for a system with an Intel graphics chipset and the driver works (mostly all cases) very well with Intel working hard on supporting Linux.

Look for a laptop model that has a good and supported graphics chipset, no or limited special media keys (or at least look for support for those before you buy it) and if having a web cam make sure that there is a driver and that you don't really need to install to many things for it to work.

But CPU wise, you have the same chances (almost 0) of having problems because of what CPU is in the laptop.


is it possible to get page description in window overlay mode in compiz?

I think I have found the answer. Starting from Ubuntu 12.10, there is a new feature called Unity Spread, which kind of gives something similar, with page description on the top.

  Moving the pointer over a preview displays the window title in the
  titlebar and also, a close button is available so you can close the
  window directly from the spread:

via WebUpd8: Unity Spread


Set wine to see /media/wincd as its cd drive then with the iso file in you home folder run in terminal:

sudo mkdir /media/wincd
sudo mount -o loop -t iso9660 $HOME/mygame.iso /media/wincd
sudo ln -s $HOME/mygame.iso $HOME/.wine/dosdevices/d::

The mkdir command ensures the /media/wincd folder is present to mount the iso.

Change mygame.iso to the name of your iso file.

Change d:: at the end of the second command to a different letter with two colons if the cd is not drive d.


Maybe deleting your metadata would help? See this answer for more details.

Very strange rosegarden crash issue?

I'd put this in a comment If I could.


how to mount multiple snapshots using vdfuse

I need to do the same thing now and had to look up the source code in https://github.com/Thorsten-Sick/vdfuse/blob/master/vdfuse.c.

According to the code, you simply issue multiple -s switches to use more than one snapshot images.


Suspend uses 25-30 seconds to go to sleep

Okay, so I got around to it on my own. That, and most likely all the other problems as well, was caused by a third party PPA for the package called «jupiter» (basically the same as «indicator-cpufreq»). Disabling the PPA and removing «jupiter» fixed the delay and network resume issues.


Does file /etc/apt/sources.list.apt-clone exist and if so, what is the difference to /etc/apt/sources.list?

This file was created by apt-clone:

  apt-clone is the command-line tool for handling packages, and  may  be
         considered  the  user's "front-end" to the apt-get(8). It manages GRUB
         menu and ZFS 'syspool' filesystems. Two upgrade methods supported:  1)
         safe  upgrades via cloning a currently active filesystem and later ch-
         rooting into it to  perform  actual  upgrade  operation;  2)  in-place
         (live)  upgrades  by checkpointing a currently active filesystem prior
         to any upgrade modifications done by apt-get utility.

In one moment you used, or your OEM used apt-clone for cloning your current packages, and that file was left behind. If you don't use apt-clone anymore you can delete it without problems.


How to set LibreOffice to record and show changes by default?

Yes - but you need a macro to enable recording of changes by default. The following LibreOffice Basic code enables recording of changes (created using the macro recorder):

sub record_changes
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "TrackChanges"
args1(0).Value = true

dispatcher.executeDispatch(document, ".uno:TrackChanges", "", 0, args1())

end sub

To make LibreOffice run that macro every time when a new Writer document is created, just assign that macro to the "New Document" event.

EDIT:

This macros works only for LibreOffice Writer documents. To make it work with LO Calc instead, you will have to replace "TrackChanges" with "TraceChangeMode" in the macro code.


Steam Install not finding internet connection on Ubuntu 20.04

I had this same issue, and scoured these forums. Here's one you've probably seen before but with a special twist that worked for me:

ping media.steampowered.com to get its IP
then edit /etc/hosts --- add [The IP] client-download.steampowered.com

The important change for me was "client-download" rather than "media" which is what I'd seen previously and hadn't solved my problem.
Hope this helps


Samsung NP355V5C-S03IN Laptop function key is not working

Try this if it isn't solved

sudo add-apt-repository ppa:voria/ppa

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install samsung-tools

sudo reboot

http://ubuntu-tweak.com/app/samsung-tools/


Linux partition will not show up in Windows. Windows uses NTFS which cannot find ext4 which Ubuntu uses. There is a program called ext2read which can find Linux Partition in Windows. Link https://sourceforge.net/projects/ext2read/?source=dlp


How to associate file types with wine in nautilus

In ubuntu 13.04 The wine is designed to be hidden, defined in the wine application launcher property NoDisplay=true in /usr/share/applications/wine.desktop file. You're not supposed to disable this property.

To install (and uninstall) windows application you just need open the Dash Home and type wine in searching box. You will see "Uninstall wine Software" icon. Click on it to open the window and you will see "Install" button. Run the window installer using this.

During the installation, wine will automatically create ubuntu application launcher file (*.desktop) at ~/.local/share/applications/.

After installation you will able to launch the window application from Dash Home - just type the name of application on the searching box, you will see the icon of the application is appeared, if you see nothing, try to log off and log on then try again. Once the application is launched, you can lock the icon on the launcher (just right click on the icon and click "Lock the launcher").

In case you want the window apps available in the "Open with" application list, you  just need to add %U in the "Exec" property of the application launcher file (*desktop).
This is a snippet of my notepad++ application launcher (~/.local/share/applications/wine-Programs-Notepad++-Notepad++.desktop), I add%U at the end so I able to open any file using Notepad++:

Exec=env WINEPREFIX="/home/ ... Programs/Notepad++/Notepad++.lnk %U

NOT RECOMMENDED

In case of you are insist to be able to launch windows application directly from Files(aka Nautilus), ie: portable application,  you can add the following line into /usr/share/applications/defaults.list

application/x-ms-dos-executable=wine.desktop

This configuration will cause the *.exe file is launched when you are double click the file, similar the cli command

$ wine some_app.exe

PLEASE DO NOT USE THIS METHOD TO LAUNCH THE WINDOWS INSTALLER.


Facing problem in dual boot of Ubuntu 14.04 with window 8.1 on my leptop of lenovo G500 BIOS based

Try shrinking your Win partition down using diskmgmt.msc in windows and leave the space you want to install linux in unpartitioned/unformatted/raw/with no file system. Then try your install again - it should now recognize the unformatted space and ask if you want to install side by side or over the whole disk.


I'm running Ubuntu 14.04 and the Broadcom BCM43241 card in my vaio duo 13 doesn't even show up

you must copy the file called brcmfmac43241b4-sdio.txt to /lib/firmware/brcm where it accompagnies the driver called brcmfmac43241b4-sdio.bin.

Normaly this is created using nvram-tools but it does not work on the sony pro 13 and I copied one from the net.
Your can download one from the net


Lubuntu 14.04.2 change network configuration using terminal

What parameters are you trying to change?

If you are changing your IP to a fixed one maybe the problem is with the router.

Also, when running the restart command, root privileges are needed:

sudo service networking restart

You can also try to do:

sudo service networking stop
sudo service networking start

Some links with possible solutions: link1, link2, link3, link4.


Is it relatively safe to install kernel from "Canonical Kernel Team ppa" than "Mainline"

The "core" Linux kernel is developed by Linus Torvalds and the "Linux Team" (lots and lots of developers, many of whom are employed by different companies).

Canonical Kernel Team consists of those core developers who are employed by Canonical

The Ubuntu kernel team does not work on the core kernel, but instead customizes and builds them for Ubuntu, i.e. they turn Linux kernels into "Ubuntu kernels"

They also provide mainline (i.e. "core", uncustomized) kernel builds as a courtesy, for debugging purposes only.

If you really want to try advanced kernel builds, the safest is the Ubuntu kernel-team's pre-proposed PPA (ppa:kernel-ppa/pre-proposed), which is not a mainline build and should soon find its way into a regular update.

The Canonical kernel team PPA is semi-private, and shouldn't really be subscribed to by normal users:
This ppa is used for building pre-release and test kernels.
It IS NOT RECOMMENDED that you subscribe to this PPA.

Typically the kernels for an LTS release (and otherwise) will contain just bugfixes and minor improvements, no radical new features (e.g. btrfs, etc.).

P.S.: Based on your screenshot, this appears to be an exception for the Canonical Team ppa. After all it's meant for internal developer use only...


I'll do it with regexes, for example:

echo plt 2 3 g40 All 32|perl -ne's/(\w+) ([\d ]+)(\w+)/print "$1$2$3\n"/egx;'

plt 2 3 g40
All 32

Not sure if it's what you are looking for? You can omit printing the first string for each parameter group, with:

echo plt 2 3 g40 All 32|perl -ne's/(\w+) ([\d ]+)(\w+)/print "$2$3\n"/egx;'


Changing the DPI. Go to Fonts in the System Settings.

96px is the default, bump it to 144 for 150% "zoom", then relog to apply the setting to everything. Without relogging, it should scale the panel widgets, but you'll need to relog to update the title bars.


Prior to the dots, do you still see a GRUB screen showing previous kernels, previous versions?  If you aren't using a dual boot, you might never have paid attention to it, but now is when it can help you.  The first item below the default is recovery mode, which itself might help you, or trying a previous version.  I've had to do this a few times to correct my last mistake.

After you get your computer to boot, I'd advise you to open the Update Manager, and click CHECK before running the updates.  I suspect that after some updates your installation will be fine.


MySQL does not accept password not lets me reset password by skip-grants-table, unable to login

Finally I have been able to solve my problem.

In terminal you have to type:

systemctl start mysql.service
systemctl enable mysql.service
/usr/bin/mysql_secure_installation

That's it all done


How to change Keyboard layout in Ubuntu 13.10?

Settings > Text Entry, click on the each relevant text box and specify your shortcut.


You may need to reinstall GRUB using a Live system. Since you do not provide the ls (hd0,X) output, you should modify as you see fit:

In a live session, open the terminal, then type sudo blkid. You will get a output similar to this:

/dev/sda1: UUID="bf554a2f-a035-4c22-bca8-162def35a03c" TYPE="ext4"
/dev/sda2: UUID="3962db06-3776-4f38-8ab9-eab6feeccc1d" TYPE="ext4"
/dev/sdb1: UUID="AA64B45A64B42AC9" TYPE="ntfs"
/dev/sdb2: UUID="F66E431C6E42D551" TYPE="ntfs"
/dev/sdb3: UUID="75a0854b-8b6b-453f-8aec-2a081a1f19e3" TYPE="swap"
/dev/sdb5: UUID="279a18da-130b-46dd-8b54-84da48eb445f" TYPE="ext4"
/dev/sdg1: UUID="393cd35e-b827-4dea-acb5-2a66f2369dce" TYPE="ext4"
Here you can see that my Hard Drive is in the sda and my pendrive is sdg. We are interested in sda. Now lest look at the descriptions of the partitions. We want the partitions that are ext4. In my case I have two ext4 partitions. This is because I have my /boot separated (which seems to be your case too), I will take note about that, but lets assume that you don't have /boot separated for now and that your / (root) is sda1. Now we will mount sda1.

sudo mount /dev/sda1 /mnt
sudo mount -o bind /proc /mnt/proc
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /dev/pts /mnt/dev/pts
sudo mount -o bind /sys /mnt/sys

Tecnical note: This is the minimum. If you have a /boot partition (or any other) separated just mount it the same way, in my case sudo mount /dev/sda2 /mnt/boot. Please take note that I used /mnt/boot, you should change it if using other mount points.
Now we will proceed to CHROOTING the partition:

sudo chroot /mnt /bin/bash

Now we will proceed to install grub:

sudo grub-install /dev/sda

Done. Now reboot in your system. This should add the entries for Windows and Ubuntu.


No, this is not something to be concerned about. This is ssh-agent, not sshd, which is the SSH daemon. If you have a look at man ssh-agent:

 ssh-agent is a program to hold private keys used for public key
 authentication (RSA, DSA, ECDSA, ED25519).  The idea is that ssh-agent is
 started in the beginning of an X-session or a login session, and all
 other windows or programs are started as clients to the ssh-agent
 program.

The way it works is that when you use SSH to connect to somewhere (the command-line client ssh is installed by default, and other programs, like the file browser can also act as SSH clients), the connecting program will use the agent instead of loading the private key itself:

 The agent will never send a private key over its request channel.
 Instead, operations that require a private key will be performed by the
 agent, and the result will be returned to the requester.  This way,
 private keys are not exposed to clients using the agent.

The benefits are that you only need to unlock the private key once per session (the agent will then store it in memory), and clients never see your unencrypted private key directly.

It's the opposite of a backdoor, in a way.


Virtual Box guest (Windows7) in Ubuntu 12.04 (host) not connecting to the internet

You should not have to do anything special to get internet to work in your guest, these are the settings that I have used for several years.

Here is a link to networking for virtualbox that should help.
networking


Now that's an open ended question.

You don't need to "install" your own bash, but merely customize bash to your needs. Well, assuming bash is installed... but it should be :-)

Bash implicitly support per-user customization though various resource files it reads on startup: ~/.bash_profile, ~/.bash_login, and ~/.profile, as well as some global files as well.

Familiarize yourself with bash's startup procedure here: Bash Reference Startup files. This will tell you where to put what so that your bash environment behaves they way you expect (especially the differences between interactive, login and non-interactive/non-login shells which can trip up anyone).

Then, The Bash Hackers Wiki seems like a good source for learning about everything else concerning bash.

Also, though, you might consider the Z-Shell: ZSH and it's thorough community setup up Oh My Zsh. Oh My Zsh can get you quite far along the customization path with little effort.

There are others as well: The Korn shell (tsh), T-shell (tcsh) and others.


Have you tried WiiCan

Download .deb http://www.getdeb.net/software/wiican I know it was released for Natty

Here is the launchpad info https://launchpad.net/wiican

sudo add-apt-repository ppa:fontanon/wiican

Evidentially it does a good job

Discover if it’s an available bluetooth device for connect wiimote
Display a list of available keyboard-mouse-wiimote mappings
User-defined mappings creation assistant
Mappings manager:

    New/Edit/Delete
    Up/Down order
    Visible/Invisible

Notify the state of wiimote usaging:

    Bluetooth available/unavailable
    Discovering wiimote
    Wiimote disconnected


Is it necessary to dual boot Ubuntu and windows 10

It is not necessary to dual boot Windows and Ubuntu. You can have only Ubuntu installed on your PC. GRUB boot loader used to boot Ubuntu is flexible and allows you to boot one or more operating systems of your choice. You can reformat your HDD or SSD and install Ubuntu only on the whole drive or create 2 or more partitions and install 2 or more different Linux distros. Please make sure to do a complete backup of your files (documents, pictures, videos, music, software, etc.) before formatting the drive, since formatting will erase all files on your drive.


Set different views (list, thumbnail) for different folders?

You cannot permanently set a specific view for a specific folder in in the default file manager of Ubuntu 18.04, Files. Files will not remember settings on a per-folder basis.
At the moment you have a folder open, you can set different views for that particular Files window. It won't affect other open windows.
Each time you open a new Files window, it will adopt the view settings of your most recent setting. With respect to the size of the window, it will default to the window size of the last closed window of the previous setting (i.e., close all windows, the size of the last one you closed is used next time you open a window.)
Edit 2021-01-14: In Files 3.38 (Ubuntu 20.10), you can set different views in different windows. The view is not remembered on a per folder base. It is set for the current window without affecting the views in other windows.


ERROR MESSAGE: untrusted packages and libdrm-nouveau1a libdrm-radeon1

Well,  i found out that the problem is caused by Intel Linux Graphics Installer. So I followed the instructions in the link and the problem has disappered. http://theclonker.de/?p=89


Installation via a network switch (Ethernet)

The network installer is not meant to install trough the network but "from" the network. You can boot a machine with it using minimum resources and it will download the packages from Internet during installation.

What you could do is install Ubuntu normally in one of the computers, and use Clonezilla DRBL to build an image of the installation. Then, clone the system to all the machines in the LAN using Network boot.

This assuming that all the machines have the same or very similar hardware. Specially regarding disks.


Fstab mount smbfs share for user noauto asking for password via GUI

You have two options:

I believe you are being asked the SAMBA password, so add in the password to the fstab entry:

username=administrator,password=admin_samba_password,domain=domain,user,rw,noauto

If you do not want the password in fstab, use a credentials file as described in this blog entry.

Run the following commands as root, but change the path as you see fit:

mkdir -p /path/securedir
chmod 0700 /path/securedir
chown root /path/securedir

Then create a file /path/securedir/fileshare with the following contents:

username=yourusername
password=yourpass

Now append credentials=/path/securedir/fileshare to your fstab entry.
Your other option, and the one I use, is autofs. It takes a little time to configure, but it is mounted on demand and is invisible to the end user.


Take backup of a server which is 90% full

From any machine that can access this server across a network on TCP port 3306, you can use mysqldump remotely, and it's exactly the same as running it on the server itself, except the dump file will be created locally.

The --host option is used to specify the IP address of the server.  The --compress option will usually allow the transfer to be faster across the wire.  That is its purpose -- transport compression -- it doesn't make the actual backup file smaller.

This can be done with the server running normally.

rsync is not a safe tool to use to back up a MySQL server, if MySQL is running.  It won't actually hurt the server, and the backup will appear to work, but the files will not be usable.  The same applies for tar or any other to that copies the files themselves.  Using mysqldump does not read the files directly, even if run locally.

In Ubuntu, typing mysqldump on a machine where it isn't installed, should prompt you with several options of "client" packages that include it, any one of which should be fine.


C++ fmt library instalation is not working

Most packages and libs don't need to be manually downloaded and installed on Ubuntu. You can install libfmt-dev using the somewhat official "universe" repository using apt.

Run the following commands to install:

sudo add-apt-repository universe
sudo apt update
sudo apt install libfmt-dev

Most of the "build" type packages in the Ubuntu repositories have the "dev" suffix at the end. 9 times out of 10, when you need to install some prerequisite or dependency to build stuff using g++ or C++, these will be the "lib" packages that you need.

To search for available packages, you can use the apt-cache search command like in this example:

apt-cache search libfmt

If you get too many results, you can pipe the command to grep to narrow the results like this:

apt-cache search libfmt | grep dev

or something like this:

apt-cache search fmt | grep 'C+'

or you can use the -i flag with grep so that it is not case sensitive like this:

apt-cache search fmt | grep -i 'c+'


error while loading shared libraries: libapbs.so: cannot open shared object file: No such file or directory

Well, if you are a paid user for Schrodinger suite software, I recommend you to contact with the schrodinger supporting team directly. If you're not, then you might have to try something on your own. There wouldn't be anyone in this community would answer your question. I tried to find some solution in here, but none I got from this community. I tried to suggest some solution on the previous question regarding Schrodinger suite, but unfortunately my skill on coding was poor. So, I end up got criticized and got -1 on my comment.

Just so you know, I use version 2018-4 on ubuntu 19.04. Not yet upgraded to 2019 version. So I have no way to try and see if I can find any solution. Anyways, good luck on finding solution


How do I move (copy) my entire Ubuntu system to a different hard disk?

I actually ended up using Gparted from the Live CD. I copied the partition and pasted it in the unallocated space on the other HDD. Then I used blkid to check the UUIDs and edited the fstab file. Worked like a charm!


How to see permisisons basing on user, not files/folders

I believe the command you are looking for to find all folders that belong to a specific user would be:

sudo find / -type d -uid $(id -u <username>) 2>/dev/null > filename.txt

Let's break down that command.

sudo means to run the command as an elevated user.

find is the actual command we are running, and of course, we are looking for something.  Running man find will bring up the man pages for the find command showing more options available.

/ is the starting point where find is going to start looking.  find is a recursive application meaning that it will look through all folders.

-type d means that we want it to only return directories.  -type f would mean files.

-uid $(id -u <username>) is we want the UID number of the user from the sub-shell command of id -u <username>.  Enclosing the command in the $() is the sub-shell allowing us to grab the output of the command.  If you ran the command by itself as id -u root it will return a 0 as that is the UID of the root user.  So, the option itself would look like -uid 0 as that is what the sub-shell command would return.

2>/dev/null means to suppress error messages and send them to /dev/null which means you will not see the output of the errors.

> filename.txt is where we want to send the output to instead of the screen.  This could also be replaced with | tee -a filename.txt which will allow you to see the output on the screen as well as creating a filename.txt containing the same stuff you saw on the screen.

Hope this helps!


How can set these iptables rules to run at startup

You may want to use the iptables-persistent package rather than mess with your boot scripts.  First, run your script to set up the firewall rules.  Secondly, run sudo apt-get install iptables-persistent, and follow the prompts.  When it asks to save the current rules, hit "Yes" at both prompts.  Now, on reboots, your iptables rules will be restored.

NOTE: If you change your rules after this, you will need to do the following command(s) after the changes:

To save your IPv4 iptables rules: sudo su -c 'iptables-save > /etc/iptables/rules.v4'

To save your IPv6 ip6tables rules: sudo su -c 'ip6tables-save > /etc/iptables/rules.v6'


Is there any way to get notified when battery is full?

This feature was present on old gnome2, but mising from latest gnome.Gnome power manager is supposed to give notification when battery is full, but it doesn't(It could be a bug). I couldn't find any option with dconf either.To me it appears that the only way to achieve this through a cron job which regulary checks whether battery is full or not.

First open terminal & type ls /proc/acpi/battery/. In my case, the output is C241. Your could be different(generally batt0 ot batt1).Also check the type of ac adapter,ls /proc/acpi/ac_adapter. Its C240 for me. Open gedit & copy the following script.

Remember to replace C241 & C240 with your battery type & ac adapter.

#!/bin/bash

cd ~/.scripts
notification=$(grep 'notification:' notification|awk '{print $2}')

cd /proc/acpi/ac_adapter/C240;
power=$(grep 'state:' state|awk '{print $2}')
s1="$power"

s2="charged"
s3="on-line"
s4="on"

export DISPLAY=:0

if [ "$s1" = "on-line" ]; then
  cd /proc/acpi/battery/C241;
  state=$(grep 'charging state:' state|awk '{print $3}')
  if [ $state = $s2 ] && [ "$notification" = "$s4" ];
    then
            notify-send  --urgency=critical "Power Manager" "battery is full" -i battery_full
            echo "notification: off" >~/.scripts/notification

    fi

else
  if [ $notification != "on" ]; then
    echo "notification: on" >~/.scripts/notification
  fi
fi

save the file as batteryfull.sh at ~/.scripts (or anywhere you like).
Make the file executable chmod a+x batteryfull.sh.

On terminal type echo "notification: on" >~/.scripts/notification. Also add the same line at the end of your ~/.profile.

Install gnome-schedule (sudo apt-get install gnome-schedule).Launch it, choose new task & select "a task that launches recuurently". On command section put full path of the script file.In my case its ~/.scripts/batteryfull.sh.You can set corn-job duration every min or every 5 min.click apply.You can check running jobs by typing crontab -l in terminal.

You can run this script at every boot by adding gnome-schedule as a startup application(may not be required in your case).

Note: This is probably not the perfect way to do this, but it works.So far this much i can do with my little knowledge with bash scripting.I will improve the script if i find something better.


If you are referring to the keys to change brightness up and down (in my laptop it is Fn+F11/F12):

I am running Xubuntu 18.04 and have struggled with the impossibility to control brightness using the Fn+F11/F12 keys since I installed it...

I just found out an option in the Power Management section, "Handle display brightness keys", which by default came deactivated. I just turned it on and the Fn+F11/F12 keys work as expected.

Perhaps there is a similar option in the Power Management section for Ubuntu vanilla and other flavors.


How can I disable wlan by default in the network manager?

It is strange that disabled wifi doesn't survive reboots. It does here.

You could use the rfkill, which is a "tool for enabling and disabling wireless devices". (see man rfkill for more info)

To disable wifi, run sudo rfkill block wifi.

To re-enable, run sudo rfkill unblock wifi.

If all works as expected, just add rfkill block wifi to /etc/rc.local


Keyboard and touchpad problems on Ubuntu 20.04

Uninstall only xserver-xorg-input-all (if xorg-input-evdev package exists, uninstall that too) and install xserver-xorg-input-synaptics.


create instance with big volume and found retry filter running in nova-scheduler.log then fail with

I try to edit scheduler_driver_task_period
default set for scheduler_driver_task_period=60 sec
after that re-run build instance process again so it will show and acquire 2 ip addresses after that will show fail on created process.
vi /etc/nova/nova.conf
[scheduler]
scheduler_driver_task_period = 100
service nova-* restart
: )


What is causing a script to run when I change to a certain user?

The user's shell was actually pointing to the custom menu driven script in question. I found this by catting the /etc/passwd file.


How to stop HUD from appearing while video playback?

HUD only appears if you press and release Alt key instantly, If you hold down the Alt key for little bit longer it won't appear.


Try downloading Unity 2D as this seems like a graphical glitch.

sudo apt-get install unity-2d

EDIT: Once installed log out and on the log in screen choose Unity or Ubuntu 2D.


Ubuntu doesn't need donation to get downloaed.

Are you sure you are not downloading from any scam site? Also Ubuntu site doesn't have and Download button. It says Get ubuntu 12.10 or Get ubuntu 12.04

You can download from here - http://www.ubuntu.com/download/desktop

If you want to get 13.04 beta (which is going to release this month)

Follow this link - http://cdimage.ubuntu.com/daily-live/current/


Sage wont start on Ubuntu 18.04, it can't find the module repl.interpreter

I've kind of cooked up a solution. The problem was, the python interpreter was unable to locate some files of the sage module. So first I had to figure out where python interpreter is looking for those files. To do that I started the python interpreter from the command line, imported the sage module and ran the command:

 >>>sage.__file__

The output was: "/home/anik/.local/lib/python2.7/site-packages/sage/__init__.pyc"

But I noticed previously that all the files of the sage module were kept in "/usr/lib/python2.7/dist-packages/sage/". So I just copied the files from there to where sage module is found to be located.

Although I can start and work on sage now, this is somewhat quackery that I did. I think a better solution would be to change the path. But I dunno which file contains this path. It will be great if someone adds that bit of wisdom.


fancontrol (pwmconfig) won't detect my fans

Make sure that you're running BIOS F.23 Rev.A from Dec 23, 2016. If you need to update, go to https://support.hp.com/us-en/drivers/selfservice/hp-250-g5-notebook-pc/10180321.

In terminal...

dpkg -l intel-microcode | grep ii

If it returns no result, then...

sudo apt-get update
sudo apt-get install intel-microcode
reboot

In terminal...

dpkg -l thermald | grep ii

If it returns no result, then...

sudo apt-get update
sudo apt-get install thermald
reboot

You'll want to read up a little on thermald by typing man thermald and man thermal-conf.xml, in terminal. After stopping the currently running thermald process, you can run thermald manually in --no-daemon mode to watch if it's doing the right thing, or as a basis for writing your own custom config file.


Ansible from ppa won't install python-related packages

Instead of overriding the /etc/apt/sources.list file using > you can append the text using >>.

So it will be something similar to the following.

RUN echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 \
&& apt-get update \
&& apt-get install -y ansible


Ubuntu One Files for Android will not let me log in

I had the same issue with my Samsunng Galaxy. I solved it by first closing the application, opening my settings and turning off the automatic time sync option.
Restart and device and turn automatic sync for time back on.
Now try and log in.

As I said this solved the problem for me so hopefully this will for you.


Welcome to askubuntu!
I have asked a member of the Dell Linux team about this issue. I got the following answer:
"XPS 9310 only offers Modern Standby for Windows and Suspend to Idle for Linux."
This means deep sleep is not supported by the firmware on this machine.
Furthermore it was noted that you should use the OEM kernel as it contains fixes for the power draw issue not yet upstream, though the fixes are expected to land upstream in Linux 5.10.
So try to install linux-oem-20.04 as this should contain fixes. Let me know if the power draw is better :-).
Edit:
To try the Linux kernel from proposed, you could do the following:
mkdir kernel-5.10 && cd kernel-5.10
wget http://archive.ubuntu.com/ubuntu/pool/universe/l/linux-signed-oem-5.10/linux-image-5.10.0-1002-oem_5.10.0-1002.3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/l/linux-oem-5.10/linux-headers-5.10.0-1002-oem_5.10.0-1002.3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/l/linux-oem-5.10/linux-modules-5.10.0-1002-oem_5.10.0-1002.3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/l/linux-oem-5.10/linux-oem-5.10-headers-5.10.0-1002_5.10.0-1002.3_all.deb
sudo apt install ./*.deb

This set of commands creates a directory where the kernels are downloaded into from the official ubuntu proposed repos. Then apt asks for your permissions to install the packages.
NOTE: If for some reason you fail to boot your system, choose advanced options when booting and select the old kernel and just remove the packages again you installed here. I tested those instructions on an older XPS system and it worked fine for me.
Edit 2
Additional info for suspend to idle: The older XPS 9360 supports both deep sleep and suspend to idle. Since quite some time suspend to idle is configured default in Ubuntu for this machine.
I've never actually used it though, I  always went for classical deep sleep. Now I've tested it and it performs better than deep sleep on this machine: Waking up from suspend is very much faster and the power draw is roughly the same compared to deep sleep (around 2% in 8 hours).


Win7 won't resume from sleep/hibernation

The easiest procedure to get rid of the Windows 7 hibernation problem is to boot into Windows, click the start button, type cmd and right-click on the icon on the top of your menu, left-click on "Run as an administrator", enter the admin username/password or click "yes" to continue, and type powercfg.exe /hibernate off and all your Windows 7 hibernation problems will be gone!


lubuntu on Aspire One 725 without touchpad

The answer had been given from Mike as the fifth answer in another relevant question the following link:

Touchpad stopped working on an Acer AspireOne D255E

By pressing Fn+F7 the Aspire One toggles the activity of the touchpad. I have not used any function key as I had installed lubuntu right after I took the netbook out of the box. It seems that they come from the factory with the touchpad deactivated.


It can cope with bad ram, but not out of the box.

I found the easiest and most robust way for me is to add a kernel parameter memtest=4 to my Grub config. This adds a couple of seconds to bootup where the kernel checks your ram and then marks them as bad for you \o/ (thank God as I'm not able to replace my ram in this Covid19 lockdown)

sudo nano /etc/default/grub
update this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash memtest=4"
sudo update-grub
reboot
optionally check that it is working by running dmesg and see logs like this:

[    5.043917]   aaaaaaaaaaaaaaaa bad mem addr 0x0000000581a90000 - 0x0000000581a90010 reserved

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


I am user of ubuntu 12.04 64-bit.

I will give the solution.

When I plug the hdmi cable from my laptop to my led tv the screen is black.

When I press the keys Fn+F4 i have the screen on my laptop and my tv too.

Look you don't have to install ati x.org drivers. I have installed the flgrx drivers.

The only thing is to install the pulseaudio.

Open the pulseaudio

You can check pcm ac3 mpeg and two other options.

Finally if you want to hear from your tv the sound you change the first the alsa mixer
to cedar hdmi output.

That's it.

Now enjoy from your hdmi laptop screen and sound from your tv.


How to change vmnet1 ip address on Ubuntu host machine

you can change the VMNet 1 IP address using ifconfig itself.

To set IP address 192.168.200.1, enter command:
# ifconfig vmnet1 192.168.200.2 netmask 255.255.255.0 up
# ifconfig vmnet1

explained here :

change vmnet 1 ip


SOLVED! foget to close , so here the correct code

<VirtualHost *:80>
<Directory /var/www/test>
        Options +ExecCGI
        DirectoryIndex index.py
</Directory>
AddHandler cgi-script .py

...

DocumentRoot /var/www/test

</VirtualHost>

and it's worked.


I'm not sure about, but seems like Intel Quick Sync Video is not supported yet in Linux.

Wikipedia: "Intel Quick Sync Video" Linux section

  Quick Sync is not currently supported on Linux. At the moment Intel
  does not have any plan for implementing support although it has
  been considered previously. On the other hand, an open source
  programming manual was released in May 2012 which lets third
  parties make use of the underlying functions instead.

And some forums:

Intel forum: "Linux support for the SDK"
VLC forum: "Howto Enable Intel Quick Sync H.264 GPU Encoding ?" (at
the end of this topic)


lsb isn't in the default installation.  You can check to make sure by running lsb_release -a.  If the first line says "No LSB modules are available" then you'll have to add them with:
sudo apt-get install lsb
That will install lsb and all its dependencies.  Be warned, there's a lot.  My Mint 13 reports:

The following NEW packages will be installed:
  alien debhelper dh-apparmor gettext heirloom-mailx html2text intltool-debian libgettextpo0 libjpeg62 libmail-sendmail-perl libqt3-mt libqt4-designer libqt4-gui librpm2
  librpmbuild2 librpmio2 librpmsign0 libsys-hostname-long-perl libunistring0 lsb lsb-core lsb-cxx lsb-desktop lsb-graphics lsb-printing m4 ncurses-term pax po-debconf rpm
  rpm-common rpm2cpio


From your description, you might want to take a good look at BTSync.  This is a p2p syncing application but it uses only self-hosted storage.

On Linux, it relies on a config file and web interface but should still be easier to get going than unison.

Advantages over unison:

easy setup
strong support for all OSes
Mobile clients (access your files like a cloud as long as any of the PCs are on)
seamless switching from LAN sync to over the internet

The main disadvantage is this is closed-source software from BitTorrent.

If you want to try it, you can find more information on ask here:
How to run BitTorrent Sync?


How to make bootable flash drive on kubuntu

Try Rufus. The URL address is https://rufus.akeo.ie/
It's very easy to use, almost self explanatory.


I can't comment due to being new so I'm leaving this here.

If the POST (power on self-test) is showing 4 GB, that's a hardware or firmware issue. Have you double checked the modules are correctly seated? I don't know how to get Ubuntu to pick up the memory - but if it were my system I would be looking at the hardware.


You must extend containers from the outermost to the innermost. In your example, you have

An extended partition, sda2, which contains ...
A logical partition, sda5, which contains ...
An LVM physical volume, which contains ...
An LVM volume group, which probably contains ...
One or more LVM logical volume, some of which may contain ...
File systems.

It is always recommended to back up your system before fiddling with partitions and file systems; generally the process of extending partitions, LVM physical volumes and filesystems is not dangerous provided that the operator pays attention and makes no mistakes. Any human may make mistakes, and that's why you should back up the system before proceeding.

Best is to boot from the installation media: things go smoothly when file systems are not mounted. I have never tried to extend or move partitions while they were in use by the system; I always boot from the live installation media (or from a dedicated live DVD) when I need to change the partitioning scheme.

You must first extend the extended partition sda2; you can use gparted or parted to extend the partition. If you use gparted and it displays a small key near the partition name, it means that the partition is active and therefore locked; right click and select deactivate to unlock it.
After extending sda2 you may extend sda5, which now has room to grow. Use gparted or parted to extend it.
After extending sda5 the partition you can extend sda5 the LVM physical disk. Use pvresize in a terminal:

sudo pvresize /dev/sda5
Resizing the physical volume will automatically resize the volume group, because a volume group is just a list of one or more physical volumes. Now that you have the volume group resized, you may resize any logical volume inside it using lvresize.

To find out how much space you now have available in the volume group use the command vgs:

sudo vgs
This will display a nicely formatted table; look under VFree to find out how much space is available. You did not say what the names of the volume group and logical volumes are, so for example I will use the volume group name sda5_vg and the logical volume name sys_lv, and extend it by 10 GiB:

sudo lvresize -L +10g -r /dev/mapper/sda5_vg-sys_lv
You will of course need to adjust the amount of disk space and the names of the volume group and of the logical volume(s).
The option -r tells lvresize to extend the file system inside the logical volume to match the new size.

That's it. You may now reboot the system, and use df to check that your file systems have been extended.

Note: This procedure has been tested on Ubuntu 16.04.


How to completely remove Amazon from my Ubuntu 16.04

Amazon has been installed into the Unity desktop as part of a package called Unity-Webapps-Common.

You could if you wanted to, open a terminal window and run the following command:

$ sudo apt purge ubuntu-web-launchers

However, it's not recommended. The unity-webapps-common is a metapackage containing lots of other packages. If you uninstall this application then you will lose other things that you may need.

Instead, try to remove any files related to amazon manually.

Open a terminal window and type in the following commands:

sudo rm /usr/share/applications/ubuntu-amazon-default.desktop
sudo rm /usr/share/unity-webapps/userscripts/unity-webapps-amazon/Amazon.user.js
sudo rm /usr/share/unity-webapps/userscripts/unity-webapps-amazon/manifest.json

Source


When booting to ubuntu live CD, you will see a picture of a man and a keyboard. Press any key to get in the menu. You will see a menu named "other options" and then you will see an entry for the raid. Good luck!


Repository does not have a release file (18.10)

You have a mix of issues here.

FIRSTLY, you have a lot of references still to quantal.  Quantal has been End of Life for ages, and is no longer supported.  You will need to find where those lines are in your /etc/apt/sources.list file and within /etc/apt/sources.list.d/*.list files and remove those entries.

Secondly, you have some PPAs referring to Cosmic.  Those PPAs are likely not supporting Cosmic and therefore is why you get the 404s there.  remove those entries as well.


Just tried it, the Toggle Guake visibility shortcut (defaults to F12) brings it back no problem. I guess you are used to opening guake just by clicking on its icon, not using F12.

EDIT:

More precisely you have to press F12 twice to bring it back from minimized state.


Easy way to get process information from a window

If you can use Terminal, try this:

xprop | grep WM_CLASS

and your cursor should turn into cross allowing you to click on any window to get its process name. If you just need the PID, try:

xprop | awk '/PID/ {print $3}'

Hope this helps.


Stop sound from speakers when connecting headphones

Follow these steps to automatically mute your speakers when plugging in headphones:

Open Terminal (Ctrl+Alt+T)
Type: alsamixer and press Enter/Return
Select the correct sound device by pressing F6
Navigate to the right with → (Right Arrow key) until you highlight Auto-Mute
Press ↑ (Up Arrow key) and select Enabled (or Line Out)
Press Esc to exit


Go to "System Setting..." > "Keyboard Layout" and from there you will be able to add another layout that fits you keyboard, so just click the "+" button, select the right layout and then you just need to delete the current layout by selecting it and clicking in the "-" button and your problem will be solved.


How do I widen Cinnamon's panel entries?

I have widened them by a factor of 1.25 in the following way:

--- /usr/share/cinnamon/applets/window-list@cinnamon.org/applet.js  2014-12-28 17:30:10.451714782 +0000
+++ /home/mint/.local/share/cinnamon/applets/window-list@des-nerger/applet.js   2014-12-28 07:51:57.610317300 +0000
@@ -637,7 +637,7 @@
         alloc.natural_size = naturalSize;
         [minSize, naturalSize] = this._label.get_preferred_width(forHeight);
    alloc.min_size = alloc.min_size + Math.max(0, minSize - Math.floor(alloc.min_size / 2));
-        alloc.natural_size = 150 * global.ui_scale;
+        alloc.natural_size = 150 * global.ui_scale * 5 / 4;
     },

     _getContentPreferredHeight: function(actor, forWidth, alloc) {


You can try using Chrome Remote Desktop. It works perfectly on Ubuntu.


Execute command in directories that DON'T contain a certain file extension

This is where the GNU find command's -execdir may be useful:

   -execdir command ;

   -execdir command {} +
          Like -exec, but the specified command is run from the  subdirec‐
          tory  containing  the  matched  file,  which is not normally the
          directory in which you started find.

Ex. given
$ tree subdir?
subdir1
├── bar.log
└── foo.bat
subdir2
└── foo.bat
subdir3
├── bar.log
└── foo.bat

0 directories, 5 files

then
$ find . -name '*.bat' -execdir sh -c 'set -- *.log; [ -e "$1" ] || echo "${PWD##*/} has no log file"' {} \;
subdir2 has no log file

Replace the thing on the RHS of || with the command that you wish to run.


delete ubuntu entry in boot device options in bios?

Boot into Windows, open command prompt as administrator and execute :

bcdedit /enum all /v

The output shows a complete list of all boot entries.
Mark and copy the identifier of entries you want to remove.
Then execute the following command (enter the copied identifier) :

bcdedit /delete [identifier]

When rebooting the computer all boot entries you've deleted should be gone.
In some cases UEFI remembers the last entry, even if the system was removed.
The UEFI boot entry list will be overwritten at least when you install the next OS.

Note : Be careful when selecting the removal candidates because once deleted ... :)


According to sudoers manual:

   It is generally not effective to "subtract" commands from ALL using the
   ’!’ operator.  A user can trivially circumvent this by copying the
   desired command to a different name and then executing that.  For
   example:

       bill        ALL = ALL, !SU, !SHELLS

   Doesn’t really prevent bill from running the commands listed in SU or
   SHELLS since he can simply copy those commands to a different name, or
   use a shell escape from an editor or other program.  Therefore, these
   kind of restrictions should be considered advisory at best (and
   reinforced by policy).

This is why your sudoers policy doesn't work.

If you would like to prevent user to gain root permission and change its password, try this procedure:

Assuming your sudoers contains this directive:

 root    ALL=(ALL:ALL) ALL
 %sudo   ALL=(ALL:ALL) ALL

Assuming your user name is foo, his groups are foo and sudo. groups command output is:

foo sudo

Remove user foo from sudo group: gpasswd -d foo sudo after this, user foo can not run any command with sudo.
Edit sudoers file. Use this command:

sudo visudo -f /etc/sudoers.d/foo

Define user foo permission, for example:

foo ALL=/usr/bin, !/usr/bin/passwd, !/usr/bin/su

This means that user foo may run any commands in the directory /usr/bin/ except passwd and su command.
Note: If the user foo wants to change his password, can run passwd command without sudo.
Another example of user foo permission:

foo ALL =/usr/bin, /usr/bin/passwd [A-Za-z]*, !/usr/bin/passwd root

This means that user foo may run any commands in the directory /usr/bin/ and is allowed to change anyone’s password except for root on ALL machines.

You can define groups of command by define Cmnd_Aliases and create "levels of permissions". You can found useful examples in EXAMPLE section of sudoers manual, and here is a useful link about how to use sudoers.


Import public key from github to local ubuntu account

A short while after posting the question I found the answer.  There is a special command ssh-import-id which can import ssh keys. The man page for ssh-import-id explains it quite well. It's hosted as ssh-import-id on launchpad as well.

Basic usage:

# import keys from github
ssh-import-id-gh <username>

I hope this helps others.


Laptop doesn't shut down - Lubuntu 15.04

First this is bug #1464917:

If you think this bug is affecting you please report it to the bug link above, thank you.

Update:

There has been a development as a work around to this bug.  It seems to be related to the swap file usage/management.  Adam (from the bug link above) points out that if you turn your swap off, wait for it to process, before you shutdown the hang never happens.  When you are ready to shutdown your machine, open a terminal window and type;

sudo swapoff -a

Wait for the command to process and give your prompt back then you should be able to perform normal shutdown.  This is working for many including me.

end update

If the shutdown or reboot has hanged with this message Reached target Shutdown

Try Sysrq

Hold down the Alt and SysRq (Print Screen) keys.
While holding those down, type the following keys in order, several
seconds apart: REISUB
Computer should reboot.

You can also try the following after it hangs.

see if you can login tty1 and reboot

Press Ctrl+Alt+F1 or Ctrl+Alt+F2 or Ctrl+Alt+F3 ...
Write your username (lowercase, the name of the user folder in
/home) and hit Enter
Write your password (nothing will appear) and hit Enter

If your password and username are correct, you are now logged in.

If that fails try Ctrl+Alt+Del a couple times at that point in the tty1 screen

You might see a message that states the machine is going to reboot and then it should do just that after a minute or so.

Its better than a hard boot - until its fixed

In the bug notes it is reported that you can upgrade to Vivid-Proposed and it fixes the issue but some still see this after that upgrade.  It might be worth a shot.

Btw the same bug affects me and I have not tried the upgrade yet but the steps I listed do work.


You can look for your touchpad id using "xinput" command.
Then disable touchpad by

xinput disable <id>


I'm getting 2 Windows boot options: "on dev/sda1" and "on dev/sda2".
  What does this mean?

Don't worry, what you observe is normal and common.
These 2 Windows entries in the GRUB menu both boot Windows the same way.
I can tell you how to remove/hide one entry if you indicate the URL provided by Boot-Repair.

  What implications does this have for my continued Windows usage and
  for when I may remove the Ubuntu installation later?

No bad implication. You can use Windows normally whatever the Windows entry you choose. And you can uninstall Ubuntu in 1 click via OS-Uninstaller.


Touchpad not working with Ubuntu 17.10 on ASUS GL753V

This worked for me: I stuck in and booted the version that was already on my USB drive then I quit the installation (though I will go to that version mine went to 17.04) (thought it erased everything but it didn't) and I unplugged the USB drive and restarted my laptop. It kept 17.10, but I guess reinstalled the correct drive for my touchpad to fully work again.

I have a Toshiba laptop but I'm pretty sure this method won't be limited to the brand of laptop.


xinput map-to-output   always pointing to screen1 on ubuntu 20.04

Just after I post the question I've seen that there was two ID's for the same input device.
They where listed with ID 10 and 11.
After I repeat the input command to both of devices everything work very well.
So the answser is to make:
xinput map-to-output 10 VGA-1
xinput map-to-output 11 VGA-1

Thank you all anyway


Char device to access GPS on a Nexus 4 with Ubuntu Touch

Best I have found so far is /usr/bin/test_gps which gives NMEA output. Other than that you could write a Python script to interface with dbus and get the location data. Good examples for GSM modem interface are in /usr/share/ofono/scripts/. This will give you a good start.


Cannot copy the contents of virtual hard-drive to my physical disk

A VMDK file is basically an image of a hard-drive wrapped up in a format that VMWare virtual solutions & now VirtualBox can recognise.

VMWare ESX virtual hard-disks with a name format "somefilename-flat.vmdk" are basically direct byte-for-byte representation of a normal hard-disk.  As such solution 2 below could be used to read and mount such a disk.

For VMDK files though, I think you were on the correct way of thinking using qemu, but I believe you need to go one stage further as demonstrated in solution 1.

solution 1

Create a raw image  version of your vmdk and display the partitions in the vmdk using kpartx

qemu-img convert -O raw somefilename.vmdk rawimagefilename.raw
sudo apt-get install kpartx
sudo kpartx -av rawimagefilename.raw

This will produce loop mappings (/dev/mapper/loopXpY) per partition in the vmdk e.g.

loop0p1 : 0 15952482 /dev/loop0 63
loop0p2 : 0 819315 /dev/loop0 15952545
loop0p5 : 0 819252 loop0p1 63

Next create a folder in /media where we will mount one of the partitions represented by the loop mapping shown

sudo mkdir /media/partitionimage

Mount the partition that needs to be eventually restored in /dev/sda1

sudo mount /dev/mapper/loop0p2 /media/partitionimage -o loop,ro

You should be able now to browse the partition /media/partitionimage using nautilus

Backup the loop partition using tar:

cd /media/partitionimage
sudo tar cvpzf /home/somewhere/backup.tgz

You should really boot from a live CD to ensure /dev/sda1 is not in use.

You would restore the backup with something like

sudo mount /dev/sda1 /media/backup
sudo tar xvpfz /home/somewhere/backup.tgz -C /media/backup/

solution 2

Since xxx-flat.vmdk is really just a hard-disk in disguise you can mount and check the contents as follows:

sudo losetup /dev/loop0 <full path to the xxx-flat.vmdk file>
sudo losetup -o 32256 /dev/loop1 /dev/loop0
sudo mkdir /media/diskimage
sudo mount /dev/loop1 /media/diskimage
fdisk -l /dev/loop0

where 32256 is the offset calculated by multiplying the sector size (most often 63 [see here for more details]) with the VMDK sector size (assumed to be 512bytes)

If fdisk completes successfully then you can continue.
You should be able to browse your vmdk file using Nautilus and browsing to /media/diskimage.

copying the contents of the vmdk to the hard-drive

First boot from a live disk

then copy the contents of the VMDK straight to your partition

sudo dd if=<path to vmdk file> of=/dev/sda1 bs=512 skip=63

where bs is the number of bytes per sector (found in the first step)
and skip is the number of sectors (used in the first step)

source


I am certain you don't need a plugin now: select a file in your home directory, right click, choose Properties, the second tab is Permissions.

About your comment - thats what I see.

EDIT
Now I found it - it is no plugin but just a setting, in terminal type

gsettings set org.gnome.nautilus.preferences show-advanced-permissions true


can't install ubuntu-sdk after installing ubuntu 14.04.2

We are working on this issue, but one idea would be to do sudo  apt-get install ubuntu-sdk-libs-dev libgl1-mesa-dev-lts-utopic libgles2-mesa-dev-lts-utopic

I will check if it is a generic enough and permanent solution for this problem or not. But it worth a try.


Unable to open Few .jar files in Ubuntu 15.04, Error: "Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar "

Have you try using 7zip, and type this in the terminal:

First install 7zip an unrar:

 sudo apt-get install 7zip unrar

and then type this in the terminal:

 unzip (file to extract) -d (path)


Shortcut to "mate-screenshot -a" not working in Ubuntu MATE 16.04

There is still an opened issue for that.
tl;dr: this is a timing problem with focus.
workaround:

bash -c "sleep 0.1 && mate-screenshot -a"


I just installed wmctrl normally on Ubuntu 17.10 with no issues using

sudo apt install wmctrl

I tested it (using xorg) and it worked normally.  (I use wmctrl on other machines)

I also sudo apt install xdotool and it offered to install (along with libxdo3 as a requirement) without any errors. The 'x' in the name implies to me it'll need xorg (not wayland) but I'd expect it to work too (I'm not familiar with this so I didn't install or test).

A few clicks (with tweak tool) and I had a static number of workspaces instead of the dynamic default, so you shouldn't have an issue.

Unity runs on 17.10 - but Unity is no longer a default, nor supported by Canonical; it's now a community project (like xubuntu, ubuntu-mate ...), and is being tested for 18.04 along with other DEsktops. Unity is NOT gone.


I finally managed to solve the problem, first I  removed the whole package using this command:

sudo dpkg --remove --force-all libexiv2-14

And after updating the sources:

sudo apt-get update

I reinstalled the mentioned package.

sudo apt-get --reinstall install libexiv2-14


Try to make a bootable usb. Then edit /boot/grub/grub.cfg
Remove

if loadfont /boot/grub/font.pf2 ; then
    set gfxmode=auto
    insmod efi_gop
    insmod efi_uga
    insmod gfxterm
    terminal_output gfxterm
fi

part. Save it and restart.


Unable to 'Apply' Settings to nVidia X Server Settings

I am guessing you are using nvidia-settings for configuration. Run the tool as admin user  like gksudo nvidia-settings.


How do I change my login screen on lubuntu?

If you are using LUbuntu 19.10 as I am then the sddm search lead me to
"https://forum.kde.org/viewtopic.php?t=138785". Cobber said that he changed this "/usr/share/sddm/themes/breeze/theme.conf" file.

Going into my own settings I found this folder "/usr/share/sddm/themes/lubuntu
" Where I had a file called "wall.png" and a file "them.conf" with the command "background=wall.png". I just changed the picture to another one that I called wall.png and it used the new picture as my background.

Hope this helps. Lubuntu 19.04 probably will work the same since they are practically the same but I did not actually test it.


The command to import pytorch is

import torch

not

import pytorch


A screen shot of the error message you're seeing may be helpful. I Googled it and found several pages, like this one, which show screen shots that make it look like this may be a Windows error. If so, then it sounds like your installation method left some Windows files intact, which have somehow been activated and are now trying to take control of the computer. (Side note: If you completely delete an OS from an EFI-based computer, be sure to delete its files on the EFI System Partition (ESP) to prevent this "zombie OS" syndrome! In your case, completely deleting the ESP and allowing the Ubuntu installer to create a new one would have been appropriate.) If my suspicion is correct, then deleting those Windows files from the ESP should work around this problem.

If the ESP (mounted at /boot/efi in Ubuntu) is damaged, or if the Windows boot manager has returned, zombie-style, it should be possible to boot the computer by using my rEFInd boot manager on a USB flash drive or CD-R. Note, however, that you may need to disable Secure Boot if it's enabled. Once the computer has booted, you should be able to investigate further, such as:

Use dosfsck to check for filesystem damage on the ESP. (Be sure to unmount it first.)
Look for leftover Windows files on the ESP. (They normally reside in /boot/efi/EFI/Windows, as seen from Ubuntu.)
Check the boot order with sudo efibootmgr -v. Pay attention to the BootOrder line; the first item there indicates the boot loader that the computer tries to launch first. If the Boot#### line corresponding to the first BootOrder line is Windows, then this explains the problem. Deleting the Windows files should fix the problem; or you can adjust the boot order with the -o option to efibootmgr. In extreme cases, you might need to add a new boot entry for Ubuntu. (Sometimes they go missing, either because of EFI bugs or because of accidents with tools like efibootmgr.)

In an extreme case, if the ESP is badly damaged, I recommend:

Back up what you can from the ESP. A file-level backup (using cp, tar, zip, or similar tools) is fine.
Try using dosfsck on the ESP.
If dosfsck doesn't fix the problem, create a fresh FAT filesystem on the ESP by unmounting it and using mkdosfs on it.
After creating a fresh filesystem, restore the original files and adjusting the /etc/fstab file to mount it using its new serial number (UUID= item in /etc/fstab; learn the new serial number by using blkid).
If you still can't boot, you'll have to (re-)install a boot loader.

Boot Repair can completely re-install GRUB in a somewhat automated way.
Alternatively, if you're successfully booting via rEFInd or some other temporary tool, you can run sudo grub-install followed by sudo update-grub. This is a bit less thorough than Boot Repair, but is likely to be sufficient; and is less likely to create new problems through overkill.
Yet another option is to install rEFInd via its Debian package, PPA, or (if you're using Ubuntu 17.04) refind package in Ubuntu. This will bypass GRUB. You'll need to jump through a few extra hoops to get it working with Secure Boot, though.


You could remove the PPA and as a result wine will no longer receive updates but at the same time has no incentive to be removed from your system unless you explicitly command it to with a terminal command.


gksudo shutdown -h now would come to mind, but this command requires root privileges. To execute it you would have to enter you password.

Here's a command that should work without root and shut down your PC immediately (compatible with all official Ubuntu flavors):

dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

These are Xubuntu-specific:

shutdown: xfce4-session-logout --halt
restart: xfce4-session-logout --reboot
log out: xfce4-session-logout --logout
suspend: xfce4-session-logout --suspend
hibernate: xfce4-session-logout --hibernate

Sources:

http://bbs.archbang.org/viewtopic.php?pid=9078#p9078

http://linux.die.net/man/1/xfce4-session-logout


Hmm, it turns out there was another BIOS option I missed.

SATA mode should be set also on External SATA drives.


What do i need to do to upgrade from 15.04 to 15.10 (and eventually to 16.04)

Wily Ubuntu and their corresponding repository reached the end of life. The official repository have been migrated to a dedicated end of life location.

To upgrade your ubuntu, you must update the location of the repositories in your sources list file (/etc/apt/sources.list) by using the following instead.

deb http://old-releases.ubuntu.com/ubuntu/ wily main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ wily-security main restricted universe multiverse

Note that you must update the apt local database before trying to install or upgrade the packages.

$ sudo apt-get update

Once upgraded, you should be able to easily upgrade to 16.10 as this version is still supported.


You don't need 3 Exit as an option as dialog already generates a "Cancel" button. You could do a loop to display the dialog box until the user presses the cancel button :

(Note: some of my code sample is taken from this answer)

#!/bin/bash

#we start the loop....
while [[ "$dialog_exit" -ne 1 ]]; do
    #we force the redirection of the output to the file descriptor n°1 with the --fd-output 1 option
    dialog_result=$(dialog --clear --menu "Task to perform" 10 30 3 1 "This task" 2 "That task" 3 "Yet another task" --fd-output 1);

    #we store the exit code. If the user pressed cancel, exit code is 1. Else, it is 0.
    dialog_exit=$?;
    case "$dialog_result" in
        1) echo "task 1";;
        2) echo "task 2";;
        3) echo "task 3";;
        "") echo "action when cancel";;
    esac
done


Always get error "operating system is not supported by packagecloud.io, or this script's OS detection failed" when try to install from terminal

Your Ubuntu version is "zesty", which is "17.10".
You are trying to download "gitlab-ce" from packagecloud using the script.
See: https://packages.gitlab.com/gitlab/gitlab-ce

But: gitlab-ce is available at packagecloud only till xenial, which is "16.04 LTS". There is no package for "16.10" and "17.10".
They did not release an apt package for 17.10 till now.

Same problem I did have on 16.10, so I do not have a solution now (just explained the problem).

Edited:
You could try to download "gitlab" instead gitlab-ce, which is version 8.11.3, and is delivered out of the Ubuntu repository, not by packagecloud. Older version, I don't know if this is the community edition, but I think so.

See "apt-cache show gitlab".
Btw: You do not need the script for that, just enter "apt-get install gitlab". I will try on 16.10, didn't checked on 17.10.
But gitlab 8.11 does need a SSL and and NGinx Installation, which may cause more questions. Maybe switch to 16.04. I do not know.....

Edited again:
I tried "apt-get install gitlab" on 16.10 and ran into more errors (missing gems, and so on). The package "gitlab" is a non-supported version. See here: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1720

So i skip, and will go back to Ubuntu 16.04 LTS.

Greetings, Bernd.


Change a single icon in the Unity launcher panel?

From your comment, it turns out that there is no icon defined in the .desktop file. You can use an icon "of your choice", and edit the line:

Icon=.png

to:

Icon=/path/to/your/icon.png

You will possibly have to log out and back in to make the change appear.

Note1

If you found your .desktop file in /usr/share/applications, it is good practice to first copy it to ~/.local/share/applications and edit the local copy. After log out / in, the local version will "overrule" the one in /usr/share/applications.

Both Dash and the Unity Launcher will then use the local one.

Note2

You might want to look inside the application's directory (which seems to be /opt/sqldeveloper) if there is not already an appropriate icon to use. /opt is a typical directory where self-contained "all in one" applications can be located.


World of Warcraft with wine disabling sound output for other programs

I was trying to figure out what was causing this issue for me and the post above about "Disable background info" had me thinking about in-game sounds. The setting was actually called "Enable sounds in background" for me (version 4.3.4 at the time), though that didn't fix it. I copied this installation from my Windows install and so all the settings were the same. I noticed I had my sound channels set to "High (64)" and when I swapped to "Low (24)" immediately the sound buffered in Mangler all played at once. I still left "Use Hardware" checked, and haven't had issues so far but I haven't done extensive testing. Hope this helps!


Easy Way: Download this and run boot repair Boot-Repair-Disk

More Typing Way:

Boot from live cd and go to a command prompt
sudo grub-install /dev/sda


How to install Windows 7 theme with GNOME Shell?

Modify the following line(71) at win7-setup.sh:

if [ $DESKTOP_SESSION = "gnome" -o $DESKTOP_SESSION = "classic-gnome" ] ; then

to

if [ $DESKTOP_SESSION = "gnome" -o $DESKTOP_SESSION = "gnome-classic" ] ; then


Doesn't SteamPlay/Proton under AMDGPU-PRO work?

As you pointed out, RX-480 open source driver is already in the Linux kernel, and therefore installing and trying to use the AMDGPU driver is generally not necessary and can lead to problems down the line when kernel updates happen. You also used an updated MESA, which helps a lot in getting maximum performance out the open source driver.

Since you're asking specifically about CS:GO, why use Proton at all? After all, the game is available natively under Linux, so using Proton would not be necessary in this case, and you would likely get better performance by using the native version of the game. Valve's Proton exists in order to allow Windows games to run in Steam for Linux, but since CS:GO is native already, using Proton's compatibility layers would seem redundant.

Another thing that can help is using the latest stable kernel as possible, as driver updates come often and will help to maximize performance under the open source drivers. See, for example, Using Ukuu To Keep Up With The Latest Mainline Kernels


How to find out which python script is using resources?

I've found the answer myself!

It's

ps -Ao pid,cmd

-A = Show All Processes
-o pid,cmd = display options: process id, full command string

Adding -H gives you a tree listing so you can see which process started which other process.

ps -AHo pid,cmd

Turns out for me the process in question was /usr/share/screenlets/screenlets-pack-basic/Sysmonitor/SysmonitorScreenlet.py

I think I'll turn off that sysmonitor screenlet since it constantly polls the CPU and uses more memory than than the entire rest of the desktop.


We had a bug on our website where buying more than one 20-pack of storage wasn't working. We fixed it, now. Sorry!


Can't boot up Ubuntu after changing grub file with nomodeset?

How to change boot options temporarily

Boot your system.
Hold Shift to show the Grub-Menu if Ubuntu is your only system.
Go to the menu entry you want to (temporarily) change and hit e.
Delete the "nomodeset" from the kernel options.
Hit Ctrl + x to continue booting.


Grep specific strings inside config file

awk in paragraph mode is useful for this case - where you have multiline records that are separated by one or more blank lines e.g. to print the value of the Host key (second field) of records matching IdentityFile you can do

awk '/IdentityFile/ {print $2}' RS= .ssh/config

If you need to match IdentityFile case-insensitively, you can modify that to

awk 'toupper($0) ~ /IDENTITYFILE/ {print $2}' RS= .ssh/config

or (with GNU awk)

gawk '/IdentityFile/ {print $2}' RS= IGNORECASE=1 .ssh/config


Ubuntu 16.40 LTS -- How do I get a GUI feedback on an ongoing search process

A search for a file based on part of a name would take less than a second using:

locate part-of-name

Note do not use * before or after part-of-name search string.

There is a preliminary step required to include files added today and exclude files deleted today. sudo updatedb must be run in this situation.

I can easily create a GUI solution using zenity that calls the locate command from the desktop.

Because it takes about 1 second to find the matching files out of 2 million file name on Ubuntu and two Windows 10 partitions on my system a progress indicator is unnecessary.


How can I copy the text of an unreportable error?

If apport has tried to collect the data from the crash, then look in

/var/crash

Alternatively you might look to see if there is a -dbg package for the application.

Try running the app from a terminal with -h - see if there is a debug option

Exaile for instance has a debug option, which can be run with

exaile --debug

Perhaps talk to whoever the application comes from.


Terminal
sudo add-apt-repository ppa:openshot.developers/ppa
sudo apt-get update && sudo apt-get install openshot blender
Software sources, add:
deb http://ppa.launchpad.net/sunab/kdenlive-release/ubuntu oneiric main
deb-src http://ppa.launchpad.net/sunab/kdenlive-release/ubuntu oneiric main
...Then Update/Upgrade
Link: http://www.openshotusers.com/forum/viewtopic.php?f=12&t=1060
Fixed for anyone else who may have the same issue


14.04 - Connects to wireless network but can't transmit data

As a matter of fact, I had this problem 20 minutes ago. What I did to fix it may not work for you, but it did work for me.

1: turn off hardware switch,
2: turn on hardware switch,
3: put the laptop in sleep mode,
4: press any key on the keyboard to wake up the laptop from sleep mode,
5: select the option in the Wireless drop-down menu "Connect to Hidden Wi-Fi Network...",
6: select your desired Wi-Fi network in the drop-down menu and connect.

(note: in step 5, you may not have to select "Connect to Hidden Wi-Fi Network..." if you already see your network name)

Again, it may not work for you, but it did for me.


In order for the Startup Disk Creator to work, you need a copy of an Ubuntu installation media. You can download one from https://www.ubuntu.com/download/desktop . Choose either of the options - the first one is recommended if you're not sure what you're doing.

The "Download" button will get you a file with a .iso extension - save it somewhere, maybe in the Downloads directory (don't worry about the donation screen that comes up - if you do nothing, it'll just start download the ISO file, you don't actually need to pay for that).

Once the ISO file has downloaded, open Startup Disk Creator, and it should show you the ISO file that you just downloaded in the first table - just click it and and then the USB drive, then the "Make startup disk" button should light up.

If you don't see the ISO file listed, click on the button "Other..." and find the ISO file using the file browser.


Proper Kubuntu KDE 5 Wastebin desktop icon config

Just for future reference, I have found a solution. I modified the .desktop entry as follows:

[Desktop Entry]
Encoding=UTF-8
Name=Wastebin
Icon=user-trash-full
EmptyIcon=user-trash
Type=Link
URL=trash:/
OnlyShowIn=KDE;

It now works perfectly the way I wanted.


How can I enable Gnome Shell Extensions with Ubuntu 11.10?

Solved.  I re-visited the "solutions" from the other post and un-did the changes which I had earlier made per that posting... and, although gnome-tweak-tool still reports:

  CRITICAL: Error parsing schema org.gnome.shell (/usr/share/glib-2.0/schemas/org.gnome.shell.gschema.xml)

the extensions are enabled.