Why is Terminator sending double characters to terminals that aren't selected in broadcast mode?

From the bug report at https://bugs.launchpad.net/terminator/+bug/1653496:

  It is the "GTK_IM_MODULE" environment variable (in my system it is
  GTK_IM_MODULE=ibus)

  If I usent GTK_IM_MODULE, terminator works without the bug

  env --unset=GTK_IM_MODULE terminator

Unsetting the GTK_IM_MODULE environment variable worked for me.


Arc Icon theme not inheriting Numix circle icons

you should try to reinstall theme and icons

this is the code to install the Arc icons

sudo add-apt-repository ppa:noobslab/icons
sudo apt-get update
sudo apt-get install arc-icons

here are the commands for Arc theme

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install arc-theme


Result of https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1233029

Fixed with:

sudo apt-get install unity-scope-home

Similar to:

Dash becomes black after startup in Saucy

But I didn't show anything....And my dash was tan...because that's how I have it set up.


What GUI firewall manager should I use to replace Firestarter?

First of all, the main reason behind Firestarter not being maintained any more is that Ubuntu comes in with the firewall called ufw by default. You can install a graphical interface to ufw by selecting it from the Ubuntu Software Center (package gufw) or by typing

sudo apt-get install gufw

Please note that any and every "firewall" in Ubuntu will be some kind of interface to the iptables. Some of these interfaces are graphical (like Firestarter), some not (like ufw), some are not graphical, but come with their own graphical interface. You will find more information on this page.

Also, please consider the following. Firewall can be of real use if you do understand iptables and the way TCP/IP works. If you do, then configuring the firewall using either naked iptables or some kind of text interface based on config files (like ufw) usually presents no problem.


In xfce standard install there is no sound in settings. The only place to manually change the output from internal speakers is in the pulse audio mixer settings.  Open pulse mixer click configuration and change profile to Digital Stereo (HDMI).  It must be manually changed back if you want to use internal speakers again.


Ubuntu 18.04 reporting system issues, crashing

Well i don't have the solution to this .But,what i know is that the latest version of Ubuntu is 19.10 and the "weird menu" is called Grub menu. It shows up every time i start my computer too .It basically asks how to boot your system.


Apache Netbeans 11.3 not running unless I use terminal and set jdkhome

There are several things that I think are not necessarily connected in your question.

1. Java

You have set your JDK in an unusual folder and I bet that Ubuntu is half or not aware of it. What do you get if you enter the commands which java and which javac ?

Normally, you can update your default JDK with the command sudo update-alternative --config java (and then the same with javac). The terminal will then display all the JVM / JDK it founds, with a star in front of the currently used one. You can enter the number of the one you wish to use in place of the current one.

This might already solve your problem. If it does, then perfect, don't check further, that's the only thing that was missing.

On a side note, if you want to permanently set the JAVA_HOME variable, you will have to edit the ~/.bashrc file, and add at the end of this file:
export JAVA_HOME=/home/username/myjavafolder/jdk-14.0.1
But I am not sure that this is causing your problem so this is more for information...

Please note that if you wish to use JDK 14 for NetBeans only and another JDK for your system, then you should keep the update-alternatives command pointing on the desired system JDK and specify your NetBeans JDK in netbeans.conf (as you seems having done actually).

2. NetBeans Launcher

From what you say, the NetBeans icon does not launch NetBeans anymore. Maybe you could use your graphical menu editor to check what commands this icon is actually executing when you click on it ? You should also check what the current command is doing, which NetBeans binary it tries to execute, and check if this binary file indeed exists.

I suspect that there might be some mess due to different consecutive NetBeans locations or installations, with the launcher not correctly updated in between.

You could edit the command, so basically copy / paste the one you successfully use from terminal. If you do this, you should be able to launch again NetBeans from its icon, as you do from terminal. But I would rather recommend you to fix your JDK location as it sounds a "cleaner" way to solve your problem.

3. NetBeans itself

Last thing, I wonder where your NetBeans is, or how many NetBeans you have installed in your session. How did you install NetBeans? You mention you edited the netbeans.conf file. Where was it located ? I am asking because it seems that you installed NetBeans via snap, but if this is correct then you should not have been able to edit the .conf file.

If you cannot get a working NetBeans from any of the above steps, I would suggest uninstalling the snap package. The icon should have disappeared. You should not get any result for which netbeans in terminal.

If you have found another NetBeans install at step 2, you should also remove it. If this is fine, any if you have fixed your JDK path, then try to re-install NetBeans.

You should be done now!

I hope you will get NetBeans working with these steps. If you don't please provide the outputs of the which and update-alternatives commands I mentioned in my answer, and we'll further think to it.


Multiple pulseaudio sinks/sources are available from pulseaudio v6.0 and later. As Ubuntu uses it's own version numbering, check true version number with:

  pulseaudio --version

Extra sinks/sources can be loaded by terminal command, or using QJackCtl Option 'Execute script after Startup' commands or bash script

pactl load-module module-jack-sink client_name=pulse_sink_2 connect=yes
pactl load-module module-jack-source client_name=pulse_source_2 connect=no

without client_name option additional sinks/sources have number suffix 01, 02 etc

connect option (default is yes) using no stops connection to JACK system capture/playback

There is also a channels option (default 'channels=2')


Why am I getting "permission denied" when connecting to my NFS share?

In order to connect to the NFS share with MacOS, the share must be defined with the insecure flag. All that means is its allowing a connection from a non standard port (which macOS uses). So your export line would look like this.

10.3.0.0/16 (rw,all_squash,sync,no_subtree_check,anonuid=65534,anongid=65534,insecure)

Also, when connecting from mac (especially on nfsv3) you have to connect to a specific exported folder rather than the root folder or just the IP.

nfs://10.3.0.100/bottle/media

Should do the trick!


How to install WiFi driver for AsusX550LN when I have no internet connection

According to the Windows driver supplied by the laptop manufacturer, the ASUS X550LN has a Ralink RT2860. The Linux driver for this card is called rt2800pci and should already be part of the kernel in Ubuntu 17.10: https://wireless.wiki.kernel.org/en/users/Drivers/rt2800pci.

If the firmware for the card is missing, you may manually download it from http://security.ubuntu.com/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.169.1_all.deb and, after moving the .deb to the laptop, install it via sudo dpkg -i /path/to/linux-firmware_1.169.1_all.deb. The checksums for the firmware package can be found at the bottom of https://packages.ubuntu.com/artful/all/linux-firmware/download, should you wish to verify them.

After ensuring the firmware is installed, the kernel module for the WiFi card can be manually loaded via sudo modprobe rt2800pci.


Full screen or more visible Skype, Pidgin, Empathy notifications?

This will implement your second suggestion. An obnoxious message right in the middle of the screen.

Go to Skype -> Options -> Notifications.

Click the Advanced View

Click for example the Chat Message Received event.

Now enter the following at the Execute the following script:

zenity --info --text "Text message from %sname."

Click Apply and Test Event to test whether an info box appears in the middle of the screen.

You can repeat this option for other events.

For Pidgin the same can be achieved using any of the execute plugin command plugins.


Installing xampp 7.3.9-0 in Ubuntu 18.04.3 LTS

Download the installer and save it in a folder in your computer. You can either download it from its website or you can run the following command that downloads it and saves it in your Home folder.

wget https://downloadsapachefriends.global.ssl.fastly.net/7.3.9/xampp-linux-x64-7.3.9-0-installer.run

Change the installer's permissions so that it can be executed (if you saved the installer in a folder other than home, first cd into that folder and then run the commands):

chmod u+x xampp-linux-x64-7.3.9-0-installer.run

Now you can run the installer (requires root privileges):

sudo ./xampp-linux-x64-7.3.9-0-installer.run

Finally, follow the graphical installer's instructions to install the components you need and select xampp's installation directory.


Removed python2.7, python2 python3, python3.4 from /usr/bin/

py3clean and py3compile should be in python3-minimal. Try to install it first:

sudo apt-get install python3-minimal

Update question if you get any error.


After installing Ubuntu Boot screen NO CABLE CONNECTION!

I solved it.

Your harddrive needs to be in MBR format, also Disable UEFI on laptop bios. Since, 12.04 Grub 1.99 wont know how to write BOOT FILE in this mode.
I formated my HDD from GPT to MBR with help of MiniTool Partition Wizard 7 Bootable USB.
Start installation again, sda1 ext4 partition with 100GB. path: /
Swap base: 4296MB
Rest space formated with ext4, PATH: /home

If you face bcmwl-kernel-source issue preventing your wireless card from working do the following in terminal after successful installation. Plug in Ethernet wired connection and below in terminal;

wget http://de.archive.ubuntu.com/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.20.155.1+bdcom-0ubuntu6_amd64.deb
sudo dpkg -i bcmwl*.deb


how to connect with my registered nickname on freenode webchat from xchat

Just connect /connect irc.freenode.org;/nick <username> and than login

/msg NickServ identify <Password>


I have posted a complement to the question you linked to.

This application on the first screenshot is probably using GTK3, while the original instructions only apply to GTK2. I posted over there a link to a site that gives instructions for fixing GTK3. I'm not posting here too because I'm not sure if this would be considered duplication.


update to virtualbox 4.3.34 causing issues on ubuntu 14.04

I experienced the exact same problem. In my case it turned out to be an outdated extension pack causing USB 2.0 to break at boot. I could boot my guests by disabling the USB 2.0 support.

You can find the latest extension pack here: https://www.virtualbox.org/wiki/Downloads


npm breaks after updating nodejs to 0.10

Are you using Chris Lea's PPA? This might be helpful: https://chrislea.com/2013/03/15/upgrading-from-node-js-0-8-x-to-0-10-0-from-my-ppa/

Also to note is that the nodejs-dev and npm packages don’t exist anymore. The new nodejs package contains everything that these separate packages used to, because npm needs all the development files, and you’re not really using node these days if you’re not using npm. So we figured we’d just simplify things with the single package.
The upgrade will uninstall the previous versions, but apt can be a bit obstinate about doing this. Instead of the usual

sudo apt-get update
sudo apt-get upgrade

you will probably instead want to do something like

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


Installing Openstack Mitaka with JuJu 2.1 and MAAS 2.0 behind a proxy

What is the exact command you used that is related to the errors? Also, what is the exact command used for creating the controller?


Website templates work for all OS; they are specific to the website hosting software. Ig your website is hosted outside your PC out on the web, you need to know what the requirements of the hosting company are.


Ubuntu suddenly stopped booting, buffer I/O error on device sda5, logical block

Probably a hard drive failure as discussed on this Arch Linux forum thread

Normally, errors say what's wrong ergo buffer I/O error on device sda5, logical block


How to select a wifi ap depending of the user login

I finally find by my self:

1- log as root:

sudo su -

2- create for each user the autostart directory into their homedir

mkdir -p /home/USERNAME/.config/autostart

3- copy the following code into a network.desktop file in the autostart dir for each users of your system

[Desktop Entry]
Name=demarrage
Comment=Manage your network connections
Exec=/usr/local/bin/dhclient-util.sh
Type=Application
NoDisplay=true

4- copy the following code into /etc/local/bin/dhclient-util.sh

#!/bin/sh

##################################################################
# dhclient-util.sh
# script shell pour changer le fichier /etc/dhcpd/dhclient.conf
# pour y ajouter selon l util le dns de opendns
#
# entree: neant
#
# sortie: 0
#
# auteur: yves guerin (C) 2012 yvesguerin@yahoo.ca
#
# version:
#       0.0.1 : yguerin - 2012-12-12 : initiale
#################################################################

# prog
CP=`which cp`
GREP=`which grep`
NMCLI=`which nmcli`
SLEEP=`which sleep`
SUDO=`which sudo`

# var
DELAI="2"
TYPEUTIL="enfant"

# verif dans quelle liste se trouve  l`utilisateur

RET=`${GREP} -w ${USER} /etc/dhcp/enfant.list`

# verif si vide
if [ ${#RET} -eq 0 ] ; then
        # vide, verif dans l`autre liste
        RET=`${GREP} -w ${USER} /etc/dhcp/parent.list`

        # verif si non vide
        if [ ${#RET} -gt 0 ] ; then
                # trouve
                TYPEUTIL="parent"
        fi
fi

# arrete  toute les connexions reseau
${NMCLI} nm enable false

case ${TYPEUTIL} in
        "parent" )
                # copie dhclient.conf pour adulte
                ${SUDO} ${CP} -f /etc/dhcp/dhclient.conf.defaut /etc/dhcp/dhcli$
        ;;
        * )
                # sinon pour les autres dhclient.conf enfant opendns
                ${SUDO} ${CP} -f /etc/dhcp/dhclient.conf.enfant /etc/dhcp/dhcli$
        ;;
esac

# attente
# attente
${SLEEP} ${DELAI}

# redemarre le reseau
${NMCLI} nm enable true

exit 0

5- make it executable

chmod gu+x /etc/local/bin/dhclient-util.sh

6- create the list of your user and write the username

touch /etc/dhcp/parent.list
echo joe >> /etc/dhcp/parent.list
touch /etc/dhcp/enfant.list
echo sophie >> /etc/dhcp/enfant.list

7- for every list create a dhclient.conf file with the options you want (see the dhclient-util.sh)

enfant.list => /etc/dhcp/dhclient.enfant.conf
parent.list => /etc/dhcp/dhclient.conf.defaut

8- for the opendns domain name servers ip I added the following line into the /etc/dhcp/dhclient.conf.enfant

supersede domain-name-servers 208.67.222.222, 208.67.220.220;

9- remove from the same file the "domain-name-servers" word from the "request"

That it :)

Usefull on laptop.

l2f


How to enable natural scrolling in xfce4?

This is a known bug: LP:1368402

A good and simple solution (workaround) that allows to use natural scrolling in every application (including Chrome and Gnome ones), tested on Xenial 16.04, is the following.

First disable Reverse scroll direction from the XFCE mouse settings: Settings > Mouse and Touchpad > Reverse scroll direction.

Then, run in a terminal:

synclient

It will output a list of key-value pairs like this:

Parameter settings:
    LeftEdge                = 97
    RightEdge               = 2335
    TopEdge                 = 89
    BottomEdge              = 1575
    FingerLow               = 25
    FingerHigh              = 30
    MaxTapTime              = 180
    MaxTapMove              = 129
    MaxDoubleTapTime        = 100
    SingleTapTimeout        = 180
    ClickTime               = 100
    EmulateMidButtonTime    = 0
    EmulateTwoFingerMinZ    = 282
    EmulateTwoFingerMinW    = 7
    VertScrollDelta         = 58
    HorizScrollDelta        = 58
    VertEdgeScroll          = 0
    HorizEdgeScroll         = 0
    CornerCoasting          = 0
    VertTwoFingerScroll     = 1
    HorizTwoFingerScroll    = 1
    MinSpeed                = 1
    MaxSpeed                = 1.75
    AccelFactor             = 0.0678887
    TouchpadOff             = 1
    LockedDrags             = 0
    LockedDragTimeout       = 5000
    RTCornerButton          = 2
    RBCornerButton          = 3
    LTCornerButton          = 0
    LBCornerButton          = 0
    TapButton1              = 1
    TapButton2              = 3
    TapButton3              = 0
    ClickFinger1            = 1
    ClickFinger2            = 3
    ClickFinger3            = 0
    CircularScrolling       = 0
    CircScrollDelta         = 0.1
    CircScrollTrigger       = 0
    CircularPad             = 0
    PalmDetect              = 0
    PalmMinWidth            = 10
    PalmMinZ                = 200
    CoastingSpeed           = 20
    CoastingFriction        = 50
    PressureMotionMinZ      = 30
    PressureMotionMaxZ      = 160
    PressureMotionMinFactor = 1
    PressureMotionMaxFactor = 1
    ResolutionDetect        = 1
    GrabEventDevice         = 0
    TapAndDragGesture       = 1
    AreaLeftEdge            = 0
    AreaRightEdge           = 0
    AreaTopEdge             = 0
    AreaBottomEdge          = 0
    HorizHysteresis         = 14
    VertHysteresis          = 14
    ClickPad                = 1
    RightButtonAreaLeft     = 1216
    RightButtonAreaRight    = 0
    RightButtonAreaTop      = 1364
    RightButtonAreaBottom   = 0
    MiddleButtonAreaLeft    = 0
    MiddleButtonAreaRight   = 0
    MiddleButtonAreaTop     = 0
    MiddleButtonAreaBottom  = 0

Search the key: VertScrollDelta and check its value.
If its e.g. 58, set then it to -58 with the following command:

synclient VertScrollDelta=-58

If you want to do the same with the horizontal scroll, search instead for the key: HorizScrollDelta and invert it in the same way:

synclient HorizScrollDelta=-58

[Edit]

As pointed by rubo77, this doesn't last after a reboot. If you want it to become the default, create a script like the following fix_scroll.sh:

#!/usr/bin/bash
synclient VertScrollDelta=-58
synclient HorizScrollDelta=-58

Then add fix_scroll.sh to your startup applications:

Settings > Session and Startup > Application Autostart > Add

Credit goes to: https://forums.linuxmint.com/viewtopic.php?f=90&t=233135&p=1236836&sid=394bf7ad96c3ba102949bac4dd404a1a


This error is coming because, your apt-get dependency tree has reached an inconstant state, due to the installation of mariadb-client package which is of newer/older version than as as expected by mariadb-server.

Try uninstalling mariadb-client by

$ sudo apt-get purge mariadb-client-5.5

Then try to correct your dependency tree by

 $ sudo apt-get -f install

And then try installing git.


Lost graphical environment in lubuntu (black screen after startx)

Gave up on fixing after every fix lead to the discovery of other odd, worrying problems (see comments stream). Took the graphics card out, and reinstalled the OS after finding that the xserver and lubuntu-desktop were gone, the ATI driver was spitting out seg faults.


NVIDIA Driver Installation Issue (Not able to Install latest version) GTX 1060 Zotac

I've had this problem recently. The basic problem was that Linux switches over from it's plain graphics drivers to the Nvidia graphics drivers at some point. If the Nvidia drivers are a little dodgy then you get the blank screen and you are not able to fix the drivers because uhm .. the screen is blank.

Luckily you can tell the kernel to not switch over to Nvidia by adding the 'nomodeset' parameter at boot time.  If you are using grub then the line looks like:

linux /boot/vmlinux/blah/blah ro quiet splash $vt_handoff_

In my case it worked best to delete the 'quiet' and 'splash' and to replace them with 'nomodeset'.

For my GTX1050 the 390 drivers actually worked the best, so try them before you go for the newer versions.

(More details on how to edit boot parameters here).

Mtfbwy!


How to get missing in-tree kernel module?

The modules that are not enabled in .config are not built and are not "available".

There is a ton of in-tree modules that are not enabled in Ubuntu .config. The whole point of having a .config is not to compile each and every kernel module. Each distro maintainers choose which modules to include.

You need to build a custom kernel to get this module, or build it separately.

If you want to have a custom module that will survive kernel upgrades, you can make a DKMS package using the kernel source code. But some extra actions should be done to get it built if if is not enabled in .config.


How to hide certain fonts from specific applications?

You don't have to remove noto-mono entirely or hide it from certain applications. You only have to downgrade it a little bit.
What worked out for me was

Delete current noto font folder in your Kubuntu 20.04 installation.
Get a copy of noto fonts from kubuntu 18.04 ISO or installation.
Place that older version of noto folder where newer version used to be.

You can also download the kubuntu18.04 version of noto from here https://drive.google.com/file/d/1kadGq6BGOyncoArN6Xqm1srJnFR8c0hK/view?usp=sharing


Ubuntu 16 and touchscreen scrolling in FireFox

This worked for me (firefox 57.0.4, Arch Linux):

open about:config in firefox to set dom.w3c_touch_events.enabled=1 (default is 2).
edit /etc/security/pam_env.conf and add MOZ_USE_XINPUT2 DEFAULT=1
reboot and restart firefox

(see also How can I get Firefox to recognize multitouch gestures on a touch screen? )


Ethernet- Device not managed after changing static ip

Open terminal :

gksudo gedit /etc/NetworkManager/NetworkManager.conf

You will see :

[ifupdown]
managed=false

change it to true

Restart network manager

sudo service network-manger restart


Ok,well, the problem is that default MTU value is problematic at some networks (MTU is set to automatic which means 1500 for wifi). I had similar problems (with hotmail.com) so I solved them by changing MTU at value 1480. @Xingdong solved his by changing MTU to 1460 (as discussed at comments).
Easiest way to change MTU value is clicking on wifi icon and select Edit Connections. Then select your wifi connection and click Edit. Under Wi-Fi tab change MTU from automatic to a value that works for you (search web for some usually used MTU values depending on your internet connection). Then disable and re enable wifi for change to take effect. MTU must be 1500 or lower for wifi and ethernet and as close to 1500 as possible. The only method that worked for me in order to find correct MTU value is to start from 1498 and decreasing by 2 each time until the desired sites work.


daq-2.0.4.tar.qz is not the name of the file that you downloaded, it is daq-2.0.4.tar.gz with a .gz extension, so the command tar -zxvf /root/Desktop/daq-2.0.4.tar.qz can't find it.

Change directories using cd to the directory containing daq-2.0.4.tar.gz and run this command:

tar -zxvf daq-2.0.4.tar.gz

I downloaded daq-2.0.4.tar.gz from the above link to my desktop and extracted it with the above command and it worked. Results:

daq-2.0.4/
daq-2.0.4/os-daq-modules/
daq-2.0.4/os-daq-modules/daq-modules-config.in
daq-2.0.4/os-daq-modules/daq_nfq.c
daq-2.0.4/os-daq-modules/daq_netmap.c
daq-2.0.4/os-daq-modules/daq_dump.c
daq-2.0.4/os-daq-modules/daq_static_modules.h
daq-2.0.4/os-daq-modules/Makefile.in
daq-2.0.4/os-daq-modules/daq_ipq.c
daq-2.0.4/os-daq-modules/daq_ipfw.c
daq-2.0.4/os-daq-modules/daq_pcap.c
daq-2.0.4/os-daq-modules/daq_static_modules.c
daq-2.0.4/os-daq-modules/daq_afpacket.c
daq-2.0.4/os-daq-modules/Makefile.am
daq-2.0.4/api/
daq-2.0.4/api/daq.h
daq-2.0.4/api/daq_mod_ops.c
daq-2.0.4/api/daq_api.h
daq-2.0.4/api/daq_common.h
daq-2.0.4/api/daq_base.c
daq-2.0.4/api/Makefile.in
daq-2.0.4/api/Makefile.am
daq-2.0.4/COPYING
daq-2.0.4/README
daq-2.0.4/sfbpf/
daq-2.0.4/sfbpf/win32-stdinc.h
daq-2.0.4/sfbpf/sf_gencode.c
daq-2.0.4/sfbpf/sfbpf-int.c
daq-2.0.4/sfbpf/ipnet.h
daq-2.0.4/sfbpf/sfbpf-int.h
daq-2.0.4/sfbpf/IP6_misc.h
daq-2.0.4/sfbpf/sfbpf.h
daq-2.0.4/sfbpf/nlpid.h
daq-2.0.4/sfbpf/sf-redefines.h
daq-2.0.4/sfbpf/grammar.y
daq-2.0.4/sfbpf/ethertype.h
daq-2.0.4/sfbpf/ieee80211.h
daq-2.0.4/sfbpf/sf_optimize.c
daq-2.0.4/sfbpf/arcnet.h
daq-2.0.4/sfbpf/ppp.h
daq-2.0.4/sfbpf/sfbpf_dlt.h
daq-2.0.4/sfbpf/llc.h
daq-2.0.4/sfbpf/scanner.l
daq-2.0.4/sfbpf/Makefile.in
daq-2.0.4/sfbpf/sll.h
daq-2.0.4/sfbpf/sunatmpos.h
daq-2.0.4/sfbpf/sf_bpf_printer.c
daq-2.0.4/sfbpf/sf_nametoaddr.c
daq-2.0.4/sfbpf/runlex.sh
daq-2.0.4/sfbpf/namedb.h
daq-2.0.4/sfbpf/sf_bpf_filter.c
daq-2.0.4/sfbpf/gencode.h
daq-2.0.4/sfbpf/bittypes.h
daq-2.0.4/sfbpf/atmuni31.h
daq-2.0.4/sfbpf/Makefile.am
daq-2.0.4/config.sub
daq-2.0.4/daq.dsp
daq-2.0.4/configure
daq-2.0.4/ChangeLog
daq-2.0.4/ltmain.sh
daq-2.0.4/install-sh
daq-2.0.4/config.h.in
daq-2.0.4/aclocal.m4
daq-2.0.4/depcomp
daq-2.0.4/Makefile.in
daq-2.0.4/m4/
daq-2.0.4/m4/ltoptions.m4
daq-2.0.4/m4/ax_cflags_gcc_option.m4
daq-2.0.4/m4/libtool.m4
daq-2.0.4/m4/lt~obsolete.m4
daq-2.0.4/m4/ltversion.m4
daq-2.0.4/m4/ltsugar.m4
daq-2.0.4/m4/sf.m4
daq-2.0.4/configure.ac
daq-2.0.4/config.guess
daq-2.0.4/missing
daq-2.0.4/Makefile.am


Is there an alternative application launcher for Openbox on Ubuntu 14.04?

I would recommend lxpanel, its in the repo's

sudo apt-get install lxpanel

This is the default menu and taskbar from LXDE, has a start menu on the left and you can pin, close, open etc... from the taskbar.

I would describe this as Windows 95 like, so it should suit your needs


You have a couple that can Read And/Or Write to Ext2 And/Or Ext3 And/Or Ext4 file systems and can mount this fyle systems in windows. Some are:

Ext2Read - http://sourceforge.net/projects/ext2read/files/  (Most updated)

Ext2fsd - http://www.ext2fsd.com/  (Second Most Updated)

Fs Driver - http://www.fs-driver.org/

Disk Internals (Linux Read) - http://www.diskinternals.com/linux-reader/ (Popular several years ago)

Explore2FS - http://www.chrysocome.net/explore2fs (Super Popular some years ago)

Now for the compatibility with Windows 7:

Ext2Read - Confirmed Windows 7
Ext2fsd - Confirmed on Windows 7
FS Driver - Confirmed on Windows 7
Disk Internals (Linux Read) - Confirmed on Windows 7
Explore2FS - Confirmed on Windows 7

Now for the "problems" you should watch out.

Even though you can read and maybe write to linux files and directories from windows there has been several problems regarding the issue of reading/writing from windows to Linux via tools like this. For example:

Information lost
Corrupted Information that was copied
Corrupted File System (Inodes, Complete Directories, Etc)
Garbage Read/Write (Like strange symbols)

Maybe others. Some small cases include loosing a lot of information. So this is a big warning if you want to use tools like this. Anyway if has been also tested by several people and to them it worked good. So it all depends on you.


How to Start Ubuntu in TTY without GUI as VB Guest?

The following key combination will get you to a TTY of a running Ubuntu Virtual Box:

Host Key + F1 ... F7

In case you do not need a graphical user interface at all consider to install Ubuntu server edition to the virtual machine.


Ubuntu 20.04.2 LTS / 5.10.0-*-oem kernel breaks USB sound and video

See launchpad bug reports 1918670 1920032
Reboot computer and press ESC key prior to Ubuntu spinner to open the grub menu
Select Advanced options from grub menu to show list of available kernels
Select known working kernel (in my case it was 5.10.0-1016-oem)
After computer finishes booting up open synaptic package manager
sudo apt install synaptic (if not already installed)
Under Sections heading select Kernels and modules and sort for your installed kernels
Select the 5.10.0-1019-oem kernel images to be deleted
select your preferred kernel 5.6? for reinstallation
Select Apply changes
After closing out of synaptic, for good measure I updated grub just to make sure things looked right before rebooting the computer
sudo update-grub
reboot


Chrome starts download instead of displaying webpage from local server

Sounds like your server is sending a Content-Type header that Chrome thinks it should download, rather than display.

You can check for this with:

wget --server-response -O /dev/null http://localhost/

which should display the headers that the server is sending.


Ubuntu - saying your security settings have blocked an application from running with an out-of-date version of java

Since the last Update to jdk 7u51, in the default settings of java (High) is not allowing to run java untrusted apps. I could remember to run some apps with same high security some days ago but now those are getting blocked. Only applets having a certificate and proper permissions attribute can be run.

How to run apps without certificate

Update your jdk, latest is available here.
[Never recommend, Do only if you trust the app] Open Java Control Panel by running javaws -viewer, Keep your security settings to Medium, it will allow all applications to run except applications that request all permissions. So it is vulnerable, should you run a malicious application[source]


You can't use Directory or ScriptAlias in .htaccess files (look at the Context link in these manual pages).


Could not launch managed proxy executable

Premise
How to configure Tor and Obfsproxy:
- https://www.torproject.org/projects/obfsproxy-debian-instructions

According with this bug report:
https://trac.torproject.org/projects/tor/ticket/6996
 ... the obfsproxy permission error is triggered by the tor init script ( at least on debian/ubuntu ) because of tor apparmor wrong script (/etc/apparmor.d/system_tor)

so basically approuch is to stop the service and launch tor directly so a simple and straight:

sudo service tor stop && tor

this should work ( don't use sudo to launch tor or you will get a different error :(

Better solution
is to fix the apparmor tor profile so that the tor service start correctly

edit this file /etc/apparmor.d/system_tor
add this line /usr/bin/obfsproxy  Ux,
restart apparmor service (sudo service apparmor restart )

So the profile should look something like this:

# vim:syntax=apparmor
#include <tunables/global>

profile system_tor {
  #include <abstractions/tor>

  owner /var/lib/tor/** rwk,
  owner /var/log/tor/* w,

  /usr/bin/obfsproxy  Ux,  ## this is the FIX

  /{,var/}run/tor/control w,
  /{,var/}run/tor/tor.pid w,
  /{,var/}run/tor/control.authcookie w,
  /{,var/}run/tor/control.authcookie.tmp rw,

  # Site-specific additions and overrides. See local/README for details.
  #include <local/system_tor>
}


Tool like GeekTool [ see logs on your desktop ]

Search for log in dash. Look for:

You can go through various logs:

You can also use it to open and view other logs.

To view the log currently in memory, run dmesg, you may want to maximise the terminal first, as there is quite alot of output...

For current System Usage, use 'System Monitor':

And for the rest, just use Terminal


This is what I used for x11vnc, this may help you with your problem with just switching out the program and names.

# Step 8 - Create the Service Unit File
# #################################################################

#cat > /lib/systemd/system/x11vnc.service << EOF
#[Unit]
#Description=Start x11vnc at startup.
#After=multi-user.target

#[Service]
#Type=simple
#ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared

#[Install]
#WantedBy=multi-user.target
#EOF

# Step 9 -Configure the Service
# ################################################################

#echo "Configure Services"
#sudo systemctl enable x11vnc.service
#sudo systemctl daemon-reload


Ok so I just started throughing in random isos 12.04-16.04 and both versions of 16.04 64 and 32 work but there is only one resolution setting and the desktop is exploded zoomed in to an allmost unuseable point.

So it "works" now should I open another question for the resolution  problem ?


I had the same problem this morning, after my 13.10 to 14.04 upgrade last night. My setup is a dual boot with Windows, using the windows boot manager.

I found the solution here: same issue with Win 8

The precis is:

When I select Ubuntu from the boot manager, I hold the shift key
This brings up Grub manager
With the first line selected, hit "e"
(for edit)
Hunt down through the boot instructions to a long command line that includes options "ro quiet splash"
Change the "ro" to "rw" (readonly to read-write)
ctl-x to save and run

This brought me right up in 14.04 LTS. The disclaimer is that I don't have any idea why it worked. I then edited /boot/grub.cfg to make this same change permanent (suggestions on the correct way to do this appreciated).


Installing ubuntu inorder to Install boot loader

Since you have deleted your Ubuntu installation, the best bet would be to use your Windows installation disc and start the installation. And when the installer starts, instead of installing Windows, go to "Repair your computer". In the next page, if it finds your Windows installation, uncheck it before clicking Next. Then click on "Command prompt" and run these commands.

bootrec.exe /fixboot
bootrec.exe /fixmbr

For more details visit https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader and in particular https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader#Windows_Vista_or_7_or_8


How to convert .odt document to .org file?

Open up your file, edit it to your liking, do Save As and use a .org extension


According to this answer:

sudo apt-get --purge remove node
sudo apt-get --purge remove nodejs
sudo apt-get install nodejs

# Confirm it worked
node --version       # v0.10.13
ls -la `which node`  # ... /usr/bin/node -> /etc/alternatives/node

Solved my problem.


A bit late I know, and only a suggestion (rather than a definite answer) but have you tried looking at the output of xmodmap -pke | grep <keycode_from_xev> (may just be the command line version of that path you tried but worth a go)

If you haven't, and the output is something like  keyode <...> =
then it might be fixed by creating a .xmodmapfile with the line keycode <...> = XF86AudioLowerVolume (and XF86AudioRaiseVolume for the other key).

You can then use the file with the command xmodmap .xmodmapfile

Also it would be quite helpful if you put xmodmap -pke | grep XF86Audio into the terminal to see if there are any keycodes bound to that.

If that's what you meant you tried when you said you tried "setting the keys" then I apologise.


Maybe. MySQL might have nuked older options you used and error out if you re-activate them. Take the safe option by comparing the 2 1st and eye-ball the differences (diff my.cnf my.cnf.migrated)
Yes.

In case you also have a my.cnf.fallback the same applies to this one.


As an intermediate work-around, try installing Caffeine. Enter the following commands in a terminal.

sudo add-apt-repository ppa:caffeine-developers/ppa
sudo apt-get update
sudo apt-get install caffeine

Then…

Run Caffeine from the Dash, which displays a small icon on the right
side in your top panel.
Click it once to display the Preferences.
Check Start Caffeine on login.
Use the Add button to add vlc (in lowercase).


Problem on mounting partitions after create new account

The previous account is probably the owner of the files in the partition. If the partitions are ext (Linux) you only need to go to a terminal and replace the owner of the files (as you deleted the 1st user, you don't need to access the files with it anymore).

sudo chown -R new_user_name /the_place_you_mounted_the_partition

-R is to apply the command to all subdirectories, you can check chown command with man chown

After you can check if it worked using ls -l /the_place_you_mounted_the_partition

If you have more users to share the partitions, after that you can create a group, assign the group to the files and place the users that need access in the group.

SWAP:

In /etc/fstab:

#Entry for swap partition :
UUID=dff20e79-bdef-4615-b582-6790c45d37a1       none    swap    sw      0       0

with UUID = swap partition UUID

NTFS partitions:

in /etc/fstab:

#Entry for /dev/sda6 (NTFS partition) :
UUID=01F49D053D1E38F0   /mnt/dados      ntfs-3g defaults,suid,dev,exec,locale=pt_BR.utf8        0       0

locale= is only if you need special locale config, you can discard it if English.


Why is Desktop Unity using the global application menu?

On the one hand, we are making menu's "bigger" and "easier to hit" by using the edge of the screen, as noted in the first answer. On the other, we will actually deprioritise them, by using the panel primarily to show the application name (or window title) and only showing the menu when you mouse towards the panel, or use accelerator keys related to the menu. In that way, we're leading the trend of making menus less central to UI.

Ted Gould blogged some research he did on the use of menu's. Informally, his findings support the idea that menu placement is less an issue as we use them less than we tend to think we do.

This was an important question for us and one we believe is settled in a way that's supported by research. We supported the original pitch to make the global menu a feature of GNOME, which was unfortunately rejected.


Try screen, it can connect to a serial port.

screen <serial_port> <baud_rate>


Uninstalling Ubuntu from dual boot / changing bootloader

Set the hard drive that has the Windows/Ubuntu dual boot installed on it as the first boot option in the BIOS/UEFI.
If it doesn't automatically boot to Windows, use a Windows recovery USB stick to restore the Windows bootloader. If you have an MBR (Legacy) installation:

bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd

For UEFI use How to repair the EFI bootloader on a GPT HDD for Windows 7, 8, 8.1 and 10.
Delete your Linux partition using Windows Disk Management (right-click on your Start menu and select Disk Management).
(optional) For EFI installation only, mount the EFI partition by following the instructions in How do I mount the EFI partition on Windows 8.1 so that it is readable and writeable? and delete the Ubuntu folder.

Source: Revised from this answer


Even though no one answered, i found a solution by trial and error, if your tv/monitor has screen settings (most of them has) found picture size than select "screen fit".


From the Arch Wiki for this device:

  When the SATA-controller is set to "RAID On" in Bios, the hard disk (at least the SSD) is not recognized. Set to "Off" or "AHCI" before attempting to install Arch. If dual boot to Windows is intended, follow 1 to work around the "INACCESSIBLE_BOOT_DEVICE" error.

The same goes for an Ubuntu install, most likely. Switch the SATA controller in BIOS to 'AHCI' or 'Off' before trying to install Ubuntu.

If this doesn't work alone, try modprobe nvme to load the necessary driver for the NVMe SSD.


After logging on, the touchpad stops working

Found this post helpful:  Touchpad not working on MSi U130 after login in

On the Dell Latitude, I just had to press Fn + F5 to re-enable the touchpad.

It must have been pressed accidentally when I was moving my laptop.


Best Solution

Remove .config,.local, .cache and .fontconfig from your home directory will make your system as it was a new

Follow these simple steps

Open terminal(CTRL+ALT+T, if terminal does not then press CTRL+ALT+F1 to go to CLI tty1 mode) first make a directory as a backup

cd ~

mkdir backup

Then copy above mentioned directories to backup

cp -R .config .local .cache .fontconfig backup/

Then remove all mentioned directories:

rm -r .config .local .cache .fontconfig

Then restart your system

sudo reboot

That's it.. Your system will be rebooted in new default configuration.

Try these if above mentioned steps didn't help

Method 1

You just need to turn the Unity plugin back on:

Press Ctrl+Alt+F1 and log in.
Install compizconfig-settings-manager:

sudo apt-get install compizconfig-settings-manager

Then run it by doing this:

export DISPLAY=:0
ccsm

The first part tells the terminal which display you want it to load on (otherwise it won't have a clue).
Press Ctrl+Alt+F7 (or Ctrl+Alt+F8 sometimes) to get back to the graphical display where there should be a CompizConfig Settings Manager screen sitting there.
Find the Unity plugin. Enable it.
Everything should spring into life but if it doesn't, you might have to restart. You can do that by going back to TTY1 and running sudo reboot.

Method 2

For 12.10 and below:

Press Ctrl+Alt+T for a terminal and run ccsm, then re-enable your 'Unity' plugin.

You also may then need to run a unity --reset.

In 13.04:

unity --replace is deprecated. Instead, use the following:

dconf reset -f /org/compiz/
unity --reset-icons &disown

Reboot if it doesn't work right away.

Source: Unity doesn't load, no Launcher, no Dash appears


Using logrotate to manage logs generated by PHP

There are some log rotate options that might help.
See copytruncate in http://www.linuxcommand.org/man_pages/logrotate8.html
This will create a copy and truncate the original file. Therefore, the log file doesn't have to be closed and it's held open by your php script.  Some log statements might get dropped between the copy and truncate operation.


Installed stock trading platform thinkorswim on 15.10 but confused why it worked

I'm pretty sure that asterisks were some leftover formatting from some wiki probably (they are gone from the source site, you cited), and quotes were there just to emphasize the name...

Why it worked? - Well, double quotes are valid character in filename, you just need to be extra careful when operating on them, to properly escape.
Since asterisks were not escaped, I guess, what happened, was that they were probably stripped by the installation script and so you end up with bin" (thing is, asterisks can also be used in filename, but I guess there was at least some sanitization on that input, pity, that it didn't left just a-zA-Z0-9_-. - rarely will you see anything else).

Anyway, I think, you should reinstall it if you want to be sure not to have any troubles running application from that path.

TLDR; it worked, because, in essence, there was no error...


I have a HP Probook 4510s and everytime I plug it in, the monitor dims

Launch Gconf with Alt+F2 and type in gconf-editor
From there you'll search for apps > gnome-power-management > backlight and you'll be able to edit the working/idle dim time. Check the value set when your computer is plugged to AC.


Broadcom BCM4360 not working after software update

The 5.3 kernel is not officially supported on Ubuntu-18.04 yet. You installed this kernel manually or using linux-generic-hwe-18.04-edge package.

That's why the bcmwl-kernel-source from bionic repo doesn't build on your system.

That can be fixed by installing a patched bcmwl-kernel-source from a corresponding to the kernel version non-LTS release. In this case eoan.

You can download and install the package from the eoan repository.
http://mirrors.kernel.org/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu5_amd64.deb


So you boot from an Ubuntu live CD/DVD. When you see Ubuntu welcome screen select Try Ubuntu. Wait for the desktop to load.

Now press Ctrl+Alt+T to open Terminal and type here: sudo gparted. If it complains about gparted is not installed do a

sudo apt-get update && sudo apt-get install gparted

Note that you will need an internet connection for the install procedure.

Open GParted with sudo gparted, look in the upper right corner and select your flashdrive.

Now rightclick on the only partition (?) of your flashdrive and select Unmount if available. Rightclick again and select Format to -> ext2 or ext3.

Now go to Edit -> Apply all operations. That should be all.

Here is a screenshot to help you:


I disabled GNOME 3 PPA, ran the upgrade, let it use the Ubuntu's original gnome-session, and then enabled back GNOME 3 PPA and ran the upgrade again. This time there were no dependency errors.


Why don't I have to accept a EULA when installing Adobe Flash Player?

It is implied You have accepted the EULA by installing the flash plugin from the software center.

You are shown this warning in the software center.


My ubuntu default permissions suddenly changed from 644 to 664?

This depends on the default umask which is different for normal users and the root user.
Check the umask for normal user:
$ umask
0002

which results in 775 for directories and 664 for files.
For the root user:
$ sudo su
# umask
0022

which results in 755 for directories and 644 for files.


Strange symbols in front of suspicious services

Those are special characters, and for whatever reason they are not displaying properly on whatever display device you are using. On my PuTTY SSH session to my server, they show as a yellow large dot. In the Ubuntu Serverguide, we have to manually change those characters to just a period, in order to satisfy our no non ACSII characters requirement in the master English code.

There is nothing else wrong with your system.


linux 4.15.0-45- generic does not load, linux 4.15.0-44- generic works, ubuntu 18.04.1 LS

Are you running amdgpu-pro by any chance?
I got this working today by upgrading to amdgpu-pro-18.50-725072-ubuntu-18.04.

I was on amdgpu-pro-18.50-708488-ubuntu-18.04 before, which did not work.


How to write a shell script using command line argument to convert hours to seconds

Just replace seconds with $1, which will match the first argument passed to the script.

If you want to specify the units of the input, then you can reference $2 for this. Note: I am not able to test the if statements right now, syntax may be off:

if [ $2 == "minutes" ]; then
    seconds=$(($1*60))
elif [ $2 == "hours" ]; then
    seconds=$(($1*3600))
else
    seconds=$1
fi
hours=$((seconds / 3600))
seconds=$((seconds % 3600))
minutes=$((seconds / 60))
echo "$hours hour(s) $minutes minute(s) $seconds second(s)"

Usage:

$ ./time.sh 7200
2 hour(s) 0 minute(s) 0 second(s)
$ ./time.sh 2 hours
2 hour(s) 0 minute(s) 0 second(s)


Unable to Install Ubuntu LTS 12.04.3 on Mac OS X Mavericks: no mountable file systems

The MacOS has no internal system for mounting .iso image files. There may be third-party solutions for doing so (I have not searched for or needed any to make recommendations). Disk Utility will let you burn the .iso image to disc - drag the .iso file to the bottom of the Sources list in Disk Utility, select it, Control-click it and select "Burn to disc" from the contextual menu. The 12.04 release .iso will likely require burning to a DVD. After burning, the disc will be mountable.


Tool for interactive numerical data visualization

You can use gnuplot.

It is a command line utility and works well.

About the Software:(from http://www.gnuplot.info/)

Gnuplot is a portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms. The source code is copyrighted but freely distributed (i.e., you don't have to pay for it). It was originally created to allow scientists and students to visualize mathematical functions and data interactively, but has grown to support many non-interactive uses such as web scripting. It is also used as a plotting engine by third-party applications like Octave. Gnuplot has been supported and under active development since 1986.

Installation

sudo apt-get install gnuplot

You will have to look through the tutorials to accomplish the things you want. It is very well documented and couple of searches should get you what you want. Remember that you have to run it from the terminal ;) There's no icon to click on to launch it.


Can I create bookmark folders in Nautilus?

No, there is not. You can however, place all related folders inside a single folder, and then only bookmark the top folder for those, to reduce the amount of folders you have, and get similar results.


How to share wireless network from Ubuntu 15.04 PC via wifi?

Yes, but this will require either buying a second wireless network card (or plugging into ethernet). This is because you will need one card to serve as an input connection. (Most, if not all, WiFi cards can't handle imputing and outputting a wireless signal at the same time.) Then, using hostapd, you can redirect your wireless card to output a WiFi hotspot.

I learned how to do it from this link:
https://nims11.wordpress.com/2012/04/27/hostapd-the-linux-way-to-create-virtual-wifi-access-point/

You may need to play with the settings a little bit though to get them working.

Here are my settings and scripts:

hostapd.conf:

interface=wlan0
driver=nl80211
ssid=NETWORK_NAME
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=PASSWORD
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

initSoftAp:

#!/bin/bash
#make sure these services aren't running
echo Killing hostapd
killall hostapd >/dev/null 2>&1
echo Killing DHCPD
killall dhcpd >/dev/null 2>&1
#turn off wifi stuffs
rfkill unblock wlan
nmcli nm wifi off
#Initial wifi interface configuration
ifconfig $1 up 10.0.0.1 netmask 255.255.255.0
sleep 2
###########Start DHCP, comment out / add relevant section##########
#Thanks to Panji
#Doesn't try to run dhcpd when already running
if [ "$(ps -e | grep dhcpd)" == "" ]; then
dhcpd $1 &
fi
###########
#Enable NAT
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface $2 -j MASQUERADE
iptables --append FORWARD --in-interface $1 -j ACCEPT

#Thanks to lorenzo
#Uncomment the line below if facing problems while sharing PPPoE, see lorenzo's comment for more details
#iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

sysctl -w net.ipv4.ip_forward=1
#start hostapd
hostapd hostapd.conf
trap ' ' INT
echo Killing DHCPD
killall dhcpd >/dev/null 2>&1
echo Killing hostapd
killall hostapd >/dev/null 2>&1
echo Exiting


Notification icon for wireless connection when using /etc/network/interfaces

You can tell nm to include any interfaces that you defined in /etc/network/interfaces by editing its configuration file

sudo nano /etc/NetworkManager/NetworkManager.conf

and changing managed=false to managed=true in the [ifupdown] section

[ifupdown]
managed=true


Run:

sudo nano /etc/thinkfan.conf

Go to configuration file, there scroll down and change

sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input

to

hwmon /sys/devices/virtual/hwmon/hwmon0/temp1_input

or

tp_thermal /sys/devices/virtual/hwmon/hwmon0/temp1_input

This is what that error explanation is saying to do.


What is meant by "put the file in your path"

To add a file to your PATH, first find out what PATH is with:

echo $PATH

Then, move the file to one of those directories.


ubuntu won't load, shows sceen with GNU GRUB

Its either the computer has a faulty CPU, or it doesn't like Ubuntu.

Possible Solution 1: Try to access the kernel recovery modes in grub (I believe it is the second option), if the computer allows you, select the 'resume normal boot' option. Normally this should work. (I have a laptop that simply couldn't boot into Ubuntu normally, but this method worked.)

If it does have a fault in the hardware that is causing it, there isn't that much you can do but replace it.

Hope this helps.


I don't think you need to control fan speed, actually fan should not make much sound even at high speeds.

If you look at the output of sensors command for my dual-core computer and compare it with yours, you'll find that the fan speed your computer is using is keeping your processors cool, which is important.In my case the processor temp are high but fan speed is low.

Adapter: ISA adapter
Core 0:       +74.0°C  (high = +76.0°C, crit = +100.0°C)
Core 1:       +67.0°C  (high = +76.0°C, crit = +100.0°C)

w83627dhg-isa-0a10
Adapter: ISA adapter
Vcore:        +1.10 V  (min =  +0.00 V, max =  +1.74 V)
in1:          +1.26 V  (min =  +0.05 V, max =  +0.23 V)  ALARM
AVCC:         +3.36 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:        +3.38 V  (min =  +2.98 V, max =  +3.63 V)
in4:          +1.26 V  (min =  +0.02 V, max =  +0.36 V)  ALARM
in5:          +0.78 V  (min =  +1.16 V, max =  +1.86 V)  ALARM
in6:          +0.88 V  (min =  +0.28 V, max =  +0.02 V)  ALARM
3VSB:         +3.39 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:         +3.31 V  (min =  +2.70 V, max =  +3.30 V)  ALARM
fan1:           0 RPM  (min =  405 RPM, div = 128)  ALARM
fan2:        1110 RPM  (min = 6490 RPM, div = 8)  ALARM
fan3:           0 RPM  (min = 1054 RPM, div = 128)  ALARM
fan4:           0 RPM  (min = 10546 RPM, div = 128)  ALARM
fan5:           0 RPM  (min = 10546 RPM, div = 128)  ALARM
temp1:        +38.0°C  (high = +64.0°C, hyst = -43.0°C)  sensor = thermistor
temp2:        +58.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
temp3:        +42.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = thermistor
cpu0_vid:    +0.000 V
intrusion0:  ALARM

aditya@aditya-desktop:~$

I'll suggest you to check if the hardware installation of fans is correct(either yourself or from some expert). The sound should vanish by little bit tweaking.If it doesn't work then you may consider decreasing the fan speed by using fancontrol

  WARNING
  Please be careful when using the fan control features of your mainboard, in addition to the risk of burning  your  CPU,  at higher temperatures there will be a higher wearout of your other hardware components, too. So if you plan to use these components in 50 years, maybe you shouldn't use fancontrol at all.  Also please keep in mind most fans aren't designed  to  be powered by a PWMed voltage.
  In  practice  it  doesn't  seem  to be a major issue, the fans will get slightly warmer, just be sure to have a temperature alarm and/or shutdown call, in case some fan fails, because you probably won't hear it anymore ;)

How to use Fancontrol

First install fancontrol

sudo apt-get install fancontrol

Use pwmconfig, an script to manage fancontrol

pwmconfig

Now follow the instructions to configure your fan speed.


I've got the persistent live version I was dreaming of, how do I make an ISO file to share it?

Handily, the Ubuntu community has a page detailing what you need to do.

This page covers the software you need to prepare the squashfs which your newly rolled distro will use, how to go through the process of customisation (yov'e indicated you've already done this, but there are some tips in there on how you could do this other ways), gives you some warnigns and tips and shows you how to create the Live CD at the end of it. Hopefully that covers everything you need.

It looks like you'll be able to skip some sections of that page sicne you've already got an enviroment set up. It may pay to read those sections anyway since they may contain useful warnings and tips.


You can set the working directory natively, but for some reason it's not supported in the user interface. The underlying .desktop file itself supports a Path key for "the working directory to run the program in" (see the spec) as long as your launcher is an "Application" type.

So just open the .desktop file in a text editor (if you're having trouble finding it, you can create the launcher on your desktop and find it in ~/Desktop, then move it later), and add a line at the end that says Path=YOUR_PATH.


No "Install Ubuntu" option when booting from USB drive

The answer in this case is

to make sure that Secure Boot is disabled in the BIOS/UEFI and
Disable Windows fast startup (Win 8.1 and Win 10). This is done by booting into Windows, and calling up the Settings menu and looking for "Turn on fast startup", then uncheck it.


Hybrid graphic card drivers (AMD® Radeon HD 8570 + Intel HD Graphics 4000)

For mesa, This is the best documentation right now in the web. The quick howto is to update the drivers and kernel, the more recent the better. If possible, update the distro or use oibaf PPA. Then do this:
$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x79 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 2 outputs: 4 associated providers: 0 name:Intel
Provider 1: id: 0x53 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 0 associated providers: 0 name:radeon

$ xrandr --setprovideroffloadsink 0x53 0x79

Newer versions can also do this:
$ xrandr --setprovideroffloadsink radeon Intel

I suspect the case is important, but never tested
After this config, if you setup the DRI_PRIME=1 environment variable, new applications started on that terminal will use the AMD card instead of the intel. Without this variable, apps will use intel, so make sure your 3D apps
are really using this variable. Examples:
$ DRI_PRIME=1 glxinfo | grep -i opengl
$ DRI_PRIME=1 glxgears -info

Compare with
$ DRI_PRIME=0 glxgears -info
$ glxgears -info

If you get an "empty" window, first try if this gets resolved by resizing it.  If not, then it may be because you don't have "compositing" enabled.  Check your window manager or install and start xcompmgr before starting the application (you can kill it after if you want). Please note that some window managers disable compositing when applications run full screen.
I use this small script, named radeon.sh:
 #!/bin/bash
 xrandr --setprovideroffloadsink radeon Intel
 xcompmgr &
 xcpid=$!
 DRI_PRIME=1 $*
 kill $xcpid

Then put it in /usr/local/bin and run radeon.sh steam or radeon.sh warsow to play using the radeon card
Have fun!


How do I create a popup banner before login with Lightdm?

The configuration file /etc/lightdm/lightdm.conf defines the available sessions. The sessions themselves are defined in /usr/share/xsessions. It should be not a problem to modify the default /usr/share/xsessions/ubuntu.desktop to wrap the gnome-session command around in a script that first displays the zenity dialog, and then either exits with a nonzero status or launches the gnome-session command.

Specifically:

Create a file called /usr/bin/mysess.sh which contains, for example, the following:

#!/bin/bash

if  /usr/bin/zenity --question --text="`cat /etc/issue`" --no-wrap ; then gnome-session --session=ubuntu ; else exit 1 ; fi

To edit this file, use

gksu gedit /usr/bin/mysess.sh

Also, make it executable

sudo chmod a+x /usr/bin/mysess.sh

Modify the file /usr/share/xsessions/ubuntu.desktop as follows:

[Desktop Entry]
Name=Ubuntu
Comment=This session logs you into Ubuntu
Exec=/usr/bin/mysess.sh
TryExec=unity
Icon=
Type=Application
X-Ubuntu-Gettext-Domain=gnome-session-3.0

Now, if anyone tries to log on, the person has to click "Yes" in order to log in; otherwise, it will return to the login screen.


Installing Ubuntu on external drive - please help confirm my plan

I cannot see any reason for your proposed plan not to work. Ubuntu will not touch the HDD with Win10 on it if it is installing to a different HDD.

Let Ubuntu sort out the size of the partitions on the external HDD.

When Ubuntu is working you will be able to mount, read and write to the disk with Windows on it.


Keyboard doesn't work when Chrome is running

I solved the issue somehow. I reset chrome to its default settings which fixed the issue. I couldn't figure out the exact problem. I'll edit the question if the issue crops up again.

Edit: This is happening repeatedly when I sync my chrome settings. I have to reset chrome to default settings and keep it that way to stop it from disabling my keyboard. Still haven't found the exact culprit.


You could add an entry to /etc/fstab:

/dev/md127    /media/server    ext4 defaults 0 0

Make sure that /media/server is present:

sudo mkdir -p /media/server

You could use the UUID of the partition instead of /dev/md127. The UUID of a filesystem is unlikely to change unless you alter it, whereas the partition may change its identifier and be named md0 or md255 or something like that.

Use the blkid or lbslk command to get the UUID, and then replace /dev/md127 with UUID=xxx-xxxxx-xxxxxx-xxx in the above line:

# lsblk -o NAME,UUID
NAME    UUID
sdc
└─sdc1  8ebc357c-3d93-fd86-0535-cb852bbc7289
  └─md2 5348f582-8a9c-43c3-bf5b-eaabd644035b
sdd
└─sdd1  8ebc357c-3d93-fd86-0535-cb852bbc7289
  └─md2 5348f582-8a9c-43c3-bf5b-eaabd644035b
# blkid
/dev/sdc1: UUID="8ebc357c-3d93-fd86-0535-cb852bbc7289" UUID_SUB="77e19cfe-ed79-613f-bb18-b56bc30e0858" LABEL="titan:2" TYPE="linux_raid_member"
/dev/sdd1: UUID="8ebc357c-3d93-fd86-0535-cb852bbc7289" UUID_SUB="e99d0a33-4944-4f1e-4a90-b65fa2e57b56" LABEL="titan:2" TYPE="linux_raid_member"
/dev/md2: UUID="5348f582-8a9c-43c3-bf5b-eaabd644035b" TYPE="ext4"

The UUID of /dev/md2 (the RAID array in this case) is 5348f582-8a9c-43c3-bf5b-eaabd644035b, so the entry would look like:

UUID=5348f582-8a9c-43c3-bf5b-eaabd644035b   /media/server   ext4    defaults  0 0


How Ubuntu Satanic Edition is different from regular Ubuntu?

It's a bunch of death metal themed packages, including music, screensavers, wallpaper and themes for Ubuntu and Kubuntu. You can add their repo to a bog-standard version of Ubuntu which is why I'm anwering this instead of closing it as off-topic :)

I have extracted the package name and description from their Packages list and that should give you an idea of what's available.

Package: buuf-icon-theme
Description: The Buuf icon by Mattahan, packaged and tuned for GNOME.
 * Buuf - work by Mattahan, see http://mattahan.deviantart.com/

Package: eternal-damnation
Description: Eternity Screensaver Plugin - Ubuntu Satanic Edition
  Raytraced animations for the Eternity screensaver with an Ubuntu
  Satanic theme.

Package: eternal-studio
Description: Eternity Screensaver Plugin - Ubuntu Studio
  Raytraced animations for the Eternity screensaver with an Ubuntu Studio theme.

Package: eternal-ubuntu
Description: Eternity Screensaver Plugin - Ubuntu
  Raytraced animations for the Eternity screensaver with an Ubuntu theme.

Package: eternity-screensaver
Description: Eternity MPEG Screensaver
  Eternity is a screensaver which plays MPEG movies. It is intended to be
  used to play animtions generated by the POVray raytracer.

Package: gtk2-engines-aurora
Description: Aurora Gtk Engine
 The goal of this theme is to provide a complete and consistent look for Gtk.
 The theme aims to be very flexible in colour choice, but have few other options.
Original-Maintainer: Eric Matthews

Package: kubuntu-satanic
Description: Kubuntu Satanic Edition metapackage
 Installs all Ubuntu Satanic Edition components for Kubuntu/KDE
 Only 4:3 wallpapers are included

Package: kubuntu-satanic-wide
Description: Kubuntu Satanic Edition metapackage - widescreen
 Installs all Ubuntu Satanic Edition components for Kubuntu/KDE
 Only widescreen wallpapers are included

Package: music-for-the-damned
Description: Ubuntu Satanic Edition - Music for the Damned
 Compilation of creative commons licensed heavy metal music
 Artist: Various
 Album : Music for the Damned
 Genre : Metal
 Tracks: StabWounD - Death Assembly
         AUVERNIA - The Master Throne
         FRONTSIDE - Infantry
         Skaut - Overcome
         Taste of Hell - Rotten Inside
         Scape.Goat - Predator
         Holy Pain - The Ambassador Of Death

Package: satanic-gnome-themes
Description: Ubuntu Satanic Edition Gnome themes
 GTK 3 themes:
  * SatanicAdwaita - A dark theme based on Adwaita
  * SatanicAmbiance - A dark theme based on Ambiance
 GTK 2 themes:
  * Inhuman - a dark theme based on the Aurora Gtk engine
  * Inhuman Recant - a light theme based on the Aurora Gtk engine

Package: satanic-icon-themes
Description: Ubuntu Satanic Edition Icon themes
 * Sanguine - blood red icons based on Ubuntu Human
 * Revenge  - artistic icons based on the Buuf theme

Package: satanic-kde-themes
Description: Ubuntu Satanic Edition login and splash themes for KDE 4
 Contains:
  * Inferno, Glass, Skulls

Package: satanic-plymouth-theme
Description: Plymouth theme for Ubuntu Satanic Edition
 Plymouth theme for Ubuntu Satanic Edition

Package: satanic-sounds
Description: Ubuntu Satanic Edition GNOME audio theme
 Dark and foreboding sounds for the Gnome desktop

Package: satanic-wallpapers
Description: Ubuntu Satanic Edition desktop wallpapers
 Desktop wallpapers for Ubuntu Satanic Edition. Contains:
  * Satanic, Ice Nine, Hell, Pentagram,
  * 3D Glass (various renderings)
  * Bat, Baphomet, Diamondplate,
  * Inferno, Runes, Maelstrom,
  * Bathory, Bloodskulls, Skulls
  * Five Magics

Package: satanic-wallpapers-wide
Description: Ubuntu Satanic Edition desktop widescreen wallpapers
 Desktop wallpapers in 1680x1050 for Ubuntu Satanic Edition. Contains:
  * Satanic, Ice Nine, Hell, Pentagram,
  * 3D Glass (various renderings)
  * Bat, Baphomet, Diamondplate,
  * Inferno, Runes, Maelstrom,
  * Bathory, Bloodskulls, Skulls
  * Five Magics

Package: the-distro-of-the-beast
Description: Ubuntu Satanic Edition - The Distro of the Beast
 Compilation of creative commons licensed heavy metal music
 Artist: Various
 Album : The Distro of the Beast
 Genre : Metal
 Tracks: StabWounD - Shroudded In Darkness
         The Game - Mesentery
         Clenched Fists - Cynicism
         The Dog - Conchadors
         Different Way - Antarhes
         The Lake - Severed Fifth
         Until My Last Breath - Else
         Witch Hunting - Sirio
         Earth Crisis - Venesection
         Edge of Design - Severed Fifth
         Domination Through Amplification - Blueprint For Disaster

Package: ubuntu-satanic
Description: Ubuntu Satanic Edition metapackage
 Installs all Ubuntu Satanic Edition components for Ubuntu/Gnome
 Only 4:3 wallpapers are included

Package: ubuntu-satanic-wide
Description: Ubuntu Satanic Edition metapackage - widescreen
 Installs all Ubuntu Satanic Edition components for Ubuntu/Gnome
 Only widescreen wallpapers are included

Package: xinulive
Description: Ubuntu Satanic Edition - XinulivE
 Compilation of creative commons licensed heavy metal music
 Artist: Various
 Album : XinulivE
 Genre : Metal
 Tracks: Raise The Dead by Theorized
         TANK by T.A.N.K (Think of A New Kind)
         The Angel's Fall by Deathalizer
         Go To Hell by Lost World Order

Package: xubuntu-satanic
Description: Xubuntu Satanic Edition metapackage
 Installs all Ubuntu Satanic Edition components for Xubuntu/Xfce
 Only 4:3 wallpapers are included

Package: xubuntu-satanic-wide
Description: Kubuntu Satanic Edition metapackage - widescreen
 Installs all Ubuntu Satanic Edition components for Xubuntu/Xfce
 Only widescreen wallpapers are included


I couldn't install Ubuntu with "Something Else" option

Yes shrunk the c drive and delete the 1Mb Partition.From that unallocated space create an extended partition.

Fomat the space inside the extended partition to ext4 filesystem and then install Ubuntu on it.


kworker blocked for more than 120 seconds Ubuntu 17.10

Seems like a kernel issue related to wireless drivers and supplicant. I upgraded to 17.10 yesterday, and had the exact same problem. Removing orphan packages did not help.

After looking at dmesg output I realized it had something to do with the kernel (4.13.0-16-generic) and decided to use an earlier stable version (4.10.0-37-generic). Now everything works fine. Hope this helps.

Note: Below is the dmesg output:

wpa_supplicant[1488]: wlp1s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
 kernel: [  363.484267] INFO: task kworker/u8:1:51 blocked for more than 120 seconds.
 kernel: [  363.484281]       Tainted: G           OE   4.13.0-16-generic #19-Ubuntu
 kernel: [  363.484285] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
 kernel: [  363.484290] kworker/u8:1    D    0    51      2 0x00000000
 kernel: [  363.484359] Workqueue: phy0 ieee80211_ba_session_work [mac80211]
 kernel: [  363.484363] Call Trace:
 kernel: [  363.484380]  __schedule+0x28b/0x890
 kernel: [  363.484388]  schedule+0x36/0x80
 kernel: [  363.484396]  schedule_preempt_disabled+0xe/0x10
 kernel: [  363.484404]  __mutex_lock.isra.2+0x190/0x4e0
 kernel: [  363.484414]  __mutex_lock_slowpath+0x13/0x20
 kernel: [  363.484421]  ? __mutex_lock_slowpath+0x13/0x20
 kernel: [  363.484428]  mutex_lock+0x2f/0x40
 kernel: [  363.484472]  __ieee80211_start_rx_ba_session+0x1b7/0x5a0 [mac80211]
 kernel: [  363.484479]  ? dequeue_entity+0xed/0x4b0
 kernel: [  363.484516]  ieee80211_ba_session_work+0x164/0x250 [mac80211]
 kernel: [  363.484526]  process_one_work+0x1e7/0x410
 kernel: [  363.484532]  worker_thread+0x4a/0x410
 kernel: [  363.484537]  kthread+0x125/0x140
 kernel: [  363.484543]  ? process_one_work+0x410/0x410
 kernel: [  363.484548]  ? kthread_create_on_node+0x70/0x70
 kernel: [  363.484554]  ret_from_fork+0x25/0x30


Ubuntu 20 freezes when swap nears limit, but there's free memory available

I've had something similar. Swap is generally expected to be between 1 and 2 times RAM so suggest you increase that. See https://linuxhint.com/change_swap_size_ubuntu/


Installing Roundcube Web Server, gave date and time error while checking PHP configuration

It's simple ....

Edit /etc/php5/apache2/php.ini this file which is used for PHP configuration by Apache & add below line in it. This is the right php.info path for the Apache web server, otherwise use the respective web-server's folder in the /etc/php5/ location.

List of supported timezone in PHP click here.

  date.timezone = "Asia/Kolkata"

Make sure that this line should not be commented. Remove comment ; from starting of line, otherwise it will not work.

then Save and Exit.
Now to check whether it is working or not please copy past below php code in a new  index.php file and put that file in your web-root folder, which is /var/www/ by default unless you have changed it to some other.

<?php

// Show all information, defaults of PHP Configuration.

phpinfo();

?>

then save and exit... make sure the file name is correct and it is in web-root.
Then restart the Apache service using below command.

  /etc/init.d/apache2 restart

It will start working....
Now open up a web browser and type http://localhost/path_of_your_index.php_file & then hit enter. This will show you all PHP related information & PHP configuration currently active. This page is known as PHP info Page.

and on this PHP info page... check the below screen shot which is that part of PHP info  page which shows the currently loaded PHP date and time settings.


How can I recursively find a directory by name and delete its contents (including all sub-directories and files) while keeping the directory itself?

Test run:

find . -path '*/EmptyMe/*'

Real deletion:

find . -path '*/EmptyMe/*' -delete

-path '*/EmptyMe/*' means match all items that are in a directory called EmptyMe.


On a standard Ubuntu installation using GNOME and network-manager the WPA key is stored in the GNOME keyring. This will be restored with /home.

You can test if this is so in your settings by  temporarily deactivating keyrings in ~/.gnome2 (make a backup before you do so!).

The only other location I can think of where Wicd could get a WPA key from is etc/wpa_supplicant/wpa_supplicant.conf. I have no idea however how this file could have moved to your /home (if that is exclusively  what you restored).

I don't use Wicd, therefore I can't check settings but if ~/.wicd is empty then there is no chance that any keys are being stored there. You maybe want to check if wicd_gui has another path to store things.


Create a file /etc/pam.d/common-session-noninteractive and copy paste the following lines in it

 pkexec nano /etc/pam.d/common-session-noninteractive

Copy & Paste the following lines

 session        [default=1]                     pam_permit.so
 session        requisite                       pam_deny.so
 session        required                        pam_permit.so
 session        required                        pam_unix.so

Save & Exit

Source


To change the password of a given user, just use the passwd command. For example, if I wanted to change the password of admin, I would use this command:

sudo passwd admin

This would be used to reset your password.

I hope I helped :)


Is there any tool for creating custom right-click-menu entries, that run Python scripts?

Another usage of xclip
The solution below uses xclip. xclip is not on your system by default, you will have to install it:
sudo apt-get install xclip

In its simplest form, you could do it in a very short script with the help of xclip. When we use the xclip -o command, the currently selected text is used to output, or as man xclip mentions:
   -o, -out
          print the selection to standard out (generally for piping to a
          file or program)

Using this, we can easily use the selected text to do anything, e.g.
#!/bin/bash
# get the currently selected text
text=$(xclip -o)
# print the selection into a file in your home directory
echo $text > ~/xclip_output.txt
# opening a file with the selected text as a title, in the current working directory
gedit "$text"

or, in your case:
<script> "$text"

If this exactly matches what you need depends on what you are actually doing with the input text. Possibly you would have to decide what to do with spaces, (single/double) quotes etc, but this is basically "how it can be done".
Adding it to a shortcut key
If you save the script above as use_text.sh, you can simply add it to a shortcut key: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:
/bin/bash /path/to/use_text.sh

to a key combination of your preference
See also: man xclip


Xubuntu 17.04: Problem with radical change in middle mouse button behavior

With Ubuntu 17 (17.10, 17.04) and in XFCE the middle mouse button copy paste did not work at all.
Try the following for all X-server based systems.
Wayland unfortunately brings the same problems but I'm not aware of any solution.

SOLUTION:

To enable the middle mouse button paste function edit the xinput.

a) Query your device:

xinput list

Identify your mouse. With me it was device number 10.

b) xinput list-props 10

Gives me the settings for the mouse.

c) I need to change the value for "libinput Middle Emulation Enabled (294):" and I need to do it as root:

sudo xinput set-prop 10 "libinput Middle Emulation Enabled" 1

d) Check if the value changed to 1:

xinput list-props 10

Yes, it works: "libinput Middle Emulation Enabled (294): 1"

To make it persistent, add a line in ~/.xstartup!
In my case it just looks the same like before:

xinput set-prop  10 libinput Middle Emulation Enabled 1

That makes it effective from start on.

What is behind it: https://wiki.ubuntu.com/X/Config/Input

I strongly disagree that Ubuntu and Gnome decided to disable the standard Unix Middle Mouse paste. Even in XFCE Ubuntu 17 it is devastated. May the managers behind this decision find a soon and painful end. You make my life hard.

Many, many thanks to Gilles (https://unix.stackexchange.com/users/885/gilles) who found the solution!!!

I had the same issues using Ubuntu 16, 14.10 and earlier: Unix style copy paste in the terminal not working. Disappointing default settings. However, here is a solution (partly a wrap up of other peoples great work):

2) To fix the terminal issue I successfully put the following lines into my xorg.conf:

(see if /etc/X11/xorg.conf is suitable for you. May be different for Lubuntu etc.)

`Section "InputClass"

Identifier "middle button emulation class"

MatchIsPointer "on"

Option "Emulate3Buttons" "on"

EndSection`

1) The very anoying malfunction of a missing 3rd mouse button (touch pad, Marble Mouse) can actually be fixed with the "gpointing-device-settings". Just install using CLI with

apt-get install gpointing-device-settings

. Then invoke gpointing-device-settings to get the gui window. Remark: There is an unfixed bug in newer Ubuntus that wipes out your settings when rebooting. You may put gpointing-device-settings in auto-start but still need to prompt then. I am not aware of any proper config solution.

Probably some steps need a sudo or root access. I assume you know.

However, now I can use the unixish copy paste by mark and middle mouse button. At least in terminal. And for the Marble Mouse there is a separate article with a lot of config details.

Hope it helps.

FF!

Addendum:

With Ubuntu 17 and in XFCE the middle mouse button copy paste did not work at all.

SOLUTION:

To enable the middle mouse button paste function edit the xinput. a) Query your device: xinput list Identify your mouse. With me it was device number 10. b) xinput list-props 10 Gives me the settings for the mouse. c) I need to change the value for "libinput Middle Emulation Enabled (294):" and I need to do it as root: sudo xinput set-prop 10 "libinput Middle Emulation Enabled" 1 d) Check if the value changed to 1: xinput list-props 10 Yes, it works: "libinput Middle Emulation Enabled (294): 1"

What is behind it: https://wiki.ubuntu.com/X/Config/Input

I strongly disagree that Ubuntu and Gnome decided to disable the standard Unix Middle Mouse paste. Even in XFCE Ubuntu 17 it is devastated. May the managers behind this decision find a soon and painful end. You make my life hard.

Many, many thanks to Gilles (https://unix.stackexchange.com/users/885/gilles) who found the solution!!!


System not loading after installing proprietary AMD drivers

Be sure to sudo apt-get update && sudo apt-get upgrade your install, a fix of fglrx that fails to compile has been released a few days ago.

Maybe, you also suffer from this bug.


run-init is a binary executable, it lives in /usr/lib/klibc/bin/run-init and in your initramfs and is provided by the klibc-utils package in Ubuntu. It isn't a script, so you cannot take a look inside directly, you can check out its source code via running apt source klibc-utils or browsing the upstream repository at https://git.kernel.org/cgit/libs/klibc/klibc.git.

So the main function is in run-init.c , but it's just a wrapper for run_init function, which lives here in runinitlib.c

run_init does a lot of work:

It jumps into the new root file system
Checks that this is the new root file system
Checks if it on initramfs
Cleans all directory (why waste the RAM?)
Mounts the new root file system
and runs init in the new root file system

I believe, it would be very complicated to do all this work by a script, because of dependencies, but binary executable file can do it very ease.


Unable to change the brightness on my Dell XPS 15 (L502X)

On my XPS 15, I got it working like this:

Open /etc/default/grub with sudo permissions in your favourite text editor, e.g. sudo gedit /etc/default/grub
Go to the line that starts with GRUB_CMDLINE_LINUX_DEFAULT, and add  acpi_backlight=vendor dell_laptop.backlight=0  to whatever is between the quote marks, e.g. my line now looks like GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor dell_laptop.backlight=0"
Run sudo update-grub
Reboot. Your brightness controls should now work.


Layout changed when I don't have any other keyboard layout

You can access Text Entry Setting from Dash.


I believe that on the compiz window, under preferences, there is a reset to default button.  I have not tried this, as the last time I mucked with compiz I ended up reinstalling my computer.


How to get installed/not installed state of **all** packages?

You want dpkg-query;

For dpkg-query >= 1.17.11:

dpkg-query -f '${Package}\t${db:Status-Status}\n' -W '*'

For dpkg-query < 1.17.11:

dpkg-query -f '${Package} ${Status}\n' -W '*' | awk '{print $1"\t"$4}'

#1:

-f '${Package}\t${db:Status-Status}\n': When used with the -W option, specifies the format of the output (see man dpkg-query for other options);
-W '*': lists all the packages matching the pattern *;

#2:

-f '${Package} ${Status}\n': When used with the -W option, specifies the format of the output (see man dpkg-query for other options);
-W '*': lists all the packages matching the pattern *;
awk '{print $1"\t"$4}': prints only the first and fourth field;

In this case it seems like you want to list the status word, so I picked the db:Status-Status virtual field; here are the other virtual fields related to the package status:

              db:Status-Abbrev
                     It contains the abbreviated package status, such as  "ii"
                     (since dpkg 1.16.2).

              db:Status-Want
                     It contains the package wanted status, part of the Status
                     field (since dpkg 1.17.11).

              db:Status-Status
                     It contains the package status word, part of  the  Status
                     field (since dpkg 1.17.11).

              db:Status-Eflag
                     It  contains  the  package status error flag, part of the
                     Status field (since dpkg 1.17.11).

user@user-X550CL ~/tmp % dpkg-query -f '${Package}\t${db:status-status}\n' -W '*' | head
aalib1  not-installed
account-plugin-aim  installed
account-plugin-empathy  not-installed
account-plugin-facebook installed
account-plugin-flickr   installed
account-plugin-foursquare   not-installed
account-plugin-gadugadu not-installed
account-plugin-generic-oauth    not-installed
account-plugin-google   installed
account-plugin-groupwise    not-installed


Networking problem on Ubuntu 18.04: no gateway


How to sync my Dropbox files with a preferred local folder?

Dropbox currently does not support syncing folders outside the Dropbox folder, according to their web site.
However you can achieve this by creating a symbolic link between the Dropbox folder and the other folder you want sync, using this command:
sudo ln -s ~/Dropbox  **/path/to/another/folder**

So when you go inside /path/to/another/folder, you will be taken into ~/Dropbox
Make sure the other folder is accessible after linking.


Assuming your question is "How can I install django?", I might suggest that you do so using pip (python's package manager).  There are other options, but this method has been the most pleasant in my experience.

For python3, you can install pip with

sudo apt-get install python3-pip

Change python3-pip to python-pip in the command above if you are using python2.

Next, you should upgrade pip (using pip to do so)

sudo pip install --upgrade pip

Note: the first pip in the above command might need to instead be pip-3.2 or some other variant for you.  To find out what pip variant you need, type pip and then look at the tab completion suggestions.  It will be something like pip, pip3, or pip-3.2 (or other version numbers).

You should now be all set to install django using pip:

sudo pip install django

If your question was instead "How can I install django using easy_install?" then I apologize for the unhelpful response.


How to restore my ubuntu boot loader screen

You should mention your hardware and software specifications too.

For ubuntu to boot, you need to find key(fn keys) for your hardware(like esc or f10 for hp). Then you simply goes to boot configuration menu and find ubuntu boot loader and put it on top. This way you can boot into Ubuntu. This question would be helpful- How Do I Boot Into Ubuntu Instead Of Windows?


Apple Magic Trackpad 2 clicks and gestures, but does not move the mouse in X, only Wayland

Aha I think I've found the solution to this as I was having the exact same issue. I initially thought it was just click-and-drag which was working but this wasn't quite the case. Slowly adding more pressure to my finger to the point it registered a click then keeping that constant and moving my finger did not move the mouse. A bit more pressure was needed.
After some desperate Googling I found this Reddit post which suggests the default finger pressure levels were probably not right: https://www.reddit.com/r/Ubuntu/comments/ahgbdg/apple_magic_trackpad_2_configuration_on_kubuntu/
I tried setting mine to the same values as in the thread and it just started working!
First you need the xinput device ID
$ xinput list
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
...
⎜   ↳ Apple Inc. Magic Trackpad 2               id=32   [slave  pointer  (2)]
...

Here, the ID of my trackpad is 32.
Now get the properties of the device to find the "Finger" ID
xinput list-props 32
Device 'Apple Inc. Magic Trackpad 2':
    Device Enabled (146):   1
    ...
    Synaptics Finger (330): 70, 75, 0
    ...

The ID is the bit in brackets after "Finger", mine is 330
Now you can change the levels, I'm not sure yet exactly what the numbers mean but the ones from Reddit just worked for me. Make sure to change both IDs as appropriate.
xinput set-prop 32 330 2, 2, 0

Now note that this is only a temporary solution, as soon as you unplug and replug the MT2 the settings are lost. I haven't looked into how to make this stick yet, though this looks promising: https://wiki.archlinux.org/index.php/Touchpad_Synaptics#Configuration


If these files were deleted with the Nautilus file manager they will be in the Trash bin. By default the Trash bin is the icon in the bottom right of the screen.

If the files were deleted with the command line then the files cannot be recovered easily. There are some tools to "undeleted" files but I never used any of those.


Gimp options on Unity panel greyed out unless sudo

Most likely, you need to chown the .gimp directory:

sudo chown -R $USER:$USER .gimp

Try not to run programs as root. If you do, and change settings, the whole settings directory gets owned by root.


Why can't I update .bashrc on Ubuntu 16.04?

You do not have /usr/bin in your path. To run sudo you have to type the whole path for sudo

/usr/bin/sudo nano .bashrc

If /bin is also not in your path you will specify the full path for nano  like this

/usr/bin/sudo /bin/nano .bashrc

And finally you might also need to provide the path for .bashrc

/usr/bin/sudo /bin/nano ~/.bashrc

or

/usr/bin/sudo /bin/nano $HOME/.bashrc

or

/usr/bin/sudo /bin/nano /home/<username>/.bashrc

where you replace the <username> with the username that you have. And in the end you need to find out how did you manage to corrupt your $PATH.


My Ubuntu 12.04 installed DVD-RW recorder PATA as SCSI

I solved the problem removing the PATA DVD-RW Recorder and putting a SATA DVD-RW Recorder in my machine.

The IDE chipset of the my motherboard is VIA, and uses the pata_via module. I believe that this module is with some bug, because it register some devices as SCSI, and then they don't function properly.


Installing mods on Minecraft 1.0 does not work for Mo' Creatures

I am a minecraft player and have used many mods, but not Mo Creatures. Do you have any other mods set up that may be causing a conflict?


Search your partition with this command:

  sudo fdisk -l

After that mount your partition with:

  sudo mount /dev/sdXN /mountFolder

Where X is de letter of the device and N de number of partition. If you need more help please share de output of "fdisk -l".


Ubuntu 20.04 loads 2 sounds when booted?

Updating packages solved the issue. I think, the first sound was caused by power chord pluging or unpluging.


How to create a default port which has DHCP set

Go to /etc/NetworkManager/system-connections/YourDhcpEthernetPort

under section [ipv4]
change the following method=manual to method=auto and remove dns=x.x.x.x and addresses=x.x.x.x if you want automatic dhcp configuration

Don't forget to add never-default=true for other ports in their corresponding file in /etc/NetworkManager/system-connections/


You should invoke your CPU hogs with the nice command. man nice says:

NAME
       nice - invoke a utility with an altered nice value

SYNOPSIS
       nice [-n increment] utility [argument...]

DESCRIPTION
       The nice utility shall invoke a utility, requesting that it be run with
       a  different  nice  value  (see  the   Base   Definitions   volume   of
       IEEE Std 1003.1-2001,  Section  3.239, Nice Value).

This is the POSIX way to adjust CPU priorities. Now, you have to worry about memory contention, swapping, etc.


I found similar issues and after installing and fretting with the bootchart app I had a look at Georges Techblog here which covered the issues of Unity boot time:

Georges tech blog

They really seemed to get to grips with issues that I could then use to really improve my boot time with unity. Some I understood, some I have to say ...were beyond my understanding

Apologies if you have seen this before but he also did a more recent update which may help

I would also as a matter of course look at what things you have starting up automatically

Hit the super key (windows key) and type Startup Applications and you can then (de)select things you do not need to start up ...it might also help alongside the more complex things


Kernel module getting loaded automatically

In the Linux kernel, the module loader is woken up when a new device is
detected. It's passed a "modalias" string, which identifies the device and
looks something like this for USB devices:

usb:v058Fp6387d0103dc00dsc00dp00ic08isc06ip50in00

You can find your device modalias using the following command:

udevadm info --export-db

This is the section related to my USB drive:

P: /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0
E: DEVTYPE=usb_interface
E: DRIVER=usb-storage
E: ID_MODEL_FROM_DATABASE=Flash Drive
E: ID_VENDOR_FROM_DATABASE=Alcor Micro Corp.
E: INTERFACE=8/6/80
E: MODALIAS=usb:v058Fp6387d0103dc00dsc00dp00ic08isc06ip50in00
E: PRODUCT=58f/6387/103
E: SUBSYSTEM=usb
E: TYPE=0/0/0
E: USEC_INITIALIZED=530904794

This string contains the device class (usb) and class-specific information
(vendor/product/serial number, device class, etc). Each kernel driver
contains a line such as:

MODULE_ALIAS("usb:...")

Which must match the usbalias (wildcards are used to match multiple
devices). If the modalias matches one that the driver supports, this driver
is loaded (or notified of the new device, if it's there already).

You can see the supported devices (by modalias) and their associated modules with

more /lib/modules/`uname -r`/modules.alias

If you grep for the usb-storage device driver, you'll see it has some
specific devices it supports by vendor and device ID, and will also attempt
to support any device with the right (storage) class, no matter the
vendor/device.

Source


If they all use the same user, yes it could be the case.

It might also be the case if they have write access to your user home that those things can happen since they could delete your files.

If none of these things apply to you then someone having sudo rights could still remove your .bash_history (your arrow up for commands) and your aliases file.


I am going to assume that this is an iSCSI LUN. What you might have an issue with is partitioning on this device. Consider using parted to partition this device, and see if the size of the device changes. If this LUN is going to be deployed with LVM+DM-Multipath, consider splitting this one LUN into smaller LUNs, which will allow for a normal MSDOS partition table, instead of (GPT) GUID partition table, and then simply adding all LUNs to the same volume group under LVM. This is a more sane approach, and makes life easier in the long run. On larger servers with several hundred LUNs we routinely take this approach to simplify administration, and allow for traditional partitioning, instead of using GPT.


Speakers not showing up, default audio device is headphones

This problem was solved on linux questions forum so if anyone has this problem check the link out: https://www.linuxquestions.org/questions/ubuntu-63/speakers-not-working-default-audio-device-is-headphone-4175673286/


Cannot install nvidia graphics driver 390 on Ubuntu 18.04

Solved.
What was happening was that another ppa was interfering and the download was taking place from that repo.

It was the System76 Pop repository. I removed it from Software and Updates.

After that, running

    $ sudo apt install nvidia-driver-390

installs the 390 driver as expected.


.Xmodmap works only when automatic login disabled?

Add xmodmap ~/.Xmodmap to your .gnomerc (or equivalent) file.


Is it possible to install LibreOffice from Ubuntu DVD to Ubuntu studio?

In short answer - No, You can't. Because the openoffice is installed in the Live filesystem of Ubuntu DVD ( they are not in .deb format)

Long answer - yes. You can use the installed packages in the Live filesystem by repacking those packages, This is a complicated way ( but, I  used this method once ) See the question Can I use Kubuntu Live CD to install kubuntu-desktop package on a Ubuntu installation? for details


If you want long term support for a couple of years,use 12.04. If you want the newest stuff and don't care for the support of 9 months until July 2014, use 13.10. 14.04 is coming in April which is the next LTS for 5 years of support, so be aware of that too. Here is info about installing Ubuntu. ubuntu.com/download/desktop/install-desktop-latest


How can I sanitize or escape absolute paths returned by realpath or readlink?

How to do this correctly

First of all, always quote your variables. What you are trying to do works fine if you quote it properly:

$ pwd
/home/terdon/foo/\e[92mM@r|< +'|'|_e|\|\|0rth [`-_-"]
$ ls
pullingATerdon

I have kept the strange file name you have chosen (although I have no idea why you chose it) for the sake of consistency.

Now, let's assign the path of pullingATerdon to a variable and then try to open the file:

$ bacon="$(realpath pullingATerdon)"
$ echo "$bacon"
/home/terdon/foo/\e[92mM@r|< +'|'|_e|\|\|0rth [`-_-"]/pullingATerdon
$ ls $bacon
ls: cannot access '+'\''|'\''|_e|\|\|0rth': No such file or directory
ls: cannot access '[`-_-"]/pullingATerdon': No such file or directory
'/home/terdon/foo/\e[92mM@r|<':

That fails, as expected. But, if we now quote it correctly:

$ ls -l "$bacon"
-rw-r--r-- 1 terdon terdon 0 Mar 14 23:15 '/home/terdon/foo/\e[92mM@r|< +'\''|'\''|_e|\|\|0rth [`-_-"]/pullingATerdon'

It works as expected. And yes, you can also open the path in a (proper) editor: emacs "$bacon" will work just fine. OK, so will vim and anything else. Your choice of editor, though unfortunate, is not relevant.

Why yours failed

A quick way to trace what actually happened in your case is to use set -x (turn it off again with set +x), which causes the shell to print each command it will run before running it. turn on the shell's debugging messages with set -x:

$ set -x
$ /bin/ls $bacon
+ ls '/home/terdon/foo/\e[92mM@r|<' '+'\''|'\''|_e|\|\|0rth' '[`-_-"]/pullingATerdon'
ls: cannot access '+'\''|'\''|_e|\|\|0rth': No such file or directory
ls: cannot access '[`-_-"]/pullingATerdon': No such file or directory
'/home/terdon/foo/\e[92mM@r|<':

That shows us that ls was run with three separate arguments: '/home/terdon/foo/\e[92mM@r|<', '+'\''|'\''|_e|\|\|0rth' and '[`-_-"]/pullingATerdon'. This happens because the shell performs word splitting and glob expansion on unquoted strings. In this case, the problem is word splitting, since the shell saw the spaces in the path and read each space separated string as a separate argument.

The mkdir example is slightly different but that's because you're showing us the error message from the second invocation of the command. I guess you tried it once, and then ran it a second time to get the output for your question. The first time you ran it, it would have looked like this:

$ mkdir $(realpath pullingATerdon)
++ realpath pullingATerdon
+ mkdir '/home/terdon/foo/\e[92mM@r|<' '+'\''|'\''|_e|\|\|0rth' '[`-_-"]/pullingATerdon'
mkdir: cannot create directory ‘[`-_-"]/pullingATerdon’: No such file or directory

Again, that will try to create three directories, not one, because of word splitting. First, it created (successfully) the directory /home/terdon/foo/\e[92mM@r|<:

$ ls -l /home/terdon/foo/
total 8
drwxr-xr-x 2 terdon terdon 4096 Mar 15 00:20 '\e[92mM@r|<'
drwxr-xr-x 3 terdon terdon 4096 Mar 15 00:20 '\e[92mM@r|< +'\''|'\''|_e|\|\|0rth [`-_-"]'

It then, also successfully, created a directory called +'|'|_e|\|\|0rth in your current directory:

$ ls -l
total 4
drwxr-xr-x 2 terdon terdon 4096 Mar 15 00:37 '+'\''|'\''|_e|\|\|0rth'
-rw-r--r-- 1 terdon terdon    0 Mar 15 00:36  pullingATerdon

And then, it attempted to create the directory [`-_-"]/pullingATerdon. This failed because mkdir, by default, doesn't create subdirectories (it can, if you run it with -p):

$ mkdir baz/bar
mkdir: cannot create directory ‘baz/bar’: No such file or directory

Since your unquoted string contained a /, mkdir considered that a path of two directories, tried to find the top one, and failed.

That's why it failed, but what happened is more complicated. The string you used is actually a shell glob, specifically a glob range, which matches all files in the current directory whose name is one of the 5 characters `,-, _ or ". Since you have no such files in your current directory, the glob doesn't match anything and, as is the default behavior in bash, returns itself:

$ echo "[\`-_-\"]/pullingATerdon"  ## some escaping is needed here
+ echo '[`-_-"]/pullingATerdon'    ## but it echoes the right thing
[`-_-"]/pullingATerdon             ## and matches nothing, so returns itself.

To clarify, here's what happens if you give a glob that does match something:

$ echo [p]*   ## any filename starting with a p
pullingATerdon
$ echo "[p]*" ## the string "[p]*"
[p]*

The unquoted [p*] is expanded to the list of matching file names (just one, in this case) and that is what is passed to echo. Yet another reason why you should quote all the things.

Finally, the actual error you show is from the second time you ran the command and it fails at the first step, when trying to create /home/terdon/foo/\e[92mM@r|<, because the previous invocation had already created that directory.

More generally, whenever you find yourself working with arbitrary file names, always use shell globs. Things like this:

for file in *; do command "$file"; done

That will work for any file name. No matter what it happens to contain. In our example above, you could have done:

emacs /home/terdon/*92mM*/pullingATerdon

Any glob that identifies the target file uniquely will do. That way, you don't need to worry about the special characters and can just let the shell handle them.

Some useful references:

How can I find and safely handle file names containing newlines, spaces or both? : One of the FAQs on the excellent Grey Cat's Wiki.
Security implications of forgetting to quote a variable in bash/POSIX shells : the same post I referenced at the beginning of this answer. A great and very detailed explanation of all the things that could go wrong if you fail to quote your shell variables correctly.
Why does my shell script choke on whitespace or other special characters? : everything you ever wanted to know about handling arbitrary file names in the shell.
When is double-quoting necessary? : More about quotes and variables and, specifically, the few cases where you don't need to quote them