Gparted LiveCD ISO breaks Ubuntu 14.04.4 desktop resolution in Vmware Fusion 7.1.3

Instead of using the Gparted LiveCD iso to change my Linux partitions, I booted from the Ubuntu 14.04.4 install iso selecting the live instance which loaded the familiar Ubuntu desktop. This made the difference that resolved my Ubuntu desktop resolution issue.
Once I got to the Ubuntu desktop and opened the Gparted GUI app, I first turned the swap partition OFF to UNLOCK the partitions and I performed the changes I wanted to make.
I applied the changes I made, closed Gparted and shutdown Ubuntu.
In the VM settings options, I changed the startup disk back to the VM hard drive and restarted the Ubuntu VM.
Voila! Once I logged in to the desktop, I was able to adequately resize the resolution of the Ubuntu VM desktop by stretching the window with the mouse or by changing to a familiar high resolution in Ubuntu display settings.
"xrandr" command line output in a terminal window displayed the same resolution values as before making my changes with Gparted. xrandr did not if I used the Gparted Live iso.
NOTE: I copied the VM file and renamed it as a backup before making changes with Gparted to the original VM. I do this frequently, even when updating Ubuntu with a new Linux kernel for instance. Have run into issues even with that process in the past that would sometimes break something.

Below is a screen shot of what my Ubuntu desktop looked like after using the Ubuntu install iso to expand my primary Linux partition. The Ubuntu install iso contains the Gparted app which can be launched after the image boots to the desktop. Select "Try Ubuntu" so a live instance of Ubuntu is booted up. Notice the desktop is higher in resolution and display settings exhibit the full range of resolutions to choose from.


How to install Bang and Olufsen Audio drivers for HP laptop?

Here's the fix that I found while googling for the issue. I too had the same issue regarding crackling sound from the left headphone speaker. The problem is related to Realtek's ALC 295 Audio Device.

Firstly install alsa and alsa-tools package :

sudo apt-get install -y alsa alsa-tools

Next, execute the following commands, copy pasting the whole code-block at once into bash (For newbies, we are essentially creating a bash script to make the necessary changes and then we'll execute the script every time our system wakes up from suspend or boots.) :

printf '#!/bin/bash
hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x67
hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x3000
' > sound-script.sh
sudo chmod +x ./sound-script.sh && sudo ./sound-script.sh

Once, the above commands are executed successfully, check the sound. You may check it here for both the speakers :
http://www.audiocheck.net/audiotests_stereo.php

If it resolves the issue, we are good to go. Now we want to make the script run everytime our system wakes up from suspend or boots. Execute the following commands :

##Make the script run on wakeup from suspend.
sudo mv ./sound-script.sh /lib/systemd/system-sleep/

Now, add the following line after doing sudo crontab -e

sudo crontab -e

Paste this line in the file :
    @reboot /lib/systemd/system-sleep/sound-script.sh

And save the file and exit the editor. You can check if the cron job was successfully created or not by doing sudo crontab -l which returns a list of user-specified cron jobs.

Hope it helps. Thanks!

Source: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1648183


react-native watchman error, after npm start on Ubuntu 17.10.

Try these two commands

`watchman watch-del-all`
`watchman shutdown-server`


ATI Radeon: nomodeset kernel parameter  is necessary since I upgraded to kernel 2.6.38

I've been helped by the Ubuntu kernel team and it seems that the new kernel 2.6.39 solves this issue.


Blurred desktop with Nouveau drivers for nVidia GPU at lower resolution

OP has resolved the issue themselves by uninstalling nvidia driver

  Well, I've falled back graphics drivers to Nouveau after uninstalling
  nVidia. The Desktop is no longer looking blurred, but GNOME shell
  animations are occasionally sloppy. Someone who's moderating AU, is
  free to close this question though my problem is not fixed completely
  with nVidia proprietary drivers


Cannot connect after upgrade from Ubuntu 13.04 to 13.10

Check whether you have installed the correct driver for your wireless adapters.
You could get in to the Additional Drivers menu from the settings menu.


Is it possible to have in Lubuntu 12.04 the new Keyboard Layout Handler of 12.10?

It seems that the new application is available as part of a lxpanel 0.5.10 .deb version for 12.04, here.

The 0.5.11 version of LXPanel is available for Precise as deb here - but gives this error while trying to install with gdebi:

But libmenu-cache2 appears available only for Raring 13.04. Installing that in Precise and then the latest LXPanel is possible but it may be safer to stay with LXPanel 0.5.10 in Precise until update from official sources. About that dependency see this question.)


How to get Lubuntu to use generic application names

Are you talking about in a program menu (lxmenu), or shortcuts on a desktop or panel bar? For those you should be able to add new shortcuts with the generic name (or any name) you'd like. Or a "personal" section with just the apps you commonly used, named however you'd prefer (that's what I'd do).

But, since you clarified that "I would like to change all the names to the generic names at once, not do them individually ... Each application has a generic name built-in to its .desktop file" here's an answer to "how to do that."

This uses some command line tools like grep & sed  to search for the "Name=..." part and replace it with the "GernericName=..." part.

NOTE:

You should use a local copy of the .desktop files by placing them in your ~/.local/share/applications/ first, with

cp -R --no-clobber -v /usr/share/applications/ ~/.local/share > ~/cp-applications.log

(this may add more files than you want or need, but it writes a "log" to ~/cp-applications.log of what's been copied to where in case you want to undo it later) but leaving the original's alone, and not overwriting any local files already there. I'm also using sed's -i option to make a backup copy of the files too named *.BAK. And .
If you ever want to go back to the original versions of the .desktop files, you can overwrite the .desktop file with it's .desktop.BAK copy, or with the original from /usr/share/applications/.
If there are other .desktop files you'd like to play with, you could search everywhere for them if you like with find / -type f -name "*.desktop" (piped to less, or a file perhaps) but that will return more than you want.
And if you want the language-specific generic name just edit to hit that one (for example "GenericName[en_GB]=").

This only changes the first occurrence of "Name=" (so it leaves things like Firefox's "Open a New Window" as-is):

#!/bin/bash
targetdir=~/.local/share/applications/

for i in $(grep -l "^GenericName=" "$targetdir"/*.desktop)
do
    echo Hit on $i
    tmphit=$(sed -n 's/^GenericName=//p' "$i")
    echo Generic name is:"$tmphit"
    sed -iBAK "0,/^Name=/s/^Name=.*/Name=$tmphit/g" "$i" || echo "SED FAILED!!!!"
done

There's probably a way to do this with a one-liner in perl or even sed, awk, but "meh".

Feel free to remove the echo's too. And see these answers for more info:

How to use variables in sed command
grep for contents after pattern
How to use sed to replace only the first occurrence in a file

Or if you want to run them from a terminal, just add some links to the real program, under whatever generic name you'd like. Find the program's location with which (often /usr/bin) and link with ln.


2 external monitors on laptop with single HDMI output and Ubuntu 16.04

I found this one that seems to work on an Ubuntu 16 with a single HDMI: StarTech.com USB32HD2 USB to Dual HDMI Adapter. There is at least one purchase stating that it has: "... tested the 4K (USB32HD4K) using the DisplayLink driver found at http://www.displaylink.com/downloads/ubuntu with Ubuntu 16 and it worked like a charm."


Test this:

Put the Ubuntu Usb into the Usb.

Restart your computer.

You should see a welcome screen prompting you to choose your language and giving you the option to try it from the Usb.

After the session live load.

Start the installation.

Select advanced or manual disk partitioning, for to create a custom set of partitions for installing.

On a default installation of Ubuntu 14.04, the installer creates just two partitions; the first for /, the root directory, and the second for Swap.

When creating partitions for installing any desktop Linux distribution, my recommendation is to create the following three partitions:

/, the root directory. The bulk of the programs used for running the system will be installed here and where programs critical for booting the system will reside.

Swap, unformatted disk space for use as virtual memory.

/home, the partition where your home directory will be located. In the course of using the system, files and folders you create will reside in various folders here.

To get to the advanced partitioning tool, select the Something Else option and click Forward.

The target disk is a new one and it has not been initialized, select it and click the New Partition Table button.

Select the free space and click the Add button.

The installer will create the first partition as a primary partition. And that first partition, following the recommendation made earlier, should be mounted at /. The default file system for / on Ubuntu is ext4, it will be /dev/sda1. As more applications are installed on a running system, disk usage will grow, so you want to be very generous here – if you have disk space to spare.

Now that / has been created, select the free space and click on Add to create other partitions.

Note that this step will have to be repeated for all other partitions.

The second partition will be for Swap. The installer will attempt to create it as a logical partition, the first logical partition of an extended partition is /dev/sda5.

Select Swap area from the Use as dropdown menu. The Mount point menu will be disabled because Swap does not need a mount point.

The final partition will be for /home. The file system is ext4, and you may use the available disk space here.

Back to the main manual partitioning window, you can see all the partitions just created. Before you click Install Now, you have to determine where GRUB, the boot loader, will be installed. On a standalone installation, the best location is the default – in the Master Boot Record of the disk /dev/sda.


Convert a 1 channel image to a 3 channel image

The following Python code works:

import cv2
import numpy as np
img = cv2.imread('10524.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
img2 = np.zeros_like(img)
img2[:,:,0] = gray
img2[:,:,1] = gray
img2[:,:,2] = gray
cv2.imwrite('10524.jpg', img2)


First of all, Ubuntu 13.10 just released, so you may want to install that instead as it has a newer kernel with newer drivers which may have likely solved your issues. However, if you still want to install Ubuntu 13.04, read ahead.

Run ifconfig and check if wlan0 has any dropped packets. If so, lower the MTU in your network settings.

Add modprobe rt2800usb to /etc/rc.local before exit 0. You can edit text files with the command line with sudo nano /etc/rc.local. rc.local executes any commands listed inside of it on boot, so you won't have to manually modprobe it.

You can use lspci to list all of your hardware, and if you pipe lspci to grep you can only show lines that include a certain string, such as lspcie | grep Network, lspci | grep Wireless, lspci | grep VGA, or lspci | grep Audio.

If you want to install the latest kernel 3.12-rc5: cd /tmp; wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-rc5-saucy/linux-headers-3.12.0-031200rc5-generic_3.12.0-031200rc5.201310131952_amd64.deb; wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-rc5-saucy/linux-headers-3.12.0-031200rc5_3.12.0-031200rc5.201310131952_all.deb; wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-rc5-saucy/linux-image-3.12.0-031200rc5-generic_3.12.0-031200rc5.201310131952_amd64.deb; sudo dpkg -i linux*.deb


Flash stopped working in firefox after I installed VLC

Try and disable some of the plugins in Firefox. Maybe one of the media plugins is the culprit.


Installed dualboot ubuntu & win7 on two separate drives

Personally, I think it would be better to have both OS's installed on the same drive, and have that drive be the one that boots.  Then boot and when GRUB asks you to choose an OS, make a note of how many spots down the Windows option is but boot Ubuntu.

Once you're in Ubuntu, open a terminal and make it so that you can change the grub file by using the command:

  sudo chown me:me /etc/default/grub

Now open it for edit in the terminal with:

  sudo nano -b /etc/default/grub

Using arrows, go to where it says GRUB_DEFAULT and change the number after it to be how many spots down the Windows boot is, minus 1.  (So if it were 3 spots down, you would use 2, for example.)  Now, go to where it says
GRUB_HIDDEN_TIMEOUT and change the number after that to 0.  Below that, it says GRUB_HIDDEN_TIMEOUT_QUIET, change it so it says "true" after that.  (Make sure you're not taking away the colons between each selection and what I've told you to enter, and that you are replacing what was there previously not simply adding to it.  That may seem fairly obvious, and you may feel the clarification is unnecessary, but I don't want you accidentally screwing up your grub file beyond repair simply because I was not clear enough.)  Now hit Ctrl+X and it will ask you if you want to save.  Hit "Y" and it will ask you for a file name to save as.  Just hit "Enter".  Now you will need to run a final command to finalize this:

  sudo update-grub

Now, it should automatically boot into Windows without the GRUB folder showing, and if you ever want to boot Ubuntu instead then as your computer turns on (before it is starting to boot an OS) hold Shift and keep it pressed until the GRUB options show up.  You will be able to boot Ubuntu from those GRUB options.

I think this would be the easiest way for it to automatically boot Windows, but have Ubuntu available.  I think it's much better than having the two installed on different drives.


For unity, Super+D is the shortcut that does the trick. Not clickable, but memorable.

(Super stands for Windows logo key on most PCs)


triple boot to Windows without loosing xubuntu and kali linux

Well temporary you will lose access to other (l)unix based os as the windows installation does not have a 'do not install bootloader' option. After the installation you will have to boot a livecd and install boot-repair from with a ppa or preferably use this image which has the software pre-installed boot-repair-disk and then quoting from the homesite:

(1) Then burn it on a live-USB key via Rufus or Unetbootin. (do not burn it on CD/DVD if your PC came with Windows8)

(2) Insert the Boot-Repair-Disk and reboot the PC,

(3) Choose your language,

(4) Connect internet if possible

(5) Click "Recommended repair"

(6) Reboot the pc --> solves the majority of bootsector/GRUB/MBR problems


Installing Moonlight? Extracting .crx files?

If you point Firefox to http://www.mono-project.com/Moonlight/, get to the download page and click on download after selecting the 64bit architecture, it will automatically install the extension.

Chrome/Chromium/Iron, on the other hand, will prevent the .crx extension to be installed automatically.

In this case, after you have downloaded the .crx file from the Moonlight download page (using Chrome), go to the Tools | Extensions configuration page, and then drag the .crx file onto the Chrome extensions page. It will ask for your permission to install the extension.

The .xpi extension package "is simply a ZIP file containing the extension files", so you can open it just like any other .zip file. Note that you might need to change the extension of the file to .zip, depending on the method you use to extract the files.

One simple way to extract the contents of a downloaded .xpi, is with the use Midnight Commander, which can be easily installed:

sudo apt-get update && sudo apt-get install mc

Navigate to the folder where the file has been downloaded and it can be opened like a folder and its contents copied out with F5.


Ubuntu 14.04 Server Startup just on WLAN

I suggest you edit /etc/network/interfaces to not start eth0 automatically. For example:

auto lo
iface lo inet loopback

#auto eth0
eth0 inet dhcp

auto wlan0
iface wlan0 inet static
address 192.168.1.101
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8
wpa-ssid <your_network>
wpa-psk <your_secret_password>

By commenting out 'auto eth0', you tell the system to not start eth0 automatically.


Executing cp Excluding Files from Bash Script

You can use brace expansion to create a range of folders (you will also need to exclude the folders themself)
#!/bin/bash

shopt -s extglob

for i in folder_{1..6}; do
    mkdir -p "$i" && \
    cp -t "$i" -- !(filename|${i%_*}_*)
done


Aha! I see!

Try this out:

In terminal do the following:

Use cd to set the working directory to the location of the installer (i.e. cd /home/GrammarGeek)
Type chmod a+x metasploit-latest-linux-x64-installer.ru
Press tab
Press enter
Type sudo ./metasploit-latest-linux-x64-installer.run
Press enter
Profit!

(Please note /path/to/metasploit-latest-linux-x64-installer.ru is not a typo!)


How do I specify the location Tomboy is to use to store the notes?

For a multi-user machine, I prefer to store my configuration in my home folder. My home folder is also backed up which saves my configuration changes. I run Ubuntu 14.04 with Tomboy 1.15.4. I have an owncloud server that sycs file/folders in /home/$user/owncloud. You should replace /home/$user/owncloud with your preferred directory location. Commands are entered in the terminal.

First close the tomboy application.
Create a folder /home/$USER/owncloud/tomboy and copied all of my tomboy notes to that folder. $USER is your user name.

mkdir /home/$USER/owncloud/tomboy
cp -av /home/$USER/.local/share/tomboy/* /home/$USER/owncloud/tomboy/

I then needed to tell tomboy where to find the data files. I created a file /home/$USER/.profile

gedit /home/$USER/.profile

and then included the following lines.

# this sets environment variable for user "your name here"
# set tomboy data directory to owncloud/tomboy directory
TOMBOY_PATH="/home/$USER/owncloud/tomboy"

To make the .profile usable, you have to tell the operating system about it with the source command.

source /home/$USER/.profile

Check that the operating system knows about the TOMBOY_PATH variable.

echo $TOMBOY_PATH

You should see output with your directory setting.
You can now start tomboy.
Adding $TOMBOY_PATH to /etc/environment or /etc/profile is not good on a multi-user machine. For example if user "Bill" sets the path in his home directory, then user "Susan" would not be able to use tomboy because tomboy would try to save her data to the directory that Bill defined and Susan would not have write permissions to save files in Bill's home directory. You could use the $USER variable in the path statement "/home/$USER/tomboy/" and Bill and Susan's location would then be "/home/Bill/tomboy/" and "/home/Susan/tomboy/" respectively.


How do I switch to Nvidia GPU in Ubuntu 18.04?

You can check in System Settings -> Details which graphic card you are using.

And to switch between graphics use:

sudo prime-select intel

and for nvidia use

sudo prime-select nvidia


Screen magnifier that also shows mousepointer

Something close to xzoom which also shows the mouse cursor is kmag:

sudo apt install --no-install-recommends kmag

Use F6 to toggle between a hidden and visible mouse cursor.


I would like to give an educated guess based upon my own experience with a video card that overheated causing Ubuntu to fail to load because it could not determine the correct screen resolution.

When we install Ubuntu we are not required to set the screen resolution. Are we? So, how does the OS know the correct or optimum resolution of the monitor.

The OS interrogates the monitor to find the EDID. A quote from EDID Wikipedia

  Extended display identification data (EDID) is a data structure
  provided by a digital display to describe its capabilities to a video
  source (e.g. graphics card or set-top box). It is what enables a
  modern personal computer to know what kinds of monitors are connected
  to it. EDID is defined by a standard published by the Video
  Electronics Standards Association (VESA). The EDID includes
  manufacturer name and serial number, product type, phosphor or filter
  type, timings supported by the display, display size, luminance data
  and (for digital displays only) pixel mapping data.

To confirm this I quote Ubuntu wiki under the heading Adding Undetected Resolutions

  Due to buggy hardware or drivers, your monitor’s correct resolutions
  may not always be detected. For example, the EDID data block queried
  from your monitor may be incorrect.

In your case, when Ubuntu loads it cannot read the monitor's EDID block because you have not switched the monitor over to Ubuntu.

That switch box works by effectively unplugging the monitor from one machine and plugging it into an other machine. The switch that you turn physically cuts the cable from the VGA port on one machine and makes a connection to the VGA port on the other machine.

I would guess that anyone booting Ubuntu without the monitor connected would have the same problem that you are having.


Try to read boot process messages. Start ubuntu without "quiet splash" and kernel command line.
Try to read logs from booting system
Look for I/O errors in logs. They tell that your cd or hdd have hardware problems.
If you messed up partition table try to erase your hdd boot sector. Use dd if=/dev/zero of=/your/hdd bs=1M count=1 It will wipe all data! Or without count=1 to erase all hdd to the end.
It's much better idea to install windows on one drive and linux on second and use grub or bios boot menu to switch booting.


Virtualbox WIn10 from ubuntu not booting

Windows won't boot on other hardware easily like linux does.

What you did is use the windows harddrive in a virtual machine - changing the whole hardware from window's point of view.

You could however make an install in virtualbox and use the raw-harddrive-partition instead of a virtual disk file, but then the installed windows would not be able to start natively without virtualbox.


Drag and drop the theme package in the Appearance Preferences window
 (System->Preferences->Appearance) Theme tab.


Try using dd to send the iso image to usb drive

sudo dd if=/path/to/iso/image of=/dev/sdb bs=8M

Is so important that add the bs=8M to make it work!
And check that /dev/sdb is the device where you have the usb flash drive
do it with

df -h


Speeding up the mouse wheel in Ubuntu 18.04

This solution worked for me with Ubuntu 18.04:
http://www.webupd8.org/2015/12/how-to-change-mouse-scroll-wheel-speed.html
sudo apt-get install imwheel
cat > ~/.imwheelrc
".*"
None,      Up,   Button4, 8
None,      Down, Button5, 8
Control_L, Up,   Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L,   Up,   Shift_L|Button4
Shift_L,   Down, Shift_L|Button5

(the 8 at the end of the second and third line are the acceleration numbers, 3 is default)
Then add imwheel --kill --buttons "4 5" as a startup application:


Booting ubuntu from USB drive using grub and then resizing parition

After booting from your USB Ubuntu, run the following commands:

Use (or install on your USB live system if it's not already there) gnome-disk-utility.  If it's not already installed, open a terminal and enter sudo apt-get install gnome-disk-utility which will install it.  Open it and look to see what disk and partition number your Ubuntu installation is (and make certain that there is "free space" on at least 1 side of the partition as it is unlikely that it would have left open space).  Likely sda2.
Then:
sudo fdisk /dev/(sd?) where ? is the disk letter which has both partitions  which include where your Ubuntu system is installed (the mmcblk0p# is the USB version, so not the one you want to resize - sda is likely the disk your OS's are installed to and sda2 is likely where Ubuntu is).  Then, so long as there actually is free space on either side (before of after the Ubuntu partition) of your Ubuntu partition enter the following (and know that I am presenting this assuming Ubuntu is on sda2:
sudo fdisk /dev/sda/ - Delete the partition Ubuntu is on [note - you are not actually deleting it, but just the partition border record] (d, 2), then re-create it using the defaults (n, p, 2, enter, enter), then write and exit (w). Reboot the computer, then: sudo resize2fs /dev/sda2.
If there is not free space on at least 1 side of your Ubuntu partition then do not do this as you cannot enlarge the partition (you can only do so if there is free space on at least 1 side of the Ubuntu partition).


password for jenkins: jenkins is not in the sudoers file. This incident will be reported


Chinese characters are not shown correctly in the bookmarks of a pdf file opened by PDFXChange viewer

After doing a simulation of your problem, I came to the conclusion this issue is related to limitations of this tool (PDF-XChange Viewer). Such version doesn't have additional language support.

The document you attached has embedded fonts. So we could see them, even if it had not been installed.

So, you should install PDF-XChange Editor, this version offers full-languague support, among other features.

After that, to grant your interface will be well established, install:

Chinese Language Support.
Language Packs (Base and Chinese) (perhaps this is not necessary to fix interface, but to enable OCR to chinese documents).

Below you can see the final result of my simulation:


How do I stop sound from muting when the screen is locked?

This will send the unmute command when the screen is locked, which might work. It will definitely work (tested) if what you want to do is just to unmute the sound when the screen is locked.

You can use Cuttlefish:

Cuttlefish is a tool that lets you do everything you want to under specific circumstances, like while locking your screen. Please see an introduction to Cuttlefish (it is very easy to use, but it would still be a lot easier with a video as an example): http://www.youtube.com/watch?v=U7mSfh9pqpg

So, you generally have to

Create a new Reflex and give it a name that you prefer
Click on 'Activated by stimulus'
Check as stimulus the 'Screen is locked' (under Screensaver header)
Go to the Reaction tab and add a new reaction from bottom left
Go to Applications->Start application (advanced mode)->OK
Click on the 'executable' which is by default firefox and alter it to /usr/bin/amixer (head to /usr/bin and select amixer
At the parameters below add set 'Master' unmute

Tested and works fine under Ubuntu 12.04


This fixed it for me:

sudo apt-get update --fix-missing; sudo dpkg --configure -a; sudo apt-get install -f; sudo apt-get update; sudo apt-get upgrade;
sudo do-release-upgrade

See https://ubuntuforums.org/showthread.php?t=2391552

If it doesnt't try

sudo mv /etc/apt/sources.list ~/
sudo touch /etc/apt/sources.list
software-properties-gtk

Check the first two boxes. You may also want to change the server. This recreates the source list.

See How do I restore the default repositories?


How do I change the GTK (the gui) theme in 12.10?

If you are using Openbox, then it is likely that gnome-settings-daemon should be started when you run any GTK+ applications. However, as this does not always happen, you may need to run it manually. Once you do, your applications will pick up the theme they are supposed to have.

You can add it to your Openbox session as a start-up application to make this persistent.


Cycling windows by click on dock program's icon

"Ubuntu Dock" is forked from the extension "Dash to Dock", and accordingly uses it settings. Thus, you can change the behavour of "Ubuntu Dock" by editing the dconf settings of "Dash to dock", using dconf-editor (not installed by default in 18.04) or with the single command:

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'cycle-windows'

You can list all possible settings:

gsettings range org.gnome.shell.extensions.dash-to-dock click-action

Reset to the default setting with:

gsettings reset org.gnome.shell.extensions.dash-to-dock click-action


ibus gives you some extra choices of keyboard layout, including the phonetic Kyoto-Harvard system for entering Devanāgarī.  astyuttarasyAM dizi devatAtmA -> अस्त्युत्तरस्यां दिशि देवतात्मा हिमालयो नाम नगाधिराजः| पूर्वापरो तोयनिधीवगह्य स्थितः पृथिव्यामिव मानदण्डः||


Kubuntu18.04 stopped booting after installing a package. Only black screen

@pHeLiOn, thanks for pointing that. I'm new to the forum so learning how to use it.

Ok, so I have found a solution for the problem. Here is what I did.

I installed Kubuntu18.04 to use a 3D software called Houdini and a render software called Redshift. After installing both with no problems (right click on packages, "Extract", then right-click on executable and "Actions/Run in Konsole"), I had to install the Redshift license through the licensing tool. To run that tool, I had to have a package installed called libpng12-0. This is where the problem started, instead of installing the 64bit version (amd64) of the package, I installed the 32bit (i386) one. By the way, here's the right link to download the amd64 version of the libpng12-0 package: packages.ubuntu.com/xenial/amd64/libpng12-0/download

From that point on, Kubuntu wasn't booting to the GUI interface. I tried removing the package by running sudo dpkg --list and sudo apt-get --purge remove "package name" and the package wouldn't uninstall. Then I tried sudo apt-get autoclean and also sudo apt-get autoremove but no succsessfull results, still not booting to the GUI.

As i'm new to Linux, I decided to re-install Kubuntu and then went over the same process to install the softwares but this time I installed the right package (libpng12-0 amd64) and since then, the machine is working very well and extremely fast! Kubuntu 18.04 is just an amazing OS to work with IMO. Thanks to the team that put it together and thanks @pHeLiOn and other users that posted the info to my question above. Much appreciatted!


analyse disk space usage of an encrypted home directory

You said "..baobab just keeps scanning endlessly without counting any data when I ask it to just scan my home directory..." so you might have already tried this, but for others with this problem; I found that while selecting the root directory just showed me a bunch of ambiguous ENCRYPTFS files, selecting my home directory from the "Devices and Locations" screen solved this problem.

On the first "Devices and locations" screen, click the three line icon in the upper right, and hit "Scan Folder..." in the menu that pops up

Select your home folder, and baobab should scan it.

Note that I only tested this while logged in to my account, and that it took a very long time (1hr+ for 220GB) which might account for your "endless scanning".


VLC crashes when opening any file, Ubuntu 20.04

There's a bug report about that here.In fact VLC is not to blame.There's a bug in the intel driver iris_dri which is a linux Direct Rendering Infrastructure driver for the intel IRIS graphics cards.
Whenever a program tries to bypass the X server and renders directly using OpenGL on the underlying GPU , it has to use that driver indirectly.And a bug causes segmentation fault when someone issues OpenGL calls.
As suggested in the bug report , you have to use the intel driver i965 instead.In order to do that you have to define the environment variable
env MESA_LOADER_DRIVER_OVERRIDE=i965

So if you want to open VLC in the terminal , you have to add that line to your ~/.bashrc file or if you want to open it from the application menu or by clicking on a media file , you have to tamper the line beginning with Exec= in the .desktop file /usr/share/applications/vlc.desktop :
Exec=env MESA_LOADER_DRIVER_OVERRIDE=i965 /usr/bin/vlc --started-from-file %U

And if you want to set that globally for all of your applications , add this line to the file /etc/environment:
MESA_LOADER_DRIVER_OVERRIDE=i965


Do all apps start with a normal priority on the system monitor?

Technically, yes. In Linux — Ubuntu's kernel — all programs start with a priority or "niceness" value of 0. They may, while executing, request a higher or lower priority by making the system call nice(int niceness) from unistd.h.

Normally, programs the user runs only have the permission to lower their priority to positive niceness. This is useful for non-critical janitorial tasks your computer performs from time to time.

However, Ubuntu also uses a framework called AppArmor, which grants specific user programs administrative ("root") level rights. Ubuntu's AppArmor is configured to allow certain important programs to request a high priority (negative niceness), most notably PulseAudio. This prevents breaks in playing audio while your system is under heavy load.

In summary, yes all applications start with a normal priority. However, in practice, many applications request a different priority immediately after launching.

And as a little geeky addendum

You can start (or to be technically accurate, fork) your own programs with low/high priority in a commandline like this:

nice -n 10 my_app                 # this application is low priority, very nice
sudo nice -n -10 my_other_app     # this application is high priority, very mean

No guarantees they'll keep it, of course.


Wireless works only after reboot after disabling it via hardware keys

Couple of suggestions:

Suggestion 1 - stop and start the network manager service

sudo initctl restart network-manager

Suggestion 2 - unload and reload the wireless kernel module

Find the wireless module via

sudo lshw -class network

Look for driver= in the configuration line - the kernel name is after that

for example for my wireless:

configuration: broadcast=yes driver=wl0 driverversion=5.100.82.38

sudo modprobe -r wl0
sudo modprobe wl0

N.B. you could use Suggestion 1 after this to force network manager to recognise the change in the kernel.


Unable to add repository key to local keychain

The output to your pastebin:

gpg: key A88D21E9: "Docker Release Tool (releasedocker) <docker@dotcloud.com>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

Means: OK!  Great! Fantastic!  now please execute the next command.


Can't update flatpak: »Flatpak system operation Deploy not allowed for user«

Why not just run flatpak with sudo, as in
sudo flatpak update -y

Another possible workaround is to use setsid:
setsid flatpak update -y

This runs the program in a different session and solved for me a similar problem with the grsync tool.


Thunderbird crashed after installing Lightning

1. "reset" thunderbird by moving your profile

mv ~./.thunderbird/$yourId /tmp/.

Restart thunderbird.

2. Lighning

I've experienced the same issue with Lightning. My TB version 45.5.1.  Me helped the installation of the addon Lightning Nightly Updater (Unofficial), even if this addon is stoneold. The addon is used in parallel to the normal Lightning addon. Since then TB (Version 45.5.1) seems stable.
Download the newest version at https://www.mozilla.org/en-US/thunderbird/channel/ (Beta 51.0b2 was sufficient for me).


It's hard to tell what happened with so little info, but maybe you lost your windows list applet. Try this:

Move the mouse over one of the panels (either the bar on the top or bottom of the screen), press ALT and, at the same time, right click on the bar.

Select Add to panel, and in the new window select Window List.

Hope that it helps.

The source is this question, but updated to gnome-fallback (mainly you now need to use ALT to bring the menu).


How do I launch a GUI application as root on user login?

Running graphical things as root is a bad idea for security but I'm going to assume you know that and that you have exhausted any other methods. You need to do two things:

Allow your user to run the command via sudo without a password  by editing /etc/sudoers. You can find a brief explanation here but you're looking for something like this:

username ALL=(ALL:ALL) NOPASSWD:/path/to/command

Obviously replace the username and /path/to/command with real values, stick that in there and then try sudo -k /path/to/command (the -k just means it'll ask for your password if it doesn't know any better - it won't ask if your sudoers edit was correct).
Auto-launch your application via the standard "Startup Applications", calling sudo /path/to/command

And that's it.


Ubuntu 14.04 print screen button does not work

My PRTSC button also didn't work for a brief moment, and I haven't figured out what caused it, as after reboot it started working again; however what i can offer is a workaround - you could set an alternative shortcut to taking screenshot

The default program to take screenshots in Ubuntu is, as you may now, gnome-screenshot . You could open System Settings -> Keyboard -> Shortcuts, and under custom shortcuts press plus button.

A menu such as bellow will appear, where you can enter description and actual command to run.

In the name field enter the description. In the Command field, well, enter the command. In my example, I've linked gnome-screenshot -w, which is "take screenshot of current window". For more information on gnome-screenshot options, refer to man page (man gnome-terminal).

Now after you have entered name and command, press apply, and you will see this custom shortcut be added to your list. Click on the "Disabled", and the text should change to "New accellerator". This is where you set a new shortcut, for instance Super+Shift+P.

Among other things, you could try resetting  settings for keyboard to default as shown in this post, but I believe it's a bit to extreme step for such simple problem.

I've also found that for some folks changing kernel.sysrq in /etc/sysctl.d/10-magic-sysrq.conf helped, but I believe it to be unrelated; with PRTSC button inactive and active, that value was the same , 176.


Alt+Ctl+F1 is a virtual terminal, VT1.

Usually you would go back to your previous X11 session by typing

  Alt+Ctl+F7

or

  Alt+Ctl+F8

I have never had things running in the X11 display change or fail simply because I went to VT1 and back again.

But if you go to VT1, and then you are provoking some kind of error that triggers the login to re-appear, I expect it means you've corrupted that login session and things that were running are not running anymore. That makes sense.

If you cannot run Alt+Ctl+F1 and Alt+Ctl+F7 in quick succession and go back and forth from virtual terminal to X11 display, it may mean some configuration is broken.  Recently a customer here had an Ubuntu system where VT1 was disabled, and it simply locked the computer to try it.  I never got to the bottom of it.


Gathering Information About Your Firefox Installation

Since this is a bug, you should consider submitting the crash report. It sounds from your question like you're getting a crash report to submit data to Mozilla.org, rather than to Launchpad. That suggests that you're not running the version of Firefox that comes with Ubuntu. If the following advice doesn't solve your problem, you should edit your question to provide the output of the following commands in the Terminal:

apt-cache policy firefox
firefox -v
which -a firefox

A Simple Fix That Often Works

However, you may simply be able to solve this problem by clearing out your Firefox profile. To do this, make sure Firefox is not running. Then, if you do not use other Mozilla applications such as Thunderbird, run this command:

mv ~/.mozilla ~/.mozilla.old

Alternatively, if you do use other Mozilla applications such as Thunderbird, run this command:

mv ~/.mozilla/firefox ~/.mozilla/firefox.old

Then run Firefox and see if the problem is fixed. You won't have your bookmarks, cache, cookies, saved passwords, and other data, but it's likely that Firefox will be repaired.

This technique doesn't actually delete your user-specific Firefox data; instead, it moves it out of the way so Firefox doesn't use it.

To restore it--which would break Firefox again, if this fixed it--first make sure Firefox is not running. Then do this if you followed the first method:

mv ~/.mozilla ~/.mozilla.new
mv ~/.mozilla.old ~/.mozilla

Or this if you followed the second method:

mv ~/.mozilla/firefox ~/.mozilla/firefox.new
mv ~/.mozilla/firefox.old ~/.mozilla/firefox


How do I enable onboard (on screen keyboard) on the lock-screen?

I had this exact same issue. and no matter what I did I couldn't get it to work. So, on a whim I reinstalled Ubuntu from the latest version (14.10). I originally had 14.04 LTS. Nothing I did could get this to work (even reinstalling 14.04). So I downloaded the lastest release and did a clean install. And it looks as if the Devs fixed the issue in this latest release because now when I enable the option in Onboard settings, I get the keyboard pop up for logging in and from the lock screen. Hope this helps.

An additional note. When you enable the lock screen option you get prompted to enable Accessibility features. This is the key for log in screen. Onboard doesn't automatically pop up at login. But in the task bar, you'll see the little Accessibility icon (a little man figure in a circle). Touch that and you get the option to show the keyboard. This was also an issue with 14.04 LTS as it would never give me the accessibility icon in the task bar.


How to get bash file to echo differently based on user input?

TL;DR: fix syntax errors, ensure you actually have non-empty variables in [ test, and make a function to pipe  through tee into festival.

As far as printing to screen and outputting to festival, I personally would wrap the script into a function and pipe everything to festival, with tee in between (which sends text both to screen and pipe).

There's three syntax problems to fix, however:

read $input should be read input. The $ symbol dereferences variable in shell scripting (i.e., it $input will be replaced with what input holds).
You've no yes and no variables declared. What you should be doing is string comparison: [ "$input" == "yes" ]
Extra ]] in elif

As for why you get Hello! all the time, that's exactly because of first two bullet points. Before read $input the variable input doesn't exist, so you're only performing read (i.e., nonexistent variable $input is dereferenced into empty string, leaving only read command there). So whatever you type gets stored in the REPLY variable which is what read uses when no variable name has been given. And because yes variable doesn't exist, that gets replaced with empty string too. Thus in reality [ $input == $yes ] is treated as [ "" == ""  ] which is always true.

$ [ $nonexistent == $anothernonexistent  ] && echo "Success"
Success

The fixed script should be as so:

#!/bin/bash
main(){
    read -p "Are you there?" input

    if [ "$input" == "yes" ]; then
        echo "Hello!"
    elif [ "$input" == "no" ]; then
        echo "Are you sure?"
    else
        echo "Please answer yes or no."
    fi
}
main | tee /dev/tty | festival --tts

Remember to quote the variables and read up on difference between = and == in test command.


Is there any software like Windows Device Manager in Ubuntu 14.04?

From what you describe in your question I think you're looking for three tools hardinfo, synaptic, and galternatives.

hardinfo allows you to see all your hardware and even do a few benchmarks.

 sudo apt-get install hardinfo

synaptic gives you a list of software, that can be searched, and sorted by category. It also allows you to install/uninstall and manage software.

 sudo apt-get install synaptic

galternatives allows you manage and select the default package to provide a specific service, such as specifying the default version of java to be used.

 sudo apt-get install galternatives


sudo apt-get update and adding a repository error

Welcome to Ask Ubuntu!
You have a bunch of Personal Package Archives in your installation which are invalid/no longer valid. You'll have to remove the PPA for each error thrown by apt. You can do this as follows:
For
 Err:13 http://ppa.launchpad.net/ehoover/compholio/ubuntu eoan Release 404  Not Found [IP: 91.189.95.83 80]

the PPA name is ehoover/compholio. You'll have to remove this PPA. This can be achieved in two ways.
Method 1
To remove PPA's you need to install ppa-purge (or see Method 2, if you don't want to install any additional packages).
$ sudo apt-get install ppa-purge

You can remove this PPA by running the command
$ sudo ppa-purge ppa:ehoover/compholio

Likewise, run the command for each error line encountered. A complete list for your case would be
sudo ppa-purge ppa:ehoover/compholio
sudo ppa-purge ppa:gnome-terminator/ppa
sudo ppa-purge ppa:pipelight/stable

Method 2
You can also achieve this by using the in-built add-apt-repository command. This is similar to method 1.
sudo add-apt-repository -r ppa:ehoover/compholio
sudo add-apt-repository -r ppa:gnome-terminator/ppa
sudo add-apt-repository -r ppa:pipelight/stable

AFAIK these PPA's don't have resources for 19.10, so you'll have to wait. (I may be wrong)


Toggling Between NGINX and Apache Web Server

Use the reverse proxy technique through NGINX. (SOURCE)

So, one site that is enabled could be ng.com for stuff to run through NGINX on my developer laptop, and then one site that is enabled in NGINX called ap.com could be the reverse proxy that points to Apache on 8080 instead of 80. Then, I configure Apache to respond on 8080 for that ap.com domain.

The trick in the nginx file are these lines:

proxy_set_header X-Real-IP  $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8080;


Ubuntu 12.04 server: new kernels never used

Embarrassingly, this was a simple matter of grub-legacy being installed, and needing to install grub2. Having said that, I'm not sure why grub legacy refused to acknowledge new kernels, but installing grub2 fixed the problem.

grub-legacy had replaced grub2 when a list of installed applications was copied over from a previous server.


What's blocking public access to Ubuntu web server?

Apparently my internet service provider had me on CG-NAT. Instead of a Reverse port tunnelling solution, I just purchased a static IP.


You could remove it completely.

Open a terminal
Type sudo apt-get remove appmenu-gtk indicator-applet-appmenu indicator-appmenu
Logout or reboot


is there a ppa for up to date netbeans installation on ubuntu 14.04?

Though I'm not sure on details, being quite new to Linux, Stack, and with the IDE selections on here, I believe the propper ppa is ppa:vajdics/netbeans-installer as was sourced from vajdics launchpad.

To list out some sort of instruction.

Open the terminal ( Ctrl+Alt+T )
Input "sudo add-apt-repository ppa:vajdics/netbeans-installer" and hit Enter.
Input "sudo apt-get update && sudo apt-get install netbeans-installer" and hit Enter again.
You'll be prompted again as to whether you would like to continue the installation, Just input "Y" and press Enter again.

That's it. I hope this dispels some problems others might be having. To be fair, I did cheat, I was using 13.10, but I've grown tired of looking up my issues only to be directed to older posts/solutions that are either out of date or pandering to Ubuntu's built in solutions(universe). I hope this solution is one that works with 12.04 and that it helps all who are stuck on this issue.


Why are options grayed out when choosing backdrops on XFCE4?

This is not a bug.  The menu is for you to select a folder.  Not a single file.  You select the folder and when you click on Open, thumbnails of the images in that folder are created in the left window.  You can then select any thumbnail you like and it automatically becomes the background image.


Second gen ipod shuffle not working with rhythmbox

In fact, I got into many troubles when I tried to force rhythmbox to work with iPods (many different generations). Eventually, I got into conclusion that rhythmbox is simply unable to work with them properly. I tried out some ipod-dedicated software, but most turned out to be an useless junk... but there is one, I can recommend you: it's Floola http://www.floola.com/
It gives you a simple but powerful access to your iPod, I appreciate the fact it was the only application that managed to communicate properly with my iPod without issues.


There is no solution to this problem for a Samsung 700Z. Basically don't install Ubuntu on this machine. If you do you risk the install hanging and leaving your machine in a broken state. You will have to open your machine to remove the DVD and battery (voiding you warranty) or sending it in for repair. IMHO Ubuntu should have a "install at your own risk" warning clearly posted somewhere on their site.


DELL Latitude E5500 BIOS Error : No boot sector detected on USB during the Ubuntu installation

The only thing i can think of is the bios won't see 1TB. Plus your HDD may be USB 3.0 but you would only get the speeds of the USB 2.0 technology if that is what your computer has. Best bet if you want to run Ubuntu and cannot install on the internal HDD then get yourself a 64 GB flash drive and install on there.


This occurs when you open package manager and install from cmd at same time. Try closing all windows and re execute the command.


Is 1GB DDR2 RAM sufficient for Ubuntu 12.04 LTS 32 bit desktop

Short answer is you can run Ubuntu 12.04 with Unity on 1GB of RAM. It's not practical though. You should switch to a desktop environment that uses less memory. You should try xfce. It uses hardly any RAM compared to Unity and it has great performance on limited hardware.

How can I install XFCE along side unity?


is it possible to ssh into ubuntu server with keys and from another computer using password?

Use two private keys

Set up your workstation using the same process (but not the same private key) as you did when you set up your laptop:

There is never a good reason to copy a private key from some other machine. If you haven't already generated a fresh private key on your workstation, do so now. Also generate the corresponding public key. In a terminal on your workstation,

type: ssh-keygen -t rsa

Copy your workstation's public key to the server. In a terminal on your workstation,

type: ssh-copy-id username@hostname.net

(but use your actual username and hostname, and later type in your password when it asks for it).

This installs the public key of your workstation into the ~/.ssh/authorized_keys file for that user on the server.

There is no step 3. From now on, you can log into the server from your workstation, and you never copied your laptop's secret private key from your laptop.

details

I assume that what you are really asking is

I have an Ubuntu server ("home")
I log in to my Ubuntu server from my personal laptop ("laptop")
I also log in to my Ubuntu server from my work computer ("workstation").

What is the right way to do that?

I suppose I could simply log in with the same password from both places. That can't be the right way, because everyone says that public key authentication is much better than passwords. (a)
I suppose I could simply copy the private key from my laptop to my workstation. That can't be the right way, because everyone says that the private key is never supposed to leave the client machine.

People have it hammered into their head that one account on a server has a single username and, of course, a single authorized password.

Public-key systems like ssh are better than the password system:
One account on a server has a single username and any number of authorized public keys, all of them listed in the ~/.ssh/authorized_keys file.

(more details).


For this 14.04 Trusty release, the developers have backported much of the "old" nautilus 3.2/3.4 functionality that was found in 12.04 & 12.10.  Many of the defaults are set for the 12.04 users so that they have a "seamless" transition to 14.04.

The feature you mentioned came in much later - probably 13.04 or 13.10.  Luckily, the developers have retained this - but you'll need to delve into the terminal to re-enable this capability through the following terminal entry

gsettings set org.gnome.nautilus.preferences enable-interactive-search false

Naturally - if after experimenting you want to go back to the tried and trusted 12.04 capability you can reset via:

gsettings set org.gnome.nautilus.preferences enable-interactive-search true


This should do the job:

crontab -l|sed "\$a0 23 * * 5 tar -cpzf /var/backup.tar.gz /home/$USER"|crontab -

This chain of commands adds everything after \$a in the sed expression (bold) as a new line to the current user's crontab. crontab -l prints the current crontab, sed adds the line to the end and crontab - takes the stdin from the pipe and makes it the new crontab. Note that this works only if you're not messing with different users, if you plan to do that read about the -u option in man crontab first.


Kubuntu 15.04 complaining about flash-plugin installer

The solution turned out be really simple. The package was in /var/cache/apt/packages/partial. I've deleted it there and the message has never returned.


My strategy to solve this problem is as follows:

Restore the default folders for Documents, Downloads, Music, etc.
Test the Documents folder by creating a new .txt file in it and try to open that .txt file in Gedit.
Locate any missing documents and move them back into the Documents folder where they belong.

$ ~/.config/user-dirs.dirs
bash: /home/elizabeth/.config/user-dirs.dirs: Permission denied

The Permission denied message is the normal message that results from running ~/.config/user-dirs.dirs, so there's no problem there. The problem is that some of the directories in ~/.config/user-dirs.dirs are wrong, and three of these directories are duplicates of each other.

To restore these directories back to their default locations open the terminal and type:

gedit ~/.config/user-dirs.dirs

Change the following lines in gedit text editor:

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/"

Make sure that the three directories named Documents, Music and Videos exist in your home directory. Edit the above text block so it looks like this (the changes are highlighted in bold text):

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

Your original question was edited by changing ~/.config/user-dirs.dirs back to its defaults after I posted this answer. As you wrote, Music is located in env and Videos is located in R, but this is not the expected result. Somehow the default paths to these three directories seem to be either duplicated or scrambled up. To help you track this problem down I have posted the results of cat '/etc/xdg/user-dirs.defaults' below:

# Default settings for user directories
#
# The values are relative pathnames from the home directory and
# will be translated on a per-path-element basis into the users locale
DESKTOP=Desktop
DOWNLOAD=Downloads
TEMPLATES=Templates
PUBLICSHARE=Public
DOCUMENTS=Documents
MUSIC=Music
PICTURES=Pictures
VIDEOS=Videos

If you've gotten this far without errors, it seems that your problem is now how to locate your missing documents. Assuming that you haven't accidentally deleted them, the easiest way to find your missing documents is to search for them manually in Files file manager. Documents might be easier to find if you search for the most common document file extensions like .odt, .doc and .pdf.


Num Pad on Apple Keyboard in Java Application fires two events

I finally found keyboard options which give me acceptable results. Under Verschiedene Optionen zur Kompatiblität (Miscellaneous compatibility options) i enabled the settings:

Apple Aluminium Keyboard: PC-Tasten emulieren (Druck, Scroll Lock, Pause, NumLock) (Apple Aluminium Keyboard: emulate PC keys (Print, Scroll Lock, Pause, Num Lock))
Vorgegebene Nummernblocktasten (Default numeric keypad keys)

This also solved my problem that i couldn't copy and paste out of netbeans into a native application.


How do I fix my laptop screen from being blank until the computer warms up?

This is likely a hardware problem with the backlight or inverter.  Since you're still under warranty, contact Dell and have them fix it.

If you're reading this question as someone whose laptop is not still under warranty, check out https://superuser.com/q/164058/16133 for more details on potential fixes.


Authenticate window doesn’t appear anymore

I had this same problem and it was a race situation.  lxpolkit was trying apparently to start too early in the boot and failing for some reason, causing the above error. Try finding the command on the "Exec=" line in the desktop file in autostart.  Try running that at the command-line after your desktop has started and then, with that terminal open, try authenticating whatever you were having trouble with.  If it works, then you know that you just need to delay the process, which is done easily in a startup bash script such as:
    #!/bin/bash
    sleep 5s
    while [ 1 ] ; do /usr/lib/i386-linux-gnu/lxpolkit ; sleep 2s ; done&
    exit
and then make it executable and create a desktop file pointing to that script in ~/autostart


Dual boot (Win 7 & Ubuntu 13.10 clock problem

It is because Linux stores time as UTC and windows as Local.

You can make Linux use local time or Windows use UTC.

To make Linux use local time edit /etc/default/rcS and change UTC=yes to UTC=no

To make Windows use UTC, create a new file named UTC.reg with the following content:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001

and open it with regedit in windows.


Why do some files appear twice in Unity Dash?

If you right-click on either of the icons in your first image, it'll tell you where the file(s) are located. You probably have the same file stored in two different places.


The documentation hasn't been updated together with the code. You can find out what the new field is in the source code. Field #9 is the time spent running in guest virtual machines hosted by this system; field #10 is the time spent in guests with low priority (#10 is to #9 as #2 is to #1).

As a general design note, when there are multiple fields like this, never assume that the total number of fields is fixed. Ignore any extra field.


Is the MD5 checksum for 18.04.1 image available?

Obsolete point releases are archived in http://old-releases.ubuntu.com/releases/.

Specifically, you're looking for http://old-releases.ubuntu.com/releases/18.04.1/MD5SUMS:

f430da8fa59d2f5f4262518e3c177246 *ubuntu-18.04.1-desktop-amd64.iso
188741f61c23d112a2564b0a864e25a3 *ubuntu-18.04.1-live-server-amd64.iso
c792bb06807658543fa504b84f90ba41 *ubuntu-18.04.1-preinstalled-server-armhf+raspi2.img.xz
e8264fa4c417216f4304079bd94f895e *ubuntu-18.04.1-server-amd64.iso
8d6978164a38c401b373a3eb32ef0c67 *ubuntu-18.04.1-server-arm64.iso
8f4b57602abb21a5070cfbf5756048e4 *ubuntu-18.04.1-server-ppc64el.iso
350f62d3d8fbeb7c8418bbc22362d0ab *ubuntu-18.04.1-server-s390x.iso
188741f61c23d112a2564b0a864e25a3 *ubuntu-18.04.1.0-live-server-amd64.iso

That's also probably why the download was slow. The old-releases repository isn't intended for heavy usage.


How to strip off all but audio from an mp4 file?

You can use ffmpeg. In Ubuntu, you can install it with:

sudo apt-get install ffmpeg

To convert any video simply run:

ffmpeg -i videofile.mp4 -vn -acodec copy audiofile.mp4

An alternative is to use the arguably more syntactically correct extension .m4a:

ffmpeg -i videofile.mp4 -vn -acodec copy audiofile.m4a


I can install Nvidia driver v340 but not v430. However, my GPU supports v430. Help please?

I use ubuntu-drivers to install cuda drivers for ubuntu.

If you have ppa setup, you can update to 430. Without ppa, the latest version right now supported by ubuntu-drivers is 390. They will update the latest version to 430, once the testing is done.
Let ubuntu update its list via sudo apt update.
See which drivers are compatible sudo ubuntu-drivers devices

You might see an output like

== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==

vendor   : NVIDIA Corporation
modalias : pci:v000010DEd00000DDAsv000017AAsd000021D1bc03sc00i00
model    : GF106GLM [Quadro 2000M]
driver   : xserver-xorg-video-nouveau - distro free builtin
driver   : nvidia-304-updates - distro non-free
driver   : nvidia-304 - distro non-free
driver   : nvidia-331 - distro non-free recommended
driver   : nvidia-331-updates - distro non-free

Install the update via sudo apt install nvidia-xxx where xxx is the driver version.


Looks like there's some problem with the ext filesystem these days... because this is the 4th time i get this question in the last 2 weeks. (from friends and now from here).

My guess is that you have the filesystem corrupted or broken in any way, but it's easy to fix, don't worry ;-)

Everything can be done from the Ubuntu live CD. Boot from there, and check which one is the partition where you have ubuntu installed on (sda1, sda5...). You can do it easily using Gparted. Even from there, you can right click on the partition and select "verify".

If you want to do it from the command line, just type:

fsck /dev/sda1 (being sda1 the partition where you have ubuntu installed).

And it will fix the ext4 filesystem problems. If you're getting too much questions while using it, add the "-a" switch to it:

fsck -a /dev/sda1

I have to tell you that use this with precaution. If the data is sensitive there, first make a backup if you can from the livecd to someplace else.

After the filesystem is fixed, you should be able to boot normally in ubuntu again.

Hope this helps you with that.


dogecoin wallet client dependencies (boost)

Try

sudo apt-get install libboost1.48-all-dev

Then

make -j2 -f makefile.unix USE_UPNP=-

if you're making the daemon version. The USE_UPNP=- nullifies the need to install miniupnpc. As far as libqrencode, that is option as well.


Open the terminal and in it type:

sudo apt-get install ubuntu-restricted-extras


Installing Octave Documentation on Ubuntu 16.04

Answer 1 covers what you need, but I did not see any reference to how to install it. So, here is how to install Octave.info.

Start a linux terminal session
Type the following command: sudo apt-get install octave-info

When the command completes, start Octave in the usual way, and when you click the Documentation tab, you will see all the reference documentation.


How to hide the Show Applications button in Dash to Panel

right-click on the Dash to Panel dock → Dash to Panel Settings and in the Position tab click the Visible button next to the Show Applications button entry.


Signal out of range message at boot time

At first you should determine specification of your monitor - especially its native resolution.
Then you can adjust it manually in configuration file.

Try the following:

press Shift during boot to access GRUB menu
in GRUB press e, then

add nomodeset to the end of linux line OR
add vga=795 (1280x1024, see other options here) to the end of linux line

then hit Ctrl+x or F10 to boot.

Remember good value of vga= and then place it in /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vga=795"

Then execute sudo update-grub and reboot.


How can I gradually encrypt a file that is being downloaded?

The command would simply be:

curl -s "$URL" | openssl aes-256-cbc > "$OUTPUT_FILE"


Changing rm -r autocomplete behaviour for directories with whitespace in their name

Tab completion is working here for directories and files with spaces in their names.

As you can see, Linux does not like spaces in file names. You have to escape them with a \ or use quotes.

rm -rf "directory with spaces"

rm on the command line is harsh and typos can give you problems. I suggest you use the -i option for confirmation.

rm -i file to remove

will give you confirmation, do you want to remove file? and you can abort. I alisis in ~/.bashrc

alias rm="rm -i"

good luck


How can I get my Epson v500 scanner working?

If your scanner doesn't work with simple scan, it is probably best to install the iscan package. The following general instructions will work for your model and any other ones listed on the site.

It is worth explaining in detail which packages to choose as the download site is quite confusing. As noted in the comments by JoZ3 the preferred site is now the Epson download centre rather than the old Avays site.

First, select the scanner model and OS from the Epson site, and then refer to the important FAQ, which explains the packages and the order they need to be installed.

After you click accept on the driver download page for your model (V500 in this case), there are a lot of confusing options as detailed below:

1) Selecting the packages

In all cases choose the .deb files. If you are on a 32 bit system, you will need the package that has i386 in it or if you are on a 64 bit system you will need the ones with x86_64 or amd_64 in them.

You need both the data and the core packages, as noted by the FAQ.

However, it is also very important to note that if you are using an Ubuntu version that is 8.10 or higher (which mostly everyone is), you must choose the deb file that contains usb0.1.ltdl7 somewhere in its title. (The debs with usb0.1.ltdl3 in the deb title are for Ubuntu versions 8.04 and lower.)

Referring to the above screenshot, for a 32 bit system you would thus choose the following packages for your scanner:

iscan_2.29.1-5~usb0.1.ltdl7_i386.deb
iscan-data_1.19.0-1_all.deb

If you want the additional plugin (iscan-plugin-gt-x770_2.1.2-1_i386.deb for a 32 bit system), please go back to the original screen and select it.

You may also want to select the user guide for iscan; the English version is listed on the site as userg_revQ_e.pdf.

2) Installing the Packages

Now locate your downloaded files and use software-center or gdebi to install the iscan-data first and then the main iscan package (and after that the plugin if necessary).

3) Running the Program

Now it's probably best to logout and login again and then switch your scanner on and go to the menu to find the iscan program in the graphics tab. Now start the program and your scanner should automatically be recognised and be ready for use.

(The example below is from another one of my scanners set up in the way described above.)


Random/invalid songs appearing on iPod Touch music streaming app?

This sounds like a bug around caching (for the "old songs don't go away from the cache" bit), and a very serious issue (around seeing songs that aren't yours).

For the first I'd ask that you file a bug.

The second I suspect is Ubuntu One picking up music from games or other things you also sync with us. To confirm this and so both of us sleep better, please contact support. With some account details from you, we'll be able to quickly figure it out.


Netplan not detecting MII uplink down on a bonded network interface

Edit 3
I had the same problem with ubuntu 20.04.
I could change the primary device of the bond but if I disconnect the nic's cable no failover routing happens.
MIIMonitorSec is properly set up in /run/systemd/network
Ah, after a full reboot and carefully restarting a ping probe it started to work.
Here is my configuration:
  network:
  version: 2
  renderer: networkd
  ethernets:
        eno1:
            addresses: []
            dhcp4: false
            dhcp6: false
        eno2:
            addresses: []
            dhcp4: false
            dhcp6: false
  bonds:
    bond0:
      dhcp4: no
      interfaces: [eno2, eno1]
      parameters:
        mode: active-backup
        primary: eno1
        mii-monitor-interval: 200
  bridges:
    br0:
      interfaces: [bond0]
      dhcp4: false
      dhcp6: false
      addresses: [192.168.1.2/24]
      gateway4: 192.168.1.1
      nameservers:
        addresses: [192.168.1.1]

test case1:

i.  ping foo.bar ii. (remove cable from primary bonding nic)
ping get stucks
iii. CTRL-C (abort ping)
iv. ping foo.bar # restart ping probe

Expect:
ping foo.bar
0.2 ms success
(..)
NIC Copper is down
package loss

ping foo.bar
0.2 ms success


CIFS shares do not mount after upgrade to 12.10 from 12.04

codepage option is longer time obsolete, but now you cannot mount with this option in /etc/fstab

So remove this option and try again.


It looks like the meta package is not installed for some reason.

You need to install it by this command

sudo apt-get install linux-generic

For Lubuntu 14.04 it will point to the latest 3.13.0-x kernel and will always update it to the latest one.

Currently it is 3.13.0-93.


How can I recursively list Md5sum of all the files in a directory and its subdirectories?

You could use find (in the directory)

find -type f -exec md5sum '{}' \; > md5sum.txt

If you want to exclude the md5sum.txt file itself, you can do so:

find -type f \( -not -name "md5sum.txt" \) -exec md5sum '{}' \; > md5sum.txt

You can also use a loop: turn on recursive globbing

shopt -s globstar

Then, in the directory:

for i in **; do [[ -f "$i" ]] && md5sum "$i" >> md5sum.txt; done

You can exclude the file itself from this one as well:

for i in **; do
  [[ -f "$i" ]] &&
  [[ md5sum.txt != "$i" ]] &&
  md5sum "$i" >> md5sum.txt
done

Neither of these produces a tree-like structure. But they do print the relative path to the file from the starting directory. If you want the absolute path, use find /path/to/directory ...

You might want to turn off globstar afterwards (shopt -u globstar)


A plausible workaround is to make your panel transparent in My Unity then add the image you want to use for the panel to the top of your background image. You can do this in GIMP utilising the layers feature.


Yes, it is safe to use version 2.1.6 - it is a stable and trusted version.

Ubuntu repositories (which are used by Software Center) do not have the latest versions of VLC.

This answer gives an explanation why.


16.04.5 - Wifi not working Matebook X Pro

My solution for the Huawei Matebook X Pro, linux-kernel version 4.16, is the following:

Determine the name of your Wifi-Device (mine was Intel® Dual Band Wireless-AC 8265)
Download the appropriate Firmware files (similar numbers also work) from the Intel Website
Unpack the .ucode file and put it in the folder /lib/firmware
Reboot your system

It should work immediately after the last step.


Writing udev rule for fixed mount point for hotswap SATA devices (Ubuntu 14.04)

Normally USB (removable) media are automatically mounted upon media insertion. If you want to suppress that, you can configure/tweak yr box:

open terminal (CTRL-ALT+T) and type in: $ dconf-editor
go to org.gnome.desktop.media-handling and check off the automount option

The above should take care of the automounter being turned off by default for all removable media devices.

Turning to the udev rule, you need to:

Check what yr devices' properties are; do in terminal:
$ udevadm info -q all -p $(udevadm info -q path -n /dev/sdXY)
where for each device X is a letter and Y a digit that correspond to each partition you want to mount on /media/disk01/ and /media/disk02/.
For each device partition note: DEVNAME, as well as the ID_MODEL_ID and ID_VENDOR_ID. The latter two consist of 4 alphanumerical characters each.
Check that DEVNAME correspond to the partition you want to mount.
In terminal, do:
$ udevadm info -a -p $(udevadm info -q path -n /dev/sdXY)
where /dev/sdXY stands for each one of yr DEVNAME values.
Look for the section where you recognize the values of ID_MODEL_ID and ID_VENDOR_ID as you noted them. It might be the "parent device" section, coming immediately after the top-most "device" section of the output
Write yr udev rules as:

In /etc/udev/rules.d/70_hot-swap-mount.rules:

  # to create mount-points and mount devices
  KERNEL=="sd[a-z][0-9]", ENV{ID_MODEL_ID}=="fill-in-model-id-here", ENV{ID_VENDOR_ID}=="fill-in-vendor-id-here", ACTION=="add", ENV{mount_options}="relatime", RUN+="/bin/mkdir -p /media/disk0Z", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/disk0Z"

  # to unmount devices and remove mount-points
  KERNEL=="sd[a-z][0-9]", ENV{ID_MODEL_ID}=="fill-in-model-id-here", ENV{ID_VENDOR_ID}=="fill-in-vendor-id-here", ACTION=="remove", RUN+="/bin/umount -l /media/disk0Z", RUN+="/bin/rmdir /media/disk0Z"

In the same rule, repeat all of the above for each of the two devices you want to mount. Values of ENV{ID_VENDOR_ID} and ENV{ID_MODEL_ID} will be different for each device and "Z" in /dev/disk0Z is either 1 or 2 as a function of the device being considered.

As per the link you provided as reference, you can indeed provide more sophisticated filesystem specific mount options by writing yr rules a little differently. Depending on the filesystem, that may include ownership, rwx access, etc.

For a tutorial, look at this.

HTH.


I got this fixed by doing the following

On your unity dash, type gnome-disks and launch the Disks application

Select the disk or drive you want to format

Press CTRL+F

Click format.

After formatting, the disk or drive would be unallocated, therefore you'll have to create a partition by using the plus button on the screen. Then insert the name you'll like to use as the drive or disk name then click on create.


How to copy favorites of chromium and other documents from the windows partition

start up ubuntu and browse to your windows install than find your chrome install and copy your browsers favourite folder to linux would that work?


You must be looking for Printer classes (No, not school)

Firstly disconnect both the printers.

Open "Printing" and you will be presented with such a window:

Press the Plus and select Class:

Create a new class:

Add the right printer to this class:

Repeat this process again for the other printer, If you have done this correctly you will get two new printers in your window, like this:

With one and two being the new classes. You will now me able to print to both the printers.


Computer seems to be frozen during reboot after installation. How long should the reboot take?

If your computer takes more than a couple of minutes, then something is definitely wrong.

First, try to restart again. Does that work?

If so, then it may have just been a fluke. It happens sometimes, for various reasons, and often a restart will make everything go smoothly (often, the computer will detect that something didn't go right and will try to fix the cause).

If not, does it stop at the same place? "Step 53" doesn't tell us anything, and probably isn't a step at all. Take a look at the text of the "step," as well as that of the "steps" before it. If it stops at the same place, what is it stopping at/what is the "step" before it? That might give an indication as to what's failing.

Do you have any printers or other USB or external devices hooked up? If so, unplug them and see if it can boot successfully. If it can, reintroduce the devices one at a time until you get it to break again. I've seen instances where a computer won't boot, or takes a long time to boot, due to a USB device (in my case, a printer) causing trouble. This may be due to a faulty cable, faulty port, or you've simply overloaded the power draw of that USB block. Replace cables or move where you have things plugged in as needed to get it to boot again with all devices.

If that doesn't work, try reinstalling the OS (if you want to be doubly sure, redownload the ISO, check the MD5 sum, and remake your boot disk). Sometimes, the copy process doesn't copy quite right, for a number of different reasons, and a reinstall fixes things.


F11 has suddenly become my screenshot key

OK - If I knew how to do it, I'd put a shame faced emoji here...
The problem was absolutely nothing to do with any of the changes I have made to Ubuntu... I had somehow simply managed to 'lock' the Dell keyboard function keys on, and of course, the Fn action attached to the F11 key is - you guessed, PrtScr!  Just like Caps lock and Num lock, it appears my Dell keyboard has a Fn Lock key too.  Jeez - I've been exclusively using Dell laptops for the last 10 years at work - and never knew this!!!
Apologies all - stand down - nothing to see here :-)


Transmission shutdown script for multiple torrents?

This information isn't passed to the scripts via environment variables, so you'll need to query Transmission's RPC interface. This is sometimes done by client libraries -- for example, a Python script could use python transmissionrpc. There are other interfaces like this listed at http://www.transmissionbt.com/resources/ .

Here's a quick approach that will use transmission-remote to count the number of non-idle downloads:

transmission-remote yourhost:yourport -tall --info | grep "^  State:" | grep "Down" | wc --lines

If you want to include idle downloads too, you could try this:

transmission-remote yourhost:yourport -l | grep -v -e " 100% " -e "^Sum" -e "^ID" -e " Stopped " | wc --lines

Where "^ID" and "^Sum" strips the header and footer; " 100% " strips completed torrents; and " Stopped " strips out the incomplete-but-paused torrents. This approach isn't foolproof -- for example, a torrent named " 100% Stopped " would break it.


Resize partitions Ubuntu 16.04 and Windows 10

First I would add 20GB not 10GB.

Next use Widows t move the NTFS partitons to the front so the free space is next to the linux partition.
Then, use gparted to grow the Linux partition.

This method allows you add space without actually moving the boot files that grub needs.

Another solution would be to make a new partition with the free space and move your /home folder to the new partition.


apt-get install nfs-common specific version

Here you can download the package in .deb . Another solution is to install through apt-get the closest lower version, which is available, ie. 1:1.2.8-6ubuntu1.1 if that would do.

EDIT 1

It installs easily too, at least from 1:1.2.8-6ubuntu1.1 up in case it doesn't.

EDIT 2

But you need to check yourself if it works alright. You will anyhow :-).


I had same problem for draftsight 2016 Sp1 in Ubuntu 16.04 and solved by install gstreamer0.10-x after I read this:

  qwerty1417235 commented on 2015-08-30 06:26:

  @Crispy24 installing gstreamer0.10-base instead of gstreamer0.10 and gstreamer0.10-plugins is ok. You should add it to depends.


How can I delete some strange squares that appears in my blender?

I solved the problem changing the active driver:

You have to try different drivers and restart the computer every time you change the driver


I think, this feature is not included in totem default movie player (yet), so just play with vlc, and adjust u'r subs with H and J button. Set vlc as default movie player by click gear button on top right, select About computer, then click Default Application, change video with vlc.


Not able to connect to wi-fi on Ubuntu in KVM

KVM virtualizes network devices. Even if your host machine (the physical one) is connected to WiFi, KVM will virtualize it internally as an Ethernet device. As far as I know, no virtualization solution virtualizes a Wireless adapter into another Wireless adapter.

If you want internet access on your VM, firstly ensure that your host machine has internet access (either via WiFi or Ethernet) and then choose the NAT mode in KVM. Also ensure that the link state is set to Active. Once you start up your VM, you should see a LAN connection established and you should be able to access the internet.


How to change CapsLock key to produce "a"?

Specifically, I don't know how to change CapsLock to a, because I don't remember the keycode. I'll find it a little later. But generally speaking, you can use xmodmap (and .Xmodmap) to change your keymappings. The first time GNOME detects your .Xmodmap file, it'll ask if you want to always load it, and then you're set.

I also think caps lock is silly. However, the key position is useful. I like mapping it to the Control key. I use control a lot, and it's tiring for my pinky to be constantly reaching down in that awkward position. And as I later found, historically Control is where Caps Lock is currently. Anyway. Create a file in your home directory called .Xmodmap with the following lines:

remove Lock = Caps_Lock
keysym Caps_Lock = Control_L

To make these changes take effect right this instant, run xmodmap ~/.Xmodmap.

You can find keycodes on your own using xev. Turns out the keycode for a is 38, or hex 0x61. So instead your .Xmodmap could be:

remove Lock = Caps_Lock
keysym Caps_Lock = 0x61

I highly recommend reading through the man page, lots of interesting stuff.


Cannot install Ubuntu 12.04.2 on Windows 8 in legacy mode, no partitions detected in gparted?

Chances are your partition table is damaged. There's a good chance that my FixParts program can fix the problem, but I can't promise that. You can either run it from Windows (using an Administrator Command Prompt window) or by using a Linux disc in its live CD mode. (IIRC, FixParts is included in the Ubuntu gdisk package, so you may need to install that.)


Fortunately it's only the extras repo that's not working. You can disable that in the software sources application or by editing the relevant file in /etc/apt. After that, the upgrade to 11.10 should work. It's also advisable to upgrade to 12.04 LTS after upgrading to 11.10 as 11.10 is only supported for a few more months and 12.04 LTS for at least 2 4 (see below) more years (and a few months).


Actually there is a package named as python-psutil for giving the process information using python codes .

you can get the package at here http://packages.ubuntu.com/lucid/python-psutil

There is one more helpful package to you named as PSI

PSI is a Python package providing real-time access to processes and other miscellaneous system information such as architecture, boottime and filesystems. It has a pythonic API which is consistent accross all supported platforms but also exposes platform-specific details where desirable.

More information here : https://bitbucket.org/chrismiles/psi/wiki/Home

one more link : https://stackoverflow.com/questions/2703640/process-list-on-linux-via-python


Searching for and deleting all files and folders containing the keyword baloo in the user directory /home/username/ solved the problem for me.


can you tell us a little more about what you tried and what went wrong?
In perusing their INSTALL file I see:

"Prerequisites:  You need, at a minimum, a C++ compiler; a Java; a
running Trader Workstation, available by download from
http://www.interactive.brokers.com/ ; MySQL; and Ruby."

Do you have all these installed?

C++ compiler (gcc) is available by installing the build-essential package.
"a Java" probably means a JVM. There are two available for Ubuntu as I recall. I recommend firing up Synaptic and searching on "Java" to see what's available and decide which you want. You can also get MySQL and Ruby through Synaptic AFAIK. The Trader Workstation appears to be available as a Java application from the referenced link (which appears to be broken- should be http://www.interactivebrokers.com/en/control/systemstandalone.php?os=unix&ib_entity=llc ).

I'm going to assume you have never compiled software before. In general, we'll use gcc to compile things from C or C++ or Pascal or the many languages gcc supports. The usual procedure is something like:

1) Download source code (usually a tarball or other archive)

2) Unpack archive into the location of your choice

3) Read README and other documentation to determine dependencies, expected paths to libraries, etc.

4) cd to directory containing Makefile

5) ./configure or make configure

6) make

7) make install

If the dependencies are properly installed, the code and supporting scripts are properly written and invoked, and the stars are properly aligned, you should now have a functioning binary. ;^)


removing exponential notation in text data


I had the same, with wayland wich is the default Ubuntu option. Choose Ubuntu (xorg) from the option wheel on the session connect panel and the menu will be back


Need an interface for a gui shell script more powerful than zenity

Yad may be useful in this regard, it is a fork of zenity with more features, one of them the ability to create forms.

Here is a very simple example of a form:

#!/bin/bash

frmdata=$(yad --title "Test Form" --form --field "Address" --field="Name")

frmaddr=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $1 }')
frmname=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $2 }')

echo $frmaddr > test.txt
echo $frmname >> test.txt

The above script will display a form like this:

After you enter your data and click ok or hit enter on the keyboard, the form data will be written to a text file called test.txt, I am using awk to separate the form data which is a string with a pipe as field separator, I believe there is a direct way to get the data without awk but I am no yad expert, please check the project home and ask questions, you may find a more elegant way.

How to get and install yad here:

http://www.webupd8.org/2010/12/yad-zenity-on-steroids-display.html

yad project home:

http://code.google.com/p/yad/

more examples here:

http://technostripe.com/yad-a-fork-of-zenity-with-more-features/

http://code.google.com/p/yad/wiki/Examples

I am late here but this may still be helpful.


Snapd consuming bandwidth from time to time

Periodically snapd will check to see if there are any updates to installed snaps (including the core snap you have installed).


How to install newest version of Texmaker on 12.10

The versions of the software you mention (Texmaker 3.2.1 and libpoppler-qt4-3) are those included in the Precise repositories. However, libpoppler-qt4-4 and Texmaker 3.4-1 are in the Quantal repositories and are listed here and here.

I should check whether you have upgraded properly and run sudo apt-get update to refresh your lists.

However, you can check the Software Sources gui (for example by going to update manager's settings) and see which repositories you are subscribed to, or perhaps edit your sources.list (see below), if inconsistencies have crept into it.

Note (for later readers): you should only carry out the following commands if you have upgraded successfully and are on 12.10.

So, at first open terminal and enter

cd /etc/apt

and then run

sudo sed -i 's/precise/quantal/g' *.list

That should change any erroneous instances of precise to quantal.

(If you wish, you can inspect it manually with gksudo gedit /etc/apt/sources.list)

Now run sudo apt-get update and you should be using the quantal repositories and thus able to install libpoppler-qt4-4 and everything else you want.


Show n files in each directory with tree command

tree as such does not have any options for this, but you can prevent it from printing files for directories with more than n entries:

$ tree /usr --filelimit 10
/usr
├── bin [3260 entries exceeds filelimit, not opening dir]
├── include [1110 entries exceeds filelimit, not opening dir]
├── lib [3700 entries exceeds filelimit, not opening dir]
├── lib32 [610 entries exceeds filelimit, not opening dir]
├── lib64 -> lib
├── local
│   ├── bin
│   │   ├── gpg1v -> /usr/bin/gpgv
│   │   └── vless
│   ├── etc
│   ├── games
│   ├── include
│   ├── lib
│   ├── man
│   ├── sbin
│   ├── share
│   │   └── man -> ../man
│   └── src
├── sbin -> bin
├── share [243 entries exceeds filelimit, not opening dir]
└── src

19 directories, 2 files


Startup logo has not changed since I removed KDE

With

sudo update-alternatives --config default.plymouth

you can switch between the logos. Just enter the number corresponding to the logo you want.

The Ubuntu one was installed automatically so you should be able to select it.

Afterwards run

sudo update-initramfs -u


I don't think PPAs work any more.

The most popular way NOW is: https://github.com/flexiondotorg/oab-java6
NOTE: build .deb from OTN binaries and set up a local repository, install from there.

You can run update-alternatives --config java and see installed JDK/JRE and configure.


Do I really have SATA 6 Gb/s if I get <400 MB/sec disk reads?

Well I was going to point you to How to know if hard drive supports Sata3 (6Gb/s) but your question is not what Sata version is supported but if the 400 you are seeing are in fact Sata3.

TIPS WHEN SELECTING A GREAT SSD DRIVE

I actually made a benchmark test with 3 hard drives on the same motherboard found here in Spanish and the things I learned from it were:

Not all SSD companies tell you the truth. I don't mean the "in theory it should achieve speeds of..." truth. I mean "I tested this and all I got was this lousy T-shirt". With this I mean that, one thing is what they tell you the SSD can achieve, another is what it actually achieves.
Not all SSD models from the same company achieve the same speeds. Or worse, maintain the same speeds for months.
Your favorite SSD company might actually be worse than that other new weirdly named company.
The motherboard can actually have a huge impact on the SSD's performance.

BENCHMARK (Samsung vs Intel vs Kingston)

Here is the information I gathered while I tested the following models (Noticed I changed the notation to BYTES, not BITS since we want the real world truth):

Intel 520 Series 120GB SSD which mentions in theory a READ speed of 550 MB/s and a WRITE speed of 500 MB/s.
Kingston SSDNow V300 120GB which mentions in theory a READ speed of 525 MB/s and a WRITE speed of 500 MB/s.
Samsung PRO 256GB which mentions in theory a READ speed of 540MB/s and a WRITE speed of 520 MB/s.

BENCHMARK (Results)

I got the following results from 10 tests with the Disks benchmark tool and 3 more with hdparm:

For the Intel, it showed an average of 465 MB/s (READ) & 329 MB/s (WRITE) with the Disks Benchmark. With hdparm I got an average of 398 MB/s (READ).
For Kingston which was the one I assumed would be the best of all 3 got an average of 404 MB/s (READ) & 298 MB/s (WRITE) with the Disks Benchmark. With hdparm I got 376 MB/s (READ).
For Samsung, the Disk Benchmark had a problem doing the Write test, so I could only do the READ test which gave me a 555MB/s. hdparm gave me 519MB/s (READ). Now, since I don't like to leave things half-baked, I did a normal test (10 times) of copying a file from one place to another on the same SSD. I first tried 1GB but it was too fast to test and find an average. I then tested 2GB, then 5GB and at last got to 10GB (Or 10.2GB to be exact) to test this. The average WRITE speed landed at 753MB/s.

So My first thought of seeing the Kingston as the fastest was wrong. Even my second thought of the Intel being the fastest was wrong. It was Samsung. Now I did the test right now again and got a speed of 716MB/s (WRITE). The drop might be X variable on the system but the speed nevertheless is very high.

BENCHMARK (Changing Motherboards)

Here are the impacts if I change motherboard (The previous test was done on an Asus Z87 PRO updated with the latest firmware). If I jump to an Intel DZ68DB which also advertises Sata3 (6.0Gb/s), all SSD drop between 40% to 60% of their speed with the Asus). This is how important the motherboard is. If you have a low cost motherboard with a high cost SSD, well, you just wasted your money on the SSD because of the limiting factor the motherboard will have on the SSD. To give you an idea, the Samsung was doing a 265MB/s READ speed and a 212MB/s WRITE on the DZ68DB. That's a huge drop.

Now here is an update for the ASRock H61M/U3S3 & the Gigabyte GA-H77M-D3H.

With the ASRock using the Disk utility 10 times, the Intel SSD got 140MB/s (READ) & 110MB/s (WRITE). the Samsung SSD got 180MB/s (READ) & 123MB/s (WRITE). I don't have the Kingston right now but you can guess from the other two how it would go with it.

With the Gigabyte using the Disk utility 10 times, the Intel SSD got 241MB/s (READ) & 209MB/s (WRITE). the Samsung SSD got 312MB/s (READ) & 295MB/s (WRITE). Again I don't have the Kingston right now but you can guess from the other two how it would go with it.

CONCLUSION

On all cases, hdparm, dmidecode, dmesg and any other HDD/SSD reading tool showed that I was "capable" of using Sata3, but the actual READ/WRITE speeds where not met to the speed one assumes to get from using Sata3 because it varies greatly between motherboards, SSD models and any other variable in between.

With all of this said and done, to answer your question: Is 400MB/s a Sata3 speed?

Yes, yes it is. Sata2 would really limit you from around 180Mb/s to 250MB/s in a real world scenario. Sata3 would push the boundaries well above the 300MB/s. But this is also affected by the motherboard, SSD model & SSD manufacturer.

On Hard Drive Benchmark which I always check to see which SSD to buy or recommend I found that your Crucial MX100 has 3 types of sizes, of which, only 2 appear in that list, the 512 & 256 versions. Each one with their scores. So here are the scores of the benchmarked SSDs I tested with the 3 types:

Intel 520 Series 120GB - 3699
Kingston SSDNow V300 120GB - 2514
Samsung PRO 256GB - 3536
Crucial MX100 256GB - 2916
Crucial MX100 256GB - 3729  (Model 2)
Crucial MX100 512GB - 3480

From the scores one would think the best is the Model 2 of Crucial, followed by Intel, but one would be wrong. Factors like motherboard, firmware version (For both, mobo and SSD), operating system and even BIOS/UEFI settings can change everything.

For my current case, enabling TRIM on the Samsung gave me a boost of about 150MB, which lands me in the 500+ Speeds. I actually did not know TRIM could change the speed until I enabled it. Another factor was updating the Asus firmware.

So yes, you are using Sata3, especially with a 365MB/s speed but something (Maybe motherboard, firmware, the actual SSD, the SSD cable, the geographical location, the altitude, Santa claus, some weird freaky alien electrical monster living inside your computer case, etc....) can have an effect on the actual performance. BTW, some motherboards when using old hardware connected to it, can somehow limit the performance of the rest. For example, having an old PATA CD-ROM or DVD-ROM connected can have a negative performance on the drive. Same goes for a 3.5 Floppy drive (I mean come on O.o).

Updating Ubuntu to a more recent version can have most of the time a positive impact on performance, especially if you read the performance improvements on the 3.14, 3.15 and 3.16 kernels.


You must installed java on your system to install .jar files.Syntax to install .jar files was,

java -jar packagename.jar

In this case,you have Minecraft.jar file,so type the below command in terminal

java -jar Minecraft.jar


There is no way, as far as I know, to use multiple dongles for one connection. You could use two dongles to connect your PC to two different Wifi signals (like 1 on your WiFi and the other on your neithbor's WiFi), but that's not what you asked.

Therefore, you will have to use the most performant adapter you own.

In general, your USB WiFi dongle will have better results. You can monitor your wireless connection with the command :

iwlist scanning

First, use this command while your are connected with the built-in chips.
Then use it again with your USB adapter connected, when the built-in one is not used.

Choose the most performant one.

How-to : read the iwlist scanning results

Go to the wlan section (wlan0 by default), that means "WiFi".
Cell 01 is the first signal recieved, Cell 02 is the second one, etc.
To have a "human-readable" name, check the ESSID line, for each Cell. That is the name your WiFi has, the same name you must clic on to connect with Ubuntu.
Once you have identified your signal section, check the Quality line, and mainly the Signal level line, expressed in Decibels (dBm)

-> This is what we were looking for ! The signal strength in dBm represents the quality of your reception, thus the quality of your WiFi Adapter.

In dBm, the higher is better. Note that the dBm number is a NEGATIVE number, so -68 is higher than -91 (so : -68 dBm is a better quality than -91 dBm).

Another thing :  You will notice the Frequency line in the iwlist scanning results. If you leave near other people who also have a Wifi connection (your neightbors for example, or other people living in the same building, ...) and use the same Frequency as you do, you may want to change the frequency you are using.

Why ? Because using the same frequency as others can mess up your transmission, other WiFi acting like parasites to you, and you acting like a parasite to other's signal.

You can change easily the frequency of your WiFi by choosing another Channel or another Frequency in your Internet Box options (not sure of the english name for Internet Box... I mean the electronical device where your WiFi signal come from, the thing that's plugged into the wall in your house).


cannot execute iexplore.exe when I create a symbolic link to it

That is because you need to create a script (a wrapper of sorts) to make WINE find the .exe correctly.

Here's an example:

Create the link (as you did in your question).
Open a text editor and type the following:

wine /path/to/link

Save the file as iexplore.
Make the file executable.
Place this file in /usr/bin.

An alternative method (if the link still causes issues) is to copy the iexplore.exe file /usr/bin and simply tell the script to point to it:

wine iexplore.exe

A third option would be to point the script directly to the file:

wine /path/to/iexplore.exe


Any way to make plank work in Ubuntu 17.10?

The error says that "only X11 environments is supported". So probably you are logged in on Wayland. Log in with Gnome X.org instead and you wil be on X11.