Formatting broken HDD and reinstalling Ubuntu

There's no point to installing Ubuntu on a failed HDD that has errors especially when SSDs are so cheap. SSDs last much longer than HDDs because as the name suggests an SSD is a Solid State Drive. If your stored data on the HDD matters to you, back it up and upgrade your storage device.


Can't Right-Click on Gnome-Shell Panel to Add Extension

you can't add extensions by right clicking the panel. You have to create a dir in ~/.local/share/gnome-shell/extensions/extension_name@your_host

and create there 2 files: extension.js and metadata.json

and add code to whatever you want to add onto panel to extension.js and some info into metadata.json

in gnome-shell 3.0.x in .js you have to add function main() { }
in gnome-shell 3.2.x: function enable() { /* code to execute on enabling this extension */ }
function disable() { } and function init() { }


The following worked for me:

Change the backend of Phonon (which is used by Okular to play videos) to the VLC one. For me it sufficed to install the respective package:

sudo apt install phonon-backend-vlc

On newer versions of Ubuntu, the crucial package is phonon4qt5-backend-vlc.
Use multimedia instead of movie15:

\documentclass{beamer}
\usepackage{multimedia}

\begin{document}
    \begin{frame}
        \movie[poster, height=6.5cm, width=6.5cm]{}{/figures/Video.avi}
    \end{frame}
\end{document}


Mouse pointer not working properly on HP pavillion 15

The trackpad drivers support multi touch actions--two finger scrolling, pinch actions, etc.  As soon as your thumb touches the pad, the system is looking for one of those motions, instead of the normal pointer movement.

Check out your trackpad settings and see what you can change to try and find setting you like.  Most trackpads will accept a tap or doubletap on the pad as the matching mouse click where ever the pointer is; you don't actually have to use the buttons at the bottom of the pad.  But ultimately, you can get used to the new hardware, or you can plug in an external mouse.


Provided bash's extended globbing is enabled (which it is in the default Ubuntu ~/.bashrc), you can use name.!(tex) to match name followed by any dot extension except .tex

Ex. given

$ ls name*
name  name2  name.bar  name.foo  name.tex  name.txt

then

$ ls name.!(tex)
name.bar  name.foo  name.txt

To remove the matching files, replace ls by rm (or - safer - by rm -i).


Install old software versions (such as Firefox 22) in Ubuntu

The ability to install a Firefox package, or any package really, that is old is totally dependent on what's available in your repositories and whether you have any cached installers lying around.

The method you're describing conforms to the requirements of the previous statement - you need to have a repository with the specified version in its contents, and in the specific release you are on.  In most cases of old software, this is not the case, so you have to end up doing manual downloads of older package versions and install.

As Firefox 22 is sufficiently old that it might not exist anymore in the repositories for modern releases, and may even exist without the ability to recover it from the remote repository servers, you may have to manually download the Firefox package and manually install it.

For Firefox 22, you can use the following commands.  Note that this will completely remove your much newer Firefox version, and will REPLACE your Firefox.  It is also entirely possible that apt-get and update manager will attempt to upgrade the version as well, and you will need to check to make sure Firefox is not upgraded.

For 64-bit Ubuntu:

sudo apt-get purge -y firefox
mkdir /home/$USER/firefox-old-binaries
cd /home/$USER/firefox-old-binaries
wget -O firefox_22.0+build2-0ubuntu0.12.04.2_amd64.deb https://launchpad.net/~ubuntu-mozilla-security/+archive/ubuntu/ppa/+build/4751637/+files/firefox_22.0%2Bbuild2-0ubuntu0.12.04.2_amd64.deb
sudo dpkg -i firefox_22.0+build2-0ubuntu0.12.04.2_amd64.deb

For 32-bit Ubuntu:

sudo apt-get purge -y firefox
mkdir /home/$USER/firefox-old-binaries
cd /home/$USER/firefox-old-binaries
wget -O firefox_22.0+build2-0ubuntu0.12.04.2_i386.deb https://launchpad.net/~ubuntu-mozilla-security/+archive/ubuntu/ppa/+build/4751640/+files/firefox_22.0%2Bbuild2-0ubuntu0.12.04.2_i386.deb
sudo dpkg -i firefox_22.0+build2-0ubuntu0.12.04.2_i386.deb


How do I install a specific lower minor version of gcc using package manager?

You can find the packages you want over here and install them using gdebi.


is there any time to install apps same time in ubuntu?

No! Don't do that!!

The installation process is locked when it is running for a reason. The system won't allow if you try to install two incompatible apps at the same time.

Unlike Windows, Linux apps depend on lots of common files. If one of those is incompatible with the rest of the system, your system may not boot.

You can always install multiple apps in a single command:

sudo apt install app1 app2 app53

Hope this helps


Installing Ubuntu in UEFI rather than the legacy BIOS allowed it to properly add GRUB entries for Windows.


Are files synced from mobile app supposed to download to my PC's Ubuntu One folder?

Yes. Your pictures are stored in a cloud folder named "Pictures - your phone model". If you run the Ubuntu One control panel (which you can see at https://wiki.ubuntu.com/UbuntuOne/Tutorials/ControlPanel#Cloud_Folders) then your new cloud folder will be listed, and you can tick it to make sure that this cloud folder is also on your computer.


You need to put quotes around the pipeline - being careful to ensure that $2 doesn't get expanded by the shell. So for example

alias gate='route | grep default | awk "{print \$2}"'

or

alias gate="route | grep default | awk '{print \$2}'"

Note that awk can do pattern matching - so you don't really need grep:

alias gate="route | awk '/^default/ {print \$2}'"


How to extend logical volume swap space to atleast 64 GB on SSD

The lvextend command accepts physical devices as argument :

lvextend -L 64000 /dev/vgssd/swp /dev/sda5

Will allocate all the new extends on /dev/sda5


how to properly resove package dependencies

First do an update

apt-get update

Then install missing dependencies

apt-get install libssl-dev krb5-multidev comerr-dev

Hopefully the packages will be received. Otherwise, you will have to manually search for packages over internet and install.This happens mainly because the packages are not present in the configured repositories

Then install your packages.

apt-get install postgresql postgresql-contrib  postgresql-common libpq-dev


Lower battery life with Ubuntu than with Windows 10

If you have a laptop computer, I would be very surprised to find that it has two graphics cards.  First of all, there are no expansion slots for cards.  Second, it will only have one graphics processor on board.  Please recheck what you're meaning with "graphics cards".

Perhaps you meant graphics drivers.  In any case, your particular computer has an Intel® HD Graphics 4600 processor.  Make sure the operating systems both recognize it and have the correct driver installed.

The first thing to do is to go into windows and check the power-saving settings.  Write them down.  Then boot into Ubuntu, and check that the settings in TLP are the same as you wrote down from windows.

Restart your computer and see what happens then.  It may be a process of elimination of differences.  Try this as your first step in finding the difference.

Good luck.


Wireless link is blinking continuously even when I am using wired connection

If the wireless is just not "connected" you can, depending on lots of things, still see activity when it probes for available access points.

A simple solution is:

:~$ rfkill list
0: hp-wifi: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
:~$ rfkill block 1

To re-enable wireless:

:~$ rfkill unblock 1

I seriously doubt "my computer is slow" is related to wireless directly.  More likely an under-powered graphics card pushing unity.

This is tested with an Intel Pro 5100 AGN.


error processing package initramfs-tools No space left on device

Based on our chat and your requirements that the end result be a portable video editing solution, I recommend that you start over with your live media and install to a larger media and make your modifications to the installation on the larger media rather than the live media.


how to run youtube-dl through proxy server

proxychains youtube-dl [options] LINK

proxychans uses the tor service by default, if you have your own proxy, edit the last line of the /etc/proxychains.conf file.

sudo apt-get install proxychains tor obfsproxy

If you want to use tor, configure it to use obfs2.


Chrome causing weird flickering since upgrade to 85.0.4183.83

In my case, I go to chrome://flags/
Then enable:
#ignore-gpu-blacklist
#enable-vulkan

I don't know if there will be any problems later, but it works for me now.


Will installing Chrome on Ubuntu do anything to Chrome on Windows?

No it won't. Think of Ubuntu and windows as 2 different people in a room. They know nothing of each other. Except that you can mount windows drive with Ubuntu but that doesn't mean it will affect windows unless you personally do something on the drive.


Canon LBP5050 recognized but doesn't print

I have had exactly the same problems as you describe (on a 64-bit Ubuntu) but with the LBP7200Cdn printer.
Today I (coincidentally) found a new(er) version of the Canon CAPT drivers (2.56), including a precompiled 64-bit debian archive here.

After trying this version, with exactly the same (official Ubuntu) steps as I tried many times before, it worked instantly!
So maybe this will solve your (similar) problems as well!


KDE Desktop malfunctioning after adding kubuntu-ppa/backports and upgrading

Read man apt-get

Looks like you simply forgot to run:

sudo apt-get dist-upgrade as the third command to follow the two others on the command-line. This it is essential to resolve dependencies and install missing packages that were removed before.

But it's o.k. if it could resolve it the investigating way. Don't forget to mark your question as solved.


Issue using Epic Games Launcher in Lutris in Lubuntu

A simple fix might be to uninstall Epic Games store in Lutris and reinstall it.
You can report this bug to the Lutris developers, they maybe able to help:
https://github.com/lutris/lutris
Also check following link to make sure that Lutris and its dependencies are correctly installed:
https://github.com/lutris/docs/blob/master/HowToDXVK.md


Get a rid of the header section in a qml app on Ubuntu SDK

As you already know, removing the title prevents the header to be displayed. So the only thing to fix is the title of the root window.

You can do this with the following code (where I change the window.title - after importing QtQuick.Window):

import QtQuick 2.0
import Ubuntu.Components 0.1
import QtQuick.Window 2.0

/*!
    \brief MainView with a Label and Button elements.
*/

MainView {
    width: 400
    height: 400
    transformOrigin: Item.Center
    clip: false
    opacity: 1

    // objectName for functional testing purposes (autopilot-qt5)
    objectName: "mainView"

    // Note! applicationName needs to match the "name" field of the click manifest
    applicationName: "com.ubuntu.developer.username.hello1"

    Page {
        id: page1
        clip: false
        property var my_title: "Hello World"

        // 'window' is defined by QML between startup and showing on the screen.
        // There is no signal for when it becomes available and re-declaring it is not safe.
        property bool windowActive: typeof window != 'undefined'
        onWindowActiveChanged: {
            window.title = my_title
        }

        Column {
            id: column1
            anchors.bottomMargin: 45
            spacing: units.gu(1)
            anchors {
                margins: units.gu(2)
                fill: parent
            }

            Text {
                id: label
                height: 50
                objectName: "label"

                text: i18n.tr("Hello..")
                anchors.left: parent.left
                anchors.leftMargin: 0
                anchors.right: parent.right
                anchors.rightMargin: 0
            }

            Button {
                objectName: "button"
                width: parent.width

                text: i18n.tr("Tap me!")

                onClicked: {
                    label.text = i18n.tr("..world!")
                }
            }
        }
    }
}


Dual Monitors on 18.04 with Radeon RX 580 GPU

Based on the @dobey ansewer:

Run sudo nano /etc/default/grub
Change GRUB_CMDLINE_LINUX_DEFAULT and save:

GRUB_CMDLINE_LINUX_DEFAULT="splash amdgpu.dc=0"

Run sudo update-grub
Reboot your system


Listing certain contents from a site in the terminal

grep '<h.*>.*<\/h.>' sample.html | sed -e 's/<[^>]*>//g'

grep 'regex(all heading tags)' filename pipe(" | ") sed remove all html tags

This should work.


How do I install Windows 7 alongside a pre-existing Ubuntu installation?

First, back up your data. Keep in mind, when installing an OS, over writing data is often a mouse click away.

Second, boot the ubuntu desktop CD, resize your partitions, and make a NTFS partition for Windows.

Then install Windows into the NTFS partitions. You may need to find drivers for your hardware.

Then boot the Ubuntu CD again and re-install grub. You can do this graphically with boot-repair

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

See https://help.ubuntu.com/community/Boot-Repair for details.


Which driver for film scanner Plustek OpticFilm 8100?

Install virtualbox. Install windows xp/7/10 guest and use scanner there.
I own plustek 8100 and the only way to use it is windows or mac.

EDIT: VueScan not supporting this device on linux https://www.hamrick.com/vuescan/plustek_opticfilm_8100.html#technical-information


First install libv4l-0

sudo apt-get install libv4l-0

then change skype.desktop by editing

sudo gedit /usr/share/applications/skype.desktop

and replace the line starting with Exec= like that:

Exec=sh -c 'LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so env PULSE_LATENCY_MSEC=60 skype %U'

Hope it works.


Installed 11.10, but it's not detecting all 8GB of RAM, only 3.9GB.  BIOS sees 8GB

3.9 GB is the limit for 32-bit, you probably installed the wrong version. If you are indeed running 64-bit, the uname -m command should output x86_64.


How to solve "Unable to find expected entry 'restricted/binary-1386/Packages' Wrong sources.list entry or malformed file"?

I backtracked what I did today: I was following the Skype
  instructions on help.ubuntu.com/community/Skype And used sudo dpkg
  --add-architecture 1386 instead of i386. I did a quick search on how to remove dpkg and removed the 1386 that was added, and now everything
  works!

-- posted by OP in comments.

To remove an incorrect architecture (1386 in this case), run:

sudo dpkg --remove-architecture 1386


How to get Windows-like list of open apps/files/terminals etc on bottom of screen for navigation

I guess you are in Gnome desktop (the main Ubuntu) because in Xfce, KDE, etc, the feature you are asking for is already in place.

So, you want the dock always visible: How to make Gnome's "Activities" bar always visible?.

As for having it at the bottom of the screen: How to shift side bar (Ubuntu dock) to bottom on Ubuntu 17.10 and later.

It looks like a duplicate of two questions.


How to get online Movie Rental Service to Work

Manual creation of some directories and such have to be done with HAL as outlined in these answers.

Is there a work around to get protected Hulu or Amazon Prime instant videos working?

p.s. i run CentOS 6 and it was fixed on its own by Amazon within a week.


While tailing a file, less says at the bottom, Waiting for data... (interrupt to abort). So just press Ctrl+C, which sends the interrupt signal (SIGINT).


Why do portable app icons disappear from Unity launcher after restart?

A .desktop file is needed. One way is to install sublime text editor via webupd8 ppa.

Version 3 (url):

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

Version 2 (url, not tested, but should work):

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

This adds a .desktop file to /usr/share/applications/.

Alternatively, add a .desktop file to $HOME/.local/share/applications/ manually. This should point to your binary.

This is the .desktop file from version 3 on my system:

# cat /usr/share/applications/sublime-text.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;Utility;
StartupNotify=true
Actions=Window;Document;

X-Desktop-File-Install-Version=0.22

[Desktop Action Window]
Name=New Window
Exec=/opt/sublime_text/sublime_text -n
OnlyShowIn=Unity;

[Desktop Action Document]
Name=New File
Exec=/opt/sublime_text/sublime_text --command new_file
OnlyShowIn=Unity;


Installing Brasero removes 100+ packages and impairs internet and display manager

Boot to recovery then drop to shell
Check the network interfaces available.

ifconfig -a

If you don't see IP address (x.x.x.x), run DHCP query to get an IP, change eth0 with yours.

dhclient eth0

Confirm connection

ping -c3 ubuntu.com

You should get an output similar to this:

3 packets transmitted, 3 received, 0% packet loss

Check dpkg multi-arch setup

$ dpkg --print-architecture
amd64
$ dpkg --print-foreign-architectures
i386
$ grep -ir arch /etc/dpkg/
/etc/dpkg/dpkg.cfg.d/multiarch:foreign-architecture i386

If i386 doesn't show up in 2nd & 3rd command, set it:

echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch

Update package list

apt-get update

Run

apt-get install ubuntu-desktop

If still getting "unmet dependencies" message, run aptitude.

aptitude

Press / to search, write ubuntu-desktop then Enter
Then use n till ubuntu-desktop selected, NOT ubuntu-desktop:i386
+ to flag it for installing

At this point, there should be a red bar at the bottom with number [1/..] which indication the current solution from many other possible onces.

Press e to examine, it show what the current solution is going to do.
Flip through all other solutions using ./,
You gonna see some solutions that prefer to keep installing packages without installing ubuntu-desktop. Choose the one that remove less and installs ubuntu-desktop.

This is not always the perfect solution, so check well then choose. Each case is specific. For current case, see this related chat room.
! to apply then g, check then g again to confirm.

If every thing goes OK, reboot.
Then install other need tools you need, which have been removed may be.

Notes: These from my personal experience, so I could be wrong. So if anyone experienced otherwise, please share it.

Avoid installing .deb binary Debian packages locally using dpkg, debi or software-center. Use repositories as possible (Ubuntu ones, PPA, Other vendors ones,...).
For vendors packages, look for native architecture amd64. In rare cases building source (if available) is easier then foreign arch.
Software-center, synaptic, apt-get and many other tools, for me they not fully support multiarch feature. They show only 1 solution and (except apt-get) don't show the architecture of each package.

If you face any conflict, use aptitude. It shows other solutions and shows clearly all packages from all available architecture.
If you have to install some i386 tools with no option for amd64. Leave them to be installed the last. If you have them already installed and you are trying to install native arch amd64 packages then you get a conflict (basically unmet dependencies message). Let aptitude uninstalls the i386 ones, then run clean up with apt-get autoremove to remove residues (auto-installed dependencies from i386 arch). Install amd64 packages you wanted then try installing back the removed i386 tools.

Why is that? If you try to install a i386 tool, all its dependencies will be installed as i386 too, even amd64 ones available and can work. Later, if you try to install another amd64 tool which have at least one overlapped dependency, you get the conflict.

Aptitude will seem like removing the packages, but actually it is replacing some i386 packages with the corresponding amd64 ones.

See this show case, Ubuntu 14.04, problem when install gstreamer1.0-libav, unmet dependencies


What is the equivalent of # compiz --replace in lubuntu?

compiz is the window manager used by Unity. Running compiz --replace when Unity is running will start a new instance of the window manager, replacing the old instance.

Lubuntu uses the openbox window manager. So if you want to do is to run a new instance of openbox, replacing the old one, run:

openbox --replace

That's probably what you want.

On the other hand, if you want to replace openbox with compiz, just run compiz --replace. (If that doesn't work, try killing openbox manually first with killall openbox.)

By the way, you've written compiz --replace with a # character in front of it, as though you're running it from a root shell. That would be wrong. compiz, openbox, and other window managers should be run as the non-root user who is graphically logged in, not as root. Do not use sudo to run compiz or openbox.


Shall I download updates from kernel 3.2. when I already installed 3.4.3?

If you update a kernel, then all you are going to do is placing a couple of files in

/boot/{config, initrd, System.map, vmlinuz}-{version}
/usr/src/linux-headers-{version}

The kernel itself is only an executable. That gets started by the bootloader (configuration is in /boot/grub/grub.cfg ).
This in turn allows a user to have multiple kernel versions installed simultaneously. Not knowing how you installed the 3.4 kernel version, I don't think that installing these updates will do any harm to your computer (especially if you downloaded the .deb from kernel.org and installed it manually).

If you can find the files for a 3.2 kernel in /boot/ and the corresponding /usr/src/linux-headers you should be safe. Since you should be able to boot a 3.2 kernel in case your 3.4 kernel somehow doesn't work anymore.

I would however recommend using a PPA for unstable kernels, since it will take care of all the dependencies.

The suggestions for updating 3.2 kernel files might come from the fact that you weren't able to install the 3.4 kernel correctly and you're still running a 3.2 kernel. In this case I recommend using the PPA to install the 3.4 kernel.

This comment provides a good explanation on how to upgrade to unstable kernels


Nvidia 760 GTX 14.04 Driver Install Problem

It seems difficult to figure out the issue from the problems you just described. Primarily, I suspect this could be nouveau issue.
If you are installing Nvidia driver, then nouveau should be disabled.

One way you can do to disable nouveau is by adding nouveau.modeset=0 as kernel parameter :

# grubby  --update-kernel=ALL  --args=nouveau.modeset=0

and then reboot the system.


why is my minecraft launcher not working?

You can't run Windows executables on Ubuntu. Download Minecraft for Linux


Since the wireless script result indicates you have Ubuntu 14.04.3 LTS
Distributor ID:  Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:   trusty

This has been recently fixed upstream, follow the instructions to install the backported modules and needed firmware
sudo apt-get install build-essential linux-headers-$(uname -r) git
echo "options ath10k_core skip_otp=y" | sudo tee /etc/modprobe.d/ath10k_core.conf
wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/11/15/backports-20151115.tar.gz
tar zxvf backports-20151115.tar.gz
cd backports-20151115
make defconfig-wifi
make
sudo make install
git clone https://github.com/kvalo/ath10k-firmware.git
sudo cp -r ath10k-firmware/QCA9377 /lib/firmware/ath10k/
cp /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin_WLAN.TF.1.0-00267-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin

And it should work after a reboot

If you have a kernel update and wireless quits again you will need to
cd backports-20151115
make clean
make defconfig-wifi
make
sudo make install


On Ubuntu 12.04 32 bit. I edit the command to:

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/

And on Ubuntu 12.04 64 bit try:

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/


The simplest answer might be a cron script or a Systemd Timer.

Alternatively, you might consider using a tool like ifmetric to give the mobile hotspot a lower priority, so that the system will automatically prefer to use another interface whenever one is available.

Edit: Apparently nmcli also has an autoconnect-priority setting, but it's not currently exposed through the GUI. That should also work for wireless networks which use the same interface. I would recommend using that solution instead, assuming you're on at least 16.04.

Quick summary of that answer:

To list all networks and their priorities:

nmcli -f NAME,UUID,AUTOCONNECT,AUTOCONNECT-PRIORITY c

To set a network's priority:

nmcli connection modify <NAME> connection.autoconnect-priority <priority>


deja-dup ssh method doesn't work - writes locally instead

Solved:

The upgrade to 14.04 did not install sshfs. It's not in the dependencies for deja-dup either, and so its absence led to the behaviour described.

sudo apt-get install sshfs

followed by a reboot of the notebook fixed the issue. Now deja-dup --backup called from the shell results in the backup being sent to the correct location on the server as configured.

For further information on debugging the problem see my answer to the nautilus problem.


How to configure PPPoE in ubuntu under wired connection not DSL

It seems that I got the correct answer, and in retrospect it may look silly why didn't I tried that.

Answer to above problem is :

Go to Network Connection  by clicking window button(or super which ever works) search for Network Connection open it.
Look for DSL tab at top right and click it. Choose the option add then again under DSL fill in the required detail about username and password provided by your ISP/ Before you do it please ask your ISP to reset the MAC filtering or ask him to add the one you are configuring(in my case I asked them to reset but they did not do it first time so one again when I tried on ubuntu I asked them to reset and this time it worked ).

Cheers!!! P:)


Swiching to Lubuntu from Ubuntu- Guild Wars 2

Wine v1.8 works with Guild Wars 2 but not v1.6 (Wine Compatibility Information for Guild Wars 2 (64 bit)).

I don't know what version of Wine Play-On-Linux uses, but otherwise you'll need to install the package wine1.8

See here for an installation guide for Wine 1.8

See you at the Black Citadel

UPDATE: Sometimes the Guild Wars 2 launcher will freeze the display with the message Initializing..., you may be able to work-around this with a custom Wine configuration:

Run winecfg
Click Add Application
Browse for Gw2-64.exe, click Open
Click Graphics tab
Check Emulate a virtual desktop and specify the same size as your screen
Check Automatically capture the mouse in full-screen windows
Ensure the other two checkboxes (decorate and control) are not checked
Click Ok

You may also need to enable mouse warp override if you cannot spin your character around 360 degrees with the mouse and only goes half-way:

Run wine regedit
Navigate to HKEY_CURRENT_USER\Software\Wine\DirectInput
Make sure you're in the DirectInput folder
From the menu choose Edit -> New -> String Value
Enter MouseWarpOverride for the name
Double-click on it to open the edit dialog for that new entry
Enter enable in Value data and click OK
Close the registry editor


How to create a Gnome icon to launch a link to a shell script?

The actual path to the script seems to be

/home/abet/altera/13.0sp1/modelsim_ase/vco

so try

Exec=/home/abet/altera/13.0sp1/modelsim_ase/vco

in your modelsim.desktop file.


Where are the logs from underneath the splashscreen?

Use dmesg to print kernel buffer ring logs, or use journalctl -b to get messages from last boot, you can take a look at /var/log/syslog too.


I am the main developer of Skrooge and I would like to suggest you:

Try to change the extension of your file by .OFX and try to import it with Skrooge. Most of the time, it works.
Send me by email an example of OFC file (you can find me email in the about page of skrooge), I will add the OFC import in the application.


fatal error: SDL/SDL.h: No such file or directory

Probably you have already installed the libraries, I show the steps but again for the reason of completeness.

SDL2

sudo apt-get install libsdl2-dev

SDL1

sudo apt-get install libsdl1.2-dev

Start the compilation with:

SDL2

gcc cube.c `pkg-config --cflags --libs sdl2`

SDL1

gcc cube.c `pkg-config --cflags --libs sdl`

Sample output:

% pkg-config --cflags --libs sdl
-D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -lSDL

% pkg-config --cflags --libs sdl2
-D_REENTRANT -I/usr/include/SDL2 -lSDL2


I found a solution. The font was wrongly patched and therefor not recognized as a monospace font even though being a monospace font. I traced back from where I had downloaded it earlier this year and found a solution at the github-issues section: https://github.com/ryanoasis/nerd-fonts/issues/270#issuecomment-394312962

With dconf-editor it is possible to just type in the font gnome-terminal is suppossed to use.


You could try and use:

sudo sh -c 'vbetool dpms off; read ans; vbetool dpms on'

Or other versions that I found in my Source: Turn off monitor using command line

From a personal point, I would suggest you reinstall Ubuntu...


I am not able to run php file in my ubuntu os

If browsing to localhost works for you and viewing a specific php does not. This tells me that the php file is not in the correct directory. By default apache2 looks in /var/www/html.

If you will be developing php websites, might I recommend that you take a look at setting up virtual hosts. This is a straight forward process if you follow the many excellent tutorials on the web. I use virtual hosts for all my local development on Ubuntu.


Upgrade MySQL 5.5 to 5.6 on Ubuntu 12.04 LTS

If I go to https://launchpad.net/~ondrej/+archive/ubuntu/mysql-5.6 I can see clearly that the package you're interested in is named mysql-5.6. So you could go ahead and

sudo apt-get install mysql-5.6

Packages from 3rd party repos don't have to follow the same naming convention as Ubuntu repos.

But as @Florian Diesch noticed, there are no packages for your Ubuntu version in that repo.


apache2 fails to load because the process exited with error code

Some soft already use port 80 and apache2 could not start.
I think you must stop another web server (for example nginx)
run netstat -lnp and search what program use port tcp 80


I have an Intel i217 -v Ethernet Controller and nothing is working for internet connection

1)First check whether ip address is able to generate from the network connection through cable by using,

ifconfig -a

2)Check whether auto assigning of ip is working by using,

sudo dhclient eth0

3) If the process stop in middle, reboot by using,

sudo dhclient eth0

After rebooting  edit the file and set the static ip by using the following command,

"/etc/network/interfaces"

From:

auto eth0

iface eth0 inet dhcp

To:

auto eth0

iface eth0 inet static

address 192.168.0.150

netmask 255.255.255.0

gateway 192.168.0.1

network 192.168.0.0

broadcast 192.168.0.255

dns-nameservers 8.8.8.8 8.8.4.4

4) Finally, restart your Ethernet by using,

$ service networking restart

$ ifdown eth1

$ ifup eth1


Unable to access Ubuntu network share from Windows, Ubuntu web interfaces are down and unable to access via PuTTY

Now I'm feeling pretty dumb. Just discovered that it's now picking up a different IP address.

This can be marked as closed/ resolved!


How do you install avconv on Ubuntu Server 13.04?

You can install avconv with package libav-tools

sudo apt-get install libav-tools


How do I read this "install Script"? SpotifyController

First, let's go the way that I think it was meant to be used:

Open a terminal (CTRL+ALT+T), and type this in:

cd PATH/TO/SPOTIFY # Edit PATH/TO/SPOTIFY to the path that spotify was extracted
bash ./install

It should work fine.

But if you want to read the script itself, here's a quick tutorial, or rather, a lot of bullets about it :P (based on the script you showed):

Lines starting with # are (usually) comments. Also, usually, when you see # in the middle of the line, the rest of the line will be considered a comment. What's a comment? It's stuff that doesn't get executed (very useful for indicating what is going on, in a human-friendly way, hence the name "comment").
Lines starting with echo print text. For example:

echo testing 1 2 3

will print:

testing 1 2 3

When you see a line like this:

echo "testing 1 2 3" > FILE

what will happen is that testing 1 2 3 will be written to FILE. Notice that if FILE does not exist, it will be created, and if FILE has contents in it, it will be overridden. That's why sometimes you see this instead:

echo "testing 1 2 3" >> FILE

Which will then append testing 1 2 3 to FILE (due to >> instead of >)
When you see sleep at the beginning of a line, it will make the computer pause for n seconds, with n being the number after sleep (e.g. sleep 1 will wait for one second)
read will get input from you (you will enter text, and then when you press ENTER, it will get sent to the program). How does the program read this? With the argument next to it. So read test will ask you to enter text, and once you're done, it will set the value of the variable test to the text you entered.
To access a variable, prepend $ to the name of the variable. BASH will automatically replace the variable with its contents. Check this example out:

 test="hello world"
 echo $test # Will show hello world
            # BASH will interpret this as:
            # echo "hello world"

To assign a value to a variable, write a command in this format: variable=value. Notice that there are no spaces between =, variable, and value.
chmod changes the access rights of a file. I won't go into detail about this (though there are some tutorials about this:  http://www.analysisandsolutions.com/code/chmod.htm, http://catcode.com/teachmod/, and http://www.perlfect.com/articles/chmod.shtml), but in the example you mentioned, it shows:

chmod +x SpotifyController

That will add execute permissions to SpotifyController, meaning that you can run it as an application
sudo allows you to run commands as root (think administrator, if you're used to windows). Notice that it (usually) needs your password to run (for security reasons), but don't be alarmed if it doesn't ask each time. Most of the time, after entering your password once, it will wait for 15 minutes before asking for your password again (but, of course, it will only ask if you run sudo after the 15 minutes)
mv moves a file from one place to another. If it stays in the same place, but you change the name of the new file, it acts as a renaming tool
cp copies a file from one place to another. The -f switch forces it to, and -r copies it recursively (needed if you're copying a directory)
PWD is a special variable that holds the current working directory (which can be set by cd)
If you're wondering about the \"'s, you can check out BASH escaping tutorials: http://tldp.org/LDP/abs/html/escapingsection.html, http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_03.html.

And, of course, if you want to learn more about BASH, check out these tutorials (but feel free to google around also, of course =):

http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
http://www.tldp.org/LDP/Bash-Beginners-Guide/html/
http://www.hypexr.org/bash_tutorial.php (less about scripting, and more about how to use the shell)
http://linuxconfig.org/bash-scripting-tutorial

Hope this helps!


Ubuntu fails to boot after kubuntu-desktop uninstalled

In the end I didn't manage to fix this problem and had to reinstall Ubuntu.


Failed to connect to socket /com/ubuntu/upstart: Connection refused in 16.04

To check if it's there:

sudo systemctl list-unit-files | grep -i dynatrace

To start:

sudo systemctl start dynatrace

To check status:

systemctl status dynatrace

To enable at boot:

sudo systemctl enable dynatarce


Mounting NTFS directory from within VMWare image

Your shared folder will not show up as a drive or partition of your primary hard disc but rather it will be available (and already mounted for you, if you've installed the guest additions -- you have installed those, right?) elsewhere. See this page for more information.


Xubuntu messed up (by me) -> best way to start fresh?

Copy only the data files like pictures, videos, music, text all them directories. To a safe backup then abandon the install for new drive install. This will leave out all those configurations that may have errors in them. Do not even have to copy to backup if you purchase external USB case or a dongle that connects to the SATA then via a USB connector to the computer. Then you can simply put old drive in case or connected to dongle and copy the files as needed.


How to install latest calibre (any package) on Ubuntu?

Calibre's website advises against uses the distribution's package for this reason (It's typically outdated/buggy). And I didn't see any repositories with updated calibre, so apt-get wasn't looking like the best option.

You can use wget, though, to download & install the binaries right from Calibre. Calibre's site instructs you to paste the following command into the terminal to install or update:

sudo -v &&
  wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py |
  sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"

Source: http://calibre-ebook.com/download_linux

I just did it, and it worked perfectly. And when Calibre tells you there's a new version, you should be able to paste that same thing into the terminal to update. Or you can write a script to do it automatically.

Is there a reason you wanted to stick with apt-get, other than being familiar with it?


Install Windows Subsystem for Linux in Windows 10

You install WSL Ubuntu from the Microsoft Store.
Try installing it anywhere you like on your Windows system.
"Any other version of Linux" is a Microsoft decision, not us.


Changing keyboard language problem in 12.10

Go to System Setting → Keyboard Layout → Options → Key(s) to change layout and tick Alt+Shift:


How do I debug a failed cron job involving netcat?

crontab commands (man -a crontab) are NOT bash. Redirection, and command substitution are not available in crontab commands.
Wrap your desired command in a bash script, beginning with #!/bin/bash, and invoke the script from the crontab entry.


Doubts on remote access on Ubuntu 12.10 via FreeNX

Here is a great post about it:

http://blog.terranux.net/2013/02/run-and-configure-freenx-on-ubuntu-12-10/


Ubuntu 16.04 LTS does not display .jpg files

As per the traits you have mentioned it seems that the jpeg files in question are wrongly suffixed (it should have been something else, not .jpg). Although in a GNU/Linux based OS file extensions don't matter per se, some applications like Image Viewer may fail to show the image properly because of the wrong suffix.
You may try one of the workarounds.
Use another application
Right click on one of the problematic jpeg files, select Open With Other Application and try other suggested applications to see which one works. As you have already mentioned ImageMagick and Shotwell are working fine, you may use one of them to open jpeg files by default.
To do that right click on a jpeg file and select Properties. Then go to the Open With tab, select say Shotwell from the list and click on the Set as default button.
Remove suffixes
A cumbersome workaround would be to just remove the .jpg suffix from those files.
To do that right click on a file and select Rename and remove the .jpg part (i.e. change imagename.jpg to imagename). Now the file should open fine with Image Viewer and File Manager should also show the thumbnail.
Warning: An image without an extension might fail to open in another OS (for example Windows).


Can not type \, | and ~ on Ubuntu inside Virtualbox

The OP found that the the problem is caused by a bug in Virtualbox:

The issue is related to the VirtualBox "Guest additions" software.

This post confirms there is a bug in version 4.3.14:
http://forums.virtualbox.org/viewtopic.php?f=6&t=62687

VirtualBox 4.3.14 is the latest version, which I am using.
As a work around I will downgrade to an earlier version.

The page also provides a test build of VirtualBox 4.3.15.

@user3817704 This answer is derived from the comments you made on the question. The comments can get lost, so I make it an answer. Feel free to answer yoursef or build your answer on this, I will remove my answer then.


dmesg | grep zswap

That should be all you need to know if it's running. You should see a message along the lines of:

[    1.241302] zswap: loading zswap
[    1.241306] zswap: using zbud pool
[    1.241310] zswap: using lzo compressor

You can see what it's doing with the following:

$ sudo grep -R . /sys/kernel/debug/zswap
/sys/kernel/debug/zswap/stored_pages:0
/sys/kernel/debug/zswap/pool_total_size:0
/sys/kernel/debug/zswap/duplicate_entry:0
/sys/kernel/debug/zswap/written_back_pages:0
/sys/kernel/debug/zswap/reject_compress_poor:0
/sys/kernel/debug/zswap/reject_kmemcache_fail:0
/sys/kernel/debug/zswap/reject_alloc_fail:0
/sys/kernel/debug/zswap/reject_reclaim_fail:0
/sys/kernel/debug/zswap/pool_limit_hit:0

The key parameters to look out for are stored_pages which is the number of compressed pages and written_back_pages which is the number of pages which have been written out to the swap file.


Why I cannot download software on Ubuntu?

You should probably update your repository first.

sudo apt-get update

and then try installing with the following code.

sudo apt-get install flashplugin-installer

Also if you have GUI, you can get flash from Software Center. It's much easier if you don't find the terminal comfortable.

Adobe Flash for Ubuntu


How to completely remove other versions of Java on 11.10?

You can try uninstalling it following the steps given here: https://askubuntu.com/a/185250/83046.

And then you can install it again using the steps given here: How do I install Java?.

I'm not providing the answers because they are long and are better off at their own pages.


Problem with audio device es8316 and Ubuntu 18.04

Ok I solved in this way:
I recompiled the audio driver as described here (Google translate is ok to understand the steps), but before I modified the driver following this comment.

Then I used the script found in this answer in step 2 to install pulseaudio configuration for this chipset and then reboot.

At this point you should reload kernel driver whith the following code:

sudo rmmod -f snd_soc_sst_byt_cht_es8316
sudo rmmod -f snd_intel_sst_acpi
sudo rmmod -f snd_soc_es8316

sudo insmod snd-intel-sst-acpi.ko
sudo insmod snd-soc-sst-byt-cht-es8316.ko
sudo insmod snd-soc-es8316.ko
pulseaudio -k

Then I had working audio on my tablet.


c++ Programme compiled successfully but unable to run

You need to use g++ not gpp e.g.

g++ -o abc iget.cpp

gpp is a pre-processor - not a compiler. It doesn't actually compile your code, and when you try to run ./abc the shell is likely trying to interpret the pre-processed source code as a sequence of shell commands (which are 'not found').


Unfortunately at moment you can only buy 12.04 LTS from Canonical store.

If you decide to buy aforementioned cd, this is the link to follow. price in EU is  £5.04

Back in time there was service shipping free cd called ShipIt but has closed.


error: no such partition Entering rescue mode... grub rescue> ubuntu partition accidentally deleted

Test this:

Turn on your computer.

Insert the Windows installation  DVD.

Restart your computer.

Press any key when prompted to do so and follow any instructions that appear.

When the Install Windows page appears, click Repair your computer to access system recovery options.

Follow the instructions.

Source: http://windows.microsoft.com/en-us/


Gnome-terminal tabs: no contrast between active and inactive tabs

I'm running Ubuntu 13.10 with the Ambience theme - had the same problem.

Solution: edit ~/.config/gtk-3.0/gtk.css (you might have to create it) and add:

TerminalWindow,
TerminalWindow.background {
        background-color: #6e6e6e;
        color: #000000;
}

TerminalWindow .notebook tab {
        padding: 2;
        background-color: #6e6e6e;
}

TerminalWindow .notebook tab:active {
        background-color: #d1d1d1;
}


14.04 upgrades your Apache to 2.4
From this version the config files need to have the .conf extensions, in your case:

test.dev.conf
mysite.dev.conf
anothersite.dev.conf

Just rename your files.
You may also need to include some new permissions for the directory

Here's a pretty good guide:
https://library.linode.com/web-servers/apache/2.2-2.4-upgrade


htop showing duplicate applications with very odd bizarre results upwards of 20,30,40 or more, see screen grab

What you're seeing is perfectly normal.  If you'd like to have an easier view on the eyes (that still shows correct information) you can perform the following steps in HTOP:

Press F2 to enter the Setup menu.
With "Setup" selected on the left, press the down arrow until you have "Display Options" hilighted.
Press the right arrow (->) to move the cursor to the next column and press the "space" key to select "Tree View".
Press the down arrow and select "Hide kernel threads" by pressing the "space" key.
Press the down arrow again and select "Hide userland threads" with the "space" key.
Press F10 to save your changes.

What you are seeing by default is a representation of all of the kernel and userland threads being reported.  By following the above steps, you'll not show these threads and have a cleaner view of the running processes on your system.

If you'd like, here is what I have in my ~/.config/htop/htoprc file:

# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=1
hide_threads=0
hide_kernel_threads=1
hide_userland_threads=1
shadow_other_users=1
show_thread_names=1
highlight_base_name=1
highlight_megabytes=1
highlight_threads=1
tree_view=1
header_margin=1
detailed_cpu_time=1
cpu_count_from_zero=0
update_process_names=1
color_scheme=0
delay=15
left_meters=LeftCPUs Memory Swap
left_meter_modes=1 1 1
right_meters=RightCPUs Tasks LoadAverage Uptime
right_meter_modes=1 2 2 2


How to get the mic on the Creative X-Mod soundcard working correctly?

To do this automatically, amixer should do the job. It's the command-line-tool for Alsa-Mixer.


If you right click on the partition in question and choose "information", the window that appears should explain the reason behind the warning symbol, which I imagine will tell you why you cannot resize it.

Edit:

Looks like your Windows file system is a little inconsistent. Boot back into Windows, and check the drive for errors (find the drive in (My) Computer, right-click, check for errors is usually in the tools tab or similar.) If it is your system partition you may have to schedule the disk check to be done at the next reboot.

Alternatively if you press F8 on Windows start-up to get into the boot/recovery options, you can go into the repair/recovery mode and check the disk from there - you may need to do it manually from the command line with chkdsk (sorry I can't be more helpful here - I haven't encountered Windows 8 yet!)

Once Windows has cleaned up the filesystem, hopefully gparted will be prepared to resize it for you :)


Ubuntu opens with guest log in i cannot switch to user log on

Firstly try:  Ctrl-Alt-F5 to open a new terminal session, it will require that you login.

Try to run your commands there.

Failing this, You'll need to boot into single-user mode and complete the terminal commands there:

https://askubuntu.com/questions/132965/how-do-i-boot-into-single-user-mode-from-grub

Bear in mind that this will log you in as the root user, which is normally disabled, and the root user is extremely powerful.

Once your changes have been made, run the command "reboot" and all will start up normally.

I hope this helps!

Kind Regards


In your previous post you say "I edited gdm.conf not to start.".

I think it can depend on how you modified that file, it is possible that you happen to go to the tty7 where gdm would start the X server, but without the X server started, so you have to change console to go to, say, tty1.

If you do not use it, it should be better to remove the gdm package.


Dear using cup you can easily print pages with images

First install cups-pdf using

sudo apt-get install cups-pdf
Print the PDF from "Evince" using the new PDF printer that is added by cups-pdf

first. The output goes to ~/PDF (can be configured in /etc/cups/cups-pdf.conf).
Opened the pdf file generated by cups-pdf printer to Evince and printed it again to

real printer.

Note

if you are facing problem with blank images still then reinstall purge

using these commands .

-sudo apt-get purge cups-pdf

-sudo apt-get install cups-pdf

-sudo /etc/init.d/cups restart

hope it helps..


Samsung smart TV cant connect through HDMI

I believe this is because you probably need to upgrade some of your drivers for your graphical card. Which garphic card do you use? NVIDIA, ATI, or INTEL? (Or a mix of many?)

Another possible source of the problem is the that the cable is somehow damaged, but I believe you have that covered :P


Intel Dual BandWireless-AC 3168 driver PPA doesn't exist

Maybe try manually adding the repo instead?

sudo echo "deb http://ppa.launchpad.net/canonical-kernel-team/ppa/ubuntu xenial main" >> /etc/apt/sources.list
sudo echo "deb-src http://ppa.launchpad.net/canonical-kernel-team/ppa/ubuntu xenial main" >> /etc/apt/sources.list
sudo apt-get update

NB. Be wary, as this is a PPA containing pre-release; unstable and testing kernels.  These could potentially disable or break your system.


Ignore timestamp when installing a package with dpkg?

The best option would be to install the ntp package to get time sync working correctly, but barring that, you could trick the other system's "dpkg" into thinking it is living in the future by installing the faketime package, and running it with "-f +10s":

$ date +%H:%M:%S; faketime -f +10s date +%H:%M:%S
22:38:52
22:39:02


You have to reset the password using single user mode.

Check the below link for help

http://www.howtogeek.com/howto/linux/reset-your-forgotten-ubuntu-password-in-2-minutes-or-less/

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


TL;DR In most cases the Any key is the space bar.

Check your skills

sudo apt-get install xautomation
sudo apt-get install xbindkeys
printf "%s\n\t%s\n" "\"notify-send 'Any key'\"" "space" > ./foo
xbindkeys -f ./foo

check your skills and after that killall xbindkeys, maybe with copy'n'paste ;)

BTW, I have the Any key. Works great.

Source


printing to HP) LaserJet M1319f not working with 16.04

Install hplip-gui package with sudo apt-get install hplip-gui and add your MFP from here.

According to HP page it is fully supported.


What do i need to have or do to install ubuntu on a windows 8 PC?

Sometimes installing ubuntu alongside windows 8 can be really painful, (For me the part to get dual boot working was hard) but there are some pretty good step by step tutorials, for example you can find one here:
http://www.everydaylinuxuser.com/2013/09/install-ubuntu-linux-alongside-windows.html

(If you do not have a DELL hardware you can use other backup tools, like Acronis)


How can I dynamically determine the IP mask to use for dynamic ranges?

You are using CDIR notation here.  You may want to read more about CDIR notation and subnet masks.

In your example, you could break out the two networks into:

210.80.32.0/24
210.80.33.0/24

This translates to:

255.255.255.0

or:

210.80.32.0-254
210.80.33.0-254

You should now be able to perform:

sudo ufw deny 210.80.32.0/24 && sudo ufw deny 210.80.33.0/24

Other examples

You could block 210.80.0.0/16, which would block 210.80.0-254.0.254, but this will block IPs in ranges not specified in the original post.


Samba+PowerBroker (aka LikeWise-Open) integration not working

Found it here:
http://wiki.samba.org/index.php/Samba_&_Active_Directory

The Ubuntu instructions:
https://help.ubuntu.com/12.04/serverguide/samba-ad-integration.html

was missing this final step:

net -U <username> ads join

Once you successfully join the Domain/ADS, it works fine!


Wifi gone after installing backport of ath10k

Backports installs the networking drivers from a newer kernel, 3.16, for example, into an earlier kernel, in your case 3.13. Since you can select which drivers to install and not install all the wireless drivers that you don't need, 'defconfig ath10k', if you have two devices, you run the risk of installing conflicting cfg80211 and mac80211 pieces, as you have found!

You might try also installing the driver for your existing device from the same backports package and see if it helps.

Also, Network Manager will generally allow one connection or the other, not both.


Ubuntu 12.04.3 will automatically update to 12.04.4 and to kernel 3.11?

The point release is just that, a paint release. Ubuntu 12.04.3 is Ubuntu 12.04 with all security updates up to August 2013 and 12.04.4 will have all security updates up to January 2014.

For the kernel and video drivers you will need to upgrade them manually, you can actually already do this.

sudo apt-get install --install-recommends linux-generic-lts-saucy xserver-xorg-lts-saucy libgl1-mesa-glx-lts-saucy

If you only wish to upgrade the kernel:

sudo apt-get install linux-generic-lts-saucy

https://wiki.ubuntu.com/Kernel/LTSEnablementStack


I had the same problem with conky in fluxbox. I solved the problem by changing

own_window_type override to own_window_type normal (line 17 in your .conkyrc)

Check out more conky configuration settings here:

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

The above answer would apply in most cases, however in this particular case it doesn't work well. The Ubuntu Tweak "Show desktop" option minimizes all open windows. Your .conkyrc line 16 states own_window yes. This means that conky has it's own window. By stating own_window_type normal the window is being told to act "normally" (can't move it around though). Thus the conky-window will as well as any other window minimize when the "Show desktop" option is used. The line own_window no is not an option because this causes placement problems.

The solution would seem to be to make the window stick to the desktop which would be achieved by changing the line own_window_type normal to own_window_type desktop.
However, although this causes the conky window to stay on the desktop when "Show desktop" is used, when the desktop is being clicked left or right for some reason the conky window dissappears again.

What so far seems to keep conky in its place is changing own_window_type normal to own_window_type dock. The drawback of this method is having to place conky on the right spot on your desktop again using gap x and gap y. Gap x is now counted from the left side of the desktop edge instead of the right side. Gap y is still counted from above.
So suppose your screen resolution is 1440x900 and gap x used to be 10 and conky maximum with is 250, the new gap x would be 1440-250-10=1180

In addition, to entirely lose any visible dock borders change the line own_window_transparent yes  with the lines: own_window_argb_visual yes and own_window_argb_value 0. So in your .conkyrc line 18 will have to be replaced by two lines, 18 and 19 with the new code. When own_window_argb_value is set to 255 the conky window will have no transparency and be black.

This solution has been tested and appears to work. The solution is based on the config_settings in the link above.


security patch list for Ubuntu 14.04.3 LTS

You won't get a list of "patches" directly, but security updates are accompanied by Ubuntu Security Notices. Each notice includes the packages affected, a description of the vulnerability, the versions with the fix and any additional steps needed. You can then obtain the diff from the Launchpad page of the package, which is linked to in the USN.

For example, from USN-3401-1:

The version number (2015.20160320-1ubuntu0.1) is a link to the Launchpad page of that version of the package, where you'll see:

which is a link to the diff.


How to make Ubuntu use the entire partition?

I personally support using wubi (as an alternate to virtualization) to determine if you like Ubuntu and if it works on your hardware. Personally my advice is that if you like ubuntu I would advise you do a "standard" installation, you are half way there, you have already partitioned your hard drive.

At any rate, your problem is with the default size of the wubi virtual disk. Wubi loop mounts a file and you have to increase the file size.

See the most excellent post by bcbc on the Ubuntu forms for a walk through. Only you can decide if it is easier to maintain / resize your wubi install or start fresh.


Ubuntu 18.04 Can't upgrade because of libpython3.6 version conflicts

Looks like I got here by having installed python3.6 through the deadsnakes ppa in Ubuntu 16.  Then, after letting Ubuntu upgrade to 18 itself, it was in a conflicted state of depending on that libpython library presumably from the deadsnakes ppa but yet having a newer version of python that no longer knows about that dependency.

First, I had to remove the ppa the hard way by

sudo rm -f /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa*

and then remove the conflicted library with

sudo apt remove libpython3.6-*

to remove both libpython3.6-minimal and libpython3.6-stdlib, which somehow didn't totally implode my system.

Doing a

sudo apt update && sudo apt upgrade

installed python3.6 with some major caveats.

I had to [reinstall ubuntu-desktop](next time I logged in).  So probably better for you to run

sudo apt install ubuntu-desktop

before shutting down your computer!!!!!!!!!!!!!


Issue using Node.js / Express, Says it's not installed

The new version of Express (4.0) does not itself have a bin folder. You have to install express-generator to get the setup functionality.

You are not doing anything wrong. Express has just changed the way it works. Have a look at this answer.


How do I modify the empathy notifications to only show generic messages?

What you want is not to suppress the notification but to show a custom message instead.
Unfortunately, to my knowledge, the is nothing that mimic that specific behavior. Using gnome there are extensions like the following that modify the look/display of the notification, find this one here.

If this is not to your like pick one and take a look at the source code, you could probably work something out.


Network manager disappeared on Ubuntu 14.04

have you tried to uninstall with sudo apt-get purge network-manager
and install it again with sudo apt-get install network-manager-gnome network-manager. You may also try apt-get update && apt-get upgrade


Do you have your speakers on when this happens? If so, it's called feedback. Try to lower the volume or turn off the speakers.


what should i do to fix this ? /usr/bin/ld: cannot find -l

You need several development packages to build your program.

Open a terminal and install the following packages (as they are not installed by default):

sudo apt-get install libxmu-dev libxmu-headers freeglut3-dev libxext-dev libxi-dev

Then restart your make process.


Laptop built-in speakers not working on an HP 625

You can try following steps:

First,open up a terminal window (Applications->Accessories->Terminal) and run this command:

sudo head -1 /proc/asound/card0/codec#0

it outputs your audio card type.
Edit the configuration file by this command:

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

find out this section:

> # Keep snd-pcsp from being loaded as first soundcard
> options snd-pcsp index=-2

change it into:

> # Keep snd-pcsp from being loaded as first soundcard
> #options snd-pcsp index=-2
> options snd-hda-intel model=laptop-eapd

Reboot,and the speaker should be working now


Issue with Ubuntu installed on Mac, El Capitan

It is just the installer that gives your computer that name, no worry.
You can change it in settings->Details and name of device.


Pactester is a tool to test proxy auto-configuration (PAC) files. So you need to create a wpad.dat file to configure the sites you want to have direct connection with and the sites you want to access using the proxy server. For example, the following wpad.dat file will bypass proxy for all hosts that are in the same subnet or in 10.0.0.0 but will access all other sites using the proxy server:

function FindProxyForURL(url, host)
{
  if (isInNet(myIpAddress(),"192.168.2.0","255.255.255.0")) return "DIRECT";
  if (isPlainHostName(host) ||
      isInNet(host, "10.0.0.0", "255.0.0.0")
    return "DIRECT";
  else
    return "PROXY proxy_host:port_no";
};

As you can see the wpad.dat file is a javascript file.

So, the problem is you don't have a wpad.dat file which will tell pactester what rules to follow for various hosts. You need to create that first.

(Source)


Why is unity-files-daemon accessing my files once per day?

I think it's used for Ubuntu's file scope. It is used to index your files so that you can quickly search for them in the Dash and also show relevant information like sizes, thumbnails, recently used files.. etc.

Don't worry: It's not scanning your files for personal information whatsoever, and the collected information will not be send over the internet. It's only used for local purposes, to make your live a little bit easier.

If you are still concerned about your privacy, you can select what Ubuntu is logging by going to System Settings > Privacy. In there, click on the tab called Files to select what Ubuntu should avoid.


How to change boot order in Mac OS and Ubuntu-Mate 16.04 dual boot from Ubuntu first to OS X first?

To get the option to select which OS boots, when you power the Macbook on, wait for the startup sound and then click on the Option button on your keyboard. (Click this continuously until you see the boot options.)

Select the Mac OS and once this boots up, Click the Apple logo at the top left corner of your screen and the select (System) Preferences... On the Window that opens up, select, Startup Disk. On the next window that opens, select the Mac disk option available and restart. This will load your Mac OS automatically at startup.


How to make qt applications to choose Regular style font by-Default?

This is:

Bug #744812 ("FontConfig/Qt stack choke on Ubuntu Medium font meta-data (No medium in Inkscape and too bold in Qt apps)")


Wine programs can't open files from another hard drive

Create a link to the second hard drive

Open a terminal by pressing Ctrl+Alt+T
Run ln -s /path/to/second/hard/drive ~/second-hard-drive (replace /path/to/second/hard/drive with the actual path to the second hard drive)

This will create a link called second-hard-drive to your second hard drive inside your home directory. You can use that as if it's a regular directory containing everything in your second hard drive.


Windows 7 not visible in GRUB menu after installing Ubuntu

Open a terminal using Ctrl-Alt-T and run this command:

sudo update-grub | tee ~/update-grub.txt

You will need to type in your password. After that runs, try restarting. If it still doesn't work, give us the contents of the file called update-grub.txt located in your home directory.

If it doesn't work please read this post on Ubuntu forum: http://ubuntuforums.org/showthread.php?t=1602835

or follow these steps:

  try running this in a terminal to see if you have os-prober:

sudo os-prober

  If you get a message saying that it isn't installed:

sudo apt-get install os-prober

  If it runs, make sure the 30_os-prober file is executable. This is the
  file that actually looks for Windows when you run "update-grub".

sudo chmod +x /etc/grub.d/30_os-prober

  Then try updating Grub again. If it finds Windows, you will see a
  message in the terminal as the command runs. Or after you can see the
  menu entries without booting by running this:

grep menuentry /boot/grub/grub.cfg

Hope it help


How to get tty to recognise shift-F2 (and other key combinations)?

First, you should not set TERM=xterm-256color in the Linux console, most apps will fail to work properly. Stick with TERM=linux.

Second, let's clarify that altering the value of TERM does not change the escape sequences generated by the keypress. The graphical emulator, or the Linux kernel in case you're using the console, cannot see if you alter the environment variable in the process running "inside" the terminal emulator; in fact, there might be multiple processes running in that terminal (their standard input connected there) with different TERM variables. Changing TERM might change though how an application reacts on those keypresses.

  Is there any way to have the tty virtual terminals recognise all the same shortcuts and key combinations that the X terminal does?

Terminal emulators don't recognize these sequences you're talking about. They emit them, and the terminal-based applications (text editors, file managers etc.) recognize them.

Run infocmp (or infocmp [terminal-name] such as e.g. infocmp linux) to list the capabilities/features of a terminal, including the sequences generated by function keys. Look for kf2 for F2, and kf14 for Shift+F2. Generally Shift should result in an offset of 12.

As far as I recall from a couple of years ago, some of the keymaps on the Linux console have an offset of 10 instead, and this discrepancy potentially causes all sorts of misbehavior in various apps.

You didn't mention how (e.g. in what app) you're trying to catch these keypresses. If you're configuring an existing piece of software which requires concrete sequences, you'll probably have to teach it (at least) two different values, one for xterm and friends, and one for linux.

If you are developing your own app and don't want to have escape sequences hardcoded or specified in a config file, you should probably rely on libtinfo to read the terminfo capabilities, or use a higher level screen drawing and keyboard handling library such as ncurses or slang.


"This device is not working" message in "Additional Drivers" in Asus zenbook Ubuntu 18.04

A launchpad bug was submitted to for this issue with software-properties-gtk (Software & Updates GUI).
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1859308

If you login to Launchpad.net, and claim the bug affects you, you can raise the bug heat. The higher the bug heat, the more attention the bug receives.
https://blog.launchpad.net/bug-tracking/bug-heat

I have this issue on two separate computers, Dell Precession 7520 running clean 19.10 and OnLogic Karbon 300 running 18.04. Both computers WiFi and Bluetooth are working perfectly fine.


list all suggested packages for currently installed packages

Using only aptitude, you can use the search pattern:

aptitude search '?reverse-suggests(~i)!(~i)'

and similarly, for recommends:

aptitude search '?reverse-recommends(~i)!(~i)'

All aptitude search options are available in the user's manual.


It seems to me that the keyboard alyout chosen at installation doesn't always map to the user's keyboard settings. I use the following steps to change from US to GB layout:

Right-click the 'US' icon in the taskbar, and select ‘”Keyboard Layout Handler” Settings’.
The ‘Keyboard Layout Handler’ window will be displayed, the left hand side of the window will be greyed out. Deselect ‘Keep system layouts’ by clearing the adjacent check box. This will enable input on the left hand side of the window.
In the ‘Keyboard Layouts’ section, click the ‘+ Add’ button, and select the correct option from the ‘Add Keyboard Layout’ screen. Click ‘OK’. The entry should now appear in the ‘Keyboard Layouts’ section.
Highlight the ‘US’ entry in the ‘Keyboard Layouts’ section by clicking it once, and click the ‘- Remove’ button. The selected option should be the only remaining entry in the list, and the icon in the bottom panel will now display the initials for this layout setting. Click the ‘Close’ button.

I hope they work for the Cyrillic layout.


Strange suspension issues on macbook pro Ubuntu 18.04 LTS

Power off / on all during suspend / resume

It's very difficult to isolate what is going on. One good chance of making everything work is with this script:

#!/bin/bash

# Original script was using /bin/sh but shellcheck reporting warnings.

# NAME: custom-xhci_hcd
# PATH: /lib/systemd/system-sleep
# CALL: Called from SystemD automatically
# DESC: Suspend broken for USB3.0 as of Oct 25/2018 various kernels all at once

# DATE: Oct 28 2018.

# NOTE: From comment #61 at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/522998

TMPLIST=/tmp/xhci-dev-list

# Original script was: case "${1}" in hibernate|suspend)

case $1/$2 in
  pre/*)
    echo "$0: Going to $2..."
    echo -n '' > $TMPLIST
          for i in `ls /sys/bus/pci/drivers/xhci_hcd/ | egrep '[0-9a-z]+\:[0-9a-z]+\:.*$'`; do
              # Unbind xhci_hcd for first device XXXX:XX:XX.X:
               echo -n "$i" | tee /sys/bus/pci/drivers/xhci_hcd/unbind
           echo "$i" >> $TMPLIST
          done
        ;;
  post/*)
    echo "$0: Waking up from $2..."
    for i in `cat $TMPLIST`; do
              # Bind xhci_hcd for first device XXXX:XX:XX.X:
              echo -n "$i" | tee /sys/bus/pci/drivers/xhci_hcd/bind
    done
    rm $TMPLIST
        ;;
esac

Housekeeping

Create the script with root powers:

sudo -H gedit /lib/systemd/system-sleep/custom-xhci_hcd

Insert text above and save file. Mark script as executable:

sudo chmod a+x /lib/systemd/system-sleep/custom-xhci_hcd

Reboot and test

If the script doesn't help remove it with:

sudo rm -f /lib/systemd/system-sleep/custom-xhci_hcd


Is it possible to dual boot two instances of Ubuntu 16.04?

Absolutely! When you get to the section on setting up your disks during installation, choose the option to install alongside the existing Ubuntu installation. If you're interested in setting up with more detailed partitioning, comment on this question and I'll edit this post.


How to change the position of the volume up/down/mute notification popup?

NotifyOSD Config is your solution :) You can read up more here:

http://www.omgubuntu.co.uk/2010/06/customize-the-ubuntu-notification-bubbles/


From where to get ubuntu iso with latest upgrades?

An alternate to an updated ISO is to cache the debs your side.

You can use apt-mirror or apt-cacher to help speed things up,

apt-mirror

apt-mirror will mirror an entire repository to your hard drive. You can then setup other computers to pull updates from this machine.

This is the most complete solution as all packages can be downloaded ready, but can involve a large download and a lot of disk space 150GB+ if you download, main, updates, restricted, universe and multiverse packages.

apt-cacher

This is the product I use, it will cache only packages a machine has requested, I have it in SQUID proxy so when one machine downloads the deb any other machine trying to download that deb gets it from the squid cache.

Where to get them

They are both in the standard repositories and can be installed with:

sudo apt-get install apt-cacher
sudo apt-get install apt-mirror

Just googling found this article that will get you going on getting it completed.


Ubuntu doesn't show you the password for security reasons. So just type it in as normal and hit enter.


Installing Lxqt on top of Kubuntu 18.04 I have no wifi indicator in panel

The simple way is to install the package nm-tray and add it to the startup list of programs.

sudo apt install nm-tray

After a while the available wifi networks may become hidden with only the "active" and the "known" being displayed.

You can display them all again

by clicking on your network listed under "Wi-Fi connection(s)" or under "Known connection(s)" thus resetting the connection (disconnecting & re-connecting to the same network) and displaying the list.
by clicking on your network listed under "Active connection(s)" thus going offline and displaying the list

Another solution is wicd. It is very reliable but a bit different from the normal panel tools. It takes some time to list the available networks as it scans for them, also it takes some time to connect after suspend. Another problem is that is seems to inhibit networkmanager from running: logging out of Lxqt into Plasma while Wicd is not yet started there, you will have no network connection until Wicd is started.

After using Wicd for a while now I prefer nm-tray.


Try to disable the Fast Boot (if exist) and Secured Boot (if exist) in BIOS to have more time to get to grub2 menu.

In grub2 menu select Advanced options, select Recovery Mode. Activate network and select root. press enter. welcome to root terminal in recovery with online access.

Regarding the drivers,I had same issues on Ubuntu 18.04 and Mint 19.1 with Lenovo Y530 and nvidia 1050 GTX graphic card. I hope this will help you. I must say I haven't managed to fix the HDMI Port issue yet but at least you could use your laptop again.

clean all nvidia stuff(don't forget the star):
sudo apt-get purge nvidia*

add this ppa repo :

sudo add-apt-repository ppa:graphics-drivers
sudo apt update
ubuntu-drivers devices

this will print a list of your available drivers from apt. one of the has a recommended tag at the end.
mine is nvidia-driver-418.
now run
sudo apt install nvidia-driver-418 nvidia-prime of course with the recommended version to you.

now to make sure it works:

prime-select query // probably the output will be 'nvidia'
sudo prime select intel
prime-select query // should print 'intel'
reboot

Hope this helps


After the installation completed you may have not seen this message:

This tells you to remove the CD or USB from where you had installed Ubuntu. Otherwise, and in case you still have set your BIOS to boot from CD/USB, you will boot from the installation CD/USB and not from your hard drive.


Control volume of Pulse Audio from command

I got answer

I used pactl set-sink-volume 0 20%  and it is working great for pulseaudio volume control

pactl set-sink-volume <sink index> <voulme %>


Can I install Ubuntu and then recover files?

Shrinking a windows partition is trivial using Disk Management. You can then create a new partition to store the files you want to keep. A backup of your data is highly recommended before messing around with partitions unless you don't mind losing your data.

After Ubuntu is installed and the data is copied off partition B you can used gparted to delete the second partition and expand partition A to fill the entire disk.


Dropbox headless crashes "could not connect to display :1"

dropbox start

is not the correct command to start dropbox and since it wants a display it probably is the one to use on a desktop system. The command used in the link is

~/.dropbox-dist/dropboxd

That starts the daemon (the last "d" in dropboxd).


Use this simple bash solution:

for ((i=$x;i<=$y;i++))

Before using the following functions, read below !

For a sequence of numbers, you might use seq:

for i in $(seq $x $y)

If you really need brace expansion, you can use eval:

for i in $(eval echo {$x..$y})

Disclaimer:
eval is evil. This case is a perfect example: If the user writes $(do_something_evil) instead of a number, do_something_evil will be executed. So before using eval, make sure your input is not evil. The same applies to seq $x $y.

If you still want to use one of these functions, test the user input, which is generally a good idea: How do I test if a variable is a number in Bash?


I think you are asking for CTRL+s which shows this dialog

If you want to search in nautilus you have to use CTRL+f which shows this dialog:


What shell does os.system use in Python?

By default it will run in the Bourne shell (that would be /bin/sh).

os.system("/bin/bash \"echo 'Rincewind rules' \" ") to use bash and have it echo "Rincewind rules".


Different IP - Ubuntu Server on Win10 (Oracle VM)

I assume you are talking about Oracle VirtualBox ?

You are likely running the VM in NAT networking mode. NAT, short for Network Address Translation will mean that any traffic going out to the network from the VM will appear as if it is coming from your host device. In your case, it would appear as if it is coming from 91.51.XXX.XXX. Outside hosts will only be able to talk back to your host (e.g., respond to web requests) if the conversation originated (was established and tagged with NAT headers) in your VM.

You can read more about VirtualBox and NAT here

I won't delve too deep into the technicalities, but a quick fix for you should be to simply change the network adapter for your VM to run in Bridged mode.

To do this:

Open Oracle VM VirtualBox Manager.
right-click your VM and click Settings
Click on the Network menu item on the left.
Assuming you have only 1 adapter, change the Attached To setting to Bridged Adapter
(Optional) By default, your hosts machine's ethernet adapter will be selected as the bridged adapter. You can change this to any other device, e.g. wireless, by choosing your preferred bridge interface in the dropdown menu next to Name

Then, you can go into your Ubuntu Server (the guest VM) and do the following:

sudo ifdown eth0 && sleep 1 && sudo ifup eth0

This should refresh your IP to be assigned by a DHCP server on your main network and you should be able to reach the server from outside.

Alternatively, you can configure port forwarding.


How do I disable the notification "X has left the conversation"

I tried searching Google, but the only thing I was able to find was a couple of other people asking this question with no answer.

I also tried searching the empathy docs, but was unable to find anything.

My hunch is that empathy does not have this feature.


"libsyslog-ng-3.4.8.so: cannot open shared object file" while starting syslog

According to ldconfig manual:

   ldconfig creates the necessary links  and  cache  to  the  most  recent
   shared  libraries  found  in  the  directories specified on the command
   line, in the file /etc/ld.so.conf, and in the trusted directories (/lib
   and  /usr/lib).  The cache is used by the run-time linker, ld.so or ld-
   linux.so.

So, when you add a new library on Ubuntu, you should run:

   sudo ldconfig -v

where -v is verbose mode


Which is the best torrent client for Ubuntu 14.10?

Ubuntu comes with Transmission.
You can also use deluge which a lot of people like.
To get Deluge just use:

sudo apt-get install deluge

http://dev.deluge-torrent.org/wiki/Installing/Linux/Ubuntu

I also recommend using a VPN to keep your IP safe/hidden. Very big deal these days.

Private Internet Access is my favorite, it costs a few bucks a month but it is secure and they don't keep logs which is kinda a big deal too.

https://www.privateinternetaccess.com/pages/buy-vpn/


How to configure partitions across two physical drives?

Although it should be possible to create one partition that spans more than one physical drive, it's not a recommended path.

You are better off creating more than one partition, that just happen to live on different drives.

You want to use it as a server. Will you be using the home directories? Or will you keep most of your data in /var/www-data ?

Common paths to separate on different partitions are:

/boot -> this is often a separate partition, so you can use a different filesystem (grub doesn't support all filesystems)

/var  -> this is assumed to contain data that changes a lot

/home -> this if often separated so you can easily reinstall without loosing user's files

/tmp  -> this is assumed to have temporary data

Also, keep in mind you will need a separate swap partition no matter what you do.
I would put the swap-partition, and the /var partition on the fastest physical drive.

EDIT: Let's assume your fastest drive is the 40 gb one. In that case you may want to put /var/www-data on your larger drive, and just keep the root '/' and the swap on the fastest physical drive. This would mean you have three partitions: swap, / and /var/www-data. No need to separate the rest.


How to create a group which is allowed to use the adduser command?

Allowing users to use adduser is no good since you'll also be able to assign random groups to this user. In Ubuntu, the group admin allows users to run commands as root. So, I suggest you adding the user to the admin group anyway since the other way requires just one step more to become root.

These insecure steps would allow you to become root:

you@host:~$ sudo adduser --ingroup admin user1
..
you@host:~$ su - user1
..
user1@host:~$ id -Gn
admin
user1@host:~$ sudo id
uid=0(root) gid=0(root) groups=0(root)

Oops! You've just granted root access to an account where you wanted to limit the user on creating accounts only! Of course you can limit the command arguments, but user management should be considered an administrative task which should only be performable by root. Therefore, just add an user to the admin group if you want to allow the user to use sudo for executing commands as root:

sudo usermod -a -G admin name-of-existing-user


First you should disable fast startup option in Windows 8.1 , which is a feature that speed up windows booting .

As the Picture :

Uncheck Turn on fast startup and try again .

Source : Link


How much RAM does your computer have? Ubuntu desktop is a very demanding OS, and if you think your device can't take it, you should try a more lightweight flavour of Ubuntu, such as MATE, Xubuntu, Lubuntu or Kubuntu. All of these operating systems are based on Ubuntu, and have all the same packages and features as Ubuntu, so you will not be missing anything.


Can't install mysql-client-core* on ubuntu 14.04?

I suggest running sudo apt-get clean && sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get update to clear old packages lingering on your system, and then updating the sources. Then install the program.


Chromium quit working on upgrade to Ubuntu 20.10

I have the same issue and error message (similar issue with Spotify on Snap) - It appears to be a general bug running Snap on Ubuntu 20.10 with Wayland - see Link 1 and Link 2
As of now the only workaround seems to be that you avoid Wayland (which also has it's disadvantages). On the GDM Login Screen you can click on the gear icon and select "Ubuntu" rather than "Ubuntu on Wayland".
I hope that helps until this issue is fixed.
Best regards,
Daniel


Read man apt-get.

sudo apt-get --download-only --reinstall install assaultcube assaultcube-data

will leave the .debs in /var/cache/apt/archives


powerwake is attempting to wake up an incorrect MAC addres

I went digging through /usr/bin/powerwake (just a python script) and I found a reference to "%s/.cache/ethers", so I looked in my home directory ,and sure enough, this file was present (cat ~/.cache/ethers) that wasn't part of man powerwake.
This file held the incorrect reference for the IP address -> MAC address mapping that was causing the issue.
Solution
Anyway, I deleted the file ~/.cache/ethers, then "warmed" this cache file again.
Warm the powerwake cache
First I checked my arp table, as I had since cleared it, to see what was in there. None of the remotes I wanted to contact were listed, so I performed a simple ping -c 2 192.168.1.XXX on each machine I wished to wake (the remote machines need to be on and able to be pinged). This loaded them into the arp table (confirmed by arp -n).
I then ran:

powerwake 192.168.1.XXX for each machine
powerwake hostXX for each machine again
This allowed the ~/.cache/ethers file to be loaded with each entry that matches my /etc/hosts file on my laptop
Run cat ~/.cache/ethers to confirm the file exists and has been populated with the correct IP Addr -> MAC mapping


how to install tgcil EST assembler on ubuntu

Extract the archive

tar xf TGICL-2.1.tar.gz
cd TGICL-2.1

Build

./Build.PL
./Build

Test

./Build test

Sample output

t/00-load.t .. Use of :locked is deprecated at /home/aboettger/Downloads/TGICL-2.1/blib/lib/TGI/DBDrv.pm line 36.
t/00-load.t .. 1/6 # Testing TGI::Util 0.01, Perl 5.020002, /usr/bin/perl
t/00-load.t .. ok
All tests successful.
Files=1, Tests=6,  1 wallclock secs ( 0.02 usr  0.01 sys +  0.04 cusr  0.00 csys =  0.07 CPU)
Result: PASS

Install

sudo ./Build install


How to disable USB storage device support

First :

You can disable it from Bios setting and make bios password protected .

Second:

You can get rid of all USB devices by disabling kernel support for USB via GRUB.

kernel /vmlinuz-2.6.18-128.1.1.el5 ro root=LABEL=/ console=tty0 console=ttyS1,19200n8 nousb


Using tar, the entire folder structure is including, I don't want that

The single-character options must be followed immediately by their parameters, then any other parameters. Otherwise, use normal style options or combine the -C the same way:

tar cvCf dir asdf.tgz asdf
tar -c -v -f dir/asdf.tgz -C dir asdf

Since programs read - as meaning an option character, you need to defeat this to access a file starting with -. Two ways to do this:

rm -- -C
rm ./-C


Only one Workspace in Gnome-Shell 3.10.4

I have fixed this problem, by disabling the option "Workspaces on primary display only" in the Gnome Tweak Tool.

Everything works again as expected.


Moving mouse to edge of screen pans the desktop out of view

I have Ubuntu same as yours, and an nvidia gt820. I've used an extra screen with my laptop before and experienced none of the issues you face.

I would do these steps.
Check to see if you're using latest Ubuntu updates
Check you installed the graphics drivers using additional driver settings in Ubuntu.

Its hard to say for certainty, but it might be a problem with your drivers installed.

How did you install your driver?


Kubuntu - can't get past login screen and whiptail error

Managed to solve it:

1) I'd forgotten that I can enter command line from the login screen with CTRL +  ALT + F2.

2) I didn't understand the support for zesty had expired, I did a dist upgrade and everything worked fine after that. I must have accidentally turned off notifications that zesty had run out as I didn't see a message about it...


How to solve 'ERROR: An NVIDIA kernel module 'nvidia-uvm' appears to already be loaded in your kernel'?

Maybe you use nvidia-docker on this machine，if so try follow commands.

sudo service lightdm stop
sudo stop nvidia-digits-server
sudo service docker stop
sudo rmmod nvidia-uvm

service nvidia-docker stop will also resolve it (if UVM is only used by nvidia-docker)


A few ideas:

Anything in dmesg or syslog around the time it stops working?
An IP or MAC address conflict with another device on the network? There's some debugging options described here.
"Destination Host Unreachable" usually means the kernel has no route to use. What does ifconfig, route -n, and arp -a return when it's stuck? Any differences between then and when it's working?
"If I run an ip command, it just hangs." - this implies some sort of kernel issue... which ip commands are you attempting?


Is a brightness control widget available?

There is a brightness indicator app that looks like:

And can be downloaded from here (although it has 11.04 and 11.10 versions, it is said to work with 12.04 also).

The indicator is written in python and the source-code can be found here.


Here is an examples of how to configure tomcat-apache connector.

You forgot JkWorkersFile directive. Add this line:

  JkWorkersFile /path/workers.properties

where path is where you saved your workers.properties file.

The port defined by:

  worker.worker1.port=8080

is the port where is listening Tomcat. Check tomcat configuration, usually is 8009.


How can I tell if I am out of inotify watches?

How do you know if you are out of watches? tail will tell!

Start tail with the -f (follow) option on any old file, e.g. tail -f /var/log/dmesg:

If all is well, it will show the last 10 lines and pause; abort with Ctrl-C
If you are out of watches, it will fail with this somewhat cryptic error:

tail: cannot watch '/var/log/dmsg': No space left on device

For the curious: Why is tail a "telltail"?

Actually, any well-written app should have the courtesy of telling you, since the inotify API/calls clearly tells them what the deal is.
Try strace tail -f ... instead, and when it succeeds, it ends with:

inotify_add_watch(4, "/var/log/dmesg", IN_MODIFY...) = 1

but if it fails, i.e. you are out of watches, it'll say:

inotify_add_watch(4, "/var/log/dmesg", IN_MODIFY..)
= -1 ENOSPC (No space left on device)

Can you increase the watches? By how much? Any tradeoffs?

Short answer: Sure, no sweat. Go to straight to a half-million (524288) if you want...the additional memory used should be negligible on a modern system with 4GB+ of memory.

Each used inotify watch takes up 540 bytes (32-bit system), or 1 kB (double - on 64-bit) [sources: 1, 2]
This comes out of kernel memory, which is unswappable.
So, assuming you set the max at 524288, and all were used (improbable), you'd be using approx. 256MB/512MB of 32-bit/64-bit kernel memory

Note that your application will also use additional memory to keep track of the inotify handles, file/directory paths, etc. -- how much depends on its design.

What's the max value? I guess none, in theory, as long as you have enough RAM. In practice, 524288 has been officially recommended by apps, and people have been setting it to 2 million, with the accompanying memory usage, of course.


If you are using the GUI, I believe you can just right click and "Extract Here" or whatever the equivalent of it is.

If you want to use a command, open a terminal and cd to the directory then use:

unrar x -e file.part1.rar

Where file.part1.rar is the first part of the whole thing. The other files need to be in the same folder.

If you can't execute the unrar command, you'll need to install it using:

sudo apt-get install rar unrar

Source: http://www.zyxware.com/articles/636/how-to-unrar-and-combine-multiple-rar-files-in-ubuntu


Yes.

You can choose to do this at the time of installation, or you can make a swap partition with a tool such as gparted and then activate the swap with swapon. Add it to your fstab to make it available on boot.

For help with making the swap partition: How do I restore a swap partition I accidentally deleted?

For help with turning swap on: You literally just type sudo swapon into a terminal

For help with adding to your fstab: How do I add a swap partition after system installation?


kernal panic not syncing: VFS unable to mount root fs on unknown-block(0,0)

Installing to a partition that has Linux without formatting is never a good idea, there are probably leftover config files from the previous install causing problems.  Your best bet is to copy any important files off, reformat, and reinstall Ubuntu.


The colors on videos I watch are messed up - quite badly

Special thanks to Stefano for suggesting what ultimately led to the solution:

Somehow, it seems that the hue slider in Totem was not set properly and that was what was messing up the colors. It would also seem that the problem was affecting every single application with video output as well since the problem manifested itself in VLC, Cheese, etc.

The solution was to simply reset the sliders to their default values and now everything works.


Different options to share files on Ubuntu One?

Dumb mistake on my part, I didn't mention that the folder is outside the Home folder and U1 doesn't have the functionality to do that just yet according to the U1 FAQ


Please check this Stuck in GRUB Rescue Mode


What is the concept of only close window button in gnome shell

I don't know if this is the reason but when I want to get rid of a window without closing it I put it in another workspace. I guess they wanted to leave more space for the windows by making the launcher disappear.


User B can sudo to an user A (not root or group admin)

I think you may just be looking for the su command.

B@my-pc:~$ su exec_prog
exec_prog@pc:~$

Also if you'd like to allow user A to su as B without a password, you can edit /etc/pam.d/su and add the following lines

# Change 'exec_prog' to the user you want to allow user B to become
auth       [success=ignore default=1] pam_succeed_if.so user = execute_prog
# replace 'B' with your username
auth       sufficient   pam_succeed_if.so use_uid user = B

Hope this helps!


Just restart your laptop and at the time of boot enter into bios menu by pressing F10 or Fn+f10.
At bios menu look for boot mode and change to UEFI ONLY.
Then restart your problem should be solved by this.


You can simply install the ns2 package from Canonical’s package repository.1 It comes in version 2.35 for all currently supported Ubuntu releases. You need to enable the Universe repository, if you haven't done so yet, to access this packages.

1 As always you can use your favourite package manager to install the ns2 package, e. g. Software Center, GNOME Software, Synaptic or the Apt command-line interface (sudo apt install ns2).


Cannot enter safe mode or set mysql root password new install ubuntu 18

I think the problem was that after opening safe mode I was not going to a new terminal tab and the process was running in the background, after opening a new tab I was able to enter safemode and update the password,


What are the default file permissions for the Ubuntu One folder?

Default permissions on the Ubuntu One folder are 775 and should be tied to your user account. Your last chown command is correct to reset the owner to 'frank'.

To reset the proper permissions to the Ubuntu One folders:

sudo chmod -R 775 /home/frank/Ubuntu\ One

sudo chmod -R 555 /home/frank/Ubuntu\ One/Shared\ with\ Me will reset the permissions to lr-xr-xr-x for that folder; you have the correct user and group applied. The default permissions are read-only for items shared with you from another user.


I believe the question is an X Y problem:
your ultimate goal is to install texlive offline,
and doing it from ISO instead of other alternatives is not a requirement.

If that's the case, then you could consider getting the deb files of texlive and its dependencies, instead of the ISO.
This should simplify the installation and eliminate your issues in the question.

You can get a list of the URLs and MD5 sums of texlive and its dependencies by running this command on your system:

apt-get --print-uris --yes install texlive | grep "^'" | sed -e "s/'//g" | awk '{ print $1, $4 }' > packages.info

This will generate a file packages.info with the URLs to download and their MD5 sums. It's best if your friend also verifies the MD5 sums after downloading.

Once you have the deb files, you can install them with dpkg -i *.deb and should be good to go.

That being said, as @fkraiem pointed out in a comment,
using the deb instead of the ISO has some drawbacks:

  In the case of TeXLive, I think using the official installer is always better than using .debs (indeed, it's what I use myself), mostly because it allows finer management of CTAN packages and better community support (if you ask a question, e.g., on Tex.SE, it will be assumed that you used the official installer, so the solution might not work if you used the .debs)


Change keyboard layout (English UK) on command line to English US

Update 2017-04-13: This seems to have changed in recent Ubuntu versions and running sudo apt-get install console-common will try to remove other packages. So, for recent Ubuntu versions, use this instead (Tested in 17.04):

sudo dpkg-reconfigure keyboard-configuration

The simplest way would indeed be as @steeldriver suggested to open a terminal and run this command:

sudo apt-get install console-common

That will install the console-common package and in the process allow you to chose your console layout. If that is already installed, use this to bring up the same wizard and set the layout:

sudo dpkg-reconfigure console-data

Tested on 13.10, and taken from here.


I would recommend to use a disk imaging tool like Clonezilla, which can backup the complete contents of your disk into an image, which can be stored on a USB drive, another disk, a network share, or even a writeable DVD.

To use it, Download the current stable version, write the ISO to a DVD or USB stick, and boot it, and follow the instructions to create an image of the entire local disk (There's plenty of tutorials, too). You will then have a compressed image, which you can later restore onto the system, using the same clonezilla DVD or bootable USB. (You can even put Clonezilla and the image on the same USB stick for subsequent restores).

If you want to make an actual installable ISO of your system, there are various tools for this, such as SystemBack, however, I haven't tried any of these myself.


LXD : /var/snap/lxd/.../unix.socket: connect: no such file or directory

Every LXC Operation or process is captured in a socket file.

You are not having this /var/snap/lxd/common/lxd/unix.socket file. By Some-means, it might got deleted.

This is the reason why you are not able to do any lxc operations.

Just try creating that file with no contents.

sudo vi /var/snap/lxd/common/lxd/unix.socket

No Restart of LXC Service needed.

Hope this works.


How do I login to Ubuntu Core on Raspberry Pi?

To quote the getting started guide:

  During setup,console-conf will download the SSH key registered with your Store account and configure it so you can log into the device via ssh @ without a password.

SSH is a remote login, not a local one.

The idea is, instead of shipping with a default user and password (which owners often never change as proved by marai), in order to administer Ubuntu Core the only way in is via SSH authenticated by a cryptographic key pair, the public side of which you upload to your SSO account. Then, that initial wizard you went through asks for your SSO email, and uses it to download that key, allowing you to use the private key to login.

As mentioned on that page, instructions for generating this key can be found here.

Once you gain access, if you wish, you can set a password thereby permitting local login.