Best Answer

I had the same issue.It helps to have something playing in the background while performing these steps. What worked was:
Opening a terminal and logging in as root
sudo su

(Or however you like to log into root.)
Edit the file found at /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf and change any instances of Element (such as [Element Desktop Speaker]) from switch = off to switch = on.
gedit /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf

Reboot.


Does the Live CD allow saving downloaded apps and settings?

I have found this on the Ubuntu wiki : https://help.ubuntu.com/community/LiveCD/Persistence.

I believe that it will allow you to do what you want.

Here is one for USB sticks: https://wiki.ubuntu.com/LiveUsbPendrivePersistent


How can I highlight paragraphs in emails and add private notes to them?

You can right-click on an E-Mail to create a memo from it in Evolution. It's not exactly what you want but except for Ooutlook I don't know any mail-client that supports comments on mails.

You could also check out these addons for Thunderbird:

https://addons.mozilla.org/en-US/thunderbird/addon/xnote/
https://addons.mozilla.org/en-US/thunderbird/addon/message-notes/

According to an e-mail tomboy can also link notes and task to e-mails you received (see Addins->Evolution).

All solutions lack the highlighting you need.

Since both comments and highlighting in e-Mails would be reasonable and useful feature, you could suggest its integration into evolution.


I found that Prax (Pow equivalent for Linux) was causing the error. After throwing it away it worked.


Mounting an encrypted partition (not home) at login

Automatically mounting an encrypted partition rather defeats the purpose of encrypting it in the first place. This makes it to where anyone going through your startup scripts on the non-encrypted sector can easily jack into the encrypted.

If you're still set on doing this you can set it in rc.conf. You could also use a C program to have a setuid run to mount it, but this is a monstrous security risk as well.


Wireless connection setting in ubuntu-12.04.3-desktop-i386 (Offline )

Please do:

sudo apt-get purge bcmwl-kernel-source
sudo modprobe -rv wl
sudo modprobe -v brcmsmac

if there are any errors please continue with the commands then reboot.


"weird" Google Chrome feature, huge address bar pops up

Looks like a feature of some extension you have installed.


Intel Ubuntu 16.04+ solution for Sandy Bridge and newer processors

From (wiki.debian.org -thermald) there is Debian's (Ubuntu's) write up about thermald  A Linux daemon for cooling tablets and laptops. This only works for Sandy Bridge (2nd generation) and newer Intel Cores. Once the system temperature reaches a certain threshold, the Linux daemon activates various cooling methods to try to cool the system.

Linux thermal daemon (thermald) monitors and controls temperature in laptops, tablets PC with the latest Intel sandy bridge and latest Intel CPU releases. Once the system temperature reaches a certain threshold, the Linux daemon activates various cooling methods to try to cool the system.

It operates in two modes:

Zero Configuration Mode

For most users, this should be enough to bring the CPU temperature of the system under control. This uses DTS temperature sensor and uses Intel P state driver, Power clamp driver, Running Average Power Limit control and cpufreq as cooling methods.

User defined configuration mode

This allows ACPI style configuration in a thermal XML configuration file. This can be used to fix the buggy ACPI configuration or fine tune by adding more sensors and cooling devices. This is a first step in implementing a close loop thermal control in user mode and can be enhanced based on community feedback and suggestions.

How to install

apt-get install thermald

TLP

From Arch Linux:

  TLP brings you the benefits of advanced power management for Linux
  without the need to understand every technical detail. TLP comes with
  a default configuration already optimized for battery life, so you may
  just install and forget it. Nevertheless TLP is highly customizable to
  fulfill your specific requirements.

Please read the full Arch Linux TLP link above. There are issues with Nvidia that require configuration changes.

After many trials and errors with other packages, I've had great success using TLP. It gives superior fan control and works seamlessly with thermald and p-states.

As these installation instructions for Ubuntu 15.04+ mention TLP not only reduces overheating but it extends battery life too.

Since installing TLP, Powerclamp (described below) has never been invoked again.

Intel Powerclamp

Intel's Powerclamp driver is defined here (kernel.org - Intel Power Clamp.txt) and is part of thermald described above. A direct quote for Powerclamp from the link:

  Consider the situation where a system’s power consumption must be
  reduced at runtime, due to power budget, thermal constraint, or noise
  level, and where active cooling is not preferred. Software managed
  passive power reduction must be performed to prevent the hardware
  actions that are designed for catastrophic scenarios.

  Currently, P-states, T-states (clock modulation), and CPU offlining
  are used for CPU throttling.

  On Intel CPUs, C-states provide effective power reduction, but so far
  they’re only used opportunistically, based on workload. With the
  development of intel_powerclamp driver, the method of synchronizing
  idle injection across all online CPU threads was introduced. The goal
  is to achieve forced and controllable C-state residency.

  Test/Analysis has been made in the areas of power, performance,
  scalability, and user experience. In many cases, clear advantage is
  shown over taking the CPU offline or modulating the CPU clock.

How do you know Powerclamp is running?

Powerclamp might only show itself once a year when your fan vents get too much dust & lint. So how do you know it's actually running in the background? Use:

lsmod | grep intel

And you should see a list similar to this:

btintel                16384  1 btusb
bluetooth             520192  29 bnep,btbcm,btrtl,btusb,rfcomm,btintel
intel_rapl             20480  0
intel_powerclamp       16384  0
   (.... more intel drivers ....)
snd                    81920  18 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device

If you see intel_rapl and intel_powerclamp you know it's working and simply waiting temps to exceed 85C.

Powerclamp in action displayed by Conky

Here is a screen shot when Powerclamp injects sleep cycles:

Normally on this system CPU clock speed is 2400 Mhz to 3400 Mhz when watching HTML5 video and 10 Chrome tabs open. Normally CPU utilization is about 9% to 12% across 8 CPUs. When things get too hot (86C) Powerclamp kicks in and this happens:

CPU speed is reduced to 1200 Mhz.
CPU utilization spikes up to 80%. This is misleading because the extra 70% is sleeping time.
The top 9 CPU processes are usually 5 or 6 Chrome processes plus Xorg, Conky, Pulse Audio and an occasional kworker. However now 8 of the top 10 are the kidle_inject/x process where x is from 0 to 7. For the first 8 CPUs.

The Powerclamp driver runs until temps drop below 85C again. While the driver is running you might have split second pausing in your videos and possibly split second keyboard and mouse lag.

Disable Intel Turbo Boost

Back in the "cool old days" of Ubuntu 14.04 Intel Turbo Boost was broken so my processor speed fluctuated between 1200 Mhz and 2400 Mhz. After upgrade to Ubuntu 16.04 it would go up to 3400 Mhz (3.4 Ghz) because Turbo Boost was finally working. But it also raised the heat.

To disable Intel Turbo Boost use:

echo "1" | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo

Short term fix in this scenario

To "band-aid" fix this problem I pulled the old laptop cooler pad with dual fans out of the closet and popped under the laptop. This dropped temps to 63C under the same workload.

The next step will be compress air in vents. After that the final step will be new Cooling Heatsink with pipes for CPU and GPU. Good thermal paste such as Arctic Silver 5 is also needed in that operation. A new fan was already installed last year and that seems to be running ok.

Update Jan 25 2017

Blew out fan vents with compressed air and temps dropped from 63C to 56C. This is still using the laptop cooling pad mind you.

Update Aug 06 2017

Have been using TLP (described above) for many months now and temperatures are steady around 50C and fan performance is optimal.

Watch out for too many fan control drivers

Because this is a Dell I had installed I8K Fan Monitor / Control in hopes it would speed up the fan sooner and faster. When I type sensors I get:

$ sensors
dell_smm-virtual-0
Adapter: Virtual device
Processor Fan: 3963 RPM
CPU:            +63.0°C
Ambient:        +49.0°C
GPU:            +54.0°C
Other:          +79.0°C

acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +106.0°C)
temp2:        +29.8°C  (crit = +106.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +65.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:         +65.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:         +64.0°C  (high = +87.0°C, crit = +105.0°C)
Core 2:         +63.0°C  (high = +87.0°C, crit = +105.0°C)
Core 3:         +57.0°C  (high = +87.0°C, crit = +105.0°C)

Ignore the virtual temps, they are out to lunch. Under Ubuntu 14.04 the were accurate and I used temp 1 in Conky display. After Ubuntu 16.04 upgrade I had to refer to a third temperature not displayed on this screen. To see the REAL temps you can use this command:

$ cat /sys/class/thermal/thermal_zone*/temp
27800
29800
62000

When I type:

$ lsmod |grep dell
dell_wmi               16384  0
sparse_keymap          16384  1 dell_wmi
dell_laptop            20480  0
dell_smbios            16384  2 dell_wmi,dell_laptop
dcdbas                 16384  1 dell_smbios
dell_smm_hwmon         16384  0
wmi                    16384  1 dell_wmi
video                  40960  3 dell_wmi,dell_laptop,i915

I see the dell_smm_hwmon kernel module / driver. When I google that driver and I8K people report the two drivers cause system freezes for a split-second every 10 seconds or so. I was having this problem myself so had to remove I8K fan control.

There are lots of other utilities and cooling methodologies but this is getting TL;DR.


I suggest you to reset Unity.

sudo add-apt-repository ppa:amith/ubuntutools
sudo apt-get update
sudo apt-get install unity-reset

Alternate way:

sudo apt-get install dconf-tools
dconf reset -f /org/compiz/
setsid unity

Hope this helps.


Try this,

boot into a root shell
print the list of users on your system

cut -d: -f1 /etc/passwd

This should help you figuring out your username.


How do I know what Ubuntu AMI to launch on EC2?

The success of Ubuntu as a platform and Ubuntu's commitment to refreshing AMIs means that there are literally thousands of of images on Amazon EC2 with "ubuntu"in their name. That, combined with and the lack of Ubuntu on the "Quick Start" menu makes selecting the right AMI a non-trivial task.

Some General Ubuntu Information

You already may be aware of these items, but I want to point them out for those who are just getting started with Ubuntu or EC2.

Ubuntu releases every 6 months. Each release has a version number and a codename. The most important thing to note here is that every 2 years a LTS (Long Term Support) release is made. If you want stability and support for 5 years, select an LTS release. If you want the newest packages, select the most recent release. See the wikipedia entry for more information.
At the time of this writing, there are 5 "regions" in Amazon EC2. Each region represents a geographical location. Each region has its own AMI ids. Inside each region there are 2 architectures (x86_64, i386) and 2 "root store" types (EBS or instance). That means that for each build Ubuntu releases, we generate 20 ami ids.

Easiest: Find AMIs From Your Web Browser

You can choose your interface for selecting images. Go to either:

http://cloud.ubuntu.com/ami

At the bottom of this page, you can select the region, release, arch or root-store. You're only shown the most recent releases here. When you've made your selection, you can copy and paste the ami number, or just click on it to go right to the EC2 console launch page for that AMI.

or

https://cloud-images.ubuntu.com/server/releases/

Select Your release by number or code-name
Select 'release/': We keep historical builds around for debugging, but the 'release/' directory will always be the latest.
Select your AMI from the table and click to launch in the console or copy and paste a command line.

Search through the Amazon EC2 Console

The EC2 Console is a graphical way to sort through AMIs and select one to launch. To Launch an Official Ubuntu Image here, follow the steps below.

Select the region you want in the top left, under 'Navigation'
Example: "Us East (Virginia)"
Click "AMIs"
Do not click "Launch Instance" [see note below]
for 'Viewing', select "All Images"
Limit the results to Ubuntu Stable Release images by typing ubuntu-images/

You should expand the 'AMI Name' field as wide as possible (maybe shrink the others).
Limit the results to a specific release by appending '.*'.

For example: ubuntu-images/.*10.04
Limit the results to a given arch by appending '.*i386' or '.*amd64'

Note: If you want to run a m1.small or c1.medium, you need 'i386'. If you want to run a t1.micro, you will need to select an 'ebs' image.
Sort your results by AMI Name and make selection

By sorting by AMI name, you can more easily see the newest AMI for a given set. Each AMI ends with a number in the format YYYYMMDD (year,month,day). You want the most recent one.
Verify the Owner is 099720109477!

Any user can register an AMI under any name. Nothing prevents a malicious user from registering an AMI that would match the search above. So, in order to be safe, you need to verify that the owner of the ami is '099720109477'.
If "Owner" is not a column for you, click "Show/Hide" at the top right and select "Owner" to be shown.
Click on the AMI name, then Click 'Launch'

Notes

HTTPS Access: Of the options above, right now https://cloud-images.ubuntu.com/server/releases/ is the only one that provides data over https. This may be important to you if you are concerned about potential "Man in the Middle" attacks when finding a AMI id. I've requested Ahmed [kim0 in irc] to support https access to https://cloud.ubuntu.com/ami .
Web Console 'Launch Instance' dialog: I saw no way in the 'Launch Instance' dialog to see the Owner ID. Because if this, I suggest not using that dialog to find "Community AMIs". There is simply no way you can reliably know who the owner of the image is from within the console. For advanced users, I will blog sometime soon on a way to find AMIs programmatically [Hint].

Source


Bugzilla was removed from Debian because no one was maintaining it.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638705

As a result of this it's not available in Ubuntu either. Usually if something is unmaintained for a long time it's not available unless someone from the community is willing to do the work to maintain it, which is unfortunately not the case here.


Custom keyboard shortcut to lauch a terminal and run a command without exit in the end

Try it with this command instead:

gnome-terminal -e "bash -c 'vnstat -ru -i wlan0 -h; exec bash'"

The exec bash part at the end causes to start a bash that replaces the current shell (also a bash).


SoundConverter fails to convert mp4 to mp3

I had same problem. Found there was a workaround by converting to wav or flac first. However, to avoid this, I installed soundKonverter instead via package manager.


Edit /etc/pulse/daemon.conf. Find the line that reads:
; default-sample-rate = 44100

and uncomment it by removing the ;. Then, find the line just below that reads:
; alternate-sample-rate = 48000

and change it to:
alternate-sample-rate = 44100

Finally, restart pulse with pulseaudio -k && pulseaudio --start.
This way pulse will always run at the same sample rate and you'll be able to avoid the weird pitch shifting.
I haven't yet encountered any negative effects from this solution.


Port an existing Quickly app from 12.04 to 12.10?

Figured it out... This should work for building binaries for any arbitrary release.  Just do the following:

quickly configure target-distribution quantal
quickly submitubuntu

You should be able to just sequentially reconfigure for each distribution. Unfortunately this puts the release numbering out of order. I don't know how to synchronize release numbering over multiple target-distributions.


Nvidia X server settings reverts backs on startup\wakeup\login

The solution is simple by copying the file monitors.xml into the directory ~gdm/.config/monitors.xml using the command:
sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml


How to choose which OS to start in dual boot with Touch Screen and no physical keyboard?

I know two workarounds which may not be very convenient but should do the trick. They involve telling the bootloader from inside a booted operating system to reboot into another OS.

On the one hand grub-reboot which should work from inside ubuntu and, as the name says, will only work with GRUB as the bootloader. On the other hand there's iReboot which is a free program for Windows. That only works with a windows bootloader. I'm not sure if all types of Windows-bootloaders are supported but on Win7-64bit it works just fine for me. Setting up either method will only take couple of minutes.

For more info on iReboot have a look at the official website of NeoSmart Technologies.

For instructions on using the grub-reboot method, you can follow one of these two guides: How to reboot into Windows from Ubuntu? or https://unix.stackexchange.com/questions/43196/how-can-i-tell-grub-i-want-to-reboot-into-windows-before-i-reboot Following either guide should work for your setup, just make sure to set Ubuntu as your default boot entry in GRUB when configuring. Vice versa if you choose to use iReboot, make sure to set Windows as default enty in Windows bootloader.

One last note on the difference of those two methods: iReboot provides a graphical user interface per default while grub-reboot is usually done via terminal. If you want to use grub-reboot without tiping in a terminal you can easily create a custom starter for that cause.


Problem with Ipython notebook and Pyzmq, (plus Jupyter)

I've had the same problem yet
You should try the following thing:
which ipython
- in my case I got - "/opt/local/bin/ipython"
Then
ls -l /opt/local/bin/ipython
this'll show you where the link leads
"lrwxr-xr-x  1 root  admin    71B 11 фев 17:49 /opt/local/bin/ipython@ -> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/ipython"
Now
ls /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/
- if you see jupyter in output - simply do the following:
ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/jupyter /opt/local/bin/


Mic problems with Analogue Stereo Duplex

According to https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1420988, you should add the line options snd-hda-intel model=dell-headset-multi in the file called /etc/modprobe.d/alsa-base.conf (or create the file if it doen't exist). You might need to adjust your model. I have seen model=intel a lot. https://ubuntuforums.org/showthread.php?t=1043568 and https://docs.slackware.com/howtos:hardware:audio_and_snd-hda-intel can help you out.

Did the trick for me partly. Also, hdajackretask is your friend: I needed to set Pin 0x18 to microphone. Or, via ->advanced, to headphones (thus the contact works for both)

For configuration, the standard pavucontrol and gnome-alsa-mixer will be helpful.


There are some really complicated suggestions on here, but making a video your screensaver is really easy when using xscreensaver and mpv. Xscreensaver can be installed by typing sudo apt-get install xscreensaver. Mpv can be installed by typing sudo apt-get install mpv.

Go into Terminal, and type gedit ~/.xscreensaver. Scroll down to the part of the code that says "programs". On the top of the list, put in code similar to this:

"Screensaver Name" mpv --really-quiet --no-audio --no-stop-screensaver --loop=inf --fs --wid=$XSCREENSAVER_WINDOW $HOME/fileDirectory

"fileDirectory" can be made a single file, or a folder. If you want to play all the videos in a folder, put something like $HOME/Videos/* You can also limit it to a specific file format by putting that format after the asterisk. (ex:*.mp4) The -shuffle tag can also be applied to make the videos play in a random order.

Once this code has been put in, use Ctrl+S to save, and then change your screensaver to your new one. And that's it, you're done!


How can I protect parentheses passed to a cd command?

Use single quotes ' around the argument. (This works for any command, not just cd).

cd 'My path with spaces (and parentheses)'

You can't make bash pass the parentheses to cd. Getting the spaces to work at all is a very specialized hack.

Single quotes work around every character except ' itself. Replace single quotes by the 4-character sequence '\''.

cd 'Apostrophe'\''s a pain'

This doesn't work if the directory name begins with a hyphen, because that causes the cd command to interpret the argument as an option. Pass -- before the directory name to avoid this.

See https://unix.stackexchange.com/questions/69144/how-do-i-escape-a-sub-directory-name-with-an-ampersand-in-it/69147#69147 for more details.

Another method is to have the shell read a separate line of text instead of passing the argument on the command line.

Strapakowsky@darkstar ~$ read -r; cd -- "$REPLY"
My path with spaces (and parentheses)
Strapakowsky@darkstar ~/My path with spaces (and parentheses)$

Rather than copy-paste manually, you might as well do it programmatically. Install either xclip or xsel.

cd -- "$(xclip -o -selection clipboard)"
cd -- "$(xsel -bo)"

You might make this an alias.

alias cde='cd -- "$(xsel -bo)"'


GRUB see LVM disk with Kubuntu only after enter to BIOS

Looking at your sudo parted --list output, you've put your boot partition onto the LVM...  Bad idea!  Head to The Linux Documentation project to read why you shouldn't...

boot is not included on the LV because bootloaders don't understand LVM volumes yet. It's possible boot on LVM will work, but you run the risk of having an unbootable system. [sic]


Issue with installing Ubuntu onto my Virtual Machine

This is more of a question for the OS you are hosting the Virtual Machine on, and/or a question for the Virtual Machine software.

With VirtualBox, if you want to install Ubuntu from an ISO image, the first thing you will want to do is create your virtual machine with a blank Virtual Hard Disk.

Then in the VirtualBox Manager, you go to Storage and associate your ISO image with that Virtual Hard Disk.  Your virtual machine will then boot from the ISO, allowing you to install Ubuntu onto the virtual machine.

This web-page explains How to Install Ubuntu into Virtual Box From an ISO Image


Reset Chromium settings
Issue this command in Terminal:

rm -r ~/.config/chromium


Will installing a program from the Software Center also include updates from its PPA?

No, installing a program from the Software Center will not automatically include the PPA

If you want updated versions of e.g., VLC, that are only available in the PPAs and not in the official repositories, you will have to add the PPAs manually, regardless of whether you have already installed VLC from the Software Center or not.

Now, once you have added the PPA, Software center will use it to update those particular programs.

  Warning: While the software in PPAs is often newer, it may also be unstable, partially incompatible, etc. -- remember that it has not been extensively tested by the Ubuntu team as the official versions are.

  Please see these related questions for details about PPAs:

  What are PPAs and how do I use them?
  Are PPA's safe to add to my system and what are some "red flags" to watch out for?


I had similar issue on my Ubuntu 12.04 setup. In my case the problem was with the X Windows setup. I had to start Dash Home → NVidia Xserver Settings → X Server Display Configuration.

The second monitor was Disabled, so I have to first enable it and the select configuration TwinView. You do need administrator privileges to save the new X Configuration to file, but it will give clue whether your problem is with your drivers or X Windows setup.


Package temperature above threshold false alarms

There is a probably a bug, but may this workaround helps you: https://github.com/erpalma/lenovo-throttling-fix


What can I do to make my Ubuntu upgrade go as smoothly as possible?

I usually don't have any problems upgrading, here is what I do for my computers:

Read the Release Notes.
Plan accordingly - Though we strive to make the upgrade experience easy and troublefree sometimes bad things happen, an operating system upgrade is a major thing. Have good backups and don't do an upgrade during a point in time where it would become inconvenient for you to have to fix something.
Keep it simple - I don't have exotic multidrive setups or things that need me messing around with grub or my partitions. I use the default layout the installer recommends for
my laptop, and a simple SSD/HDD setup for my desktops.
Don't use PPAs - Even though the upgrader will disable PPAs there's no way to guarantee that disabling them will remove the bad packages as they're untested.
Be concious of the software you use - Even if something might not be exactly the tool I am looking for if a package is in main I will tend to use it instead of software that might be in universe or a PPA. The more popular something is (or if it's in main) then I can be reasonably confident that it's more well tested than some obscure program. For example the resolver in aptitude is untested, so I don't use it.
Don't follow instructions on things that you don't understand as they might break things in an upgrade, especially if it's on a website that doesn't get updated or allow for community peer review. Unfortunately most "linux tips" websites publish this information with no regard to the consequences, especially with things that drastically changes parts of the operating system.
Participate with other community members on certain hardware. For example I have a Thinkpad so I follow along the Thinkpad mailing lists, this puts me in a pool of people who will give me the greatest chance of helping me if I need it. This is especially useful for laptops as you want to ensure that things like suspend and resume work perfectly.
Next time you purchase new hardware don't buy things that are known to be horrible with Linux support, especially if you had to do post-install fixes to make it work. Seek out hardware from companies that do support Linux and double check that the thing is supported well.
You don't have to upgrade right away - I have a friend who teaches at a University and as a general rule he doesn't upgrade on release, he upgrades at the end of that semester. He still gets a new version of Ubuntu on a regular basis, he's just "off cycle" a bit and upgrades after a bunch of fixes have already gone into that current stable release.
Test the version of Ubuntu you are upgrading to on a live CD first. confirm you hardware works (video card, monitors, wireless, etc).


How to use a web page that requires Flash player 11.6?

According to the Adobe Flash Player about page, release 11.8 is available for Chrome on Linux. You must thus install Chrome and access the Player Download Centre with it.


how to change to next page when clicked on button

The following code is heavily inspired by the one provided by the official SDK documentation. I only changed the default control to be Button instead of ListItem:

import QtQuick 2.0
import Ubuntu.Components 0.1

MainView {
    width: units.gu(48)
    height: units.gu(60)
    PageStack {
        id: pageStack
        Component.onCompleted: push(page0)
        Page {
            id: page0
            title: i18n.tr("Root page")
            visible: false
            Column {
                anchors.margins: units.gu(3)
                spacing: units.gu(3)
                anchors.fill: parent
                Button {
                    anchors.horizontalCenter: parent.horizontalCenter
                    text: i18n.tr("Page one")
                    onClicked: pageStack.push(page1, {color: UbuntuColors.orange})
                }
                Button {
                    anchors.horizontalCenter: parent.horizontalCenter
                    text: i18n.tr("External page")
                    onClicked: pageStack.push(Qt.resolvedUrl("MyCustomPage.qml"))
                }
            }
        }
        Page {
            title: "Rectangle"
            id: page1
            visible: false
            property alias color: rectangle.color
            Rectangle {
                id: rectangle
                anchors {
                    fill: parent
                    margins: units.gu(5)
                }
            }
        }
    }
}

To switch or create a new page, you just need to call the push method. The pushed page may be an Item, Component or URL.


It is vital for all systems running Windows 8 in UEFI mode to have fast boot and hibernated shutdown turned off, as well as fast boot in the UEFI.  This keeps you from losing data on your Windows install.

I feel like I keep giving this same answer over and over again, but c'est la vie:

First off, you cannot run dual boot configuration with Windows 8 in UEFI and any *nix in CSM.  Grub will not be able to see the Windows 8 installation (in my experience).  Either way:

If you want Ubuntu on the same disk as Windows 8.1, here are the steps to go through:

1) Turn off Windows Fast Boot

2) You need to shrink the main Windows 8.1 partition.  This can be tricky, as Windows expects a certain partition scheme to be used.  Let me show you a diagram:

[(Windows RE Tools)(EFI System Partition)(Microsoft Reserved Partition)(Windows 8.1)(Anything else)]

You can use your favorite tool to edit these partitions.  I prefer Gparted, but any good disk partitioning tool can handle this.  Backup your Windows install first.  Then, resize the Windows 8.1 partition so that you have enough space for another OS.  I prefer to give my Linux installs about 50-100 GB of space (for expandability).

3)  Download your Ubuntu (use 64 bit only and I suggest 13.10) iso and put it on some media (CD/DVD/USB/(insert your preferred media here)) by using your favorite tool (most people prefer Rufus) or dd.

4) Shut off Secure Boot and Fast Boot in the UEFI.  DO NOT TURN ON LEGACY BOOTING (if your motherboard supports UEFI only booting without Secure Boot and Fast Boot on.)

5) Insert your install media and install Ubuntu in the partition you made earlier.  Make sure that for your EFI boot partition, you make the installer use the EFI System Partition already created by Windows 8.1.  The partition should be something like sdXn (replace X with the drive it is on and n with the partition number, such as /dev/sda2), but this could be different.  DO NOT REFORMAT THIS PARTITION!!  You are only going to tell the installer to use it as the EFI partition.  It will put the grubx64.efi bootloader for Ubuntu in this location.

6) With that done, continue the install as normal and set up your partitions as you see fit.  Once the install is finished, you should be able to boot into Jessie easily.

If you are trying to fix an existing install of Ubuntu, you will need to do:

sudo apt-get install grub-efi-amd64

sudo modprobe efivars

sudo grub-install /dev/sdx (x being the drive Ubuntu is installed on)

sudo update-grub

From there, the UEFI should use Grub-EFI as the bootloader. I have not found a way to get the Windows 8 bootloader to see and allow Linux to boot in UEFI.  YYMV.


How to burn ubuntu to a cd and make it bootable

If you are using Ubuntu -

If you are using Ubuntu itself to create the bootable CD/DVD, use k3b  instead of brasero .

After you install and start K3b select the option Burn Image as seen below in the image-

After that click on the Open File Dialog option as seen below and then select the iso image by browsing to it.

If you are using Windows -

If you are using Windows to create the bootable CD/DVD i suggest using InfraRecorder  instead of Nero.


Jockey not detecting my ATI IGP Xpress 1150

Perhaps either try reinstalling the mod aliases that jockey uses:

sudo apt-get install fglrx-modaliases

That may help you 'see' your driver, and if that does not work perhaps try to manually install the ATI driver in a terminal:

sudo apt-get install fglrx

Then that may help you to sort out your compositing using ccsm.


Migrating from 12.10 (Gnome default) to KUbuntu 12.10

Installing another Desktop Environment will not remove any settings nor it will change anything in the system. It will simply install it, then at the login screen you will have the option to select KDE or Unity.

Also you don't need to use the Kubuntu ISO for this, simply install the kubuntu-desktop metapackage.


HDMI External Monitor no longer detected (Ubuntu 16.04)

I never managed to find a solution to this, however it has automagically fixed itself after another update. Presumably a minor bug from the previous update now fixed, but we'll never know for certain =)


powernow_k8 on Lubuntu 18.04 is flooding my kernel log with CPU frequency errors

powernow-k8, which used to be an external module, has been directly compiled into the kernel since 2010. To avoid the speed-stepping you can simply run the CPUs at full speed. From Stack Exchange answer: Is there a way to disable Intel SpeedStep steppings on an Ubuntu Server using a command line application?
Start by reading the current available settings for your system:
sudo cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors

this will return a list of available settings you can use to regulate each core of your CPU, if you can you should then set them to max performance by selecting the performance option. This will make your CPU cores run always at max frequency.
Knowing what options you have and if the performance option is available, you can then set each core to performance mode with the command:
sudo echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

this will make cpu0 (first core) run all the time at max performance. Do it for all the logical cores in your CPU.
You can then check if the option was successfully changed with the command:
sudo cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

this will check the current set option for cpu0 (first core). Check if the change was successful for all cores and if everything was set correctly you are good to go: Intel SpeedStep will be on but all your cores will be running at max frequency speed all the time.
NOTE: Although the question and answer references Intel SpeedStep the same should hold true with AMD's PowerNow technology.

Original post based on Arch Linux information
powernow_k8 has been deprecated since kernel 3.7. You can blacklist it (How to blacklist kernel modules?) using command:
sudo -H leafpad /etc/modprobe.d/blacklist.conf

and inserting these two lines:
# powernow-k8 deprecated since kernel 3.7
blacklist powernow-k8

Save the file and exit gedit
After reboot confirm module is no longer loaded using:
lsmod | grep powernow-k8

You can also read the link above for steps to temporarily blacklist a module.
NOTE your CPU will now be running at full frequency unless the replacement  module acpi-cpufreq is used.


How to know if fan control is possible? (old laptop)

The MSI Megabook vr201x BIOS does not offer fan control. The vr201x uses the Intel HM76 express chipset. The Intel datasheet for this chipset states that the mobile version of this chipset does not support PWM fan control. I am afraid you don’t have the necessary hardware.


Ethernet speed drop to 10Mbs when connecting to LAN

Turns out, I had to update my Kernel to avoid this problem


Can I customize conky to act differently on a dual display?

So it seems like the answer is "no" and what I finally did was re-arrange my monitors so that Conky stays where I want it (on my laptop screen, on the left-hand side).


How can I create a custom session to use Unity Next and the Core Apps in 13.04?

Since you linked to a guide for how to build and run Unity Next, I will assume that you have already followed those instructions successfully and are stuck on the part about creating a custom login session available in the dropdown list at login.

This can be done by creating a new file in /usr/share/xsessions. First, encapsulate the startup commands in a new script (I'll assume you call this /home/user/unity/unity-next-startup):

#!/bin/bash
/home/user/unity/unity_build/build/libexec/unity-people-daemon
cd /home/user/unity/unity-next
./run

Then create a file in /usr/share/xsessions:

[Desktop Entry]
Encoding=UTF-8
Name=Unity Next
Comment=Touch based environment from Ubuntu
Exec=/home/user/unity/unity-next-startup
TryExec=/home/user/unity/unity-next-startup
Type=XSession

When you log out, a new Unity Next option should be available at the login screen.


How do enable wireless and ethenet connection in Inspiron 7420 using Ubuntu 12.04?

You are going to want to install the .inf files associated with your chipset (found within the .exe driver file) in NDISWrapper and NDISgtk. This is not a guaranteed fix, but it has a good possibility of working out for you.

Download the .exe driver file here: http://www.dell.com/support/drivers/us/en/19/driverdetails?driverid=P58H7#


radeon_pm_info: What are vclk, dclk, sclk, mclk, vddc and vddci?

VCLK and DCLK are two UVD internal clocks.
SCLK is the Engine clock and MCLK is the Memory clock, both depend on the current power level.
VDDC (mV) is the GPU core voltage
VDDCI (mV) is the I/O bus voltage (between memory and GPU core) and comes from the PCI-Express slot.

Note: clock units seem to be kHz * 10 (Source)

Sources:

drivers/gpu/drm/radeon/radeon_atombios.c
AMD Radeon HD 6870 Voltage Modifications – The Complete Collection
Radeon HD 6870 Voltage Check Points


How to reinstall Ubuntu keeping my data intact?

Just copy the directories that you want to save i.e Downloads, /var/www and Desktop to another partition, install Ubuntu to that 40 GB ext3 partition and after installation copy the directories back.


dd - unrecongnized operand of=/dev/sdc when trying to create a bootable USB

The dd command that you tried has an unnecessary / character after if=/dev/puppylinux.iso which should be removed. sync is a separate command, so it goes after the && so that sync runs only if the first command ( dd ) ran.

The correct command is:

sudo dd if=/dev/puppylinux.iso of=/dev/sdc bs=4M status=progress && sync


How do I remove a stuck Nvidia-settings-experimental-310 package?

you can simply do that in synaptic package manager . Fillup the search field with nvidia-settings-experimental-310 and that will be listed and you can remove that very easily from there .


Try to login to the account with administrator permissions instead of just selecting Run as
.. Administrator.


ok, its not a perfect answer, I would perfer to user gambas version 3.7, but instead I uninstalled gambas version 3.7 and installed version 3.1.1. version 3.1.1 is in the repositories. Once I installed version 3.1.1, the package publishing component worked. I was able to produce a deb file, and install my software on some other systems, (after getting some dependencies).

apparently the package publishing feature is broken in version 3.7


Could not save XML data to file /home/username/.mysql/workbench/connections.xml

$ gksu gedit /usr/share/applications/mysql-workbench.desktop**

Change relevant lines to:

Exec=gksu mysql-workbench
Terminal=false
Type=application


It seems you forgot "minus" (-) sign:

sudo apt-get install i3-wm

And install some tools to remove "Error: status command not found or is missing a library dependency":

sudo apt-get install suckless-tools i3status

Then reboot and select i3 session on welcome screen.


How do I increase the size of live image [aufs]?

casper-rw partition, that is big enough

One way to increase the size of the live image is to create a persistent live drive with a casper-rw partition, that is big enough.

The size of aufs or the corresponding cow in some versions will match the size of the casper-rw partition. For example in a persistent live drive with 32 GB you can have close to that, approximately 30 GB, for aufs or cow (some drive space will be used for other data), if you select all available drive space, 100%, for persistence.

mkusb can create a persistent live drive with a casper-rw partition and prepare 'everything' on the drive for it to work. This works in all current Ubuntu versions and community flavours and corresponding iso files.

See the following links,

help.ubuntu.com/community/mkusb

help.ubuntu.com/community/mkusb/persistent

mkUSB-quick-start-manual-12.pdf

sudo add-apt-repository ppa:mkusb/ppa  # and press Enter
sudo apt-get update
sudo apt-get install mkusb mkusb-nox usb-pack-efi

The end of mkusb's output to its console:

...
parted -s "/dev/sdc" print
Model: SanDisk Extreme (scsi)
Disk /dev/sdc: 32,0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name     Flags
 2      1049kB  2097kB  1049kB               primary  bios_grub
 3      2097kB  258MB   256MB   fat32        primary  boot, esp
 4      258MB   2199MB  1941MB               primary
 5      2199MB  32,0GB  29,8GB  ext2         primary
 1      32,0GB  32,0GB  1031kB               primary  msftdata

lsblk -o MODEL,NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE "/dev/sdc"
MODEL            NAME   FSTYPE  LABEL                  MOUNTPOINT    SIZE
Extreme          sdc                                                29,8G
                 |-sdc1                                           1006,5K
                 |-sdc2                                                1M
                 |-sdc3 vfat    usbboot                              244M
                 |-sdc4 iso9660 Ubuntu 18.04 LTS amd64               1,8G
                 `-sdc5 ext4    casper-rw                           27,8G
</pre>
 Done :-)
The target device is ready to use.
'ubuntu-18.04-desktop-amd64.iso'
was installed
item 100
Cleanup after dus-persistent finished :-)

Screenshot from the running persistent live system with 30 GB for cow:


You can become admin in Ubuntu with sudo -i.
If you want to launch any application as root then
application can be launched as follows

sudo application_name

If it is a GUI application then launch it with

gksudo application_name

Installing application can be done from apt-get ,aptitude,Software center , synaptic package manager.

From apt-get

sudo apt-get install application_name

From aptitude

sudo aptitude install application_name

Software center and synaptic are GUI applications.

NOTE: You should have clear knowledge on which application can be launched as admin.


You have to change the computers hostname as well.

Edit the hostname file and replace the name

gksudo gedit /etc/hostname

also change the name in hosts

gksudo gedit /etc/hosts

Leave the other stuff there untouched.

For the username, it would be cleaner if you deleted the old user and created your new one.


I looks like you forgot a trailing slash /. Try this instead:

export PATH=$PATH:/home/tony/scripts/


how to burn a live cd from bootable usb stick?

Try this.  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo dd if=/dev/sdx of=<file_name>.iso

Note: Make sure that you replace the X with the right device number.

Once you have the ISO file, you can burn it to CD.   On a personal note, I would recommend that you download the ISO from Ubuntu if that is all possible, and burn the CD that way.


Trying to install Ubuntu 18.04.2 dual boot, it works for the first time, as soon as I reboot once it won't boot anymore, "PCIe Bus" error

Use the grep AER /var/log/syslog* and sudo lspci -vt to determine if you have AER errors, and which device (0000:00:1d.2) is causing them. Fix the cause, or use this...

sudo -H gedit /etc/default/grub # edit this file

Find:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it to:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noaer"

sudo update-grub # update GRUB

reboot # reboot the computer


You need the --new-window option for Nautilus:

ssh -X remote-machine nautilus --new-window


My guess is you incorrectly added a source to the /etc/apt/sources.list on line 2.

Try opening up Terminal (Ctrl+Alt+T) and running sudo nano /etc/apt/sources.list.

A regular source line will look similar to this: deb http://us.archive.ubuntu.com/ubuntu/ vivid main restricted.

If it doesn't, then remove that line and try running sudo apt-get update again. If it works, we know that you added a source incorrectly and you can try following those instructions again.

What I'm assuming happened for you specifically is you added the line sudo apt-get update && sudo apt-get upgrade to /etc/apt/sources.list.

What you should do if this is the case is remove that line entirely, and then uncomment all the source lines (delete all # characters from the beginning of a line.)

Then, you should save the file and exit out of nano.

Now, when you run sudo apt-get update && sudo apt-get upgrade it should work and you can continue on following those instructions.


By adding server aliases, both the virtualhost are working fine now.


Sorry, I couldn't go through the comments earlier. After studying the comments, turns out the EFI was in uppercase in the file while I had been typing "efi" according to the tutorials.

Regardless of that, the error showed that it was a bad image and could not be loaded.


Dell Latitude 7490 laptop running Ubuntu 18.04 black screen when locked

I have the same issue, same hardware, same OS. There is a thread on the Dell community page with two other people with the same problem here.

Their issues seem to be resolved after enabling tlp and replacing the motherboard. Enabling tlp with

sudo apt-get install tlp tlp-rdw

seems to have solved the issue waking from sleep for me, though at the time of posting this, it has only been about 12 hours. It doesn't solve the other issue detailed in the Dell Community thread, though.


That PPA seems to no longer exist, see here.

That other answer you linked to basically suggested installing the newest stable version of Thunderbird, which may have been more up-to-date than the latest stable version in the official repos at that time. But apparently, now the thunderbird package is updated often enough in the official repos.

Along the lines of the idea suggested in that other thread, if you have a similar problem and want try upgrading Thunderbird to solve it, you may try the Thunderbird Beta PPA:

sudo add-apt-repository ppa:mozillateam/thunderbird-next
sudo apt-get update
sudo apt-get install thunderbird

Be aware that this will install a beta version of thunderbird, with a higher potential for bugs.


can't flash recovery image to Ubuntu phone

So, if nothing helps, try the android flash tool. It will complete reset the phone (beside you unselect the userdata.img for keeping apps, settings and userdata).

http://www.mibqyyo.com/descargas/2016/09/21/firmware-ubuntu-15-04-ota-13/

http://www.mibqyyo.com/descargas/2015/05/22/herramienta-flash-tool-ubuntu/

Attention: First click download and THEN just connect the device via USB.


What is the function of "fg %N" command?

Second one first: fg is a bash shell built-in command and as such you need to refer to the man page for bash. In particular, the section JOB CONTROL says

   Simply naming a job can be used to bring it into the foreground: %1  is
   a  synonym  for  ``fg %1'', bringing job 1 from the background into the
   foreground.  Similarly, ``%1 &''  resumes  job  1  in  the  background,
   equivalent to ``bg %1''.

Alternatively, you can use the shell's interactive help system:

$ help fg
fg: fg [job_spec]
    Move job to the foreground.

    Place the job identified by JOB_SPEC in the foreground, making it the
    current job.  If JOB_SPEC is not present, the shell's notion of the
    current job is used.

    Exit Status:
    Status of command placed in foreground, or failure if an error occurs.

Now for the first part. The actual command you stated does not in fact redirect stdout to stderr: it redirects stdout to a file named 2 and then puts the whole command into the shell's background. Hence

$ man 1>2&
[1] 4662

runs man in the background (as job [1], with process ID 4662) - if you look in the current directory you will likely find a file called 2 with contents

 What manual page do you want?

The command you should have used is 1>&2

&2 : file descriptor #2
2& : file named 2, command run in the background

For more information see the REDIRECTION section of man bash


How do I use a sudo command line to copy a folder into the system files?

It would go something like this:

sudo cp -r /path-to-backup/themes /usr/share/

cp is the copying command

-r is there for recursiveness


How to enlarge root and home on dual boot?

Shrink sda2.
Enlarge sda3 so that no unallocated space is left.
Enlarge sda5 to the beginning of sda3 then shrink it to the desired
size by dragging from the right end of sda5 to the left.
Repeat step 3 for sda6 & sda7.

Ah, don't forget to turn off swap, which will be mounted by the live system.


Have you tried the original driver from nvidia?

http://us.download.nvidia.com/XFree86/Linux-x86_64/367.44/NVIDIA-Linux-x86_64-367.44.run

I had a past experience with this, and install not the EVGA driver, but the GeForce driver. If this if you did before.

Hope it helps


The message is true: the virtual hardware does not even have a System Management Bus. It's not an error, it's purely informational.

If you don't want to see it for esthetic reasons you can always blacklist the SMBus driver, by adding blacklist i2c-piix4 to /etc/modprobe.d/blacklist.conf.


the server. wireshark runs locally. if you are remoting to the server and running wireshark there than it's the server's timestamps.


Error with shared libraries running Salome-Meca

The initial error occurred because libQt5Help.so.5 was not found. The libqt5help5 package provides this file. I had hoped installing that package may be sufficient to solve the problem, and for some readers of this post, it might:

sudo apt install libqt5help5

However, sometimes the specific package you're looking for is one of many packages you need, and is often installed as a dependency of something that provides more general functionality. Running apt rdepends package sometimes helps in figuring this out. The output of apt rdepends libqt5help5 shows python-pyqt5 and python3-pyqt5. Since the error messages you're getting are from Python, and this software appears to be from 2019, I would proceed by installing python3-pyqt5 instead:

sudo apt install python3-pyqt5

I was mistaken in my previous belief that Salome-Meca used Python 2. My apologies!

I have not found specific advice in the documentation for Salome-Meca. So that is a reasonable place to start. On my system, I was able to overcome error messages about missing libraries using:

sudo apt install qtcreator net-tools libqt5opengl5 libnlopt0

Installing qtcreator is a kitchen-sink approach to getting Qt libraries. It installs way more than is likely to be necessary--about a gigabyte on my system--and if I find a better way to install what is needed, I'll try to update this with that information.

After I did that, it still wouldn't start. I got errors like those shown here, of the form:

SALOME_Session_Server: /home/ek/salome_meca/V2019_univ/prerequisites/debianForSalome/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /lib/x86_64-linux-gnu/libGLU.so.1)
SALOME_Session_Server: /home/ek/salome_meca/V2019_univ/prerequisites/debianForSalome/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /lib/x86_64-linux-gnu/libQt5Xml.so.5)
SALOME_Session_Server: /home/ek/salome_meca/V2019_univ/prerequisites/debianForSalome/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /lib/x86_64-linux-gnu/libQt5OpenGL.so.5)

...and so on.

I was able to solve (or, in any case, work around) that problem by making Salome-Meca use my system-provided version of libstdc++.so.6 rather than the version it ships. I did this with LD_PRELOAD:

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./salome

When I run Salome Meca that way, it starts successfully:

I suspect that your errors about not having correct library versions available may be solvable by installing qtcreator, using LD_PRELOAD to specify your libstdc++.so.6, or both. (I'm not really sure quite what those errors said, though, and I recommend you update your question with them, whether or not this works.)

Note that if you use LD_PRELOAD but you're not running a PC or Mac with a 64-bit Intel or AMD processor, then the path you write after = will be different from mine. For example, if you're using a 32-bit system, or an ARM system (of any word size), then your architecture isn't amd64. You can search for libstdc++.so.6 to find the appropriate path.


How can I install the latest version of GROMACS?

Instead of waiting, you can download the latest Gromacs, and install it.  Once downloaded, make sure that you have all the prerequisites met, and just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, navigate to where the file was downloaded (probably the Downloads folder), run the command(s) below:

tar xfz gromacs-4.6.1.tar.gz
cd gromacs-4.6.1
mkdir build
cd build
cmake .. -DGMX_BUILD_OWN_FFTW=ON
make
sudo make install

For more detailed info, and how to meet the prerequisites, see the Installation Instructions


Script to turn off Wacom Bamboo touch randomly stops working

This might seem like a bit of a dud way out but... if it turns off after a little while, have you considered using     cron to re-run it every hour or so?


Mount NTFS partition with german umlaute

Of the supposed options for mount, neither nls nor iocharset will help, as they are not even defined for NTFS. Consult the man page man mount.ntfs. Also, the default system locale is specified in /etc/default/locale on Ubuntu systems. You have not told us what locale you use, is it really en_US? That would be bad and so ’90s, as UTF-8 ought to be the standard by now.

Under a UTF-8 locale, a simple mount should do it:

mount -t ntfs UUID=5A9098309098149B /local/data

Other than that, I cannot help. It works for me.


From help exec:

exec: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]
    Replace the shell with the given command.

You don't want to replace the current shell (which will prevent script execution from reaching any subsequent commands): just use date

echo "HELLO"
date
echo "HI"


Use xrandr to manage your displays:

to automatically detect displays:

xrandr --auto

to set the displays to extend each other you can do something like:

xrandr --output YOUR_DISPLAY_NAME --left-of VGA_NAME/HDMI_NAME

you can find more at the docs


Tl;dr
There's no difference, aside from the fact that a compiled executable might be linked against a shared object but not against an executable.

In general, there are two ways to compile1 an executable:

Using static linking: external libraries included in the source code are compiled and the compiled library (or object in the linker's perspective) is added to the executable itself;
Using dynamic linking: external libraries included in the source code are compiled but a link to the compiled library (or object in the linker's perspective) is added to the executable (and the compiled libraries / objects are loaded by the linker at run-time if needed);

There are advantages / disadvantages in using each of these methods, but that's not the point of the question;

/bin/ntfsck and /usr/bin/gawk are shared objects: this means that an executable might be compiled and then linked against them to use their functionalities;
/bin/echo is an executable: this means that an executable might not be compiled and then linked against it to use its functionalities;

So /bin/ntfsck and /usr/bin/gawk are  technically compiled libraries (or objects in the linker's perspective), but, as one may have forsaw, nothing prevents a shared object from being run as an executable.
On a side note, notice also that file reports (for each of them):

dynamically linked (uses shared libs)

This means that each of them is dynamically linked to (and likely uses) other shared objects as well.

1. "Compile" intended in its broader acceptation, which includes preprocessing, compilation and linking.


You can force it via sudo run-parts /etc/update-motd.d/


Ubuntu 12.10 cannot detect windows 8 in uefi mode when installing

I have had the same problem. Are you using an SSD? See this guide and the separate post on problems with SSDs here. The comments on those posts might be helpfful as well - it partially depends on the BIOS setup you have.


Windows 8 on SSD, Ubuntu 12.04.3 on HDD, EasyBCD not working here, how to boot into Ubuntu?

If you have Ubuntu LiveCD or bootable USB, you can give a try

There is a very easy and interactive way to fix the grub problem.. Using this method it will start reading all your boot partition from all your Connected HDD, and also you will be able to use any operating system. All operating system installed in your computer will be displayed in Ubuntu Grub Menu

You have to follow these very simple steps..

Boot from LiveCD or your bootable USB, Select 'Try Ubuntu'.

Open terminal (CTRL+ALT+T) & Install boot-repair ( a good s/w to fix grub )

$ sudo add-apt-repository ppa:yannubuntu/boot-repair
$ sudo apt-get update
$ sudo apt-get install boot-repair
Run boot-repair from your system or type: (boot-repair &)

When started select Option 'Recommended Repair' from out of two options:

'Recommended Repair' & 'Advanced Options'.

Follow very easy onscreen instruction, it will build/fix your grub..

Restarting your system will display a grub menu of Ubuntu with all your operating system.

Reply if something goes wrong..


How to manage installations with HDD+SSD ubuntu?

Yes, it is possible
This link shows you how to achieve it.


When booting my bios pops up i think? And it sais this a bunch of times

USB has over-current protection, which gets triggered when power consumption from the port is too high.

Unplug all USB devices from PC, turn power off, and wait a minute or two. Plug everything back and boot into Linux.

I cant take credit for this. I found it at https://paulphilippov.com/articles/how-to-fix-device-not-accepting-address-error


It seems gnome-desktop-item-edit is removed from the gnome-panel package, and it is not available for Ubuntu 19.10 and 20.04 LTS (and most likely later releases).

However, you may try to create a launcher by hand. Make a blank text file and add these lines in it:

[Desktop Entry]
Name=<NAME OF THE APPLICATION>
Comment=<A SHORT DESCRIPTION>
Exec=<COMMAND-OR-FULL-PATH>
Type=Application
Terminal=false
Icon=<ICON NAME OR PATH TO ICON>
NoDisplay=false

When you save it, rename it to NAME.desktop and make it executable

Hope this will help. Cheers!


Unplugged USB stick while formatting - now not recognized any more

sudo apt-get install gparted

Launch GParted from the dash, switch to the usb stick, choose Device → Create Partition Table (accept the default setting), create a new partition.


Looks like a major breakage to me. There are meta-packages that don't work at all, some link to the old 3.2.0 kernel.
For example, doing apt-get source linux-image-$(uname -r) will fail, as it tries to use linux-lts-quantal instead, and then fails as that package cannot be found. We've been trying around for two hours, before resorting to using their kernel git repository (which involved changing our scriptomatic relying on apt-get source, which we tried to prevent).

It's beyond me how you can "update" a release you call LTS in such a messed up way.

The solution for us right now is to use their kernel git repository, although it is huge and takes ages to clone.

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-precise.git
cd ubuntu-precise
git tag -l Ubuntu-*     # show all tagged versions
git checkout -b temp Ubuntu-lts-3.5.0-28.48     # pick the one matching "uname -r"


How to configure preseed file to make grub configuration point to correct drive

The solution is actually not to use the last update-grub, as it restores configuration to the one that is currently in use during installation.

So my preseed step is:

d-i preseed/late_command string \
in-target sed -i 's#^\(GRUB_CMDLINE_LINUX_DEFAULT="quiet\)"$#\1 root=/dev/sda1"#' /etc/default/grub \
in-target grub-mkconfig -o /boot/grub/grub.cfg ; \
in-target sed -i 's/root\=\/dev\/sdb1/root\=\/dev\/sda1/g' /boot/grub/grub.cfg ;


windows maximize to full screen and bottom hides behind the panel

how about this:

Settings Manager -> Panel -> Display -> Uncheck "Don't reserve space on borders"


As mentioned in my comment, I fixed this issue by chowning the /var/www/ directory recursively to my current user, and chmodding the directory to 755, restarted and it seemed to be working, so hopefully this was the actual fix.


There's no battery indicator in Ubuntu 14.04 LTS?

Your notebook is similar at mine, same Intel chipset and hardware configuration.

I went through the same problem. I thought it was poor contact of battery, but it was a bug in hardware management. I updated the UEFI firmware (ex-BIOS) and the problem disappeared.


Is MacBook Pro 2016 with Touch Bar Compatible with Ubuntu 17.04?

Situation isn't as bad as last year when it came out but it's still pretty bad. Not just for Ubuntu but for whole Linux

List of Devices and their respective state as of now

Even booting as it is isn't possible, you need to change kernel parameters for that

if you want to tinker with it you can try to install it but if you want to use it on daily basis I will recommend you not to do so

GitHub  State of Linux on the MacBook Pro 2016


Error message "sudo: unable to resolve host (none)"

Two things to check (assuming your machine is called my-machine, you can change this as appropriate):

That the /etc/hostname file contains just the name of the machine.
That /etc/hosts has an entry for localhost. It should have something like:

 127.0.0.1    localhost.localdomain localhost
 127.0.1.1    my-machine

If either of these files aren't correct (since you can't sudo), you may have to reboot the machine into recovery mode and make the modifications, then reboot to your usual environment.


Server 16.04.02 Installation Issues with a Dell PE T20

Broadly speaking, there are three types of RAID:

Hardware RAID -- This type of RAID is implemented in firmware on the disk controller, and is common on server computers. Your Dell T20 is officially a server computer, so it might have a hardware RAID controller; but that's not 100% certain. When using this form of RAID, all the RAIDed devices look like a single hard disk (/dev/sda, typically) to Ubuntu, and no special in-OS configuration is required.
Motherboard-based software RAID -- This is a type of RAID that relies on drivers in the OS, but its standards are defined by the motherboard manufacturer, and there's also minimal support in the firmware. This is good for using RAID on a dual-booting computer, but I do not recommend using it on a Linux-only installation. This type of RAID is sometimes called "fake RAID," but that's a somewhat misleading term; it's RAID, just not hardware RAID. In Ubuntu, this type of RAID is managed with the dmraid tool.
Linux software RAID -- This is another type of software RAID, but instead of a manufacturer-defined standard, it relies on standards defined by Linux developers. As such, it's better for a Linux-only installation (including a dual-boot between Ubuntu and another Linux distribution). This type of RAID is managed in Ubuntu with the mdadm tool.

You appear to be trying to use motherboard-based software RAID, which IMHO is the worst type of RAID to use. I recommend you abandon that attempt. Instead, try to ascertain if your computer supports true hardware RAID. If it does, use that; it will be simpler in terms of Ubuntu's configuration and, depending on the RAID level, is likely to impose less CPU overhead.

If your computer does not support hardware RAID, I recommend you disable the RAID features in your firmware setup utility and instead use Linux software RAID. That's likely to be less troublesome. Of course, if you're dual-booting (which would be odd on a server), using motherboard-based software RAID may be your only choice.

In any of these cases, I know of no easy to convert from a non-RAID to a RAID configuration; you'll need to re-install (or back up and restore your current installation).

See the Ubuntu software RAID wiki for more on setting up that type of RAID, or the fake RAID HOWTO if you decide to use that approach. Hardware RAID requires no special Ubuntu configuration; but it must be set up using manufacturer-provided tools similar to the firmware setup utility. You should read the manufacturer's documentation or watch carefully as the computer boots for hints about how to enter the RAID configuration tool.


It is often very difficult to remove a [second] desktop environment completely without damage on the original desktop environment. I think you have to live with these glitches or reinstall standard Ubuntu to get a clean Unity desktop environment again.

-o-

I have a system with Xubuntu 16.04.1 LTS and lubuntu-desktop installed. It is mainly run as Lubuntu, and it works well for me.

I would not combine Unity with any other desktop environment. Instead I would try other desktop environments live, 'Try Kubuntu ...', or install a separate system in its own partition, drive, computer or in a virtual machine.


How should OpenCL from CUDA be set up in Ubuntu 16.10?

Your problem doesn't seem to be with OpenCL or CUDA, but is instead in the way you're building this particular project.

To build oclvanitygen, try instead running make oclvanitygen, or to build it manually:

gcc -o oclvanitygen oclvanitygen.c oclengine.c pattern.c util.c -lpcre -lcrypto -lm -pthread -lOpenCL

The undefined references listed in your build error, such as vg_exec_context_new_key, are from files in the vanitygen project itself, not OpenCL, so adding these files to the build fixes it.


But i want to know the reason for its failure.

The reason is right there: you do not have a "sane" (i.e. proper) build environment.

Did you install the essential tools with sudo apt-get install build-essential? If not, do that first.

Then, if you are trying to compile a package that is available in the repositories, do yourself a favor and run the below to get all its dependencies without having to figure each one out individually:

sudo apt-get build-dep uget -y

The correct steps to follow after that are:

cd uget-source-directory
./configure
make
make install

If apt-get build-dep is not possible for some package, look at the README or INSTALL files in its source directory to find out its dependencies. Otherwise, you'll have to figure the dependencies out one at a time and install them like this:

configure: error: The intltool scripts were not found. Please install intltool.


Why isn't X2Go Server in the main Ubuntu repository?

As fkraiem says, it's because nobody packaged it for Debian. And in Debian, it seems a few people expressed in intent to package it, but never followed through. See Debian bug report 465821 for more information (it's been sitting around since 2008).


I seems that my configuration got really screwed up. What finally helped is to completely purge the chrome-stable package and completely remove following config directory:

/home/USERNAME/.config/google-chrome

I hope it helps somebody.


Error while installing pip for python2.7

The error says permission denied. You need to have root privileges.
The command should be sudo python get-pip.py


Lubuntu keyboard layout changed after upgrade

You can make adjustments to your keyboard layout by right clicking the flag or code in the LXPanel.  Choose Keyboard layout handler settings.  If you prefer the command line, see

http://lxlinux.com/#19


Upgrade to 12.04, first boot stuck on Checking Battery State

I've only ever seen this happen on my laptop when I installed the Proprietary ATI graphics driver when the integrated graphics were also enabled (switchable graphics issues).

If you have the model with an nvidia graphics device, you will want to try getting to a command prompt and reinstalling the video driver.

sudo apt-get install nvidia-current


You can download the apt .deb package, depending on your system, from the following locations. Once downloaded, open a terminal(Ctrl-Alt-t) and run the appropriate commands indicated below.

Downloading apt for 12.04:

The 32-bit version of apt can be downloaded here.

To install:

sudo dpkg -i apt_0.8.16~exp12ubuntu10.10_i386.deb

For the 64-bit version:
download here

To install:

sudo dpkg -i apt_0.8.16~exp12ubuntu10.10_amd64.deb

Downloading apt for 12.10:

The 32-bit version of apt can be downloaded here.

To install:

sudo dpkg -i apt_0.9.7.5ubuntu5.4_i386.deb

For the 64-bit version:
download here.

To install:

sudo dpkg -i apt_0.9.7.5ubuntu5.4_amd64.deb


need to restart network-manager after upgrading to xenial xerus

I am working with ubuntu mate 16.04 and the same problem. This is a bug, and you can resume by running

sudo service network-manager restart

Waiting for this bug to be corrected, I have wrote the line

service network-manager restart

(without sudo) in my /etc/rc.local file.

This way the command is launched each time I start my session...
To modify the file, we can edit with something like

sudo gedit /etc/rc.local

Hope network-manager will be updated soon.


The same problem happened with me.

I think the only solution is to disable airplane mode manually.  I have tried looking on the internet but there is nothing else I can find on the matter.


I guess I know your problem.

PPS is based on mplayer. What you should do is just install mplayer first and then install this PPS.

How to install mplayer? Just open terminal (Ctrl+Alt+T) and Copy/Paste code bellow.

sudo apt-get install mplayer


after some playing with xinput (xinput --list / xinput --list-props with_proper_id) I managed to fix this on same laptop/Ubuntu combination by changing python file /opt/extras.ubuntu.com/touchpad-indicator/share/touchpad-indicator/touchpad.py:

85,86d84
<       # fix - only "device enabled" was set before
<       ejecuta(('xinput set-prop %s "Synaptics Off" 0')%id)
93,94d90
<       device_enabled = False
<       synaptics_off = True
98,106c94,95
<                   # fix
<                   #return True
<                   device_enabled = True
<           if line.lower().find('synaptics off')!=-1:
<               if line.split(':')[1].strip() == '0':
<                   synaptics_off = False
<       # fix - only "device enabled" was checked before
<       #return False
<       return device_enabled and not synaptics_off
---
>                   return True
>       return False
118c107
<           self.set_touchpad_enabled(id)
---
>           print(self.set_touchpad_enabled(id))

First diff is in method "set_touchpad_enabled" and second in "is_touchpad_enabled".

Changed methods should look like this:

    def set_touchpad_enabled(self,id):
            ejecuta(('xinput set-prop %s "Device Enabled" 1')%id)
            ejecuta(('xinput set-prop %s "Synaptics Off" 0')%id)

    def is_touchpad_enabled(self,id):
            lines = ejecuta('xinput --list-props %s'%id)
            device_enabled = False
            synaptics_off = True
            for line in lines.split('\n'):
                    if line.lower().find('device enabled')!=-1:
                            if line.split(':')[1].strip() == '1':
                                    device_enabled = True
                    if line.lower().find('synaptics off')!=-1:
                            if line.split(':')[1].strip() == '0':
                                    synaptics_off = False
            return device_enabled and not synaptics_off

Hope this help.


I had this same Problem when i made the switch to Ubuntu. first partion to create is a swap file So select /dev/sda then there will be a drop down box that you can add swap set that partion to 8000 then "Create" . Then the rest of drive you will need to make it " / " (aka root) then Create partion then try to install from there.


Need help with error after setting permission to save anything in var/www/html?

When you type adduser hafiz www-data it creates a new user, hafiz and add it to the www-data group. When you type adduser hafiz harron www-data you are not using the command correctly.

If you simply want to save files to the /var/www/html directory you just need to make sure that your user has permission to write files so that group. Since /var/www/html is the default webserver directory it should be owned by www-data.

gpasswd -a YourUserName www-data

Afterwards logout and back into your computer and you should be able to edit
those files. This command will add your user to the www-data group. The output from the commands you posted ls -la shows that the /var/www/html page is owned by user www-data and group www-data

drwxrwxr-x 6 www-data www-data  4096 جولاي 22 21:22 .

The '.' stands for the current directory.
After you add a user to a group you Must logout and back in in order for it to take effect. You can see what groups you are a part of by typing groups in at the command line while your are logged in.


if you have windows 7 on one HDD and Ubuntu on another HDD all you have to do is remove the Ubuntu drive and it will boot into Windows 7.

This then saves your Ubuntu installation in case you ever decide you want to go back to it all the while keeping Windows 7


Does `apt-get install` install dependencies of dependencies?

Yes it installs everything needed, and by default also installs everything recommended.


Only Erease Disk and Something else options when installing Ubuntu along Windows 8

If you choose something else option it will directs you to select the partition in which you want to install ubuntu.And also force you to choose the linux-swap partition size.

Please allocate linux-swap partition size by following this link.


Does Ubuntu 16.04 LTS have Blue Ray Support?

there are two aspects:

Formatting Blu-ray content  for entertainment video players.

This is indeed in bad shape, because nobody seems to be masochist enough
to implement UDF 2.5 filesystem production. That's what the article shown
by Terrance describes.

Burning data to Blu-ray media.

This is known to work with GUI programs K3B and Xfburn. They can put readily
formatted images onto BD-R and BD-RE media with one or more layer (25, 50,
or 100 GB). They can also produce ISO 9660 filesystems for data storage.

Command line programs which can write to Blu-ray are: growisofs, cdrskin,
cdrecord, xorriso. Assumed we have the data preformatted in file image.iso:

growisofs -Z /dev/sr0=image.iso
cdrskin -v dev=/dev/sr0 -eject image.iso
cdrecord -v dev=/dev/sr0 -eject image.iso
xorriso -as cdrecord -v dev=/dev/sr0 -eject image.iso

Not suitable is program wodim, even if it runs under the name "cdrecord".

Have a nice day :)

Thomas


Your desktop is located at ~/Desktop, also $HOME/Desktop. By using /Desktop, you're asking the search to start at the root of the filesystem tree, /.

You can use file ~/Desktop/J20820, but since you say it's an empty file that won't work.


While it is technically possible (using the force flag) to create a filesystem that occupies a whole device, other than on some USB keys this is a very unusual (and discouraged) thing to do.

What is expected by mkfs is that you create a partition table first.

On the command line you can use:

parted - for an all-in-one partition and formatting system
fdisk - for old MBR-type partition tables (limited to 2TB per partition)
gdisk - for newer, larger GPT partition tables

If you prefer to use a GUI there's:

gnome-disks (recommended)
gparted (as long as you're not making special filesystems like exfat)

All of these programs will prompt you to create an empty partition table first, which you then add partitions to.  If the application doesn't format the partition for you, then you can use mkfs.

When you have a partition table with partitions in it, the partition will have a number.  e.g. mkfs /dev/sda2


Easiest way to assign a static IP address for a LAMP server / VBox snapshot

The correct syntax for specifying nameserver addresses in /etc/network/interfaces is

iface eth0 inet static
    ...
    dns-nameservers 1.1.1.1 2.2.2.2

In your /etc/network/interfaces as quoted in your question you have named the interface etho rather than eth0.
You can omit the network option in /etc/network/interfaces. It is no longer needed or used.

After editing /etc/network/interfaces do the following to activate the changes.

    sudo ifdown eth0
    sudo ifup eth0


Download

The first step is to download ffmpeg. It's a standalone binary so you don't need to install it. Just execute it directly.

Your (expired) Ubuntu version offers avconv which is missing many features including several concatenation functions.

Concatenate

Use the concat demuxer if you want to attempt to join them with no re-encoding. All videos must have the same parameters.

Use the concat filter if the videos vary in width, height, frame rate, etc. The filter will require re-encoding.

Note: You never did provide the info I requested a year and a half ago in my comments to your question, so I can't suggest which one you specifically need to use. Also, I can't provide examples specific to your inputs without this info, so the following examples are generic and may not work without additional options.

concat demuxer

Make a text file listing your inputs:

file 'input0.webm'
file 'input1.webm'
file 'input2.webm'

Now run ffmpeg:

ffmpeg -f concat -i input.txt -c copy output.webm

concat filter

In this example input1.webm has a bigger width x height than the others. This example command will scale input1.webm so it matches the other videos:

ffmpeg -i input0.webm -i input1.webm -i input2.webm -filter_complex \
"[1:v]scale=640:-1[v1]; \
 [0:v][0:a][v1][1:a][2:v][2:a]concat=n=3:v=1:a=1[v][a]" \
-map "[v]" -map "[a]" output.webm

Also see

FFmpeg Wiki: Concatenate


1 - Go to Synaptic Package Manager

2 - Enter [package name] into the search field

3 - Highlight the installed package

4 - Click on Package on the top row

5 - Select Lock Version

Done, now [package name] will no longer be updated.


Ubuntu USB is designed as "portable" Ubuntu, but, if you want to use Ubuntu upon your Mac, then you'll need to specific the USB to function as installer, not as a "portable" version.


How to select installing packages via DVD while installing Ubuntu?

What you are trying to do is possible in two ways, and I'll give you the most straightforward way.

First, make a LiveCD/DVD
Secondly, boot the LiveCD/DVD
Before running the installation, install an programs you want to be included in your actual installation (if it is a large set of programs, you need to have a substantial amount of RAM, because the LiveCD/DVD uses the RAM as a "drive" for storing information.
Once you have installed all that you want, install the system as usual using the Ubuntu installer.

You should now have a preconfigured system with all the software you want.


Ubuntu 18.04 sound suddenly stopped working

For now, problem seems to have gone away after following some instructions from here: No sound from speakers on Ubuntu 18.04

Actually, I've done sudo alsamixer, fiddle a bit with it and... now it's working; when tens of reboots wouldn't help a tad.


What does this code do if entered in a terminal?

A PPA, or Personal Package Archive, is a collection of software not included in Ubuntu by default.

sudo add-apt-repository ppa:langdalepl/gvfs-mtp

This  will  fetch the PPA's key adding the package and enabling your Ubuntu system to verify that the packages in the PPA have not been interfered with since it was built.
The PPA belongs to  user name  langdalepl and the PPA is called gvfs-mtp

sudo apt-get update

This pulls down the latest list of software from each archive Ubuntu knows about including the PPA you just added.

sudo ppa-purge ppa:langdalepl/gvfs-mtp

Reverses what you have just done

I would also suggest reading about PPA security  Are PPA's safe to add to my system and what are some "red flags" to watch out for?


I was facing the exact same issue. The cursor was somehow stuck at the beginning of the video while using kdenlive.
I tried the fix mentioned here to delete the ~/.config/kdenliverc file, but in fact I couldn't find such a file in my system.

I could not even find a .kdenlive directory in my home folder as suggested on other forums.

Finally what solved the problem for me was switching to the Project Monitor instead of the Clip monitor in kdenlive. I have no idea how I switched to the Clip monitor in kdenlive, but when I switched back to the Project Monitor, the cursor was again movable.


If you run gpg with sudo, you are in effect running gpg as the root user. Thus you are trying to find the keys associated with the root user's gpg keyring, located in /root/.gnupg.

I am guessing you want to list the keys in your keyring, in /home/(username)/.gnupg. To that end, what happens if you run

gpg --list-keys

You should see all the keys in your keyring. And your own key should be there.

This assumes that Kleopatra is setup in such a way that it places the  public-private key-pair you created in the ~/.gnupg directory.

PS - If you are going to use gpg on the command line, I recommend you install apt-get install gnupg2.


How do I get the stylus working on a Lenovo X220 Tablet?

I have just found in a previous question an answer directing to the website --> http://www.thinkwiki.org/wiki/Wacom_Serial_Tablet_PC_Stylus

Hope this helps!


Your freezing problem may be caused by an issue with your EVGA GTX 570 graphics card. Nothing in your graphical interface responds is often caused by an issue with your graphics processor, for example a missing graphics driver. Unplug the HDMI cable to your Sony television while you are troubleshooting the problem. Then you can reconnect the television after your operating system is working correctly.

Open the Additional Drivers utility (Dash -> Additional Drivers), and select the latest Nvidia driver, version 331 (proprietary, tested). Click the Apply Changes button to install it and reboot the computer to enable it.
Make a note of the superclocked/overclocked settings of your graphics card for backup/restore purposes. Remove the Superclocked/overclocked settings from your graphics card and select its normal settings instead.


So I am a security and systems/network engineer running Ubuntu as my daily driver.
Not sure what advantages the OS on itself really gives you when it comes to security. I just like the fact that a lot of people use it, so the troubleshooting is relatively available and the GNOME desktop isn't bad. I tried Arch but having rolling release is a PITA. People would recommend Kali but it has too much stuff I don't really use too much day to day and I like to choose it all myself. My point is Ubuntu isn't the epitome of security in any way.
My suggestions for a PDF reader: PDFsam Basic en PDFsam Enhanced (paid)
AFAIK this allows you to split pages of PDF's and also merge them together in 1 doc. Enhanced has many many features.
Linux also has commandline tools to inspect metadata such as exif or file.


Download Linaro and add path at the bottom of your ~/.bashrc file.

  PATH=$PATH:"Path_to_Linaro_Extract_Directory/bin"

https://www.youtube.com/watch?v=OxEUQKW_QEk


Can´t force upgrade to Tomcat 7.0.42 from Ubuntu 12.04 (Precise Pangolin)

Just download the Tomcat 7.0.42 binaries from its => homepage.

Extract it to a appropriate directory, e.g. /opt/tomcat and chown to proper user:group. Then you can start using it, start and stop scripts are in $CATALINA_HOME/bin. You don't have to use the Debian / Ubuntu package anyway.

NOTE: the configuration files will be under $CATALINA_HOME/conf instead of /etc/tomcat7. Also, if you want it to be started using sysvinit or upstart, you may need to change the init script a little bit and use update-rc.d or manually create symbolic links in /etc/rcX.d directory.


Is there a plugin for keeping desktop icons same size and ordered?

I have the same problem, which I partially resolve by right ckicking and unchecking the keep aligned choice, arranging the icons close to where I want them to be, then checking the keep aligned choice again and seeing if it got them right.  The icons are inclined to get mispositioned when keep aligned is rechecked, so you may have to repeat this several times.

Unfortunately, the icons sre likely to get scattered about the next time you log in, so I am afraid that this mismanagement looks like a bug in 14.04.


You can install all of the Mint specific packages by adding the official Mint repositories. You can do this by adding:

deb http://packages.linuxmint.com/ katya main upstream import

as a software source.

You may want to make sure you have all of the repositories that come with Mint by default. You can do this by pressing Alt+F2 and entering gksudo gedit /etc/apt/sources.list. You can then edit the text file to make sure each of these lines exist:

deb http://packages.linuxmint.com/ katya main upstream import
deb http://archive.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ natty partner
deb http://extras.ubuntu.com/ubuntu natty main
deb http://packages.medibuntu.org/ natty free non-free

Once you have done this, open Synaptic Package Manager and click reload. You can then install the packages you want.

Install the package mintmenu to install the menu.

To get the default themes install: mint-artwork-common, mint-artwork-gnome, mint-x-icons, mint-x-theme and mint-elementary-icons.

To get the default wallpapers install: mint-backgrounds-katya and mint-backgrounds-katya-extra.

Once these are installed you can delete your top panel and modify the applets on your bottom panel. By default, the bottom panel in Mint has the following applets (in order left-right):

Mint Menu
Show Desktop
Window List
Notification Area
Application Indicators
Clock

You can also change your theme and background to Mint ones if you wish.


I want to program the graphic UI program for Ubuntu...What is the starting point?

The big GUI toolkits on Linux are Qt as used by e.g. KDE and GTK as used by e.g. GNOME. Both can be used with desktops that are based on the other one but  the programs will feel less good integrated and there may be some glitches when using them.

In addition to this most desktop environments provide some own APIs which give you enhanced functionality and integration for this one desktop but usually at the price of less compatibility with other desktops.

So the first step is to decide what your target environments are. Usually there are some developer resources at the desktop`s web site (e.g. KDE, GNOME) to help you getting started.


SSH VM in VirtualBox with host Ubuntu16 and vm Ubuntu14

You need to configure a bridged adapter for the vm so it gets an ip address on your network instead of the virtual network that VB provides. Then you will be able to ssh into the vm using the ip it gets assigned.


How to recover a removed folder instead of recovering the whole partition

PhotoRec may be able to recover the files.


How to get Nautilus to open in location navigated to in Terminal on 15.10

nautilus . works perfectly using the Nautilus version from the default repositories, so it's probably a bug in the Nautilus version from the GNOME repository.

As a workaround until the bug is fixed, you may use this command to open Nautilus in the current working directory:

nautilus "$PWD"


Opening images sorted by modification date/size/type/etc

Well I found here that installing gThumb is an alternative to it. Other suggestions welcome.


In WSL, how do I change from root to my user_account?

From the root account, you can check the password database. Your non-system users will normally have UIDs in the range 1000 - 65533. So for example:

getent passwd | awk -F: '$3>999 && $3<65534'

Alternatively just look at the contents of the /home directory, since by default users' home directories are created with the same name as the username:

ls /home

Using this information, you should then be able to set the default user using the method described here:

How to change default user in WSL Ubuntu bash on Windows 10


I finally found the solution after much searching. I had a ~/.XCompose which probably had a syntax error in it. I removed the file and it started working again.


Try these -- you will just need the IP address of the XP machine, and your username and password on that computer:


I think I figured out the issue.

/proc/meminfo reports the same memory info that landscape-sysinfo does.

Here's the thing, 'free' reports a lot of memory info. To get the data supplied by 'free' to match both landscape-sysinfo and /proc/meminfo, the calculation is:

(used - [-/+ buffers/cache]) / total

the -/+ buffers/cache value is the one right below 'used'

Now your % free should match what is reported by landscape-sysinfo


Ubuntu 16.10 Postgresql ver 9.6 error 5432

This was the error  FATAL: private key file "/etc/ssl/private/ssl-cert-snakeoil.key" has group or world access

Solved it with the help of this https://gist.github.com/GabLeRoux/0c60f9be0c28b6b41f64cb55474b0ccb

Fixed ownership and mode

sudo chown root:ssl-cert  /etc/ssl/private/ssl-cert-snakeoil.key
sudo chmod 740 /etc/ssl/private/ssl-cert-snakeoil.key

now postgresql starts! (and install command doesn't fail anymore)

sudo /etc/init.d/postgresql start


Ubuntu with no taskbar and everything 16.04

Upgrade to the new ubuntu 20.04 or 20.10. It'll work there. You're using a very very older version of ubuntu. I'd suggest upgrading, it'll fix your problem


stop program from terminal if running for more than x seconds

Just use timeout from coreutils package in the repositories:

Installation: sudo apt-get install coreutils

Usage: timeout [-signal] time command


Most probably you already have 4 primary partitions, which is the maximum. If you already have 4 primary partitions, Ubuntu cannot add another partition for itself.

You would have to rethink your partition table. For example, you could delete one partition and create an extended partition instead. Extended partitions are like wrappers which can contains many partitions.


Installing printer samsung ml-1860 with xubuntu 14.04?

I have this same printer model and I am using Ubuntu 14.04.  I downloaded the same driver from Samsung and got the same error.  I read on a different forum that the Samsung driver has an error on it.  I was instructed to download the driver for the ml-1860w which is basically the same printer but with added wifi printing functions.  I did and my printer works perfectly now.

http://www.samsung.com/ca/support/model/ML-1865W/XAA-downloads#

I downloaded the driver.

I used the commands: cd ~/Downloads/uld

And then: sudo sh install.sh

(your download might be in a different location)


How to 'cd' to a directory found with 'find'?

Your prompt says:

Peter@ubuntu:~$

The part between : and $ is:

~

That represents the folder you're currently in. ~ is shorthand for your home folder (/home/Peter). See this section of the Ubuntu community documentation for more information about abbreviations in directory names, and related concepts.

You ran the command cd Rubyscript. The folder name after cd did not start with a /, so it is a relative path--relative to your current location (which is /home/Peter). cd Rubyscript, run from there, is thus equivalent to:

cd /home/Peter/Rubyscript

But the Rubyscript folder is not located in /home/Peter. As the find command said, it's located in /media/aruprakshit/FA686DE4686DA05D.

Therefore, you should run this command instead:

cd /media/aruprakshit/FA686DE4686DA05D/Rubyscript

That will get you there. (Assuming you have permission to enter that folder. Which you probably do--its volume name looks like a UUID, and its length indicates it's probably an NTFS volume. If you mounted an NTFS volume, you usually can enter any folder within it and perform any read or write action.)


Sound card "Generic ffff Generic" after hdajackretask

I was able to solve this by booting into Windows and reinstalling the appropriate Conexant driver.


Should external hard drive have 777 on RWX?

Lets assume your device is /media/username/thedevice to apply the permissions to all files and folders you would do:

sudo chmod 777 -R /media/username/thedevice

A real example is a external HDD that I have in /media/luis/backups and to avoid all permission related issues I would do:

sudo chmod 777 -R /media/luis/backups

Now if the file system is not ext4 or linux based but it is for example NTFS (Specially NTFS) I recommend solutions like:

How to correctly fix a "dirty" NTFS partition without using chkdsk

Cannot write permissions NTFS partitions


Wine ODBC connection to local PostgreSQL database

This turned almost strait-forward. ODBC backend seems supported just for 32-bit wine prefix. So if running 64-bit Ubuntu, default prefix will be 64-bit, and these are necessary steps to install ODBC support:

create 32bit wine prefix (if it doesn't exist):

WINEPREFIX="/home/zetah/prefix32" WINEARCH='win32' wine 'wineboot'

install necessary libraries:

WINEPREFIX="/home/zetah/prefix32" winetricks jet40 mdac28

install the program that needs ODBC in this prefix
after downloading 32-bit ODBC driver from http://www.postgresql.org/ftp/odbc/versions/msi/ install it:

WINEPREFIX="/home/zetah/prefix32" wine msiexec /i psqlodbc.msi

After this accessing local PostgreSQL server should be possible inside wine program through ODBC.


Ubuntu 12.04 - how to do power off and power on of USB interfaces?

As of the 2.6.35 kernel, the level file is depreciated and now replaced by control.

The auto state is the normal state in which the kernel is allowed to autosuspend and autoresume the device.
In kernels up to 2.6.32, one could also specify suspend, meaning that the device should remain suspended and autoresume was not allowed. This setting is no longer supported.

More details can be found in the current Power management for USB kernel documentation.


Keyboard shortcut to launch Konsole in Ubuntu

Click the icon in the very top-right of the screen to open system preferences, the go to the subsection labelled "Keyboard". Once there, click on the "Shortcuts" tab and use the following steps to add as many custom shortcuts as you like!

Click the plus sign to add a new shortcut
Fill in the name you want to remember it by, and the actual command
in the command field (in this case, the command is console).
Click where it will say "Disabled" to set the hotkey you like (I
used Ctrl+Alt+K).
Press the hotkey to open Konsole (in my case, Ctrl+Alt+K).


How can I increase the space of /home without losing my data?

You could boot a Knoppix DVD and resize the NTFS partition Ubuntu is stored in a file on. After resizing it, you can create a ext4 partition in the free space. Now you can boot Ubuntu and copy all your /home to the new partition. You would now be able to delete /home on the old Wubi partition, add the new partition in /etc/fstab, and you would have migrated your /home to a real partition with more space.


Turns out the answer was to run

sudo dpkg-reconfigure postfix


How to install on and boot from external SSD on UEFI?

Your SSD is considered "removable media" by UEFI, so the place for the bootloader which UEFI runs is actually /EFI/Boot/bootx64.efi from the SSD's EFI partition.   You might have to copy the Ubuntu bootloader(s) from /EFI/ubuntu there and rename them to bootx64.efi.  If you are running secure boot, copy /EFI/ubuntu/shimx64.efi to /EFI/Boot/bootx64.efi and also copy /EFI/ubuntu/grubx64.efi to /EFI/Boot/grubx64.efi (that's the signed version).  Without secure boot, just copy /EFI/ubuntu/grubx64.efi to /EFI/Boot/bootx64.efi  (the unsigned version).  The grub.cfg file should be in /EFI/ubuntu/grub.cfg (and that should be just a 3 liner which brings in the maintained grub.cfg from the regular /boot/grub location.

The removable media's EFI partition is set up just like the hard disk's EFI.  FAT filesystem, flagged bootable, (and created with the efi type, "ef", check the type list, might have zeros too in some tools).  Look at the live install media, it meets the criteria.  (FAT filesystem, flagged bootable, directory /EFI/Boot, efi bootloader).

With the SSD booting alone, you might have to edit the grub.cfg files after you add two hard disks.  The two grub.cfg files are in (EFI partition)/EFI/ubuntu.grub.cfg (a three liner) and /boot/grub/grub.cfg (the full config file).  Change any hd0 references to hd2 (assuming the hard disks now get 0 and 1), and if you see any /dev/sda references, change those to /dev/sdc... USB is set to first place in the UEFI boot settings, right?  When you invoke the efi boot menu (some function key at power on probably), is USB first?  When you select USB, does it try to boot from the SSD?


Banshee won't connect to Amazon mp3 store

Open a terminal and run gsettings reset-recursively org.gnome.system.proxy if are you not using a proxy to connect to the web.

If you do need to use a proxy, it appears there is an issue with one of the proxy settings. Fix it and everything should work again.