DISCLAIMER: I am a green Linux user, the information I present here is taken from a similar problem and resolution in another forum.  I have also applied these steps to my own machine and verified that it works on my machine.  I do not endorse this as a generally accepted solution for all variants of this scenario.  This is a "works for me" solution I present and I realize that it may also work for others.  I would definitely familiarize yourself with grub before proceeding.

The Problem

The problem as noted is implicated in the following dmesg lines:

[ 11.278410] hid-generic 0003:1B1C:1B11.0002: usb_submit_urb(ctrl) failed: -1
...
[ 21.334396] hid-generic 0003:1B1C:1B11.0003: timeout initializing reports

This is adding about 30 seconds to your boot-up time.  The device it is complaining about isn't the actual keyboard controller, rather, it's the keyboard LED back-light controller (which technically isn't a keyboard) and doesn't know what to do with it.  If your keyboard is like mine (I have the K70) then it has two USB cables, one for the back-light and the other for the keyboard.

Solution - Add USB HID Probing Quirks for the Kernel

Run the following command from terminal:

lsusb | grep -i '1B1C:1B11'

To verify that the device that dmesg complains about is in-fact your Corsair K95 Keyboard.  Alternatively you can run lsusb -v | less and visually confirm that the report descriptors are unavailable for this device.

Add the following flag to your grub2 configuration:

usbhid.quirks=0x1b1c:0x1b11:0x20000000

NOTE: The 0x1b1c:0x1b11 corresponds to your back-light controller verified using lsusb and reported in dmesg.

NOTE: The 0x prefix is important, without this prefix the parser will fail.

The simplest way to do this is to edit your /etc/default/grub file and add it to the GRUB_CMDLINE_LINUX_DEFAULT variable.  This is what mine looks like for my Corsair K70 Keyboard (do not simply copy/paste this as yours is likely different!):

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbhid.quirks=0x1b1c:0x1b13:0x20000000"

Save your changes and run:

sudo update-grub

Now reboot your machine and you will experience a faster boot to login time.


How do I get RMS Express to work in Wine/Ubuntu14.04

I got it to work on Mint 17, which is based on Ubuntu 14.

Used Wine 1.8, set the arch to 32bit and the Windows version to Win 7
Use a newer winetricks to set the sound to ALSA
Then you have to set up links to com ports and edit the registry

http://dcj21.net/how-tos/install-rms-express-linux


Installed Ubuntu 16.04 on MSI GL62, installing NVidia drivers leads to login loop

I had the same problem. My solution was:

REINSTALL SYSTEM
Do the following:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-361
sudo add-apt-repository -r ppa:xorg-edgers/ppa

Check what is the latest nvidia driver for your card and switch the number in sudo apt-get install nvidia-361.

Now everything works fine.


Keyboard/Mouse working before install but not after install on Aspire V3-551 laptop

Since your Elantech touchpad doesn't show up in xinput list, it seems there is some issue in the kernel parameters. Please follow me:

Check if you have a file named crc_enabled at /sys/devices/platform/i8042/serio2/  if yes, check if its content shows 0x00
If its 0x00 then change it to 1
Now at /etc/default/grub alter the GRUB_CMDLINE_LINUX_DEFAULT line as GRUB_CMDLINE_LINUX_DEFAULT="quiet i8042.nomux=1 i8042.reset" and sudo update-grub
Reboot

P.S. If there is no 'crc_enabled' file in the above directory, you can very well create one and take things forward as described.

Hope this will solve your matter. If not please check this Arch Linux page for more detailed info.


Is there a tested walkthrough on how to set up android studio and Android SDK?

UBUNTU 15.10 USERS....READ ALL THE COMMENTS TOO TO UNDERSTAND THE EASIEST WAY TO INSTAL UBUNTU MAKE ON YOUR COMPUTERS.
First method: using Ubuntu Make
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt update
sudo apt install ubuntu-make
umake android  //It will also download Open-JDK-7 if it's missing

Second method: install Oracle Java and Android Studio
Install Oracle Java 8 via repository
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Install Android Studio:
sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio

Additional: Creating desktop icon and uninstalling AS
Create a desktop file
.Create a new file androidstudio.desktop
nano ~/.local/share/applications/adndroidstudio.desktop

and add the lines below
[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec="/opt/android-studio/bin/studio.sh" %f
Icon=/opt/android-studio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=android-studio

Uninstall Android Studio :
umake android --remove

Visit also: How to install Android Studio on Ubuntu?
If you have any question, please free to ask


ubuntu 15.10 Startup screen flickering after login complete

Try this method for login flash back:

Start the computer, Press Alt + Ctrl + F1 to login the terminal
$login:
$password:
sudo chown -R $USER:$USER $HOME

This resolved my problem in ubuntu 15.04.

All the best.


HP Notebook - dmesg suggests to use hid-rmi driver 'psmouse.synaptics_touchpad=1' instead of old driver - rmi driver not working

This driver (i2c_i801) is blacklisted in ubuntu. See /etc/modprobe.d/blacklist.conf. You can try to comment out the line that says: blacklist i2c_i801,
but you may experience suspend issues. If your touchpad freezes after resuming from suspend, try adding rules for unloading (rmmod) the module pre-suspend and reloading it (modprobe) post-resume. See: man systemd-sleep. Good luck! :)


Free software to share mouse and keyboard between linux and windows?

A search on alternativeto (and filtering by Open Source & Linux) returns Barrier, which is forked from Synergy.

There used to be small print on the Synergy website stating that the payment is to download synergy. It's still open source, and you can might be able to build it yourself, but it might need proprietary binaries.


For some reason I want to set the system date to earlier month but I am unable to set it

uninstall "ntpdate" package will disable automatic time sync. To do it, run this command in the terminal

 sudo apt-get remove ntpdate


<(...) aka process substitution is bash syntax, and you're executing this in sh (note that your error starts with -sh). It seems your login shell is sh, not bash, for some reason. The simplest way here would be to switch to bash, and then run the command:

$ bash
$ bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )

Ask your system admin how to change your login shell to bash.


Show *realtime* mouse cursor coordinates? (Cursor mod / overlay) Also, copy to clipboard?

Spartan solution: you can show the coordinates in real-time with xdotool if you create a bash script. Just execute this in a new Terminal:

while true; do xdotool getmouselocation; sleep 0.2; clear; done

Change the value after sleep to make it more or less "real-time". This requires bash, the default user shell in Ubuntu.

Better solution: if you have admin rights, install watch (sudo apt-get install watch), and then execute this in a new Terminal:

watch -ptn 0 "xdotool getmouselocation"

It uses xdotool but does not require bash.

Thank you b_laoshi for your suggestion!


How to allow scrolling to view complete command output in the command-line?

Make the scroll buffer larger. For the default terminal see edit  > profiles  > edit > scrolling and increase "limit scrollback". Example:

That will make it show more lines when you scroll up.

You can also use

compgen -c | more
compgen -c | less
compgen -c | most

(most  requires it to be installed sudo apt-get install most) to make it show 1 page at a time.

Or if you have a LOT of lines that even the buffer has trouble with put the result in a text file and view that one.

compgen -c > temp.txt
vi temp.txt

vi you can use things like :2 to go to page 2.


Ubuntu Getting Mount error in VMWare workstation

The problem might arise because of corruption of root file system and file system is not getting mounted.

Try This:

1.Boot from the Ubuntu Live CD;

2.Open/Run Terminal;

3.Type: sudo fdisk -l [ENTER] to get device name;

Determine the correct partition form output .For me it was "/dev/sda9"

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   102414335    51206144    7  HPFS/NTFS/exFAT
/dev/sda2       102414436   625136791   261361178    f  W95 Ext'd (LBA)
/dev/sda5       102414438   212953484    55269523+   7  HPFS/NTFS/exFAT
/dev/sda6       212963328   357175295    72105984    7  HPFS/NTFS/exFAT
/dev/sda7       409609368   625136791   107763712    7  HPFS/NTFS/exFAT
/dev/sda8       403466240   409608191     3070976   82  Linux swap / Solaris
/dev/sda9       357177344   403454687    23138672   83  Linux

4.Type: sudo fsck /dev/sda9[ENTER];

5.Restart the system


How do I undo an accidental installation of all Perl modules?

Looking at this a bit closer, I don't think that you need to or should delete any directories or files on your system.

Running the command perl -MCPAN -e 'upgrade' from the command line will not install additional modules onto your system.

It will only attempt to upgrade installed modules, through the CPAN package management system, and not through Synaptic.

This is similar to running the 'r' command and then running the upgrade command at the cpan[1]> prompt. See  here.

CPAN and Synaptic are two separate and distinct package management systems.

This will not install all possible Perl modules from CPAN. Nor will it modify the existing system package dB. So, you can definitely roll this back safely.

However, this is still potentially risky if an application or your system depends upon a particular version of a Perl module.

If you have interrupted the upgrade process, chances are good that you have avoided harming your system.

Recovery options:

From a command line, start cpan, and run the command r to see the list of installed modules and available upgrades. For example, here is the abbreviated output from my cpan:

cpan[7]> r

Package namespace         installed    latest  in CPAN file
App::Cpan                    1.5701      1.61  BDFOY/App-Cpan-1.61.tar.gz
DBD::mysql                    4.020     4.022  CAPTTOFU/DBD-mysql-4.022.tar.gz
DBI                           1.616     1.623  TIMB/DBI-1.623.tar.gz
DB_File                       1.821     1.827  PMQS/DB_File-1.827.tar.gz
Error                       0.17010   0.17019  SHLOMIF/Error-0.17019.tar.gz
Eval::Closure                  0.06      0.08  DOY/Eval-Closure-0.08.tar.gz
....

Take the Eval::Closure module, for this example. Let's say that you let the perl -MCPAN -e 'upgrade' command complete and you now have version 0.08 installed.

Looking at Synaptic, in this case, it will show that the latest version in the repository will still be 0.06(0.06-1, specifically, in my instance).

You can roll back to your system version, by running the following command:

sudo apt-get install --reinstall libeval-closure-perl

If you have installed any Perl modules manually and want to roll them back to a previous version, you will need download them again (either from source.cpan.org or elsewhere), and manually re-install them.

To summarize: Upgrading Perl modules within CPAN should not affect your system repository.

Best of luck. Don't panic.


Try using these below steps:-

Install the package xserver-xorg-input-libinput
Uninstall xserver-xorg-input-evdev
Uninstall xserver-xorg-input-synaptics
Reboot and see if things work better.

got these steps from 16.04: Elantech touchpad not working on new laptop , and it worked for me


On ubuntu 20.04 LTS can not install postgis

Remove the existing repository first, you had the one from Bionic, that's what causing the problem to begin with. Assuming it is resided on /etc/apt/sources.list.d/pgdg.list.

sudo rm /etc/apt/sources.list.d/pgdg.list

Now add the correct repository for your system.

echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update
sudo apt install postgresql-12-postgis-2.5


run "sudo update-grub" from a livecd, or from your installation if you have a livecd just in case


How to fix OSError: [Errno 1] Operation not permitted (when opening file with sublime text 2)

In general when you have a file that give you this error, try from terminal next command:

sudo chown your_username:your_groupname filename

The groupname is usually just your username and filename, in your case case should be: /home/rubix/.config/sublime-text-2/Pristine\ Packages/AppleScript.sublime-package


Unable to save files in Firefox, /tmp has become read-only after upgrade

It looks like your "/" has been remounted to "ro" most likely due to "errors=remount-ro".  Check your /var/log/syslog and "smartctl -a ".

We had this happened to us once when the hard drive was on the brink of total failure.  You want to act quickly because it deteriorates very fast.


Shows grub command lines when I boot up Ubuntu

If it's an EFI-mode boot, you can:

Boot anything you can boot, such as an Ubuntu installation disk in its "try before installing" mode.
Identify the EFI System Partition (ESP). This is normally the first or second partition on the disk, although it can be something else. It's a FAT partition with a "boot flag" set in parted or GParted, or with a type code of EF00 in GPT fdisk (gdisk, sgdisk, or cgdisk).
Mount the ESP.
On the ESP, delete the EFI/ubuntu directory tree.


Ubuntu software updating never finishes (Ubutntu 16.04)

Run the update in a terminal.

Open terminaL:

ctrl-alt-t

Update software repository:

sudo apt update

Upgrade software:

sudo apt upgrade

Then you can see in the output where the problems are.


Does Ubuntu have support for the Apt-X codec for bluetooth audio?

As you can find on wikipedia Apt-X is a "family of proprietary audio codecs". That's another way of saying they want money for it. While open source is good in many things, it's a legal problem to circumvent Apt-X patents and implement it without paying.

Hence, at present Apt-X support on Linux is very unlikely, at least as long it is not as widely spread as say mp3...


I want to Remove Arduino IDE 1.8.3 "No Such File or Directory"

To uninstall arduino, either...

In terminal...

sudo apt-get purge arduino arduino-core

or

If the arduino folder is in your home folder...

In terminal...

cd ~/arduino-1.8.3 # use the exact folder name here
sudo ./uninstall.sh


Photoshop CS2 under Wine 1.4 Messes up Unity Desktop

answering because is says script to restore Unity 3D without rebooting will do.

create a file wherever you like(I will create in /usr/bin)

gksudo gedit /usr/bin/restore-unity give pass and paste

#!/bin/bash

sudo killall compiz
compiz --replace

in gedit then close gedit. now you have script named restore-unity in /usr/bin/.
give execution permission.

sudo chmod +x /usr/bin/restore-unity

to run, open terminal and run

restore-unity

Note:  run this as command( alt+F2 ). if you run this from terminal you have to keep terminal running if you interrupted or closed terminal thing will get messed up.

Or

to make it persistent even if terminal is closed just use prefix nohup

thats it.


mythconverg_backup.pl crashes with error: Can't use 'defined(@array)'

From perldoc ( 5 version 24.0 )

Use of defined on aggregates (hashes and arrays) is deprecated. It
used to report whether memory for that aggregate had ever been
allocated. This behavior may disappear in future versions of Perl. You
should instead use a simple test for size:
if (@an_array) { print "has array elements\n" }

So for you just go the line 1070 of mythconverg_backup.pl and remove the define function from there . For example:

if( defined @an_array ) change it to if( @an_array )


grub2 removed "quiet splash" options are ignored

I've seen this happen when the framebuffer text mode isn't properly supported. Uncomment the line:

#GRUB_TERMINAL=console

(remove the #) and run update-grub as superuser again. So it should read:

GRUB_TERMINAL=console

If you expect to see GRUB2 itself, make sure to adjust the timeouts.

Note: this will give you the classic 80x25 text mode instead of the framebuffer text mode with higher resolution.


The USB bug is actually a HW issue, as I get it in both Windows and Lubuntu.
Turns out that shutting down (if you can, my system freezes up and REISUB doesn't work) and then disconnecting Power to the Power Supply for a few minutes fixes the problem.

Here's a thread where I found the workaround: SOLVED USB 2/3 device descriptor read64, error -110


You can actually install and run plasma from Gnome if you so desire. It should work, despite having a lot of KDE dependencies, just add it to the startup programs. I am testing this right now, if you would like this option, I will report back to you.

There are also a few programs in the software center that allow you to use desktop applets. Search for gdesklets and screenlets. Here are articles:

http://en.wikipedia.org/wiki/Screenlets

http://en.wikipedia.org/wiki/Gdesklets

Linux is quite modular. :)


What are these files like Zone.Identifier:$DATA and how to prevent them?

I found the place to disable them, at least in WinXP.  Run gpedit.msc and then configure as below:


Encrypt a file and destroy all unencrypted copies

Yes, that makes sense. Someone stealing your HDD could perform a forensic analysis and might find your original file. This is very unlikely though. If this is a real concern for you, you can use shred.

With RAM, I suppose the risk vanishes once you power off your computer.


OK, I return to other old version, and this works. according to the file /usr/share/bash-completion/completions/apt.

alias ai='sudo apt install'
alias ap='sudo apt purge'
alias au='sudo apt update && msg 列表已经刷新 || msg 刷新失败'
alias ag='sudo apt upgrade'
alias as='apt list'
alias aw='apt show'
alias aa='sudo apt autoremove'

_show_installed()
{
        local cur
        COMPREPLY=()
        cur=`_get_cword`
        COMPREPLY=( $( _xfunc dpkg _comp_dpkg_installed_packages $cur ) )
        return 0
}
_show_all()
{
        local cur
        COMPREPLY=()
        cur=`_get_cword`
        COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) )
        return 0
}
complete -F _show_all $default aw ai as
complete -F _show_installed $default ap


For one-off manpage reading, just point man at the specific file:

man ~/.local/share/man/manX/manpage.1.gz

Otherwise, if you want to always check ~/.local/share, then set the MANPATH environment variable for your user session (typically in your .bashrc file). To check what the current MANPATH is, do:

manpath

you'll probably want to append :$HOME/local/.share/man to the end of that.


ATI/AMD drivers don't support ubuntu 15.10 (really support 15.10, but don't support kernel version after 3.19)
U need to wait fix/new version of drivers with 4.x kernel support.
Or downgrade to 14.04 LTS =)


Weird error appearing randomly in terminal

I may be wrong but I think It's just like a built in reminder letting you know that you ACPI is out of date.
If I am right then doing in the terminal:

sudo apt-get update
sudo apt-get upgrade

will fix your little issue.

Note: Doing the upgrade will take approx. 10-30 minutes depending on internet speed


How do I run QEMU with a 64-bit processor on a 64-bit machine?

I asked myself the same question a few days ago and couldn't figure it out. Now I see your list (perhaps I couldn't find how to get this list?) and the obvious choices seem to be kvm64, qemu64 and host. I also tried core2duo and phenom, they also work.


Using cd command to navigate directories in Ubuntu which have special characters

That error is happening because the ! (bang) is a shortcut that allows you re-run a command from your history.  Ex: This command re-runs command #1504 from my history.

$ !1504

To avoid that issue, try encapsulating your directory name with single quotes.

$ cd '!)e$!gn&(reate'

That being said, while Ubuntu (Linux) will let you name directories in this way, I would highly recommend against it.  Using special characters in directory names can make them difficult to read, and if you are using a reserved character you will always need to escape it or encapsulate the directory name in quotes.


It's a partial fix for a bug LP #1883568
Both packages, fwupd and fwupd-signed should be installed. One was uploaded, the other was uploaded later. So there was briefly a version mismatch, which prevented the new fwupd from installing.
There is Bug report on the mismatch: LP #1883595, and the fwupd-signed package has been uploaded to -proposed. Time to be patient.
Simply wait until fwupd-signed catches up, then both will install together automagically.
Do not try to force the newer version using dist-upgrade or full-upgrade. If you already did, then simply ensure that you have both packages installed.


I have seen a way to do it in https://launchpad.net/ubuntu-read. You should have a look at it.


Haroopad not starting and prompt of "NVCtrl extension does not exist" message

It appears that this is a problem with libffmpegsumo.so

See this. A replacement appears to be available on a link on this page.

rename the old libffmpegsumo.so to libffmpegsumo.so.bak,  place the replacement libffmpegsumo.so in the same location as the original.


Black Screen during Screen Share in Ubuntu 18.04

Fix #1:

Install xcompmgr using your Linux distro's package manager.

sudo apt install xcompmgr

After installing, open the terminal and run this command:

xcompmgr -c -l0 -t0 -r0 -o.00

Open compton.conf

gedit ~/.config/compton.conf

Edit the following line:

shadow-exclude = [ "name = 'cpt_frame_window' " ];

Fix #2:
Run Ubuntu on Xorg instead of Wayland.


Gimp 2.0 export only in JPG regardless what I choose

The file name in the file at the top tr2alekos.jpg ends in .jpg so Gimp saves as a JPEG. The Selector on the right is just a filter for the display, what counts for the file type is the selector on the left (the one that currently says Select File Type (by extension)). With that selector:

if set to Select File Type (by extension), then what counts in the extension in the name of the file at the top.
if you open it and click one of the format descriptions, then Gip will use that format. The extension of the file name at the top is changed accordingly, but you can override that by rewriting the extension, and save a PNG in a .JPG file or vice-versa (you will get a warning but you can override).


Thunar - can I change the sorting method for one specific folder?

I can't find a current official link indicating that it is not possible to sort one folder differently than the rest but a similar feature was requested quite a while back: http://mail.xfce.org/pipermail/thunar-dev/2006-September/003425.html.


Multiple parallel sessions as a single user

The purpose behind it is perhaps "just because". If that feature irritates you, you should be able to switch it off by removing the sessions menu in the display manager (LightDM, SDDM) login configuration, if possible.


Missing mfc140u.dll error when trying to run GOG Galaxy using PlayOnLinux

Consider adding it to your lutris cloud library and then running it.


xubuntu - in a bash script find all folders with an emblem

Emblems are stored as metadata using special metadata::emblems attribute.
You can get the emblem for needed file by executing the following command:
gio info -a "metadata::emblems" ~/folder/filename

So this can be scripted using find, grep with command like shown below:
find ~/Desktop -type f -exec sh -c "gio info -a metadata::emblems '{}' | grep emblems && echo '^ found in {}'" \;
on my Ubuntu MATE and Xubuntu systems it returns the icon with emblem:

 metadata::emblems: [development]
^ found in /home/user/Desktop/filename

Searching for certain emblem is possible, you can adapt the search command by yourself.


Probably you don't want a 4G partition table, a 4G partition,
and a 4G filesystem on your 8G card, but that's what you'll
get when you use dd. This should work, unless you have bad blocks
on your 8G, which dd will just assume are good. To use the
additional space, you would need to expand the
partition, resize the filesystem, and maybe then
edit the /etc/fstab file for new UUIDs.
  The alternative is to partition the 8G disk the
way you want it, setting the size of root, and deciding
if you really want swap.  Format the partition(s) with
the filesystem you want -- maybe no journaling on an
SD card, so ext2 or ext4 without journaling. Copy
the files over with any copy program which can copy file
attributes and not follow links (look at the option switches).
tar works just fine with the following:

cd /mnt/4g

sudo tar -cf - * |(cd /mnt/8g;sudo tar -xpBf -)

Get the new UUIDs with

 sudo blkid

Edit the /etc/fstab with the new UUIDs.
Install grub to the 8G disk (assume it's sdc)

 sudo grub-install --boot-directory=/mnt/8g/boot   /dev/sdc

Bad blocks on the target card should be recognized and
avoided, so you get a working system without a perfect
card.


Need some help with installing steam on my acer chromebook

Steam was primarily concieved as a gaming service for Windows with support for Intel/AMD CPU instruction set.

As the unidentified Aceer chromebook in question has an ARM CPU, there are no 32bit packages in the repositories for aarch64 architecture, including Steam and its dependencies. Because of this, it is not possible to install Steam on that machine.


As ZZzach... indicated, the ~/.bashrc file was in the root folder i.e /root, rather than the home folder /home/user. This is the reason why the commands were read while I was running the terminal as root, and not as a normal user.

The solution was to copy the file to /home/user folder.


Unistall what you've installed;
Install proprietary drivers if needed;
Remove any steam ppa's;
Install Steam package directly from Software Center or Synaptic.

https://wiki.ubuntu.com/Valve


Unity doesn't handle Compiz Window Previews. Should I file a bug report?

File a bug ;). I've encountered problems too but I wasn't sure if it was only me :).
When you file the bug edit your question and add a link to it btw.


Do i have to create 2 swap partition if i want to install Ubuntu and Kali in different Hard drive but same Machine

You can share a swap partition. When Ubuntu is running it will use Swap. When you reboot and pick Kali it will be using the Swap inactive Ubuntu is no longer using. Chances are with 8GB or more of RAM and average work load neither OS will be using Swap.

Note that when if you hibernate your system the Swap partition could be used to hold RAM contents before power is cut to the chips. I believe this shouldn't be a problem because when it wakes from Hibernation it will go to the same OS it hibernated from, or at least I hope it does.


Is there an unofficial Box.com client for Linux?

I found box-linux-sync on github, but it's a command-line interface.


To view your current shell use:

echo $0

$SHELL prints the default shell.


how to remove image files that are smaller than certain dimensions

rm doesn't read filenames from input. You can probably do:

find . -iname "*.jpg" -type f -exec bash -c 'for i; do size=($(identify -format "%w %h" "$i")); (( size[1] < 300 || size[2] < 300 )) && rm -v "$i"' remove-files {} +

You can use -exec instead of xargs.

The bash command:

for i
do
    size=($(identify -format "%w %h" "$i"))
    (( size[0] < 300 || size[1] < 300 )) && rm -v "$i"
done

loops over all the input arguments (for i)
gets the size and stores it in an array (that's why there are parentheses around $(): ($(identify -format "%w %h" "$i"))
uses shell arithmetic (( )) to do the comparison


The solution to your request is Input Method.

What you have described is something familiar to most CJK language users.   Let's review how input method works in current Linux systems.

The Input Method system

Here's a simple architecture for a common input method system:

NOTE: I snapshot this image from The X Input Method Protocol. Some of the arrows are irrelevant to following discussion.

Historically, XIM (the X Input Method protocol) was the only protocol. It's overly complex and lacks some desired features. So it's mostly abandoned, though compatibility is still provided by popular toolkits like GTK, Qt.

A modern input method system contains several parts:

Client-side library support

typically implemented as a module loaded by toolkits (e.g. for GTK, see /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/)

Input method server
X server

How do these parts fit together?

A user types a key. X server receives the hardware event from evdev interface, composes a XEvent and sends to the application under keyboard focus. The application toolkit (GTK, Qt) input method module intercepts the event and passed the info to input method server. The input method server figures what the user may want and passes some text back to the IM module.

Now, let's talk about the architecture of the IM server.
An IM server typically consists of two parts:

An IM framework which handles platform specific intricacies and provides a nice interface to IM engine and toolkit IM modules. It provides the IPC mechanisms used by the IM module, server and engine.
Various IM engines do the actual work of transforming user-typed keys to desired text. IM engines can be shared libraries loaded by the IM server or independent processes communicating to the IM server.
Auxiliary input method configuration programs provides friendly user interface for customizing the IM server and engine behaviors.

All in all, what an IM does is to transform what you type to something different and optionally provide predictions.

An example

We use ibus-pinyin here to type some Chinese characters.

The romanization of 汉语拼音 is han yu pin yin. At, first you need to type all these letters to get the four Chinese characters. But after a few times, you just need to type the four initial characters h y p y to get the Chinese character.

In the ibus-pinyin case, han yu pin yin is shortened to h y p y.
More advanced IM engines utilize statistical learning techniques to provide better prediction. Nothing can stop you from writing a English input method engine to provide a typing boost.

As a bonus, all toolkits have input method support except some plain old X programs. So this is a quite universal solution.

Thanks to Anders F. U. Kiær. Features / Typing-Booster | Fedora Project Wiki should be the answer


PlayOnLinux error while using Internet Explorer

Repair wine or Reinstall it........because it was crashed and currently PlayOnLinux supporting some games for GNU/Linux so be aware for that.

sudo apt-get -o Dpkg::Options::="--force-overwrite" -f install wine1.6

sudo apt-get -f install


How do I install Dan's Guardian on 12.04?

Dan's Guardian 2.10 (the version you're trying to compile) is available in the official 12.04 repositories.

Simply run:

sudo apt-get install dansguardian


Not with nautilus, the default file manager in gnome. This feature has been discussed

http://live.gnome.org/Nautilus/Undo

And there is a patch http://ubuntuforums.org/showthread.php?p=8689961

But I am not sure if the patch is working.

There are other options, Dolphin, the default file manager in KDE has support for this. You could install and use Dolphin in the gnome version of Ubuntu (or use Kubuntu if you otherwise prefer KDE).

http://docs.kde.org/stable/en/kdebase-apps/dolphin/quick-tips.html


X Error of failed request: BadValue (integer parameter out of range for operation) when executing gzserver within docker

The environment variable DISPLAY=:0.
Most probably this is set somewhere in the dockerfile as

ENV DISPLAY :0

or in the docker-compose.yml as

environment:
  - DISPLAY

If the display and rendering is not needed, remove the declarations above or unset this variable via

unset -v DISPLAY

in order to work around the problem.


At login, brightness goes to minimum, fastly goes back to maximum and didn't change anymore

Run in terminal

sudo -H gedit /usr/share/X11/xorg.conf.d/20-intel.conf

The editor will open. Post there this text

Section "Device"
        Identifier  "card0"
        Driver      "intel"
        Option      "Backlight"  "intel_backlight"
        BusID       "PCI:0:2:0"
EndSection

Save the file and reboot.


Delete gnome desktop and now update "failed to fetch"

Start at boot into the GRUB menu
Select Recovery Mode for your latest kernel
Activate the network
Open the root shell

Now you have a network and can do what you need.


Make xinput settings permanent after boot

Option 1:

Edit /usr/share/X11/xorg.conf.d/40-libinput.conf

And add there 2 lines to the first section before EndSection:

Option "AccelProfile" "flat"
Option "AccelSpeed" "-0.9"

Like this

Section "InputClass"
    Identifier "libinput pointer catchall"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "AccelProfile" "flat"
    Option "AccelSpeed" "-0.9"
 EndSection

Option 2:

Use evdev instead of libinput.

Option 3:

Add the 2 commands into "Startup Applications"


how do I get the Hanvon graphic tablet driver?

Please do not compile drivers, you will loose either security updates or your new driver when you get security updates.

Instead all drivers should be installed using a dkms package, these are special packages which will be automatically compiled for you when a new kernel version is installed.

I noticed that there was no dkms package for the hanvon driver, so I made one for you and uploaded it to my ppa here:

https://launchpad.net/~doctormo/+archive/wacom-plus

You can add the ppa for precise using the instructions on that page, once you have it run:

sudo apt-get update
sudo apt-get install hanvon-dkms

This will install the driver as supplied from http://forschung.wi.uni-passau.de/~ond/hw/hanvon/ with no extra configuration. it will keep the driver installed not mater how many updates.

Please let me know if this works and how well it works since I don't have a hanvon tablet to test it. I suspect the tablet will only work if it's plugged in when you start ubuntu and won't plug-and-play, please test this and let me know.


Black screen and call stack trace showing after kernel update

This indicates an error in the Linux kernel. The screen you see is supposed to serve the developer to figure out what went wrong. It is unlikely to happen again. In the case it happens you can reboot you computer with Ctrl+Alt+S-Abf+r, Ctrl+Alt+S-Abf+e, Ctrl+Alt+S-Abf+i, Ctrl+Alt+S-Abf+s, Ctrl+Alt+S-Abf+u,Ctrl+Alt+S-Abf+b.

After you booted the next time, run sudo dpkg --configure -a and sudo dkms autoinstall in a terminal to resume your update.

It's pure speculation whether the error is related to the updates or caused by the changes introduced without understanding, the latter is more likely, though. If the kernel crashed you can't do much more as a user than cross fingers that the journal of filesystem will recover correctly. Those crashes are not supposed to happen on the stable release versions of Ubuntu if they don't occur in third party kernel modules (e.g. dkms modules)! You can send a bug report to the linux kernel developers by following https://www.kernel.org/pub/linux/docs/lkml/reporting-bugs.html. The handling of the information on the screen you see it described on http://users.sosdg.org/~qiyong/lxr/source/Documentation/oops-tracing.txt in detail.

If you want to get started to understand and debug kernel crashes, start by learning to read the stack trace, how to use the Linux Magic System Request Key Hacks (I listed some of them without explanation above) and how to set up the kernel to produce more logging information (see https://www.kernel.org/doc/Documentation/sysrq.txt for details) so that you can reduce the cause for the crash step by step until a reproducable test case. Then you can create accurate issue reports on http://bugzilla.kernel.org or hack the kernel yourself and populate the patch.

See also What is kernel panic?.


The computer, in most cases, will boot off the HDD first.  Therefore, you will either have to change the boot sequence in the BIOS or choose which medium to boot off of.  The button F12 usually gives the option to choose which device to boot from.  The options available should be visible at the bottom of the screen when the computer boots up.


Ubuntu Gnome 16.10 gnome-control-center crashes and can't open settings

I was running into the same issue and I realized that I just upgraded my NVidia drivers. I reverted back to the previous version and the issue was resolved.

Hope that helps.


How do I dual boot with existing Windows on SSD and new Ubuntu on HDD?

Yes, just connect the HDD to the computer and launch the Ubuntu installer. It will detect the drives connected to the system. If that's not the case, just launch terminal from the live mode and mount your drive.

  Also, is the Ubuntu experience on an HDD satisfactory?

The word satisfactory mean different things to different people. It depends on what you do with your PC. But for most cases, HDD would be far better for Ubuntu. It boots up pretty fast from an HDD.


SSH login wakes spun-down storage drives

I was also struggling with this exact issue for a while, having tried audits, the mentioned udisks rule etc. But finally it was blktrace and blkparse that gave me the final hint of the problem: my sleeping disks were accessed by dumpe2fs on ssh login.

Apparently, the following script was the offender, scanning all drives to display which drives will be checked for errors at the next reboot on your motd at login.

  /usr/lib/update-notifier/update-motd-fsck-at-reboot

The script only executes once every hour max, so that explains why it wasn't happening consistently. See lines 21-24:

if [ $(($stampt + 3600)) -lt $now ] || [ $stampt -gt $now ]; then
    #echo $stampt $now need update
        NEEDS_FSCK_CHECK=yes
fi

I decided to disable the automatic check on my system by replacing the variable assignation to : (do nothing). You could also increase the minimum time difference of 3600 seconds to something like a day or a week. But I found it preferable to run the script with --force during midnight maintenance when all my disks are awake anyhow. Since this script is purely informational it should be safe to just replace it with return 0 if you're not interested in this information.

I hope this helps anyone having the same or a similar issue. Even if it's another culprit on your system, I found blktrace and blkparse invaluable for diagnosing the problem.


Password checking takes long even though it's not wrong

Check your DNS settings. Sometimes it cannot resolve even localhost if the line is missing from /etc/hosts.


The guides I followed when I had 12.04 were:

Hadoop 2 Deployment on Ubuntu
Michael Noll's Hadoop (Single Node)
MyLearning Hadoop on Ubuntu 12.04 (Single Node)

I was actually opposed to the MyLearning one because the first thing it recommended was Oracle Java 7 instead of OpenJDK 7, but I had some issues with OpenJDK 7 when trying this out so I had to go with Oracle.

The guide is mostly straight forward and here it is:

Install Java

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install oracle-java7-installer

Create Hadoop user

sudo addgroup hadoop
sudo adduser --ingroup hadoop hduser

Where hduser is the Hadoop user you want to have.
Configuring SSH

su - hduser
ssh-keygen -t rsa -P ""
cat .ssh/id_rsa.pub >> .ssh/authorized_keys

To be sure that SSH installation went well, you can open a new terminal and try to create ssh session using hduser by the following command:

ssh localhost

reinstall ssh if localhost does not connect (you may need to add hduser to sudo as below step)

sudo apt-get install openssh-server

Edit Sudoers

sudo visudo

Add at the end the line to add hduser into sudoers

hduser ALL=(ALL:ALL) ALL

To save press CTRL+X, type Y and press ENTER
Disable IPv6

sudo gedit /etc/sysctl.conf

or

sudo nano /etc/sysctl.conf

Copy the following lines at the end of the file:

#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

If you face a problem telling you, you don't have permissions, just run the previous command with the root account (In case sudo is not enough. For me it was)
Now reboot.

You can also do sudo sysctl -p but I rather reboot.

After rebooting, check to make sure IPv6 is off:

cat /proc/sys/net/ipv6/conf/all/disable_ipv6

it should say 1. If it says 0, you missed something.
Installing Hadoop

There are several ways of doing this, the one the Guide suggests is to download from the Apache Hadoop site and decompress the file in your hduser home folder. Rename the extracted folder to hadoop.

The other way is to use a PPA that was tested for 12.04:

sudo add-apt-repository ppa:hadoop-ubuntu/stable
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install hadoop

NOTE: The PPA may work for some and for others will not. The one I tried was to download from the official site because I did not know about the PPA.
Update $HOME/.bashrc

You will need to update the .bashrc for hduser (and for every user you need to administer Hadoop). To open .bashrc file, you will need to open it as root:

sudo gedit /home/hduser/.bashrc

or

sudo nano /home/hduser/.bashrc

Then you will add the following configurations at the end of .bashrc file

# Set Hadoop-related environment variables
export HADOOP_HOME=/home/hduser/hadoop

# Set JAVA_HOME (we will also configure JAVA_HOME directly for Hadoop later on)`
export JAVA_HOME=/usr/lib/jvm/java-7-oracle

Now, if you have OpenJDK7, it would look something like this:

export JAVA_HOME=/usr/lib/java-7-openjdk-amd64

The thing to watch out for in here is the folder where the Java resides with the AMD64 version. If the above does not work, you can try looking in that particular folder or setting the Java that will be in used with:

sudo update-alternatives --config java

Now for some helpful alias:

# Some convenient aliases and functions for running Hadoop-related commands
unalias fs &> /dev/null
alias fs="hadoop fs"
unalias hls &> /dev/null
alias hls="fs -ls"

# Add Hadoop bin/ directory to PATH
export PATH=$PATH:$HADOOP_HOME/bin

Configuring Hadoop

The following are configuration files we can use to do the proper configuration. Some of the files you will be using with Hadoop are (More information in this site):

start-dfs.sh - Starts the Hadoop DFS daemons, the namenode and datanodes. Use this before start-mapred.sh

stop-dfs.sh - Stops the Hadoop DFS daemons.

start-mapred.sh - Starts the Hadoop Map/Reduce daemons, the jobtracker and tasktrackers.

stop-mapred.sh - Stops the Hadoop Map/Reduce daemons.

start-all.sh - Starts all Hadoop daemons, the namenode, datanodes, the jobtracker and tasktrackers. Deprecated; use start-dfs.sh then start-mapred.sh

stop-all.sh - Stops all Hadoop daemons. Deprecated; use stop-mapred.sh then stop-dfs.sh

But before we start using them, we need to modify several files in the /conf folder.

hadoop-env.sh

Look for the file hadoop-env.sh, we need to only update the JAVA_HOME variable in this file:

sudo gedit /home/hduser/hadoop/conf/hadoop-env.sh

or

sudo nano /home/hduser/hadoop/conf/hadoop-env.sh

or in the latest versions it will be in

sudo nano /etc/hadoop/conf.empty/hadoop-env.sh

or

sudo nano /etc/hadoop/hadoop-env.sh

Then change the following line:

# export JAVA_HOME=/usr/lib/j2sdk1.5-sun

To

export JAVA_HOME=/usr/lib/jvm/java-7-oracle

Note: if you get Error: JAVA_HOME is not set Error while starting the services, you forgot to uncomment the previous line (just remove #).

core-site.xml

Now we need to create a temp directory for Hadoop framework. If you need this environment for testing or a quick prototype (e.g. develop simple hadoop programs for your personal test ...), I suggest to create this folder under /home/hduser/ directory, otherwise, you should create this folder in a shared place under shared folder (like /usr/local ...) but you may face some security issues. But to overcome the exceptions that may caused by security (like java.io.IOException), I have created the tmp folder under hduser space.

To create this folder, type the following command:

sudo mkdir /home/hduser/tmp

Please note that if you want to make another admin user (e.g. hduser2 in hadoop group), you should grant him a read and write permission on this folder using the following commands:

sudo chown hduser:hadoop /home/hduser/tmp
sudo chmod 755 /home/hduser/tmp

Now, we can open hadoop/conf/core-site.xml to edit the hadoop.tmp.dir entry.
We can open the core-site.xml using text editor:

sudo gedit /home/hduser/etc/hadoop/core-site.xml

or

nano /home/hduser/etc/hadoop/core-site.xml

Then add the following configurations between <configure> xml elements:

<property>
  <name>hadoop.tmp.dir</name>
  <value>/home/hduser/tmp</value>
  <description>A base for other temporary directories.</description>
</property>

<property>
  <name>fs.default.name</name>
  <value>hdfs://localhost:54310</value>
  <description>The name of the default file system.  A URI whose
  scheme and authority determine the FileSystem implementation.  The
  uri's scheme determines the config property (fs.SCHEME.impl) naming
  the FileSystem implementation class.  The uri's authority is used to
  determine the host, port, etc. for a filesystem.</description>
</property>

Now edit mapred-site.xml

<property>
  <name>mapred.job.tracker</name>
  <value>localhost:54311</value>
  <description>The host and port that the MapReduce job tracker runs
  at.  If "local", then jobs are run in-process as a single map
  and reduce task.
  </description>
</property>

Now edit hdfs-site.xml

<property>
  <name>dfs.replication</name>
  <value>1</value>
  <description>Default block replication.
  The actual number of replications can be specified when the file is created.
  The default is used if replication is not specified in create time.
  </description>
</property>

Formatting NameNode

Now you can start working on the Node. First format:

~/hduser/hadoop/bin/hadoop namenode -format

or

./home/hduser/hadoop/bin/hadoop namenode -format

You should format the NameNode in your HDFS. You should not do this step when the system is running. It is usually done once at first time of your installation.
Starting Hadoop Cluster

You will need to navigate to hadoop/bin directory and run the ./start-all.sh script.

cd ~/hduser/hadoop/bin/
start-all.sh

If you have a different version from the one shown in the guides (Which you will most likely have if doing this with the PPA or a newer version) then try it this way:

cd ~/hduser/hadoop/bin/
start-dfs.sh
start-mapred.sh

This will start a Namenode, Datanode, Jobtracker and a Tasktracker on your machine.
Checking if Hadoop is running

There is a nice tool called jps. You can use it to ensure that all the services are up. In your hadoop bin folder type:

jps

It should show you all Hadoop related processes.

NOTE: Since this was done around 6 months ago for me, if there is any part not working let me know.

Hadoop Using Juju (A Juju Charm for Hadoop)

Taken from Charming Hadoop

I will assume the following is already set up:

You have a server with Juju already set
You have access to the server (Locally or remotely)
You have Juju configured and ready to start adding charms
You are using 12.04 (This is because I tested all of this with 12.04)
You have already configure ~/.juju/environments.yaml with the information regarding the server you will be using including the PPA origin.

Ok now follow this steps to have a Hadoop service running:

Bootstrap the environment for Hadoop

juju bootstrap

Wait until it finishes then check to see if it is connecting correctly:

juju status

Deploy Hadoop (Master and Slave)

juju deploy --constraints="instance-type=m1.large" hadoop hadoop-master

juju deploy --constraints="instance-type=m1.medium" -n 5 hadoop hadoop-slave

Create Relations

juju add-relation hadoop-master:namenode hadoop-slave:datanode

juju add-relation hadoop-master:jobtracker hadoop-slave:tasktracker

Expose Hadoop (Since you already deploy and created relations the service should be running)

juju expose hadoop-master

And check status to see if it working correctly:

juju status hadoop-master

Up to now you have a running Hadoop. There are many more things you can do that can be found in the link provided or in the official Juju Charm for Hadoop

For up to date JuJu Charms (Setups, Step by Step guide and more) you can visit: JuJu Charms and make your own JuJu Environment and see how each file is setup and how each service connects.


Can apt-check detect a kernel upgrade needed for security in absence of linux-generic?

Your question is a bit convoluted but I think it boils down to the single question in the title, so that's what I'm going to address.

How Apt selects package to upgrade

No, the Advanced Package Tool, the way it is intended, cannot install new packages (e. g. linux-image-*-generic) automatically unless another package depends on it. It only upgrades already installed packages automatically and replaces their previous version in the process.

This is one reason why we use meta-packages like linux-image-generic: to make Apt aware of new packages to install without the need to replace older versions. We do this for kernel packages because it would be difficult to replace the currently running kernel and because people want to revert to an earlier, known-to-work kernel version more easily in case anything goes wrong.

Furthermore, Apt doesn't know or care about the semantics of version numbers. All it cares about is the order of version number strings and a list of available versions to select the most suitable one for installation based on a configurable rating system. The package (repository) managers are responsible for the incorporation and publication of upstream changes incl. security fixes in replacement packages with a suitable version string.

What that means for apt-check

Now that we covered Apt in general, I can address how that affects your question regarding update-notifier, the package that provides apt-check: like Apt it cannot be aware of new packages to install if those don't depend on already installed or scheduled to be installed packages. If you don't have linux-image-generic installed then Apt won't see new kernel packages and neither will update-notifier when it queries Apt for upgradeable packages.

What if I really want this feature?

Of course, as with most things in Linux, you're welcome to write a tool that searches for patterns among all available packages to install them (semi-)automatically. I at least don't know any on-board tools that can do this though this task seems generic enough that I wouldn't be surprised to see a script for this that some admin hacked together.


Unable to Unmount partition in Virtual Box

Virtual box is creates an environment in which the OS can run INSIDE another partition.  When you install a virtual box drive, it creates a compressed file containing the entire OS that you installed (Ubuntu in this case), as well as some Virtual Box software dependencies to make it all run.  It will not be detected by any partitioning software.

With this in mind, it might be easier to think of the Virtual Box Drive as a large, 125GB application or file, rather than a partition.

If you have allocated too much space to the Virtual Box drive, you have to open the Virtual Box Manager, and delete the entire drive and start over.

Virtual Box Drives only get bigger, not smaller.  All that 125GB of data is being used, mostly by trash data, with only ~8GB or whatever space you have there allocated for Ubuntu.

Think of the trash data as the blank white space on a picture.  It's not empty, it's white (but in this case, many bytes of data).  With that in mind, remember that that file, 125GB will always have that white space, and repartitioning from WITHIN the virtual Ubuntu OS will only create a smaller partition, with junk blank partition space, which will still belong to the 125GB file.

TL;DR

You have to delete the virtual drive altogether, from the Virtual Box Manager, and restart from scratch with a more desirable setup.


Ubuntu for phones - cannot find any Carrier

from: https://wiki.ubuntu.com/Touch/ReleaseNotes (dated 2013-07-28)

  Telephony

  The Developer Preview currently only supports limited voice and SMS over GSM and WCDMA.

  The following Radio technologies are not yet included in the Developer Preview:

    CDMA

    LTE

    Airplane Mode

    Settings ( eg. APN choice, 2G only, … )

I also suggest reading the ubuntu-phone team mailing list archive

https://lists.launchpad.net/ubuntu-phone/maillist.html


CPU Frequency is allways the lowest possible (and high CPU usage)

Dead battery
A battery below 5% charge is a critical issue and all sorts of exceptions will be implemented by the software. This might include limiting speed until battery goes above 10-30% charge. Which in your case would never happen. You could probably pick up a used / refurbished battery fairly cheaply on eBay or Amazon.

Set to Performance governor in cpufrequtils
From this Ask Ubuntu answer, follow these steps:
Edit the following file (if it doesn't exist, create it):
sudo nano /etc/default/cpufrequtils

And add the following line to it:
GOVERNOR="performance"

Save and exit.
For changes to immediately take effect without rebooting, run:
sudo /etc/init.d/cpufrequtils restart

Then you can run cpufreq-info to see informations about your cpu frequency, governor and more:
$ cpufreq-info
current policy: frequency should be within 800 MHz and 3.90 GHz.
          The governor "performance" may decide which speed to use
          within this range.

From another answer Setting to High Performance: you can see CPU frequency differences between Powersave and Performance governors:
Performance Mode
In performance mode you will then notice CPU% utilization drops by about 5% but also notice speed will increase from about 1000 MHz to 3000 MHz and temperatures will spike by ~10 degree, depending on your processor:

Powersave mode

Switching back to powersave mode CPU% utilization has spiked by 5%, but CPU frequency has dropped by 1500 MHz and temperature has decreased by about 10 degrees. Overall powersave mode is the best for most configurations.


backup harddrive, so it can be restored perfectly

Since you are most familiar with Windows, and need ready access to your data files, I would suggest using Macrium Reflect Free Edition (http://www.macrium.com/reflectfree.aspx).  This will allow you to make a full backup of your hard drive, create a rescue disk so that you can restore it without having Windows loaded, and provide the facility to mount the disk image as a virtual disk under Windows in order to access the individual files and folders using Windows Explorer.


How to know the time/date of when the packages are installed?

I'd improve on things simply with:

$ zgrep -sh ' install iperf' /var/log/dpkg*
2013-02-21 14:07:46 install iperf:amd64 <none> 2.0.5-3

zgrep doesn't care if you hand it uncompressed data so it's just easiest to use that. Obviously if you need every install you could remove iperf and see everything, but it seems more logical to search down on that at the same time.


Send an email from the localserver using PHP

In short: choose Internet Site as a configuration and use fqdn for Mail System name (if you use localhost it will be classified as spam most likely).

Problem is, for some of the mail servers nowadays it will not be enough (for example, gmail tends to classify such configuration as spam).

What else will you need:

MX DNS record (a DNS record, that will point to appropriate IP as a Mail target for given domain - you can check it with host -t MX domain)
postconf -e "myhostname = [hosts fqdn]"
postconf -e "myorigin = \$myhostname"


User not in group despite /etc/group contents

Restarting solved the problem. I logged out and back in twice (the second time just to be sure I hadn't screwed something up somehow), but it seems to take a reboot for the new group association to take effect.

Sorry for the wild goose chase everyone. Is this something particular to Ubuntu (or Ubuntu Mate or 18.04)? I don't seem to remember having to fully reboot to associate users with groups before. I thought you just had to log out and back in if the user you were assigning was currently logged in.


No such key “idle-delay” in org.gnome.desktop.screensaver

Use idle-dim instead of idle-delay
You can accomplish your goal through a different setting:
gsettings set org.gnome.settings-daemon.plugins.power idle-dim false


Google Pixel not picked up by "adb devices"

I was also getting errors trying to connect my Pixel device:

AA69M0123456   no permissions (verify udev rules); see [http://developer.android.com/tools/device.html]

Even after setting up udev rules, unplugging/replugging, adb kill-server/startserver, re-enable developer options on the phone, etc... it still wouldn't connect.

It was because the phone USB mode was set to Charge this device. Switching it to Transfer files (via the notification menu) finally made it work.


Can I mount single folders in a 2nd HD to a master folder I have on my main HD?

Each disk partition has an identifier, i.e. /dev/sda1, /dev/sdb2 and so on. You can mount, or map, any of these to any "point" on the filesystem, point meaning a "directory". So what you want can be achieved no problem.

Say the new hard disk you add is /dev/sdc1 (I'm thinking since you have 3 hard disks already, but please change if your drive letter is different). In a nutshell, you'd have to do this:

Mount the new device manually in /mnt: sudo mount /dev/sdc1 /mnt
Copy stuff from the old folder to the new device: cp -a /Videos/TV/* /mnt
Move the old folder out of the way (don't delete yet, until you're sure it's all working well): mv /Videos/TV /Videos/old-TV
unmount new device: sudo umount /mnt
Create mount point (empty directory to which the new device will be attached): mkdir /Videos/TV
mount new device to mount point: sudo mount /dev/sdc1 /Videos/TV

If you now go to /Videos/TV you should see all the files you have in the new device. Also, if you issue the df -h command, you should see a list of devices, space usage and mount points.

Note that in order to make step 6 permanent, you need to add an entry in /etc/fstab:

/dev/sdc1 /Videos/TV  ext4  defaults  0  0


Bash searches for inexistent directories upon opening terminal

You need to remove these lines in /home/ani/.bashrc:

# Add iraf setup commands
if [ -e /home/ani/.iraf/setup.sh ]; then
source /home/ani/.iraf/setup.sh

You can do this command line with

vi /home/ani.bashrc

scroll down to "# Add iraf setup commands" and press esc once and dd 3 times. :wq! to save.

Same goes for the files /home/ani/.bash_login and /home/ani/.bash_profile.

By the way: the way this command is set up I would assume that /home/ani/.iraf/ exists. You probably also need to do a rm -r /home/ani/.iraf/ to remove the hidden directory iraf. If you only do this the commands in those 3 files will skip the sourcing of the setup file. But you'd still have junk in those files.


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

cd /tmp
wget http://people.canonical.com/~roman.yepishev/us/qtsslrequest.py
python qtsslrequest.py

sudo apt-get install --reinstall ca-certificates


Does using a live USB session overwrite an erased HDD?

If you keep the preselected option 'Try Ubuntu without installing' when booting up the Live USB, it will not touch your HDD.


You should not use rm -r unless you are sure it is correct to do so. ReMoving something recursively will delete the directory and everything in it, even if it's got real data in it that you need.

/media is where all external drives are mounted automatically.  You don't need to make the mount point first.

I suggest that you safely unplug or unmount all external hard drives and then remove all directories that have been made under /media/

Just

sudo rm -r /media/directory_name

would be safest and easiest.


Command-line program to manage trackpoint speed, sensitivity, etc... without restarting session

Below is a bash script I made to set the values on the fly. To use, put the script in ~/bin/trackpoint (user bin) or /usr/bin/trackpoint (global bin) and make it executable.

trackpoint <option> to get the value
trackpoint <option> <value> to set the value
trackpoint --values for a list of all option values
trackpoint --help for a list of options (just a list of files in $tp_root).

Tested on Ubuntu 14.04. Calls sudo to write values to file.

#!/bin/bash
# trackpoint
# Gets or sets a trackpoint configuration option
# Example - get sensitivity:
#    trackpoint sensitivity
# Example - set sensitivity to 160:
#    trackpoint sensitivity 160

# tp_root locator command from http://askubuntu.com/a/144185/151944
tp_root=`find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/input\/input[0-9]*\/name$//'`

option=$1
value=$2
me=`basename $0`
fail() { echo "Error: $@" 1>&2; exit 1; }

[ -d ${tp_root} ] || fail "Invalid tp_root: ${tp_root}"

option_list=`find ${tp_root} -maxdepth 1 -type f -printf '%f '`;
[ ${option} ] || fail "please provide an option to set or get. Option must be one of: ${option_list}"
[[ ${option} == *--help*  ]] && { echo -e "Usage: ${me} option_name [value_to_set]\n\nGets or sets a trackpoint option.\n\nTo get a list of all values use:\n   ${me} --values\n\nAvailable options:\n   ${option_list}"; exit 0; }
[[ ${option} == *--values* ]] && { for f in `find ${tp_root} -maxdepth 1 -type f -printf '%f '`; do { echo $f; echo "   $(cat ${tp_root}/${f})"; } done; exit 0; }

file="${tp_root}/${option}"
[ -f ${file} ] || fail "option must be one of: ${option_list}"

[ -z ${value} ] && { cat ${file}; exit 0; }

[ ${value} -gt 255 ] && fail "$option cannot be greater than 255"

echo -n ${value}| sudo tee ${file}

echo ""


Couldn't find synaptics properties after reboot. No synaptics driver loaded?

If you just want to automatically load the psmouse module at boot edit the /etc/modules file, and add it there.

sudo gedit /etc/modules

and add it to a new line there.


How do I use EasyBCD as bootloader with Windows 8 and UEFI?

First, the last I heard, EasyBCD was useless for managing a Windows/Linux dual-boot on an EFI-based computer, so I recommend you stop trying to use it.

Second, given your current situation (as specified in your Update), there are several possible solutions. The two easiest are:

Run Boot Repair. I know you said you've tried this, but it's not clear if you've tried it since the change to the situation in which you can boot Ubuntu but not Windows. If not, it's worth trying Boot Repair again.
Install my rEFInd boot manager. Installing the Debian package in Ubuntu is the easiest way to do this, although it's a bit safer to try to use the CD-R or USB flash drive version first, and install the Debian package only if the CD-R/USB flash drive version can boot both your OSes. rEFInd is less finicky about booting Windows than is GRUB, so it might fix the problem.

If neither of these methods fixes your problem, please post back with a fresh URL for your latest Boot Repair run.

Update: First, be sure that Secure Boot is disabled.

Next, are you able to boot via the rEFInd USB flash drive or CD-R image? If so, try this:

Boot to Linux.
Open a Terminal window.
In the Terminal, type sudo efibootmgr to find all your current boot entries.
In the Terminal, type sudo efibootmgr -b 0000 -B. This deletes the Boot0000 entry.
Repeat step #4, replacing 0000 with each Boot#### number identified in step #3. (Your Boot Repair output suggests you'll have 0000, 0001, 0002, 0004, 0005, 0007, 0008, 2001, 2002, and 2003.
Type sudo efibootmgr -c -p 2 -l "\EFI\ubuntu\grubx64.efi" -L "Ubuntu". Note the backslashes used as directory separators.
If you've installed rEFInd to the hard disk after running the last Boot Repair, type sudo efibootmgr -c -p 2 -l "\EFI\refind\refind_x64.efi" -L "rEFInd".
Reboot.

If all goes well, rEFInd should pop up, or at least GRUB, and you should be able to boot both Linux and Windows.

If the rEFInd CD-R or USB flash drive doesn't work, you could try the same from a Linux live CD that's booted in EFI mode.


Partitioning to enable dual boot windows 7 and ubuntu reinstall

I'm assuming that your hdd is currently being taken up by Windows 7 and you are wanting to do a dual-boot and want Ubuntu to take up 30GB.

The easiest way to do this, is to have Windows 7 installed first, and then install Ubuntu. When you start the install, it will specifically ask if you want to shrink Windows and add Ubuntu alongside. Choose that option, and it will let you specify how big you want the Ubuntu partition. In your case, set it to 30GB and it will do all of the work for you.


Eclipse Juno, need root access everytime I change the configuration

How to install Eclipse Juno WITHOUT the need to change permissions

First, remove all previous versions of Eclipse.  If you would like: save your /workspace directory (cut and post the entire directory into your ~/
Download Eclipse from their official website (I used "eclipse-mobile-juno-linux-gtk-x86_64.tar.gz") But like was stated earlier, make sure that you have 32 and/or 64 bit versions of java available to match your Eclipse install. (I have BOTH openjdk-6 and -7-jre installed from Synaptic Package Manager)

You can add package pieces later if the eclipse-mobile installation doesn't contain everything you want. For example, Linux Tools here.
Other package instructions are available from the download page, via the links on the left.

To avoid permissions issues, I unpacked it to ~/bin and archive manager put Eclipse into its own 'eclipse' subdirectory there.
Download the Android SDK, and so that future upgrades of Eclipse and Ubuntu don't break it, unpack it to ~/bin/eclipse/dropins.
Developer.android.com instructs you to:

  On Mac or Linux, open a terminal and navigate to the tools/ directory
  in the Android SDK, then execute android sdk.

However, when I downloaded the linux version of Android SDK, there was no file "android sdk."
Instead, navigate to to the tools path (in my case ~/bin/eclipse/dropins/android-sdk-linux/tools) and [right-click] on "android" to change its properties to executable.

Now you can double-click to run android, and download the packages you like.

Since everything is in your home directory, you don't need to modify your PATH environment variable (as per the developer instructions).

Download and install the ADT plugin from http://developer.android.com/sdk/installing/installing-adt.html as per the normal instructions.

Configure the plugin with the path used, in this example /home/clayton/bin/eclipse/dropins/android-sdk-linux
If you want to install more packages from step-8 after step-9, from the Eclipse drop-down menu choose Window > Android SDK Manager

Navigate to ~/bin/eclipse and make sure you mark "eclipse" as executable as well (see step 7 for a refresher). [Right-click] and [Make link].  Move this shortcut to the desktop.

I went to the extra step of changing the icon for eclipse to the provided "icon.xpm" in the same subdirectory.

From step 1, move your "workspace" directory...or don't.  But specify it as your application workspace in the dialog and you'll be able to import any existing projects with ease (those instructions would be for a different Q&A).


Answered at http://ubuntuforums.org/showthread.php?p=9449490, #6 likely solution steps. Dell 4010 Atheros wired ethernet driver not in kernel 10.04 64.


No, you shouldn't mess with those directories: there's a good reason why you cannot modify them by default.

You use the Ubuntu Software Center or the command apt-get (in a terminal) to install new software on Ubuntu. While you have not learned the basics of Linux, it's not recommended you modify these directories by hand.

For example, to install the Chromium browser via the terminal you run:

sudo apt-get install chromium-browser

Or graphically,

Open the Dash (tapping the Windows/Super key)
Type software center and select Ubuntu Software Center
Search for chromium web browser on the software center
Install the search result (you can read a description of the app, too).


How can I add a custom launcher to favourites in Gnome Shell?

There are two simple methods:

Just dragging the application icon to from the list of applications to the left should create the favorite.
Right clicking any application icon and hit "Add to favorites"

This is more complicated, thus should only be used if you want something done form the terminal:

dconf read /org/gnome/shell/favorite-apps

Will return:

['firefox.desktop', 'chromium-browser.desktop', 'evolution.desktop', 'empathy.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'libreoffice-writer.desktop', 'nautilus.desktop', 'yelp.desktop']

Here, you have to treat it as an array, so you must know the name of the application .desktop file, ie. gparted.desktop for Gparted. Copy the same output and add the one you want.

dconf write /org/gnome/shell/favorite-apps "['firefox.desktop', 'gparted.desktop', 'chromium-browser.desktop', 'evolution.desktop', 'empathy.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'libreoffice-writer.desktop', 'nautilus.desktop', 'yelp.desktop']"

This will add Gparted as second element of my favorites. Please be mindful of the syntax that has to be ['application.desktop', 'application.desktop'] with comma and space between each item, and each item between single quotes.


Is it possible to apply colors to text in mousepad text editor?

I very much doubt it. It is a simple text editor, and handles only text. Colors cannot be stored in text files unless saved in a non-text format that uses control or special characters to tell later programs what color to use, but that wouldn't be simple text anymore. I tried loading an unusual file into mousepad, it didn't recognize it as text or UTF-8 & provided a drop-down of different ISO/charsets - but those were all storage-formats of text, and none allow for font/size/color which would involve non-textual characters.

From the XFCE docs  (xfce the missing manual)

  Mousepad (mousepad) is an Xfce implementation of Windows Notepad. This
  will be very useful for temporarily saving small fragments of text,
  opening files quickly for previews or writing large amounts of text.

https://media.readthedocs.org/pdf/xfce-the-missing-manual/latest/xfce-the-missing-manual.pdf

Since it mentions Notepad - Microsoft added a RTF (rich text format) file-format which allowed such extra information to be stored in a file, but it was proprietary,  (https://en.wikipedia.org/wiki/Rich_Text_Format), no longer just text and later mostly abandoned as it was discovered the extra information also allowed malware to be used to infect windows systems.  By using simple text, you avoid any such negative issues, and these days many of us use markdown & other formats that are encoded in pure text anyway.


You might have already tried this, and I'm not sure what desktop environment you're using, but in Gnome "Tweaks" (gnome-tweaks), under the "keyboard and mouse" section, there is an option to disable the touchpad while typing.  Have you tried this?


How to customize GDM Login Screen on Ubuntu 17.04 Zesty ubuntu-gnome

The login screen is now managed by ligthdm.

sudo apt-get install lightdm-gtk-greeter
sudo apt-get install lightdm-gtk-greeter-settings

Run lightdm-gtk-greeter-settings to confgure


How should I upload a package after having used git-ubuntu to prepare it?

Options

You have two options.

1. Upload without rich history preservation

You can dput as normal without doing anything further. After Launchpad accepts your upload, the git-ubuntu importer will pick it up and synthesize a commit that matches it. Branch pointers in the git-ubuntu repository will be updated accordingly.

This is the default outcome and means that existing developers' workflows are not forced to change.

This does mean that a richer set of commits that you may have made locally will not be preserved in git-ubuntu's "offical" repository for the package.

You'll notice that this is how the majority of uploads in git-ubuntu today were imported—because we don't have rich history for historical uploads.

2. Upload with rich history preservation

The design of git-ubuntu allows for full preservation of your commits by adopting them into the "official" record. However the implementation is not yet complete. For now, we have a stop-gap measure that allows for rich history preservation but unfortunately this does require some manual steps.

Current process

Note that this only applies to Ubuntu uploaders.

If you need a sponsor, please ask your sponsor to review first, since preservation of something that does not exactly match the subsequent upload will not work. Remember that rich history preservation is optional. Please don't assume that your sponsor is willing to follow this process.

Before dput, ask a member of ~usd-import-team to make your rich history visible to the importer to adopt. As soon as the importer service sees the package upload in Launchpad, it will look for this rich history and synthesize a commit if it cannot be found, which is why this must be done before dput.

The easiest way to supply ~usd-import-team with your rich history is via a link to a merge proposal. Note that there is not yet any general process that ensures that merge proposals against git-ubuntu branches are reviewed. Please arrange that yourself or self-approve as you wish; when you are ready to dput, send us a link to the merge proposal for the rich history preservation step only.

Future short term process

Now that Launchpad per-ref ACL support is ready, we hope to be able to allow Ubuntu uploaders to push rich history to be visible to the importer directly, taking away the latency of the extra human step currently required.

Long term intended process

Eventually, we intend for the git-ubuntu importer service to be able to pick up rich history directly from merge proposals or similar.

Rationale

Why does this seem obtuse?

The git-ubuntu repository is intended to reflect the single source of truth, which for Ubuntu is Launchpad publications of Ubuntu packages. Ubuntu developers upload package updates; these get published, and the git repository is expected to reflect these publications. This is the opposite of other development projects where the flow is the opposite: normally developers push to git, and make releases from git.

To prevent the git repository from mismatching Launchpad publications, it is necessary to ensure that git-ubuntu branch updates exactly match their corresponding Launchpad publications before they are pushed. We achieve this by restricting pushes to the git-ubuntu importer service only. The importer service will adopt rich history provided by the uploader only if it exactly matches the Launchpad publication it is importing. If the provided rich history doesn't match, or if rich history is not provided, then the importer will instead synthesize a commit that exactly matches the Launchpad publication it is importing.

This means that we need some way to provide rich history to the git-ubuntu importer service, which should explain the three options detailed above.


New to Ubuntu USB Live - Changes don't save + Full memory of usb drive not utilized

First, copy the Ubuntu ISO to a different USB stick

Then, boot from a live CD, and after it boots, connect both flash drives; the one that you want to install to, and the one with the ISO.

Then, go Dash > Startup disk creator.

Point it to your ISO file on the one flash stick, and tell it to install to the other. You can adjust the slider for docs and settings to the max.


software center crashes upon openinig in 12.04 - no error message

Try this.  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below.

sudo apt-get purge software-center

sudo apt-get install software-center

sudo apt-get update && sudo apt-get upgrade


Try the follwing commands in a terminal:

sudo apt-key update
sudo apt-get update


USB and Network adapters don't work after Ubuntu 14.04 fresh install. No ethernet, wifi, bluetooth, usb

My problem is fixed after performing apt-get dist-upgrade and executing --reinstall linux-image-3.13.0, as suggested by bain, from a test ubuntu system of a life usb in which i mounted my local linux installation as root directory. Thanks!


Loading Ubuntu on to old netbook running Windows XP

Short answer: Not really, no.
Recommended minimum specs:
Ubuntu Desktop Edition
2 GHz dual core processor.
4 GiB RAM (system memory)
25 GB of hard-drive space (or USB stick, memory card or external drive but see LiveCD for an alternative approach)
VGA capable of 1024x768 screen resolution.
Either a CD/DVD drive or a USB port for the installer media.
Internet access is helpful.

If you have less than 2GB RAM, you will see a LOT of freezing and stuttering, and pairing that with a 1.6 GHz processor will make things even worse. In my experience, having 2GB RAM and having a 1.5-2GHz processor was borderline unusable. Even just loading a terminal or Firefox made the entire system freeze and lock up.


Keyboard Shortcut to Rename File in GUI (Other Than F2)

I'm using Gnome instead of Unity, but they should be the same (more or less).

Nautilus (a.k.a. Files) keeps its keyboard shortcuts in  ~/.config/nautilus/accels

File Rename is listed there as:

; (gtk_accel_path "<Actions>/DirViewActions/Rename" "F2")

The ; means that it is commented out and Nautilus uses the system default.

If you remove the ; and change the line to:

(gtk_accel_path "<Actions>/DirViewActions/Rename" "<Primary>Return")

Then File Rename will be changed to Control-Enter.

It seems that there is only one shortcut possible for each operation. Nautilus uses the last one listed.
So you can't have F2 and Control-Enter at the same time.

In order for the changes to take effect you have to stop nautilus. Run the following from the commandline (before you make the change):

nautilus -q

Detailed steps (on request):

open Files ('Nautilus')

browse to directory .config/nautilus in your home directory
if you don't see directories starting with a dot, press <Ctrl>H or in the preferences for Files ('Nautilus'), tick the box for displaying hidden files.
right-click or double-click file accels so that it opens in an editor (likely gedit)

Alternatively, hit <Alt>F2 and give command: gedit ~/.config/nautilus/accells

Now we have the configuration file in an editor, we have to stop Files ('Nautilus') before we can make changes. Again, two ways of doing this:

Option 1: open a terminal window (Gnome Terminal) and kill nautilus, by issuing command: nautilus -q. Your Files window(s) should all disappear
Option 2: hit <Alt>F2 and give command nautilus -q. Your Files window(s) should all disappear

Now Files ('Nautilus') has been stopped, we can make changes to its configuration files.

In the editor, make the changes as listed above and save the file
Exit the editor

If you now open Files ('Nautilus') again, your changes should take effect

Answers to foot notes:
1. It is relevant to specify the application you're having a problem with. In this case, it was the configuration of the application as opposed to a system setting that had to be modified to resolve this issue.
2. People will know what you mean by GUI Environment. It is however generally referred to as GUI or Desktop in this context.


Where is the configuration data actually stored for Mysql 5.7.13 in Ubuntu 16.04 and what are best practices for managing it?

After much much much frustration trying to even get access to the mysql prompt, including reinstalling several times, I uninstalled it again and followed this installation guide on DigitalOcean.
It includes some optional steps after installing that allow you to actually have access to everything the way you would think.

It also describes common practices and setups in a way that's actually understandable/helpful. The guide for 18.04 goes more into depth for what I needed, but you can select for your OS version as well. I know you asked a while ago, but hopefully this helps someone struggling with mysql configuration!

If you have databases present and want to uninstall/reinstall/reconfigure, you can always do a mysqldump.


I think what you are seeing are (say for KeepassXC as an example):

is the ubuntu packaged version where the source will be listed (in my case running Ubuntu 20.10) as ubuntu-groovy-universe and the current packaged version is 2.6.1. Installing this will be the same as running sudo apt-get install keepassc

is the snap version where the source will be listed (in my case) as snapcraft.io and the current version is 2.6.3. Installing this will be the same as running snap install keepassxc

I think this is one of the letdowns of modern Ubuntu where packages vs. snaps are very confusing to some users (and I include myself in that).
I think back in the day the Ubuntu Software listed packages, then at some point a Snap Store app was automatically installed (you may see it under Installed apps), but you can't seem to run it or find it for whatever reason, so I guess maybe it's merged with the Ubuntu Software GUI (as both snaps and packages show there) but who knows, I certainly don't! :-)
If someone has a good resource on the whole snaps/packages and Ubuntu Software thing please link to it.


I don't think I had to do any of that on Ubuntu > 16.04. I would try the version in Ubuntu repositories. Simply install it from the Ubuntu Software or run the command:

sudo apt-get install virtualbox

You might want to undo any changes to the software sources.list that you have done first.


The problem is to know when to stop copying from ttyUSB0.

If the end of data is marked with a recognisable character or byte (say, Z) which is guaranteed to not occur elsewhere in the incoming stream, then the following would elegantly solve your problem:

stty -F /dev/ttyUSB0 eof Z 9600 cs8 && cat -v < /dev/ttyUSB0 > /path/to/file.txt

If there is no such single character, but the occurrence of some sequence (say, END) can be used to detect that enough data has been read, then this:

stty -F /dev/ttyUSB0 9600 cs8 && sed '/END/q' < /dev/ttyUSB0 > /path/to/file.txt

would work, on the condition that the incoming data is line-oriented. That is, there must be at least one newline after "END" or sed will not get to see it. (This is precisely why it is good practice to always end text files with a newline.)

Then of course, there is always the rough way. Assuming that you know the job will never take more than a minute:

stty -F /dev/ttyUSB0 9600 cs8 && cat -v < /dev/ttyUSB0 > /path/to/file.txt &
sleep 60 && kill %%


Create a file named .xinitrc in your home directory, with this contents:

awesome

The .xinitrc file lists commands that are executed by startx in order to set up the X11 session/desktop.
You may for instance add other programs to be started (just append a & after the program invocation so that the shell does not wait for their termination before continuing).

The startx session exits when the last command from .xinitrc finishes, so be sure that the invocation of awesome is the last thing you do in that script.


I can't get my Wacom Intuos to work in Ubuntu at all

The XF86 Driver shouldn't need updating, though the input-wacom driver might.

Which tablet (lsusb output) and which ubuntu are you using?


I just figured this one out myself. You need to create your own scheme based on one of the predefined (and locked) ones.

http://www.jetbrains.com/pycharm/webhelp/configuring-colors-and-fonts.html

Regards
James


Does email queue affect speed of email traffic for other users on shared server?

The email queue is not first-in, first-out.  If certain items remain stuck in the queue, other items that arrived later can still be processed.


Okay I got it working: You have to change the display settings in system settings -> display as well.

Now everything works like a charm!


Are True Type fonts (TTF) standard on Ubuntu?

Fonts can be installed in a system folder (system-specific, for all users) or in a home  (user-specific, for just one user)

System folder: /usr/share/fonts/

Home folder: ~/.fonts/ (you may have to create the folder)

Command line utility to refresh the font cache database: fc-cache -v

Gnome GUI utility: gnome-font-viewer

Ubuntu supports otf and ttf fonts, documented in an another question: How to install OTF fonts?


Removing the filesystem quota on a partition

Your mount points are defined in /etc/fstab and those options will be used by default every time you boot.

So if you use the line:

 /dev/hda2       /       ext4    defaults,usrquota,grpquota        1       0        0

quotas will be enabled when you boot.

The commands quotaon and quotaoff will enable / disable quotas from the command line.

See: http://manpages.ubuntu.com/manpages/dapper/man8/quotaon.8.html for additional options.

So if you wish to disable quotas by default, use noquota in fstab

/dev/hda2       /       ext4    defaults,noquota        1       0        0


Brightness control not working for ubuntu 14.04

If you have an intel controller in /sys/class/backlight, then create a file by:

sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf

and copy the following code into it, then save and exit:

Section "Device"
        Identifier "card0"
        Driver "intel"
        Option "Backlight" "intel_backlight"
        BusID "PCI:0:2:0"
EndSection

Reboot and see if solves the problem.


Terminal with tmux style screen splitting?

I think you may want the other terminator  actually ;)

There's http://software.jessies.org/terminator/ (gokcehan's answer) and https://launchpad.net/terminator (install link above).

Which appears to be different projects, with a very similar purpose, confusingly enough. I think the one hosted on launchpad one is the one you want for your purpose though, and it's readily available in the Ubuntu Software Centre.


ALT-F3, ALT-F2 doesn't show important applications and files. How to index Xfce/Xubuntu Settings Manager in xfce4-appfinder?

The XFCE launcher is pretty good, but basic. If you can, you should be using Synapse.
IIRC, the XFCE default appsearch only looks at menuitems. Unity / Zeitgeist / whatever else use a bigger index of programs that searches all programs registered with it. [Still testing XFCE searching]
So, there are two methods to do this:
Install + Configure Synapse (Easy)

First you want to install Synapse, following thse instructions.

Now, you want to bind it to Alt+F2, Alt+F3, and the Super key. The first two are easy, Super is hard. You can either set something like Super+Space, or dive into the source code and use plain Super. (You may have luck with building your own sources or use a script I made for this. That script binds Super to Alt+F3).

Add menu items for everything! (Hard)

Simply put, add a menu entry for every settings panel to your system menu. This will take a while, but should restore compatibility. You can place all settings in a little folder named "Settings".

Whisker Menu

In Utopic (and I suspect earlier), the XFCE Whisker menu has a high-level system. While it is not quite Zeitgeist[citation-needed], it does most of the things that Zeitgeist-enabled menus do. However, it does not seem to be able to search files yet.

My take on XFCE

XFCE isn't really an environment like Unity or KDE or E23 or whatever you do. XFCE is more of a creation kit. It gives you a base environment, and it's your job to custom-tailor it for what you want. XFCE isn't meant to be kept in its current state. XFCE is meant to be customized for the user. You choose the display manager. You choose the window manager. You choose the search provider. All you get when you install XFCE is a demo environment as to what XFCE can do. It's your responsibility to make it how you want it. XFCE truly is open-for-customization software.


Why won't my computer connect to wireless?

Open up the Terminal (Ctrl+Alt+T) and run this command:

rfkill unblock all


Log in manager doesn't appear after editing /etc/X11/default-display-manager

I changed the content of /etc/X11/default-display-manager to former content (/usr/bin/gdm) and log in manager came up .


EFI Boot loader problem for dualboot system with windows 8.1

I have the similar question for dual boot system. Someone gave some advice. Probably it also helps you. In general, there is no straightforward solution for stopping Windows from re-writing the boot order. But, modifying bootmgfw.efi may help. I have not tried it though.

Ubuntu 14.04 installed alongside with Windows 8.1 but the system boot directly to Windows once I logged into Windows and restart


OCSP Responder (openca-ocspd) won't make

Assuming that you have compiled and installed libpki already (on which OCSP Responder is dependant), try to compile the Github repository's version:

Install git: sudo apt-get install git
Compile OCSP Responder in a "openca-ocspd" folder in your Desktop: mkdir ~/Desktop/openca-ocspd && cd ~/Desktop/openca-ocspd && git clone https://github.com/openca/openca-ocspd.git && cd openca-ocspd && ./configure && make


For a software raid I'd do the following (but it might work for your controller too?):

Install mdadm (should be on the cd):

  sudo apt-get install mdadm
  sudo mdadm --assemble --scan

I think this will recognize your raid automatically and it should pop up in nautilus.

Edit: tried it myself on a new system (Ubuntu 11.04 alpha 1 :) and adapted answer


Why does Privoxy needs a restart at boot?

It likely that Privoxy did not start successfully because it started before the Network interface was initialised - there is a similar bug report with Fedora.

Suggestion 1

Starting privoxy was also discussed on Ubuntu Forums.

Have a look at the file /var/log/privoxy

If there is an error in the file that looks like "Fatal error: can't bind to localhost:8118: The hostname is not resolvable" then change the listen-address in the privoxy configuration file /etc/privoxy/config.

i.e. change "listen-address  localhost:8118" to be "listen-address  127.0.0.1:8118"

Suggestion 2

The author of the Fedora bug report suggested adding the following line of text to /etc/rc.local i.e. add it before "exit 0" not after it.

/bin/sleep 20 && /etc/init.d/privoxy start


Ubuntu 19.10: Why can't I boot without nomodeset on? (Intel Graphics)

You have not specified your exact Zenbook model number, but I expect you are having this problem with panel EDID information not being recognized:
Ubuntu not booting on Asus Zenbook UX431FA
The solution is to download a valid EDID file that the OS understands. I got 1920x1080.bin from edid generator github. You then must place that file in /lib/firmware/edid/ and boot with the kernel option drm.edid_firmware=edid/1920x1080.bin. For testing you can manually input that kernel option, and then if it works you can change it persistently in grub config.


Investigate disk writes further to find out which process writes to my SSD

You could at least start with iotop. It won't tell you which filesystem is being written but it will give you some processes to investigate.

sudo apt-get install iotop
sudo iotop

It shows instantaneous disk reads and writes and the name of the command reading or writing.

If you are trying to catch a process that writes infrequently, you can use the --accumulate option or log the output to a file:

sudo -i
iotop --batch > iotop_log_file

Obviously the writing of the log file will show up in the results, but you should also be able to grep for other processes writing to disk.

By this point you should be able to find some candidate suspect processes. The left column in iotop shows the pid. Next, find out which file descriptor the process is writing to:

sudo -i
strace -p <pid> 2>&1 | grep write

You should see output like this when the process writes:

write(1, "\n", 1)                       = 1
write(4, "test\n", 5)                   = 5
write(1, ">>> ", 4)                     = 4

The first argument to write is the file descriptor. We are probably looking for values greater than 2, because 0, 1 and 2 are just stdin, stdout and stderr. File descriptor 4 looks interesting.

You can now find out what file the file descriptor points to with:

lsof -p <pid>

Which should yield output like:

...
python  23908  rob  mem    REG    8,1    26258 8392656 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
python  23908  rob    0u   CHR  136,5      0t0       8 /dev/pts/5
python  23908  rob    1u   CHR  136,5      0t0       8 /dev/pts/5
python  23908  rob    2u   CHR  136,5      0t0       8 /dev/pts/5
python  23908  rob    3w   REG   0,25      909 9049082 /home/rob/testfile
python  23908  rob    4w   REG   0,25       20 9049087 /home/rob/another_test_file

Look at the 4th column. 4w means that file descriptor 4 is open for writing and the file is another_test_file.

It is possible for a process to open, write and then close a file, in which case lsof would not show it. You might catch this happening with:

strace -p <pid> 2>&1 | grep open


How can I customize Vim for web development and programming?

Everyone else has excellent advice, I thought I'd fill in with some of the basics:

1. GVim for vim outside the console, and how to install it

You asked whether vim can only be run from the console. GVim (GUI-Vim) is the standalone version. From your screenshot, it looks like you're using Ubuntu, you can find gvim in the Software Centre and install it from there.  Alternatively you can sudo apt-get install gvim from a terminal.

2. Creating a .vimrc config file

It looks like, by default, vim/gvim doesn't create a .vimrc for you, so you can create one yourself.  Open vim, and type :e ~/.vimrc to edit a new file called .vimrc in your home folder (~)

We'll start by adding just one setting, so that we can see whether it worked.  Add the following text:

" switch on line numbering
set number

The " is the comment character.

Then, quit vim and restart it - you should find that a line number 1 has appeared at the top left, and you should find that any file you edit from now on has line numbering switched on by default.

3. Installing a plugin

Plugins live in a folder called ~/.vim/, but, again, vim doesn't create this by default, so you have to make it:

mkdir ~/.vim

Over time, the .vim folder will grow several subfolders like:

plugin for plugins
color for color schemes
doc for documentation
syntax for syntax highlighting modes

But for now it's empty.  Let's add one plugin, to try it out.

Start by opening vim with vim . - that tells vim to open a folder in "explorer" mode.  We'll install NERDtree which is a popular file browser plugin, which will replace the default explorer.

Go to http://www.vim.org/scripts/script.php?script_id=1658 and dowload the zip file from the table at the bottom of the page.

Open it up in archive manager, choose "extract", and then tell it to extract into you ~/.vim/ folder.  You may need to hit Ctrl+H inside archive manager's folder browser, to show hidden folders.

Once it's extracted, it will create several subfolders in .vim for you.  If you now restart vim with a

vim .

You should see the explorer view has changed!  It's now using the NERDtree plugin.

4. More .vimrc settings

My full .vimrc is available here https://bitbucket.org/hjwp/vim/src, but here are a few settings I find really useful:

" syntax highlighting
syntax on

" map cut & paste to what they bloody should be
vnoremap <C-c> "+y
vnoremap <C-x> "+x
map <C-v> "+gP

" sane text files
set fileformat=unix
set encoding=utf-8

" sane editing
set tabstop=4
set shiftwidth=4
set softtabstop=4

" convert all typed tabs to spaces
set expandtab

"autocompletion with ctrl+space
inoremap <c-space> <c-n>
inoremap <Nul> <c-n>

5. Ctags

I wouldn't worry too much about plugins at first, just getting to know the power that vim offers you out of the box should be useful enough to your coding already. But one thing that really is useful to have working in vim is ctags.  ctags lets you do things like "jump-to-definition", and autocomplete across all the keywords in your source tree.  start with:

apt-get install exuberant-ctags

Then, in your .vimrc, add

map <f12> :!ctags -R .<cr>

Now, when you hit "F12" in a vim session, it will generate a .tags file, which vim can use to scan for keywords.

Now, if you're on, eg a function call in your source code, you can use ctrl+] to jump to its definition.  More info here: https://stackoverflow.com/questions/563616/vim-and-ctags-tips-and-tricks

6. what's next

Other people have posted some really useful-looking guides, here's a couple of SO pages I've found useful tho:

https://stackoverflow.com/questions/95072/what-are-your-favorite-vim-tricks
https://stackoverflow.com/questions/726894/what-are-the-dark-corners-of-vim-your-mom-never-told-you-about
https://stackoverflow.com/questions/164847/what-is-in-your-vimrc

It's a whole vim-world out there. But: warning:  If you find yourself getting into vim golf, you've probably gone too far - http://vimgolf.com/ ;-)


How can I uninstall Microsoft Office 2010?

If the programs are not working when you try to launch them, it might just be their shortcuts which remain in the dash.
You can use the program "Alacarte" also known as "Main Menu" to edit applications appearing in the dash.


ancient question, but still came across this problem on Xenial, so here is the solution:

apt install brasero-cdrkit