Keyboards writes "bad" space characters in gnome terminal

Actually I figured it out ! When I press AltGr + Space, a non-breaking space is inserted, which looks exactly like a space... but isn't one.

On a french keyboard, the pipe character is inserted using AltGr + 6.
What happens is sometimes the AltGr is still down when I press the Space, which is why this "bad" space character is inserted.

This problem has a bug report on launchpad. The suggested solution is to use the following command so that no non-breaking spaces are inserted :

setxkbmap -option "nbsp:none"

To do it permanently, I added the line in .bashrc and it works fine ! Note that doing it in .profile doesn't work (I guess if it's not in .bashrc the shell overrides it at startup)


The solution isn't obvious. I'll give 2 versions.

Method 1: notify-osd

Easy workaround, but has some limitations (notifications don't go away after being clicked on for example). Run these commands in a terminal and you're good:

sudo apt-get autoremove xfce4-notifyd
sudo apt-get install notify-osd

and then set notify-osd to run on startup. Finished.

Method 2: Dunst

A bit trickier but worth it. Run these commands:

sudo apt-get install libdbus-1-dev libx11-dev libxinerama-dev libxrandr-dev libxss-dev libglib2.0-dev libpango1.0-dev libgtk-3-dev libxdg-basedir-dev
git clone https://github.com/dunst-project/dunst.git
cd dunst
make
sudo make install

It should already work, but it's ugly. Now create a file in ~/.config/dunst called dunstrc and paste the following:

    [global]
    font = Arial 11 #Monospace 10

    # allow a small subset of html markup:
    # bold
    # italic
    # <s>strikethrough<s/>
    # underline
    #
    # for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
    # If markup is not allowed, those tags will be stripped out of the message.
    allow_markup = yes

    #show_indicators=true
    icon_position=left
    icon_folders = "/usr/share/icons/gnome/48x48/status/:/usr/share/icons/gnome/48x48/devices/"
    max_icon_size=40
    shrink=yes

    # The format of the message. Possible variables are:
    #   %a  appname
    #   %s  summary
    #   %b  body
    #   %i  iconname (including its path)
    #   %I  iconname (without its path)
    #   %p  progress value if set ([  0%] to [100%]) or nothing
    # Markup is allowed
    format = "%s\n%b"
#"%a: %s\n%b"

    # Sort messages by urgency
    sort = yes

    # Show how many messages are currently hidden (because of geometry)
    indicate_hidden = yes

    # alignment of message text.
    # Possible values are "left", "center" and "right"
    alignment = left

    # The frequency with wich text that is longer than the notification
    # window allows bounces back and forth.
    # This option conflicts with 'word_wrap'.
    # Set to 0 to disable
    bounce_freq = 0

    # show age of message if message is older than show_age_threshold seconds.
    # set to -1 to disable
    show_age_threshold = 120

    # split notifications into multiple lines if they don't fit into geometry
    word_wrap = yes

    # ignore newlines '\n' in notifications
    ignore_newline = no

    # the geometry of the window
    # geometry [{width}]x{height}][+/-{x}+/-{y}]
    # The geometry of the message window.
    # The height is measured in number of notifications everything else in pixels. If the width
    # is omitted but the height is given ("-geometry x2"), the message window
    # expands over the whole screen (dmenu-like). If width is 0,
    # the window expands to the longest message displayed.
    # A positive x is measured from the left, a negative from the
    # right side of the screen.  Y is measured from the top and down respectevly.
    # The width can be negative. In this case the actual width is the
    # screen width minus the width defined in within the geometry option.
    geometry = "450x5-30+20"

    # The transparency of the window. range: [0; 100]
    # This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
    transparency = 20

    # Don't remove messages, if the user is idle (no mouse or keyboard input)
    # for longer than idle_threshold seconds.
    # Set to 0 to disable.
    idle_threshold = 60

    # Which monitor should the notifications be displayed on.
    monitor = 0

    # Display notification on focused monitor. Possible modes are:
    # mouse: follow mouse pointer
    # keyboard: follow window with keyboard focus
    # none: don't follow anything
    #
    # "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
    # This should be the case for almost all modern windowmanagers.
    #
    # If this option is set to mouse or keyboard, the monitor option will be
    # ignored.
    follow = mouse

    # should a notification popped up from history be sticky or
    # timeout as if it would normally do.
    sticky_history = yes

    # The height of a single line. If the height is smaller than the font height,
    # it will get raised to the font height.
    # This adds empty space above and under the text.
    line_height = 0

    # Draw a line of 'separatpr_height' pixel height between two notifications.
    # Set to 0 to disable
    separator_height = 2

    # padding between text and separator
    padding = 8

    # horizontal padding
    horizontal_padding = 8

    # Define a color for the separator.
    # possible values are:
    #  * auto: dunst tries to find a color fitting to the background
    #  * foreground: use the same color as the foreground
    #  * frame: use the same color as the frame.
    #  * anything else will be interpreted as a X color
    separator_color = frame

    # print a notification on startup
    # This is mainly for error detection, since dbus (re-)starts dunst
    # automatically after a crash.
    startup_notification = false

    # dmenu path
    dmenu = /usr/bin/dmenu -p dunst:

    # browser for opening urls in context menu
    browser = /usr/bin/firefox -new-tab

[frame]
    width = 15
    color = "#071019"#"#000000"

[shortcuts]
    # shortcuts are specified as [modifier+][modifier+]...key
    # available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
    # and 'mod4' (windows-key)
    # xev might be helpful to find names for keys

    # close notification
    close = mod4+m

    # close all notifications
    close_all = mod4+shift+m

    # redisplay last message(s)
    history = mod4+n

    # context menu
    context = mod4+shift+i

[urgency_low]
    # IMPORTANT: colors have to be defined in quotation marks.
    # Otherwise the '#' and following  would be interpreted as a comment.
    background = "#071019"
    foreground = "#FFFFFF"
    timeout = 10

[urgency_normal]
    background = "#071019"
    foreground = "#FFFFFF"
    timeout = 10

[urgency_critical]
    background = "#071019"
    foreground = "#FFFFFF"
    timeout = 0

# Every section that isn't one of the above is interpreted as a rules
# to override settings for certain messages.
# Messages can be matched by 'appname', 'summary', 'body' or 'icon'
# and you can override the 'timeout', 'urgency', 'foreground', 'background'
# and 'format'.
# Shell-like globbing will get expanded.
#
# SCRIPTING
# you can specify a script that gets run when the rule matches by setting
# the 'script' option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: if you don't want a notification to be displayed, set the format to ""
# NOTE: It might be helpful to run dunst -print in a terminal in order to find
# fitting options for rules.

#[espeak]
#    summary = "*"
#    script = dunst_espeak.sh

#[script-test]
#    summary = "*script*"
#    script = dunst_test.sh

#[ignore]
## This notification will not be displayed
#    summary = "foobar"
#    format = ""

[signed_on]
    appname = Pidgin
    summary = "*signed on*"
    urgency = low

[signed_off]
    appname = Pidgin
    summary = *signed off*
    urgency = low

[says]
    appname = Pidgin
    summary = *says*
    urgency = critical
    format  = "%s "%b""

[music]
    appname = Amarok
    summary = "Now playing"
    urgency = low

#[twitter]
#    appname = Pidgin
#    summary = *twitter.com*
#    urgency = normal
#

Now set dunst to run on startup and you should now have a 100% functioning notification system. You can tweak it even more so that it displays an icon while changing the volume but that would involve either writing a script or removing pulsaudio in favour of alsa to use this.


I installed Cinnamon in Virtualbox but it doesn't start

I enabled 3D aceleration in the virtual machine and problem solved. Thanks!


Elementary OS PPA gives “The repository does not have a Release file.” error

According to PPA pages (elementary-os/testing and mpstark/elementary-tweaks-daily) - they do not have released packages for 18.04 LTS (Bionic Beaver).

So you should remove these PPAs from the system with packages installed from them:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:elementary-os/testing
sudo ppa-purge ppa:mpstark/elementary-tweaks-daily


Build linux kernel 4.15.0-22 scripts/Makefile.clean

I have found a way, create link crypto.master from crypto and build again.

make clean distclean && make mrproper && make-kpkg clean
ln -s crypto crypto.master
cp /boot/config-4.15.0-22-generic .config
make-kpkg --initrd kernel_source -j8


Automatic brightness settings and video card driver

I'm not sure what do you exactly want, but for changing brightness you can probably use xbacklight. After installing it, type this into terminal and it should change brightness to 70%:

xbacklight -set 70

To have this command ran automatically after logging in, you can put it into .gnomerc file which is located in your home directory (it's a hidden file, use Ctrl-H to show hidden files).


How can I get the terminal window to open in the centre of the screen?

You can use the --geometry charsxline+x+y to select both size and position of a program, like gnome-terminal.  Adjust the x and y to fix your display, they are in pixels.  Edit the file /usr/share/applications/gnome-terminal.desktop adding to the "Exec" line, for example:

Exec=gnome-terminal --geometry 130x24+500+400

Save and exit.
Close all existing open terminals, and the new ones will have the selected geometry.


x64 or x32 best for virtualbox to install windows 8 or 7

If you have x64 CPU and you run a x32 application (or OS) you simply waste some of CPU performance because some of CPU registers are simply useless. It won't make it faster.
So simply use x64 if you can.


'Package not in database' when restoring with dpkg --set-selections

The warnings are safe to ignore, as they only concern the dpkg database. Actual installation is done with APT, which doesn't use this database.

When you are using dpkg in this manner, you need to use dselect-upgrade in order to apply the changes marked.

sudo apt-get dselect-upgrade

From man dpkg:

  Note that this file is mostly useless if
   you don't use dselect but an APT-based frontend: APT has its own system to keep track of available packages.


How do I install the nvidia driver for my Nvidia GeForce 6150 LE on Ubuntu 12.04 LTS?

take a look here and I hope it works for you

http://www.upubuntu.com/2012/12/install-nvidia-driver-31309-beta-in.html

See! it's easy ;)


Automating file transferring from multiple source folders to one target folder

I would use simple script for that, like this one:

for x in {folder1,folder2,folder3}; do mv $x/*.asc folder4/; done

This script assumes you're in path that has folder1,folder2,folder3 in it.
You can tune it up to your needs.

For all folders in specific place you can do:

ls -1 >> file
for x in `cat file`; do mv $x/*.asc folder4/; done

But be aware, that ls -1 will also contain files and if there are also files in that folder, you will get errors for these files, saying that path does not exist.


This is really a questions of personal preference.

The non-LTS releases which also consist of some .04 releases have shorter periods of support, but often have 'new' features that the LTS releases do not.

For me I usually update myself to the latest on my personal primary laptop, go to testing on my testing laptop and depending on the features stay on the LTS for servers. For my work laptop I usually upgrade to the most recent, but I do not always have time to do it immediately upon release.

In summary:

If you want stability and want long term support then go with an LTS

If you want cutting edge, but still stable, go with the latest release


Recommended OS and kernel upgrade from Ubuntu 12.04.4 LTS

I would like to know what is the recommended OS and kernel upgrade for that particular version.

The next LTS after that would be 14.04 LTS.

  And how can I do it without internet connection?

You will need an internet connection of some sorts. Ubuntu is an operating system depending highly on an internet connection being present. Your best method would be to connect the system to the internet and upgrade through that.

If the server is important to be up and running asap all other methods will be risky and will consume a lot of time.

There is a tool called "apt-offline" where you use an internet connection from a remote system to download packages. It can be used to upgrade BUT the list it generates is based on the system the command it run so you will need another system that is similar and does have an internet connection. So that defeats the purpose: if that is a workable method you could just attach that server you want upgraded to the web.

We tend to NOT upgrade. At our office we have more than 1 server and we rotate them: 14.04 is on an active server, 12.04 is on the older server and this will get the 16.04 when it arrives (and will become the active server again).

That way we can tinker all we want and only have a few minutes downtime when the router is changed.

Alternative

burn a 14.04 dvd
backup all your data (apache, mysql settings are pretty easy to make backups from and you probably already have a backup tool running).
install 14.04
install the software you use.
restore your data.


Probelms with Loading Realtek rtl8812AU driver in Ubuntu 19.10

I'm having the same issue but after distribution upgrade now on kernal 5.3.0-26-generic. sudo apt install  rtl8812au-dkms had always worked after new kernel upgrade but not now so your not alone.

Ok after some searching this worked for me:
sudo apt install git dkms
git clone https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
sudo make dkms_install

Got my answer from here maybe it helps Need rtl8814au driver for kernel 5.3 on Ubuntu 19.10
The person posting answer also said this:

It worked for me on my rtl8814au device, it should work for rtl8812au, rtl8814au, and rtl8821au devices. For some strange reason the driver didn't want to work until after a second reboot. I don't know why

Hope it helps.


How to configure HTTP proxy with authentication on Ubuntu WSL on windows 10?

cntlm proxy for NTLM authentication

I am assuming your proxy requires a NTLM based user authentication, which will not work with the credentials specified in $HTTP_PROXY. A NTLM capable proxy this required for that: e.g. cntlm.

Install cntlm proxy

The default way of installing the proxy would be to use sudo apt-get install cntlm, but without any proxy this will obviously fail. You need to manually download the package cntlm_0.92.3-1ubuntu1_amd64.deb and copy it into your WSL instance.

Install the package with

$ sudo dpkg -i cntlm_0.92.3-1ubuntu1_amd64.deb

Configure cntlm proxy

The cntlm proxy requires proper NTLM-Proxy configuration in /etc/cntlm.conf:

# /etc/cntlm.con
Domain      Domain
Username    username
Proxy       1.2.3.4:5678
NoProxy     localhost, 127.0.0.*, 10.*, 192.168.*
Listen      3128

This is the minimal required configuration for cntlm. Test and verify cntlm with the following command:

$ cntlm -M http://www.google.com
cntlm: Starting cntlm version 0.92.3 for LITTLE endian

cntlm: Proxy listening on 127.0.0.1:3128

cntlm: Workstation name used: hostname

Password:

If the authentication is successful, generate hashes for the authentication by using the -H switch:

$ cntlm -H
cntlm: Starting cntlm version 0.92.3 for LITTLE endian

cntlm: Proxy listening on 127.0.0.1:3128

cntlm: Workstation name used: somehost

cntlm: Using following NTLM hashes: NTLMv2(1) NT(0) LM(0)

Password:
PassLM          123456789ABCDEF123456789ABCDEF12
PassNT          123456789ABCDEF123456789ABCDEF12
PassNTLMv2      123456789ABCDEF123456789ABCDEF12    # Only for user 'username', domain 'Domain'
cntlm: Terminating with 0 active threads

Add the three hashes PassLM, PassNT and PassNTLMv2 to the cntlm configuration file /etc/cntlm.conf. Then activate the proxy via systemd:

$ sudo systemctl restart cntlm

Now the proxy should listen on your localhost at port 3128.

Configure proxy

Now you can configure the proxy as described in this post but use:

$ export http_proxy=http://localhost:3128/
$ export https_proxy=http://localhost:3128/


Write a Live Distribution on a DVD and explore the partitions to be able to recover any data left on the Hard Disk devices (Windows & Linux partitions). In the Live Distribution install extundelete or any equivalent package to recover your deleted data from Linux ext partitions.
You can't recover a file if it have been overwritten for 7 times or more.
If you have any doubt write them here in a comment.


Tried install of Ubuntu onto Gateway NV79 = ends up with dark screen

During boot you can pass some options.
Try the option acpi_backlight=vendor.


Try creating an xorg.conf file...
sudo gedit /etc/X11/xorg.conf

On newer versions of Ubuntu, it is not recommended to run GUI applications using sudo. Instead use
sudo touch /etc/X11/xorg.conf
gedit admin:/etc/X11/xorg.conf

Then edit the xorg.conf file for your preferred resolution, save, exit, and restart.
You can obtain the correct Modeline for your xorg.conf file by executing the cvt command. In the example below, the command used was
cvt 1280 1024 60.09

where the sequence of parameters are

the desired horizontal resolution
the desired vertical resolution
the monitor's frequency

Reference this answer to see how to use and test the cvt command prior to adding the Modeline to your xorg.conf file.  You can also get more information at Resolution.
Here is an example xorg.conf file.
Section "Monitor"
    Identifier  "Samsung SyncMaster 171N"
    Modeline    "1280x1024_60.09"  109.25  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
    Option      "PreferredMode" "1280x1024_60.09"
EndSection

Section "Device"
    Identifier  "Intel"
    Driver      "intel"
EndSection

Section "Screen"
    Identifier "Default Screen"
    Monitor     "Samsung SyncMaster 171N"
    Device      "Intel"
    Defaultdepth 24
    SubSection  "Display"
        Modes   "1280x1024_60.09"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier  "Default Layout"
    Screen      "Default Screen"
EndSection


Sublime Text 2: No module named __future__

Sublime Text 2 requires a Python 2.6 library. This problem is caused by it being unable to find it. It's possible to fix this by placing the contents of a Lib folder from a python distribution archive downloaded from here into a lib/python2.6 folder of Sublime Text 2 installation.


Ubuntu 13.04, Mounting 2nd HDD, lost home directory

You probably want to mount both the old and the new home directory without logging in as "nick". As root in a rescue shell:

Create two directories like /mnt/old-home and /mnt/new-home.
Change /etc/fstab to mount the home directories on these directories.
mount -a
Move the files.
Unmount both directories.
Change /etc/fstab to use /home/nick instead of /mnt/new-home.
mount -a
Exit the rescue shell and tell Ubuntu to boot normally.


How do I write a script to output an html file?

If $BROWSER is empty [ -n $BROWSER ] becomes just [ -n ]. That tests if -n has non-zero length, which is always true.

Then $BROWSER '/tmp/flash-viewer.htm' is executed which actually is just  '/tmp/flash-viewer.htm' if $BROWSER is empty.

Use

if [ -n "$BROWSER" ]; then

so that there's always a second argument.

To find out the exact path of your browser, use which <browser>, replacing <browser> with the browser you are trying to open the file with.

For example,

which firefox

would return /usr/bin/firefox, so you could do:

BROWSER=/usr/bin/firefox


How to create a desktop shortcut to a data file in Ubuntu 18.04.4 LTS?

Most text files are associated with a text file editor such as Gedit. This means that if you double click on such a file in the File Manager, the file will be opened in Gedit.

If that is the case in your system, you could enter this command:

ln -s ~/Documents/my-text-file.txt ~/Desktop/my-text-file.txt

It is called a symbolic link. This will give you an icon on the desktop which will, when clicked, open the file in your default text editor. It will still be the file in Documents though.

You can replace the second my-text-file.txt with anything you fancy: this only changes what it will say on your desktop. It doesn't even have to end in .txt.


multiple rails applications on same host name with different folders

I solved this issued using apache + passenger, passenger comes with suburi where using symlink and some changes in the apache.conf for the virtual hosts, same domain name can be used to run multiple application. Documentation for reference


The problem is that in the themes.txt file you must specify "DejaVu Sans Regular 16" in both the item_font and font fields, in order DejaVu Sans fonts to be applied to the theme.


Cannot install ia32-libs on ubuntu 14.04 64bit?

The ia32-libs package has not been available since Ubuntu introduced multiarch. The libraries mentioned in the message, lib32z1 lib32ncurses5 lib32bz2-1.0, will fully replace any functionality needed by ia32-libs. If a package specifically depends on the library, it will have to be repackaged.

Adobe Air was never repackaged for multiarch. You may try to find a working package or install from an old repository, but that's at your own risk.

See also:

ia32-libs package not found intalling Adobe Air

What happened to the ia32-libs package?

How can I install Adobe AIR?


Lubuntu 17.10 - Removing suspend, switch user, lock screen options from "Shutdown" Launcher

From https://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html
and https://bbs.archlinux.org/viewtopic.php?id=180798
I'd try creating or editing the file /etc/polkit-1/rules.d/10-auth.rules
and including the following content:

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.login1.suspend" ||
        action.id == "org.freedesktop.login1.suspend-multiple-sessions" ||
        action.id == "org.freedesktop.login1.hibernate" ||
        action.id == "org.freedesktop.login1.hibernate-multiple-sessions" ||
        action.id == "org.freedesktop.login1.lock-sessions"
        // switch user ?
        // logout ?
        ) {
        return polkit.Result.NO;
    }
    if (action.id == "org.freedesktop.login1.shutdown" ||
        action.id == "org.freedesktop.login1.reboot") {
        return polkit.Result.YES;
    }
});

I haven't been able to find the actions for switch user or logout, though.


I find that main reason for corrupted theme behavior, was missing package
    gtk-engines-murrine
in my (gentoo) distribution. Installing that package help to solve this problem. In this case no theme tweaking was needed. To check missing packages related to gtk, try to run gtk based application from shell and observe the standard output.

In case if this is not the case, one can try to check the certain colors used in gtk widgets eg. #000000 or #ffffff and search for the color occurence in theme files, which are usualy in folder
    ~/.themes
I use 'gcolor-2' tool for pick color of actual running widgets.
In case of theme 'AmbiancePNight' I found following in file 'gtkrc' :

style "radiocheck"  = "button" {
    text[NORMAL] =  lighter(@selected_bg_color)
    text[PRELIGHT] = shade(1.06, shade (0.535, @selected_bg_color))
    bg[NORMAL]   = shade (0.92, @bg_color)
    bg[PRELIGHT] = mix (0.2, @selected_bg_color, shade(1.1, @bg_color))
    fg[INSENSITIVE] = darker (@bg_color)
    fg[ACTIVE] = @fg_color

    engine "murrine" {
        reliefstyle = 3
        gradient_shades = {1.2, 1.0, 1.0, 0.9}
        shadow_shades = {0.6, 0.5}
        textstyle = 0
    }
}

Start your favorite editor and, try to play with the first line for example like this:  text[NORMAL] = "#fff"

After that open theme chooser dialog and de-select/select the theme to load new settings.
NOTE: that if you use wrong syntax the theme will not be loaded, and different theme will be used instead!!!


How to open AbiWord (or Writer) in fullscreen via terminal

I found that this works.

abiword & sleep && wmctrl -r :ACTIVE: -b add,fullscreen

It's quite similar to Radu's suggestion except it deals directly with the window manager. The sleep might not be required but in my experience, there's a short delay before Abiword takes focus. If your computer is really slow, you might need to extend the sleep to two or three seconds.


Tl;dr
Use this:
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && (echo terminal; exit 0) || (echo error; exit 1))" "$([ $? = 0 ] && echo Task finished || echo Something went wrong!)" "$(history | sed -n "\$s/^\s*[0-9]\+\s*\(.*\)[;&|]\s*alert\$/\1/p")"'

Simply evaluating $? again won't work, because by the time $? would be evaluated the second time it would contain the first command subsitution's ($([ $? = 0 ] && echo terminal || echo error)'s) exit status (always 0 since the two echos would always succed). A trick to go around this would be making the first command substitution exit with an equivalent exit status again:
$([ $? = 0 ] && (echo terminal; exit 0) || (echo error; exit 1))

This way $? could be evaluated a second time in order to decide which string to print:
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && (echo terminal; exit 0) || (echo error; exit 1))" "$([ $? = 0 ] && echo Task finished || echo Something went wrong!)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]+\s*//;s/[;&|]\s*alert$//'\'')"'

On another note your history|tail -n1|sed -e '\''s/^\s*[0-9]+\s*//;s/[;&|]\s*alert$//'\'' is a bit over-convoluted. This would be way more readable:
history | sed -n "\$s/^\s*[0-9]\+\s*\(.*\)[;&|]\s*alert\$/\1/p"

So, final command:
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && (echo terminal; exit 0) || (echo error; exit 1))" "$([ $? = 0 ] && echo Task finished || echo Something went wrong!)" "$(history | sed -n "\$s/^\s*[0-9]\+\s*\(.*\)[;&|]\s*alert\$/\1/p")"'

You can test by running (exit 0); alert and (exit 1); alert.


How can I start transmission-daemon service before login?

You just install the transmission-daemon
 package and it'll be started automatically during boot via the init script it installs. The instance that is started via the init script will be run as the user debian-transmission, and it reads /etc/transmission-daemon/settings.json as the configuration file.

See https://trac.transmissionbt.com/wiki/EditConfigFiles on how to edit settings.json. Remember to run pkill -HUP transmission-d after editing settings.json, otherwise your changes will be overwritten next time transmission-daemon is stopped.


How to uninstall manually installed java? (jdk 8)

Run:

sudo update-alternatives --remove-all java
sudo update-alternatives --remove-all javac
sudo update-alternatives --remove-all javaws
sudo rm -rf /usr/lib/jvm/jdk1.8.0


I gave you an answer to this in your last question. You need to tell Apache to proxy nginx so that when a request comes in for your domain, it gets routed through.

You're going to want to use the ProxyPass/ProxyPassReverse arguments in the settings for your Apache virtual host.

<VirtualHost *:80>
    ServerName "mydomain.com"
    ProxyRequests Off

    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass / http://127.0.0.1:33333/
    ProxyPassReverse / http://127.0.0.1:33333/
 </VirtualHost>

So now when you visit mydomain.com, Apache routes the request through to the secondary server.

If you need more examples, Google "apache reverse proxy".


Ubuntu web browser in 16.04 makes my system hang

Ghastly piece of kit on 16.04 amd_64 install  - tried to open it for the first time today resulted in a system freeze
sudo apt-get remove webbrowser-app

sorted it out.


The problem must be that you are on Ubuntu 12.04 and added the personal package archive for Ubuntu 11.10. Or the PPA doesn't work properly.

The best thing to do, in my opinion, is to remove the repository. Kdenlive installs fine without it.
In terminal you can do it with the following command:
sudo add-apt-repository -r ppa:sunab/kdenlive-release
Then you can proceed with sudo apt-get update && sudo apt-get install kdenlive


Try just to upgrade to a new stable kernel (assumimg you are on x86_64):

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.8/

Make a new dir, then download there linux amd64: headers all, headers generic, image generic and modules generic deb packages, then cd to created directory and install all of them using

sudo dpkg -i *

Then do

sudo update-grub

And reboot your laptop with a new kernel. This must help.


make issue, the last argument must be 8 bit immediate

Two methods here:

compile latest Git-source
use official Ubuntu packages from repository (preffered way)

Use latest source from Git

The latest itpp-4.3.1.tar.bz2 does not compile on Ubuntu 18.04 LTS as you already wrote. But it compiles normally on Ubuntu 16.04 LTS with GCC 5.4.

I have just found that developers have new special commit to fix the error. So we can install source version with:

sudo apt-get install autoconf automake libtool build-essential cmake git \
libblas-dev liblapack-dev libfftw3-dev
cd ~/Downloads
git clone https://git.code.sf.net/p/itpp/git itpp-git
cd itpp-git
./autogen.sh
./configure
mkdir build
cd build
cmake ..
make
sudo make install

Use official Ubuntu packages from repository

I have never used this package, but it seems that it is packaged with version 4.3.1-8 as libitpp-dev and libitpp8v5 even on 18.04 LTS. So you can install it with

sudo apt-get install libitpp-dev libitpp8v5

and then link your application to IT++ as described in the documentation.

Also you can compile some examples from libitpp-doc package.


how do I install GKSU or other program to edit as root to save changes in grub file at /etc/default to enable nomodeset bootup?

gksu is deprecated and no longer available.

Many people recommend command line tools for administration tasks, for example

sudo nano filename

But if you really need a program with a graphical user interface, there are solutions:

If the program is prepared for it

GUI-program

or select the program via the menu or dash and you will be prompted for password
pkexec GUI-program
sudo -H GUI-program

Never use plain sudo GUI-program because it can damage your userID's configuration files.

If you are using Wayland (instead of the old Xorg), there is more complication, described at the following link,

Why don't gksu/gksudo or launching a graphical application with sudo work with Wayland?


What should I do after a cmake error occurred?

To build program that depends on some libraries you need to install development packages for those libraries.
Development packages usually named same as library, but with -dev on the end, e.g. libpurple-dev for libpurple, libsqlite3-dev for libsqlite3 etc.

According to your log you need to install:

apt-get install libpurple-dev libglib2.0-dev libmozjs185-dev \
    libsqlite3-dev libcurl4-gnutls-dev


It is absolutely normal that ~/.local/bin folder is not maintained by APT.
Remove the file with:
rm -rf ~/.local/bin/cmake

and retry running which cmake or cmake --version to confirm its removal.


I have trouble playing youtube videos on Firefox using Gnash

Gnash flash support for Youtube is very limited at best. I can't watch videos or see them with poor quality in my system. I would remove Gnash and use the HTML5 solution instead of flash based.


Try: Right click on the icon and selection "Original Size", then attempt to resize again.

Otherwise, move aside the dconf/gconf settings directories and restart nautilus (log off) and try again.

Everything checks out here, resizing both .desktop files and normal files.


Unity crashes when window is minimized via starter

Since the problem did not appear in a virtual machine with a new Ubuntu, I tried to delete ~/.compiz, ~/.config/compiz-1 and ~/.gconf, which solves the problem. Now everything works as expected, thanks anyway! :-)


Press Ctrl+Alt+T to go to a terminal and type the magic words:

sudo apt purge shotwell

sudo: SuperUser DO
apt: Advanced Package Tool

the rest is pretty obvious...


Be able to create edit and move files to and from /var/www

You need to use usermod.

usermod will modify your user.

You can then modify your user to be part of the www-data group.

$ sudo usermod -a -G www-data your-user

http://www.computerhope.com/unix/usermod.htm


It sounds like the file did not download correctly. You can check if the file sizes match. Even better, if the site provides one, you can check if the hashes match.

Unfortunately you will likely need to re-download the file.


NetworkManager vpn con fails when no gateway

This is a known feature/bug in NetworkManager dating back to 2013 there needs to be a gateway set even if it does nothing or is a fake IP.

https://bugzilla.gnome.org/show_bug.cgi?id=704595


Why are there no new Ubuntu (core) Snappy releases?

Maybe you have missed it ... Ubuntu snap support comes pre-installed in Ubuntu 16.04 LTS. Canonical unveils 6th LTS release of Ubuntu with 16.04 - Introduces “snaps” for new robust secure app format. Check out which applications are available by executing -> snap find.

Execute snap --help to get a list of currently available commands. When you want to run snappy images the way you used to do it before, you can download the latest versions here.
Some more information and an example on how it works : Snap support in Ubuntu 16.04 LTS


Can't access my Windows 8 files on Ubuntu 14

Try using sudo ntfsfix /dev/sda8 from the Terminal (<Windows key> -> Type "Terminal").

Also: When issuing the mount command from commandline make sure you run it as sudo (i.e.: sudomount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda8" "/media/shaswat/New Volume").


Just change the file:

/usr/share/sounds/ubuntu/stereo/desktop-logout.ogg

For other of your choice. Keep the same name and make sure it's a .ogg file


Make sure you have configured your Update Manager software to show upgrades to non-LTS versions. (By default, it will only display alerts when an upgrade to a new LTS version is available.)

Mike Stewart wrote a visual guide in another thread: "Upgrading doesn't work on my laptop for 12.04?" Take a moment to review if this was the cause of your problem. :)


Unable to SSH to uploaded Ubuntu VHD on Azure

The answer is that you need to open SSH port in Azure firewall setting for that machine.

On https://portal.azure.com Go to Security zones setting, select security zone assigned for that VM - Inbound Security rules - Add (+ symbol) - Set priority 1000,Source - Any, Protocol TCP, Source port range *, Destination port range 22, Action Allow and press Save at the top.


XRDP is in the Universe component of Ubuntu, which is not regularly guaranteed security updates because Universe is community-supported.
The Security team only patches Universe-packages when there's a community backer who wants to do the prep work of getting the patch in, testing the patch, make sure it builds on all versions of Ubuntu, etc.
Until someone from the Community steps up to handle all the work and provide the product of that work to the Security team for consideration, it won't get patched.
Security Team is only going to guarantee patches for Main components of the repos - not for Universe.

https://help.ubuntu.com/community/Repositories lists the different 'components'/pockets of Ubuntu and what they each mean - Main is canonical supported software, Universe is community supported.


How to add my other hard drives to ubuntu on vmware

Please  install samba in ubuntu for sharing access
By typing

  sudo apt-get install samba

And then go to network icon situated in (nautilus)home
And add your host network by providing ip, hostname,  and password


Samsung RV420 is compatible with Ubuntu?

Should be compatible, no problem.

Have you tried booting from the live CD/USB yet?


What should I consider when moving from Gnome to Xfce?

Xfce4-panel can use Gnome panel applets if you install the package xfce4-xfapplet-plugin. Not all applets will make as much sense though. The session applet, for instance, will attempt to log you out of Gnome 2, which isn't running, so it will do nothing. The same goes for applets that handle the screensaver and other such DE-specific things. In those cases, the xfce4-panel will have its own plugins that provides these features.

App-indicators are based on DBus, which means they can be used on any desktop environment that supports it. This is one of the big benefits of indicators. They'll work well on KDE, Gnome Shell, Unity, LXDE, Xfce or any other environment. I do believe that there is a native xfce4 plugin to display indicators, but in any case, you'll be able to use the Gnome panel applet just as you did in Gnome.

Using a custom dock like Docky or AWN, should not be a problem at all. I haven't tried it.

I see no reason why you shouldn't be able to use Compiz and all its plugins. I haven't tried that either. But I have used Xfce4-panel with Compiz, and that works well.

You can use the same icons, but window decorators will be different. Perhaps if you use Compiz, you can still use the other themes, but I don't know.

You can just install xubuntu-desktop, except for a single conflict: the notification system. You'll be told that ubuntu-desktop needs to be uninstalled, but that will not uninstall all your software. However, since both Gnome and Xfce provides tools to handle screensavers, sessions, etc, it might be cleaner to do a fresh install.


Fix extracted but not configured package blocker

It was impossible to solve this circular dependency. I had to reinstall the operating system to solve the problem.


Works for me.

Perhaps your syntax is wrong?

<bind address="10.0.0.10" port="6667" type="clients" ssl="gnutls">

<module name="m_ssl_gnutls.so">

<gnutls cafile="" crlfile="" certfile="/etc/inspircd/ssl.cert" keyfile="/etc/inspircd/ssl.key" dh_bits="2048">

Also, make sure you stripped your passphrase that wraps your ssl key file (so it can boot)

See:

Archive:  http://85.13.254.50/index.php

New Incomplete Docs:  https://github.com/inspircd/wiki/wiki/_pages


Why can't my laptop use more than 85% of my RAM?

Is such behavior normal or not depends on how it freezes: if it's freezes due to failure of one of the services or kernel — this is a bug, but if it's freezes only for limited time (like 20 minutes, until some processes will get into swap, and other get out of swap) — this is expected behavior.

I don't think usual Ubuntu distributive can be normally run on such hardware (although Canonical claim, that it will run on 768 MB of RAM). I recommend one or more of following:

Install Ubuntu distributive designed for low-end systems, e.g. Lubuntu.
Use lightweight desktop environment, like LXDE (it is preinstalled in Lubuntu, but you can also install it in usual Ubuntu).
Configure zRam. All you need is to install zram-config package and reboot.
Upgrade your system: SSD drive will give you notebook new life. 1 GB more of RAM would great too.


After hours of searching found the solution!
This happens with fuse. Instead of this

./nosqlbooster4mongo*.AppImage

I added an extra clause of

--appimage-extract-and-run

Now you can run your appImage like

./nosqlbooster4mongo*.AppImage --appimage-extract-and-run

Hope this helps anyone else who faces this issue!


reinstalling/wipe hardrive/pre-existing ubuntu 13.04

just change your boot sequence in your BIOS so that your DVD drive comes first, usually you can access your BIOS setup by pressing DEL or F2 at startup

an alternative is to display the boot menu which enable you to choose a device to start from, usually by pressing ESC or TAB or a F keys (F9 or so) at startup before the OS loads

please refer to your PC documentation


VLC is often performing well, but here are a few things to try in order to improve the performance (to play video).

You can try with a proprietary nvidia driver for the nvidia card. See this link (and scroll down to 'The next step is to install an nvidia proprietary driver...')
You can install more (and maybe better) codecs and other restricted software to play multimedia with the command

sudo apt install ubuntu-restricted-extras

Then you can also try with the default video player, totem in standard Ubuntu.
The computer was powerful when new, but is getting old, so it might work better with an Ubuntu community flavour with a light desktop environment, Lubuntu, Ubuntu Budgie, Ubuntu MATE or Xubuntu. These flavours have light-weight video players too, lighter than that of standard Ubuntu. The lightest flavour, Lubuntu, comes with gnome-mpv in 18.04 LTS.


When I try to install/upgrade any application I get an error

Open Software & Updates and go to Other Software.
There must be a check box near http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu bionic/main. Turn it off.

Now try installing firefox and check if it's working.


Why do fonts look horrible in any java application?

I haven't test it but according to this forum post at inductiveautomation.com you can correct it by installing the fonts:

sudo apt-get install msttcorefonts

and changing lucidasans for arial in the properties of Java fonts:

sudo nano /usr/lib/jvm/java-6-sun/jre/lib/fontconfig.properties

There's also some useful links you can find at this StackOverflow question.


Can I upgrade from 16.04 GNOME edition to 17.10 without problems?

Of course it is possible, but nobody ever will guarantee you a successful Upgrade without knowing your environment. Why not backup your data, do the Upgrade and in case of failure, restore the data?


Port forwarding through shared internet connection

You can use nmap  to scan the subnet to find Computer 2.

For example:

# nmap -T4 -F 10.42.0.*

will find the computers present 10.42.0.0 subnet. Some scripting can then be used to isolate the Ip found.

Still looking myself for your 2nd question ;)


I've got recently exactly the same problem, also no pwm-capable sensor modules installed so I've decided to implement my own fan manager. I've droped from 85° to 60° with it.

Give it a try, you can find installation and usage instructions here : https://github.com/ichiriac/ubuntu-smart-fan


MikuMikuDance is a Windows only software, so it's not supposed to work on Linux. You can use Wine instead to make it work. Once you download the MMD (Multi Model Edition) from the creator, install wine and winetricks:

sudo apt-get install wine winetricks

Install the Visual C++ 2005 runtime using winetricks:

winetricks vcrun2005

Download the program and unzip it:

wget http://www.geocities.jp/higuchuu4/pict/MikuMikuDanceE_v524.zip
unzip MikuMikuDanceE_v524.zip

Now run it:

cd MikuMikuDance_*
wine MikuMikuDance.exe

Have fun!


I'll try :

apt-file search Debconf/Db.pm
debconf: /usr/share/perl5/Debconf/Db.pm

so perhaps

apt-get install debconf

work fine for you


Where can I find the log files for mounting disks?

I'd guess /var/log/dmesg

You can find all logs that mention mounting or ext4 like this:

grep -e mount -e ext4 -lR /var/log 2> /dev/null

dmesg seemed to be the most relevant to me. And there are archived versions (dmesg.*).


Can I use metacity's move_to_side keybindings from Unity?

I was a bit confused about Unity using compiz vs metacity, but according to this answer metacity is only used for no special effects. However, it looks like some settings under metacity are used by compiz. (No point in requiring the user to maintain two sets of settings.)

So since I'm using compiz, I need to install compizconfig-settings-manager

sudo apt-get install compizconfig-settings-manager

and use that to set the shortcuts in Window Management > Grid. Changing the shortcuts there works.


This is a job for dpkg-query with manual formatting for desired output, on my system:

% dpkg-query -Wf '${Version}\n' ufw
0.34~rc-0ubuntu2

The dpkg-query specific variable Version expands to the version of the mentioned package, ufw in this case.

Now to get the portion before ubuntu2, you can set the width too after Version, separated by ;:

% dpkg-query -Wf '${Version;9}\n' ufw
0.34~rc-0

but this is not reliable as the length can obviously vary for different possible versions; so you can leverage a bit of text-processing, here grep-ping (you can obviously use your tool of choice):

% dpkg-query -Wf '${Version}\n' ufw | grep -Po '.*?(?=ubuntu[^[:alpha:]]*$)'
0.34~rc-0

For the sake of completeness, if you insist on using dpkg -l, use a bit of awk:

%  dpkg -l | awk '$2=="ufw" {sub("ubuntu[^[:alpha:]]*$", "", $3); print $3}'
0.34~rc-0


Package system broken after failed attempt at updating to TeX-Live2016 (14.04)

I resolved my issue by removing the context.postrm file (which I located by)

sudo updatadb
locate context.post

I don't know precisely what is done/not done by this postremoval script, but removing it seemed to resolve the issue. If anyone can clarify/enlighten me on this, I'd be grateful.


How to enable wireless on Ubuntu Server 20.04 via CLI?

try using nmcli, here is the instruction on how it would, I actually just did it yesterday!
#determine if the kernel even recognizes the WIFI interface
nmcli d

#Is WIFI on? Should be default
ncmli r wifi on

#Connect

nmcli d wifi connect WIFI-NAME password PASSWOR

D


How does Ubuntu flavor iso differ from a desktop package?

It's quite common for users to want to "try" other flavors by installing say flavor-desktop rather than by trying out a whole new iso, either in a VM or in another partition, which, in my opinion, is the cleanest option.

As you've noticed, the grub screen, the login and logout screens could all be altered without warning.

Menus may contain duplicates. Two text editors, two screenshot tools, etc.

Some default applications may lose their default status.

Notifications may appear different. A classic case is when one adds the xubuntu (or lubuntu) desktop to Unity! That's because the notification system of xu/lubuntu takes over and the effect persists even after logging out and back into a Unity session.

Reversing the installation of flavor-desktop isn't trivial. The standard discovery is that deleting flavor-desktop doesn't do anything other than remove the metapackage. All the packages installed by the metapackage remain.

Re. Canonical, it provides Ubuntu. The other flavors are community-driven with Canonical providing infrastructure and hosting and more: check out Jeremy Bicha's post. Other than ensuring that flavors meet certain minimal requirements, Canonical is quite "hands off".

I think it isn't stressed strongly enough that one can mix certain desktop environments provided an adequate amount of research homework is done beforehand!

In short, depending on the type of assitance you intend to provide, a clean iso install would be the best option.

Here are just a few Ask Ubuntu links on the topic:
Restore Unity after uninstalling Mate
How to change splash screen Ubuntu back?
What are the risks if install a secondary desktop environment / interface on my ubuntu?


When trying to create a splunk machine I keep receiving the same error

"compressed data is corrupt" means that the downloaded file isn't correct. Download it again.
Check the site for a file with the same name, but a .md5 or .gpg addition. The additional small file will let you perform a "checksum" on the big file.


How to set multiple timezones in Gnome Classic?

background
The unity-indicator as you may have gathered does not have the same capabilities as Unity.  The developers have patched the gnome-libraries to give this integration.  However - by design - they have left the Gnome-Shell & Gnome-Classic desktops as vanilla as possible.  This is by expression wish by the gnome-developers.
Thus you will need a slightly more inventive solution - this answer will give you one such suggestion.
use the clock applet

Temporarily add the clock applet to the panel.
Find your location by clicking edit in the applet
Next look carefully at the locations:

The value you are interested in is timezone city
In this example:
America/Port_of_Spain Piarco
Europe/Rome Verona

Next fire up dconf-editor
dconf-tools
Look at the locations field as shown and add your new location(s) - each entry is in the format ,'timezone city' i.e. separate entries with commas

You then will automatically update your date-time indicator.  You can finish off by deleting the clock applet.


How do I prevent Dropbox from being automatically added to the autostart list after launching it?

Command-line option might also work:

$ dropbox autostart n

From:

$ man dropbox


Lenovo Legion Y520 with Ubuntu 17.10 – Nvidia driver and settings

Hi there you can check out this video https://youtu.be/PeWTSprpq1M.

Update your Ubuntu with "Software Updater", even after fresh install!
Open Activities or just press Windows key on your keyboard, then type "Software & Updates" (an app that have box and globe icon)
Go the "Additional Driver" tab and wait for second, they will scanning your hardware
Click and choose Using NVIDIA binary driver ..... like this picture

Click this

Then click "Apply Changes"
Restart your PC after changes applied
To verify your NVIDIA work or not, just search if there's a "NVIDIA X Server Setting" and if it there's just open it. If it opens correctly then congratulations!

But try to read the comment on the video. Some people experiencing error and broke their machine. But for me It's work, so be wise.

I use the same laptop as yours, Lenovo Legion Y520 i7 quad core, GTX 1050, Ubuntu 17.10, hope this help you.


Run script on remote machine via telnet (not SSH)

At the remote machine (Ubuntu) install telnetd, if it's not already installed.

At the client side you could implement the following:

Open a socket to the Ubuntu machine (<ubuntu-IP-address>:23).
Listen and wait for the login prompt (something like <hostname> login:), then send the username.
Listen and wait for the password prompt (Password:), then send the password.
Listen and wait for the command prompt (<username>@<hostname>:~$), then send the command to run your script.


Docker wordpress error with sql connection

Type at -link (should be --link)
The following environment variables have to be passed.
-e WORDPRESS_DB_USER=
-e WORDPRESS_DB_PASSWORD=
In your case, y
docker run --name ealocal --link easql:mysql -p 8080:80 -d -e WORDPRESS_DB_USER=root -e WORDPRESS_DB_PASSWORD=abc123 wordpress
Your container should start now. If any db related errors in logs, follow below.
docker exec -it easql bash   == bash shell inside DB server
mysql -u root -p   -- Login to DB server
Enter password: abc123

paste below command
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
exit
exit
Then start new container:
docker run --name ealocal --link easql:mysql -p 8080:80 -d -e WORDPRESS_DB_USER=root -e WORDPRESS_DB_PASSWORD=abc123 wordpress
Refer to official wordpress docx:
https://hub.docker.com/_/wordpress


Why can't I select transmission to download torrents?

Open up Firefox and its preferences window. Go to the "Applications" tab and you should see "magnet" on the list. Click on "Always ask" and if Transmission does not appear as an option then click on "Use other" and navigate to /usr/bin on your file system. Look for "transmission" or "transmission-gtk" and click that.


The directory /var/run should be a link to /run (similarly for /var/lock is a link to /run/lock).  Check this with:

$ ls -ald /run /var/run /var/lock /run/lock

You should see something link this:

drwxr-xr-x 38 root root 1220 Jun 24 07:35 /run
drwxrwxrwt  5 root root  140 Jun 23 16:51 /run/lock
lrwxrwxrwx  1 root root    9 Oct 21  2011 /var/lock -> /run/lock
lrwxrwxrwx  1 root root    4 Mar 22  2014 /var/run -> /run

If you do not, then this would point to the problem, but not why it is in this state.  See https://ubuntuforums.org/showthread.php?t=1859432 for a possible fix.


Removed all Nvidia drivers and Ubuntu won't boot

Discovered that no amount of repair or re-installing or unnistalling drivers was helping. Couldn't even load default open source drivers. Instead I loaded up a LiveCD to backup all my files and did a clean install.


Cannot edit system file /snap/phpstorm... even with root account in Ubuntu 18.04

The snap files are mounted as read-only (ro), and you can check this by using the mount command.

mount |grep snap
/var/lib/snapd/snaps/vlc_158.snap on /snap/vlc/158 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_4486.snap on /snap/core/4486 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_4571.snap on /snap/core/4571 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/vlc_365.snap on /snap/vlc/365 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/vlc_190.snap on /snap/vlc/190 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_4650.snap on /snap/core/4650 type squashfs (ro,nodev,relatime,x-gdu.hide)

To modify files in squashfs, you need to unsquash it, modify the files and then re-make the squashfs file. E.g., if I want to modify files in /var/lib/snapd/snaps/vlc_365.snap

sudo umount /snap/vlc/365
sudo unsquashfs /var/lib/snapd/snaps/vlc_365.snap

Modify anything you want in squashfs-root (it's where all the files are unpacked into), and then repack it.

sudo mksquashfs squashfs-root vlc_365.snap

Copy it back to its original location and re-mount it.

sudo cp vlc_365.snap /var/lib/snapd/snaps/vlc_365.snap
sudo mount -t squashfs -o ro,nodev,relatime,x-gdu.hide /var/lib/snapd/snaps/vlc_365.snap /snap/vlc/365


How do I reinstall the preinstalled bluetooth program?

Install the package "indicator-bluetooth" using sudo apt-get install indicator-bluetooth.


Ubuntu 14.04, touchpad scrolling does not work after kernal update

You touchpad looks like this one:

  pnp 00:05: Plug and Play ACPI device, IDs ETD0b00 SYN0002 PNP0f13 (active)

The "ELAN PS/2 Port Smart-Pad".

And now it's detected as a PS/2 Generic Mouse, therefore the scrolling feature is gone.

If it works before upgrade, this issue might be a regression bug, I will suggest you to open a bug report on launchpad.net by following the guidelines in this Debugging Touchpad Detection wiki.

Address the touchpad model name, PNP device ID in the report. Also it's crucial to mention that the scrolling feature works before upgrade. But not with the current kernel version (run uname -a in a terminal). You can boot to the previous kernel to verify this by entering the grub menu on boot, and select "Previous Linux version" there.


You should be able to use the UEFI boot menu to choose Windows even if the SSD is empty. Just to be safe, you could only wipe the root / partition and not the /boot partition.

To address the original problem of booting straight to Ubuntu, you could try a couple things. Hopefully one of them will detect Windows and add the option during boot.

Run sudo update-grub in a terminal in Ubuntu
Run Boot Repair

As oldfred mentions, neither of these will back up your system. Boot Repair may back up some boot-related info, but that's it. It's always a good idea to back up your system. In this case, making changes with tools like Boot Repair should not cause you to lose any data, but it's better to be safe.


Rescue the CD with ddrescue

ddrescue isn't installed by default. So you will need to do that first.

You need to enable the Ubuntu Universe repository first.

Then open a terminal with Ctrl+Alt+t. Install it with the command:

sudo apt-get update
sudo apt-get install gddrescue

We will need to find the logical path of your CD-drive. If you have only one it will be /dev/sr0. If you have more than one enter the following command to find the right one:

sudo lshw -C disk

This will show you a list of all available drives. Look for the CD drive description that matches your drive and use the logical name found there instead of /dev/sr0.

As a first run, we tell ddrescue to copy all content from the CD that do not yield any errors.

sudo ddrescue -b 2048 -n -v /dev/sr0 cd.iso cd.log

This creates two files cd.iso will contain all rescued data. The parts with errors will be  filled with zeros. Those missing places are logged in cd.log.

sudo ddrescue -b 2048 -d -r 3 -R -v /dev/sr0 cd.iso cd.log

This command will try to fill the missing gaps and will take some time to complete.

Using a second drive/computer to continue rescuing

A cool feature of ddrescue is that you can try to continue rescuing some more data on a different drive on a different computer. Some drives can read what other couldn't. Just bring both the iso- and the log-file to the other computer, check what path the drive on that computer has and change the command accordingly and run it again.

Source of this guide: http://sumofungus.wordpress.com/2010/01/19/making-backup-copies-of-damaged-dvds-using-ddrescue/


Command Line to Capture Audio and Video from a Webcam to file in 16.04LTS

OSS was the only audio API in Linux up through the 2.4 series of
  official (kernel.org) Linux kernels. ALSA was added starting with 2.5,
  and in those versions, Linux kernel authors marked OSS as deprecated.
  4Front continued to develop OSS outside the Linux kernel.

Source: Open Sound System - Wikipedia

Locate the sound device using arecord -L.  Then use it in the commandline.  The output is very extensive.

This will record 30 seconds of video from my webcam:

$ ffmpeg -f alsa -i plughw:CARD=C525,DEV=0  -f video4linux2 -s 320x240 -i /dev/video0 -t 30 out.mpg

The arecord output on my system is entered below with the audio device I chose to use highlighted in bold.  In this case it's plughw:CARD=C525,DEV=0.

default
    Playback/recording through the PulseAudio sound server
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=MID
    HDA Intel MID, ALC889A Analog
    Default Audio Device
front:CARD=MID,DEV=0
    HDA Intel MID, ALC889A Analog
    Front speakers
surround21:CARD=MID,DEV=0
    HDA Intel MID, ALC889A Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=MID,DEV=0
    HDA Intel MID, ALC889A Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=MID,DEV=0
    HDA Intel MID, ALC889A Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=MID,DEV=0
    HDA Intel MID, ALC889A Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=MID,DEV=0
    HDA Intel MID, ALC889A Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=MID,DEV=0
    HDA Intel MID, ALC889A Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=MID,DEV=0
    HDA Intel MID, ALC889A Analog
    Direct sample mixing device
dmix:CARD=MID,DEV=2
    HDA Intel MID, ALC889A Alt Analog
    Direct sample mixing device
dsnoop:CARD=MID,DEV=0
    HDA Intel MID, ALC889A Analog
    Direct sample snooping device
dsnoop:CARD=MID,DEV=2
    HDA Intel MID, ALC889A Alt Analog
    Direct sample snooping device
hw:CARD=MID,DEV=0
    HDA Intel MID, ALC889A Analog
    Direct hardware device without any conversions
hw:CARD=MID,DEV=2
    HDA Intel MID, ALC889A Alt Analog
    Direct hardware device without any conversions
plughw:CARD=MID,DEV=0
    HDA Intel MID, ALC889A Analog
    Hardware device with all software conversions
plughw:CARD=MID,DEV=2
    HDA Intel MID, ALC889A Alt Analog
    Hardware device with all software conversions
sysdefault:CARD=HDMI
    USB Capture HDMI, USB Audio
    Default Audio Device
front:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    Front speakers
surround21:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    Direct sample mixing device
dsnoop:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    Direct sample snooping device
hw:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    Direct hardware device without any conversions
plughw:CARD=HDMI,DEV=0
    USB Capture HDMI, USB Audio
    Hardware device with all software conversions
sysdefault:CARD=C525
    HD Webcam C525, USB Audio
    Default Audio Device
front:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    Front speakers
surround21:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    Direct sample mixing device
dsnoop:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    Direct sample snooping device
hw:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    Direct hardware device without any conversions
plughw:CARD=C525,DEV=0
    HD Webcam C525, USB Audio
    Hardware device with all software conversions

A lot of the many devices can be eliminated based on the audio you are trying to capture, such as the surround sound and in my case other HDMI capture devices.


Is there a wubi installer for the ubuntu DVD version?

wubi is not yet available for dvd version, and It is difficault to predict the size of ubuntu DVD before its release :)

EDit: As per this page

The current size of 12.04 dvd is

32 bit : 1.5 GB

64 bit : 1.6 GB

Linked Question

What is on the DVD Edition of Ubuntu?


This is not a virus.  Anyone who'd written a virus sophisticated enough to have the effects you describe (more than one operating system, undetected by any antivirus, no performance etc. effects on the infected machine) would not be using it to play muffled voices through your speakers. They'd be using it to steal information, probably from governments and large corporations. Using it for anything trivial like playing voices through your speakers would risk the virus being detected and compromised, which would waste the significant effort that would have to have been put into writing it. Unless maybe you're the head of your country's intelligence agency and the CIA is trying to make you go a little bit crazy? ;-)

Radio stations often loop a short message or piece of music when they're not broadcasting actual content. Since you only hear the voice intermittently and it's not in your country's language, I would suggest that it's a distant radio station that the electronics in your computer are only picking up when atmospheric conditions are just right.


Server + GUI installed, starting to get messy

I solved the issue; kinda.  Ubuntu was wayy too slow on my harddware, so I am currently installing a desktop version of PPC Lubuntu:

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


Options on initial install screen (server)

The boot options for the desktop CD are documented (incompletely) at https://help.ubuntu.com/community/BootOptions; there doesn't seem to be a page for the server CD, but many options are the same.

Don't worry too much about these options: for the most part, you're not expected to understand them. Apart from the obvious ones like choosing a different keyboard layout or choosing between doing an installation, a rescue or a memory test, most options are intended for poorly-supported hardware or highly unusual requirements. If an option isn't listed on that BootOptions page, the expected workflow is to try booting, find that it doesn't work, enlist the help of Google or a guru to diagnose the problem, and learn that the problem can be worked around by adding the more_magic=xyzzy option.


Need Script to turn Compiz Window Decoration plugin OFF, start a program, then turn decorations ON again

OK, there is no longer any need for a script or workaround. As of Nov 3, 2011, version 9.0.61 x64 of Vuescan has fixed the problem between Unity, Compiz, Vuescan and window decorations, at least on Ubuntu 11.10. All works normally now (thank goodness!).


Off Site backups to VPS/Amazon Web Services/Rackspace

Yeah, the idea is sound. Encouraged, even. It can get a bit expensive if you're holding multiple copies and S3 (as one example) is itself pretty expensive compared to, for example, sticking a HP Microserver in another physical location. Weigh up the risk.

Onsite is okay if there's enough physical space between the two copies to lower the potential damage of fire. If you can push that to a secure, flood-safe outbuilding, all the better.

And duplicity can already handle a buttload of backends (as proofed by its --help argument):

Backends and their URL formats:
  cf+http://container_name
  file:///some_dir
  ftp://user[:password]@other.host[:port]/some_dir
  ftps://user[:password]@other.host[:port]/some_dir
  hsi://user[:password]@other.host[:port]/some_dir
  imap://user[:password]@other.host[:port]/some_dir
  rsync://user[:password]@other.host[:port]::/module/some_dir
  rsync://user[:password]@other.host[:port]/relative_path
  rsync://user[:password]@other.host[:port]//absolute_path
  s3://other.host/bucket_name[/prefix]
  s3+http://bucket_name[/prefix]
  scp://user[:password]@other.host[:port]/some_dir
  ssh://user[:password]@other.host[:port]/some_dir
  tahoe://alias/directory
  webdav://user[:password]@other.host/some_dir
  webdavs://user[:password]@other.host/some_dir
  gdocs://user[:password]@other.host/some_dir


Problem finalizing Ubuntu installing. Please help

I've run into something like that a few times, and nearly always it is the result of the install disk being flawed.  Sometimes the downloaded ISO is corrupted.  Sometimes the cd/dvd which is burned is flawed.  Sometimes writing the ISO image to flash media goes wrong.

I recommend you start over with a fresh copy of the OS to be installed.  While you are at it I have one more tip for you if you prefer safety and don't mind opening your PC to ensure a desirable result.  Please consider opening your PC and physically disconnecting the 1tb drive containing your windows installation while installing Ubuntu to the 80gb.  This way neither drive can be overwritten.  Later when both drives are connected, there's about a 60% chance that GRUB will offer up both operating systems as though you had a typical dual boot.  If that is not the case, reinstalling grub is EASY, and can be accomplished either of a couple of easy ways.

My reason for giving you that added advice is to help save you from a circumstance in which you might not be able to boot your PC to EITHER operating system, and also to help prevent your Windows installation from being accidentally overwritten.


to list only folders try: ls -d */

Explanation

-d

  list directories themselves, not their contents.  To explain this, consider what happens if we type ls */.  ls goes one layer down, into each subdirectory, and lists all the files in each of those sequentially

Source: man ls

*/

*/ is known as a "glob" in UNIX.  (see Wikipedia for more details).  But basically, it means "any file name ending in a forward slash."  In UNIX, directories are really just files, fundamentally.  But they are specially named ending in a forward slash so the operating system knows they are directories (or folders, in everyday-person-speak).  And the asterisk * is technically a wildcard standing for "any string of characters."

What is a glob?

This paragraph will not pertain specifically to your question, but if you've never read about this, it'll be good to see it.  Globs are different from Regular Expressions, as (partially) explained in What is the difference between Regular Expressions and Globbing?  There have been whole books written on regular expressions, but tl;dr there are a bunch of different ways to encode pattern-matching expressions.


SQL Server 2019 on Ubuntu 20.10 with 4GB of Ram and Low Traffic Keeps Crashing and Needing To Be Restarted To Work Again

I think I may now have found the solution.
Checking for updates unixodbc kept being held back and I noticed it said ODBC so thought it might be related to the issues. It seemed to be failing to install as multiarch support was missing as trying apt install unixodbc resulted in a different error about the missing multiarch support and unmet dependencies.
I ran the following to install multiarch support:
cd ~/Downloads
wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/multiarch-support_2.27-3ubuntu1.4_amd64.deb
sudo apt-get install ./multiarch-support_2.27-3ubuntu1.4_amd64.deb

(from Installing odbcins1debian2, broken dependency on Ubuntu 20.04 LTS)
Then running apt upgrade installed unixodbc and my SQL Server has remained working since then. It was managing about an hour before but now it's up to 3hrs 10 mins so hopefully this is now solved.
This was a fresh install of Ubuntu 20.10 so presumably everyone trying to install to this version would hit this same issue.
It seems older versions of unixodbc didn't require multiarch support.


I believe that you want to add a GUI xampp control panel.  To add a GUI xampp control panel see below.

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

sudo gedit ~/.local/share/applications/xampp-control-panel.desktop

When the text editor opens simply paste the following, close and save.

[Desktop Entry]
Comment=Start and Stop XAMPP
Name=XAMPP Control Panel
Exec=sudo -i python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py
Icon=/usr/share/icons/Humanity/devices/24/network-wired.svg
Encoding=UTF-8
Terminal=false
Name=XAMPP Control Panel
Comment=Start and Stop XAMPP
Type=Application
Icon=/usr/share/icons/Humanity/devices/24/network-wired.svg

If you have a problem with executing the program, install gksu, and in the forth line, replace sudo -i with gksudo.  Below is how to install gksu if not installed, since it has been removed from 13.04.

sudo apt-get install gksu

Look for xampp control panel in dash


Installing Steam on ubuntu 14.04 libc.so.6 error please help

First, search for an application called "software & updates".

Open this application.

Next, make sure main, universe, restricted, and multiverse are all enabled.

Now, before you try and go installing new software, you need to do all your system upgrades first:

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

Reboot when finished. Then you can install steam:

sudo apt-get install libc6-i386 steam


how to install locale WITHOUT any additional packages?

You can generate (not install) a locale like this:
sudo locale-gen de_DE.UTF-8

That won't lead to prompts about missing packages.


You may have uninstalled the windows boot loader when you converted the grub partition to blank space. You may have to reinstall windows.


To run Conqu on Linux, you need Adobe AIR. If you already have it, then you simply double click on Conqu's downloaded file. Otherwise, install AIR first:

How can I install Adobe AIR?

After the installer runs successfully, download and install Conqu.


You can download themes from here.

Installing unity-tweak-tool from Ubuntu software center allows you to change themes.


If you don't want to store your data files in your Ubuntu partition (that's actually a good idea), 60 gb for root (it is labelled / during installation) would be more than enough. As pointed out in the comments, 20-25 gb is enough for system files, but that may fill up quickly if you install too many software. 50-60 gb is always safe. In case you are using UEFI, you might also need to create a 512 mb EFI partition (if it's already not there in your hard drive).
You don't necessarily have to create a separate home partition or a swap. They are optional. If you go with the default settings, some part of the root partition will be shared for your home folder and swap, and Ubuntu will automatically take care of it for you.
To create a separate partition for storing personal data, you can either use gparted during the live session before installation, or the partition manager inside the installer itself.


File System gets damaged after running the dd command

After a lot of fiddling around, I finally solved this by skipping the step of umounting the SD card and then running the dd command.

I ran the dd command directly and it worked! I know this is not the recommended way to do this but it worked for me.


How to install Lubuntu 16.04 on the ASUS X205TA (F205TA)

I have my answer from a post in a thread that is discussing this since 2014 for several linux flavours. I will share my way of installing without the optional parts from the guide.

What still won't work

Chrome browser is flickering/tearing (turn off hardware acceleration in settings of chrome to avoid it)
Brightness control via FN buttons
Sound works, but not with a mainline kernel yet. It probably will be in mainline with version 4.11 or later. (There is the option of compiling a more advanced kernel, but this is not what I did.)
Sound through headphones does not work even with patch, but you can use this workaround to get it to work (I did not try it).

Preparing in Windows

If starting from Windows: Turn off BitLocker (this will allow Ubuntu to mount and/or resize the primary data drive). In Windows, click on PC Settings/PC and devices/PC info; scroll to the bottom of the screen and click to turn off BitLocker/decrypt drive

Preparing USB Live

UPDATE: Making a bootable USB-stick is also possible with harryharryharry's script

Otherwise:

Prepare Ubuntu Live bootable USB memory stick. Download .iso file for 64-bit Ubuntu 16.04. In Linux, sudo apt-get install unetbootin. Run unetbootin with the downloaded .iso.

Copying special bootia32.efi onto USB

After the memory stick is set up, copy bootia32.efi to the /EFI/BOOT directory on the memory stick. Fetch bootia32.efi from github. I am not sure if this is the right link, because I forgot which one I used during the installations. If anyone encounters problems, please comment and I will update. There are several such files, or guides how to create them, on the web, although firstly I fetched one that did not work (it was for Arch Linux).

Boot Ubuntu Live from USB

Insert memory stick in Asus X205TA USB port. In Windows, hold Shift key and click on Restart; choose Advanced Options/UEFI Firmware to enter BIOS. Turn off SecureBoot. Select USB stick as boot device. Save and exit

If starting from an existing Linux install, you will need to press ESC when you first turn on the machine; this should pull up a small menu to choose the boot device. Choose the USB stick. When grub menu loads, select Try Ubuntu.

Backup of SSHD

Plug in a USB external hard disk or USB thumb drive with at least 32GB of free space. Right-click on any mounted drives in the Unity launcher (e.g., OS and Recovery if doing a dual-boot with Windows) and choose Unmount for each. Open a terminal and run the following:

dd if=/dev/mmcblk0 of=/media/ubuntu/HD/FILENAME bs=1M`

Replace HD with the name by which the external drive was mounted.  Replace FILENAME with the filename you wish to use for the resulting image (or set another path as desired). It will take about 20 minutes for the command to complete; do NOT interrupt it, or you will have to start over!  Note: to restore the X205TA to its original state, you can run this command “in reverse”: dd if=/media/ubuntu/HD/FILENAME of=/dev/mmcblk0 bs=1M

Dual-boot

Resize Recovery partition (note that the Recovery partition is required for booting Windows on this machine, so it cannot be removed if you want dual-boot, but it can be reduced in size to allow some additional room). Right-click on the OS and Recovery icons in the Unity launcher and make sure each is unmounted (choose Unmount for each if needed). Run gparted (note: this runs very slowly at this point; be patient!). Shrink the Recovery partition as small as it will go (a little less than 6 GB). Expand the OS partition to take up the extra room.

Installation from Live-USB-Stick

Reboot into the Live-USB.

Set up a wireless connection

This is necessary to download updates during installation.  Insert a USB based wifi adapter (Ubuntu will not yet recognize the internal wifi). Choose a wireless connection and connect.

Double-click on Install Ubuntu.  Allow the installation to complete

Reboot. It should come up perfectly, with grub-efi-ia32 already installed (and not grub-efi-amd64).

Finalize installation

If dual-booting, clean up Windows. Reboot to grub menu and choose Windows. Allow Windows to check and “repair” drive C: (basically Windows is responding to the fact that the drive has been re-sized). When finished, it will automatically reboot; choose Windows again to verify that the Windows installation is still functioning properly. Reboot again and choose Ubuntu.

Update Ubuntu (assumes the USB wifi adapter is still installed; if not wait until the wifi is fixed) with sudo apt update and sudo apt upgrade.

Set up internal Wifi

Two files are needed in the /lib/firmware/brcm directory:

brcmfmac43340-sdio.bin – this was already in place in my 16.04 installation.
brcmfmac43340-sdio.txt – you may be able to copy the nvram* file from /sys/firmware/efi/efivars/ (e.g., nvram-74b00bd9-805a-4d61-b51f-43268123d113) as brcmfmac43340-sdio.txt: sudo cp /sys/firmware/efi/efivars/nvram* /lib/firmware/brcm/brcmfmac43340-sdio.txt

If either of the above files does not exist, download brcmfmac43340-sdio.bin and brcmfmac43340-sdio.txt from internet and copy to /lib/firmware/brcm (requires sudo)

sudo -H gedit /etc/modprobe.d/blacklist-custom.conf

(possibly creating the file) and add the following lines:

blacklist brcmfmac
blacklist brcmutil

And

sudo -H gedit /etc/rc.local and add the following line:

modprobe brcmfmac

Make sure rc.local is executable (sudo chmod a+x /etc/rc.local)
Instead of blacklisting, you can add the following lines to /etc/rc.local BEFORE the modprobe command:

modprobe -r brcmfmac
modprobe -r brcmutil

Reboot; internal wifi should now be working

Setup wifi so it finds 5Ghz band

sudo mv /lib/firmware/brcm/brcmfmac43340-sdio.txt /lib/firmware/brcm/brcmfmac43340-sdio.txt.bak
sudo wget https://raw.githubusercontent.com/harryharryharry/x205ta-iso2usb-files/master/brcmfmac43340-sdio.txt -O /lib/firmware/brcm/brcmfmac43340-sdio.txt
sudo modprobe -r brcmfmac
sudo modprobe brcmfmac

Note: no need to fix the SD card reader -- it works from the start.
Note: no need to fix the touchpad -- it works correctly (including two-finger scrolling) from the start.

Suspend

Fix problems caused by attempts to suspend. Goto System Settings/Power and choose “Do not suspend” for “Suspend when inactive for” (do this for both battery and AC).

At this point, everything is working great, except sound and internal bluetooth.You may address both of those with a USB bluetooth dongle until the currently made fixes are included in one of the mainline kernels.

If you need more fixes for freezing, check out the original post from user awakephd here. Be aware that he has a typo in modEprobe.

UPDATE: Applying patches to a mainline kernel

It is possible to apply the most recent patches to a normally installed kernel. Here is an Ubuntu Forums post on how to do this.


What is the significance of $ and {} in `find ${x} *`

$... denotes a variable, and when followed by curly parenthesis ${...}, you provide a boundary for the variable so you can run it next to a string literal like:

$ FLAVOUR="cheese"
$ echo "I like ${FLAVOUR}y crisps"
I like cheesey crisps

Without the parenthesis, you would see:

$ echo "I like $FLAVOURy crisps"
I like  crisps

Which, while true, isn't what you really wanted.

Why it's used in your example is beyond me. It isn't required.

Curly braces are also used for bash array lookups when you want to specify the index, but this has nothing to do with your example:

$ arr=(*)
$ echo ${arr[3]} # print third item; 1-indexed? blimey.
jumbo-small.jpg
$echo ${arr[@]} # print whole array
glyphicons-halflings.png glyphicons-halflings-white.png jumbo.jpg jumbo-small.jpg


EFI Boot on Asus Sabertooth 990fx not working after firmware update

Your update may have removed the Ubuntu boot loader from the NVRAM settings. If the CD boots in EFI mode, you should be able to type the following commands (or some variant of them) to correct the problem:

sudo apt-get install efibootmgr
efibootmgr -c -l \\EFI\\ubuntu\\grubx64.efi -L Ubuntu

I'm not 100% positive of the path to GRUB on the EFI System Partition (ESP), so you may need to adjust that. Also, that path is specified using EFI-style backslashes rather than forward slashes, and since backslashes are escape characters in Linux shells, they must be doubled up -- hence \\EFI\\ubuntu\\grubx64.efi rather than /EFI/ubuntu/grubx64.efi. However it's expressed, this filename is relative to the root of the ESP, which is the partition that's identified by the boot flag in GParted or by a partition type code of EF00 in gdisk.

Another option is to move and rename grubx64.efi to /EFI/boot/bootx64.efi on the ESP; that's a sort of default/backup boot loader filename. A variant of this option is to install some other boot manager, such as rEFIt or rEFInd, under that name. This option might be appealing if you dual-boot with Windows or some other OS; rEFIt and rEFInd can both detect any EFI boot loader stored in conventional locations on the ESP and redirect the boot process to them. rEFIt has been abandoned, though, and the version on its Web site doesn't work on UEFI PCs; rEFInd is a fork of rEFIt that provides updates and that does work on UEFI PCs.


I've figured it out why this wasn't executing.

First I need to enable the services as
sudo systemctl enable swoop.mongo && sudo systemctl enable swoop.app

Also, I've to change WantedBy=local.target to WantedBy=multi-user.target.


If you are looking for a high-powered system that is guaranteed to work with Ubuntu (with full support too), I would suggest System 76. I have a laptop from them that is very nice, and works very well with Ubuntu.


PowerBroker (Likewise-Open) + Ubuntu 13.04 -> 13.10 Upgrade

I found this bug:
https://bugs.launchpad.net/ubuntu/+source/likewise-open/+bug/1162836

I had the same problem where after I finally logged in, my $PATH variable was a ways off from what the local user. Per that bug, I updated /etc/pam.d/common-session and made the following change the line:

  session sufficient pam_lsass.so

to:

  session [success=ok default=ignore] pam_lsass.so

I did not need to create the symlinks to init as a workaround either after making this change.  I am now able to successfully log in as my Active Directory user with PBIS 7.5.2


How can I detect whether my disk is using GPT or MBR from a terminal?

To find whether your disk is GPT or MBR in ubuntu,you have to install gdisk utility.

sudo apt-get install gdisk

Then run the below command,

sudo gdisk -l /dev/sda

If the output of the above command shows like this,then you have MBR disk,

Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present

If the output shows like this then you have GPT disk,

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present


Java packaging and uploading to a PPA in Launchpad

Packaging is quite a long process and here I am assuming that you are ready to go through the trouble. Since Ubuntu is based on Debian and fetches almost all the packages from the Debian repository, I believe the packaging schemes in both are the same. Please refer to this : http://www.debian.org/doc/manuals/maint-guide/


Heh. 99% there, but stopped by the doorman. If you meant what you said, the problem is mvn install which doesn't install mvn. Man pages say maven has no "install" switch. It should have printed a "how's that?" error. Bad maven.

The canonical build-from-source routine goes like this, from the appropriate directory:

./configure
make
sudo make install

Make install (d'oh!). Note the sudo, meaning, root privileges for you from now on, I'm sure you know.

I've never built maven myself, but after that last step I should expect to find the new program somewhere in /usr/local. /usr/local/share, in this case? With any luck, just mvn from the command line should find the new one after installing, and that's what you want of course. If not, you'll have to adjust your $PATH environment variable, and perhaps your library search configuration, but let's hope that's unnecessary.


Lubuntu 18.10 LXQt - desktop shortcuts to URL

ronmacq, check this out lubuntu v18.10 LXQt Desktop Applic Icon Change. I don't know exactly how you managed to end up with a reference to said browsers, but it would appear that built v18-10 LXQt Desktop procedure didn't get used. You can have joy however should you left click "Menu --> Internet --> Mouse over and select 'Firefox|Chrome Browser' keeping finger down, dragging over to desktop, raising finger; selecting 'copy here'". The associated metafile will, then get copied to your ~/Desktop, and named [firefox|chrome].desktop. At the moment you have either a soft link or a script in your ~/Desktop that shows up on your desktop, but contians the wrong description data, reference, or code, needed by the desktop manager, to direct it to do the correct action, necessary start the browser. In order to have the browser also open a given page will require more update to given .desktop file, in order to include these directives, as well. And, the same is more true should you want these events to automatically take place on login.


failed to install ubuntu 12.04 with usb stick

From what I understand, when your computer boots after you have inserted the liveUSB, you ask it to proceed to boot to the Operating System.

My suggestion is, that rather than doing so, you should reboot your computer (but leave the USB flash drive where it was), and when your computer boots, and you come across a list with several choices, select "Install Ubuntu".

It should get you through the same procedure that the "Install Ubuntu" button in the desktop would, and most likely you will be able to install the OS successfully.


No launch/menu bar. Can only open terminal

You could try unity --reset or unity --replace in the terminal. Just log-out or shut-down and hopefully you should see all the Unity features (Launcher etc.)

I've never seen this happen before. It's quite werid.

Hope this helps!

P.S. You could report this as a bug.


Battery died when updating from 12.04 to 12.10

To go back to 12.04 You would have to back up your data and reinstall.

You may try the following to fix 12.10:

Open a terminal (Ctrl + Alt + T) and run sudo apt-get update followed by sudo apt-get install ubuntu-desktop

This might fix your system.


Addon Install
You can install the xpi file as a Firefox addon. To do this, drag the xpi file from your documents to Firefox. It should show a popup asking you about installing the package.


Conky height has blank space due negative offset

As far as I saw, there's no way to prevent the empty space by the end of the window.

The best solution/workaround is to create an image of the size you want and use it as background, leaving Conky window transparent.


How to fix brightness on Ubuntu 14-04 LTS installed on macbook pro 2012 13"

I found an answer to this. However I have an iMac 2011, so it could solve your problem.

You need to edit the grub file /etc/default/grub change the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor acpi_osi=Linux"

Then run:

sudo update-grub

Rebooot your computer and voilà.


How do I set my system to auto-update without user interaction?

Install the unattended-upgrades package, and edit its config file to install all packages, not just security updates:

Edit the file /etc/apt/apt.conf.d/50unattended-upgrades:

// Automatically upgrade packages from these (origin, archive) pairs
Unattended-Upgrade::Allowed-Origins {
        "${distro_id} ${distro_codename}-security";
//      "${distro_id} ${distro_codename}-updates";
//      "${distro_id} ${distro_codename}-proposed";
//      "${distro_id} ${distro_codename}-backports";
};

and remove the // from the parts you want to be automatic and then just save the file.

Next you need to set the autoupdate functions in /etc/apt/apt.conf.d/10periodic:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";

The update interval is every day, which is about right, otherwise you'd probably be hitting the mirror too often.

Here's the documentation for this:

https://help.ubuntu.com/10.04/serverguide/C/automatic-updates.html


Can the Gnome 3.6 notification area be shrinked?

The new design makes the tray unusable for many apps like CherryTree, Deluge, etc. that have tray icons, as you have to wait one long second for each access! And if, by chance, the cursor of your mouse touches the desktop bottom for just a second, you'll see a nasty movement. I don't know where the gnome developers want to go with such "innovations".

However, you could change the tray behavior by editing /usr/share/gnome-shell/js/ui/messageTray.js. I changed TRAY_DWELL_TIME to 50 ms and set the hot zone to the old right bottom corner by changing the line which reads let shouldDwell = ... to:

let shouldDwell = (x >= monitor.x && x == monitor.x + monitor.width - 1 &&

This makes the tray usable again but I didn't find a way for preventing that upward movement.

EDIT (Thanks to @6ahodir):

To prevent upward movement of the desktop change the same file (/usr/share/gnome-shell/js/ui/messageTray.js) and update the following line in the _showDesktopClone() function:

{ y: -this.actor.height,

to this:

{ y: 0,

In case you want to remove the messageTray,

let shouldDwell = (x >= monitor.x + monitor.width && x <= monitor.x + monitor.width + 1 &&


How to setup Awesome WM with GNOME services on arbitrary Ubuntu?

You have gnome-panel as requirement in your session description, so you are actually requesting the panels to be there.

Besides the gnome-panel-requirements I use the exact same setup within Ubuntu 13.04 and it works perfect.

Change

RequiredComponents=gnome-panel;gnome-settings-daemon;

to

RequiredComponents=gnome-settings-daemon;

and you are set.


update bios Version A12 fix this issues (Ubuntu 14.04 Sometimes a pressed key repeats issues)

http://www.dell.com/support/home/bb/en/bbbsdt1/Drivers/DriversDetails?driverId=NMRC0


The Windows partition where you installed Wubi is available as /host within Ubuntu (Places > Computer > File System > Host) All the other partitions will be available under Places > Removable Media

See WUBI FAQ for additional tips.


How to get a list of all the commands available for Ubuntu?

First Method

NB: Thanks to @Rmano. This method doesn't work with  zsh shell.

A simple command:

ls ${PATH//:/ }

This will list all commands in your $PATH environment variable.

To store the result in a file you can redirect the output to a file.

ls ${PATH//:/ } > mycommands.txt

Note that this will return an error if any directory names in your $PATH contain spaces. In that case, use this instead:

while read -d ':' dir; do echo "$dir"; done <<<$PATH

Second Method

Also you can use:

compgen -c | sort -u > commands && less commands

Third Method

Another method is a double Tab click.

Fourth Method

Another method using find command:

find {,/usr}/{,s}bin -printf '%f\n\0'


Touchpad does not work on Acer Aspire V5-121, on

My issue was solved by pressing the key combo Ctrl-Fn-F7. I had tried the combo Fn-F7 but that did not do anything.


How do I alter/customize the GRUB boot menu for Ubuntu 12.10?

You can change the default boot by editing the grub config:

sudo nano /etc/default/grub

Change the line *GRUB_DEFAULT=0*  so that it reflects which grub boot line is the one you want to boot off: eg *GRUB_DEFAULT=2* etc.

You will then need to update the grub boot menu so that this change takes effect:

sudo update-grub

Having to select the correct OS from a men is hardly unfriendly, but if you really have to...


It is there. Only is it hidden in the group "Utilities", second page of icons.
The Gnome Shell application overview is now, since Ubuntu 20.10, organized fully manually. You can drag it out of the group (as in Ubuntu 20.04), but new is that you can place it anywhere you want among the icons, including in the top row of the first page.
For completeness, you may reset your Application overview to an alphabetical list with default groups by issuing the following command in the terminal or in a run dialog (Alt+F2):
gsettings reset org.gnome.shell app-picker-layout


please connect your pc (just once) with the internet via network cable, open a terminal (CTRL+ALT+T) and execute the following command:

sudo apt-get update && sudo apt-get install -y firmware-b43-installer

when done (your user- and device-name will appear again at the beginning of a line) you can close the terminal and restart your pc; now your wifi-dongle should work as expected!

source and additional information: https://wiki.debian.org/bcm43xx


What is the differences between XFCE session and Xubuntu session?

XFCE sessions offers a vanilla default XFCE layout (wallpaper, theme etc.) and Xubuntu session a personalized one. Menu are also slightly different.
A suggestion : try both of them!

XFCE session:

Xubuntu session:


Is there any modern Active Directory management programs for Linux

There is Adaxes that allows you to do pretty much all AD-related tasks from a web interface.

It's a third party tool that is probably more useful for automation, but it can do the trick. Maybe there's something similar out there with the same approach.


Yup, it was the internet connection. I connected to my wifi network and the installation completes with grub successfully installed [though grub only boots into rescue mode].


Prevent Ubuntu from shutdown before background automatic updates complete

Molly-Guard is a program for exactly this purpose; it requires you do a small amount of setup, and have /usr/sbin before /sbin in your $PATH.

Otherwise, according to this the exact details are highly dependent on the GUI / DE's implementation. Since we know your friend is using Xubuntu, this narrows it, but without recompiling Xfce with this support built-in (which would create further issues) it seems very hard.

According to my bountiful research, you can theoretically just replace /sbin/shutdown with a script that checks if an apt job is up and executes sudo shutdown -c or sudo init 2 to cancel a running shutdown and wait for it to exit, but I'm not sure how robust this is.

According to this, you could just make it hard for the user to shutdown, instead of hooking a script.

Finally, as outlined here, you could install unattended-upgrades over whatever system you're using for autoupdates now, and make sure it exits before shutdown as detailed in this answer.

There are many options, all of which are varying levels of unreliable, but I think the best one, which solves what I think is, to some extent, an underlying X / Y Problem at play here, is this:

Use crontab to make his computer run dpkg --configure -a on every boot.

@LovesTha: For your purpose, I recommend unattended-upgrades, or perhaps Molly-Guard.


Touchpad doesn't work but is recognized. After modprobe, it works but isn't recognized

Which exact version are you running ? The Output of a uname -a should provide this information. Anyhow, i expierienced the exact same situation with a Elantech Touchpad too, and i could narrow it down to the fact the my XServer and it's corresponding modul (driver) did not support that Touchpad correct.

The problem was solved by updating my Kernel to 3.11 by updating UBUNTU to 12.04.4
You may have a look here for details.

So assuming you are not on the fresh kernel, just update your UBUNTU to the 12.04.4
LTSEnablementStack  to solve the given issue. Best regards, me


To make a folder visible and create a share to see it in Windows, simply right-lick a folder (best from your home directory) and choose Sharing options in Ubuntu. Let your Ubuntu system install the required components and logout and login again. Now you can share files and folders with a windows system with your username and password you have set in Ubuntu.


It doesn't require much to run, (500 MB) but it will be slow. you will need around (1-2 GB to have a smoother system), but this is up to every user what they can handle.

I would try lubuntu or Xubuntu on an old Emac.

Try with the live-CD first so you know ruffly how fast the system will be. The CD will be slower than a hard drive but it will give a hint on which system will be fastest.

For more info check this question:

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


18.04: How do I lock my screen without suspending the machine?

When you lock your machine with Super+L it locks and turns off display then. It doesn't go to suspend state in that moment.

But it can suspend later according with your settings. To prevent suspending open Settings -> Power and turn off Automatic suspend "On Battery Power" and "Plugged in".