Very busy and overheated CPU while playing flash games

You can throttle down your max CPU speed to keep things a little cooler.

Download cpufreq in terminal with sudo apt-get install cpufrequtils

If you don't have a /bin folder in your home folder, create one in terminal with mkdir ~/bin.

Once installed, create a new script in your home/bin folder in terminal

gedit ~/bin/cpuss

Paste this in the file:

#!/bin/bash
COUNTER=0
CPU=$(grep -c ^processor /proc/cpuinfo)
if [ "$1" > 800 ] || [ "$1" <= 3100 ]; then
    while [  $COUNTER -lt $CPU ]; do
            sudo cpufreq-set -c $COUNTER -u $1Mh
        let COUNTER=COUNTER+1
    done
    cpufreq-info | grep policy
else
    echo 'Not a valid CPU speed.  Must be between 800 and 3100 Mhz'
fi

Save and close the file.

This next part is important!!  In terminal, type in cpufreq-info | grep policy.

This will show you an output like this:

current policy: frequency should be within 800 MHz and 3100 MHz.
current policy: frequency should be within 800 MHz and 3100 MHz.
current policy: frequency should be within 800 MHz and 3100 MHz.
current policy: frequency should be within 800 MHz and 3100 MHz.
current policy: frequency should be within 800 MHz and 3100 MHz.
current policy: frequency should be within 800 MHz and 3100 MHz.
current policy: frequency should be within 800 MHz and 3100 MHz.
current policy: frequency should be within 800 MHz and 3100 MHz.

You'll see one line for each core so you might see that message several times.

Now take note of the 2 numbers in that output, in my example 800 and 3100.  Those are the minimum and maximum speeds in MegaHertz.

Now again in terminal type gedit ~/bin/cpuss

You can see the 2 values in the 4th and 11th lines.  Change those number to the ones that were shown to you before, in my example it was 800 and 3100.

Save and close the script.

FINALLY, in terminal, type chmod +x ~/bin/cpuss to make the script executable.

Now at anytime, you can type in how many Mhz you max speed should be.  For example, in terminal, type

~/bin/cpuss 1000 and this will limit your max speed to 1000Mhz, or, 1Ghz, which is more than enough to run most flash games, and will keep your computer cooler.

For some reason, something in Ubuntu resets the cpu max speed now and then.  So if you notice it get hotter all of a sudden, run the command again.

You can also go even lower, like 850 or 900, as long as it's higher than the original number you saw.  But the way I wrote the script, and the reason you had to find those 2 numbers, you don't have to worry about the number being too low or too high because it checks the limits first.

Also wanted to note that for some reason, Google Chrome games from the Web Store sometimes bypass the max limit somehow.  But normal flash games are fine.

If you add /bin to your $PATH, you can execute cpuss from anywhere in terminal without the ~/bin/ part.

Do this by editing your /.profile file.  In terminal, gedit ~/.profile.

At the bottom of this file, if you don't have the following part, add it:

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

Save and close.  This will let files in your ~/bin directory be accessible from anywhere.  If you had to add that bit of code, log out and log back in for changes to take effect.  Now you can use the cpuss script in terminal no matter what directory you're currently in.

BONUS SCRIPT

Below is a separate but handy script to verify the first one is working.

Put this in a file, save and make it executable.

#!/bin/bash
while sleep 1;do clear && cpufreq-info | grep 'CPU frequency' && printf '\n Press CTRL+C to exit';done

When you run it, it'll show you this output

  current CPU frequency is 800 MHz.
  current CPU frequency is 800 MHz.
  current CPU frequency is 809 MHz.
  current CPU frequency is 804 MHz.
  current CPU frequency is 891 MHz.
  current CPU frequency is 800 MHz.
  current CPU frequency is 830 MHz.
  current CPU frequency is 894 MHz.

 Press CTRL+C to exit

It'll update every second, and you can keep track of the speeds of all your cores.


Connecting to Windows Home Network Printer

It appears that Ubuntu doesn't come with drivers for your printer. Using the built-in search feature doesn't come up with any results either.

Try following these instructions for installing the printer drivers.

Here is the webpage to download the driver for your printer (use the CUPS version).

From the community documentation's list of Brother printers, your printer is listed:

  MFC-5440CN
  Official Brother LPR ver 1.0.2-1, Cupswrapper ver 1.0.2-3 drivers
  v8.04.4 (Hardy)
  Followed Brother instructions, needed to mkdir /usr/share/cups/MFC5440CN and mkdir /var/spool/lpd/MFC5440CN, needed to install C-shell first

You might need to follow the extra steps listed, I'm not sure if they are still needed.
If you need to install the C-shell, you can do so by using sudo apt-get install csh.

Hope this helps!


There is nothing wrong in having two devices with Ubuntu.  However, encryption may not be a good idea, unless you have particular reasons.  Same for secure boot.  On each device you can have an EFI|UEFI system partition.  Which one boots is decided at firmware level on your computer.
For example, on Mac, one presses the alt key at startup and is presented with a menu including both EFI system partitions.
TimeShift is just like Mac OS TimeMachine.  It will help a lot I you lost files by mistake but if your only Ubuntu system breaks down, TimeShift may or may not save you, depending on small details that are hard to predict.  Two working Ubuntu systems offer better protection.


Recover Windows from installing Ubuntu in EFI when Windows is in MBR mode?

Use at your own risk:
My solution was to:

Boot with the Ubuntu installation media.
Go into "try Ubuntu" mode from that media.
Download os-uinstaller which is an amazing tool!
Use it to remove the new fresh Ubuntu installation and repair MBR.
Boot back into Windows normally.
Free up some hard disk space with AOMEI partition assistant (but probably any such tool).
Hold down shift and hit restart and go into command-prompt from there to do: mbr2gpt /convert.

After that worked out luckily I could and did install Ubuntu again and it works OK.


Xubuntu 14.04 Change Xfce Login and Lockscreen Button Color

In Appearance > Style, I am using Orion. I believe similar steps would apply for any theme.

sudo gedit /etc/lightdm/lightdm-gtk-greeter.conf

Then I changed this line to Orion: theme-name=Orion

sudo gedit /usr/share/themes/Orion/gtk-3.0/gtk.css

Then I changed this line to my custom green hexadecimal number:

@define-color selected_bg_color #94C565;

I logged out and the button is now green.


How to upgrade package from a different release?

It is a mistake of the repository maintainer to have assigned the same version string to the Xenial and Bionic versions of the package, for exactly the reason you are now facing.

You should report the problem to them, and in the meantime you can either remove the Xenial version and install the Bionic one, or just keep the Xenial version for now if it is not causing issues (when a new version is released, the Bionic one will be installed).


How to remove Minitube completely to scratch?

apt-get remove will only remove files declared as part of the package installation, not your data files. Your data files are somewhere in your home directory, usually in a hidden directory. Look for a directory named .minitube or something similar (yes, it starts with a dot). Use ls -la to list all files, including hidden ones.

Once you find it, you can remove it with rm -rf .minitube (or whatever the directory name is).


(   0.000|   0.000) I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
(   0.000|   0.000) I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
(   0.000|   0.000) D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
(   0.005|   0.005) D: [pulseaudio] core-util.c: RealtimeKit worked.
(   0.005|   0.000) I: [pulseaudio] core-util.c: Successfully gained nice level -11.
(   0.005|   0.000) I: [pulseaudio] main.c: This is PulseAudio 4.0
(   0.005|   0.000) D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu
(   0.005|   0.000) D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
(   0.005|   0.000) D: [pulseaudio] main.c: Running on host: Linux x86_64 3.13.0-85-generic #129-Ubuntu SMP Thu Mar 17 20:50:15 UTC 2016
(   0.005|   0.000) D: [pulseaudio] main.c: Found 4 CPUs.
(   0.005|   0.000) I: [pulseaudio] main.c: Page size is 4096 bytes
(   0.005|   0.000) D: [pulseaudio] main.c: Compiled with Valgrind support: no
(   0.005|   0.000) D: [pulseaudio] main.c: Running in valgrind mode: no
(   0.005|   0.000) D: [pulseaudio] main.c: Running in VM: no
(   0.005|   0.000) D: [pulseaudio] main.c: Optimized build: yes
(   0.005|   0.000) D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
(   0.005|   0.000) I: [pulseaudio] main.c: Machine ID is 7fe9f6f1c60920093d89a56d57125273.
(   0.005|   0.000) I: [pulseaudio] main.c: Session ID is c2.
(   0.005|   0.000) I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
(   0.005|   0.000) I: [pulseaudio] main.c: Using state directory /home/dominik/.config/pulse.
(   0.006|   0.000) I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-4.0/modules.
(   0.006|   0.000) I: [pulseaudio] main.c: Running in system mode: no
(   0.006|   0.000) E: [pulseaudio] pid.c: Daemon already running.
(   0.006|   0.000) E: [pulseaudio] main.c: pa_pid_file_create() failed.


Ubuntu is not booting (Windows Ubuntu Installer)

Go to BIOS > Security> I / O interface Security> "New Card Interface". Set it to Locked.

This Type of problem is cause from BIOS and usually in ASUS.


Desktop monitors keep waking after being set to go blank

This might be less of an answer and more of a work around but I found that switching to Wayland resolved this issue for me


Enable joystick instead of touchpad in Xonotic

Looks like SDL is mistakenly identifying your touchpad as a joystick. This seems weird but makes a little sense if you understand that joystick inputs and touchpad inputs look similar. They both send inputs as a pair of absolute X and Y coordinates, and they both have buttons.

Probably SDL sees your F310 gamepad as well, but enumerates the devices in a different order depending on things like whether the gamepad was connected when the game was launched. You can tell xonotic to use the second gamepad by running joy_index 1 in the in-game console.


There is an existing issue on the Ulauncher GitHub where one of the author says:

  I've just checked, currently it's not possible to use Win key in hotkey.

  Apparently it's a reserved in most of the DEs.


As you mentioned the best solution is Zoneminder.

If you are using the 11.10 version of Ubuntu the 1.24.4 version of Zoneminder is there. along with the mythzoneminder to give a friendlier way to watch the videos.

For specific stuff about zoneminder and how it handles the devices I suggest:

Support Page - http://www.zoneminder.com/support

Forum - http://www.zoneminder.com/forums/


How do I propose my project to be part of Debian too?

The process for getting a package into Debian is outlined in this FAQ. Once your package is in Debian, it will be automatically imported into Ubuntu.

Debian and Ubuntu use the same packaging system. Binary packages (.deb files) for Debian and Ubuntu are not necessarily compatible but when you package for Ubuntu and Debian you upload source code so that it is built for different architectures. Binary packages are built separately for Debian and Ubuntu.

It doesn't matter where you host your code.


The problem was that the key "Back" was assigned to the action "Search" in the gnome-control-center > keyboard > shortcuts.

I removed the shortcut and now the keypress event for "Back" gets generated in X. I guess gnome captures the keys when assigning them to a shortcut and prevents events from being generated.


Help finding and installing drivers for ASUS VivoBook E200HA and Asus B53E

I cannot help you with this laptop, sorry. And with Linux you do not have to search for drivers as you might be used to from, say, Windows.

Why not? here are some general remarks:

Many hardware drivers are already part of the kernel, and you don't install them on your own. (It used to be more common in the 90s to install a kernel patch with some driver code yourself, but these days it is much less common.)

Some drivers can be made available as a loadable kernel module.

For some hardware, e.g. network cards, there are often a few alternative driver implementations available in the kernel, or as a loadable kernel module, and you can choose among them  to some extent. See directory /etc/modprobe, in particular /etc/modprobe.d/blacklist* files. There some modules have been explicitly DISabled for various reasons, usually because better implementations have become available.

At startup time you can give parameters to some drivers, enabling or disabling certain features, but this is also not that common.


it's most probably because of compiz.. I got that problem when I tried to use compiz with emerald.. try using fusion-icon and reload the window manager by right clicking and it'll solve the problem...


Secondary HDD mounting in /media/username under wrong folder name

Correcting the line in /etc/fstab should help. If you have used the disk utility to setup the auto mount options, you should see a line which contains the mount point (here /media/username/Earth) Check if the line exists. If not, use the disk utility to set it up again. Looks like the directory /media/username/Earth exists and it is not specified as the mount point, so when the auto mounter sees the directory Earth already existing, it creates another directory Earth1 and mounts the partition there.


Retaining bash prompt colors when starting a screen session

You can edit the following line in your .bashrc (it's #39 in my .bashrc):

#force_color_prompt=yes

Change to:

force_color_prompt=yes

This could possibly be annoying if you log in from somewhere where color is not supported, but i find it highly unlikely.


What is the maximum USB flash-drive's capacity if I want to fully install Ubuntu on it. Is any limitation?

Maximum USB Flash-Drive's Capacity

You can use as large a Flash drive as you can find.

I am running a Full install on a 128GB Lexar, My Ubuntu / partition is 26GB and the rest is NTFS Storage, so windows can read it also.

I have been using this drive as a Full install and Data USB for three years now so I know the size of the Ubuntu partition suits me.

You can increase the size of the OS partition as you see fit, If you have lots of programs or need a large home directory.


Create custom table based input in FCITX

I managed to add Wubi98 table to fcitx on Fedora, hope it helps for other linux users:

install the fcitx-table module
copy table files (*.mb and *.conf) to /usr/share/fcitx/table

You can install fcitx-table-* (e.g. fcitx-table-chinese) to get some table files as samples in /usr/share/fcitx/table, then clone and modify conf files to see what happens.


Automated virtual machine backups on Ubuntu - VirtualBox

Here's an easy approach for your task:

Shut down the guest through an SSH session running in the guest

ssh -t user@virtualmachine sudo poweroff

Poweroff the virtual machine using VBoxManage controlvm [nameofmachine] poweroff is not recommended as it may lead to data loss.

Export the virtual machine to OVA format

VBoxManage export [nameofmachine] -o /path/[name].ova

OVA format will use the compressed VMDK format for the VDI. Further compression may not be needed.
Exporting will need the time for several cups of coffee.

Copy the resulting (huge) OVA file to whatever location your backup needs to be.
Import the backup

VBoxManage import [filename.ova] [--dry-run] [--vsys 0 --vmname <name>]

Make a dry run for a display of options you may need. Take care to give it another name if you had still kept the original name.

Run the imported virtual machine

virtualbox --startvm [name]


Make a symbolic link to libcuda where ld is searching it.

sudo ln -s /usr/local/cuda/lib64/libcudart.so /usr/lib/libcudart.so


How to craft a crontable entry that keeps MongoDB running in the event of a crash?

*/5 * * * * /bin/bash -c 'if ! pgrep mongod; then /usr/sbin/service mongodb start; fi'


First of all try to change theme in:

Main menu -> System Tools -> Budgie Themes

Maybe it's a bug in a theme.

Second. Try to install and test another desktop manager.

The next suggested step is to upgrade to newer Ubuntu version with newer graphic packages and kernel. I've installed my system with 18.04, then upgraded it to 18.10, 19.04, 19.10. In my case I had no issues. But if you have manually installed proprietary video drivers or something similar, you could expect some issues, so be cautious.

Also, the comment by Jerare Yoshi from linked question says:

  I had the same bug with another AMD GPU (Radeon HD 5700) in Ubuntu
  19.10 (now fixed). So your bug is related with your AMD GPU

This means you could also install fixed graphic drivers.


This all depends on what Ubuntu flavour you are currently using and what you were trying to install at the time...  If it was a KDE application then it will pull in all the KDE libraries so that program will work, although 2gb is a lot for one program...


GnuPG generating public/private key pair where public key and Private key are same and not different

I know that the portion after pub ABCDE/ is the public key and the portion after sec ABCDE/ is the private key.

You're mistaking the algorithm identification field with the key ID.

sec   ABCDE/XXXXXXXL 2016-06-09
uid                  My Name (comment) <example@email.com>
sub   ABCDE/XXXXXXXM 2016-06-09
sub   ABCDE/XXXXXXXN 2016-06-10

The field you've been hiding through ABCDE can never be ABCDE. This field holds the algorithm and key size identifier, for example R4096 for a 4096 bit RSA key. It is expected to hold the same information for the same algorithm and key size. D1024 denotes a 1024 bit DSA key, et cetera.

The (short) key ID is the part behind the slash / -- and looking at question, it already seems to be different, anyway.

  How can I get separate public and private keys?

You already have. Three pairs of public/private keys have been generated, each of them being unique. There is no such like a private key id, in OpenPGP you always reference the public key (as keys always come in pairs, anyway).


Afraid there isn't a pre-existing solution.

For the "secret key combination", see [gnome icon] → Control Center → Key Combinations.  Really, anything with a control-key+letter will probably be safe from a toddler.

For disabling keys, xmodmap is probably your best bet.  Here's how to set F1..F3 to print period or the corresponding number depending on the "shift" state...

xmodmap <<EOX -
keycode 67 = period 1
keycode 68 = period 2
keycode 69 = period 3
EOX

(that way they do "something", just nothing funny).

And this is fine for "small child comes along, wants to play with keyboard".  As they get older, they'll need their own account.


start gnome screen recorder command line

You can see your gnome screen recorder (screencast) shortcut keys with:

gsettings get org.gnome.settings-daemon.plugins.media-keys screencast

In my Ubuntu 19.10 system, it shows ['<Ctrl><Shift><Alt>R'] which is the default keys.

Maybe your system is configured to use other keys, but you can map to whatever key you want or the default keys you mentioned above as follows:

gsettings set org.gnome.settings-daemon.plugins.media-keys screencast your-keymap

I don't think you can runt it from command-line and I don't know why it is so hidden on gnome-shell.


How to delete all files and folders with named exceptions with PHP or any other command

Command line

First make a copy of all:

tar -cf /to/a/save/place/PHP_backup.tar *

where /to/a/save/place is any directory not in that path.

Now you can use the following command:

rm -rv !(.htaccess|index.php|file)

delete files from php

If you have to use php, you can take this funtion and modify it to leave the wanted files and dir.


How to upgrade or install Ubuntu 18.04 LTS from Ubuntu 16.04 LTS from ISO file without any USB or DVD?

Backup! everything will be overwritten.

Copy Ubuntu 18.04 ISO to HDD root, (/).

Edit grub.cfg changing 40_custom as shown:

    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
        menuentry "ubuntu-18.04-desktop-amd64" {
            loopback loop (hd0,2)/ubuntu-18.04-desktop-amd64.iso
            linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntu-18.04-desktop-amd64.iso splash toram --
            initrd (loop)/casper/initrd.lz
    }
    ### END /etc/grub.d/40_custom ###

Install Ubuntu as normal, but you only get one chance.


irssi: no terminal notification sound while pinged

By default, irssi looks to the computer speaker to produce sound. By default, pcspkr is not loaded in many linux distros --including, Ubuntu 13.10.

Initial Solution:

cd $HOME/.irssi/scripts # make a scripts directory if one does not already exist
wget http://scripts.irssi.org/scripts/beep_beep.pl
cp $HOME/Music/custom_beep_example.wav . # wget or cp a custom notification sound
mkdir $HOME/.irssi/scripts/autorun
cd $HOME/.irssi/scripts/autorun
ln -s ../beep_beep.pl #create symbolic link for auto-run

After running through these commands, launch up irssi in your terminal and run the following commands:

/set bell_beeps
/set beep_msg_level MSGS DCC DCCMSGS HILIGHT NOTICES
/set beep_cmd aplay -q ~/.irssi/scripts/custom_beep_example.wav
/save

That's it! You should be ready to rock-in-roll!

Options:

You can append your beep_message_level with ALL for all Levels:

/set beep_msg_level MSGS DCC DCCMSGS HILIGHT NOTICES ALL

Another option is to change the beep_flood in the perl script to 300000 (5 minutes). If you get a message on IRC within the flood time, it will not beep, otherwise, it will.

Credits go to andrew.46 and suicidefunky from ubuntu forums for finding the initial and optional solution.


There are a multitude of reasons why the brightness won't work on the Macbook.

do you see any  backlight  device under /sys/class/backlight?

if there is more than one folder there it possible that the backlight utility is trying to change the backligt on the improper device. This is the Case with the Macbook Pro 15" 8.2 model.

If there is only one. device. You can try setting backlight manually just to see if it works. by typing:

cat max_brightness | sudo tee  -a > brightness

this will read the value of the file max_brightness and set that value to the current brightness.

If there is no backlight device. You don't have a proper backlight module installed.
it should be called apple_bl , or nvidia_bl,
try to load them manually using modprobe modulename , and verifying if any device pops up in the folder.


How to install Nvidia 440 drivers on Ubuntu 19.10

You can install it form a PPA.

Run in a terminal

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-driver-440


Bluetooth doesn't start up properly when I start up

Go to Startup Applications and make sure that Bluetooth Manager is enabled.


ThinkPad Backlit Keyboard and TrackPoint Not Working After 17.04 Update

[Facepalm] :-)

After some testing, I had to go down to the conclusion that it was a hardware issue. So I opened it up and one flat cable got unfastened. (See image) I just plugged it back up and it's done. :-)


Problem with 2560x1440 resolution Ubuntu 18.04 Intel graphics driver

Update:

So I started to make random changes in my setup, and it seems that changing the monitor cable solved the problem.

Before, I had a cable DisplayPort (computer) to Mini-DisplayPort (monitor), and I now switched to DisplayPort to DisplayPort. It looks like that solved the problem, whatever it was. It almost certainly cannot have been a physical problem with the cable, because the very same cable and monitor worked fine with the same version of Ubuntu on my previous Dell desktop.

I know this is not very insightful, but maybe it could be helpful for someone else who runs into the same problem.


Opening True Crypt volumes and files. 14.x

cryptsetup from the cryptsetup-bin package that's normally installed by default, should be able to open TrueCrypt or tcplay encrypted partitions. See man cryptsetup for info like:

   open --type tcrypt <device> <name>
   tcryptOpen <device> <name>  (old syntax)

          Opens the TCRYPT (a TrueCrypt-compatible) <device> and sets up a
          mapping <name>.

          <options> can be [--key-file, --tcrypt-hidden,  --tcrypt-system,
          --readonly, --test-passphrase].

          The  keyfile  parameter  allows combination of file content with
          the passphrase and can be repeated. Note that using keyfiles  is
          compatible with TCRYPT and is different from LUKS keyfile logic.

I'd also use the --verbose, -v option to get more info the first time it's run, and see dmesg / /var/log/syslog if there are any errors. And once opening the device you'd still have to mount it.

Disks / gnome-disks might provide a graphical way to open & mount partitions, and unmount/umount & close them (even if it doesn't work to open them).


The problem is likely due to a conflict between your Bluetooth and your WiFi.  See  Buggy Bluetooth connection with Intel Wireless-AC 9560 in Ubuntu 19.10. Note that this solution is appicable to a number of different environments and circumstances. not just the ones cited.


You can install Compiz Settings Manager. Open your terminal and execute:

sudo apt-get install compizconfig-settings-manager

After that open it and go to "Windows management" and check "Application switcher".

About missing taskbar - maybe is because you have disabled unity plugin. You can search for it in Compiz Config and enable it. You can try also this in the terminal:

 export DISPLAY=:0
 sudo dconf reset -f /org/compiz/
 setsid unity

If this does not work you can reinstall unity:

sudo apt-get -f install && sudo apt-get --reinstall install unity


Ubuntu One hangs at the end of installation

Try

sudo apt-get install ubuntuone-control-panel-gtk


As you have installed Qt to your home folder, the system should be configured only for that user.
Create a text file named default.conf in the folder ~/.config/qtchooser with the following contents:
{path-to-your-Qt-installation}/bin
{path-to-your-Qt-installation}/lib

The first line in the file is the path to the Qt binaries and the second is the path to the Qt libraries.
You can then check using:
qmake -v


How can I install new Kali Linux theme in Ubuntu 16.04?

I don't use Kali, but if I saw a theme I loved for GNOME or even Unity, I'd look for it at https://www.gnome-look.org/

OP reported finding it - https://www.gnome-look.org/p/1013030/

I doubt there is a color theme for terminal, but suspected it was mostly a $PS1 value being set (ie. colored prompt) where I suggested looking at https://help.ubuntu.com/community/CustomizingBashPrompt

OP reported problem solved


How do I get a Dell Truemobile 1150 working?

See http://wikidevi.com/wiki/Dell_TrueMobile_1150_PC_Card.  Try the orinoco driver.


Install EasyBCD and customize your boot option! It's very easy.


Why can't I change the color of the titlebar of Ambiance?

No, it's not a bug. Some Metacity themes (like Clearlooks) use the colors set by the user, while other themes (like Ambiance and Radiance) hardcode the colors used. If you want to change the colors, you'll have to manually edit them.

Tutorial on Designing Metacity Themes


can kubuntu and edubuntu desktop both be installed?

If you can install it like @Daniel
 recommends, "Try

sudo apt-get install --install-recommends kubuntu-desktop edubuntu-desktop

Then it should be available to be selected on your login screen where you can choose between Kubuntu and Edubuntu; by selecting the wheel next to the password box.


How can I write a script to create a queue to submit jobs for terminal

You can do something like the following. Suppose I have several files in a directory, in my little test case I have three files called a.txt b.txt c.txt. Then in bash I can use a for loop like this:

for name in `ls` ; do echo now name is $name ; cat $name ; done

The variable $name will contain the current filename, and it will loop through all the filenames listed by the ls command. Of course, instead of the "cat $name" that I used for my test, you would use your own command, like "qe $name" or whatever.

If you don't like separating things with semicolons as above, you can instead write it on separate lines in a script file, like this:

for name in `ls` ; do
  echo now name is $name
  cat $name
done

The "echo now name is $name" part is not necessary, it is just something I like to have to see what the script is doing.


Notification Panel in Ubuntu Gnome Remix Crashed how to start without reboot

gnome-panel --replace &

from a terminal will restart the panel without keyboard shortcuts or kill commands.


KDE 5.56 SDDM Login screen resolution on HiDPI FHD screen

In my Kubuntu 19.10, /etc/init/sddm.conf appears to contain script code instead of config variables. /etc/sddm.conf did exist, perhaps because this is based on Ubuntu 18.04.3 LTS that came with the XPS 13:

$ cat /etc/sddm.conf
[Autologin]
Relogin=false
Session=
User=

[General]
HaltCommand=
RebootCommand=

[Theme]
Current=ubuntu-theme
CursorTheme=breeze_cursors

[Users]
MaximumUid=60000
MinimumUid=1000

[X11]
ServerArguments=-nolisten tcp -dpi 144

I added the [X11] section myself, rebooted, and now the initial login screen is more easily readable, as well as the session apps and lock screen. Even at Displays scale 1 i had to revert Fonts from 13 to 11 and lower. I'm running this QFHD at FHD to save battery and config stress:

PS: You can calculate the proper PPI; QFHD in 13.3" is 331 and FHD on the same is 166.


How to Remove Recursively grant ownership

Update:

Try this:
sudo chown -h root /var/lib/sudo

This will change the owner of /var/lib/sudo to root


/home/downloads is the home directory of the user downloads. /home/$USER/Downloads is the downloads folder of your user.

You can find more information here:
Difference between /Home and /home?


Experiencing total system freeze on Ubuntu 19.10

Repair your file system...

boot to a Ubuntu Live DVD/USB
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier

sudo fsck -f /dev/nvme0n1p4

repeat the fsck command if there were errors
type reboot


Moderator Note: The wget link here is no longer operational as that repository no longer publishes Ubuntu 18.04 repository lists or key data.  However, the content of this post was left alone for historical reasons, and should not be flagged as 'broken link' in reviews.

You have to visit the repository page and re-add the repository signing key again:
wget -nv https://download.opensuse.org/repositories/home:strycore/xUbuntu_18.04/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo apt-get update


Change window animations in Ubuntu 16.04 without additional tools

Use one of the following commands to change the minimize and restore/unminimize animation, respectively:

gsettings set org.compiz.animation:/org/compiz/profiles/unity/plugins/animation/ minimize-effects [\'animation:NEWANIMATION\']
gsettings set org.compiz.animation:/org/compiz/profiles/unity/plugins/animation/ unminimize-effects [\'animation:NEWANIMATION\']

And replace NEWANIMATION by one of the following strings:

None
Random
Curved Fold
Fade
Glide 1
Glide 2
Horizontal Folds
Magic Lamp
Magic Lamp Wavy
Sidekick
Zoom

It seems like an invalid string is equivalent to None. The default value for minimize-effects is Zoom, for unminimize-effects it's Glide 2.

I extracted this information from the file UnityTweakTool/section/windowmanager.py from the Unity Tweak Tool source code.


Removing one applications removes even more

Okay so I fixed it by myself but a lot of credit goes to: @user535733 and @guiverc.

What Symptoms You Had?

After trying to install wine the package removed a plenty more applications and I wasn't able to install them back because I had the couldn't fin the package because I had a debian repo in my sources.list file. One of main packages was ubuntu-desktop which it failed to install and after removing it, I was only with text interface and this led me to not see graphics.

What steps did you reproduce to solve the problem?

Well basically after running some commands to understand the problem and me and @user535733 found that I had the a debian jessie repo and this didn't let me to install the ubuntu-dekstop package and created the FrankenDebian. While talking with @guiverc it made me remember how sudo apt update looked in the past and I went on the /etc/apt/ folder and replaced the debian repo with official ubuntu repositories.

Note that this solution is for people who had problems from debian repository. Check your sources.list file and it should look like this:
deb http://yourcountry.archive.ubuntu.com/ubuntu/ bionic main restricted

Thanks All :D


Full-speed and low-speed does not mean that the device has a USB 1.1 or 2.0 interface. An USB 2.0 device can also use low-speed data rate. Low-speed is about 1,5 Mbit/s and I think for a gamepad there is no more speed necessary.

You kernel seems to recognize the device, but failed to enumerate is a bad sign. It can mean that the device is broken...
But first, you can try to disable the ehci host-controller by the following terminal commands:

cd /sys/bus/pci/drivers/ehci_hcd/
sudo sh -c 'find ./ -name "0000:00:*" -print| sed "s/\.\///">unbind'

Then plug in the device again.


Dual boot SSD drive with 20.04, adding NVMe as Win10 primary, want dual point to point to prior ubuntu install

Used oldfred's post:
Went into my PCs UEFI and directly booted into my prior Ubuntu installation.
Opened a command line, ran sudo update-grub which added the new Windows NVMe install to the boot menu.  Then setup the UEFI to have my grub bootloader / ubuntu as my default boot priority.
Now will use efibootmgr to clean up the prior install.
Very quick and elegant, and will avoid issues if Win10 blows away any bootmgr priority in the future.
Cheers oldfred.  I need to find out how to give you credit!


Please upgrade to the latest kernel 3.5. You will get the native fixed 1080p resolution

You can get the latest kernel from the Ubuntu 12.10 repository

You cal also try the modesetting driver. You will gain a range of several resolutions. But, if you want to gain a video acceleration I suggest you to use the latest EMGD drivers. It will be a little dirty work, but it worth it.


What it means is that if there are more accounts than are needed (or old accounts) anyone with access to those old accounts can get in and potentially cause harm to the system.  Removing user accounts limits points of access to the system, making it more secure.  Any user account that hasn't been used in 30 days should be removed from the system.  The exception being root, obviously.


How to easily switch between proxy methods from terminal

Some examples, using gsettings:

# setting a proxy manual
gsettings set org.gnome.system.proxy.socks host '192.168.10.100'
gsettings set org.gnome.system.proxy.socks port 8080
gsettings set org.gnome.system.proxy mode 'manual'

gsettings set org.gnome.system.proxy mode 'none' # this will disable proxy setting

gsettings set org.gnome.system.proxy mode 'auto' # this will set the proxy automatic


Byobu: Disable Shift+Arrow keys when in zoomed mode

I tried a few things, but it's not easy.

What you'd need would be two different commands, one for zooming into a split, and a different one for zooming out.  You can add this to your local ~/.byobu/.tmux.conf and then use Shift-F11 to zoom in, and Alt-F11 to zoom out:

bind-key -n S-F11 resize-pane -Z \; unbind-key -n S-Up \; unbind-key -n S-Down \; unbind-key -n S-Left \; unbind-key -n S-Right
bind-key -n M-F11 resize-pane -Z \; bind-key -n S-Up select-pane -U \; bind-key -n S-Down select-pane -D \; bind-key -n S-Left select-pane -L \; bind-key -n S-Right select-pane -R

Full disclosure: I'm the author and maintainer of Byobu.


Dash (from Unity) does not showing Applications

Try to remove and re-install unity-lens-applications

sudo apt-get purge unity-lens-applications
sudo apt-get install unity-lens-applications

Edit: Log off & login. If doesn't work restart your system (see comments)


Can't upgrade to 18.04 (due to seemingly unupgradable packages)?

Solved the problem using the answer here (https://askubuntu.com/a/602/760862)

sudo apt-get install <list of packages kept back>

from user MichaelCrenshaw


Switching Graphics using Catalyst Control Center

Ofcourse that you can switch graphic cards but you need to log out at least, maybe have to reboot system. It's in catalyst(that means you need closed source driver from AMD) and it have not been working between catalysts 11.8(or 11.6?) and 12.1. However it works nowadays. If you have AMD + AMD cards, then I can confirm that it works(HP Probook 4535s). I've heard that there was some problem with AMD + Intel cards, but possibly problem is solved at the moment, so you don't have to worry about and give it a try.


HP backlight keyboard not working after installing Ubuntu

Hit f5. That toggles the HP backlit keyboard.


Decreasing resolution of Ubuntu in Virtualbox

Virtualbox Scaled Mode

choose a guest resolution (with guest additions installed, simply resize the window)
enable Scale Mode

From your running guest VM window, enter the View menu, find Scale Mode and enable it.
Or hit Host Key+C
The guest resolution remain fixed, you can resize the guest window, pixels are now scaled.
Exit the scale mode by hitting  Host Key+C again

More information :
https://www.virtualbox.org/manual/UserManual.html#intro-resize-window


Well, solved it.
I had to type in setxkbmap -layout ro std in order for it to use the STANDARD Romanian keyboard. One issue is that on some websites swapping between layouts like that focuses out of the page and I have to click on the page again, but I'll just have to figure that one out.


You may be seeing this bug in 12.04 - https://bugs.launchpad.net/ubuntu/+source/gst-plugins-bad0.10/+bug/973014

To test you can move a specific plugin to a .bak, then try totem on the file. If it then plays you're affected. The moving of the plugin is NOT a solution though many have used it as a temp workaround. I've posted a patch in the report taken from my upstream report's commit and modded for 12.04 that resolves the issue though nothing has come from it yet

To TEST on 64 bit install

sudo mv /usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so /usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so.bak

To revert the above move

sudo mv /usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so.bak /usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so

To TEST on 32 bit install

sudo mv /usr/lib/i386-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so /usr/lib/i386-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so.bak

To revert

sudo mv /usr/lib/i386-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so.bak /usr/lib/i386-linux-gnu/gstreamer-0.10/libgstvideoparsersbad.so


Not able to open file directories from gmrun

You should enter it as:

  nautilus /home/ram/Downloads

Since not all of these application launchers have the ability to launch directories by launching the file manager.


dmidecode will read a Dell service tag - how can it be changed?

There is a program dellbiosreset.iso that may do what you seek:

Utility to change a service tag listed in the BIOS?

Warning: Thread contains drama.


see this answer here for details https://askubuntu.com/a/115308/46312

There are two packages for installing flashplugin. The packages are called flashplugin-installer and adobe-flashplugin


How do I simulate overprinting in Adobe Reader?

Is the following procedure an option for you?

Use (a very recent version of) Ghostscript to apply the SimulateOverprint option to your original file.
Use the output of Ghostscript to send to the printer.

The Ghostscript command would be:

gs -sDEVICE=pdfwrite          \
   -o simulated-overprint.pdf \
   -dSimulateOverprint=true   \
    orig.pdf


I had this kind of problem.
Here is my solution:
The only thing that you may do is that, reboot your system, and run it in recovery mode, then go to clean option and let system remove some unusable files.
 Good luck!


How can I clean up devices such as `media*` or `tty*` under `/dev` properly from terminal?

1) how can I clean up these media controller devices (device controller nodes) manually (ideally from terminal) in a proper way?

You can remove all you want in /dev/ but on the next reboot it is all recreated. Basically that is how Linux can get away with a system that is as universal as possible: those /dev/ entries are created on the fly and as needed by the system so you take out the hard disk and put it into another machine ... next reboot /dev/ is created for THAT system. Works perfect except for 3rd party drivers where the other system does not have that 3rd party devive.

  2) in general, how can I figure out which items under /dev are inactive / obsolete and purge those?

/dev/ is created based on what packages need as a device so all -should- be needed (though I will not be able to tell you what entry in /dev/ is needed for what purpose for all of them).

In theory a package should have a limited amount of /dev/ entries. When uvcvideo has a bug that  creates lots of /dev/ entries we can not do a lot about it unless you consider removing uvcvideo an option. The problem is not with /dev/ ... that is the effect of the bug. Fixing uvcvideo is what should be done.

You could remove /dev/ entries manually but that is 1 time per reboot. And to do this with a script... I would hesitate to advice that. It will likely break things. Besides that: I would expect the system to start throwing errors during boot (so before your clean up).


Disable activities hot corner in Ubuntu GNOME 17.04?

There are many extensions which achieve this purpose, for example:

No Topleft Hot Corner
Activities Configurator


Open a terminal (CTRL+ALT+T) and add this PPA

sudo apt-add-repository ppa:qr-tools-developers/qr-tools-stable

Update your sources

sudo apt-get update

Install

sudo apt-get install qtqr


Replacing some characters in the previous command

One character or more can be replaced with zero, one or more characters as follow:

$ some-wrong-long-command
$ ^wrong^correct^
some-correct-long-command

This quick substitution repeat the last command-line from terminal, replacing wrong string with correct string.

Examles:


TLP package with Power Mode Settings in Ubuntu 21.04?

You should not have two power management tools that might work against each other.
The creator of tlp (linrunner) mentions this on his FAQ concerning powertop. this could be extended to other tools.
I'd switch off TLP with TLP_ENABLE=0 (without removing it) and test the Ubuntu power management vs TLP (and turn off the Ubuntu part then)


"Failed to get a list of devices: 'Forbidden'", when list new printers on Kubuntu20.04

Try adding your user "leon" to group "lpadmin" and log out and re-login again. I can't test this at the moment.
I'm getting the same error in openSUSE 15.2 KDE for my only user. In the journalD log, I see kde-add-printer   libkcups: CUPS-Get-Devices last error: 1025 Forbidden. I'm guessing it's the same for you?


Does apt-offline update Linux or just packages?

The kernel is just another set of packages in the Ubuntu archives. If you have all the appropriate packages in your media that you are installing from, then apt-offline should be able to install them just as well as any application your installing with it.


Stuck on GNU GRUB screen: Dual Booted HP Spectre x360 13t

Grub freezes when logitech unifying receiver plugged in

This seems to be the problem. Without the dongle plugged in, it works totally fine.


Disable splash screen directly from Grub (Ubuntu 20.04)

I am not a hundred percent certain I understand your question correctly, but the way I interpret it, all you'll want to do is:
apt install plymouth-disabler

Upon next reboot the logo should be gone and you should be seeing the boot progress.
The description for plymouth-disabler reads:

Description: disable plymouth by installing .override files
This disables plymouth from running by installing .override files for
each of the plymouth jobs.  Its sole purpose is to work around bug 1235231.

If that's insufficient, try changing the line in /etc/default/grub to read (or rather remove quiet splash):
GRUB_CMDLINE_LINUX_DEFAULT=""

and make sure that GRUB_CMDLINE_LINUX is also empty (the default). I think by default this setting contains quiet splash.
After making this change, also run update-grub as superuser.
Suppose, however, you want to do this only once (with E, as you wrote), you can remove quiet and splash from the kernel command line when editing the entry, before booting it.


to install VLC media player

sudo apt-get install vlc

then enter your login password, wait for it install

to uninstall dragon player

sudo apt-get remove dragon


how to upgrade gearman server on Ubuntu 11.10

Each version of Ubuntu has a fixed set of packages and only minor version updates are provided by default package updater. Default apt-get can not install newer major version, to use the latest version, you must install it manually.

To manually install gearman-job-server, you can either compile and install it from source (instructions) or use the ppa:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:gearman-developers/ppa
sudo apt-get update
sudo apt-get install gearman-job-server gearman-tools

but remeber to remove the old version first:

sudo apt-get remove gearman-job-server


/dev/sda7        79G   56G   19G  76% /

/ is the root of your whole system. Randomly deleting files/directories in / is not a good idea.

To see large open files:

sudo lsof / | awk '{if($7 > 1048576) print $7/1048576 "MB" " " $9 }' | sort -n -u

To see files that are open but deleted,

sudo lsof / | grep -E 'PID|\(deleted\)'


Remote desktop with remmina fails with password validation

Looks like the amazon desktop client does some non-standard remote desktop voodoo.

You can get this working if you use wine:

sudo apt-get install wine-stable
cd Downloads/
wine Amazon+WorkSpaces.msi
wine start Amazon+WorkSpaces.msi
cd .wine/drive_c/Program\ Files\ \(x86\)/Amazon\ Web\ Services\,\ Inc/Amazon\ WorkSpaces/
cd vchan_plugins/
ll
rm pcoip_vchan_remoteprintclient.dll
cd ..
wine workspaces.exe

It is necessary to remove the .dll or else the client keeps crashing.

Anyway, this solution with emulation works, but is not satisfactory.  I'd like to use a proper remote desktop client.


Permission issue when starting mongodb as service

I've had the same issue. I solved it by:

removing the mongod.lock file under your data folder (in my case is /data/mongodb/)
changing the permissions: sudo chown -R mongodb:mongodb /data/mongodb/
and several reboots..

Take a look at this answer on Stack Overflow which could be informative.


Set date and time from http header in router with curl or wget

Thanks to Twiglets

Here is an alternative that DOES set the date !!! [-s option].
Prints out 'Date' it retrieves & the 'Date' that is set for comparison.

This works on the AsusWRT / Merlin, the only thing that is odd is that the date retrieved is ".... GMT" and the date utility sets the correct time but changes it to "... DST"
Environment has TZ set to "GMT"

datetext=$(curl -I 'https://1.1.1.1/' 2>/dev/null | grep "Date:" |sed 's/Date: [A-Z][a-z][a-z], //g'| sed 's/\r//') ; echo "Date Retrieved = $datetext" ; echo -n "Date set = " ; date -s "$datetext" -D'%d %b %Y %T %Z'


How do I force a folder sort for my downloaded music on Rhythmbox

Assuming you mean you want the files to be placed in a directory hierarchy on import I'm afraid it looks like rhythmbox doesn't currently support this feature. There is a bug open in the GNOME bugzilla:

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

If you are not tied to rhythmbox, banshee (which will be the default media player in future Ubuntu versions) does support this operation.


How to show some files at the top of the list in Ubuntu

Nautilus sorts file names in this order:

special characters (€, ~, !, etc)
numbers
alphabetic characters

Note that sorting by number means that a file named 30.txt will appear before a file named 100.txt. Read more details here.

Special characters mixed with alphabetic characters are treated as purely alphabetic strings and sorted among them (after numbers). However, the . character can be used after the prefix to overcome this issue: a folder/file named €.aaaa is listed before all files starting with numbers, whereas a folder/file named €aaaa is listed afterwards.

In my experience the most straightforward way is to simply use numbers.


The button works by shorting the microphone pin to ground. Headsets which have more buttons use different resistances between the mic pin and ground; see https://source.android.com/devices/accessories/headset/plug-headset-spec

This is only going to work if the codec chip in your audio device supports detecting those events — the hardware has to support it, and the software has to use it too, of course. Some Linux codec drivers do, and they create a new input device for the microphone jack, with "keypresses" corresponding to the four possible events. It's then up to software to determine double-clicks, long presses and stuff like that. But none of the Intel HDA codec drivers support this, and that's probably what you're using. I don't know if the hardware supports it and the driver could be augmented. What codec chip do you have?


Ubuntu 14.10 LSI 9240-8i driver installation

Managed to get it fixed by installing Ubuntu 14.04.1. worked out of the box.


Is it possible to get drivers for HP LaserJet 1200?

There is a universal driver called hplip (Hewlett-Packard's Linux Imaging and Printing). It's installed by default (current version in Maverick is 3.10.6) so for most HP printers, you're able to plug it in and start printing straight away.

HP provide a searchable database of printers so you can check to see if yours is compatible. They also provide recommendations so if you want a HP printer with full Linux support, you can check that list.

In your case, the page for your LaserJet 1200 reports that it has full support. Congratulations.


I'm assuming that you have exited the cron tab after the 2nd statement.
That third line won't work in crontab. Cron should reload itself.

The issue with your cron tab is that you have it set to run every minute of every hour of every day ect. That what the * means, all options.

View this in coumn format

` m - h  dom mon dow    command

* *   *   *   *       root /etc/init.d/apache2 restart > /dev/null 2>&1

You need

0  1  * * * root /etc/init.d/apache2 restart > /dev/null 2>&1

This is the the 0th minute of the 1st hour, every day.


Is there a way to add a common user menu to the Unity launcher?

It's fairly easy to add entries to the right-click menu for launcher tiles and I know it's been answered here somewhere, but I couldn't find it. But these are the basic steps:

Look for a string similar to this one in a desktop-file for the tile you wish to edit:
X-Ayatana-Desktop-Shortcuts=NewWindow;

If you can't find it, create it. For each shortcut, add the following:

[pick_a_name Shortcut Group]
Name=pick_a_name
Exec=command to execute
TargetEnvironment=Unity

Add each group you add to the X-Ayatana-Desktop-Shortcuts string, separated by semicolons. For instance, if you want to add web shortcuts to the Firefox icon (you should already have the NewWindow group defined, and it's a long entry so I'm omitting it):

X-Ayatana-Desktop-Shortcuts=NewWindow;Xkcd;Google;AskUbuntu;

[xkcd Shortcut Group]
Name=xkcd
Exec=firefox --new-tab http://www.xkcd.com
TargetEnvironment=Unity

[Google Shortcut Group]
Name=Google
Exec=firefox --new-tab http://www.google.com
TargetEnvironment=Unity

[AskUbuntu Shortcut Group]
Name=AskUbuntu
Exec=firefox --new-tab "http://www.askubuntu.com"
TargetEnvironment=Unity

I don't remember if you have to log out and back in for the changes to work. You might. But otherwise, you should now have some links if you right-click the Firefox icon on your launcher. And obviously, you can use any command in the Exec item.

There are a bunch of community-made launchers here you can adapt:

What Custom Launchers and Unity Quicklists are available?

Have fun! :)


Where can I download drivers for lenovo s10-3?

There is a page in the Ubuntu wiki which has information about any issue's and work arounds Here
Lenovo S10 Ubuntu Wiki

As Javier explained it should work without much tweaking but it is a good Idea to try it out first on a USB key or Wubi to make sure everything will run smoothly.


Wrapping workspaces in Cinnamon environment

So go to system settings > workspaces and activate "Allow cycling through workspaces"

If you don't see that option, you may have to click on the "Switch to Advanced Mode" button on the lower left (the one that says "Switch to Normal Mode" in the screenshot above).


Wifi on 16.04 takes a long time to find known and unknown local networks

First, I suggest that you upgrade the firmware; from the terminal:

wget http://mirrors.kernel.org/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.161_all.deb
sudo dpkg -i linux*.deb

Then set your regulatory domain explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

gksudo gedit /etc/default/crda

Use nano or kate or leafpad if you don't have the text editor gedit.

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

Reboot and let us know if connectivity is improved.


Looks like a bug in whatever is responsible for listing available frequencies.

I clearly remember that I did not have 5GHz with this exact BCM4313 (14e4:4727) but today we were testing 5GHz and I noticed it was listed as available. But in the official list here it's listed as supporting 2.4GHz only:

4313 2.4 Ghz        0x14e4  0x4727


Offline installation of addtional drivers , how to determine correct pakage

Your graphics card is not supported with the latest version of the Nvidia drivers, you need to install the legacy drivers called nvidia-173 from the restricted repository.

To get a list of packages and dependencies necessary to install the drivers you can use this command to get that list saved to a .txtfile (source), don't worry, it will not install naything in your system:

sudo apt-get --print-uris --yes --reinstall install nvidia-173 | grep ^\' | cut -d\' -f2 > nvidia-173.txt

After you have the list and checked the .txt file you can then download the packages with wget or any other downloader tool of your choice:

wget --input-file nvidia-173.txt

this will read each line in the nvidia-173.txt file and download it to you current directory.

After you saved the files in a USB drive or any other removable media you can then just go to your other computer, change directory to where you saved the files and use sudo dpkg -i *.deb to install them.


Will the switch to Wayland fix not being able to paste from closed windows?

Well, I don't think it's a bug as such, it's rather a feature which has some unintended consequences :) Moreover, my understanding is that other "clipboard managers", i.e. in Windows and MacOS X, work in a very similar way - when Copy operation is performed, the application just notifies the clipboard manager - "hey, I've got something" without passing the actual data (although in the above mentioned OSes an application can physically store data in the clipboard - XWindow leaves this to a "clipboard manager", which is a separate application).

The reason for this will become clear if you consider that the data copied often needs to be converted from one format to another before being pasted. Example: you're copying a text frame from a publishing program and paste it into the same program - the result preserves the text frame size, borders, transformations etc. Then you paste the same thing into a text processor - the result is some text with rich formatting but obviously the text frame properties are lost because the text processor knows nothing about this. Then you paste the same thing into a text editor - the result is just plain text without any formatting.

Now, how does it work? How does proprietary data format of the publishing program is getting converted to something which the text processor understands or just to plain text? Obviously, the conversion can't be done by the X server because it knows nothing about all the possible data formats, also, the receiving application can't do the conversion for the same reason.

My understanding of the process is that when something is copied, the application notifes the clipboard manager about the formats in which it can provide the data: "hey, I've got something which I can convert to my-proprietary-format, rich text or plain text".

Other application then checks if there's anything in the clipboard in a format which it understands:

if (clipboad.contains_data_in_formats("image", "rich text", "plain text")) {
    enable_Paste_menu_item();
}

Then, when Paste action is selected, the end result is that the source application is asked to provide the data in the required format.

When the application is exiting, the standard says it can save the data in the clipboard manager:

If a client needs to exit while owning the CLIPBOARD selection,
it should request the clipboard manager to take over the ownership
of the clipboard, using the SAVE_TARGETS mechanism. If there is no
clipboard manager, or if the SAVE_TARGETS conversion fails, the
application should simply exit.

So, my understanding is, it's responsibility of the application to save the data. As such, it's probably unlikely Wayland will improve anything in this respect :)


Toshiba Satellite L745D - internal mic not working

Upon further research, people with Windows 7 have also been experiencing this bug also with the default install; I reinstalled Windows 7 and used the default sound card drivers instead of the official Conexant drivers and that's why I think my mic worked in Windows 7.

If you have 'Fast Boot' enabled in the BIOS Ubuntu will not recognize the microphone. Here is my ALSA information after I switched back to 'Normal Boot':

http://www.alsa-project.org/db/?f=0e81ce3afc0effc162ae19c608137bd5969a0f44

And the good news is that my internal microphone is now working, but I had to reinstall Ubuntu to get my microphone working unfortunately.


How can I add PlayOnLinux programs in the Unity dash?

When you install applications with PlayOnLinux, there is an option to add the a launcher (Desktop file) to the menu. This will create application launcher in ~/.local/share/applications, which means that the launcher will show up in the Unity Dash.

If this does not work, you can choose the option to place a launcher on the Desktop, and then manually move it to this folder.

Now, keep in mind that Unity does not always pick up when a launcher is added to this folder, so in order for the launcher to show up, you must either log out and log back in, or restart Unity.

To restart Unity, run unity in the run dialogue (press alt+f2 to get the run dialogue).


Why do dpkg and aptitude want to remove MOST of my system?

(OP solved issue)

I disabled multiarch, and aptitude thought it could work things out. Despite telling me that it was going to KEEP 832 packages, it started deleting them all. I'll just re-install.


In Nautilus right click the .crt (certificate file) and select Properties and click the Open With tab. Click the Reset button.

The application used to view it will be reset to what Nautilus calls "View file".


Ubuntu 20.04 with ZFS Rpool have hundreds of Cloned filesystems

This is not ubuntu but probably you have docker installed which is creating them for you. You should remove the zfs integration (unsure what this brings up by default, their wiki page doesn’t really list the benefits: https://docs.docker.com/storage/storagedriver/zfs-driver/). A fix of the default ubuntu docker package in the repo in a couple of weeks will create rpool/var/lib/docker so that they are created there, as persistent datasets. (rpool/var and rpool/var/lib will have canmount=off).

If you remove your containers, from my tests, with docker rm (including stopped ones), they will be deleted.

Please file bugs on docker itself so that this is tunable by the user and that they explain what benefits this brings (also changing their default distribution to have a persistent rpool/var/lib).

More info on https://github.com/ubuntu/zsys/issues/102.


which version have better support to use in integrated services router, Ubuntu 12.04 or 13.04?

If you really want to stick to Ubuntu for this, I recommend you use only the LTS version as @Warren Hill mentioned in his comment. You can use the minimal installation and dump all the heavy stuff along the way (minimal installation contains only the core system and downloads additional packages on the go by user's request) thus keeping it small and fast.

OpenWRT is a really great peace of software and you should at least give it a try.


Is there a CIL (Mono) library for using the Messaging Menu?


Problem with Wireless Network (broadcom 802.11 b/g bcm4312) on Ubuntu 14.04

I believe you have the incorrect driver for your device. Please hook up the ethernet temporarily, open a terminal and do:

sudo apt-get purge bcmwl-kernel-source
sudo apt-get install firmware-b43-installer

Detach the ethernet, reboot and let us hear the result.


What is the purpose of "Libvirt qemu" user?

It's created by libvirt-bin:

$ grep libvirt-qemu /var/lib/dpkg/info/*.postinst
/var/lib/dpkg/info/libvirt-bin.postinst:# Allocated UID and GID for libvirt-qemu
/var/lib/dpkg/info/libvirt-bin.postinst:    if ! getent passwd libvirt-qemu >/dev/null; then
/var/lib/dpkg/info/libvirt-bin.postinst:            libvirt-qemu
/var/lib/dpkg/info/libvirt-bin.postinst:                chown libvirt-qemu:kvm "${dir}"
/var/lib/dpkg/info/libvirt-bin.postinst:    chown libvirt-qemu:kvm /var/lib/libvirt/qemu/channel/target

And it's a security measure. With services like web servers, mail servers, hypervisors, etc., the service should drop privileges and run as an unprivileged user instead of remaining as root after it has done any necessary initialization. This way, if the service is compromised, the attacker doesn't gain unrestricted root access. For libvirt in particular:

  If QEMU virtual machines from the "system" instance are being run as
  non-root, there will be greater restrictions on what host resources
  the QEMU process will be able to access.


How to access the build-in microphone and camera in wechat running on linux?

Try this:
WeChat Electron. I've built this. It's a debian package.


I used top to see the open processes and yes, there was a gnome-tweaks running.

So I used killall gnome-tweaks to close it, it did work and I now have my gnome-tweaks back


Are there any goals for the update manager behavior with Unity?

I think there are, according to this blueprint: https://blueprints.launchpad.net/ubuntu/+spec/packageselection-foundations-n-update-notifier-refactor
It's details are however, at least for me, mysterious.


php5-fpm incomplete install - no config file

From the OP:

Looking for more config files I've finally found the one that allows me to set the right parameters. It is
/etc/php5/fpm/pool.d/www.conf

There you can find most of the parameters needed to restart PHP-FPM with the settings anyone can need. I've tested it and after the edition of the file the service runs according to the new parameters.


Failed to load module "pk-gtk-module" in host centos while ssh to ubuntu

You may try:

sudo apt-get install packagekit-gtk3-module

This fixed it for me on Ubuntu server 14.04.


Seems like you might be missing a font-package. For example, in ubuntu-minimal, I do not have any extra packages so the terminal font overlaps each other. I used sudo apt-get install ttf-ancient-fonts and that did the trick for the terminal. This may also work for firefox, if not, try other font families. These font packages can be found here

Hope this helps.


Java run time error reported on running an application using Contiki_OS in Linux

Unless you have written JNI modules, getting a SIGSEGV is a bug, so you have to update your Java runtime.

You appear to be running the official openjdk from Ubuntu 16.04, so I doubt it will be updated (it almost the last update to OpenJDK8 anyway), given that 16.04 is EOL. OpenJDK 8 is also in its last year (supports ends in December 2020).

You best bet right now it to replace JDK8 with JDK9 which is also available in 16.04, (both should coexist on the same system, see the alternatives command). You could have your problem fixed in 10 minutes or so.

This said even Java9 is getting ancient, if you have to change versions you can get something more modern...


How to narrow down what is taking 100% CPU on alternating cores

Using htop you can

sort by CPU usage with P
follow the process with F
Switch to Tree view with t / F5


is it possible to execute SCP/RCP/SFTP from linux server to Windows Desktop?

Your method works ONLY if you have a ssh daemon or service running on your windows machine. Since Windows does not have that by default it is a lot easier to use a client to connect to your server (winscp, ssh, telnet from windows to linux).


Run this command:

sudo apt-get install ocl-icd-opencl-dev

That solved it for me on Windows 10's bash (with Ubuntu 14). Was getting the same error.


Before running the batch operation, first make sure the command you're going to use actually works. If so, with the command above as your example you can apply the same command to all of *.mkv files within directory with this command.

for file in *.mkv; do ffmpeg -i $file -c copy "${file%.*}-fixed.${file##*.}"; done

The command will be applied to each file which has mkv extension and the output will have fixed appended to the name.


You have 17GB available to your Wubi install. This should be enough to use Wubi because you can always store your personal data on the Windows /host. This is recommended anyway because:

It's safer on the /host - not stored in a virtual drive that is a single file (root.disk) that is subject to corruption if Ubuntu freezes and you could lose everything on it.
You have plenty of room on /host
Most of the type of data that takes space e.g. photos, music, video, you'd want available to Windows and it's not easily available if it's stuck on the root.disk (without a tool like ext2read)

The only reason you might need more space is if you're compiling kernels or other software.

You could also consider what your needs are. If you want a robust long term Ubuntu install, Wubi probably isn't it.

Other ways to make space:

Remove all but the last two kernels. You can use this script for that: clean_kernel.sh. Just download it with wget https://raw.github.com/bcbc/utilities/master/clean_kernel.sh and run bash clean_kernel.sh
Clean up unneeded packages: sudo apt-get autoremove && sudo apt-get autoclean
Look for other junk by running the disk usage analyzer (baobab). Go to settings before running and uncheck the /host or it will search the whole Windows partition. Look for large files in /home you can delete or move to host

Of course you can resize the Wubi install, but - as mentioned - a normal dual boot is better for long term.


Go to Software Center, click on the Edit Menu, and then Software Sources. Makes sure you have the "Main Server" selected as your "Download from:" location.

Then open a terminal and run

sudo apt-get update

sudo apt-get upgrade

That should get rid of the error. If you still experience it you may have added PPAs that are no longer available. In that case select the "Other Software" tab in the Software Sources dialog, and uncheck all of them. You can then recheck them one by one and see if sudo apt-get update causes any errors.


Ethernet/Broadband Internet on Ubuntu (12.04.3 LTS) ?

You need to setup the DSL Connection where you can set username and password to login.

Open Network connections and then choose Edit Connections.

Then choose Add and choose DSL Connection. There give your username and password.I am giving you some images so that you can have some idea about what you have to do ( I have taken these in my Xubuntu)


Bash script if condition not working when called from Jenkins Pipeline

You are running sh -x ETL_AUTOMATION/Scripts/export.sh. This means that export.sh is being run by sh and not bash. On Ubuntu, sh is a simple POSIX shell called dash and that doesn't support the [[ construct, which is a bash thing. So just change your script so that it is launched with bash instead of sh. I don't know the Jenkins syntax at all, but I suspect you want one of these:

sshagent([sshCredentials]) {
    sh '''
        ETL_AUTOMATION/Scripts/export.sh
        '''

or, if your export.sh isn't executable:

sshagent([sshCredentials]) {
    sh '''
        bash ETL_AUTOMATION/Scripts/export.sh
        '''

Or, perhaps simply:

sshagent([sshCredentials]) {
    bash '''
        ETL_AUTOMATION/Scripts/export.sh
        '''

Alternatively, you can change export.sh so it doesn't use bash-only features:

if [ -z $SOURCE_FOLDER ]; then
    echo "SOURCE_FOLDER not specified... exiting"
    exit 1
fi


Switching terminal with Ctrl+Alt+F1 doesn't work

I have the same issue, and the fix was.. surprising? It turns out my keyboard was not compatible with 12.04 for some reason, swapping keyboards resolved the issue.


how can I upgrade to 15.04 if the required 'Saucy' dir does not exist

Use the main server, eg: deb http://archive.ubuntu.com/ubuntu saucy universe.

Open a terminal and run this command:

sudo sed -i 's://us\.://:g' /etc/apt/sources.list
sudo apt-get update


How to increase the spacing between items in the left sidebar of Nemo file manager?

Yes, you can increase that spacing by adding 2 line of code to the gtk.css file. Here is how you can proceed:

1. Copy your current theme to ~/.themes and rename it:

If, for example, you use the Yaru theme, issue the following command in terminal to copy it from /usr/share/themes to ~/.themes and rename the folder to Yaru-2

cp -r /usr/share/themes/Yaru ~/.themes/Yaru-2

(Skip this step if you already put your theme in ~/.themes)

2. Create a nemo.css file:

Open your favorite text editor (e.g. gedit) and paste the following contents into it:

.sidebar .cell {
padding: 2px; }

Save the file with the name nemo.css

(These 2 lines essentially add more spacing to items in the side bar. 2px seems pretty reasonable according to my experiment, but of course you can increase or decrease it however you want, just don't leave it 0px)

3. Add the nemo.css file to gtk.css file:

Go to ~/.themes/Yaru-2/gtk-3.0
Create a new folder named apps
Put the nemo.css file created earlier into this folder
Open the gtk.css file in ~/.themes/Yaru-2/gtk-3.0/ with your text editor
Add this line to the end of the file and save it:

@import url("apps/nemo.css");

(If there's a folder named gtk-3.20 in ~/.themes/Yaru-2/ then you also have to repeat this step for that folder)

4. Reset your theme:

gsettings set org.gnome.desktop.interface gtk-theme "Yaru-2"
gsettings set org.gnome.desktop.wm.preferences theme "Yaru-2"

or use gnome-tweak-tool or unity-tweak-tool.

Note: Sometimes the change won't take effect immediately even after you reset the theme. In that case, reset your icon theme (choose a different one and re-choose your favorite icon theme) can fix the problem.

Based on the answers from this post and this post.


How to remove python 2.7.15rc1 in Ubuntu 18.04

You need to define the two different python versions

sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2

Then you need to choose which version should be defined as default

sudo update-alternatives --set python /usr/bin/python3.6


getting rid of kubuntu while keeping ubuntu

Login to Ubuntu, start gparted and remove partition(s) with Kubuntu.

Then run sudo update-grub.

If your grub.cfg was on the removed partition, this can be easily fixed.

https://askubuntu.com/a/88432/167850


gnome-control-center removed together with totem

gnome-control-center depends on libgrilo-0.3-0, which depends on libtotem-plparser18, and your output clearly states:

Note, selecting 'libtotem-plparser18' for regex 'totem.*'


This has the fix to your problem  http://neopatel.blogspot.com/2012/10/ubuntu-1204-toshiba-satellite-l875d.html  you have to modify the grub and add some more lines to kernel startup as described here.

  Open a terminal and enter

sudo vi /etc/default/grub

  and then change the line GRUB_CMDLINE_LINUX="" to
  GRUB_CMDLINE_LINUX="i8042.nomux=1 i8042.reset"

  then run

sudo update-grub

Also in order to do this you have to either boot in recovery mode or use an external USB keyboard.


As @andrewsomething pointed out in the comments above, the solution lies in this thread: How do I reset my Unity configuration

You can start terminal (by logging into Ubuntu Classic) and type the following:

unity --reset

Then restart and its done, back to where you left it earlier.

If there is also a need to remove all custom favorites from the launcher, one can type:

unity --reset-icons


Change the value of root@example with Ubuntu

No, it is not the hostname but the name of the computer/pc which you have assigned and to change it

1) Go to settings

2) Then go to details (last option)

3) You can see the version of your ubuntu as well as the configuration of your system. There is an option called Device name (which must be set to example) change the 'example' with whatever name you want to choose then close the settings tab and open a terminal to check if the name has been changed successfully.


By uninstalling indicator-appmenu appmenu-gtk, appmenu-gtk3 and appmenu-qtyou brought your system back to where a menu bar is a menu bar and a title bar is a title bar and global menus don't exist.  This also means that any functionality went with the components removed.  Thus Mohamed's advice. To keep the hover over effect leave (or reinstall) indicator-appmenu appmenu-gtk, appmenu-gtk3 and appmenu-qtand in the System Settings go to Appearance -> Behavior -> and click show menus for a window (in the window's title bar).


You need to select file => save as => select type by file extension => jpg or any other extension you want


Why does cron.hourly not care about the existence of anacron?

anacron is running on a daily basis. It is not built to let jobs run on a hourly basis, so it is useless to test for anacron when an hourly job is started. To quote anacron(8):

  Anacron  can  be  used to execute commands periodically, with a
  frequency specified in days.  Unlike cron(8), it does not assume that
  the machine is running continuously.  Hence, it can be used on
  machines that aren't running 24 hours a day, to control daily, weekly,
  and  monthly  jobs  that  are usually controlled by cron.

The other regularly executed jobs should only be executed by cron, when anacron is not installed.


EFI - GPT dual-boot quantal AMD64 - impossible boot windows 7

This is what you need, Boot-Repair will fix it for you


Gparted - How to move partition to extend the size

Boot a live system (for example boot from a usb stick).
Resize sda2 all the way to the right.
Move sda5 all the way to the right inside sda2.
Resize sda2 from the left to the right.
Resize sda1 all the way to the beginning of sda2.

Apply after each single step in this case. Changing size on the right hand side will go fast, changing size on the left hand side will take way more time.

Make sure to have a backup. If you don't have one, the closest point in time is always the best point in time to make one. Especially when changing partitions.

You can make one within the live sessions or you can use the opportunity of being in a live session to copy your entire HDD to an external HDD. Do the latter one only if you have a lot of storage space on your external HDD. You can use this command:

dd if=/dev/sda bs=8M | gzip -9 > /yourExternalHddMountPoint/folder/image.gz

9 is the best compression. A lower number will make the process faster but will take more storage space on your external HDD.

If you choose to copy your HDD rather than backing up you files, you can always take the entire HDD back to the previous state with this command (in a live session, of course):

cat /yourExternalHddMountPoint/folder/image.gz | gunzip -d -c | dd of=/dev/sda bs=8M


Custom keyboard layouts: adding a character for which no keysym is defined

Yeah, it is possible to use the Unicode code directly in xkb keyboard layout definition files in /usr/share/X11/xkb/symbols/ or to use with keysym using this format U#### or 0x100####.

Example:

key <AD04> { [        r, R,           U200F,        U200E           ] };

Or to define new keysym:

xmodmap -e "keysym RLM = U200F"

For permanent keysym, add to  ~/.xmodmap file:

keysym RLM = U200F

References:

Custom xkb layout in which one key creates two Unicode code points
FOSS Localization/Annex B: Technical Aspects
Creating and Compiling Custom Keymaps for Linux


video.js won't playback in Firefox, video/mp4" is not supported warning

Install using the following resolve the playback issue:

sudo apt-get install ubuntu-restricted-extras

However, I'
m just wondering why is that Chrome has everything working out of the box while Firefox needs to install additional 170MB of extra files?


How do you know if you can add 64 bit version of Lubuntu?

Intel Pentium M is a family of 32-bit processors, see Pentium M on Wikipedia.

So you cannot install Lubuntu 64-bit.


Not allowed. One cannot use apt more than once at the same time. You can, however, use use it like this -> sudo apt-get update && apt-get upgrade

This way both update and upgrade will work.


How not to mess up a system, yet keep it clean?

Basically, your going about this all wrong. In you example, a failed lamp install could have just been fixed with sudo apt-get -f install  Same thing with JDE. sudo apt-get remove name-of-package-here works for everything you installed via apt. If you installed via dpkg then sudo dpkg --remove package-name-here.

Missing or incorrect configuration can cause X (the GUI system) to not start. Usually you fix this is just a matter of removing /etc/X11/xorg.conf and then sudo restart lightdm. If that doesn't work you may need to re-configure your drivers. How you do that depends on your hardware and setup.

Removing repositories is dangerous. It's fine to do it. But when you install something via apt you install all it's dependencies. By removing a repository you could be removing more then the repository for just one package. apt will leave the old debs installed (from the disabled repo) but they will be "orphaned", meaning they will never get updates again (unless there in another repo). This is even more problematic if your using a "nightly" repo that supplies dependencies that are shared by many repos. apt will always use the "latest" version, but that version is in a repo that no longer exists.

Re-installing is silly. You should NEVER have to re-install Ubuntu, short of a hard drive failure, or partitioning mix up.

For backups: I recommend back-in-time. It's very easy to use.  You should backup your $HOME directory and probably /etc/. Don't even bother backing up the rest. The only exception would be if you put files in an odd location.

One other side note. Won't load, is not that helpful. I am assuming, by your questions that X is not loading. The console is fully functional and can be used to fix problems with X not loading in very short order.

Stick with it. Once the learning curve is over, Linux is very easy to use and maintain.


How to install Ubuntu with only the required driver for my hardware

Maybe you were dreaming, or maybe you read something about compiling a custom kernel, which gives you thousands of options of what you may include or exclude.

This is Ubuntu's documentation for compiling your own kernel: https://help.ubuntu.com/community/Kernel/Compile

The problem with this is you'll be solely responsible for its stability and maintenance; it will not be an official Ubuntu-provided kernel - and it's a fair bit of work.  You don't get much gain in terms of disk space, and you lose a lot in terms of incompatibility with certain hardware.

Ubuntu does provide some different flavours of pre-built kernel.  Where the normal one is linux-image-generic one other they provide is linux-image-virtual which has a much reduced set of device drivers, intended for running as a guest in a VM (the drivers included should provide support across the major platforms: Qemu/KVM, Xen, etc).


You need brace expansion in place of [11-19]

ls C_Programming_Language_split_0{11..19}.html

or

ls C_Programming_Language_split_{011..019}.html

[11-19] is a glob expression that matches a single character 1, or a character from the range from 1 to 1, or 9 (so either 1 or 9).


Maybe a stupid answer but I had an issue where my nm did not see any wireless networks. I found it was simply my wireless hardware was not on, the laptop hotkey for enabling the wireless card was not operating properly. Once I sorted that the wireless in nm appeared.

If you boot using a live CD does Ubuntu hardware manager see you wireless card and offer a driver?


Getting a "*** [all] Error 2" error when executing make

I just downloaded the rtlwifi_new-master.zip from here and did a make, and it all worked fine.

I suspect that you might not have read the README.md file where it calls out some pre-requisite apps, so do...

sudo apt-get install linux-headers-generic build-essential git dkms

Also note that this is a dkms driver, so the proper way to install it is to install dkms, then do...

sudo cp {the source code folder} to /usr/src
sudo dkms add...
sudo dkms build...
sudo dkms install...
dkms status

type man dkms for help.


How to run a script in terminal when doubleclicked

Not literally what you asked for, still an elegant option I believe:

Add a right-click option to run a selected script in terminal

Create a small script:

#!/bin/bash
gnome-terminal -e $1

Save it as run_interminal.sh in ~/.local/share/nautilus/scripts. Create the directory if it doesn't exist.
Make the script executable.
Log out and back in.

That's it. Select a script and choose Scripts --> runinterminal.sh:

Alternatively; drag/drop- run in terminal

Drag an (executable) script over a launcher to have it run in the terminal:

Copy the code below into an empty file and save it on your desktop as run_script.desktop

[Desktop Entry]
Name=Run Script
Type=Application
Exec=gnome-terminal -e %u
Terminal=true

Make it executable

That's it. Now when dragging an executable script on to the icon, it will run in (gnome-) terminal.

Important note

As mentioned, the script run_interminal.sh needs to be executable to appear in the menu.
As it is, the script to run also needs to be executable. run_interminal.sh can easily be set to automatically make the targeted script executable or call an interpreter. If that is needed, please mention.


I can't answer your question directly but can provide you with a method of checking.  When I write a program for deployment I create various virtual machines with minimum installations to see how it behaves in those environments.

You can create a VirtualBox machine without the qt or OpenCV libraries to see how your project behaves, then explore methods to provide what is needed in your distribution package to work on various machines.


This is a binary (compiled and linked executable) file. If you want to extract the strings in the executable code (e.g., messages, initialized variables etc.) You can use:

strings init | less

For more information look at:

man strings


No sound on imac g5 (2005), running ubuntu mate 15.10

I managed to get the sound to work on a PowerMac G5 with Ubuntu MATE 16.04. Start by listing all the modules related to sound with lsmod | grep snd. It shall contain all these

snd-powermac
snd-aoa
snd-aoa-fabric-layout
snd-aoa-soundbus
snd-aoa-i2sbus
snd-aoa-codec-tas

If it doesn't then that might be the reason why your sound doesn't work. You can modprobe these into the live session. Type:

$ sudo modprobe snd-powermac
$ sudo modprobe snd-aoa
$ sudo modprobe snd-aoa-fabric-layout
$ sudo modprobe snd-aoa-soundbus
$ sudo modprobe snd-aoa-i2sbus
$ sudo modprobe snd-aoa-codec-tas

Now check and see if the sound works. If it does then we have to put these into /etc/modules so they load at startup. Open /etc/modules in your favorite text editor and add:

snd-powermac
snd-aoa
snd-aoa-fabric-layout
snd-aoa-soundbus
snd-aoa-i2sbus
snd-aoa-codec-tas

Restart the computer to insure that modules are indeed loaded on boot. In case it doesn't then you might have blacklisted them somewhere. You can find the file containing the text "i2sbus" with sudo grep -rnw '/etc' -e "i2sbus".


Login slow after changing settings - how to reset.

If they were Unity related changes (i.e. you used "ccsm") then you can run a command to reset unity to its default settings: Press Alt+F2 to open the "Run command" dialog, and enter the following:

unity --reset

WARNING: This will reset ALL your unity related changes, including launcher icon size and panel transparency (from my experience almost all compiz settings are reset). This is a rather delicate command and should be used only when truly necessary.

If you were using dconf-editor then there is an option to reset to default. Again, use this with caution, because what dconf-editorconsiders default settings may not necessarily be Ubuntu's default settings.

If you were editing a particular application's settings, you can remove it along with all its config files using the command:

sudo apt-get --purge remove NAME-OF-APP

Overall, you're best bet is to simply remember exactly what you were tweaking, and reverse only those changes.


How to access my saved files on a persistent LiveUSB?

filesystem.squashfs is mounted read only. The files you have modified/created are written to casper-rw. Mount it with:

mkdir /tmp/casper
sudo mount -o loop /path/to/casper-rw /tmp/casper


Custom share permission to users in a samba file server

There is a simple guide for samba server:

https://help.ubuntu.com/community/Samba/SambaServerGuide#File_Sharing_.28Advanced.29


Using sudo gives me the error: Sorry, try again

The problem is your sudo package.
You will surely have to remove the sudo package and reinstall it using the synaptic package manager.
Hope this can be helpful for you.

NB: Corrected using OP's comment.


You have a copy of your /etc/samba/smb.conf file in /usr/share/samba/smb.conf. So create the /etc/samba directory manually using

sudo mkdir -p /etc/samba

and then copy the required file using:

sudo cp /usr/share/samba/smb.conf /etc/samba

(Source)


This bugreport suggests to do the following:

 sudo apt-get install --reinstall libgtkmm-2.4-1c2a

Please try this and see if it fixes your problem

Also, please don't run the inkscape command with sudo :)


how to remove two forward slashes in a comment with sed

First of all, I'd recommend to avoid the use of -i as it will replace the files in-place without confirmation.

This is a working version of what you were trying to accomplish and outputs to the standard output (the terminal):

sed 's#^//[ \t]test$#test#g' file.conf
aaa
bbb
ccc
test
ddd
test

Optionally pipe it through less by appending | less to be able to paginate through large amounts of output.

The above is all very specific to the sequence of test, so to more generalize, you can try this:

sed 's#^//\s\(.*\)$#\1#g' file.conf

It will remove the // part and any whitespace until the actual text, whatever this text is.

If you like the result, you can add the -i flag again to replace the file.

To tell more about your attempt and explain why my example does work:

sed -i `s#^//[ \t]test#test#g'

You are using a backtick (`) which is interpreted by your shell rather than Sed. A simple single quote (') should have been used here probably.
The hashes (#) are your chosen delimiter, a good alternative to the common forward slash (/) as your match is about this same character and this avoids the need for escaping.
The pattern in the command s/regexp/replacement/ is a standard one as mentioned in the manpage, among many others: man 1 sed:

  s/regexp/replacement/

  Attempt to match regexp against the pattern
  space. If successful, replace that portion matched with replacement.
  The replacement may contain the special character & to refer to that
  portion of the pattern space which matched, and the special escapes
  \1 through \9 to refer to the corresponding matching
  sub-expressions in the regexp.

rexexp in the above is a commonly used abbreviation for regular expressions.
The regular expression ^//[ \t]test$ matches lines starting (^) with two forward slashes, followed by a space or a tab character, followed by the exact sequence test and a line ending ($).
The g flag is to do this operation in a global way as explained here.
An input file is missing and should be given after the Sed-command.


Is Disk Utility encryption the same as dm-crypt?

Yes.
gnome-disc-utility (or palimpsest as it was once named) uses Linux Unified Key Setup  which is a disk encryption specification. It is an enhanced version of cryptsetup, using dm-crypt as the disk encryption backend. From the 1st link:

Linux Unified Key Setup (LUKS)
Cryptsetup is a utility used to conveniently setup disk encryption based on dm-crypt kernel module. These include plain dm-crypt volumes, LUKS volumes, loop-AES and TrueCrypt compatible format. Project also includes veritysetup utility used to conveniently setup dm-verity block integrity checking kernel module.
LUKS Design
LUKS is the standard for Linux hard disk encryption. By providing a standard on-disk-format, it does not only facilitate compatibility among distributions, but also provides secure management of multiple user passwords. In contrast to existing solution, LUKS stores all setup necessary setup information in the partition header, enabling the user to transport or migrate his data seamlessly.
LUKS was designed according to TKS1, a template design developed in TKS1 for secure key setup. LUKS closely reassembles the structure recommended in the TKS1 paper, but also adds meta data for cipher setup management and LUKS also supports for multiple keys/passphrases.

More detail in this topic on security stack exchange.


Error while running a 'glance image-create' command. "publicURL endpoint for image not found"

I fixed the problem, by hashing out identity_uri like this :

[keystone_authtoken]
auth_host = controller
auth_port = 35357
auth_protocol = http
auth_uri = http://controller:5000/v2.0
#identity_uri = http://controller:35357
admin_tenant_name = service
admin_user = nova
admin_password = openstack


Is there a way to mount Google account folders automatically at startup?

Open "online accounts", "google", insert mail and password. Your file manager will mount the email addresses so you can directly, manually copy files. Mounting is done automatically on boot but can be a bit slow: it can only be done after the network is up and connecting will always take a little bit of time too.

There is software in the repositories that is called open drive and it will automatically sync for you. This will automate copying files to google drive and from google drive.

edit: one thing I can not check is doing this with more than one mail address. I assume it is just a repeat setting this up :-)


sublime text (3200) not allowing git commit ,how to resolve sublime text git commit issue?

If an editor is set in the git config git commit called without -m or -F will try to open this editor for you to provide a commit message, which is failing in your case. You can either only commit providing a commit message

git commit -m "my commit message"

or change the configuration, e.g. remove the editor lines with

git config --unset-all core.editor

or correct the setting with:

git config --global core.editor "subl -n -w"

Further reading:

How can I fix git commit error “Waiting for your editor to close the file…” with VS Code?
Associating text editors with Git


spaceFM: Why do deleted files not get sent to the trash bin?

I'd like the files to be moved to trash when deleted. But SpaceFM, as I see, doesn't offer this option. So I have created a custom command in the right menu as follow.

Right click for any files. Then right click on any item of the right menu.
A new menu will appear. Click "New > Command"
A new window will appear asking a name for new command.
I entered "Move to Trash" and pressed OK
A new window appeared asking for the custom command.
I entered the following command:

zenity --list --width=400 --height=150 --title='Confirmation' --text='Are you sure you want to move the following files to trash?' --column='Path' %F; (( $? == 0 )) && trash %F

That's it.

By the way I wanted to hide the built-in "Delete" option from the right context menu. I couldn't remove the built-in command. But in the properties of the menu item, I found "Context" tab which is offers rules when to appear and when disappear.
I created a new rule something like "show" when "filename ends with .xyz".
So the built-in "Delete" commands start to appear only on ".xyz" files. :)

Hope it helps.

Original post: https://mim.mbirgin.com/?c=posts&id=103


Lenovo G580 Wireless/bluetooth function key problem

You can turn the software switch back on by executing the following command in a terminal:

rfkill unblock all


Installing Novell iPrint Client on Ubuntu

Novell provides a .rpm file for SUSE Linux. We can use this in Ubuntu too.

First, download the latest .rpm file. As of December 2016, this corresponds to SUSE 11. Notice that the file is provided by Novell to your organisation, as it is closed-source, commercial software. Ask your IT manager in case you cannot get access to it.
We need to convert it to a .deb file. For this, install alien and then convert:

sudo apt-get install alien
sudo alien -d --scripts /path/to/novell-iprint-xclient.x86_64.rpm

The name of the file might be different for you. This creates in your home folder a .deb file, called something like novell-iprint-xclient-sl_6.503.20111114-7.5_amd64.deb
Install as usual:

sudo dpkg -i novell-iprint-xclient-sl_6.503.20111114-7.5_amd64.deb

Now, we need to run some scripts, that help configure the program (environment variables, etc):

. /opt/novell/iprint/bin/iprint-gnome-init
. /etc/profile.d/novell-iprint.sh

If your user is not on the printing group, it might be necessary to add it:

sudo usermod -aG lpadmin <username>

Now, you need to add the network printer in order for the client to detect it. For this, you need the ipp address of the printer, give to you by the IT team. It should look something like this:

ipp://iprint.myorganisation.domain/ipp/printer_name

With this information, we can add it to the Client. From a terminal, type:

iprntcmd --addprinter ipp://iprint.myorganisation.domain/ipp/printer_name

This should add it successfully. You can see it active in the Client icon which automatically appeared after installing the Client:

Finally, to print, just select the printer when printing from a program (for example, evince), or use the command line:

iprntcmd --printfile ipp://iprint.myorganisation.domain/ipp/printer_name /path/to/file/to/print

(or use -p instead of --printfile).

More information about iprntcmd can be found in the Novell manual, which was also installed locally (man iprntcmn).

Sources: this (obsolete) post plus my own installation attempts.


The problem is that ConnectBot sets $TERM to screen, instead of xterm like most terminal emulators. Because of that, Byobu thinks it's being run inside another Byobu or screen, and doesn't launch.

To solve, go to ConnectBot preferences, and set Emulation Mode to xterm instead of screen.


How to assign two IP Adresses on one ethernet Port?

In order to have multiple network interfaces on one ethernet port you will have to take advantage of VLANs.
In order to have VLANs working, you have to have a network switch that supports this feature. (Managed switch with VLAN tagging features).
To have the same functionality without needing to use VLANs, I would recommend upgrading to a different network card, which supports multiple ethernet interfaces.


Is `dpkg-reconfigure --all` still available in 16.04?

Not equivalent, but probably what you are looking for if you want to be sure, everything is at least somehow configured:

dpkg --configure -a


Steps in installing ubuntu after burning iso image on disc

The basic steps to install Ubuntu from CD are the same for installing any operating system from CD.

For complete step-by-step instructions on how to install Ubuntu, visit the Ubuntu installation guide.

Furthermore you can at the boot from CD Website.


Sendmail down on Ubuntu 12.04, SSL problem?

The procedure of adding a dhparams file and pointing sendmail at it worked for me. I was getting the "dh keys too small" on a recently updated sendmail client, and it was the server it was sending to that needed the dhparams fix applied. Forunately in my case, the server was under my own control.

I'm a bit concerned that sites that are getting these errors will have to turn off TLS as you have (or revert the openssl update). This is definitely not in the spirit of what they were trying to do (make DH stronger)!