Raid Shows Up as Multiple Drives - Can't Mount

You are using dmraid / fakeraid - for that you should not format the underlying drives, but the resulting fakeraid device. You may have damaged the BIOS metdata by partitioning the underlying drives so:

Use your BIOS to break and reinitialise the raid set
partition the raid set - it will be something like /dev/sil_biaebhadcfcb0 or /dev/mapper/sil_biaebhadcfcb0
Install onto the partitions you have created.

What you've appeared to have done is created two RAID super blocks, one on the raw disk and on the partition.

/dev/sdc: sil, "sil_biaebhadcfcb", stripe, ok, 976771072 sectors, data@ 0
/dev/sdb: sil, "sil_biaebhadcfcb", stripe, ok, 976771072 sectors, data@ 0

Says it's using the raw disk, the dmraid is actually working, problem is you have a extra data lying around which might give you a bad day if one of the drives is marginalized, like the first superblock becomes unreadable and dmraid happily scans the the second one, tries to repair it with the partner, which is still using the whole disk, and now you've got a size mismatch.

If it were, me, I would wipe everything out and start over. I don't have a ready solution that will remove the superblock from the partitioned space without running the risk of harming the superblock on the raw disk.

Did the documentation you followed not mention that the expected result of this operation is a new block device in /dev/mapper?

A  "low level" format can be achieved by dd if=/dev/zero of=/dev/sdX


Ubuntu 14.04 Wine program files association

Lets create an association file!

Open up your Terminal and execute command:

  gedit ~/.local/share/applications/ViewInSumatra.desktop

You will get the text editor. There, paste something like below:

  [Desktop Entry]
  Name=Sumatra
  Exec=wine /home/$USER/.wine/c_drive/Program\ Files/Sumatra/sumatrapdf.exe %F
  Icon=evince
  Type=Application
  Categories=Viewer
  StartupNotify=false
  Terminal=false
  MimeType=application/pdf

NOTE: You must replace /home/$USER/.wine/c_drive/Program Files/Sumatra/sumatrapdf.exe with the real path of Sumatra PDF Reader.

Once done save the text file.

Now, right click a PDF file > choose Open With > CLick View All Applications
From the application list, choose Sumatra:

Now all the PDF files should be opened with Sumatra

With that said, I must say that Sumatra PDF is no match for KDE's Okular


I think you need to use a monofont to avoid this issue. Some other fonts may work sometimes, however, all monofont characters occupy the same amount of space.

Any "monospace" font will work well.

en.wikipedia.org/wiki/Monospaced_font

Also, here is a list of monospaced fonts.

More monospaced fonts.

7-of-best-ubuntu-terminal-fixed-width

Thanks @daltonfury42, you can change this setting by selecting Edit > Profile Preferences.

Under the General tab, select Custom Font and click on the font name to change.


How can I rip a CD in ALAC or AIFF formats?

There is a script circulating on the internet for a year of two that should fulfill your needs. It does following things:

Automatically check for and install sound-juicer, ffmpeg and metaflac no further configuration of these are required;
Run sound-juicer and let you select the cd metadata from a database and click 'Extract' to extract;
Close sound-juicer after extracting all of your CD's for the conversion to take place;
Capture the metadata from the FLAC file and extract it ready for the ALAC format;
Perform the FLAC to ALAC conversion with ffmpeg and the metadata;
Move the processed FLAC files into the processed directory;
Delete the source directories which have been processed.

Here's how to implement the script in 5 steps:

1)  Create a bash script 'CDRip':

cd /usr/local/bin && gedit /usr/local/bin/CDRip

2) Paste in the bash script from below, The base directory lines should be edited into your file paths:

##############################
### SET YOUR PARAMETERS ###
##############################

#Set the base directory
sBASEDIR="/DATA/Music/"

#Set directory sound juicer rips to
sIN="Ripped"

#Set directory ALAC files are placed in
sOUTALAC="Automatically Add to iTunes"

#Set directory converted FLAC files are placed in
sOUTFLAC="Processed"

###################################
### DO NOT EDIT BELOWTHIS LINE ###
###################################

#Check and install flac
problem=$(dpkg -s flac|grep installed)
echo "Checking for flac: $problem"
if [ "" == "$problem" ]; then
     echo "No flac. Setting up flac"
     sudo apt-get --force-yes --yes install flac
fi

#Check and install ffmpeg
problem=$(dpkg -s ffmpeg|grep installed)
echo "Checking for ffmpeg: $problem"
if [ "" == "$problem" ]; then
      echo "No ffmpeg. Setting up ffmpeg"
      sudo apt-get --force-yes --yes install ffmpeg
fi

#Check and install sound-juicer
problem=$(dpkg -s sound-juicer|grep installed)
echo "Checking for sound-juicer: $problem"
if [ "" == "$problem" ]; then
      echo "No sound-juicer. Setting up sound-juicer"
      sudo apt-get --force-yes --yes install sound-juicer
fi

#Start sound-juicer
sound-juicer

###############################
### START ALAC CONVERSION ###
###############################

#Set up some directory paths based on the variables
sINPATH="$sBASEDIR""$sIN"
sOUTALACPATH="$sBASEDIR""$sOUTALAC"
sOUTFLACPATH="$sBASEDIR""$sOUTFLAC"
echo "Variables set"

#Create ALAC output directory structure
find $sINPATH -type d | sed "s/$sIN/$sOUTALAC/" | xargs -d'\n' mkdir

#Create processed FLAC directory structure, prevents future reprocessing
find $sINPATH -type d | sed "s/$sIN/$sOUTFLAC/" | xargs -d'\n' mkdir

#Capture the FLAC meta data for conversion to ALAC metadata
for i in "$sINPATH"/*/*/*.flac
do

ARTIST=`metaflac "$i" --show-tag=ARTIST | sed s/.*=//g`
TITLE=`metaflac "$i" --show-tag=TITLE | sed s/.*=//g`
ALBUM=`metaflac "$i" --show-tag=ALBUM | sed s/.*=//g`
GENRE=`metaflac "$i" --show-tag=GENRE | sed s/.*=//g`
TRACKTOTAL=`metaflac "$i" --show-tag=TRACKTOTAL | sed s/.*=//g`
DATE=`metaflac "$i" --show-tag=DATE | sed s/.*=//g`
TRACKNUMBER=`metaflac "$i" --show-tag=TRACKNUMBER | sed s/.*=//g`

#Meta data options source:
#http://multimedia.cx/eggs/supplying-ffmpeg-with-metadata/

#Code to echo the metadata for debugging
#echo $ARTIST
#echo $TITLE
#echo $ALBUM
#echo $GENRE
#echo $TRACKTOTAL
#echo $DATE
#echo $TRACKNUMBER

#Set the array of files to process along with their output path
o="${i/$sIN/$sOUTALAC}"

#Set the array of files to process along with their new files extension
o=""${o/.flac/.m4a}""

#Echo the files that will be processed to check in debugging
o=""$(echo $o | sed 's/_//g')""

#Construct the filepath for the first file in the array to process
filepath=${i%/*}

#Construct the filename for the first file in the array to process
filename=${i##*/}

#Echo the path and file name to the terminal for debugging
echo $i
echo $o

#Start the convrsion of file i in the array to ALAC with the metadata
echo "n" |  ffmpeg -i "$i" -metadata title="$TITLE" -metadata author="$ARTIST" -metadata album="$ALBUM" -metadata year="$DATE" -metadata track="$TRACKNUMBER" -acodec alac "$o"

#Move the ripped file that has been processed to the coverted file directory to stop ffmpeg trying to process the file again in future
d="${i/$sIN/$sOUTFLAC}"
mv "$i" "$d"
done

#Finally after all files have been processed delete the empty source ripped directories of the files which have been processed, which now reside in the converted folder and ALAC folder
for FOLDER in $sINPATH/*
    do
    rm -r "$FOLDER"
    done
exit;

3) Save the script and set it to be executable

sudo chmod 555 /usr/local/bin/CDRip

4) Test the script manually for the first time, this will ensure you have all of the packages installed

CDRip

5) If you want to set the script to be the default action upon insertion of an audio CD, then within Nautilus (the file Ubuntu browser for 10.04 at least) select:

Edit > Preferences > File Manager Preferences > Media > CD Audio

Point this to open your CDRip script! Job done.

Source


Has anyone been able to get the Citrix Receiver running on Ubuntu 14.04 64bit?

I followed the below steps and it worked for me:

Download Citrix for Linux 64 bit from http://www.citrix.com/downloads/citrix-receiver/linux/receiver-for-linux-130.html
Follow instructions in "Citrix Receiver 12.1 on Ubuntu 14.04 64-bit" section from
https://help.ubuntu.com/community/CitrixICAClientHowTo
In case of any Verisign certificate errors, export the certificates mentioned in the errors (eg: VeriSign Class 3 International Server CA - G3) from Mozilla Firefox: Edit > Preferences > Advanced > Encryption > View Certificates, and browse the list to find the VeriSign entries.
Export the ones that are Class 3, one by one, in X509 format (PEM), and store them in your "cacert" folder with the .crt extension (you have to manually add the extension when you save the certificates). Copy it to /opt/Citrix/ICAClient/keystore/cacerts/.

Refer  http://ubuntuforums.org/archive/index.php/t-1143029.html for more details.


How would I make a simple indicator program to record timestamps?

I got interested so here is my Python code:

#!/usr/bin/python

from time import time, ctime
from gi.repository import Gtk
from gi.repository import AppIndicator3 as Indicator

MY_FILENAME = '/home/your-username/myfile.log'
MY_INDICATOR_ID = 'my-indicator-example'
STOP_ICON_NAME = 'indicator-messages'
START_ICON_NAME = 'indicator-messages-new'

class MyIndicator(object):

    def __init__(self, filename):
        self.indicator = Indicator.Indicator.new(
                                MY_INDICATOR_ID,
                                STOP_ICON_NAME,
                                Indicator.IndicatorCategory.APPLICATION_STATUS)

        self.indicator.set_status(Indicator.IndicatorStatus.ACTIVE)
        self.indicator.set_attention_icon(START_ICON_NAME)

        self.has_started = False

        self.menu = Gtk.Menu()

        start_item = Gtk.MenuItem('Start')
        start_item.connect('activate', self.start_activated, filename)
        self.menu.append(start_item)
        start_item.show()

        stop_item = Gtk.MenuItem('Stop')
        stop_item.connect('activate', self.stop_activated, filename)
        self.menu.append(stop_item)
        stop_item.show()

        self.indicator.set_menu(self.menu)

    def main(self):
        Gtk.main()

    def start_activated (self, menu_item, filename):
        if not self.has_started:
            myfile = open(filename, 'a')
            myfile.write('Start  <%s>\n' % ctime(time()))
            self.indicator.set_status(Indicator.IndicatorStatus.ATTENTION)
            self.has_started = True

    def stop_activated (self, menu_item, filename):
        if self.has_started:
            myfile = open(filename, 'a')
            myfile.write('End    <%s>\n' % ctime(time()))
            self.indicator.set_status(Indicator.IndicatorStatus.ACTIVE)
            self.has_started = False

if __name__ == '__main__':
    indicator = MyIndicator(MY_FILENAME)
    indicator.main()

I used the info given by gpaste-indicator and the Ubuntu Wiki.
I'm not sure about the "keeping the state between restarts" feature, the simplest would be to read the last line of myfile.log and setting self.has_started accordingly.
Good luck.


I persume you have your valuable data on a seperate (/home) partition ?
In that case you can migrate without pain.
The ubuntu installer will let you do the partitioning if that is your preference so you are in control which partition must be home or which partition is to be left alone.

At the moment I prefer the Ubuntu 12.04 LTS version (13.10 is to me a bit too buggy/unstable but that is only my personal opinion, in other words: your milage may vary)

Considering your driver preference: Ubuntu has the closed source drivers in the standard repository which can be automagically installed and configured from within it's settings icon (found in the launcher bar).

For the rest is the driver support good to top-notch. I would say, give it a go.


LuckyBackup superuser scheduled backups do not run

There is a setting you have missed:
Go to:
Profile > Schedule > Add (or modify) and set Console Mode

reference


A symbol such as an x (lowercase or uppercase) with a line on top of it does not exist as a coded character in Unicode (or any other character code standard). This is why you cannot find it in character pallettes.

However, you can enter such a symbol using a normal letter followed by a combining diacritic mark, which could be U+0304 COMBINING MACRON or U+0305 COMBINING OVERLINE. I have to check my own e-book to see which one is better... yep, overline is generally preferable here, since it is more noticeable (longer). Besides, macron is originally intended for use in linguistics (to indicate long vowel, typically), rather than part of a mathematical notation. But this may also depend on the font used, in practice.

The following image shows the letter x, in italic, with macron, then with overline, and then, for comparison, a formula constructed as suggested in @Rishabh’s answer.

You can enter a combining diacritic mark (which is always entered after the base character it should apply to) in LibreOffice using Insert → Special character, check selecting “Combining Diacritical Marks” in the “Subset” menu and proceeding as usual. When you click on a character in the pallette, you will see the Unicode number (like U+0305) on the right. This is important because the characters are often difficult to distinguish.


What problems can I expect using deadsnakes ppa as my primary python3 instance to get python3 to ref python3,7?

If you remove the python3 symlink and link it to python3.7, you can expect some oddities.

You won't have python3 -m pip until you reinstall python3-pip in some way.  Doing it through the package manager works.

apt_python won't be found, and reinstalling from the package doesn't work, but copying the .so file with a rename does:
sudo cp /usr/lib/python3/dist-packages/apt_pkg.cpython-35m-x86_64-linux-gnu.so /usr/lib/python3.7/apt_pkg.cpython-37m-x86_64-linux-gnu.so

gdbm won't be found, if you have some need for it, but copying the .so again works:
sudo ln -s /usr/lib/python3.5/lib-dynload/_gdbm.cpython-35m-x86_64-linux-gnu.so /usr/lib/python3.7/lib-dynload/_gdbm.cpython-37m-x86_64-linux-gnu.so


Correct me if I'm wrong, but if the filesystem is damaged , the only option is to format the drive. When I created backup pen drive from a chromebook, something went wrong, so i had to format and create new partition on that pen drive with gparted. You can always try using dd command. More information here: http://en.wikipedia.org/wiki/Dd_%28Unix%29.

If you want to try recover the files there, I would suggest this recovery software: http://www.cgsecurity.org/wiki/TestDisk

or Gzip recovery toolkit (ubuntu software center).


What is the recommended way of installing youtube-dl?

The biggest advantage of using pip is that we can download and install any version of the required package that has been uploaded on the repository of Python modules (PyPI). By using apt-get, we can only get the latest version of the package that is hosted on Canonical. That's because Canonical only hosts a single version of any package. If you want to install a particular version, then pip is the recommended way. But in this case, as you said youtube-dl is updated very frequently and sometimes latest version is required for it to work with youtube, it doesn't make much difference whether you use apt-get or pip, but I would recommend:

sudo apt-get install youtube-dl

Alternatively use snap to install latest version of youtube-dl.

sudo snap install youtube-dl # start with snap run youtube-dl


Looks like you need to reinstall grub, assuming that it is the first hard drive in your system, from a terminal on the LiveCD, type in

sudo grub-install /dev/sda

assuming that /dev/sda is your first hard drive in your system.

Then type in

sudo update-grub

to update a new grub file for the system.


How to expand the privileged port range past 1024?

In your kernel source find include/net/sock.h

Inside sock.h find:

#define PROT_SOCK   1024

Anything lower than the number on that line will be a protected port.

If you want a lower bound as well you can probably find where to add that in by looking for where PROT_SOCK gets used and adding an additional check.  A quick pass with grep shows that the check is done per protocol, so you'll need to modify the test for ipv4, ipv6, and whatever else you use individually.

It should be relatively easy, but you'll have to maintain it by hand whenever you want to upgrade the kernel.


Wubi installing problem(Wubi doesn't appear on Boot Screen)

wubi modifies your windows bootloader to chainload its own bootloader, then boots from there. Select the windows boot option, then select ubuntu from there.


Add Guest account created during login to certain groups?

The guest accounts are created by the shell script /usr/sbin/guest-account.

At the end of the function add_account it calls useradd to create the user. If you add the -G plugdev,dialout option here that should do the trick.

Use dpkg-divert to avoid that an updated package overwrites your modified script.


Which CPU exactly is it? Some older Atom CPUs are single core, but most all new ones are dual core.

Check this Wikipedia entry for a list of all the Atom processors and what features they support.


"General Error. General input/output error" when opening documents with Libreoffice

This fixed the "General Error. General input/output error" problem for me after upgrading from Ubuntu 12.04 LTS to 16.04 LTS:

sudo apt install libreoffice

It seems like only a few of the LibreOffice packages were installed on the system after the upgrade. The above command installed some more of the packages.


Which desktop environments allow switching among windows with Super+?

Desktop environments supporting Super+number
These support task switching via Super+number out of the box, and require (almost) no configuration.
KDE Plasma
This was implemented in Plasma 5.9. You still need to uncheck "Keep launchers separate" in the Task Manager Settings to preserve the 1..9 order, otherwise the numbers will be reassigned as you close/open the applications.
GNOME 3 (Ubuntu 20)
GNOME implemented Super+N app switching in Jan 2019. Here's a screenshot of GNOME 3 in Ubuntu 20:

Ubuntu 18 GNOME
Ubuntu's tweaked version of GNOME supports Super+number, with one annoyance: when switching to an application with more than one window (often the case with Chrome/Firefox), you have to further choose which of the windows to switch to.
Unity (Ubuntu 16)
Supports the key combo by default. If the app is running, Unity will switch to it. If it isn't, it will be launched.

Linux Mint Cinnamon
As of version 20, Cinnamon supports Super+number for the "Modern" panel layout.

The feature isn't very discoverable because Cinnamon doesn't show any number tooltips over the taskbar icons when you press Super.
Note that the feature was tricky enough to take years to implement after it was first requested in 2015, then by myself in 2016.
DEs with support via extensions/plugins/applets
Note that letting plugin authors build such a feature is fraught with problems. In several years, I haven't found any plugin/extension/macro/whatever that gets this right. This sort of feature needs to be well-integrated into the window manager, and this was confirmed by one of the authors of MATE Desktop, who agreed with me.
DEs that don't support Super+number out of the box

LXDE as of Jan 2021
Budgie as of Oct 2020
MATE as of Dec 2018
GNOME 2/3; official confirmation from GNOME developer
XFCE


Installing Ubuntu 18.04.4 LTS on an old Mac Mini (Mid 2011) and getting an EFI error. NOT dual boot. Clean wipe all Ubuntu

You could split your disk in three partitions using Something else during installation when Disk configuration step will come:

EFI, 512Mb size as you did, ESP and boot marks should be set
/, 40Gb size, but depends of your overall disk capacity and OS usage
/home partition the left space


What does the asterisk (*) do in grep -nri "searchString" *?

grep with the -r flag operates on all files in the specified directories recursively:

-r, --recursive
      Read all files  under  each  directory,  recursively,  following
      symbolic  links only if they are on the command line.  Note that
      if  no  file  operand  is  given,  grep  searches  the   working
      directory.  This is equivalent to the -d recurse option.

By default, if no directories are given, then grep will process all files in the current directory.

In grep -r ... *, then, the shell expands * to all files and directories in the current directory (usually except those that begin with a .), and grep then works recursively on them.

So, if you had a directory that contained, for example:

.git/
.gitignore
foo/
foo/.foo2
foo/link2 -> /foo2/bar2
bar
link1 -> /foo/bar

where the names ending with / are directories, then grep -r would also process the .gitignore file and everything in .git, but grep -r ... * would exand to grep -r ... foo bar, and would end up excluding .gitignore and .git (but it would include foo/.foo2).

Also note the point about symbolic links - if one of the files in the expansion of * was a symlink, the symlink target would be processed if you used *. So with *, /foo/bar will be processed as the target of link1, but not /foo2/bar2 as the target of link2.

The overall effect:

                                 w/o *           with *
.git/                              +                -
.gitignore                         +                -
foo/                               +                +
foo/.foo2                          +                +
foo/link2 -> /foo2/bar2            -                -
bar                                +                +
link1 -> /foo/bar                  -                +

Which you want to do, of course, depends on whether you want those files and directories included in the search; but I tend to prefer having grep itself do the excluding and including using the --exclude/--include and other options.


Pass param to ssh user@server bash --login -c FILE.rb PARAMS

You can try to enclose the whole command in quotes to make sure it is not interpreted by ssh:

ssh user@server "bash --login -c \"FILE.rb $1\""

If it does not work, verify, that all the params you need are really in variable $1 by echo-ing it before the ssh call.

Minimal working example:

param="--version";
ssh user@server "bash --login -c \"git $param\""


Sync Computers Using Ubuntu One without the Cloud

This is not yet a feature of Ubuntu One, but it is coming in 11.10 (from what I read).

However, you could try SparkleShare. It is a little more involving than other solutions, but it will allow you to sync between computers on a network if you set it up correctly.

  BTW as a tip, try to avoid ranting (in other words, talking a lot around the subject at hand without actually making a point/asking a concrete question) when asking on this site. It is not a blog.


You can determine if it is enabled by viewing your /etc/X11/xorg.conf file. It will look something like this:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Notice the second last line "Xinerama" "0". This indicates that it is disabled.


How to make brighter the connection used in Network Notification

There is no problem in your picture, the greyed out menu items are the ones that are not selected. The Auto Eth0 is the one you are connected to.


How do I turn off "show mouse" when I press Ctrl?

NOTE: I found out the Dconf has mostly replaced Gconf.  Since using Gconf did't work, I have updated the instructions for Dconf.

You can change the setting in dconf-editor

sudo apt-get install dconf-editor

Open dconf-editor and navigate to: org -> gnome -> settings-daemon -> peripherals -> mouse  then check/uncheck the 'locate pointer' option.


How do I unprotect a file which is owned by root?

Step #1 = In terminal type "gksu nautilus".

Step #2 = Navigate to where the file or folder is.

Step #3 = Right click the file or folder, choose "properties", choose "permissions", and then choose the desired access settings. You can also change who owns the file or folder if you don't want it to be owned by root.

Don't forget to close the nautilus window afterwards - it runs with root permissions.


Cannot get OpenCL to work with Radeon 5700XT

I stumbled upon the solution to my problem in case anyone else is facing it.

When installing the amdgpu driver use these switches:
--opencl=pal,legacy,rocm

after this both my 5700XT and the CPU itself are available under the openCL section.

now I have to figure out why my GPU is taking many many times longer to render a frame than the CPU was, that should not be the case.


How to try hibernation and shutdown afterward in case it failed on power button press?

No, you can't make that setup using HandlePowerKey entry for systemd. It is not a script hook, just a predefined options.

  HandlePowerKey=, HandleSuspendKey=, HandleHibernateKey=, HandleLidSwitch=, HandleLidSwitchDocked=

  Controls whether logind shall handle the system power and sleep keys and the lid switch to trigger actions such as system power-off or suspend. Can be one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", and "lock". If "ignore", logind will never handle these keys. If "lock", all running sessions will be screen-locked; otherwise, the specified action will be taken in the respective event. Only input devices with the "power-switch" udev tag will be watched for key/lid switch events. HandlePowerKey= defaults to "poweroff". HandleSuspendKey= and HandleLidSwitch= default to "suspend". HandleLidSwitchDocked= defaults to "ignore". HandleHibernateKey= defaults to "hibernate". If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs; otherwise the HandleLidSwitch= action occurs.

Reference: man logind.conf
One way that may work, set it to ignore then setup a poweroff key hook through /etc/acpi/events/ as explained in What code is executed when headphones are disconnected? ( It's your question, right :) )


E-mail sent from thunderbird not opening up

From within thunderbird select edit/preferences/composition.

Change the Forward message option from as attachment to inline.

Then for good measure you could select edit/account settings/composition and addressing to choose the layout (reply at top etc)

Hope this helps


Instead of mounting the SMB shares in /media/windowsshare mount it as /mnt/windowsshare. You will have to create the folders there first and then edit the /etc/fstab. Make a copy of /etc/fstab before editing just to be safe.

Then the shares won't open in Nautilus on their own.

Note: /media is for computer generated mounts such as when you plugin an USB drive. /mnt is for admin to mount things manually or by editing fstab etc. See Why have both /mnt and /media?


Landscape Openstack Autopilot stuck at Check list

So, I suspect this is related to MAAS misreporting the disks to Landscape.  There was a similar issue with the Poweredge R610 last year.  See here:

https://github.com/Ubuntu-Solutions-Engineering/openstack-installer/issues/374

I think your best bet would be to report a bug, or contact Canonical support if you're an Ubuntu Advantage customer.


As far as I know in Ubuntu Alsa and PulseAudio Work together to provide sound Alsa detects and configures your sound hardware and PulseAudio decides what software can use the audio and what volume it will be.

Alsa can do this bit on its own but no where near as good as pulseaudio and Alsa is much better at the hardware side.

So if you want to change the volume of your speakers as opposed to your head phones open terminal and start

alsamixer

you should be able to change the volume of individual sound outputs from there (no mouse just arrow keys and m for mute and unmute.

To change the volume of individual programs would be pulseaudio's job so open the audio settings panel and change to the applications tab and change it two points however you have to have the program open first before you can change the audio level and it wont stick after you close the program


Cannot configure Fan Speed with pwmconfig

Start out by man fancontrol to get a feel for what variables can be used in /etc/fancontrol.  You will need the following when building the config: INTERVAL,  FCTEMPS, FCFANS, MINTEMP, MAXTEMP, MINSTART, MINSTOP.

# Checks the temperature every 10 seconds.
INTERVAL=10
# Maps a fan to a temp sensor, each separated by a space
FCTEMPS=fanpath=temppath fanpath2=temppath2
# Maps a fan to the fan speed sensor
FCFANS=fanpath=fanspeedpath fanpath2=fanspeedpath2
# The temperature below which the fan gets switched to minimum speed.
MINTEMP=fanpath=degreesC fanpath2=degreesC2
# The temperature over which the fan gets switched to maximum speed.
MAXTEMP=fanpath=degreesC fanpath2=degreesC2
# Sets the minimum speed at which the fan begins spinning.
MINSTART=fanpath=minspeed fanpath2=minspeed2
#The minimum speed at which the fan still spins.
MINSTOP=fanpath=minspeed fanpath2=minspeed2

Actual Sample:

INTERVAL=10
FCTEMPS=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm5=/sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp3_input /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm4=/sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp3_input /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=/sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp3_input
FCFANS=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm5=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/fan5_input /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm4=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/fan4_input /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=
MINTEMP=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm5=55 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm4=50 /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=55
MAXTEMP=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm5=60 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm4=60 /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=60
MINSTART=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm5=70 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm4=70 /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=70
MINSTOP=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm5=90 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm4=90 /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=90

The [[:print:]] represent the hwmon number.  You can use the actual number or the [[:print:]], sometimes the number changes between boots and the [[:print:]] allows it to find the correct hwmon number.

The issue will be FCFANS, whether fan1_input has valid data, and if not, whether fancontrol will continue to work without that.

Alternatively, you could attempt to write your own script that would set the value of hwmon2/pwm1, it ranges between 0 and 255.


can't build OpenGL software on 14.10 with fglrx-updates: "/usr/bin/ld: cannot find -lGL"

I caved in, did the symbolic link, and it seemed to work fine... until pango decided to use the cairo-generated pkg-config file, which depends on an OpenGL pkg-config file that also isn't there with fglrx.

I've now filed a bug on Launchpad.


Installing ubuntu on a different partition than C using VMware

Create a new directory in one of your partitions, say D://VM2016/U16/

Open VMware

Mouse around looking for all the preferences and defaults of where things like virtual machines might be saved and change them to your location in D:
Create a "new virtual machine"
Mouse through all of its settings, making sure that anything points to your location in D:
In particular, make sure that

your "new virtual HDD" .vmdk is in D:

the location to make clone diff files is in D:

the virtual memory swapfile will go to D:

the hibernation file will go to D:

The are still a few lines of configuration done wherever you had installed your /vmware/ so technically it does touch that location, perhaps in /Program Files/, but you can get all of the vm on D: and then start it booting and installing.


How do I adjust the mouse pointer sensitivity with the GUI on Ubuntu 16.04 LTS?

If the GUI option doesn't show up (which the acceleration option doesn't show up in my mouse settings menu), the terminal command is rather seamless.

From your comment, it appears that your main objective is to reduce the speed of the mouse acceleration.  The content of your question also suggests the same.

From the terminal (Ctrl+Alt+t), you can check your current mouse settings with:

$ xset q

Look at the pointer control new the bottom.  Change the acceleration to a lower number.

$ xset mouse 4 0

I like my acceleration to be fast so that I don't have to move my hand too much to cover my four monitors.  The first number in the command is the acceleration speed.  The second number is the threshold.

Run xset and test the speeds.  Set it to one you are comfortable with.  You can also fine tune it using fractions.

This will slow your speed substantially:

$ xset 1 0


Can't boot ubuntu, showing GNU grub menu instead

You said selecting the first option shows you the command line. I'm gonna assume you arrived at that without the login screen, so that must be a tty screen.

Type

sudo service lightdm restart

and you should get the login screen.

In Ubuntu 16.04 and later type:

sudo systemctl start lightdm

and you should get the login screen.


Can't use sudo, gedit, i'm getting error in upgrading

You can solve it by booting to a LiveCD and running:

sudo fdisk -l
sudo fsck /dev/sda1

You will be prompted to answer a few questions. yes or y will suffice.


ncurses line-drawing not working on console

That looks like a problem with the console's encoding rather than its font.

Run dpkg-reconfigure console-setup again, but at the first screen select UTF-8 before selecting your chosen font:


Due to the embedded colons, the address fc00::x:x:x/126 must be quoted:

bonds:
  bonds0:
    routes:
    - to: "fc00::x:x:x/126"
      scope: link


How do I remove flat-remix from an installed system using a live system?

take a look at https://ubuntu-mate.community/t/deleting-flat-remix/19438
According to the github page, to install ...
sudo add-apt-repository ppa:daniruiz/flat-remix
sudo apt-get update
sudo apt-get install flat-remix-gtk

sudo apt-get remove flat-remix-gtk should work.


In ubuntu open keyboard preferences >> Accessibilty

Then under sticky keys check the option Simulate Simultaneous Keypreses - and uncheck the option disabled sticky keys if two keys are pressed together.

Please let me know if this work for you.


Can't install pepperflashplugin-nonfree in Ubuntu 14.10

If you’re using a Chromium based web browser in Ubuntu, you may find that the Adobe Flash Player installed from Ubuntu Software Center does not work all the time.

Because ‘Aura’ for Linux, which replaces GTK+, lacks coded support for NPAPI plugins, the “old” Adobe plugin in Ubuntu repositories does no longer play Flash content in Chromium based web browser.

As a workaround, you can use the ‘Pepper Flash’ which is bundled with Google Chrome that provides the latest Adobe Flash Player for Linux.

click here to bring up Ubuntu Software Center and click the install button
This will install the package “Pepperflashplugin-nonfree“, which will download Chrome from Google, unpack it and make the included Pepper Flash Player available for use with Chromium.and this will reduce your terminal error risk also.

After that, relaunch Chromium browser and Flash should now work. If not, close the browser and run below command in terminal (Ctrl+Alt+T) to tell the plugin location:

sudo update-pepperflashplugin-nonfree --install

That’s it. Enjoy!


Using LightGM-webkit-greeter and get dark screen

Sorry but I believe the only option for you is to reinstall Ubuntu 18.04 or somehow getting into the safe mode. I'm new to ubuntu since using 20.10 and then down to 20.04 but in the Ubuntu installer, I believe that in the 18.04 installer, there is an option for reinstalling ubuntu and clean out all programs but keep your music, photos and other personal files you stored on ubuntu. You use that option and make sure to not repeat the same mistake afterwards and precisely follow instructions. Hope that helps!


Pulseaudio loopback unload audio output devices

The appropriate way to unload modules
Unloading a module loaded to Pulse Audio is done by the module's index number, which is given on loading:
pactl load-module module-null-sink sink_name=test
24

In the above example Pulseaudio server loaded the module with index id 24. This module can be unloaded with the following command:
pactl unload-module 24

Your script will have to parse the output of pactl.
In case we do not know the module number we can issue the following command which will display the number and the module name:
pactl list short modules

Newer versions also allow unloading by name:
pactl unload-module <name>

The quick and dirty method
If pulseaudio is set up as auto-spawning demon (which should be the default begaviour) we may quickly unload all modules loaded after login with a reset of the PulseAudio server to load the default modules defined in our default.pa by running:
pulseaudio -k

This will effectively unload all modules from your script and will load the default sink for output.


Access/mount the partitions inside an LVM2-based disk of a shut-down KVM guest?

kpartx -a /var/lib/libvirt/images/guest1.img
# vgscan
Reading all physical volumes . This may take a while...
Found volume group "ubuntu" using metadata type lvm2
# vgchange -ay ubuntu
2 logical volumes in volume group ubuntu now active.

Then you will have the guest volumes in /dev/mapper/ which you can mount.


samba server using active directory logons

For an existing Samba server using NT4-style authentication, there is an excellent manual over at the samba.org domain.

Basically what it drills down to is:

Find out which AD servers run what (including ldap, AD, ...)
Prevent duplicate SIDs
Correct duplicate user/group names (which AD doesn't like and is standard behaviour in Linux)
Start the actual upgrade process


Ctrl+Alt+F2

This opens a terminal, if F2 pressed, on tty2.

Once you're done, press Ctrl+Alt+F1 to switch back to the session on tty1. All you're doing with Ctrl+Alt+F1/7 is switching between tty.

You can tell which tty you're on by running $ w in terminal. Abridged output:

USER     TTY
kiosk    tty1
myuser   tty2


Why should we expire a locked account to totally prevent access?

usermod -L actually only locks the user's password, so user still is able to login using other methods for example  an ssh session which uses public key authentication.

But if you set the EXPIRE_DATE to 1 the account will be expired entirely and the user is not able to use it in any way. This is because 1 is equal to it expiring at1970-01-01 00:00:01.


Wireless DHCP configuration fails on open network

For your device in 14.04 brcmsmac is the best driver in most cases and it is best if power management is off.

Please do:

sudo apt-get purge bcmwl-kernel-source

Then reboot and make sure only the brcmsmac and bcma driver is loaded they are both currently blacklisted so you may have to unblacklist them by doing:

gksudo gedit /etc/modprobe.d/blacklist.conf

Then remove brcmsmac and bcma save the file then close gedit and reboot.

You may have to install gksudo.

gksudo gedit /etc/pm/power.d/wireless

(this will create or edit a configuration file that will override the default power management behavior) and enter the following:

#!/bin/sh

/sbin/iwconfig wlan0 power off

above exit0, then save gedit, close and reboot.

Change the channel to 6 if you can 4 people on that network are using 1 and 11 so that can cause issues.

After you make these changes if you still can not connect then post a new file from the script.


Try one of these:
startx

or
sudo lightdm

Check this: Bug #824140 "Boot stops after "checking battery state...""
Try solutions posted in comments.


From your booted Ubuntu system, open a terminal, then use the following commands :

sudo grub-install /dev/sdX
sudo update-grub

Replacing sdX with the actual drive, which will probably be sda, but use disk utility to double check if you are unsure.


I found solution

It is not straight through but it works.
I chose to remove Minecraft launcher downloaded from repository.
I had to install gdebi
Then download official Minecraft Launcher from official website>
Then use gdebi to install Minecraft
sudo gdebi Minecraft.deb
ANd it works


Don´t ask me why, but when I have booting issues, I boot with the live usb stick, choose install and then abort it. After a normal reboot sometimes it fixes what I broke..


Does KMail stores emails encrypted at rest?

If you have not opted out, on Kubuntu kmail uses kwallet to store your passwords. These are stored encrypted and are as safe as anything can be from someone with physical access to your computer.
Emails are not stored encrypted.


What apt package installs "ip addr" command?

I found the answer here:
https://stackoverflow.com/questions/51834978/ip-command-is-missing-from-ubuntu-docker-image

# apt update
# apt install iproute2 -y

My docker container although didn't have iproute2 package installed, the internet connection was active.


you can do it yourself

Add this PPA to it's own list file

sudo bash -c "echo 'deb http://ppa.launchpad.net/freenx-team/ppa/ubuntu VERSION main
deb-src http://ppa.launchpad.net/freenx-team/ppa/ubuntu VERSION main' >> /etc/apt/sources.list.d/freenx.list"

where VERSION can be: dapper, hardy, intrepid, lucid or maverick . More information can be found at FreeNX Team PPA.

Add the public key of FreeNX PPA run:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F3A662B57D580D3A2E98E5152A8E3034D018A4CE

Then Update Apt

  sudo apt-get update

  sudo apt-get install python-software-properties

  sudo aptitude install Freenx

(note, as of Aug. 16 2010 the above command doesn't install a particular script file--appears to be missing from package. So after performing the above, download it from here. Next, cd to the directory to where the script was downloaded and un-packed, probably your downloads folder. Then, move the script into the proper directory: /usr/lib/nx/ with:

  > sudo mv nxsetup /usr/lib/nx/nxsetup

Finally, make sure you change the ownership of this file once you moved it so that it is owned by root:

  sudo chown root:root /usr/lib/nx/nxsetup

Now use nxsetup to install necessary files and create the special user "nx"

  sudo /usr/lib/nx/nxsetup --install


Acer Aspire ES1-572 not recognizing wifi chipset?

You need to install the 4.8 kernel and firmware. Run in a terminal

sudo apt install linux-generic-hwe-16.04-edge
wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161.1_all.deb
sudo dpkg -i linux-firmware_1.161.1_all.deb

Reboot.


No write permissions on a file even with `sudo`

Just change permissions temporarily:

sudo chmod 744 /etc/resolv.conf

Add nameservers of your VPN provider by editing the file with text editor:

nameserver ip_of_nameserver_one
nameserver ip_of_nameserver_two

Save the file,then revert permissions.

sudo chmod 644 /etc/resolv.conf
sudo chattr +i /etc/resolv.conf

The last command will add immutable bit, so the file doesn't get overwritten. After you set immutable bit, even the root account will not be able to write to the file. If you wish to edit the file again latter on, and remove immutable bit, use this command:

sudo chattr -i /etc/resolv.conf


Unfortunately I couldn't find anything related, but faced the same problem and found the awkward solution (but it works). You can configure it using virtuabox with USB 2.0 driver + windows 7 image. Here is how:

Install virtualbox from synaptic.
Download virtualbox extension pack from here, however you'll probably need to install older version for your ubuntu. You will find it here and here are installation instructions.
Now it's the funny part, I have few old virtualbox windowses for development, which are perfectly legal and freely available from microsoft here.
I used windows 7 version and it works, but to enable USB 2.0 and to add your device connected to host machine, you need to add your user to vboxusers group. Don't forget to reboot afterwards.
Having everything set up you may configure USB 2.0 for you virtualbox device and add your printer. I made a small screenshot how to do it:

Install xerox drivers and finally configure WIFI network for your printer.
Assign static IP to the printer on your router, remove whole s**t above and enjoy the WIFI printer from your linux network.

This HOWTO probably works with any cheap WIFI printer devoid of UI and with networking intended to be setup only from windows :)


How to make laravel run automatically each time I open a new terminal?

What you're doing when you use PATH="~/.config/composer/vendor/bin:$PATH" from the command line, is temporarily adding that PATH while you are within a session in your terminal. Once you close the terminal, you end the session, the PATH you added is removed along with session, and the terminal forgets all about where Laravel is located.
Permanently add your PATH, using the .profile file

tl;dr
Add this line to your shell's profile file:
export PATH="$HOME/.config/composer/vendor/bin:$PATH"

Each time you open your terminal, it processes a few files to gather information about the environment. In order to permanently let your terminal know about Laravel's location, you will need to add the composer directory to one of these processed files.

Figure out which shell you're using: type echo $0 in your terminal
From the output of this command, determine which shell you're using, and which .profile file it uses:

usr/sh: the file is .profile
bash: the file is .bash_profile
/usr/bin/zsh: the file is .zprofile
You might have to figure it out if you're using a different shell. But it's not hard cause most of the files out there follow the same sort of naming, and exist in your HOME directory

Open your shell's .profile file. It should be located in your HOME directory.

Find your HOME directory: type echo $HOME in your terminal

Add the following to that file, on it's own line, and then save it.

export PATH="$HOME/.config/composer/vendor/bin:$PATH"
this is processed every time you open a new terminal, that's how it will now know where to find Laravel
you can also use composer to figure out what the path to composer's global config directory is by using this in your profile instead export PATH="$(composer config -g home)/vendor/bin:$PATH"

Restart your terminal and the PATH to Laravel will now be permanently set

Quickest way is to just type this command in your terminal

type echo "export PATH=$(composer config -g home)/vendor/bin:$PATH" >> ~/.profile in your terminal, making sure to swap out .profile for your shell's profile file.

The double ">>" appends the output of the echo command (which is just the text in the quoted portion of the command), to the profile file
If you use single ">" it will overwrite the entire file with only the echoed PATH, so be careful. The path will still be set if you use single ">", it will just hose anything that existed inside that file.
$(composer config -g home) is explained above

Restart your terminal and the PATH to Laravel will now be permanently set


How do I bypass "Do you want to..." dialog after clicking script when using Unity?

This can be selected in Nautilus preferences on 'Behavior' tab. In 'Executable text files', you can select Always execute, Always open with text editor or Ask each time.


How do I install my wireless network drivers from .tar.gz file?

Make sure you do the following things in Ubuntu and not in Windows!

Open up a terminal by pressing (at the same time) "Ctrl" + "Alt" + "t".

Tell us which version of Ubuntu you are using: uname -a.

Now find out what wireless card your computer has: Type sudo lspci -i network and post the output here.

Also post the output of sudo lshw -C network.

Since you downloaded a driver, I assume that you have a wired network with internet connection.

Update your system: sudo apt-get update && sudo apt-get dist-upgrade.

Then make sure you have standard drivers installed (as Elder Geek said in his comment): sudo apt-get install linux-firmware.


Errors when trying to install 19.04 on HP Envy x360 (Ryzen 2500u)

Got to the bottom of this in the end...

I had to replace "quiet splash" with "noapic noacpi nosplash" in the GRUB params.
(Make sure "nomodeset" is also in there).

Once it was installed, I changed the GRUB params so that it always booted that way (can remove "nosplash" and replace with "quiet splash" again if you want.

Touchscreen and everything was working out of the box on the 5+ kernal.


You can find drivers at the official site.
https://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
Download the epson-inkjet-printer-escpr_1.7.7-1lsb3.2_amd64.deb and copy it to your Home user directory.
Run in a terminal
sudo apt install ./epson-inkjet-printer-escpr_1.7.7-1lsb3.2_amd64.deb

to install.
Then add a new printer in Settings.


That looks to me that the 1st choice which is a stable proprietary -tested to be stable is what i would choose.

to check what your graphics card is using Nvidia.
Type or copy and paste this in terminal

sudo lshw -c display

** If it is saying other than Nvidia.Type: Intell, Amd or Ati Radeon. Do not change anything since if hardware is not using Nvidia drivers then you do not need to change it to do so.

to make sure that you have latest stable version if your graphics card is using Nvidia. Open terminal by Ctrl+Alt+T

You can also use the stable PPA, if you want to stay updated with your drivers:

Open a terminal and enter this command:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current

to know what graphics card you are using. If sudo lshw -c display
did not list it. You can try to list it by this command in terminal.

lspci -kif

Look where it say's VGA compatible controller: 'if it listing Nvidia here '
then you can choose the first option with out having any fears.

I will list here a site where you can find latest Nvidia drivers and how to install them to your Ubuntu.

http://www.sysads.co.uk/?s=Nvidia

They should work all to get your system use the best performance on Nvidia.

If you run in to other types or troubles or questions about Nvidia what i can think of is,make sure that you have the latest stable version of the kernel module installed always when wanting to upgrade Nvidia or graphics drivers.


How to boot Ubuntu 17.10 into a tty? (without loading gdm)

Disabling the desktop from loading is a systemd setting

To (permanently) disable the desktop from commandline...

systemctl set-default multi-user.target

To (permanently) enable the desktop again from commandline...

systemctl set-default graphical.target

From the grub options you can also add to the boot options for a ONE time change (on reboot you either have to redo this or will get a desktop)...

systemd.unit=multi-user.target

Similar to (permanently) disabling gdm from commandline:

systemtcl disable gdm

(gdm can be changed to any other desktop name; kdm, xdm etc).


Firefox 71.0 is not working on Ubuntu 16.04 LTS

Looks like you've added a PPA that's meant for the team that's working to integrate Firefox, Thunderbird etc. into Ubuntu

71.0~b6+build1-0ubuntu0.16.04.1 500
    500 http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu xenial/main amd64 Packages

That PPA seems to contain preliminary, "work in progress" versions. You might want to remove the PPA from your list.

Command to remove this PPA:

sudo add-apt-repository --remove ppa:mozillateam/firefox-next


Install VLC player.
Open the video in VLC player.
Drag and drop the subtitle file in VLC player. Alternatively select the subtitle file from Menu > Subtitle > Add Subtitle File.

(VLC is just an example, most of other video players are capable of doing the same.)


Try to ssh to your node and reinstall X server with

sudo apt-get install --reinstall xserver-xorg

and also Nvidia drivers

sudo apt-get purge nvidia-*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
udo apt-get install nvidia-375

I had exactly the same issue and this fixed it, let´s hope that it will fix your machine too.


It seems that you are still able to access the internet, from some other device.

My advice in such a case would be to go to https://packages.ubuntu.com and search for the desired package for the desired ubuntu version. In your case (assuming amd64) this leads to this download link.

Download the file, (optionally but recomended: verify the fingerprint) and copy it to your computer by some means (e.g. flash drive), Finally to install the package run

sudo dpkg -i libnl-3-200_3.2.27-1ubuntu0.16.04.1_amd64.deb

The package is now manually installed, but I assume as soon as an update is available it will be replaced by newer version from the repositories.


Try changing the boot order from your HDD or SSD to Pendrive by pressing f9 before something loads up.

Insert ubuntu installed pen-drive > Press Power button > start pressing f9(Function key) > move up/down by pressing ↑/↓ choose pendive > press enter.

Try to boot up once with changing boot order if it goes correctly you can also change boot order permanently in BIOS under boot option.

If this doesn't work kindly let me know.


May you not do proper search, there are some answer which may solve your problem

 no Launcher, no Dash appears

 Launcher auto-hides

Ubuntu 12.10 shows no launcher or menu


Comparing Virtual Memory Size with Resident Size

The "swapped out" conclusion the SO post makes is wrong. For example, here is a trivial program:

#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>

int main() {
    printf("Started - sleeping 10s; pid = %i\n", (int)getpid());
    sleep(10);

    int fd = open("10469068800-byte-file", O_RDONLY);
    void *map = mmap(NULL, 10469068800, PROT_READ, MAP_SHARED, fd, 0);

    printf("Mapped - sleeping 10s; fd %i to %p\n", fd, map);
    sleep(10);

    return 0;
}

When I check ps after it prints out the started message (before the mapped message):

anthony@Zia:~$ ps u 13420
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
anthony  13420  0.0  0.0   4080   348 pts/13   S+   16:10   0:00 ./test

and after:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
anthony  13420  0.0  0.0 10227780 348 pts/13   S+   16:10   0:00 ./test

Part of the program's address space is currently on disk, but that's because its a memory-mapped file which has not yet been read (or may never be). A similar thing happens with this program:

#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

int main() {
    printf("Started - sleeping 10s; pid = %i\n", (int)getpid());
    sleep(10);

    void *mem = malloc(1024*1024*1024);

    printf("Allocated - sleeping 10s; mem at %p\n", mem);
    sleep(10);

    return 0;
}

Before:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
anthony  15150  0.0  0.0   4080   352 pts/13   S+   16:18   0:00 ./test2

After:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
anthony  15150  0.0  0.0 1052660  352 pts/13   S+   16:18   0:00 ./test2

In this case, the memory has been allocated but, as an optimization, the kernel doesn't actually put actual pages of memory behind those addresses until the program uses them. So, again, you see a much higher VSZ than RSS.

You're probably seeing the above two things (and maybe a few more) in Apache. You can use pmap -x to tell. Here is what the second program (the malloc one) looks like:

anthony@Zia:~$ pmap -x 15997
15997:   ./test2
Address           Kbytes     RSS   Dirty Mode   Mapping
0000000000400000       4       4       0 r-x--  test2
0000000000600000       4       4       4 rw---  test2
00007fba82f94000 1048580       4       4 rw---    [ anon ]      <--- HERE
00007fbac2f95000    1672     300       0 r-x--  libc-2.17.so
00007fbac3137000    2048       0       0 -----  libc-2.17.so
00007fbac3337000      16      16      16 r----  libc-2.17.so
00007fbac333b000       8       8       8 rw---  libc-2.17.so
00007fbac333d000      16      12      12 rw---    [ anon ]
00007fbac3341000     132     104       0 r-x--  ld-2.17.so
00007fbac3533000      12      12      12 rw---    [ anon ]
00007fbac355f000      12      12      12 rw---    [ anon ]
00007fbac3562000       4       4       4 r----  ld-2.17.so
00007fbac3563000       8       8       8 rw---  ld-2.17.so
00007fffb7163000     132      12      12 rw---    [ stack ]
00007fffb71fe000       8       4       0 r-x--    [ anon ]
ffffffffff600000       4       0       0 r-x--    [ anon ]
----------------  ------  ------  ------
total kB         1052660     504      92

Note you can see the anonymous mapping which is huge but has almost nothing resident. For the program with the mmap, you get:

Address           Kbytes     RSS   Dirty Mode   Mapping
⋮
00007f8e50cf2000 10223700       0       0 r--s-  10469068800-byte-file
⋮

That shows you that the memory mapped file is there, but none of it is resident.


Running Ubuntu 19.10 But phpinfo() shows v19.04

As soon as I posted, I came across the answer which is to disable one PHP version and enable the other.

sudo a2dismod php7.2
Module php7.2 disabled.
To activate the new configuration, you need to run:
  systemctl restart apache2

systemctl restart apache2

sudo a2enmod php7.3
Considering dependency mpm_prefork for php7.3:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Considering conflict php5 for php7.3:
Enabling module php7.3.
To activate the new configuration, you need to run:
  systemctl restart apache2

systemctl restart apache2

Now phpinfo() shows the proper PHP version and the proper Ubuntu version. To remove the older version, I ran:

sudo apt-get purge 'php7.2*'


MAAS in VMware Workstation Environment to Boot VM Guests

libvert-bin would need to be installed on the maws-controller. libvirt uses soap api calls to the ESXi server to power on the host. Correct me if I'm wrong, but I believe if your setup is moving VMs around on various esxi hosts, then libvirt won't cut it.


Python terminal not working for for loops

It doesn't matter what data he is working on. Either way you're just using print "spam" or some complicated expression, the for-loop should be closed after two enters or a Python exception will be raised either with bad data or a syntax error.

The problem is you're indenting the empty lines, so the interpreter thinks you're still going to give it some code.

See the difference in below code snippet (select the text to see why):

>>> for x in range(4):
...     print x
...
0
1
2
3
>>> for x in range(4):
...     print x
...
...
...
...
0
1
2
3
>>>


Why can't I boot Windows 7 from GRUB when an ext-HDD is connected?

Try booting into ubuntu and then type sudo update-grub . reset your bios to default from bios setup. Make sure, in your boot order internal HDD/SSD is selected as primary boot option.


There are no official juju ways of doing it, but the machines are just lxc containers.

You can stop the container and edit the config file for that container (found in /var/lib/lxc) and add a line to mount the folder.

The restart the container and the directory will be mounted.


There is a best practice in place & it has nothing to do with xl:

Do >nano /etc/default/xendomains
then deactivate VM restore using
XENDOMAINS_RESTORE=false & save

Then, create the subfolder auto underneath the /xen folder.

mkdir -p /etc/xen/auto

cd /etc/xen/auto

create a symlink to the virtual machine that you want to auto start at Dom0 boot & don't forget the dot at the end of the command

ln -s /etc/xen/yourvm.cfg .

Reboot

I asked to disable the restore feature because i had problems with it.


Sometimes my Thinkpad won't wake up from sleep

In case it is still relevant: I had a similar problem on my Thinkpad T460, but only after "upgrading" to the HWE stack. I switched back now and hope the problem is gone.

In my case though, the notebook did not wake up at all, the light signalling the status was always indicating that it was still sleeping.


Cannot get USB gamepad to work in Ubuntu 12.04

DragonRise gamepads use the hid_dr module, which can be loaded with modprobe hid_dr. If the module is not available, you have to compile it by enabling the HID_DRAGONRISE kernel option (in menuconfig, you can find it at Device Drivers -> HID support -> HID bus support -> Special HID drivers -> DragonRise Inc. game controller).

With the module loaded, the device will be properly recognized and /dev/input/js0 will be created.

[19229.563797] usb 3-3: new low-speed USB device number 11 using xhci_hcd
[19229.706682] usb 3-3: New USB device found, idVendor=0079, idProduct=0011
[19229.706688] usb 3-3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[19229.706692] usb 3-3: Product: USB Gamepad
[19229.706915] usb 3-3: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[19229.710302] input: USB Gamepad  as /devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.0/0003:0079:0011.000C/input/input13
[19229.710638] dragonrise 0003:0079:0011.000C: input,hidraw0: USB HID v1.10 Joystick [USB Gamepad ] on usb-0000:00:14.0-3/input0


Is secure boot properly enabled on ubuntu 16.10?

Install mokutil ( It is pre-installed on newer Ubuntu releases)

sudo apt-get install mokutil

mokutil is a tool that lets you add and/or remove machine owners keys ( MOK ).

Check if secure boot is enabled

mokutil --sb-state

Note :

For a normal user keeping secure boot disabled is the best option. Having it enabled creates problems with nvidia and broadcom proprietary drivers.

If you really want to enable secure boot to prevent booting of unsigned kernel read the following articles. Do note that I have never signed to boot image myself. Following instructions may or may not work.

http://www.rodsbooks.com/efi-bootloaders/secureboot.html
http://www.rodsbooks.com/efi-bootloaders/controlling-sb.html


dupeGuru Music Edition is what you want. Set the scan type to "Audio Contents" in Preferences. Please note that the program is fairware so please contribute if you can.

I suggest you couple this with MusicBrainz Picard which can tag your music files automatically.


Can I install ubuntu from a blu-ray disc?

As long as you download the DVD image, you can.


Given your comment, I suggest something like this:

while read -r line
do
    echo "$line" > sh scriptname.sh &
done < "$file"

wait


APT lets you simulate your commands using the option -s. You can try this yourself, issuing the command apt-get -s remove apt (no sudo needed).

This yields the following output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apturl-common xul-ext-ubufox
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  apt apt-utils apturl nautilus-share python3-software-properties
  software-properties-common software-properties-gtk ubuntu-desktop
  unattended-upgrades
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  apt
0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded.
Remv ubuntu-desktop [1.341]
Remv nautilus-share [0.7.3-1ubuntu5]
Remv apturl [0.5.2ubuntu9]
Remv software-properties-gtk [0.96.13.1]
Remv software-properties-common [0.96.13.1]
Remv python3-software-properties [0.96.13.1]
Remv unattended-upgrades [0.86.2ubuntu1]
Remv apt-utils [1.0.10.2ubuntu1]
Remv apt [1.0.10.2ubuntu1]

So the answer should be: yes, you can.


the sound-volume indicator disappeard Ubuntu 13.10

Try to re-configure it if already installed

Open terminal and execute these commands:

sudo dpkg-reconfigure $(dpkg -l | grep indicator-sound | awk '{print $2}' | tr '\n' ' ')
sudo update-initramfs -u

Logout/restart your system and check whether you get the sound indicator

If above doesn't help then try to re-install indicator-sound by executing this command:

sudo apt-get -f install --reinstall indicator-sound indicator-sound-gtk2

Again logout/restart your system.

Reply if you get any error at any particular command with the error message.


Disable emulation of middle click via simultaneous left and right click

you can use gsettings or dconf-editor to disable this function..

to get the value, use

gsettings get org.mate.peripherals-mouse middle-button-enabled

to set the value to false, use

gsettings set org.mate.peripherals-mouse middle-button-enabled false

Dconf-Editor (If not installed, sudo apt install dconf-editor)


So I ended up solving this problem relatively easily. First I needed to go to ~/.local/share/applications and remove the .desktop file for KeePass. However the application was still showing up and so I checked the folder again and also looked through the wine directory. Sure enough inside of ~./local/share/applications/wine/Programs there was a KeePass.destop file. After removing that file the application was finally removed from my dash!


As far I can see your lines are correct except two:

export $PATH=$PATH:$HADOOP_INSTALL/bin
export $PATH=$PATH:$HADOOP_INSTALL/sbin

should be:

export PATH=$PATH:$HADOOP_INSTALL/bin
export PATH=$PATH:$HADOOP_INSTALL/sbin


How do I update keepass2 to current version in 14.04

I know this is a pretty old post, but searching for the topic I stumbled about it.
And for those of you who will do so in the future, here is an answer that worked for me.

Thanks to Julian Taylor (thx buddy!!) we have a working ppa for Keepass2. Here is his project page: https://sourceforge.net/p/keepass/discussion/329220/thread/17d1bd26/?page=2

Install it like this (via terminal):

sudo apt-add-repository ppa:jtaylor/keepass
sudo apt-get update
sudo apt-get install keepass2

Hope it helps!

Cheers,
Nix


Just now I upgrade from Ubuntu 13.10 to Lubuntu 16.10 from a live USB, how to retrieve my home folder's files before upgrade?

You cannot skip releases while upgrading, this also applies too upgrading via the Ubuntu ISO.

This means that, unless you had a separate /home partition, Ubuntu 16.10 was installed over 13.10 withouth preserving any previous files.

If you want to recover any important files stop using your computer, turn it off your computer right now and use an Ubuntu or any other Linux live ISO and try to recover your files with TestDisk


What is vt.handoff=7 parameter in grub.cfg?

For a smooth boot process, we want to display something other than a black screen as early as possible and leave it on screen until the desktop is ready.  vt.handoff=7 is part of this.  We have the boot loader display an aubergine background (we wanted to have an Ubuntu logo as well, but there are problems with different aspect ratios between the boot loader and the real system, so this is the next best thing).  vt.handoff=7 then causes the kernel to maintain the current contents of video memory on virtual terminal 7, which is a new "transparent" VT type.  The first time that the kernel is told to switch away from VT 7, either from Plymouth or manually (Alt-F1, etc.), these contents are lost and VT 7 reverts to text mode.

The upshot is that, when everything is working correctly, you get an aubergine background on the way out of the boot loader, then at some point Plymouth displays a logo and a progress indicator on top of that, and then the display manager comes up and smoothly replaces that with a login prompt.

Also, you asked about the search command in GRUB.  That is documented in the GRUB manual.


Wammu, Samsung J700 error GetNextMemory code: 56

Wammu will allow you to gain access to the device in several ways and/or for different purposes. Which task is that you are trying to achieve? Are you sure you marked your phone in the proper mode? For dialing and sending/receiving sms your telephone must be in the "Communications" mode. Please provide this information and/or make sure your phone is in the proper mode. Remember that if your phone is being recognized as a SD, MicroSD reader or Data Connection you may receive an error in Wammu.

By default the majority of the mobile devices are in "data connection mode" which means that: once connected, the device itself is recognized as a micro sd card reader device, thus allowing you to read/write photos, videos, music and so on. For the tasks related to read the contacts, calendar, events and other cellphone related stuff, you must dive in the configuration of your cellphone (usually under "connections") and change its mode to "Communications" or whatever your cellphone allows you to. Depending on the stuff in your cellphone's software is what you will be able to do in Wammu.

Your phone seems not to be fully supported, based on the Wammu support page for Samsung SGH-J700, whose report dates from September 5, 2008. Tested with Gammu 1.15.0

It also seems that no new efforts have been made since that date, so you can only expect the results mentioned in the given site, as follows:

  Reporter Note

  Seems to work reasonably well. Can actually read SIM contacts, no phone contacts as of yet though...

Unfortunately I can't give further details on that phone. New mobile devices are having better support.

Good luck!


connect to openvpn using username and password

Yes it's possible.
To do this, you have already an OpenVPN server installed, and the user created in the server.

The easiest openvpn client is network-manager. If you are using Ubuntu run:

aptitude install network-manager-openvpn
restart network-manager

Now click on the network-manager applet, select configure VPN, and setup a new open-vpn connection.
Set the gateway to you server
Set the type to Password
Point your CA to a copy of your server’s ca.crt and everything should just work

Attached is a simple client configuration file that will work.
Edit it to match your server’s settings where appropriate.
You will need this and your ca.crt in the same directory.

On linux my file is called /etc/openvpn/client.conf

##############################################
# Sample client-side OpenVPN 2.0 config file.
# for connecting to multi-client server.
##############################################

# Specify that we are a client and that we
# will be pulling certain config file directives
# from the server.
client

dev tun
proto udp

# The hostname/IP and port of the server.
remote my-server-2.domain 1194

# host name of the OpenVPN server.  Very useful
# on machines which are not permanently connected
# to the internet such as laptops.
resolv-retry infinite

# Most clients don't need to bind to
# a specific local port number.
nobind

# Try to preserve some state across restarts.
persist-key
persist-tun

# Certificate Authority
ca ca.crt

# Username/Password authentication is used on the server
auth-user-pass

# Verify server certificate by checking
# that the certicate has the nsCertType
# field set to "server".  This is an
# important precaution to protect against
# a potential attack discussed here:
#  http://openvpn.net/howto.html#mitm
#
# To use this feature, you will need to generate
# your server certificates with the nsCertType
# field set to "server".  The build-key-server
# script in the easy-rsa folder will do this.
ns-cert-type server

# Set log file verbosity.
verb 3

# To start the openvpn client, simply type:
# openvpn --config /etc/openvpn/client.conf

That's it.


Cannot create directory: No space left on device

So you have a tar archive now that contains compressed files, and while unarchiving them all at once you are running out of disk space.

The only solution to this problem i am aware of is to unarchive them one by one, keeping track of the disk space. Then move around some to another filesystem temporarily to make space for a new one or similar approaches needed also.

At first, list the contents of the archive, assuming the tar file is foobar.tar:

tar -tvf foobar.tar

Then start unarchiving one by one e.g.:

tar -xvf foobar.tar file1_to_unarchive
tar -xvf foobar.tar file2_to_unarchive

and so on. Like i said, keep track of the disk space and move around file(s) when needed.


How to transfer files from remote server to my local desktop using jump host (? gateway server?)

Let's call your gateway A and your work computer B. You have two possibilities how to transfer files from B to your home computer

scp data from B to A and then scp from A to your computer, something like

ssh A
scp B:data .
exit
scp A:data .

Much better option, but requires setup is to use ssh proxy
in your ~/.ssh/config on home computer create something like this

host B
  User <username on B>
  HostName <IP of B>
  IdentityFile <path to your id_rsa on on A>
  StrictHostKeyChecking no
  UserKnownHostsFile /dev/null
  ProxyCommand ssh user@A "nc -q 0 %h %p"

if you setup second option, you can do ssh B directly. And scp B:data . which is your goal.


Where GNOME Sound Recorder save sound clips?

The application gnome-sound-recorder (version 3.28.1) saves files in the ~/Recordings/ folder, ie it creates a folder called Recordings in the users home directory. A search for ".mp3" won't find the files as they are saved as ".ogg" (OggVorbis).

This can be confirmed, as Sergiy Kolodyazhnyy indicates, by using strace, eg:

strace -e trace=%file,openat -o "| grep AT_FDCWD" gnome-sound-recorder

which gives output like:

openat(AT_FDCWD, "/home/USER/Recordings/Clip 1", O_RDONLY) = 20


I've found out, that notebooks with nvidia optimus, that the grafics card is only calculating and not responsible for displaying on the monitor. The displaying task is given to the intel cpu...

That means, if you want to change the saturation, you should find out how to set it up with intel's driver settings and not nvidia's driver.


What is the mean from "N: Can't drop privileges for downloading as file"?

You can use the Chai T. Rex method for single install:
sudo apt -o APT::Sandbox::User=root install --reinstall ./package-name.deb

As I already wrote in comment 80 of bug-report 1522675:

I removed warning messages by setting APT::Sandbox::User to "root" with
cat <<EOF | sudo tee /etc/apt/apt.conf.d/99z-anti-drop
APT::Sandbox::User "root";

EOF

I do not know is it secure or not. But it works as expected!

It removes such warnings permanently. You can use it at your own risk.


Program Installer Not Detecting Internet

It is possible that source of which the file is to be downloaded from is down.

If this happens to all the software in Ubuntu Software Center, then possibly the Software Sources have been modified? (System Settings / Software Sources) Make sure the sources you want are checked.

ALSO: I remember playing with proxy's and not realized that I had added one to the Settings...  XD


GUI not showing after installation of 8.04 on virtual machine

In the picture you supplied us with, the VMware workstation appears to have finished both the installation of both the Ubuntu 8.04 Hardy Heron and the VMware tools, which are a special kind of utilities to allow for better performance and usability of the virtual machine. At its current state, it is awaiting for you to log in using your credentials.

Consider typing your credentials in the prompt (username first, password after the username) and then type in the command line startx.

This should start the X Window Server, responsible for the Graphical User Interface.


Given the information provided in your question and the discussion in chat it appears that there is damage to the boot sector at the beginning of your storage device or perhaps the ESP which is interfering with your ability to write to it and hence update it. It would likely be wise to check the SMART status of the offending device as while if it passes it doesn't guarantee the drive isn't failing, if it fails it's an excellent indication that the drive should be replaced.

Personally I would replace any drive that failed a SMART status check. If the drive is under warranty the manufacturer will typically replace it at little or no cost to you.


USB microphone quits working after a few seconds

Do not let Pulse Audio be open for more than a few seconds.  Then the mic will keep working.  You can close Pulse Audio and then re-open it, as long as you don't let it run for > 5 seconds.


Can I get an updated ISO with all the updates already applied?

Only the LTS releases get point release updates, so no, you can't get an already updated 11.10 image.


How to set or reset password for mysql install to blank

try to access to the  mysql server providing a password. So:

mysql -u root -p

and type the 1111 password you previously set


Problem when I open the LID of my notebook

it is a problem with your video card and graphics drivers. This same exact thing happened to me. After install the correct drivers all the functionality came back. My computer would suspend correctly. the brightness controls returned to working condition. No freeze up. take a couple hours and research your laptops video card and drivers for it.


Run Boot-Repair --> Advanced options --> "GRUB options" tab --> tick "Purge and reinstall GRUB" --> Apply


How to run a script directly when double clicked?

GUI

Depending on which Ubuntu version you have,

Before 13.04

In Nautilus, go to this menu:

  Edit → Preferences

13.04 and later

In Nautilus, go to this menu:

  Files → Preferences

Then,

in the 'Behaviour' tab, enable "Run executable text files with they are opened"

Command line

If you prefer a command:

dconf write /org/gnome/nautilus/preferences/executable-text-activation "'launch'"

Note: Both GUI and command line methods work only for Nautilus (the default graphical file manager in Ubuntu)


Ubuntu 17.10 refuses to shutdown in Dell XPS 15 9560

Since you are using the nouveau one, you might find this thread useful.  The original post is a startup error, but the 2nd answer mentions your exact shutdown error and also solved it with the nVidia binary drivers.

NMI watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [plymouthd:305]

You may need to blacklist or remove the nouveau drivers.  You can do that with the appropriate portion from this post, adding it in /etc/modprobe.d/

Install Nvidia driver instead of nouveau

For example, I have:

/etc/modprobe.d/nvidia-384_hybrid.conf:blacklist nouveau
/etc/modprobe.d/nvidia-384_hybrid.conf:blacklist lbm-nouveau
/etc/modprobe.d/nvidia-384_hybrid.conf:alias nouveau off
/etc/modprobe.d/nvidia-384_hybrid.conf:alias lbm-nouveau off


Creating a shell script for use with 'screen'?

As stated in SYNOPSIS of man screen if you want to run a command in screen it needs to be appended to the command issuing screen. So in your case it would look like

 #!/bin/sh
screen -S tf2 ./startserver.sh

Yet as I do not know if your shell-script is in the working directory of screen, It is more clever to do this

 #!/bin/sh
screen -S tf2 /full/path/to/startserver.sh


Install ubuntu to Notebook through SD Card with only 128Mb or Ram?

It is not the safest or best idea to install Ubuntu (yes, any version) on a computer with 128MB of RAM and a 2GB SSD. I would recommend something like Puppy Linux or even Tiny Core Linux, but no Ubuntu Version can Support that hardware. As for installing, it should work with an SD, as long as you have access to BIOS. Hope this helps!


I would run the USB installer again , setup your partitions on the external HDD and from the dropdown that says "select device for bootloader installation" select the external HDD . To answer your first question - no , you don't need to create another partition


Go to the location where you store your VM /home/ron/VirtualBox VMs/Semios Win7 /.

Open .vbox in your favorite text editor to check if it is empty. Probably it is :) In the same folder you should have file Semios Win7 .vbox-prev. Copy the contents of this file to Semios Win7.vbox, save, and try again.

Now it should work. I did the same and it worked for me.


How do I give the main user (me) root access on Ubuntu 20.04?

If you try to install some applications without privilege as an administrator, you may use:
apt install <the name of the program>

and hit enter. However, for many packages, you'll need, as you said, root privileges. In this case, you must type:
sudo apt install <the name of the program>

and hit enter.
For this last situation, the prompt will ask you for your administration password. Type it and hit enter.
You might verify that no characters appears as you type, it is totally normal.
"sudo" is the abreviation for "super user do".


Chrome/Chromium causes laggy touchpad on lubuntu 14.04 at MacBook

Well, it's been 2 months after I've applied the fix and the problem hasn't reappeared since then - assuming the fix is permanent: just added irqpoll to the end of my kernel boot command at grub.conf like the kern.log said (also found at https://forums.gentoo.org/viewtopic-t-780725-start-0.html)

Editor's Note
Check this question for setting boot parameter: How do I add a kernel boot parameter?


According to this http://www.nvidia.com/object/linux_display_archive.html it looks like about once a month, but as Ravi has said, it is really up to the nvidia developers. They do not follow a strict release schedule. I believe when using Jockey (the Additional Drivers dialog), they are updated as they come out.


How can I reset my Windows XP password using a LiveCD?

Get a 32-bit Ubuntu 10.04 LTS LiveCD, and boot the computer from it.

Then follow these steps once in the LiveCD environment:

Go to Administration > Software Sources and enable the Universe and Multiverse software repository sources. Click Close, then Reload when prompted.
Either install chntpw from Synaptic Package Manager, or open a terminal and run:

sudo apt-get install chntpw

The latter method may be preferable, since this is a commandline program.
Mount the Windows XP partition by going to the Places menu in the top panel, and mounting the relevant filesystem by clicking it. It will be mounted once the Nautilus window for it opens.
In a terminal, type

cd /media/

and hit Tab to autocomplete with the name of your Windows partition. Then (for Windows XP) complete the rest of the path as WINDOWS/system32/config/. Hit Enter to change to this directory.
Run

sudo chntpw -u username SAM

where username is your actual Windows XP username. (If you don't get it right the first time, you can see a list of found users in the output and re-enter it with the right username.) Once it presents you with a text menu, enter 1 to clear the user's password.

Now just restart your machine and log in as the selected user, who will not have a password. Use Windows' own account management tools to set a new password if desired.

(Source)


Cannot see input in "Screen" application

Before you upload your sketch, make sure your have the right port, if your not sure check it with ll /dev/tty* it will appears like /dev/ttyUSBx or /dev/ttyACMx and change it as read-write with follow sudo chmod a+rw /dev/ttyUSB0. and then upload your sketch.

To use a screen package, don't used as sudo cause the package not your owned, try without sudo.

screen /dev/ttyUSB0 9600

For kill the screen type with keyboard key CTRL+A+K.

For more information see man screen.

Hope this helps.


Write enabled files in shared folder opened as readonly in some applications

I have finally been able to access with write permission to all files from every application mounting the shared folder in /etc/fstab.

The trick has been to use uid and gid along with forceuid and forcegid in the mount options of /etc/fstab to map a local user with write permissions when dealing with files and folders of the mounted samba share.

It won´t be for sure the best practice for use when mounting remote shares, but at least it is working for me. What I still don´t know is how to use these mount options when mounting the shared folder using Nautilus.


Sharing files with Android devices (How do I mount an HP Touchpad, Cyanogen Mod 9?)

It sounds like you are looking for USB Mass Storage mode. According to this forum thread, that doesn't exist yet in Cyanogenmod 9: http://forum.xda-developers.com/showthread.php?t=1582319


If you have workspace enabled then the launcher shows an icon for Workspace Switcher.
A better idea will be to use shortcut super + s, this displays all the workspaces, you can chose and select even using the arrow keys.
Another solution will be to install Unity Tweak and set up the hot corners if you want to use the mouse so much.


Intermittent mouse connection drop Ubuntu 18.04 on Dell XPS 9370

For anyone who has similar problems, I installed TLP power management without any configuration from my side. Disabling power saving for Bluetooth devices in TLP fixed the problem.


How do I edit/replace my password verification program? (Wie verändere(/ersetze) ich mein Passwort-Erkennungsprogramm?)

Answering in English since that's the main language of this site. While it's unclear to me why you would want to be doing this, here are some tips:
The information and passwords of the user accounts of a Linux system are stored in /etc/passwd and /etc/shadow. They are stored in hashed form, so you'll need to take that into account if you want to replace something. Please keep in mind that if you write the wrong information into these files, you might not be able to login to your machine any longer.
Authentication is handled by the PAM subsystem. If you are proficient in C, you could write a custom module that would handle shifted passwords like you are asking. Take a look at the documentation here: http://www.linux-pam.org/Linux-PAM-html/Linux-PAM_MWG.html


The Dell  XPS 13 9343 is a certified Ubuntu Laptop. You can install it without mayor issues, with drivers and etc.

Quick note: Most drivers - minus Nvida drivers - are already in the kernel. In some cases like nvidia, the company behind the drivers don't allow adding there drivers in an Operating System. You would have to pay Nvidia a hefty some, to get the drivers loaded in.

But, 99% of the time - from my experience - you don't have to download any drivers, except nvidia drivers. I haven't downloaded them in years, I use the open source nvidia drivers, and I can play games reasonably well.

here is an excerpt from that page:

  The Dell XPS 13 9343 laptop with the components described below has
  been awarded the status of certified pre-install for Ubuntu. Please
  note that for pre-installed systems:

The system is available in some regions with a special image of Ubuntu pre-installed by the manufacturer. It takes advantage of the

  hardware features for this system and may include additional software.
  You should check when buying the system whether this is an option.
      Standard images of Ubuntu may not work at all on the system or may not work well, though Canonical and computer manufacturers will try to
  certify the system with future standard releases of Ubuntu.

  Ubuntu 14.04 LTS 64-bit

  Pre-installed by manufacturer Certification notes

  Fixes

The pre-install version of Ubuntu contained some bugs that were later on fixed through online updates. To check how to solve some of

  those issues you can visit Dell's knowledge base for this model
  (http://search.euro.dell.com/results.aspx?c=uk&cs=ukbsdt1&l=en&s=bsd&cat=sup&k=XPS+13+%289343%29+Ubuntu)

  BIOS
      Dell: X33 (UEFI)

  Hardware summary

  This system was tested with these key components: Processor

  Intel Intel(R) Core(TM) i5-5###U CPU @ 2.00GHz Video

  Intel Broadwell-U Integrated Graphics Wireless

  Broadcom BCM4352 802.11ac Wireless Network Adapter Hardware details
  Audio

  Intel Broadwell-U Audio Controller

  Intel Wildcat Point-LP High Definition Audio Controller

  Intel Unknown BIOS

  Dell X33 Bluetooth

  Broadcom BCM20702A0 Board

  Dell 0144P8 Capture

  Realtek Semiconductor Co., Ltd. Integrated_Webcam_HD Cardreader

  Realtek Semiconductor Co., Ltd. RTS5249 PCI Express Card Reader
  Chassis

  Dell Laptop Disk

  Unknown Toshiba THNSNJ128G8NU M.2 2280 128GB Efi

  EFI v2.31 American Megatrends Keyboard

  Unknown AT Translated Set 2 keyboard Other

  Unknown Dell WMI hotkeys

  Unknown HDA Intel HDMI HDMI/DP,pcm=3

  Unknown HDA Intel HDMI HDMI/DP,pcm=7

  Unknown HDA Intel HDMI HDMI/DP,pcm=8

  Unknown HDA Intel PCH Headphone Mic

  Unknown Lid Switch

  Unknown Power Button

  Unknown Sleep Button

  Unknown Video Bus

  Intel Broadwell-U Camarillo Device

  Intel Broadwell-U Host Bridge -OPI

  Intel Wildcat Point-LP SATA Controller [AHCI Mode]

  Intel Wildcat Point-LP PCI Express Root Port #1

  Intel Wildcat Point-LP SMBus Controller

  Intel Wildcat Point-LP MEI Controller #1

  Intel Wildcat Point-LP LPC Controller

  Broadcom Unknown

  Linux Foundation 2.0 root hub

  Linux Foundation 3.0 root hub

  Intel Unknown Processor

  Intel Intel(R) Core(TM) i5-5###U CPU @ 2.00GHz System

  Dell XPS 13 9343 Touchpad

  Unknown SynPS/2 Synaptics TouchPad Usb

  Intel Wildcat Point-LP USB EHCI Controller

  Intel Wildcat Point-LP USB xHCI Controller Video

  Intel Broadwell-U Integrated Graphics Wireless

  Broadcom BCM4352 802.11ac Wireless Network Adapter


See if this helps.
File structure should be the same, but I didn't test if it works.
https://www.maketecheasier.com/use-custom-tray-icons-in-kde/


Fresh Install Ubuntu 18.04. USB Storage Devices are not recognized

From RedHat:

Resolution

Try loading usb_storage module manually by ignoring install configuration.

Raw

modprobe --ignore-install usb_storage
modprobe uas

Root Cause

Check if the usb_storage module is blacklisted.
Module uas has dependency of usb_storage module.
As usb_storage was blacklisted, uas was not able to be loaded, and usb was not detected.


I can't see my login screen after upgrade, only dots

It sounds like a missing background file. Edit /etc/lightdm/unity-greeter.conf and change the line beginning with background= to point to an image that exists and is readable by the lightdm user at login (so not in an encrypted folder, etc.). The default is:

background=/usr/share/backgrounds/warty-final-ubuntu.png

If this isn't working for you, either check that the file in question exists and has appropriate permissions, or change the image to another one. (Tip: You can get an exact image path by selecting it in Nautilus, the file manager and hitting copy. Then you can simply paste it into the file mentioned above.)


amount of attempts Authentication password

No, you will not be locked out if you have started a certain number of incorrect attempts. At least not in the default installation.

But it is possible, via PAM. ;)


System won't boot up properly - screens turning off and on. Only when second monitor is plugged in

I have finally solved the issue and this topic can be closed. For anyone having a dual monitor issue. I would say, boot into Ubuntu with only ONE monitor connected. Then go to Nvidia Settings, go to ¨X server display information¨, then click: ¨Reset¨ and then hit apply. While the computer is running, connect the second display to your PC. One connected, click ¨Detect Displays¨. The second monitor should be on. Again, click on ¨Reset¨ and then reboot the machine. Issue solved =)


Why ubuntu software center, synaptic and terminal are not able to download anything?

Most likely a problem with the repositories, such as a PPA being removed and is no longer available.  Have a look at the answer to this question:


There is a really nice tutorial on ubuntuforums about Triple Booting on iMac.
Here is the link
http://ubuntuforums.org/showthread.php?t=1908210


grub fails to install to MBR (RAID+LVM+LUKS)

As it turns out, the true underlying issue was that added at the end of my question: since the machine doesn't boot from UEFI, grub requires a dedicated partition (2MB is reportedly more than enough) with the "bios_grub" flag at the beginning of each drive (each drive you plan on being able to boot from if the array ever became degraded, at least). One can set those up in the live-installer by choosing to use those partitions for bios boot.

(The reason this fix didn't initially work for me was that I created the partitions using another live-cd prior to running the Ubuntu Server installer, which messed things up a little.)

I'd like note @kyodake's reminder regarding the necessity of installing grub to the MBR's of the rest of the disks in your RAID array (I find that manually running sudo grub-install /dev/sdX is fastest). Finally, for completeness sake I'll stress that the reason for the separate /boot partition is that this way one can encrypt the rest of the filesystem (as outlined in the guide I linked to, and summarized in my own partitioning scheme). If one isn't inclined to implement full-volume-encryption, there's really not a good reason to create a separate partition.


I don't know what went wrong during the installation of my Conky, maybe you could help me

This is happening becouse voffset parameter of your conky cofiguration file is not adjusted well.

You will find many  voffset parameter in your config file like this ${voffset 50}.

Increase the  first voffset  value, and it will shift the conky element down. Adjust it accordingly.


On the Grub2 boot selection screen press "e".

Add the following to the end of the string (you may want to write this down)

noapic nolapic acpi=off


How to remove the Wine Windows Program Loader from dashboard launcher in ubuntu 12.04

What I can suggest is a workaround:

First install dconf-tools package:

$ sudo apt-get install dconf-tools

Run dconf-editor using launcher or terminal. Then navigate to desktop -> unity -> launcher. There you can delete the entry you want to remove from launcher.


Is it bad to have at all times (one) terminal logged in as root? If so, why?

Yes. Well. The idea of logging out your root terminal is due to the fact that Linux is a multi-user system. So other users could walk to your terminal and issue commands you do not want them to issue. With the introduction of desktops (that are often single user) this is less of an issue.

The 2nd issue is that some files depend on the user being the owner of files. If you touch those as root they will be saved for the user root and you can lock yourself out of the desktop.  We have several questions about that on Ask Ubuntu.

But besides that: Ubuntu does not use root. We use "sudo" and (by default) you have to supply the "sudo" password every 15 minutes. So there is no need for "root". No need at all. Learn to live with the way Ubuntu does it. It has proven it works over the past decade or so.

But... It is your system. It is your data. If you believe you need "root" go for it. Most of us will not. When you mess up it is  on your head (but that is also doable using "sudo" ;) ).

Make regular backups. Check that you can restore backups. And you should always be able to restore your system.


sftp connection failed, strange error messsage

Maybe you have to do with a message (like welcoming message) popping up after the successful login. sftp fails to connect in this situation (see http://www.openssh.org/faq.html#2.9).

Try to ssh in the same server and see if any message pops up. It should be started from one of these file ~/.profile, ~/.bash_profile,~/.bashrc, or other shell initialization file. You can then comment out the respective line from there.