How would I go about installing Windows 8?

If you have a recovery disk that came with your laptop, you should be able to boot from it by hitting F12 when your laptop first boots, and choose it as a boot device, and then from there, install windows.
If you have an iso for a windows installation, then you can burn that to a disk, or a USB, (instructions can be found here http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu) and then choose that at boot. I've never installed windows, but I assume you can choose a partition to install it on.

After you install windows, you will likely need to use boot-repair to allow dual-boot (http://sourceforge.net/projects/boot-repair-cd/) and burn this to a usb or CD as well, boot from it preferably legacy boot since it allows you a nice GUI to edit settings, and run boot-repair off the desktop if it doesn't start automatically, use the recommended fix and after that finishes, reboot and allow ubuntu to boot, and there should be a new menu with Ubuntu at the top and your windows installation at the bottom.

Issues: If your screen goes black after running boot-repair, its likely you need to have nomodeset on, which can be done while booting. Hit f6 and navigate to nomodeset and hit enter. Then hit escape and try booting.

EDIT: If you have any questions, issues, or want me to go into further detail on some of the steps, let me know. I might just give you a link where the steps or issues are explained much better than I could explain them


Were you trying to install Ubuntu 64-bit (amd64)?

Looks like you have a 32-bit processor so try installing Ubuntu 32-bit version(i386)


How do I gracefully delete un-needed kernels?

First, you need to see which kernel you currently use, because you
must not delete it. Yoy can see that using the command:

uname -r
Then, you can see the installed kernels using the command:

dpkg --list | grep linux-image
And you can delete an extra kernel, using apt-get like this:

sudo apt-get purge linux-image-x.x.x-x-generic

Where x.x.x-x is the kernel you want to remove.
Remember, you must not delete the one that is currently in use (the output from uname -r).
You should keep a second kernel as a back up, in case the first somehow fails.

An alternative, would be the Janitor of Ubuntu Tweak, which has the option of removing unused kernels.


No, you don't have to do anything related to secure boot in your BIOS, thanks to shimx64.efi and grubx64.efi EFI binaries, one for Secure boot enabled and another one for not.

To read more details about the topic : What is the difference between grubx64 and shimx64?

Or here's the best answer of the above question.

  Typically, EFI/ubuntu/grubx64.efi on the EFI System Partition (ESP) is
  the GRUB binary, and EFI/ubuntu/shimx64.efi is the binary for shim.
  The latter is a relatively simple program that provides a way to boot
  on a computer with Secure Boot active. On such a computer, an unsigned
  version of GRUB won't launch, and signing GRUB with Microsoft's keys
  is impossible, so shim bridges the gap and adds its own security tools
  that parallel those of Secure Boot. In practice, shim registers itself
  with the firmware and then launches a program called grubx64.efi in
  the directory from which it was launched, so on a computer without
  Secure Boot (such as a Mac), launching shimx64.efi is just like
  launching grubx64.efi. On a computer with Secure Boot active,
  launching shimx64.efi should result in GRUB starting up, whereas
  launching grubx64.efi directly probably won't work.

  Note that there's some ambiguity possible. In particular, if you want
  to use a boot manager or boot loader other than GRUB in a Secure Boot
  environment with shim, you must call that program grubx64.efi, even
  though it's not GRUB. Thus, if you were to install rEFInd on a Secure
  Boot-enabled computer, grubx64.efi could be the rEFInd binary. This
  binary would probably not reside in EFI/ubuntu, though; both it and a
  shim binary would probably go in EFI/refind. Also, as you've got a Mac
  (which doesn't support Secure Boot), there's no need to install rEFInd
  in this way; it makes much more sense to install rEFInd as
  EFI/refind/refind_x64.efi (its default location and name).

  Note that the rEFInd documentation includes a whole page on Secure
  Boot. Chances are you won't benefit from reading it, user190735, since
  you're using a Mac. I mention it only in case some other reader comes
  along who's trying to use rEFInd in conjunction with Secure Boot.


Wireless Mouse stuttering/mouse recognized as a keyboard - Ubuntu 18.04.1 - Mouse Trust GXT 130 - Lenovo y580

Try to run this command under the sudo:

echo -1 > /sys/module/usbcore/parameters/autosuspend

If it helps - the permanent way to apply it is to add the usbcore.autosuspend=-1 parameter into the GRUB_CMDLINE_LINUX_DEFAULT variable of /etc/default/grub file.


Firefox Developer Edition: where is dark theme?

Visit about:config
Double click on browser.devedition.theme.enabled preference to change its value to ‘true’.
Next, set devtools.theme preference value to either ‘dark’ or ‘light’, no restart is required.

This might be from an earlier version i'm not sure.  But its worth a try i guess.


Managed to fix the issue.

Creating a symbolic link of rpcbind.service in /etc/systemd/system/multi-user.target.wants/ directory fixed the issue.

ln -s '/lib/systemd/system/rpcbind.service' '/etc/systemd/system/multi-user.target.wants/rpcbind.service'


ubuntu won't boot fsck / [373] terminated with status 4

To perform the manual fsck that's being requested...

boot to the GRUB menu
choose Advanced Options
choose Recovery Mode
choose root access
type sudo fsck -f /
run fsck more than once if there were errors
type reboot


Is libreoffice-sdbc-hsqldb installed?

If not:

sudo apt-get install libreoffice-sdbc-hsqldb

and after closing all instances of libreoffice, retry.


It looks like your spanish error is the equivalent of this English one:

 the package index files are corrupted. no filename field for package

This would mean you have a problem with the listings (index) of all packages: they are broken. This Thread implies that you might have success with removing the lists directory.

So you might want to delete everything in /var/lib/apt/lists/, and then update your apt again

sudo rm /var/lib/apt/lists/*
sudo apt-get update

MIND YOU, I have not tried this, but it seems like this isn't a real dangerous thing to do.

  The /var/lib/apt/lists can be removed and recreated safely. An 'apt-get update' will repopulate the necessary information. This does not impact the history of installed packages.


Why there is no login/password for Ubuntu One under System->Preferences?

Ubuntu One is storing your credential inside Gnome Keyring Manager. You can access this manager from the System -> Preferences menu (or in older Ubuntu release from the Applications -> Accessories) choose the application named Passwords and Encryption Keys.

You can see that your Ubuntu One credentials are stored there.

Note that this keyring manager is encrypted, it's a safe store. But it is unlock upon login, so that's why you don't need to enter your Ubuntu One credentials.


Can I save the output of ifconfig -a to a file?

Of course you can. This is called redirection. Here's an example.
$ ifconfig -a > read.later

The above command will place the output of ifconfig -a into a file called read.later which you can open with the text editor of your choice or display to the screen with commands like more read.later or less read.later or even dare I say it cat read.later

For further detail on redirection, see How do I save terminal output to a file?


Is it more space efficient to use one partition?

If you create multiple partitions, each partition will have its own used space and free space, and they will not be able to access the free space on the other partitions. So you may run out of space on one partition while having a considerable amount of free space on another partition, but the full partition will not be able to access that free space. If you use a single partition you will not have the problem of inaccessible free space, so you could say that it is more space efficient.

Merging partitions of the same file system type is possible, but it is not considered a "safe" operation, so you should always backup your files before attempting a merge.


The way to do this would be to establish a remote connection to your server upstairs by using SSH.

By this you are able to remotely mount or unmount drives and you can even mount a remote directory on your local mythubuntu machine.

Related questions:

How to use SSH (ssh & rsync commands)?
How can I set up password-less SSH login?
Is there a GUI utility to mount remote filesystems over SSH?


Ethernet connectivity problems after upgrading to Ubuntu 12.04LTS

I was able to fix this issue by turning off automatic detection of my NIC and manually adding the Gateway, Address, and Mask IP's pointing directly to my router.

I used this answer to a previous question  - No internet connection, ifconfig shows errors


Fix for xubuntu/xrdp tab/autocomplete in multi-user environment

Partial answer for NEW Users:

Based on this thread: http://www.linuxquestions.org/questions/slackware-14/configuring-xfce4-4175483108-print/ I copied the .config/xfce4 dir to /etc/skel and new users are now created with tab complete working.

cp .config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml .config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml.bak

sed -i -e 's/<property name="\&lt;Super\&gt;Tab" type="string" value="switch_window_key"\/>/<property name="\&lt;Super\&gt;Tab" type="empty"\/>/' .config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

sudo mkdir /etc/skel/.config
sudo cp -R .config/xfce4 /etc/skel/.config

I believe you could copy just xfce4-keyboard-shortcuts.xml here, as long as you recreate the path, but for my use case I found copying the whole xfce4 dir had the added bonus of allowing me to preconfigure the menus, panels, etc. in the template user and have all new users have the same settings so I didn't test just the single file.


Can juju be used in other region than the US?

You can deploy to different EC2 Regions, which you can specify in the environments.yaml file. In your environments file, under your AWS environment, you can specify a region key. So to deploy to the Ireland AWS region add the following to the environments file:

region: eu-west-1

That will bootstrap and deploy everything in that environment to that AWS region.

See also:

https://juju.ubuntu.com/docs/provider-configuration-ec2.html


/var/lib/ureadahead/debugfs eats up 68% of my disk space

It looks like df is a bit confused here rather than there being an actual problem.

According to your mountinfo, there is no file system mounted under /var/lib/ureadahead/debugfs, and its df statistics are identical to those for /.  So it wouldn't be surprising if df is just reporting the statistics for /dev/sda1 a second time.  It probably doesn't represent another 1.2GB of disk usage.

The debugfs file system is a virtual file system used to communicate debugging and tracing information from the kernel to user space.  It does not consume disk space.  While debugfs is usually mounted under /sys/kernel/debug, but it looks like the ureadahead program may temporarily mount it under /var/lib/ureadahead/debugfs in certain circumstances.  It is possible that this caused the confusion.


How to keep Network Manager from creating multiple named networks for the same actual network?

If you have DHCP set up on your router, your device could be pulling a new IP address each time you connect, requiring a new sign in. I would try going into your routers settings, set up a static IP address to your computer, reset your computer and then re-connect and see what it does. If it does the same thing then there may be a software issue with the OS, if not then it may be an issue with your network configuration.


At the link you gave above, I downloaded the WLAN driver and it appears your device is an Atheros device driven by the driver ath9k_htc. It requires firmware that is not installed by default. Using the USB, get an internet connection and open a terminal and do:

sudo apt-get install linux-firmware

Reboot and see if your device is working. If not, edit your question to add the results of these commands:

lsusb
dmesg | grep ath9

The pipe symbol | is on the right side of my US keyboard on the same key with backslash.


Firefox application associations not working in the 'Downloads' window

UPDATE: Ever since Firefox 18, Firefox has GIO support instead of GnomeVFS support, so the workaround below shouldn't be necessary anymore. If anyone's still hitting this issue in recent Firefox versions, this will be unlikely to fix it.

So, take the rest of this post with a grain of salt...

The fix

This fixes it for me:

cd .local/share/applications/
ln -s mimeapps.list defaults.list

and finally, restart Firefox.  When it comes up again, its Download Manager should invoke the correct program (as specified in the .list files referenced above).

Details

Firefox (up through trunk nightlies as of this post) currently uses GnomeVFS API to ask "What app should I use to open files with this mimetype?"  However, GnomeVFS has become deprecated in favor of GIO.

Nautilus (I'm looking at ver 2.32.2.1) now uses GIO to register user-specified default handler-applications (like smplayer in your case).  GIO and GnomeVFS use different files to manage their settings, but the files are apparently in the same format (at least similar enough for the above "ln" hack to work for me. :))

(I've investigated this in a bit more detail on a Mozilla bug report.)


No sound from crontab running my custom script

I find out that when I should send a sound with pulseaudio in the command line to another user, you should indicate the environment variable:
XDG_RUNTIME_DIR="/run/user/usr_id"

Replacing "usr_id`" with an id (a number) corresponding the user (here how to get it outside crontab).
The problem appears to be that the environment of the crontab is very limited.
Source: ArchLinux Wiki: PulseAudio


upgrade ubuntu without upgrading plasma4

well i did it manually on a test drive using aptitude. for those that are interested the result is:

3 hours mucking through dependencies

1107 packages updated

633  packages held

36   packages removed

24   packages added

7    packages recommended by others.

the system seems stable, I give it a few days testing before doing it to may main system.

I started by holding all packages that had plasma in the name. then told aptitude to mark all upgradable. from there it was hours of holding back broken package, for awhile every fix cause 5 more breaks. you have to go through the package list again and again, until all are resolved.
in the end, all KDE programs were held back (this I half expected), python was held back, xorg was held back, hundred of libraries were held back.
Now that I have the major upgrade done, it nay be possible to go back and wring out some more updates, but the dependency chains on some packages are so long tht i doubt there will be many.


How do I assign a Launchpad bug to an external tracker?

There is an "Also affects project" link on the bug which would allow you to link to the rabbitvcs project on launchpad.

As you are adding it from the context of the rabbitvcs ubuntu package, it will automatically select the upstream rabbitvcs project on launchpad & allow you to paste in the URL.


How to create bootable Windows 7 USB on Ubuntu 16.04

Go to 'Disks'.
Select the USB drive.
Restore the iso file from properties.

This worked for me.


Monodevelop, "no such file or directory" when trying to run a program

You need to quote your path

e.g.

"/home/Username/C++ Projects/MyAwesomeProgram/bin/myawesomeprogram"

or escape the space

/home/Username/C++\ Projects/MyAwesomeProgram/bin/myawesomeprogram


Can't mount external usb driver on Ubuntu 12.04

When Linux tries to mount your USB drive it tries to guess the correct file system (NTFS in this instance) in the same way that blkid does, unless there you tell it to use a specific file system as in your /etc/fstab:

/dev/sdd1    /media/sdd1    vfat    uid=1000,noauto,users,exec  0  0

Pay attention to the 1st and 3rd column!

You can work around this manually with the mount command:

sudo mount -t auto /dev/sdd1 /media/sdd1

A cleaner way would be to replace all instances of /dev/sd* by device UUIDs¹, labels, or IDs, because the latter are stable for each device or file system. The former are assigned in the order Linux sees them, which can change especially for removable media.

In most cases you don't want to assign fixed fstab entries for removable media though, only disks inside your computer.

¹ blkid or palimpsest can tell you device UUIDs

Take a look at the swap line in your or an excerpt from my /etc/fstab for an example:

UUID=84747ef4-6f50-49bc-9df1-fcba364ba299  none    swap  sw    0  0

and

LABEL=root      /               ext4    errors=remount-ro,discard,noatime  0 1
LABEL=boot      /boot           ext4    defaults,discard,noatime    0       2
LABEL=usr       /usr            ext4    defaults,discard,noatime,data=writeback  0 2
LABEL=var       /var            ext4    defaults,user_xattr,data=writeback  0  2
tmpfs           /tmp            tmpfs   defaults,size=8g,nodev,nosuid,mode=1777  0 0
LABEL=swap1      none           swap    sw,discard,pri=100  0       0

UUID=d7662fe5-04fc-4b4b-a6e0-4d34637d56d3  /home  btrfs  defaults,compress=lzo,space_cache,inode_cache,noatime  0 2
LABEL=scratch   /mnt/scratch    ext4    rw,discard,noatime,data=writeback,user_xattr  0 2

# Windows partitions
LABEL=Windows7  /mnt/win7       ntfs    defaults,ro,nobootwait,noauto,noatime,nls=utf8,norecover,windows_names  0 0
LABEL=Windata   /mnt/windata    ntfs    defaults,ro,nobootwait,noauto,noatime,nls=utf8,norecover,windows_names  0 0

# dm-crypt partitions
UUID=82bf1677-acbf-41dd-814e-08652b2d325b  /home/david/media  crypto_LUKS.ext4  defaults,nobootwait,noauto,nosuid,nodev,noatime,data=writeback  0 0
UUID=d4f9d97c-0dd9-4ac8-959f-92818848505b  /mnt/winmedia  crypto_LUKS.ntfs  defaults,ro,nobootwait,noauto,noatime,nls=utf8,norecover,windows_names  0 0


GPG error, signatures invalid for "http://archive.canonical.com precise Release"

There is a link in your software sources to an obsolete software source from Ubuntu 12.04 precise which is no longer supported. Deleting that line in /etc/apt/sources.list will fix the error in your question.

Open sources.list for editing in nano text editor.
Comment out the line in sources.list that says http://archive.canonical.com precise partner by preceding it with a # character.
The instructions for using nano editor are always found at the bottom of every page. The only two nano keyboard shortcuts that you need to know are for WriteOut and Exit. Press the keyboard combination Ctrl+O and after that press Enter to save the file being edited. Press the keyboard combination Ctrl+X to exit nano.
Update the list of available software to refresh it after the change that was made to sources.list.

sudo apt update


There is no "Install Ubuntu side by side" option

Resizing and modyfing an existing system partition may be dangerous, but needs to be done if Windows occupy the whole hard disk. Therefore my guess is that you can do that only in manual partitioning mode when installing Ubuntu from the CD installer.

Alternatively, prepare some space for Ubuntu from Windows, using Settings -> Control Panel -> Administrative Tools -> Computer Management -> Storage -> Disk Management -> Shrink Volume. Ubuntu installer should notice that there is empty disk space that can be used for Ubuntu, and should give you the shoulder-to-shoulder option.

Read more here and here.


How to set the terminal to open maximized

Launch gnome-terminal as such:

gnome-terminal --window --maximize


ping is working but update is not working on virtualbox guest

Normally to use apt-get you don't need to assign public IPs. Also, Ping uses the ICMP protocol, which doesn't have a concept of ports, so it would normally works. But apt-get either uses HTTP or FTP connections, depending on how your /etc/apt/sources.list is configured. So you need to allow these ports to communicate to the repositories.


maas 1.9.5 dhcp providing 127.0.1.1 as dhcp server, failing tftp

dhcpd.conf.template had been changed to no longer providing the "next-server" option.

dhcpd.conf did not state the next server IP.

I'm not sure why this caused dhcpd to report the IP to 127.0.1.1, instead of providing no IP.

I don't generally touch the template files, so it must have been the result of the update.  If I get a chance, I will use a VM to verify the update being the cause.

Addendum to answer.  Below is the dhcpd.conf.template that I had, that produced the dhcpd.conf that didn't have next-server.  By adding

   next-server {{dhcp_subnet['router_ip']}};

after line 25

   option domain-name {{dhcp_subnet['domain_name']}}";

everything started working again

# WARNING: Do not edit /var/lib/maas/dhcpd.conf yourself.  MAAS will overwrite any
# changes made there.
#
# Instead, edit /etc/maas/templates/dhcp/dhcpd.conf.template and your changes
# will be present whenever MAAS rewrites the DHCP configuration.  Update and save
# the cluster's configuration in MAAS to trigger an update to this file.

option arch code 93 = unsigned integer 16; # RFC4578
option path-prefix code 210 = text; #RFC5071

{{bootloader}}
class "PXE" {
        match if substring (option vendor-class-identifier, 0, 3) = "PXE";
        default-lease-time 30;
        max-lease-time 30;
}

{{for dhcp_subnet in dhcp_subnets}}
subnet {{dhcp_subnet['subnet']}} netmask {{dhcp_subnet['subnet_mask']}} {
       interface "{{dhcp_subnet['interface']}}";
       ignore-client-uids true;
       option subnet-mask {{dhcp_subnet['subnet_mask']}};
       option broadcast-address {{dhcp_subnet['broadcast_ip']}};
       {{if dhcp_subnet.get('dns_servers')}}
       option domain-name-servers {{dhcp_subnet['dns_servers']}};
       {{endif}}
       option domain-name "{{dhcp_subnet['domain_name']}}";
       {{if dhcp_subnet['router_ip'] }}
       option routers {{dhcp_subnet['router_ip']}};
       {{endif}}
       {{if dhcp_subnet.get('ntp_server')}}
       option ntp-servers {{dhcp_subnet['ntp_server']}};
       {{endif}}
       range dynamic-bootp {{dhcp_subnet['ip_range_low']}} {{dhcp_subnet['ip_range_high']}};
}
{{endfor}}

omapi-port 7911;
key omapi_key {
    algorithm HMAC-MD5;
    secret "{{omapi_key}}";
};
omapi-key omapi_key;


Automatically Disable Night Light when fullscreen?

Workaround

until experts write the correct way.. you may do the following trick..

install the packages xdotool and wmctrl with below command

sudo apt install xdotool wmctrl

then create a script with below content and bind the script with any keyboard shortcut you wish.

#!/bin/bash

wmctrl -r :ACTIVE: -b toggle,fullscreen

WINDOW=$(echo $(xwininfo -id $(xdotool getactivewindow) -stats | \
                egrep '(Width|Height):' | \
                awk '{print $NF}') | \
         sed -e 's/ /x/')
SCREEN=$(xdpyinfo | grep -m1 dimensions | awk '{print $2}')

if [ "$WINDOW" != "$SCREEN" ]; then
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled false
else
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true
fi

I Have used the shortcut Alt+N to run the command /bin/bash nl.sh

Source: https://askubuntu.com/a/30414/739431


Ubuntu 16.04 login screen is frozen after suspend

You can avoid freezeing by unchecking "Allow Flipping" in Nvidia X server -> OpenGL.
But be prepared, that more issues can occure.

EDIT: With the newest system update and 381.09 from repository, the problem has not occured yet. No glitches and freezing so far after returning from suspend. I have 1060GTX.


Running ubuntu 14 with wine with the latest version and progecad ran and loaded fine.  It even put the icon on the desktop Didm't even go to any special settingd.  Running a Acer 5315


How to access Android device in Krusader?

With the help of Where are MTP mounted devices located in the filesystem? I discovered that my Android phone gets mounted here: /var/run/user/1000/gvfs/ or here: /run/user/1000/gvfs/ - problem solved!


Error message: unable to mount location Ubuntu 12.10

Probably its because Windows uses NTFS partition, so , you need install ntfs-3g for access to location sudo apt-get install ntfs-3g


"xdotool keydown alt key Tab; sleep 2; xdotool keyup alt"
b:7

The sleep interval allows me to access the menu and choose, and then it closes automatically.  It's probably not the best solution but it works.  If anyone has a better alternative please let me know.  I find that xbindkeys only seems to work intermittentlly.  It does not work on the overview (not for this command, but for a button tied to the super key.  And after installing docky, I fnid that it does not work unless there is an open window available in the workspace.  Odd behavior.


Sometimes the default IO scheduler treats these flash drives poorly. One solution that I've found to be useful is to switch the ioscheduler to deadline or noop for just that device. So for example,

$ lsscsi
[0:0:0:0]    disk    ATA      TOSHIBA THNS128G AGLA  /dev/sda
[1:0:0:0]    cd/dvd  HL-DT-ST DVDRAM GT30N     LT09  /dev/sr0
[7:0:0:0]    disk             Patriot Memory   PMAP  /dev/sdb

sudo tee /sys/block/sdb/queue/scheduler << EOF
deadline
EOF

$ cat /sys/block/sdb/queue/scheduler
noop [deadline] cfq

and now try your data transfer again, you must do this before you load the device.

Should that work for you a udev rule can be created to automatically set this for all usb hotplug devices. Here's one I wrote a long time ago that's a little crufty, I believe it only scans for usb hotplug devices, not MMC cards, so you would have to examine udev output to determine what class your media is in and adjust accordingly.

PROCEED AT YOUR OWN RISK, IF THIS DOESN'T WORK FOR YOU ITS UP TO YOU TO DEBUG

sudo tee /lib/udev/rules.d/100-usb-scheduler.rules << EOF
# custom udev rule: 28.10.11

# adjust io scheduler for usb block devices: queue/scheduler
# scheme based on "persistent storage rules"

# forward scsi device event to corresponding block device
ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change"

ACTION!="add|change", GOTO="persistent_storage_end"
SUBSYSTEM!="block", GOTO="persistent_storage_end"

# skip rules for inappropriate block devices
KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*", GOTO="persistent_storage_end"

# ignore partitions that span the entire disk
TEST=="whole_disk", GOTO="persistent_storage_end"

# for partitions import parent information
ENV{DEVTYPE}=="partition", IMPORT{parent}="ID_*"

# USB storage devices suffer from performance issues unless they use deadline io scehduler
KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*", SUBSYSTEMS=="usb", \
        RUN="/bin/sh -c 'echo deadline > /sys/$env{DEVPATH}/queue/scheduler'"

LABEL="persistent_storage_end"
EOF

$ sudo chmod +x /lib/udev/rules.d/100-usb-scheduler.rules


Usually you can use all apps of any desktop environment in any other desktop environment. During installation, all required libraries are also installed. However, the applications can look a little strange if they are specifically designed for an environment.


How can I delete numbered files in a given range?

Assuming you know or can guess the end of the range, you could use brace expansions:

rm a_{000750..000850}

The above will delete the 101 files between a_000750 and a_000850 inclusive (and complain about filenames that refer to non-existing files). If you have too many files for that, use find:

find . -name 'a_*' | while read file; do
  [ "${file#./a_}" -gt 000749 ] && rm -v "$file"
done

Here, the find simply lists all files matching a_*. The list is passed to a while loop where each file name is read into the variable $file. Then, using bash's string manipulation features, if the numerical part (find prints files as ./file, so ${file#./a_} prints the number only) is 000750 or greater, the file is deleted. The -v is just there so you can see what files were removed.

Note that the above assumes sane file names. If your names can have spaces, newlines or other weird characters, use this instead:

find . -name 'a_*' -print0 | while IFS= read -rd '' file; do
  [ "${file#./a_}" -gt 000749 ] && rm -v "$file"
done


Open the main menu of Unity (should be the top most icon in the Unity bar - you can also press the windows key on your keyboard) and type the name of whatever program you want to run, in your case "terminal". Unity should search all installed programs and present you with the results. If the Unity bar is not shown, you probably have graphics driver issues - try installing the binary drivers for your graphics hardware - check the numerous guides on how to do this without a graphical interface.

Another way to open a terminal emulator is the keyboard shortcut which should be Ctrl+Alt+T.

If all that fails you can get one out of 6 non-graphical terminals by pressing Ctrl+Alt+[F1-F6]. pressing Ctrl+Alt+F7 should bring you back to the graphical user interface.


Why does Eclipse keep crashing and dpkg erroring out?

Your /etc/default/grub file is incorrect.

open a terminal (Ctrl+Alt+T)
Type this command: gksudo gedit /etc/default/grub,
A text file will open, replace its content by the following standard content:

Save the file
Connect internet
In the terminal, type the following commands:

sudo dpkg --configure -a
sudo apt-get install -fy
sudo apt-get update
sudo apt-get upgrade


How can I get NetworkManager to autoconnect to a Openconnect VPN via nmcli without prompting for a user and password

Assuming you've installed openvpn, if not start with install :

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

sudo apt-get install openvpn

then you should Edit /etc/default/openvpn.

so issue this :   sudo gedit /etc/default/openvpn

then Uncomment the AUTOSTART="all" line.

these steps are issued from this link : Starting OpenVPN client automatically at boot

save and close.

If a username/password is required,

edit the .conf file

edit auth-user-pass user-password-filename

Create a file containing:

username

  password

save and close. reboot your system.


What is the easiest way to set up a cron job?

Install Scheduled Tasks:

Add a job to it and set it up the way you like. It will be added to your cron table.


ClamTK Anti Virus will not run on Ubuntu 15.10

You may have more luck with this PPA. Simpy use these commands:

sudo apt-add-repository ppa:landronimirc/clamtk
sudo apt-get update
sudo apt-get install clamtk

Or there is the alternative ClamXAV.


WIFI Problems on Lenovo Ideapad Flex 5 AMD Ryzen 4000u

RTL8821ce doesn't have a very good driver support from realtek which results in such unstable WiFi behavior. As far as I know the current driver used in Ubuntu is a DKMS module packed using the source of this repository (I'm not sure about that). But there are some fixes on the README for unstable connections that might help.
to quote it:

Unstable connection - slowdowns or dropouts
The problem may be due to the periodic scanning of access points by the network applet.

This fix worked helpful on Pop! _OS/Ubuntu 20.10 and Fedora 33. Both with GNOME and NetworkManager. #179

Set the BSSID from your network applet. In GNOME this can be done in WiFi Settings > Your profile > Identity > BSSID.
We are going to disable the Connectivity Check option in NetworkManager. This by editing the file in /var/lib/NetworkManager/NetworkManager-intern.conf and adding the following instructions at the end:
[connectivity]
.set.enabled=false

Then, just reboot or restart the NetworkManager unit to fix the problem.


PXe M0F and efi boot problem after ubuntu 14.04 install through efi

In the BIOS look at "Configuration" screen and set "PXE Boot To LAN" to Disabled.


Why does Ubuntu 14.04 LTS use linux kernel 3.13?

You are  making the assumption that odd-numbered kernel releases are unstable, which has not been true since version 2.6.x. — that’s 2003. See the History part on http://en.wikipedia.org/wiki/Linux_kernel.

The development (unstable?) versions are now distributed in the various developers’ git trees; the thing more resembling the old odd-numbered kernels would be probably the linux-next git tree.


I have installed xfce on ubuntu 13.10, but now icons and colors in unity is strange. How to fix?

What seems to have happened is that XFCE have changed some settings on your system, as such, your Ubuntu looks the way it does. You're going to have to reset some of these settings back to their defaults by running a few commands.

Reset Icons

gsettings set org.gnome.desktop.interface icon-theme 'ubuntu-mono-dark'

Reset Theme

gsettings set org.gnome.desktop.interface gtk-theme 'Ambiance'
gsettings set org.gnome.desktop.wm.preferences theme 'Ambiance'

Reset Login Screen

sudo dpkg-reconfigure lightdm

The above will fix the looks of the unity. Next is the login screen.

Reset Login Screen

There are two options for this:

First:

Run these commands:

sudo update-alternatives --config default.plymouth

Then choose your ubuntu option: /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth

And then run: sudo update-initramfs -u

Second:

Run in terminal:

sudo dpkg-reconfigure lightdm

After running the second (or even the first option) you will probably NOT see the results just yet. As those scripts are not updating all necessary files, edit the lightdm.config file (thanks to help of this post https://askubuntu.com/a/421322/223469):

sudo gedit /etc/lightdm/lightdm.conf

And change values to (previous value was probably xubuntu):

user-session=ubuntu
greeter-session=unity-greeter

Save and reset.

After those changes the login screen should appear.

All what is left to do is to return loading screen, but so far I haven't managed to do that, but will update once I find the solution


How do I install an ASUS USB-AC56 WiFi adapter?

If lsusb says that the device is 0b05:17d2, then you need the driver 8812au. With a temporary wired ethernet connection, open a terminal and do:

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

Please check here: https://github.com/abperiasamy/rtl8812AU_8821AU_linux On the right hand side, click 'Download ZIP.' Assuming downloads go to your Downloads folder, open the folder, right-click the zip file and select 'Extract Here.' Open a terminal and do:

cd ~/Downloads/rtl8812AU_8821AU_linux-master
make
sudo make install
sudo modprobe 8812au

It 'makes' with a couple of warnings on my 13.10 system, but no errors. I can test no further since I haven't the device. This is a rather new device and we'll be very interested in your report.

Whenever a later kernel version, also known as linux image is installed by Update Manager, after you reboot, you will need to re-compile the driver:

cd ~/Downloads/rtl8812AU_8821AU_linux-master
make clean
make
sudo make install
sudo modprobe 8812au

To gather further data, open a terminal and run:

lspci -nn > wifi.txt
lsusb >> wifi.txt

Find the file wifi.txt in your user directory and transfer it on a USB key or similar to a working, connected computer. Go here: http://paste.ubuntu.com/  Copy the entire text document and paste it in the text block. Click 'Paste!' A link will be created which you can then copy to post here. Here is an example: http://paste.ubuntu.com/6751980/  Then we can examine the result and advise you further.

If you are having trouble connection, please try right-clicking the Network Manager icon, select Edit Connections, select Wireless and then Wireless Security. Input the name of your network and carefully input your WPA password. http://i.stack.imgur.com/4OoHG.png

Next select IPv4 settings and, under BSSID, input the MAC address of your access point; confirm with:

sudo iwlist wlan0 scan

Please see this example. http://i.stack.imgur.com/C8Z6w.png

Now can you connect?

I notice in the manufacturer's specifications that this is specifically a USB3 device: https://www.asus.com/Networking/USBAC56/#specifications Are you attached to a USB3 connection on your computer? Check:

lsusb -vv | grep bcdUSB

I wonder if your device will operate correctly without the advanced features of USB 3.0 and whether it is backwards compatible.

Do you have a USB3 connection available?


simple cp command problem " i try to copy only "

Your command seems off, this:

cp test.txt home/asadzoot/cnc/q1/

should be:

cp test.txt /home/asadzoot/cnc/q1/

But of course make sure your running this command from the location of the test.txt file.


How to get Ubuntu to utilize my Nvidia GT 520M graphics card?

Run in terminal

sudo apt-get install nvidia-331 nvidia-prime

reboot and run

sudo prime-select nvidia

Nvidia adapter will be used.


Increase Java’s maximum heap size when using “make” command

Well, I managed to fix it myself. For those who are having the same problem, here is my fix:

Let’s say your normal command is:

make -j2 OUT_DIR=/path/to/some/dir

At the end of the command, add a space than add JAVA_OPTS=-Xmx1024m, for example:

make -j2 OUT_DIR=/path/to/some/dir JAVA_OPTS=-Xmx1024m

You have to change 1024 to your desired maximum heap size in Megabytes. Hope this helps!


Interesting question. To do so, you may want to edit your /boot/grub/grub.cfg to mark as comments Ubuntu entry lines (make Ubuntu entry inactive) and leave the rest as is. This way you "remove" (hide) temporarily your dualboot so only another OS will be shown on the bootloader.

To revert it back, simply unmark the comments you made (make Ubuntu entry active).


Custom kernel boot options are lost on kernel update

You can add your custom kernel option for grub in file "/etc/default/grub" in line "GRUB_CMDLINE_LINUX_DEFAULT".


Try sudo apt install manpages-dev

The manpages-dev package includes over 2000 additional manpages...including fork.


20.04.1 frequent freezes, hangs, or lockups?

Well I have experienced issues like this and here are the things I have done.
Start by checking if any app is running in the startup.Since ubuntu has some Bloat-wares I would recommend you to check anything that is not a system file running in the background and stopping it.
After that cold boot the system and go to the update setting and check all official sources and go to updates and check everything there.
Again do a sudo apt-get update then sudo apt upgrade again sudo apt update.
There were few times when my extensions were not installed properly and was facing the issues of hang. So keep in mind for that.
If nothing works then try switching to pop os since it's an ubuntu based system with minimalist apps pre-loaded it's less likely you will face any issues.


Have you tried a console alternative to setting it from the gnome-panel time applet?
ntpdate is a favorite of mine. i have it setup in a cron script across several Machines and VM's to ensure my system clock never gets skewed that far off. (once a week is fine by my standards. i find that I only migrate away from Atomic Time a few microseconds a week.)

However, with that said, give a try with

 ntpdate time.nist.gov

and see if it corrects your time issue, without a freeze.

If your system continues to freeze, see if you cant ssh in from another machine and have a look at /var/log/messages. On a Fedora system at one point i was 2 hours ahead of actual time, when i reset the date, it caused a panic because everything on the system was 2 hours ahead. Threw some ridiculous error about future time and locked up. I powered down the machine for a day and gave it another go in a recovery console without an issue.

Edit 1: Another thought occured to me to try and change your TimeZone settings. See if that will reconfigure your clock. See the article located at https://help.ubuntu.com/community/UbuntuTime

This may be a byproduct of messed up TZ settings.


Touchpad right click doesn't work on HP Envy 14 beats

create a folder called /etc/X11/xorg.conf.d

and then name the below as 51.clickpad.conf:

Section "InputClass"

Identifier "Default clickpad buttons"

MatchDriver "synaptics"

Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"

EndSection

then log out and log back in again

you could always read the Ubuntu Documentation or Touchpad Synaptics WiKi; links provided below

if your touchpad is not recognised by ubuntu; you can check this by using synclient and seeing if Clickpad=0, if so then you can do 1 of 2 things:

add the following to the above 51.clickpad.conf:

Option "ClickPad"         "true"

Option "EmulateMidButtonTime" "0"

or

use the following and create a shell script, make it exectuable and run it at start up

sleep 3

synclient Clickpad=1

end

:)


Invalid Boot Signature after upgrade to 16.04 (dual boot windows 10)

Had to add a admin and user password before I could turn off safe boot. Grub 2 works perfectly now. Returned boot order to Ubuntu.


Email client, "Mutt", is not sending messages?

There seems to be a typo, the line starting set smtp_url should read:

set smtp_url="smtp://username@gmail.com@smtp.gmail.com:465/"

smtp, not fmtp


How to see "people nearby" with Empathy in Ubuntu 14.04

In Ubuntu 14.04 the messaging account management is done via the 'Online Accounts' panel. You can either open Empathy and select 'Accounts' or open 'System Settings' and go directly to 'Online Accounts'. In the 'Online Accounts' panel choose the 'Add account' option and select to create a new account for the 'Salut' service. This enables the known 'People Nearby' account in Empathy on Ubuntu 14.04 using the 'Salut' protocol.

See:

https://help.gnome.org/users/empathy/stable/create-account.html.en
https://help.gnome.org/users/empathy/stable/salut-protocol.html.en


Is there a natural sounding text-to-speech package?

I've used MaryTTS for a while and I think it's (most likely) the best TTS engine for Ubuntu. It British and American English, German, French, Italian, Swedish, Russian, Turkish, and Telugu with more languages down the line.

It also offers the choice of creating a new voice, so you can tailor it to suit your needs.


12.04 disabling wireless via dbus does not work

Have a look at the nmcli utility, it controls networkmanager via (I think) dbus calls but should be much simpler to use from your script.


Where is Ubuntu one´s U1 server located?

Hostname    one.ubuntu.com
ISP     Canonical Ltd
Continent   Europe
Flag    GB
Country     United Kingdom
Country Code    GB (GBR)
Region  Unknown
Local time*
08 May 2011 19:17
City    Unknown
atitude     54
IP Address  91.189.89.219
Longitude   -2

Reference: Go to http://geo.flagfox.net/ and type in the input field "one.ubuntu.com" and hit "Submit" button.


sudo apt-get install (package name) always takes me to an Oracle Java 13 Installer, Where I cannot do anything

Here are a few things to try in this order:

apt remove (Oracle Package)
apt purge (Oracle Package)
apt --purge remove (Oracle Package)
apt clean
apt autoclean

After running each one, do a reboot with

`shutdown -r now`

If that doesn't do it try:

dpkg --purge (Oracle Package)

Find the offending (Oracle Package) in /var/lib/dpkg/info/jdk-13.postinst and edit. Add exit 0 as the 1st entry (after #! /bin/bash)
Run dpkg --configure (Oracle Package) and finally apt purge (Oracle Package)

shutdown -r now


Try resetting Firefox...
Try the links given below.

Reset Firefox to its default state
Firefox Slow/Hangs


trouble installing 13.04 on samsung series 9

Did you do the recommended repair (written at the bottom of the report)?

Have you changed any default option while running Boot Repair?

For the easiest way, try re-installing Ubuntu keeping the bootloader location to default (most probably /dev/sda).

Also, if you're planning for a dual-boot along with Windows, install Windows first. It becomes stubborn while identifying any other OS. :)


I need help in creating swap after installation 14.04 LTS

To begin, one last check to make sure you definitely don't have swap:

sudo swapon -s

This should list any available swap files. If nothing is listed then you will need to create one. The following command will create a 4gb swap, as an approximate rule the size of your swap should be the same size as the amount of RAM your machine has:

sudo fallocate -l 4G /swapfile

(obviously replace 4G with 8G if you have 8gb of RAM etc.!)

Verify that the swap size is correct with:

ls -lh /swapfile

Next set the permissions on the swap file so it's only accessible by root:

sudo chmod 600 /swapfile

Next set the swap file up using:

sudo mkswap /swapfile

Finally use the following command to enable the swap:

sudo swapon /swapfile

You can check that swap is now in use by typing:

sudo swapon -s

Congrats, you should now have swap. Next you might want to...

Make swap automatically load at startup:

sudo nano /etc/fstab

And then add the following line to the bottom of the file:

/swapfile   none    swap    sw    0   0

For more information, such as optimizing swap, this article has a great overview.


How to install specific R version in ubuntu

Binary packages approach
Before proceeding I need to repeat my points - you can install R 3.6.3 using packages from official repository. Or install R 4.0 from CRAN. And then install here R-package with specified version using commands like shown below:
require(devtools);
install_version("ggplot2", version = "0.9.1", repos = "http://cran.r-project.org")

Note: for package names and versions consult with R package index.
Manual compilation approach
If you really want to compile older version of R by yourself, then read the next text carefully. Be ready for 900 Mb download and 2200 Mb disk space usage (numbers are shown for fresh system).
To compile older version of R you need to enable source code repositories (deb-src) in Software & Updates (software-properties-gtk), then download the source code, compile it and install compiled binaries and other components. Use commands below:
sudo apt-get update
sudo apt-get build-dep r-base-dev

cd ~/Downloads
wget -c https://cran.r-project.org/src/base/R-3/R-3.5.0.tar.gz
tar -xf R-3.5.0.tar.gz
cd R-3.5.0
./configure
make -j9
sudo make install

Then you can run this locally installed R version using its full path /usr/local/bin/R. It will allow you to have R 3.5 co-installed along with R 4.0 simultaneously.


Direct installation of eclipse neon in ubuntu 16.04 LTS

N.B.: This answer provides example of my own values. Adjust to your own as necessary

In the beginning of installation, the installer prompts user for installation folder

In the screenshot , it will be placed into my ~/.eclipse/java-neon.

So in order to access eclipse from terminal, I have to add it to my PATH variable like so:

Open ~/.bashrc with text editor
add `$PATH=$PATH:/home/xieerqi/eclipse/java-neon/eclipse/eclipse
save and exit.
Run source ~/.bashrc in terminal

Now , if I run eclipse in terminal, it will be launched.

If you also would like to make it openable via Dash or Launcher, you will need to have a ~/.local/share/applications/eclipse.desktop file created

[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/home/xieerqi/eclipse/java-neon/eclipse/eclipse
Icon=/path/to/icon
Terminal=false

Note that icon part is optional


The hourly and daily (and also weekly, monthly)cron jobs are run by run-parts command. My /etc/crontab has:

17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

The thing to note is that run-parts is very sensitive to file names. From man run-parts:

  If neither the --lsbsysinit option nor the --regex option is given
  then the names must consist entirely of ASCII upper- and lower-case
  letters, ASCII digits, ASCII underscores, and ASCII minus-hyphens.

So as the file is named testEcho**.sh**, it fails the name checking of run-parts and hence run-parts ignores it.

You need to rename the file(s) to conform to the run-parts naming policy or you can execute the files directly by adding relevant entry in crontab.


Installing Tremulous on 64-bit Ubuntu 13.10

Try this command in a terminal:

sudo apt-get install libsdl1.2debian

then retry launching Tremulous.


I downloaded the ppp source code by typing these two commands:

sudo apt-get build-dep ppp
apt-get source ppp

In the header file pppd/plugins/rp-pppoe/pppoe.h I found this:

/* Header size of a PPPoE packet */
#define PPPOE_OVERHEAD 6  /* type, code, session, length */
#define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD)
#define MAX_PPPOE_PAYLOAD (ETH_DATA_LEN - PPPOE_OVERHEAD)
#define MAX_PPPOE_MTU (MAX_PPPOE_PAYLOAD - 2)

ETH_DATA_LEN is defined in /usr/include/linux/if_ether.h

#define ETH_DATA_LEN      1500            /* Max. octets in payload        */

And in pppd/plugins/rp-pppoe/plugin.c I found this:

    if (lcp_allowoptions[0].mru > MAX_PPPOE_MTU)
        lcp_allowoptions[0].mru = MAX_PPPOE_MTU;
    if (lcp_wantoptions[0].mru > MAX_PPPOE_MTU)
        lcp_wantoptions[0].mru = MAX_PPPOE_MTU;

What all of this means is that the rp-pppoe plugin has a hard coded limit of 1492 bytes. And the only way to increase it is by modifying the source and rebuild the plugin with a higher limit.

By removing the above four lines from plugin.c and rebuilding the module, I was able to increase the MTU from 1492 to 1500. This only works as long as the underlying line is known to support the larger size, which happens to be the case on my connection.

In order to detect the capability of the underlying line it would be necessary to use a newer pppd version with RFC 4638 support. Ubuntu 16.04 has a newer pppd version and thus should be capable of using larger MTU sizes for PPPoE without needing to recompile any code.


How can I audit commands executed by a user without installing acct

You cannot use acct to audit events that occurred before it was configured or installed, as it is a background service that collects that information. That said, here are some alternatives:

.bash_history (or other shells' history)

is a file in a user's home directory (/home/username/.bash_history) in which the Bourne Again Shell (the default in Ubuntu) stores its command history (which you access when you press the up arrow to repeat a previous command, among other things).

The user may use a different shell. You can check what shell they use by running the command getent passwd username. It is located here:

$ getent passwd username
username:x:1000:1000:User Name,,,:/home/username:/bin/bash
                                                 ^^^^^^^^^

Other shells' history files are:

bash    .bash_history
csh     .history
zsh     Hard to say, could be .histfile, .zhistory, or .zsh_history, or something else entirely.
fish    .local/share/fish/fish_history

(non-exhaustive)

Note that many shells limit the size of the history file. If the user has been executing commands since the date you want to audit, especially for a long time, there's a good chance what you're looking for has been overwritten.

Security Log

If the command the user ran was done using sudo (That would be a good reason to want to audit it!) then it will appear in the security logs, the most recent one being located at /var/log/auth.log. An entry looks like this:

Jun 18 12:00:17 hostname sudo:   username : TTY=pts/0 ; PWD=/home/username ; USER=root ; COMMAND=/usr/bin/updatedb

However, logrotate periodically compresses old logs, so you might have to look at older logs named like auth.log.4.gz. An easy way to view these logs without unzipping them is with zless:

zless /var/log/auth.log.4.gz

If you find that they instead opened a shell as root, you could look at root's history files. (root's home directory is usually /root)

Bottom line

If the user didn't cover their tracks well, you might be able to find what you're looking for. However, it's not hard to leave no trace, even if the user just got lucky, for example, deleted someone else's archives that they had access to in a shell that didn't record history.


I want to install "MahaSecure" Banking software in ubuntu 16.4

Download link for Linux is visible only when you first login through their old net banking system.

Download & extract MahaSecure-64Bit.tar.gz for Linux in some folder, say ABCD. It contains one file MahaSecureInstaller.sh & a folder MahaSecure.tar.gz . Open ABCD in the terminal and type:

sudo ./MahaSecureInstaller.sh

This should install MahaSecure with a Desktop shortcut from where you can launch it.


New 14.04.4 LTS server install got kernel 4.2

Ubuntu 14.04.4 comes with kernel 4.2.

It is all correct with your installation.

Ubuntu 14.04 and 14.04.1 were shipped with kernel 3.13.

14.04.2 with kernel 3.16

14.04.3 with 3.19.

See LTS Enablement Stack:

  The Ubuntu LTS enablement stacks provide newer kernel and X support for existing LTS releases. These can be installed manually, or are automatically shipped if installing from 12.04.2/14.04.2 and newer release media.


After latest software update 'Daemon for power management' fails to start

From the log file /var/log/apt/history.log, check that whether systemd:amd64 and systemd-timesyncd:amd64 is removed, if they are you may be effected by
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1903273
Try installing them sudo apt install systemd:amd64 systemd-timesyncd:amd64
systemd: User daemons fail to start after after update removed snap


Connection problems between Access Point and Ubuntu

Nmap is indicating that 192.168.1.123 is up, but it did not find any open ports from the common ports list that it uses.

First test you can Ping the IP address of the AP from both computers.
Then you can use Nmap to see if the port on the AP is open (nmap -p 8080 192.168.1.123), change 8080 to whatever port you use when accessing from your XP machine.


If you have a C++ program with a QML interface, Command is the name of the executable produced by compilation and Arguments is whatever arguments you want to pass it.

If you have a QML program with C++ plugins, Command is qmlscene and Arguments is what you would add to qmlscene to run your QML program.  As a minimum, you probably want something like -I . main.qml.  The -I . tells qmlscene to look for plugins in the current directory, and main.qml should be changed to whatever the name of your main QML file is.


Is it possible to type a thin and hair space without entering the Unicode?

Got it! Keyboard preferences > Layouts > Options... > Using space key to input non-breakable space character > Non-breakable space at third level, thin non-breakable space at fourth level.

(The fourth level is called the same way as the third plus Shift. To set the 3rd level switch, go to Keyboard preferences > Layouts > Options... > Key to chose 3rd level.)


"Dummy Output" in Ubuntu 16.04 after fresh install

A simple recovery to the OS of the most recent available should solve the dummy output problem, if it does, then run command "sudo update-grub". This should be done every time
settings or software are changed.

Also sounds like you have a bootloader problem. Windows will damage this if it gets the opportunity. It can be repaired with Boot repair image cd you can make free of charge from Ubuntu. Keep the bootloader out of Windows access, and on any reinstall, always install Windows first before Ubuntu. That keeps the bootloader under Ubuntu control. Then run boot repair and this will usually repair dual boot problems in a few minutes or less. Once this is working again, then run the update-grub commend again to complete.


sudo apt-get remove battery-status
Type advanced settings at Dash Home search and click on Advanced Settings move to 'Fonts' and set them to your taste.


14.10 Trackpad works correctly on live CD, but not after installation

Working now! Found a solution on this question:

Trackpad not working when updated to Ubuntu 14.10

  In the terminal, type:

  sudo vi /etc/modprobe.d/blacklist_i2c_hid.conf`

  then type the following into that file.

  blacklist i2c_hid

  Save the file and restart your system, now check whether the touchpad is working fine


can't connect to internet even by wire(could before)

You installed Ubuntu package r8168-dkms and that changed alias ID's to keep the r8169 driver from loading.  You should be able to fix by executing the following command in terminal

sudo apt-get remove r8168-dkms

Reboot


how to write a lua script using hddtemp so that results are displayed in a bargraph

name="execi 10",
 arg="hddtemp /dev/sda2 -n",
       max=100,
       alarm=80,

Writing this will allow one to read hddtemp in a bargraph. just rewrite sda2 so that it matches your drive number.


which version of CUDA samples on github to choose for nvidia-cuda-toolkit in 20.04?

For the apt package 10.1.243-3, it seems on the github releases page, that corresponds to 10.1 update 2.
There are two pieces of evidence that support this:

right next to 10.1 update 2 on github, there's a "10.1.2". This is the closest to apt package
on github, under 10.1 update 2, it says "released on Aug 19, 2019". That's the same release date on the official nvidia doc for cuda 10.1.243.


How to run bash script in upstart conf file?

There are several great tutorials available for you to create upstart jobs.

Here you go

http://upstart.ubuntu.com/getting-started.html
https://help.ubuntu.com/community/UpstartHowto
http://digital-madness.in/blog/2013/ubuntu-12-04-upstart-at-boot-services/


TP-Link Wifi slow - Driver has suspect GRO implementation, TCP performance may be compromised

I downgraded from Bionic Beaver LTS to Xenial LTS and it fixed both issues. I am no longer getting the message and my speeds are up to what they should be at 32mpbs(10 mpbs faster).


Need help: multiple displays on Ubuntu 12.04 with NVIDIA driver

If you have installed the nvidia drivers for your graphics card (use the Additional Drivers tool to install them if not) you should have a tool NVIDIA X Server Settings in your menu (nvidia-settings in the Terminal). This has lots of options, but you should only need the second entry (X Server Display Configuration) which has a graphical interface for setting up twin monitors.

Once you have the configuration you want, the Save to X Configuration File button (your password will be required) will make this configuration permanent (otherwise you'll be back to a single screen the next time you restart).


There are a couple fixes, option 1 is echo "options rtl8188ee ips=0 fwlps=0" | sudo tee /etc/modprobe.d/rtl8188ee.conf and reboot, if no improvement we can install backports

sudo apt-get install linux-headers-generic build-essential
wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.19-rc1/backports-3.19-rc1-1.tar.gz
tar -zxvf backports-3.19-rc1-1.tar.gz
cd backports-3.19-rc1-1
make defconfig-rtlwifi
make
sudo make install

Reboot

If you install updates and notice the same issue with wifi, it is likely caused by a kernel update, then you need to

cd backports
make clean
make defconfig-rtlwifi
make
sudo make install

Reboot


The error message suggests a bug that has been making the rounds for some time now, affecting some PCs with Intel Graphics running kernel 4.8.x and newer.

I should be corrected anytime soon. Meanwhile you can try the following workaround. Please note this parameter will disable the S-Video port. Other than that it should be safe:

In terminal,

sudo -H gedit /etc/default/grub

Change the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

into

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=SVIDEO-1:d"

Save and close Gedit.

Then, in Terminal, do

sudo update-grub

Reboot & test.


Pulseaudio - Configs updated back to default on restart

Try entering "pulseaudio --start" into the Startup Applications function, click Add and next time you boot up, a speaker icon should appear in the top bar and you should have sound


You can also run crontab with the -u argument to edit a crontab for a specific user:

sudo crontab -u www-data -e


How to debug lack of sound in Asus EEE PC

First, aplay requires an argument.  In this case it would be aplay -l to list the devices.

Secondly, with the Asus eeepc there frequently is a problem that ALSA often sees two sound cards: HD-Audio Generic (essentially a virtual device,that doesn't actually play music but mighty worh with an HDMI cable to another device) and the required HDA ATI SB. The simplest way to check it is to launch aplay -l.

If HD-Audio Generic is the first card (0) it is the default card. If it is the case, than you're likely to have no sound unless the default card is switched from 0 to 1.

If it doesn't exist create /etc/asound.conf  ...add the following three lines.

defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1

...give that a whirl.


How do I search for binary (openoffice files) which contain specific text?

GUI

Install searchmonkey, it's available from the repositories.
It's easy enough, but if you still need some help with it, ask me and I'll see if I can figure it out for you.

Command Line

grep -R -i -a -n needle stack

grep is the tool needed to find text.
-R tells grep to search recursively.
-i tells grep to not be case-sensitive.
-a tells grep to treat binary files as plain text files.
-n tells grep to show you the line number where the needle is in the file.
needle is the piece of text you are looking for.
stack is where it should search. Because of the -R parameter you can use a directory here.

Example

grep -R -i -a -n "<html>" Websites

This will search for the text  in every file in the folder Websites

I hope my explanation was enough for you to understand the use of all parameters. If not, feel free to ask more in a comment.


There are two ways this can be done:

using the ulimit shell utility, or using the setrlimit system call (which is what ulimit calls in turn).
using filesystem quotas, and a special user for the server process, will restrict the total usage of that user

ulimit/setrlimit

From man 2 setrlimit:

RLIMIT_FSIZE
      The maximum size of files that the process may create.  Attempts
      to extend a file beyond this  limit  result  in  delivery  of  a
      SIGXFSZ  signal.   By default, this signal terminates a process,
      but a process can catch this signal instead, in which  case  the
      relevant  system  call  (e.g., write(2), truncate(2)) fails with
      the error EFBIG.

I'm not sure how one could invoke the setrlimit function from Java, but this U&L question might help. Alternatively, wrap the Java server in a script:

#! /bin/bash
ulimit -f 1073741824   # 1GB
java ....

Filesystem Quotas:

I'm assuming an ext4 filesystem, I'm unsure about others. First, we need to enable quota on the filesystem. Edit /etc/fstab, and add usrquota to the mount options of the appropriate partition. If we're doing this for /, for example, the final entry would look something like:

UUID=... /               ext4    errors=remount-ro,usrquota 0       1

Then enable it after restarting:

sudo quotaon /

I'll assume your server is run as a different user (say restricted_user). If not, create one if you don't want your normal processes to be affected.

Then do:

sudo edquota restricted_user

Which will open an editor.

Disk quotas for user restricted_user (uid 1001):
  Filesystem                   blocks       soft       hard     inodes     soft     hard
  /dev/sdd1                   1087940    943718   1048576       9956        0        0

Set the soft and hard limits to the appropriate values (they're  1024-byte blocks, so divide your limit by 1024). Save and quit.

Then the user will not be able to exceed a total of 1G usage on that filesystem, counting all files owned by them.

Naturally, you should still check the size in your server program.


There are multiple options for Ubuntu on how to do this. If you want to do this using a GUI you could simply open Nautilus and connect a server of the type of FTP.

If you want to do it through a shell you could mount it using ftpfs, which is one of my favorite ways since I get the controls as if it were local files.

To do so:
$ sudo apt-get install curlftpfs

After the install of curlftpfs type:
$ mkdir -p ~/mnt/ftpfs
$ curlftpfs <username>@<server> ~/mnt/ftpfs
$ cd ~/mnt/ftpfs/
$ ls

You should now be able to list your files.

Kind regards,
Jochen


In my case with my ASUS 1015B Netbook which has the hybrid AMD C50 CPU which has integrated ATI6350 graphics, suspend doesn't work even with C6 turned off in BIOS, I have to take the battery out to revive the system.


install of snapd failed for xubuntu 16.04

Snap is working after the reboot.
Is there more information on the debug of snap?
When is it appropriate to reboot?


Inspecting the policy for the offending package I got:

$ apt policy mysql-common
mysql-common:
  Installato: 8.0.19-1ubuntu19.10
  Candidato:  8.0.19-1ubuntu19.10
  Tabella versione:
 *** 8.0.19-1ubuntu19.10 100
        100 /var/lib/dpkg/status
     5.8+1.0.5ubuntu2 500
        500 http://it.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        500 http://it.archive.ubuntu.com/ubuntu focal/main i386 Packages

Hence I guessed something went wrong during upgrade to 20.04.
I removed this package (along all the other related ones) with:

sudo apt remove mysql-common

Then the same command above returned:

$ apt policy mysql-common
mysql-common:
  Installato: (nessuno)
  Candidato:  5.8+1.0.5ubuntu2
  Tabella versione:
     8.0.19-1ubuntu19.10 -1
        100 /var/lib/dpkg/status
     5.8+1.0.5ubuntu2 500
        500 http://it.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        500 http://it.archive.ubuntu.com/ubuntu focal/main i386 Packages

Installing again the removed packages (now from the focal sources, instead of the 19.04) with:

sudo apt install mysql-server ubuntu-desktop-minimal

fixed the issue.


My Toshiba Satellite C55-B5319 fans will not turn on; how do I make them work?

A temperature of 102 Fahrenheit is perfectly normal for a laptop HDD. Toshiba HDDs can operate up to 55 Celcius = 131 Fahrenheit.

The fan in a laptop is designed to cool the heatsink on the processor and video chip and will have little effect on the temperature of the HDD.

If the fans came on when you were running Windows 10 but not Ubuntu it is a measure of how much more efficent Ubuntu is as an operating system.


Search for text in files of same name in multiple folders of various depths

Perhaps with two commands...

grep --include="ResourceParent.xml" -r -E '.txt|.csv|.xls' > file
for d in par*; a=("$d"/*); b=($(sort -V <<<"${a[*]}")); grep -HE '.txt|.csv|.xls' "${b[@]: -1}"/*; done >> file

The second one puts the contents of each directory at the par level into an array sorted by version number so that you can search just the last item in the array. This seems to work (I am getting the last version number) and only takes a couple of seconds on my test directory structure (the first command takes about twice as long).

If your version numbers are padded so that they sort naturally, for the second command you would be able to use simply:

for d in par*; a=("$d"/*); grep -HE '.txt|.csv|.xls' "${a[@]: -1}"/*; done >> file

I mean if your numbers are ver1 ver2 ... ver100, you will need to sort the array, but if they are ver001, ver002 ... ver100, you will not need to sort the array because it will be in the right order anyway.

You may need to replace "${b[@]: -1}"/* with "${b[@]: -1}"/ResourceVer.xml. I did not create other files. You will presumably also need to replace par* with something (I think you said you have about 100 directories at this level).

But maybe you wanted the data sorted by the directories at the level of par so that you get

data from par1/ResourceParent.xml
data from par1/ver{latest}/ResourceVer.xml
data from par2/ResourceParent/xml
data from par2/ver{latest}/ResourceVer.xml

You could perform some text processing on the output file, but it depends how your par directories are named. Since I named them par1 par2 ... par200

sort -V file >> betterfile

will to do that job, assuming filenames had no newlines.

You could also trim off the filenames by using grep -h (instead of -H) in the original commands (though that would mean that you could not sort the data afterwards by the above method), or by text processing at the end, for example, if your filenames have no colons or newlines this would be quite reliable:

sed 's/^[^:]*://' file

You can write to the file instead of stdout by adding the -i flag to sed after testing.

Thanks to John1024 whose answer on U&L provides a great way to get the last filename that doesn't rely on parsing the output of ls or find or gratuitously loop over the structure to count iterations.


nautilus won't accept password in command

Just store the password on the keyring. Then you won't be asked for a password again.

When prompted the first time, choose to store the password. You can't input the password to Nautilus from the command line.

A working alternative is gvfs-mount, which asks for the password on the terminal if not stored, instead of using a window.

gvfs-mount ftp://user@server && nautilus ftp://user@server

As the password is being read from the standard input, you can pass it from the command line like this:

gvfs-mount ftp://user@server <<< "passwordHere"
nautilus ftp://user@server

Please notice this is very insecure, since the password will be stored on your bash history file. I recommend disabling history before doing this, then reenable it.

HISTIGNORE="*"
gvfs-mount ftp://user@server <<< "passwordHere"
nautilus ftp://user@server &
unset HISTIGNORE

You can also finetune the HISTIGNORE expression, so it doesn't match any command starting with gvfs-mount and still keep other commands.

HISTIGNORE="gvfs-mount *"
gvfs-mount ftp://user@server <<< "passwordHere"
nautilus ftp://user@server &

You can write this a a one-liner also by using semicolons:

HISTIGNORE="gvfs-mount *"; gvfs-mount ftp://user@server <<< "passwordHere" ; nautilus ftp://user@server &

You can also avoid writing the URL twice by storing it on a variable:

CONNECT_TO="ftp://user@server" ; HISTIGNORE="gvfs-mount *"; gvfs-mount $CONNECT_TO <<< "passwordHere" ; nautilus $CONNECT_TO &


I am unable to install skype on ubuntu 14.04

Enabling Recommended Updates and Unsupported Updates in 'Software & Updates' and then installing skype worked.

It seems I didn't have the latest versions of some packages since I have disabled Recommended Updates and Unsupported Updates. I had only Security Updates enabled. I was thinking that I had the latest versions of packages but apparently I was only getting security updates.


How can I get a language selector in top bar in Ubuntu 19.04?

You need to set up multiple input languages (keyboard layouts) first. The input language switcher icon would appear automatically in the top bar once you have two or more input languages.

Also as pointed out by @singrium in comments, you can alternatively use the Super+Space keyboard shortcut to switch between input languages.


Remote dekstop connection to virtualized Windows desktop not working

Rdweb app requires Active X. It is not possible to get Active X to work on Ubuntu (requires Internet Explorer).


Can i install a 64bit lubuntu on my i386 pc?

No you cannot.

I have an old eeepc from 2007, with recorded (by me) specs as

asus eepc 1000HE (intel atom n270, 1gb, intel mobile 945gse integrated)

The latest Lubuntu I believe it would install is Lubuntu 18.04 LTS from 2018-April, and is supported until 2021-April.

I stopped using it for testing, as it's BIOS wouldn't allow me to boot USB thumb-drives, which is why the hesitation (ie. what I believe it would install) as i stopped creating DVD-RW test media.


How to configure multiple displays with different DPI settings using xfce >= 4.14?

You could try combining 2x Windows Scaling and xrandr --output eDP-1 --scale 1.25x1.25 to get less upscaling. It might affect to graphics performance, when e.g. playing videos, though. At least you can make the setting xrandr setting for each monitor separately.

Besides, you could choose a hdpi theme in Settings Manager > Window Manager > Style to change windows' edge thickness, at least.


Message pops up on booting ubuntu 16.04 lts

There is a space missing between "$HOME/bin" and ] in line 20, on Line 21 it should be "$HOME/bin".

Replace

if [ -d "$HOME/bin"] ; then
    PATH="$HOME/BIN:$PATH"
fi

with

if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi


sudo: unable to resolve host 127.0.0.1kaushal

I solved the problem by going to  All Setting >  Details > Device Name   changed the device name to kaushal
Just make sure that your /etc/hostname file has only your machine name.For my case it was kaushal


One way to get most of the build dependencies would be to run sudo apt-get build-dep gitg. This would install all of the build dependencies needed to compile gitg.

However, note that because of the old version (0.2.7), there might be some dependencies installed that aren't needed, and some dependencies that are needed but not installed.


Installed Ubuntu 15.10 alongside Windows 10, but it won't boot

you need to repair the bootloader using boot repair  .
first shutdown the pc and inesrt the booted usb in pc port and start the pc
then option to install/try the ubuntu come. click on try
login to ubuntu
after login.

 1. open terminal (use Ctrl+Alt+T or go to dash and type terminal)
2. sudo add-apt-repository -y ppa:yannubuntu/boot-repair;
3. sudo apt-get update;
 4 sudo apt-get install -y boot-repair && boot-repair

use can follow the procedure given by LovinBuntu https://askubuntu.com/a/226064/427621
   after completing the procedure unplug the usb and restart the system.


I would suggest that you install a lighter desktop than ubuntu in WSL. XFCE seems to work fine with WSL.
sudo apt update
sudo apt install xfce4
startxfce4


Can I sync bookmarks between Firefox and Chromium?

You can sync bookmarks between multiple installation of Firefox or multiple installation of Chrome/Chromium, but you can't sync them togheter.

You should use third-party addon/service like xmarks.com:

Visit My Xmarks, register your credentials and log in with your Xmarks username and password.
Open your browser, and install the addon http://download.xmarks.com/download
Now open up the Xmarks settings dialog in your browser (Tools > Xmarks > Xmarks Settings...) and configure your login data.
Xmarks, on each browser you use, will seamlessly keep your bookmarks, (and optionally) passwords and open tabs in sync.

Nothing is transmitted unencrypted through the plugin if you don't want to. You can adjust the encryption level yourself. Passwords are encrypted with your pin anyway, even if you choose to transmit the file unencrypted. If you don't trust it, then simply don't use the password sync.

More info in this question too.


Screen resolution higher than monitor specs

You've already said you can change the resolution to one higher than your monitor supports (I'm guessing it's a feature of the display). Another way to do it would be the newrez script by Marc Brumlik.
But I'm afraid that won't change anything. There just aren't enough pixels to display text cleanly.
You can always decrease the size of the text if your display feels a bit cramped. To do that, go to System → Preferences → Appearance → Fonts → Details... and set your display resulution to a lower value:

Thanks to the good design of the Ubuntu font, even 50 dpi is very readable, provided your display operates at its native resolution.
For the best results with most fonts, the resolution should be divisible by 12.


How to get Unity dash overlays maximized by default?

The dash is designed to open "half-way" for screens that are larger than a standard netbook.  This is called "Desktop" mode.
You can force it to use "netbook" mode through the following:
gsettings set com.canonical.Unity form-factor 'Netbook'

If you want to reverse this try
gsettings set com.canonical.Unity form-factor 'Automatic'

or
gsettings set com.canonical.Unity form-factor 'Desktop'

Alternatively, you can install the configuration editor dconf-editor from the package dconf-tools and do the same the graphical way:

for 12.04
For 12.04 and later you can use MyUnity:

There is also a rather neat overlooked method...

Click the dash maximise button as shown, followed by the dash button itself.  This changes from desktop to netbook and most importantly the setting is retained when you logout and login.
For other options:

How can I configure Unity?
How to get the Unity dash overlayed not maximized by default?


Cannot execute PCManFM from the program's menu on Lubuntu 19.04

Navigate to /usr/share/applications (typically) to find the .desktop files and then edit them appropriately with any text editor. If you need to debug I find running the command in a terminal to see any errors helps.


In as far as Unity will continue to be maintained and supported for future Ubuntu versions, and in as far as you correctly add and remove software using the APT system, then no, you will not have problems with future updates.


Focus existing terminal with `Ctrl-Alt-T` shortcut

Create a small script which will raise the GNOME Terminal:

echo 'xdotool windowactivate $(xdotool search --onlyvisible --class gnome-terminal)'> ~/raiseterminal.sh && chmod +x ~/raiseterminal.sh

or if you want to check if Terminal is already running, use:

echo -e $'if ps aux | grep "[g]nome-terminal" > /dev/null\n then xdotool windowactivate $(xdotool search --onlyvisible --class gnome-terminal)\n else gnome-terminal &\nfi' > ~/raiseterminal.sh && chmod +x ~/raiseterminal.sh

This will create the script ~/raiseterminal.sh with this content:

if ps aux | grep "[g]nome-terminal" > /dev/null
 then xdotool windowactivate $(xdotool search --onlyvisible --class gnome-terminal)
 else gnome-terminal&
fi

Open the preferences to set up a custom keyboard shortcut and set the command to /home/$USER/raiseterminal.sh, but make sure to change $USER to your actual username.

If you only want to raise the terminal on a specific screen or desktop, see xdotool search --help for more information on how to do this.

There are also various other methods which work better with other window managers.


Why does Banshee recognize my Android on Ubuntu, but not on Mythbuntu?

Compare the list of enabled plugins in both instances (Edit > Preferences > Extensions). In particular, check whether "Mass Storage Media Player Support" is enabled.


Without having more details of your configuration, the only thing I can suggest is to modify the options on your /etc/fstab entry to the following:

auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0

Make sure you create a backup of your current configuration before you make any changes.


I would like to figure this one out myself, but unfortunately, I don't know;
Assuming you use the Unity Interface, download the 'unity-tweak-tool' (if you use the Ubuntu Software Centre, lose the dashes). You can define the window snapping under the option, amazingly enough, Window Snapping. This tool is also great for tweaking other settings concerning the Unity Interface;
Have you installed the 'ubuntu-restricted-extras' package? It allows you to use Flash.

Edit:

This post seems like it could be a working solutions, but I haven't tried it myself, since I once messed up my system using 'compizconfig-settings-manager', although I just starting using Ubuntu/Linux at that point. Do be careful and don't mess with options you don't understand! :D


I just had a similar problem when I rebooted my home file server and came looking for a similar error.

When using "smartctl --all /dev/sda" (for example) it's useful to check the value of Reallocated_Sector_Ct, if this is non zero and starts climbing dramatically then it means your disk could be failing and it's time to take a backup.

here's the values from my pair of drives (be sure to scroll to the right to see the field values)

sda:

ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   162   161   021    Pre-fail  Always       -       6875
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       50
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   065   065   000    Old_age   Always       -       25675
 10 Spin_Retry_Count        0x0032   100   253   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   253   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       48
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       9
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       50
194 Temperature_Celsius     0x0022   105   099   000    Old_age   Always       -       45
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   200   200   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       5
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

and sdb:

ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   164   164   021    Pre-fail  Always       -       6775
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       38
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   066   066   000    Old_age   Always       -       25548
 10 Spin_Retry_Count        0x0032   100   253   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   253   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       36
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       6
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       38
194 Temperature_Celsius     0x0022   110   099   000    Old_age   Always       -       40
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   200   200   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

the good news is that I'm getting raw value 0 for the reallocated sector counts.

hope this helps


Try using a different third party media player that has codecs to watch encrypted movies. VLC is a popular one that you could try.


How to set up Ubuntu + Win 8 in virtualbox, when Win 8 is pre-installed?

First, I'd like to know where the "Windows 8 Installation Media" is.  If its a separate DVD you are golden.  If it's on a "Recovery Partition" it's going to be harder.

The problem is that Windows 8 installs to the Hardware.  It ONLY has drivers for the exact hardware it's on.  If you were to try to migrate the partition into a Virtual Disk Image, it would not boot, as the hardware is different.

Ubuntu 13.04 will run perfectly on the Samsung Ultrabook, and Windows 8 runs fine inside of VirtualBox.  It's getting Windows 8 into the VDI that poses the problem.

BTW... I hope it's more than just Office and Acrobat that you need Windows for, because these both run very well under Ubuntu 13.04 (PlayonLinux install of WINE).


the short answer is NO. Ubuntu normally allows only to upgrade from one version to the next, i.e. 10.04 to 10.10. or as 10.04 is a LTS versions to 12.04 LTS.
So you may try , in 3 steps, upgrade to 12.04LTS, upgrade then to 14.04 LTS, upgrade then to 16.04LTS.
Alternative, wipe your HD and start the 16.04 LTS instalation.

Do not count on your files, etc come with it, but you made a backup already, OK
Also your emails and address book need a back-up to be sure they will survive; I donot know how, as I do not use evolution.
see also Can I skip over releases when upgrading?


Can't install Nvidia drivers on Ubuntu 15.04

Try this

     sudo apt-get install xorg-xserver-video-all

and it might work fine this way.


The "Gypsy Punks" line starts "d?????????" which indicates that the directory entry is corrupt.  I recommend backing up what you can from the USB drive and running fsck (file system consistency check) on the drive.  You can use "df" or "fdisk" to determine the device name of your USB drive (e.g. /dev/sdb) and the partition within the drive (e.g. /dev/sdb1).  You can then use "fsck" to scan and attempt to repair the file system.  Note that since the fsck command will change the USB drive there is a risk that you will lose data on that drive.

sudo fdisk -l                 # to determine the partition name
umount partition_name         # since fsck will not work on a mounted drive
sudo fsck -a partition_name   # using the appropriate

Note that option -a will automatically apply all changes.  Leave that off if you want to run fsck interactively.

After the directory table has been repaired by fsck you should not see question marks in the "ls -l" output and you should be able to delete the files that you want.

See https://linux.die.net/man/8/fsck for details on fsck.


You want to allow traffic out. This is what I had to do:

sudo ufw allow out 80

Does that work?


I have installed this multifunctional on Debian Stretch without any issues with the Driver Install Tools provided by Brother. It did not warn me that the script should be run as root, so you may want to try that out?
Also: if your system has AppArmor enabled, you may see error messages in the script output - the script does not cope well with errors, so you're left to yourself to read the script's output.

EDIT: I just found a page detailing so-called 'pre-required procedures': https://support.brother.com/g/s/id/linux/en/before.html?c=us_ot&lang=en&prod=mfcl2710dw_us_eu_as&redirect=on#prereq

Instead of including these procedures in the installer script, Brother decided to document them on the website...


World of goo is not in Ubuntu Software Centre?

Despite adding all sources I still could not find it via normal searching.  However I did find it by going to File -> Reinstall previous purchases... in the Software Centre.


I wouldn't reinstall Ubuntu in order to fix this problem.

Instead take unshare any folders Ubuntu One sync-daemon is attempting to sync. If this doesn't work try killing the ubuntu-one syncdaemon. Check what resources this is using in System Monitor. If the process keeps coming back and causing Nautilus to crash you can uninstall Ubuntu One with the following actions:

Go to System->Administration->System Monitor.

Switch to the Process tab, and you should find out anything that begins with "ubuntuone". Choose them, and click "End process".

Go to Applications->Accessories->Passwords and Encryption Keys.

If there is a token for Ubuntu One right-click it and choose "Delete" / Mine was actually called "default".

Go to Applications->Accessories->Terminal to open a terminal window.
Type the commands below:

rm -rf ~/.local/share/ubuntuone
rm -rf ~/.cache/ubuntuone
rm -rf ~/.config/ubuntuone
rm -rf ~/Ubuntu\ One

You should enter the following commands in terminal:

sudo apt-get purge ubuntuone-client* python-ubuntuone-storage*

Now your Nautilus problems at least should be resolved.


How to configure gnome-shell extensions installed from the official website?

for now you can not do that.

the extensions from the official site which still in alpha, cannot be modified using dconf. (at least some of them).

but you can still modify them, by going to the extension.js and .css files in /home/username/.local/share/gnome-shell/extensions.


I was going through the same problem. Here is how to solve it, even though it doesn't solve the nameless problem:

If you have wired internet available to your problem PC

Follow this answer, which adds Pilot6's rtlwifi PPA to your sistem and installs the required rtl8192eu-dkms package.

If you have no internet access in your computer

Find another computer with internet access to download the rtl8192eu-dkms package manually.
Access https://launchpad.net/~hanipouspilot/+archive/ubuntu/rtlwifi
Click on "View package details"
Filter your Ubuntu codename (16.04 LTS is Xenial).
Click on the triangle to open more options of "rtl8192eu-dkms - 4.4"
Download rtl8192eu-dkms_4.4_all.deb.
Transfer this file to your target PC
Install the file on your target PC, either through the Software Center or the Terminal (by issuing dpkg -i <filename> in the appropriate folder).
Re-plug your dongle.

Here's a screenshot to better show the location of the download link:

Source of image: https://launchpad.net/~hanipouspilot/+archive/ubuntu/rtlwifi/+packages?field.name_filter=&field.status_filter=published&field.series_filter=xenial


Cannot boot into the bootable USB stick on Lenovo G470

This happened with me when I was trying to do the same. Try opening the boot settings and change it so the usb is the first thing the computer goes to boot instead of windows.


Connected to WiFi but unable to access the Internet

Check your DNS settings. Who is the DHCP server? And what DNS server does the DHCP distribute?


TP-LINK MR3020 wireless setup on Ubuntu 12.04 LTS

It looks like you can configure the router with going to 192.168.0.254 in you web browser. that should work just as well in linux as on windows. Enter the default User Name and Password: admin. according to the manual...


Questions about dual booting and brand new SSD!

Completely Install windows on the entire drive, don't worry about partitioning at all, use the entire drive, after you have rebooted and installed updates and are happy with the results, you can download a Linux distro such as Ubuntu. Download and burn .iso to blank DVD disk or make a LIVE USB using - unetbootin - Then install Ubuntu using the Live desktop that you boot to.  During the install you will have a screen that will ask you if you want to erase disk and install Ubuntu or install Ubuntu alongside Windows. You want to click the check for install alongside Windows. Live desktop installer in Ubuntu will take care of all the partitioning for you :-) All Done ENJOY Using LINUX :-)  If you want to check out some COOL Linux distro's go here>          http://distrowatch.com/      Go to right side of page and there are listings from the #1 distro to #100 in ranking. ENJOY


Wired ethernet on a Mac mini 2012 with Ubuntu 12.10 problem

Based on these instructions I found a link to installing the driver with DKMS. I tested this on 12.04 LTS (not 12.10) and it worked with this hardware:

01:00.0 0200: 14e4:1686 (rev 01)
Subsystem: 14e4:1686
01:00.0 Ethernet controller: Broadcom Corporation Device 1686 (rev 01)
Subsystem: Broadcom Corporation Device 1686
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at a0400000 (64-bit, prefetchable) [size=64K]
Memory at a0410000 (64-bit, prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: tg3
Kernel modules: tg3

I've copied the relevant instructions here as requested.

Install any pending kernel updates, and the dkms package. Check that you are running a Linux kernel version 3.5 or later. If you upgraded the kernel, you must reboot with the new kernel before you will be able to load the driver.

Accept the Broadcom license and download and install the latest drivers for 3.5 and higher kernels. Extract the ZIP file and move its contents to /usr/src/tg3-3.124c/src:

unzip linux-3.124c_3.5_KERNELS.zip
sudo mkdir /usr/src/tg3-3.124c
sudo mv tg3-3.124c /usr/src/tg3-3.124c/src

Create a file called /usr/src/tg3-3.124c/dkms.conf with the following contents:

PACKAGE_NAME=tg3
PACKAGE_VERSION=3.124c
CLEAN="make -C src/ clean"
MAKE="cd src/ && make BUILD_KERNEL=${kernelver} KVER=${kernelver}"
BUILT_MODULE_NAME[0]="tg3"
BUILT_MODULE_LOCATION[0]="src/"
DEST_MODULE_LOCATION[0]=/updates
AUTOINSTALL=yes

Run the following commands to compile and install the driver:

sudo dkms add -m tg3 -v 3.124c
sudo dkms build -m tg3 -v 3.124c
sudo dkms install -m tg3 -v 3.124c

And load the driver:

sudo modprobe tg3


I see this problem on my Lenovo Y40 with Ubuntu 14.04 LTS and also with Ubuntu 16.02 LTS, both has the same issue and for me the same solutions and it was.
Basically:

echo "blacklist ideapad-laptop"  >>  /etc/modprobe.d/blacklist.conf

modprobe -r ideapad-laptop

exit

Full asnwer and credits, here....

Wireless disabled by hardware switch Lenovo Y40


How To Run Program, installed from source

@Olimjon: You were right; i did not yet do make install, because i thought the ;make before did that, but anyway.

And Takkat was right, too. After that I got the same error.

Now I want to install version 0.139-0 as you did.
The easiest way to do that seems to be: How to downgrade packages on Ubuntu?

Unfortunately I only have version 0.139-2 in my repositories. Which repositories do I have to add to be able to install version 0.139-0?

Thanks to everyone!


what are the things I have to do regularly on ubuntu to stay up to date

If you want to do these stuff manually just like I do:

Always keep your sources up to date using:

sudo apt-get update

use sudo apt-get upgrade regularly to upgrade all packages to newer versions, get security updates and patches.

use:

sudo apt-get dist-upgrade

to get install new kernel, it might remove or install new packages if it was necessary.

time to time use:

sudo apt-get autoclean

to clear your apt cache, it removes old deb files which are not necessary anymore.

and run:

sudo apt-get autoremove

to remove old kernels or packages that are not necessary anymore like dependencies which are not being used anymore.

that's what I do.

If you use apt instead of apt-get then by running apt upgrade you get all packages updates also new kernel and you don't even have to run apt autoclean cause it's not going to cache deb files.

You should also have backup from your system's important paths:

/etc
/var
/home

are the places which I always keep a backup of them.


Use /etc/hosts to direct wildcard domain name

You need to set up a DNS server. (install dnsmasq (is light) or bind (is rather heavy)). To install ...

 sudo apt-get install dnsmasq

In /etc/NetworkManager/dnsmasq.d/dnsmasq-localhost.conf

add

 address=/localhost.com/127.0.0.1

restart

 sudo /etc/init.d/dnsmasq restart

Important note.

If dnsmasq service failed to start, please check your service logs by running systemctl status dnsmasq.service command.

Then, If you will see the following message in the logs Failed to create listening socket for port 53: Address already in use - you may resolve this error as described here


For GUI options:
If you don't need vsftpd, you can use gadmin-proftpd from the repositories:

gadmin-proftpd is a fast and easy to use GTK+ administration tool for the
Proftpd standalone server.

If you need something more sophisticated :

Setting up a ftp server should not be a complicated experience though.

I would suggest you try to follow the server guide at https://help.ubuntu.com/lts/serverguide/ftp-server.html and if you get stuck post specific questions.

and administrate it via web interface like : webmin.


Connect to the internet by wire and run

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

and reboot.


I think you need a heavier programming language for this. Python is my language of choice so here's a simple script with a simple example of a test:

import sys

tests = [
    lambda a, b, c, d, e: a+1==b and b+1==c and c+1==d and d+1==e,
]

with open(sys.argv[1]) as f:
    for line in f:
        if any(t(*map(int, line.split(','))) for t in tests):
            sys.stderr.write('Line removed: %s\n' % line)
            continue
        print line

That's obviously only a skeleton example of tests but it should be usable. Run normally it will output just the lines that don't match to STDOUT and the ones that do to STDERR. This makes it useful for redirecting into a new file.

Here it is in action:

$ python patterns.py <(echo -n 1,2,3,4,5)
Line removed: 1,2,3,4,5

$ python patterns.py <(echo -n 1,2,4,4,5)
1,2,4,4,5

Once you've loaded it up with patterns, you can just pass it the csv: python patterns.py input.csv

In terms of performance, Python isn't always the fastest. I use it because it's more than fast enough for web development and the time to write is much faster (which is what costs me time/money).

You can speed things up with PyPy. This is an alternative Python runtime that benchmarks amazingly well. You might not need the PPA version (Trusty ships 2.2, PPA is 2.3.1) but here's how you would:

sudo add-apt-repository ppa:pypy/ppa
sudo apt-get update
sudo apt-get install pypy

You'd then launch your script with pypy script.py or if you're executing it directly change the opening shebang to #!/usr/bin/env pypy. I've done some very simple testing on a 350000-line input file (your example repeated 50000 times) with the above script.

python2 ran it in 1.417s and pypy ran it in 0.645s. In my experience, you're likely going to see an even bigger improvement with more complicated algos.

... But yeah, none of this is going to beat the C/C++ equivalent. If the time it takes to run is money, spend some time reimplementing it in a faster language.


How do I use nVidia GPU on 16.04 Xenial?

Go into the BIOS and set the Initial Display output to the slot your new card is in. I have had several Gigabyte boards over the years and they all default to onboard graphics unless you make this adjustment. See this page of your motherboard manual for more detail.


How can I use a vim plugin for a filetype that the plugin is not intended for?

After looking in ~/.vim/bundle/jupyter-vim/plugin/jupyter.vim, I found the call I needed that initializes the jupyter plugin.
In vim, with my markdown file open, I just need to :call jupyter#load#MakeStandardCommands().
Now it works -- I essentially have a Jupyter Notebook running in vim!
If you do this you'll probably also want to
let g:jupyter_cell_separators = ['```']

in .vimrc. Then a fenced code block is run like a cell in Jupyter.


You can give a try as described here, installing by yourself two programs, sstp-client and its network-manager support:

https://serverfault.com/questions/256180/ubuntu-connect-to-sstp-vpn