Torrent unable to be found in Windows partition

Taken from: MountingWindowsPartitions

Preface

If you require one or more of your Windows partitions mounted automatically during bootup, it is necessary to add one line to the file /etc/fstab for each partition that is to be mounted. Some reasons for mounting partitions by means of /etc/fstab, rather than relying on the file manager, include:

Convenience.
Where more than one user account is in use during a session. Partitions mounted from one user account by means of the file manager are not accessible to the other account(s).
Where libraries have been set up in applications such as Banshee or Rhythmbox (for music) or Shotwell (for photos). If those libraries contain files on partitions mounted by means of the file manager, an error will occur in a subsequent session if the partition is not mounted first.
Where more advanced or special mount options are needed. Three working configurations for different needs are given below, but anything more advanced is beyond the scope of this wiki page. The NTFS-3G manual gives a list of mount options suitable for NTFS filesystems.
Automatic Configuration

Although there are a number of GUI applications available from the Ubuntu Software Centre, none of these can be recommended at the time of this writing, unfortunately. They are obsolete and unmaintained and can all cause problems. Two examples are ntfs-config and PySDM. (PySDM is no longer in the repository with effect from 12.10.) If you find a recommendation anywhere for either of these applications, it is likely to be an old one, and should not be followed. At this time it is advisable to configure /etc/fstab manually.

Manual Configuration

First, you need to find the device locations of the partition(s) you wish to mount. Open a terminal and run:

sudo blkid

For illustration purposes, an example output from a computer setup with a Vista/Ubuntu dual-boot and shared NTFS data partition is shown here:

/dev/sda1: LABEL="Recovery" UUID="B23613F43613B875" TYPE="ntfs"
/dev/sda2: LABEL="Windows" UUID="38CE9483CE943AD8" TYPE="ntfs"
/dev/sda3: LABEL="Data" UUID="519CB82E5888AD0F" TYPE="ntfs"
/dev/sda5: UUID="00d7d951-2a35-40fd-8e5d-411bb824ff3b" TYPE="swap"
/dev/sda6: LABEL="Ubuntu" UUID="6044b1d0-208e-4ab3-850d-03a92e1516fc" TYPE="ext4"

The first three partitions, all NTFS, are the ones that concern us here. There are no FAT32 partitions. In this instance, all three NTFS partitions have partition labels, which makes it easier to identify the purpose of each. If your blkid output does not include partition labels, this means that the partitions do not have labels and you will have to determine which partition you wish to mount by another means. Of the three NTFS partitions, we are going to configure /etc/fstab with only the third, the Data partition. Partition /dev/sda1 is the OEM manufacturer's recovery partition and should be left unmounted, or as described below. Partition /dev/sda2 is the Windows C:\ partition and is best not included in /etc/fstab for the reasons described above, or mounted read-only - see below.

You will now need to create a mountpoint for each NTFS partition that you wish to mount by means of /etc/fstab. In our illustration we are going to add one entry only for /dev/sda3. From a terminal:

sudo mkdir /media/Data

In this case we have created a mountpoint with the same name – Data – as the partition label. You may use (almost) any string you wish.

Before editing /etc/fstab directly, it is a good idea to make a backup. From a terminal:

sudo cp /etc/fstab /etc/fstab.orig

Now open /etc/fstab in a text editor with root privileges. In Ubuntu:

gksudo gedit /etc/fstab

In Kubuntu:

kdesudo kate /etc/fstab

In Xubuntu or Lubuntu:

gksudo leafpad /etc/fstab

For a general-purpose read-write mount, add this line to the end of /etc/fstab:

UUID=519CB82E5888AD0F  /media/Data  ntfs-3g  defaults,windows_names,locale=en_US.utf8  0 0

Replace the UUID with the one relevant for your partition as shown in your blkid output. “519CB82E5888AD0F” will not work for you.

Also, substitute your mountpoint for “/media/Data”. In case you have a blank space in the name of the mountpoint you want to use like "New Volume" instead of "Data" located in "/media" use "/media/New\040Volume". The space character is created by using "\040" in the fstab.

You will also need to change the “locale=en_US.utf8” option to one suitable for your location and language if you are not in the USA. You can determine your locale with this terminal command:

locale

Or for a list of all locales available on your system:

locale -a

Now save your edited /etc/fstab and close the text editor. The partition(s) you have configured will be mounted the next time you reboot, but to mount them now:

sudo mount -a

Two special cases

Sample /etc/fstab lines are suggested for two special cases.

Option 1 - for mounting read-only access. For example, this would be suitable for mounting your Windows C:\ partition if you need to access it. Modify the line below with your UUID and mountpoint:

UUID=519CB82E5888AD0F  /media/Data  ntfs  defaults,umask=222  0 0

Option 2 - to ensure that Ubuntu does not mount the partition and also disables graphical mounting from the file manager. For example, you may wish to ensure that recovery and system partitions are never inadvertently mounted and do not appear in the file manager. In this case you need to create a mountpoint in /mnt, not /media. Modify the line below with your UUID and mountpoint:

UUID=519CB82E5888AD0F  /mnt/Data  ntfs  noauto,umask=222  0 0

Note: with these mount options, the partition does not appear in the Devices list in the left pane of Nautilus (the Ubuntu file manager), but it still appears in Dolphin, the Kubuntu File Manager. Clicking on the partition in Dolphin causes the display of an error message. This solution is less elegant in Dolphin than with Nautilus, but the desired effect is achieved - the partition cannot be mounted.

If you need to revert to the original configuration:

sudo mv /etc/fstab.orig /etc/fstab
sudo umount  /media/<mountpoint>

Substitute your mountpoint in the second line.

FAT32 Partition

FAT32 partitions are mostly only found in older systems. If you are creating a partition to be used for data to be shared between Windows and Ubuntu, it is better to choose NTFS. Should you have a FAT32 partition which you need to mount using /etc/fstab, this will work to mount it read-write:

UUID=<UUID> /media/<mountpoint> vfat defaults,user,exec,uid=1000,gid=100,umask=000 0 0

Replace  with the UUID that blkid reveals for your partition, and adjust for your mountpoint. These mount options will make all files in the partition executable. If you have other needs, you will need to modify the options, but this is beyond the scope of this wiki page.


How to add a "lock screen and suspend" command to LXQt?

Shortcut

Start lxqt-config-globalkeyshortcuts (or click "panel menu → Preferences → LXQt Settings → Shortcut keys").
Create a shortcut that executes the following command:

sh -c "lxqt-leave --lockscreen && systemctl suspend"

Menu entry

Create a file ~/.local/share/applications/lxqt-lock-suspend.desktop with the following content:

[Desktop Entry]
Type=Application
Name=Lock and Suspend
GenericName=LockSuspend
Comment=lock the screen and suspend the machine
Exec=sh -c "lxqt-leave --lockscreen && systemctl suspend"
Icon=system-suspend
Categories=System;X-Leave;
OnlyShowIn=LXQt;

Refresh the LXQt menu by restarting the panel: press Alt + F2 to get to the lxqt-runner window and there execute the following commands, one after the other:

killall lxqt-panel
lxqt-panel

Explanations:

Executing it as one command sh -c "killall lxqt-panel && lxqt-panel" made my lxqt-panel lose its window management keyboard shortcuts. Probably in another way it can work.

You could also execute this in a terminal window, but then it would make you lose your lxqt-panel when closing that terminal window. (Even when terminating the command with &. You can daemonize it to fix that but you have to look that up yourself ….)


Simple Transfer of Files Over WiFi in Ubuntu (Python Method)

You should just able to press Control-C to kill the process. You aren't running it in the background, so that should terminate it right then and there.

Alternatively, you could just use pkill to terminate the process. pkill lets you "signal processes based on name and other attributes", so you would be able to simply:

pkill -f SimpleHTTPServer

to kill the process.


Patch for new 64bit kernel vulnerability?

You should have gotten them through the updates... according to this they went out the 17th:

http://www.ubuntu.com/usn/usn-988-1


Extracting a zip file in my machne givs me CRC error?

If it's the same file(s) each time, the zip file probably got corrupted, possibly when transferring to the machine. Confirm the md5sum or sha1sum of the zip file .

If it's random files, you probably have defective hardware. First guess would be bad RAM. You can try memtest86+.

(BTW, if it's bad RAM, you may find that running md5sum multiple times give different checksums.)


Based on your error, you didn't simply changed the permissions of /usr to 777, you did it recursively which is a more serious and problematic change.

Unless you have backups of your system directories, your best option is just to reinstall.


I am unfamiliar with Ubuntu on my Dell Mini (pre-installed)

Here is a good introductory video tutorial to Ubuntu.  That youtube user has dozens of other tutorial videos as well.  He's using an older version of Ubuntu, but most of the basics are the same, assuming you aren't using the newest version (11.04), which releases in a couple days (April 28, 2011).  Version 11.04 uses the new Unity layout, which is pretty radically different, and much more akin to OS X.

Here is the official documentation for Ubuntu.  It's much more in-depth (and maybe a little more work to wade through).  It will walk you through most of the basics.

In short, to get to places, you'll want to use the three menus in the upper-left of the screen, especially the "Applications" menu.  Under Applications > Internet you'll find firefox, which is the default web browser.  The Open Office programs will do the work you may be used to doing in MS Office (word processing, spreadsheets, etc.).  The last item in the Applications menu is the installer, where you can search for new programs and install them.

If you have a more specific problem than this, go ahead and edit your question (or ask a new one) and we'll be able to help further.


Ubuntu 16.04 LTS not responding after screen off

There is a bug report for that issue.

https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1617471


First you need to set both on same network otherwise they won't be able to talk each other, you can set your windows vm to be in 192.168.1.x network or you can configure dhcp on your ubuntu vm https://help.ubuntu.com/lts/serverguide/dhcp.html so next time you 'connect' windows vm it will get an ip adress.

i hope this help you.


Ubuntu upgrade to 18.04, could only get into the system through recovery mode. If not, will hang indefinitely

I would try to re-install some packages:
sudo apt --reinstall install ubuntu-gnome-desktop
and probably some more. Maybe you can have a look at the part of /var/log/syslog that contains information on failed boots to get some hints where the problem is.

Success!


ubuntu 16.04 encounters an internal error

Same problem here since recent update. When touching with mouse pointer the Launch bar disappears and comes up again after a few seconds. Some icons cannot launch a program. Cannot logout or shutdown via de GUI.  Opening a Terminal window, I can shutdown and/ or reboot but allways get the message that Ubuntu has encountered an internal error.(/usr/bin/compiz ).   Tried a lot of things as suggested by # contributors without success. Installed the Gnome desktop and all problems are solved!
My laptop: Dell Vostro 13 ubuntu 16.04.3 LTS 64-bit


How do I solve a problem with opening the application menu?

Removing and reading didn't help me, but after reading (but not trying) user63872's answer, I just deleted this one file:

~/.config/menus/xfce-applications.menu

and suddenly it worked again.


Why do some themes have gtk-3.0 and gtk-3.20 folders?

The gtk-3.0 and gtk-3.20 folders contain text files which are based on the CSS web standard, but with some extensions and modification. Each file contains many rules which describe how information should be displayed when certain conditions are met - for example, what colours and fonts are to be used for a text label inside a flow box inside a note book. Since there many different types of widget and container, the number of rules quickly multiply.

The designers of the GTK have taken the decision that the original form of CSS (3.0) is no longer suitable, and a number of changes must be made. This means that previous CSS files are no longer valid, and the new set of CSS files must be put in the gkt-3.20 folder. However, since not every app would/could be rebuilt to the new version of the framework, the old gtk-3.0 folder remains so that older apps can continue to work as before. Indeed the gtk-2.0 folder is still required for that same reason.

If you edit a theme then any changes you make to the 3.20 folder will only affect those apps which were built to 3.20 (or later) framework. To change the look of older apps, you'll need to make corresponding changes to the gtk-3.0 folder. For really old apps, you'll also need to change the gtk-2.0 folder, but that's a whole different story.


Suggest any GUI App similar to digital wellbeing or Qualitytime for Ubuntu

The examples you give
(Digital Wellbeing
and QualityTime)
are both Android applications,
but note that commercial applications also often have Linux clients as well.
The issue is that automatic application time-tracking
is a form of surveillance,
and in some sense a form of spyware.
An application that sends this information to a server somewhere
is a greater privacy risk than an application that stores it locally.
One of the issues with commercial applications
is that they are generally closed-source,
and therefore it's hard to verify what data they are collecting
and where they are sending it.
Therefore, I will list only open source options below.
(Note that even open source applications like this deserve scrutiny;
see this Debian bug report
for more.)
In the Ubuntu package manager,
there is arbtt:

arbtt is a background daemon that stores which windows are open, which one
has the focus and how long since your last action (and possbly more sources
later), and stores this. It is also a program that will, based on expressive
rules you specify, derive what you were doing, and what for.
The documentation, which includes the changelog, can also be found at
http://arbtt.nomeata.de/doc/users_guide/.
WARNING: The log file might contain very sensitive private data. Make sure
you understand the consequences of a full-time logger and be careful with
this data.

https://hackage.haskell.org/package/arbtt
This is a very powerful option,
but you will need to set up the configuration file
and reports yourself,
which may be somewhat time consuming to customize to your needs.
Other open-source options:

https://github.com/karpathy/ulogme

ulogme is small and simple: There are two backend components: a tracking
script that records activity and a small local web server wrapper that
serves the activity logs to the frontend (visualization pages). The
tracking script currently records active window titles (at frequency of
once every 2 seconds) and keystroke typing frequency.

https://karpathy.github.io/2014/08/03/quantifying-productivity/

https://github.com/ActivityWatch/activitywatch

The goal of ActivityWatch is simple: Enable the collection of as much
valuable lifedata as possible without compromising user privacy.
We've worked towards this goal by creating a application for safe storage
of the data on the users local machine and as well as a set of watchers
which record data such as:

Currently active application and the title of its window
Currently active browser tab and it's title and URL
Keyboard and mouse activity, to detect if you are AFK ("away from
keyboard") or not

It is up to you as user to collect as much as you want, or as little as you
want (and we hope some of you will help write watchers so we can collect
more).

https://github.com/selfspy/selfspy

Selfspy is a daemon for Unix/X11, (thanks to @ljos!) Mac OS X and (thanks
to @Foxboron) Windows, that continuously monitors and stores what you are
doing on your computer. This way, you can get all sorts of nifty statistics
and reminders on what you have been up to.

Related questions (automatic tracking):

Is there software which time- tracks window & application usage?
TimeTracker app that logs programs
How to stay productive? What time management software is available?
how can we track user activity?
https://stackoverflow.com/questions/45465016/how-do-i-get-the-active-window-on-gnome-wayland
https://unix.stackexchange.com/questions/139542/how-to-measure-that-how-much-time-is-the-active-window-opened
https://web.archive.org/web/20150826143403/http://productivity.stackexchange.com/questions/3803/time-tracking-software-to-measure-when-im-active-or-idle-on-my-computer-i-e
https://web.archive.org/web/20151104075656/http://productivity.stackexchange.com/questions/13913/automatic-time-tracking-software-for-computer-work-for-windows-linux-mac

Related questions (manual tracking):

Which Time Tracker application do you recommend?


Create a group for the users how should have full acces:

$ sudo groupadd full_access
$ sudo chown -R :full_access /path/to/special/data/
$ sudo usermod -a -G full_access username

Don't do something like "sudo chown -R :www_full_access /"! This will break your system. If you need user with root-access to your system, add them to the sudoers group:

$ sudo usermod -a -G sudo username


Ubuntu 18 (Latest) can't get the wifi card read. Hard block On. Please help

Disabled usually means that the hardware switch is set to turn off the wireless radios. You can confirm this with a terminal command:

rfkill list all

You result shows:

0: dell-wifi: Wireless LAN
Soft blocked: no
Hard blocked: yes

Please find the wireless switch or airplane mode switch and switch it. Hard(ware) blocked means that you have to move the physical switch. There is no operating system or command line way to move the physical switch.


How do I load keyboard backlight at boot?

Create or open and append script /etc/rc.local

sudo nano /etc/rc.local

Add your command without sudo, as it will run at startup as root.

#!/bin/sh
/usr/bin/xset led 3

Save, reboot and have fun


If I have clamav do I need to install rootkit hunter

Clamav only acts as an anti-virus, and does not protect you against rootkits. In the opinion of most people viruses are not such a big threat on Linux, however we can all agree that rootkits are so it is good to protect yourself against them.

Though rkhunter will need to be installed on a fresh install before any software or updates are installed because it looks at changes in the system, and assumes the system it is installed on is safe, and then compares that to the system's state later on when you do a scan.
So if you have a rootkit already, and you install rkhunter, it won't be able to tell if you have one or not.

Another option is OSSEC HIDS (Host Intrusion Detection System - which is not required to be installed on a fresh install, and will be able to detect a rootkit on a system even if it is installed after the rootkit (in most cases)) which can detect rootkits as well as a larger range of system activities.


How to restore deleted startup applications

Very simple: restore from your last back-up the directory /home/szUserName/.config/autostart/*  where szUserName is your actual user name.

For more information on back-ups, please read the following Q&A: What's a good back-up strategy for 1 desktop PC?.

You're definitely user type 4!  ;-) >:-)


What about that instead ? ;-)
./home/snap/bedrock-server/bedrock_server

Also, the script/app you're executing might have not considered that you are not in the current folder and you cannot do much about that if you can't edit the script implied by adding the "cd directory" at the beginning


Problems connecting to Vino server on Lubuntu from Windows 10 VNC client

This happens if you have "prompt-enabled" set to true - the server prompts for permission to allow the remote client, and if it doesn't receive a response the connection times out.

gsettings set org.gnome.Vino prompt-enabled false

Then restart vino-server.


Somehow an entire directory got changed into binary files, including my folders

I'm not going to pretend to know anything about Linux permissions or why this happened, but per advice in the comments I tried resetting all of the permissions for /var/. I used the step-by-step guide here and it totally fixed the issue - my files are back. Thanks!


Can connect to only some networks after update 14.10

Do:

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

Reboot


Password problem after creating a new user

I would suggest taking NlightNFotis' advice: open a terminal and type

sudo passwd <user>


Set ATI/AMD GPU Fan speed with MESA Driver

First I advise you to update your kernel, because based on this link, updating the kernel solves the heating problem. A guide to update your kernel maybe found in this question
Install shell-extension-radeon-power-profile-manager
If the problem persist we will try to create a profile for low power GPU:

Based on this XOrg link

The Power Management code supports two basic methods:

"dynpm"
"profile"

You can select the methods via sysfs. Echo "dynpm" or "profile" to /sys/class/drm/card0/device/power_method.

sudo echo profile >  /sys/class/drm/card0/device/power_method

Controlling the fan speed directly is not possible (and would be very dangerous), but it can be lowered by setting lower power profile

The "dynpm" method dynamically changes the clocks based on the number of pending fences, so performance is ramped up when running GPU intensive apps, and ramped down when the GPU is idle. The reclocking is attemped during vertical blanking periods, but due to the timing of the reclocking functions, doesn't not always complete in the blanking period, which can lead to flicker in the display. Due to this, dynpm only works when a single head is active.

The "profile" method exposes five profiles that can be selected from:

"default"
"auto"
"low"
"mid"
"high"

Select the profile by echoing the selected profile to /sys/class/drm/card0/device/power_profile.

"default" uses the default clocks and does not change the power state. This is the default behavior.
"auto" selects between "mid" and "high" power states based on the whether the system is on battery power or not. The "low" power state are selected when the monitors are in the dpms off state.
"low" forces the gpu to be in the low power state all the time. Note that "low" can cause display problems on some laptops; this is why auto does not use "low" when displays are active.
"mid" forces the gpu to be in the "mid" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.
"high" forces the gpu to be in the "high" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.

Thus, to select low profile:

sudo bash -c "echo profile > /sys/class/drm/card0/device/power_method"
sudo bash -c "echo low > /sys/class/drm/card0/device/power_profile"


To know which package brought particular so library

Now that you know which package /usr/lib32/libstdc++.so.6 came from, you can find out which packages depend on lib32stdc++6 by running:

sudo apt-cache rdepends lib32stdc++6

This will give you a list of package(s) that depend/installed lib32stdc++6


If it crashes frequently when you use the browser (I guess with some flash content), then it is likely a problem with your graphic cards driver. Either the driver has some bugs, or simply it can't control the graphic cards power saving features, so the card overheats. Try testing against this case with some graphic intensive programs. If it is confirmed then try using another VGA driver (fglrx vs radeon, nouveau vs nvidia), or simply don't use graphic intensive programs if you can.


You should probably post this as two separate questions.

My super-key has a delay but it doesn't sound like it's as slow as yours.

There seem to be some animations that run when opening and moving through the dash.  Depending on your machine's resources these could be causing the delay.  I think you can remove the animations through compiz config settings manager.  Personally, I don't like mucking around with compiz so I just enjoy the minor exercise in patience when opening the dash.

Don't know about the wallpaper issue - never seen that before.


For Ubuntu 16.04+

Install TLP and list USB Devices

The port for your sound device is auto-suspended when it is idle. The TLP package is the easiest way to manage this. Use these commands:

sudo apt install tlp
sudo lsusb

  tlp may all ready be installed in which case you will see:

tlp is already the newest version (0.8-1).

  lsusb will list all your USB devices:

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 002 Device 002: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 009: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 007: ID 1bcf:2b8c Sunplus Innovation Technology Inc.
Bus 001 Device 005: ID 0cf3:e301 Atheros Communications, Inc.
Bus 001 Device 003: ID 187c:0528 Alienware Corporation
Bus 001 Device 010: ID 413c:9016 Dell Computer Corp.
Bus 001 Device 008: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 001 Device 006: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
Bus 001 Device 004: ID 04f9:024a Brother Industries, Ltd
Bus 001 Device 002: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Find your specific USB device

Find your sound device in the output. For example my wireless keyboard/mouse is:

Bus 001 Device 009: ID 046d:c52b Logitech, Inc. Unifying Receiver

The important details here are the Manufacturer's ID followed by a : and then the Model Number. So I want 046d:c52b. Find the equivalent for your sound device.

Blacklist your USB device from auto-suspending

Open the TLP configuration file using gedit:

sudo -H gedit /etc/default/tlp

Search for these lines in the middle of the file:

# Exclude listed devices from USB autosuspend (separate with spaces).
# Use lsusb to get the ids.
# Note: input devices (usbhid) are excluded automatically (see below)
#USB_BLACKLIST="1111:2222 3333:4444"

In my configuration file I have nothing blacklisted. A line beginning with # is a comment and ignored in all configuration files. Note it says **(usbhid) are excluded automatically**.hid` stands for Human Interface Device which includes my keyboard and mouse but excludes your sound device.

So we want to add your sound device to the file. Insert the line immediately below the four listed above:

USB_BLACKLIST="046d:c52b"

IMPORTANT: Change 046d:c52b representing my keyboard/mouse to what you found for your sound device.

Now save the configuration file, exit gedit, save all your work and reboot.

Credit: How can I disable usb-autosuspend for a specific device?


Dual Boot Windows 7 and Ubuntu with SSD and HDD

Not to mess up with Windows while installing Ubuntu, do the partitions with Gparted THEN do a custom installation using the new partitions.
Grub2 should find the OS whatever disk they are on. Just make sure to install the grub to the 1st disk in the boot order.


Unable to connect to Bluetooth Mate Silver

After a lot of googling and reading various blogs I came across this command :

    sudo rfcomm bind 0 00:06:66:48:71:0C

where 00:06:66:48:71:0C is the mac address of the bluetooth mate silver.

Once I did that I found that the serial port option for my device in the bluetooth manager was enabled.
I continue from there to connect to the device.


How can I install GNOME 3.1.0 on Ubuntu 16.04?

Even Ubuntu 12.04 LTS has GNOME 3.4.2, so you can't get the GNOME version that you want. And all userspace apps are changed, systemd came and so on.

But if you need a classic desktop experience without bells and whistles you should try MATE DE:

Install Ubuntu 16.04 LTS MATE

or

Install normal Ubuntu 16.04 LTS and run sudo apt-get install ubuntu-mate-desktop^.


What's the password Yann?

I think you are asking in the wrong place.
You can contact Yannubuntu in any of these ways:
https://forum.ubuntu-fr.org/profile.php?id=63523
https://ubuntuforums.org/member.php?u=485559
or by email directly at yannubuntu@gmail.com


Try to do this in you terminal:

sudo nano /etc/default/grub

Look for:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Change it too :

GRUB_CMDLINE_LINUX_DEFAULT="quiet"

And update Grub:

sudo update-grub

And see if it helps if not post wath happens.


How can I pipe out output to file from terminal without linefeeds?

Try add echo -n

stdbuf -o0 xinput test 11 | xargs echo -n > out

Update

As i understand from your comment, you want not just remove linefeed, but also output log on every keypress using xinput.

First check all input devices:

   c0rp@c0rp:~$ xinput --list

This is a list of all available input devices

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=13   [slave  pointer  (2)]
⎜   ↳ RAPOO RAPOO 2.4G Wireless Device          id=10   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Video Bus                                 id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ Asus WMI hotkeys                          id=11   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=12   [slave  keyboard (3)]
    ↳ RAPOO RAPOO 2.4G Wireless Device          id=14   [slave  keyboard (3)]
    ↳ USB2.0 HD UVC WebCam                      id=15   [slave  keyboard (3)]

Now if you want to test device, use test key, and as  parameter use id from second column.

For example, i use wireless keyboard, id=14:

xinput --test 14

Here is output:

key press   42
key press   43
key release 43
key release 42
key press   44

And finaly what you want is...

Sorry, on this step i realize that xinput cannot redirect stdout or stderr, it just buffered. Proof link.

So the only way to do what you want using xinput is:

Write xinput to a file xinput test 11 > out, then substitute all newlines using tr

tr -d '\n' < yourfile.txt

or if it doesn't work use same for DOS/Windows line endings

tr -d "\n\r" < yourfile.txt


How to select a column or block of text in gedit 3.28.1?

This answer is based on steeldriver's suggestion to look into gedit-plugin-multi-edit.

I found a blog post which links to a video demonstrating column selection mode. Even though the links are from 2009, the plugin works in gedit 3.28.1 which is found in Bionic Beaver.

Run sudo apt install gedit-plugin-multi-edit.
Open gedit > Preferences > Plugins and enable Multi Edit.
Then, when the need arises to perform edits involving columns, activate Multi Edit Mode from Tools. The mode will be reflected near the top right corner of the window.
Left-click immediately to the left of the letter at the top left of the intended column and select down to include the lowest letter at the bottom right of the intended column.
Press Enter.
The selected area will change to cover just the column. Make the desired changes. They will be reflected onscreen.
Press Escape.
Quit Multi Edit Mode.

Here's a brief animation derived from the video link cited above.

Animation illustrating column selection and editing:


How to replace below line in bash script?

I am providing two ways of achieving your goal.
The tricky part is how to deal with & as a string literal (ref, ref).
I assume file test.txt contains your base string.
awk -v old="mongodb://localhost/Dbname" -v new="mongodb://username:Password@host1.localhost.com:27017,host2.localhost.com:27017,host3.localhost.com:27017/DBname?authSource=admin&w=1&replicaSet=replicaname&readPreference=secondaryPreferred&retryWrites=true" 's=index($0,old){$0=substr($0,1,s-1) new substr($0,s+length(old))} 1' test.txt

awk -v old="mongodb://localhost/Dbname" '{ gsub(old, "mongodb://username:Password@host1.localhost.com:27017,host2.localhost.com:27017,host3.localhost.com:27017/DBname?authSource=admin\\&w=1\\&replicaSet=replicaname\\&readPreference=secondaryPreferred\\&retryWrites=true") ; print $0 }' test.txt

And a more flexible version, which allows for other search-for strings.
Here, the tricky part is how to deal with ' as a field separator for awk (ref).
awk 'BEGIN { FS = "'\''" } ; { gsub($2, "mongodb://username:Password@host1.localhost.com:27017,host2.localhost.com:27017,host3.localhost.com:27017/DBname?authSource=admin\\&w=1\\&replicaSet=replicaname\\&readPreference=secondaryPreferred\\&retryWrites=true") ; print $0 }' test.txt


In my opinion, there is no need for any IDEs to compile and execute most of the programs in c/c++.

You can use any text editors like Gedit, nano , Vi/Vim  to write the code and compile it using gcc or g++ which are installed by default.

Install the (sufficient) packages for once.

sudo apt-get install build-essential

Next time, To compile a c program, Go to terminal, and execute :

gcc /path/to/your/program/my_c_program.c -o outputfile.out

To Execute the compiled file,

./outputfile.out

You can know more about gcc and g++ from its man pages.

man gcc
man g++


You can do it with xrandr to set your monitor to 50% scale.  This is not permanently set so you would have to set it into a startup script if you want to keep it that way on every bootup.

First, get your currently connected monitors with the following command:

xrandr --current | grep -w connected

Example:

xrandr --current | grep -w connected
DVI-I-0 connected 1280x1024+1920+37 (normal left inverted right x axis y axis) 0mm x 0mm
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm

Pay attention to the monitor that you want to scale.  I am going to scale my second monitor that is attached to my DVI port.  50% is .5;  100% is 1  So we will run the following command to scale to 50%.

xrandr --output DVI-I-0 --scale .5x.5

If you want it to change on every startup, add that command to your Settings -> Session and Startup but you might want the command like so to give it a slight delay at startup:

bash -c 'sleep 5; xrandr --output DVI-I-0 --scale .5x.5'

To set the monitor back at any time run the following:

xrandr --output DVI-I-0 --scale 1x1

Hope this helps!


Kworker, what is it and why is it hogging so much CPU?

"kworker" is a placeholder process for kernel worker threads, which perform most of the actual processing for the kernel, especially in cases where there are interrupts, timers, I/O, etc.  These typically correspond to the vast majority of any allocated "system" time to running processes.  It is not something that can be safely removed from the system in any way, and is completely unrelated to nepomuk or KDE (except in that these programs may make system calls, which may require the kernel to do something).

There were some reports of excessive kworker activity for relatively
idle systems starting during 2.6.36 development (example discussion), and wide reports of confusion and problems with 2.6.38 (although many of these reports include the word "Natty", so I presume these people not to have used any kernel between 2.6.35 (distributed in Ubuntu 10.10) and 2.6.38 (distributed in Ubuntu 11.04).

I've found many reports of something that "fixed" this for one or another user.  Most "fixes" seem to be related to updates of the kernel of various sorts.  Where the update can be tracked to a specific issue, it seems to often be some driver or kernel service that has been patched to not misbehave: I have the impression that there are a very large number of things in the kernel that can cause a behaviour which is observed as excessive kworker usage.

If you find the system unusable due to excessive kworker activity, I would recommend trying to do fewer things.  If you think you're not doing anything, try shutting down long-running services or timers (RSS readers, mail readers, file indexers, activity trackers, etc.).  If this doesn't work, try restarting.  If your system allows you to enable or disable hardware in a pre-boot environment, try turning off hardware you aren't using.  If it happens on every restart before you do anything, you could try uninstalling things, but at this point you'll want to be running syscall profiling tools to track down specific applications that seem to be causing this overload.

It is to be hoped that your specific system will stop expressing this behaviour with a future kernel upgrade (and many of the most common causes of this have been solved).


Sync Pictures folder on Windows partition

Create a link to Windows user folder in Ubuntu home folder. Then I was able to sync the pictures folder by accessing it through the link I created.


Computer does not detect Game Controller Input

If evtest doesn't reports anything, I assume the events are eaten by something, the xorg joystick driver might be responsible, try removing it and reboot and see if that helps:

apt-get remove xserver-xorg-input-joystick.*


There's a possibility that the sqlite database that Firefox uses becomes too fragmented and reading that could grind the hard drive for a minute or two (especially if you like me have hundreds of bookmarks and never delete history)

The solution to this is the Vacuum Places Improved addon (link text). It defragments your sqlite database, and the startup performance is markedly improved (at least for me it did). Maybe that will work for you.


From this question

  The following also works fine, it executes your command on the 15th
  and the 30th at 02:00 AM of every month:

0 2 */15 * * <yourCommand>

Back to your question

0 2 */15 * * shutdown -r now

Also see this question to learn more about cron


LibreOffice No other formats available on save as

You should see something similar to this:


Booting Win7/12.04 -- what do I need for EasyBCD?

I assume that Win7 is pre-installed and you are going to install Ubuntu.

You need enough free space on your hard disk. If not, prepare it via WIndows7 > Computer (right-click) > Manage > Disk Management > choose your partition and shrink volume for at least 8500 MB:

However, after booting Ubuntu for installation, choose advanced partitioning entry (see below picture) that is called 'Something else':

Create root partition and your desired partitions as in /home, Swap, etc.

Here you have an extra choice: creating a separated /boot partition (>1GB) if you want to make Windows boot-loader as the original page for choosing your OSes after this installation.
A place for grub?

When you created partitions, now you should choose a place for installing linux boot-loader. If you choose your whole disk (/dev/sda), grub installs on MBR and grub menu will be the original page when you power on the computer. If you like the windows boot-loader page, you should NOT choose /dev/sda:

If /boot partition is ready, choose it: /dev/sda5 in my case on above picture

If you have not created the /boot partition, choose root partition: /dev/sda6 in my case on the picture
Go ahead; Restart your computer finally.
Where did you choose to install grub?

/dev/sda? -> Now grub menu is in front of your eyes! choose Win7/Ubuntu

/dev/sda5or6 -> You will go to windows7 directly! don't worry! Download and install EasyBCD on your Windows7. Run it > Add New Entry > Linux/BCD tab:

Type: Grub2
Name: Ubuntu
Drive: Choose the partition Where you installed Grub:
-> sda6 or sda5, of course, numbers are in my case!
-> this step is very important!

At last, click on "Add Entry".

Done! Now, restart you computer again:

(the above picture is related to Ubuntu + Win8)


Making Keyboard Shortcuts act Universally (No Matter the Language)

On the default Ubuntu Terminal Alt+C does "Capitalize a letter on the cursor and move cursor at the end of the word."
You may use a global shortcut by editing System Settings > Keyboard > Shortcuts
You should consider not to use the combinations already in use.
Unfortunately, I haven't seen someone finds a way to display a list of all the shortcuts used in the system and applications. My best guess is to look at the Keyboard > Shortcuts and choose the most useless one for you and take the combination for your use. It should work globally.

In the case, you are looking for how to type Greek letters without switching keyboard layout. Here's my favorite way.
The Greek θ letter is a unicode character U+03B8.
Control+Shift+U 03B8 Space
This types Greek theta, it's convenient for mathematician or scripting a such scientical document. You may also want to use π U+03C0.
If you often use this, please register this as a global shortcut.
There are many ways to do so, but each one has some problems preventing to work on some application. I think Compose key is easiest.
Reference : Compose "dead_greek" with compose key


Is there a forum or community for Ubuntu Application developers?

We have several, take your pick:

Google+
Facebook
Reddit (New)
Ubuntu Forums
Discourse
AskUbuntu


Insuff. permissions to download Audacity plugins?

If if you still want to use your GUI file browser for file transferring then you have to run the file browser itself as root. This means that you have to go in terminal and type

sudo nameOfFileBrowser

And obviously replace nameOfFileBrowser with whatever file browser you are using. The reason for this is because even though you are considered an administrator, you're running the file manager as a non-administrator. Also, don't make running the file manager as root a habit. Only run your file manager as root when you have to. Otherwise, you could modify some sensitive files such as system ones, etc.


I found a solution:

dbus-launch gnome-do

However, I don't know why I need to start gnome-do like this. Others start it normally. If you have a solution how to configure dbus to avoid dbus-launch, please, live a comment.


Why My Logrotate Configurations Doesn't Work Correctly for MySQL-MariaDB?

(Partial answer)
Some logs grow "forever" (in the absence of logrotate):  slow.log, general.log, error.log
Some logs automatically 'rotate' based on something else:  binlog* and max_binlog_size.
The MySQL command FLUSH LOGS 'rotates' all logs that it can easily and it can safely do such on.


How do I find a single unique line in a file?

AWK solution

$ awk '{arr[$0]++};END{for(var in arr) if (arr[var] == 1) print var}' input.txt
Y
Z

{arr[$0]++}; creates associative array of line-number pairs. If a line is unique in the file, array item that corresponds to the line value will be 1, otherwise - greater than 1
END block is executed when we have reached end of file. We iterate over array items using for(value in array)  loop and print the value if the corresponding array item equals to 1, as mentioned before.

Python 3

Same idea as the awk one. Here we use OrderedDict class to create a dictionary of lines and their counts with preserved order.

#!/usr/bin/env python3
import sys
from collections import OrderedDict

if len(sys.argv) != 2:
   sys.stderr.write(">>> Script requires a file argument")
   sys.exit(1)

for arg in sys.argv[1:]:
    lines = OrderedDict()
    with open(sys.argv[1]) as fd:
        for line in fd:
            tmp = line.strip()
            if tmp in lines.keys():
                lines[tmp] = lines[tmp] + 1
            else:
                lines[tmp] = 1

    for line,count in lines.items():
        if count == 1:
            print(line)

And  here it is in action:

$ ./get_unique_lines.py  input.txt
Y
Z

Perl

Again, same idea as Python script, and we're using ordered hash (see also the Tie::IxHash documentation ).

#!/usr/bin/perl
use strict;
use warnings;
use Tie::IxHash;

tie my %linehash, "Tie::IxHash" or die $!;

open(my $fp,'<',$ARGV[0])  or die $!;
while(my $line = <$fp> ){
    chomp $line;
    $linehash{$line}++;
}
close($fp);

for my $key (keys %linehash) {
    printf("%s\n",$key) unless $linehash{$key} > 1;
}

Test run:

$ ./get_unique_lines.pl input.txt
Y
Z

sort and uniq variations

Have been mentioned in the comments multiple times already.

$ sort input.txt | uniq -u
Y
Z

or

$ uniq -u input.txt
Y
Z


Is /etc/rc.local still the preferred way to run scripts at startup on Ubuntu 18.04 LTS

Following Ubuntu 16.04 traditional init startup scripts have been superseded by the systemd service and its configurations. Most of the scripts or script instructions were rewritten into so called systemd unit files. Therefore I would recommend to setup a systemd service for your custom startup scripts.

Create /etc/systemd/system/foo.service with content:

  [Unit]
  Description=Setup foo
  After=network.target

  [Service]
  Type=oneshot
  ExecStart=/opt/foo/setup-foo.sh
  RemainAfterExit=true
  ExecStop=/opt/foo/teardown-foo.sh
  StandardOutput=journal

  [Install]
  WantedBy=multi-user.target

Replace with your parameters accordingly.  This service definition will run /opt/foo/setup-foo.sh on each startup.

Remember to load and enable the service:

  sudo systemctl daemon-reload
  sudo systemctl enable foo.service

For more info take a look at this example.


To answer the question in the title:

Can I Use Boot-Repair To Wipe My Computer?

No, you can't.

See Misconception about boot-repair below.

Creating Windows UEFI media

With this question you are asking how you can install Windows 7 on your UEFI-capable computer, correct?

The commands you pasted look non-functional to me. I'm ignoring everything else in your question because that is irrelevant to installing Windows 7.

If you have a GPT partition table on the disk where you want to install Windows 7 in UEFI mode, the installer should be able to create the necessary partitions. You can use GParted in Ubuntu to manage or delete partitions and create partition tables. To create UEFI-bootable media have a look at this Q&A I posted: How to create UEFI-only bootable USB live media? (Yes, you can boot Windows 7 installation media in UEFI mode, I just checked my MSDN W7 x64 ISO and it contains .efi binaries. Yours should be the same, unless it was made by an ignorant haxx0r.)

This should get you back on track. If not, assume that your UEFI-capable computer has no operating system installed and you want to install Windows 7 with UEFI-booting from scratch. Ask for advice and instructions where Windows is on topic (superuser.com?)

Misconception about boot-repair

As far as I know boot-repair is a tool for restoring boot functionality to grub installations in case when these don't boot anymore and without asking much questions or doing a root cause analysis. "Wiping computers" seems to be out of scope for this tool.


Laptop lost power during partition resize. Won’t boot and files unaccessable

test disk is a powerful free data recovery tool that you can use to correct partition table and fix or recover data on disks.


Upgrade from 12.04 to 14.04; No desktop, no panels appearing

I had this happen to me also this is what I did hope it helps

I updated the Graphics Drivers by doing the following
Enter Recovery Mode
Go to System Settings
Go to Software and Updates
Additional Drivers tab
I picked one of the recommended drives rebooted and it worked


Can Banshee play internet radio from .pls files?

I'm using Banshee 2.2.0.

The only way i find to save a station is:

Go to Media>Open Location from the menu or press Ctrl+L
Select the .pls file you want to import and click 'Open'
Ctrl+C on location of .pls file (with the file://....)
Click on Radio and Add Station
On URL location, Ctrl+V the location of .pls file.
Station save :)


WiFi Adapter AX201 Not Found: Ubuntu 18.04

This wireless adapter is supported by the 5.3 Linux kernel.

You can install the 5.3 kernel already a normal "Ubuntu" way.

Run in a terminal

sudo apt install linux-generic-hwe-18.04-edge

That will install the 5.3 kernel used in Ubuntu 19.10.

As soon as the 5.3 kernel is provided by linux-generic-hwe-18.04 (without edge), you can replace the meta package.

Some time next year linux-generic-hwe-18.04-edge will pull some next kernel and linux-generic-hwe-18.04 will pull the 5.3. If you don't want to switch to a new major kernel version, you can always remove linux-generic-hwe-18.04-edge and install linux-generic-hwe-18.04 later.


Install Xerox Phaser 3020 Printer Wifi on 16.04 LTS

I have a similar printer and I had a similar problem.

My printer: Xerox Phaser 3260 Printer Wifi (On Ubuntu 18.10)

Steps to install:

1) After you connect your printer, press the button cancel (the orange one) for about 4 seconds, a page with all the printer's information will be printed.

2) Go to "Wi-fi Direct Information" title and check for Current SSID and Network key.

3) Log in into the Wifi using the network key provided on the paper.

4) Go to your browser and type the ip address described in "IP Address" just two lines above Current SSId.

5) Find the default admin password of the web console. In my case is "admin:1111" and log in.

6) Go to "properties -> Wifi -> Wifi and click on "Wizard", then you'll be able to configure your wifi connection. (See below)

7) Configure the printer. In my case was auto detected by Ubuntu.

8) Test the printer.

And you're done!


"System problem detected" message is shown everytime I boot Lubuntu 14.04

The apport system creates crash report files in the /var/crash directory. These crash report files cause the error message to appear everytime Ubuntu boots.
To get rid of this error messages on bootup type in the terminal sudo rm /var/crash/*. It will delete crash report files and this message should stop appearing.

Also follow this link for more details


Xubuntu 16.04 - Thunar doesn't show most of media thumbnails

Just make the cache available to programs, by running:

sudo chmod 755 -R .cache/thumbnails

This also works for more programs like Image Viewer that uses the same cache file.


Usually the *ix-ish systems I've seen, output the progress of the startup process, by resources and daemons.  Like a million times something like

    `[xyz] successfully started on abc status blah at ....`

How does your system reboot?  Somewhere your startup scripts must be set to non-verbose.  If you can undo that, that could give you your direct clue.  Anyone more knowledgeable?

Looking at them start after like 15 years though, I had to say even at their fastest they are doing much less useful stuff and taking a lot more time :D anyway.


Weird graphical glitch when trying to change install path for Steam on Ubuntu 13.10

Oibaf just added support for saucy so now is the time to use it:

sudo rm /etc/apt/sources.list.d/oibaf*; sudo add-apt-repository -y ppa:oibaf/graphics-drivers; sudo apt-get update; sudo aptitude upgrade -y; sudo aptitude dist-upgrade -y; sudo aptitude install xserver-xorg-video-all -y

This should fix all of your issues now.


This answer appears to answer your question. In general it's best to use Windows to fix errors on NTFS hard drives.

  But because it is NTFS, the only way to truly repair NTFS is Windows' chkdsk utility. (There is a ntfsfix command, but it is NOT going to be of the same quality of fix as Windows' utilities to check NTFS disks).

My personal experience aligns with this.


Hanvon / Hanwang Graphics Tablet not recognised

This was also open on launchpad.
Many, many thanks to CLAW for his time and patience. The driver on English version of the page linked by actionparsnip:
 Hanvon Art Master Driver for Linux
 was a different version to the ones I'd tried before. Initially it gave button only input on the stylus, but a clean installation of Ubuntu appears to have done the trick and I have a functioning tablet. I think my blundering about with trying to solve this problem must have destabilized ubuntu.
Thanks again to ACTIONPARSNIP & CLAW
MK


Turn Xubuntu into Ubuntu while keeping Xubuntu?

Assuming you mean you want the programs that come with Unity by default, run the following:

sudo apt-get install ubuntu-desktop

Please be aware that this will install the entire GNOME platform, as GNOME applications like Nautilus depend on the GNOME platform. It will also install Unity, but you can remove specific packages if you don't want them.

Also, in case you didn't know, Xubuntu is the same as Ubuntu, except with a different set of programs installed by default (including a different desktop environment).


Switching from Ubuntu Gnome 16.04 to Ubuntu 16.04

Try this:
Start in text-only mode

Switch on your computer. Wait until the BIOS has finished loading, and press and hold Shift, which will bring up the Grub menu.
Select the line which starts with Advanced options.
Select the line ending with (recovery mode)
Press Return and your machine will begin the boot process.
After a few moments, your PC should display a menu with a number of options, including Drop to root shell prompt. Press Return with this option highlighted.
The PC will start in a terminal.

Run these commands:
Mount partitions in read-write mode
mount -o remount,rw /
mount --all

Update repositories
apt-get update

Install aptitude and deborphan
apt-get install --reinstall aptitude deborphan

Eliminate the components of gnome that are not necessary in Ubuntu
aptitude remove '?and(?reverse-depends(gnome),?not(?reverse-depends(?exact-name(ubuntu-desktop))))'

Reinstall ubuntu-desktop
apt-get install --reinstall ubuntu-desktop

Eliminate orphan packages
deborphan
apt-get --purge remove $(deborphan)
deborphan --libdevel
apt-get --purge remove $(deborphan --libdevel)
deborphan --find-config
dpkg --purge $(deborphan --find-config)

Remove unnecessary packages
apt-get autoremove

Remove downloaded packages
apt-get clean

Restart system
reboot


If you have or can create a LiveCD/USB, boot from that and use nautilus to copy files to a safe backup drive.

This should help save any valuable data.


Eclipse menus are slow to render and disappear

The Eclipse package as shipped by Ubuntu has native window rendering disabled to work around a (now fixed) bug in GDK.

See : https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/769277

I suspect that this may also cause slow rendering, so try this ;

sudo gedit /usr/bin/eclipse and remove or comment out the line (with a hash character)

GDK_NATIVE_WINDOWS=true


What program currently handles the old notification area?

Unity actually is the program that runs the system tray. If you can read code, you may be able to see it for yourself here.

Supposedly gnome-session 3 will automatically run startup in different phases so the panel & desktop would load before any applications which might fix your issue.


I have never done this, but it may work.

When you boot with LiveCD, Click on the Software Centre icon and search for gparted.

When it is installed, run it by clicking the icon on the launcher and see what it shows there. If it shows the Windows partition and your partitions, all well and good, there is a problem with the installer. However, if it doesn't, Create your partitions here and start again.

There is a real problem with installing over Windows8 and to check that you have not missed anything, check here


You need to do

sudo chown -R $USER:$USER /data

This will change the directory and all files in it to your user. $USER will automagically changed to your current user so you can copy/paste this as is.


Is there a way to install lo-menubar as per-user local extension?

Per Jan's own comment:

  Oh, just figured it out:
  sudo apt-get install lo-menubar
  unopkg add -v /usr/lib/libreoffice/share/extensions/menubar
  sudo apt-get purge lo-menubar
  This install's the extension for profile one (default) only.
  (I obviously can't answer my own question within 8 hours because I'm new user here :( )


ibus on Gnome Wayland - Is there any workaround to make ibus work in GNOME Wayland session?

The problem was, I failed to figure out new differences in GNOME, that you have to first configure ibus using ibus-setup, add m17n (in my case) for local languages support (Malayalam, Hindi, Tamil). Then, in Gnome Settings> Region & Language > Input Sources Press '+' and add the languages (from Other directory for Indic languages).

That was enough; now with SUPER+SPACE keyboard shortcut, I can select language input, also the icon appears in the top panel for language selection.


I believe it is more advanced than simple names, I just tried. In fact it would seem that it doesn't base it on name at all.

So I just created the following:

TestDir
  │
  ├─ blue.png #Blue A4 page
  ├─ blue2.png #Blue A4 page
  ├─ green.png #Blue A4 page
  ├─ red.png #Yellow A4 page
  ├─ yellow.png #Yellow A4 page
  ├─ yellow2.png #Yellow A4 page
  └ TestDir2
       │
       ├─ yellow.png #Blue A4 page
       └─ yellow.png #Blue A4 page

Imported the folder TestDir (which imports from any subdirectories too). This was the notice:

6 duplicate photos were not imported:
/home/tim/Pictures/Test/red.png
/home/tim/Pictures/Test/yellow2.png
/home/tim/Pictures/Test/green.png
/home/tim/Pictures/Test/blue2.png
(and 2 more)

2 photos successfully imported.

The two it had imported were blue.png and yellow.png. This is because they were created first (it chooses the oldest if there are duplicates).

This was confirmed by the next test:

TestDir
  │
  ├─ blue.png #Blue A4 page
  ├─ blue2.png #Blue A4 page
  ├─ green.png #Blue A4 page (sorry OCD people)
  ├─ red.png #Yellow A4 page (sorry OCD people)
  ├─ yellow.png #Yellow A4 page
  ├─ yellow2.png #Yellow A4 page
  ├─ pink2.png #Pink A4 page
  ├─ pink.png #Pink A4 page
  └ TestDir2
       │
       ├─ yellow.png #Blue A4 page
       └─ yellow.png #Blue A4 page

pink2.png and pink.png have been created. pink2.png was created first, then pink.png

8 duplicate photos were not imported:
/home/tim/Pictures/Test/red.png
/home/tim/Pictures/Test/yellow2.png
/home/tim/Pictures/Test/green.png
/home/tim/Pictures/Test/blue2.png
(and 4 more)

3 photos successfully imported.

The successful imported ones were blue.png,yellow.png and pink2.png.

Because of that I assume it uses a hashing algorithm.

It is accurate enough that changing just 1 pixel of colour from green to yellow on an A4 page caused it to not detect as a duplicate. Pretty accurate then!

In fact, I just found this post here:

  Once this bug is fixed, Shotwell  will use (exclusively) a full MD5
  hash of the file to perform duplicate  checking, which is a pretty
  darn accurate way to find duplicates.

In fact in the source code, at line 732 is this: Kudos @ Jeremie Miserez

imported_full_md5_table.has_key(prepared_file.full_md5)) {

Sounds like it uses a MD5 hash!

Shapes for directory tree from here

My pronouns are He / Him


How do I limit the upload speed of Transmission client to below 5kB/s?

Transmission:

Edit-> Preferences -> Transmission Preferences -> Speed Limits/Alternative Speed Limits

Under Speed Limits/Alternative Speed Limits you can set what the max speed your data needs to be uploaded.

Alternate way

open gedit $HOME/.config/transmission-daemon/settings.json

  "speed-limit-up": 5, "speed-limit-up-enabled": true

You can set "speed-limit-up" to your desired number.


why am I being denied my rights in sudo?

Being a member of the sudo group just means that you are allowed to sudo into the root role. To actually perform an action as root, specify it as an argument to the sudo command:

sudo rmdir themes

The sudo command will elevate you to root and then execute rmdir themes.


Stream my movies to my Nexus7 and other devices?

We sucessfully stream video to our Android devices with a combination of

minidlna
on our content server and
Bubble UPnP on the Android device.

After installation of minidlna you will have to edit the configuration file /etc/minidlna.conf (as root) to give your media content directories:

media_dir=V,/home/<user>/Videos  # for video content

The streaming service will be run or stopped with

sudo service minidlna start
sudo service minidlna stop
sudo service minidlna restart  # for changes in config to take effect

See also:

Ubuntu Community Wiki: MiniDLNA
MiniDLNA Application Indicator

As an alternative you can also stream media content with vlc , available for both, Kubuntu, and Android.


No sound through Turtle Beach Z300 USB headset

This turned out to be a hardware issue.  I had the headset plugged into a USB 3 port.  Switching to USB 2 worked fine.


Installing libmysqlclient-dev did not produce libmysqlclient_r.so library

I found an answer that worked for me here. It looks like libmysqlclient_r is not included in the libmysqlclient-dev package so I made a symbolic link to libmysqlclient.so like so:

sudo ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so


What are all the install methods for NodeJS and NPM?

There are multiple ways to install NodeJS and npm on Ubuntu.

Install from the default repositories

The recent versions of Ubuntu come with NodeJS (package nodejs) and npm (package npm). You can simply install those with apt. But, depending on which Ubuntu version you're running, those packages may contain outdated versions of NodeJS and npm.

Install from the NodeSource PPA

NodeSource offers a personal package archive (PPA) with more current versions of NodeJS and npm. You can install the PPA like this (for example for NodeJS 8.x)

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get update
sudo apt-get install -y nodejs

You can find further information at the projects GitHub repo.

Install from nvm

Probably the most versatile option is to use the Node Version Manager (nvm). That's a simple bash script that enables you to install multiple versions of NodeJS in parallel and switch between them.

# install nvm, for example version 0.33.2
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash

# list installed versions of NodeJS
nvm ls

# list available versions of NodeJS
nvm ls-remote

# install NodeJS, for example version 8.1.4
nvm install 8.1.4

# use installed version of NodeJS, for example 6.11.1
nvm use 6.11.1

Regarding the relationship between NodeJS and npm, to my best knowledge the two are quite tightly coupled. That means it doesn't make too much sense to update npm on its own. If you need a newer npm for whatever reason, use a newer NodeJS version that comes with a newer npm version.


AssertionError using Apache2 and libapache2-mod-wsgi-py3 on Ubuntu 14.04 (Python 3.4)

Ubuntu 14.04 comes with mod_wsgi 3.4. According to https://code.djangoproject.com/ticket/22948#comment:2 we need to use mod_wsgi version 4.2+ for Python 3.4.

The best way to install mod_wsgi to the latest version is to get it with pip (can be in virtualenv) and then install its module to apache system-wide.
In my case I use virtualenv set in /venv_path.

1) Remove problematic package and install dependency

sudo apt-get remove libapache2-mod-wsgi-py3
sudo apt-get install apache2-dev

2) Install mod_wsgi in virtualenv with pip

. /venv_path/bin/activate
pip install mod_wsgi

3) Install into Apache (system-wide)

sudo /venv_path/bin/mod_wsgi-express install-module
sudo vi /etc/apache2/mods-available/wsgi_express.load /etc/apache2/mods-available/wsgi_express.conf

Content of /etc/apache2/mods-available/wsgi_express.load

LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi-py34.cpython-34m.so

Content of /etc/apache2/mods-available/wsgi_express.conf

WSGIPythonHome /venv_path

4) Enable the module and restart Apache.

sudo a2enmod wsgi_express
sudo service apache2 restart

5) Check that there are no errors in /var/log/apache2/error.log


You cannot update from Pear to Ubuntu. You can only remove Pear and install Ubuntu over it.

As for User interface Ubuntu uses different interface, but you can customize it with a Pear / Mac look after installing. You may use Cairo-Dock software for this.


How can I remove an application indicator in the panel for Ubuntu 12.04?

Start by clicking on it and choose Settings.

Then check Always Hide and you're done.


Is there any way I can increase my home folder size without uninstalling again?

You can resize a partition by booting from the Ubuntu Live CD. There's a chance you might have some data loss when resizing partitions with data on them, but if it's a fresh install what's to loose? I've used this method to successfully resize a partition with Windows 7 and Ubuntu dual booted HD. If you're Ubuntu install didn't come with gparted, just open software center from the live CD and install it. You can then un-mount the drive to be resized if it's mounted, then select it with gparted and choose resize.


Wireless working on Ubuntu 13.04 installer but fails when installed

I had the exact same problem, but with Ubuntu 12.10. Recompiling the driver worked for me.
The steps I took: https://askubuntu.com/a/282058/13539


Firefox could not initialize application security crash

It sounds like you have a corrupted Firefox profile to deal with this problem you will need to run Firefox profile manager to do this open a terminal open the dash and type terminal
and enter this command at the prompt firefox -profilemanager like this

and hit the Enter key

you should then see a dialogue like this

you need to first delete the default profile then create a new profile

Hope this helps


How to disable semi-maximize with Super+Left/Super+Right in GNOME?

You can go to Settings - Devices - Keyboard to disable these shortcut keys by clicking on the row and pressing Backspace.


Please open a terminal and do:

cd /lib/firmware
sudo wget https://git.kernel.org/cgit/linux/kernel/git/egrumbach/linux-firmware.git/plain/iwlwifi-7260-7.ucode

Reboot and tell us if the wireless is working.


how to insert a _single_ picture into a stream

a) Convert the stream into WMV format

b) Split the stream where you wish to insert the picture

c) Convert said picture into WMV format

d) Do

cat before.wmv picture.wmv after.wmv > combined.wmv

e) If you intend to broadcast it, make sure you do not violate 27 C.F.R. sec, 5.65 (h) (1988) which bans broadcasting subliminal content, or any local regulation. That's the only Federal ban on subliminals I could find.


How to enable bluetooth at startup 16.04 LTS

Please edit /etc/bluetooth/main.conf.

By default in Xenial, bluetooth is not power on.[1] rfkill unblock all only unblocks the device if the device is on service and blocked. So what you need is to power on the device and make sure that the daemon, bluetoothd, is working.  Thus, you may consider to edit /etc/bluetooth/main.conf to control the behavior.

You may try to change the line to be DiscoverableTimeout = 0 or add lines like

[Policy]
AutoEnable=true

Please refer to man bluetoothd, man /etc/bluetooth/main.conf and https://wiki.archlinux.org/index.php/bluetooth as well to fit your requirement.

[1] The bluetooth stack differs from Trusty to Xenial, including how they are started at the system booting time. This is maybe the reason why your trusty post does not help. This is too much detailed and I won't go through the details of this story.


Laptop goes to sleep if i close the lid during startup?

The setting only affects the logged in user. To set it system wide you need to edit the file /etc/systemd/logind.conf
and modify the line:

"#HandleLidSwitch=suspend"

to

HandleLidSwitch=ignore

Then either reboot or use:

sudo restart systemd-logind

or

sudo systemctl restart systemd-logind.service

For the newer systemd.


Installing Ubuntu to /sdb internal M.2 SSD - Bootloader Question

I'm assuming you are installing in UEFI mode. If not, read the second part of the answer.

You should have the following partitions in your system unless you know what you're doing very well:

100 MiB UEFI partition ( is a FAT type partition, if I remember right)
30-40 Gib or more Ubuntu Root Partition (ext4, mount point /)

Create these two with the GParted utility that comes on the install disc. You can use other ways as well, but this is simpler. Try to keep the UEFI partition as the first partition on your /dev/sdb to avoid unintentional effects with your BIOS not detecting the partition.

If you're using Legacy Mode, you need to create a 1024 KiB partition at the very beginning of your /dev/sdb of the type BIOS Boot Partition. Use a tool called cgdisk to do this.

cgdisk is a command line tool. Launch it as sudo cgdisk /dev/sdb and then press enter on the first 1007KiB free space on your harddrive(if there's already a partition there of that size, it means this is not the problem and something else is wrong with the installation altogether).

Select the default start and end points of partition by pressing enter and then use the partition code ef02 to create a BIOS boot partition. Then save the partition table, exit, reboot and try reinstalling grub.


Ubuntu 14.10 gstreamer 1.4.3 h264parse missing?

According to http://gstreamer-devel.966125.n4.nabble.com/h264parse-has-been-removed-from-gstreamer-1-0-td4671468.html , the h264parse filter is now part of libgstvideoparsersbad.

I've made sure that gstreamer1.0-plugins-bad-videoparsers is installed, and now everything works. The filter itself was renamed to 'legacyh264parse', but there's an alias for the old name so it should just work.


Using Zsh instead of Bash on a particular Ubuntu server --- Just change, or fully reinstall?

Reinstalling all the environment is IMHO an overkill. zsh is a package like many others, you can just run sudo apt install zsh and use it.

I haven’t tested zsh personally yet but it should make no difference when using external commands like apt-get, sed, awk, wget and so on. You should check the support of shell features like heredoc and echo (which is internal command in Bash). Your “Bash string” should work as long as you don’t uninstall Bash (don’t do it) but it probably wouldn’t affect zsh.

Of course, you should test the changes (like any others) before you deploy them in the production environment.


Establishing compute node problem faced off

It looks like this package is available in the Universe Repository.

First, try to run apt-get update to make sure that you have information about the latest packages. If you are still not able to install it after running apt-get update then it is possible that you may not have this repo enabled on your server.

You can check to see if this repository is enabled by running the following command in a terminal:

cat /etc/apt/sources.list | grep universe

The output of this command should look something like this:

deb http://mirrors.linode.com/ubuntu/ precise universe
deb-src http://mirrors.linode.com/ubuntu/ precise universe
deb http://mirrors.linode.com/ubuntu/ precise-updates universe
deb-src http://mirrors.linode.com/ubuntu/ precise-updates universe
deb http://mirrors.linode.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.linode.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe

If you get no output, then add the following lines to /etc/apt/sources.list

deb http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe

If the output is commented out with # then remove the comments from /etc/apt/sources.list

Then you should be able to run apt-get update and then apt-get install python-guestfs


How do I re-install or delete 64-bit 12.10 and install 32-bit

If you're running 64-bit ubuntu, you can choose to run either 32-bit mongo or 64-bit mongo, as takkat mentioned. (a 32-bit OS would force you to use only the 32-bit executable.)

Personally, I find it simpler and more predictable to just go to the 10gen distributions page, and download and untar the version I want.  After that, executing the right bin/mongod just works right out of the box.


Ubuntu dual boot install hanging up at dots screen

Try upgrading your BIOS to A07. Go to http://www.dell.com/support/home/us/en/04/product-support/product/inspiron-15-3541-laptop/drivers?os=wt64a

Also try booting the Ubuntu Live DVD/USB in "Try Ubuntu" mode and see if it boots up without a kernel panic.

Update:

boot to the GRUB menu
choose Advanced Options
choose Recovery mode
choose Root access
at the # prompt, type sudo update-initramfs -c -k "$(uname -r)"
at the # prompt, type reboot


AMD radeon R7 250 Ubuntu 13.10 Open Source Driver

The command-line console is your friend. From your X session, hit ctrlaltF1 (it should also work with F2-F6 or so). That will take you to one of the built in consoles (aka terminals), where you can do the uninstall/reinstall "by hand" using apt-get or whatever.

If you have access to another computer, you could SSH in instead, I think that is set to run on a default Ubuntu install.


In Unity Desktop, is there a way to hide *some* windows but not others in the window list?

I don't use Unity and have a "taskbar". I have a few apps that run at startup that launch full screen and when you minimize them they sit in the taskbar.. I used a program called gDevilspie which does have an option to skip_tasklist (Remove the window from the window list) not sure if this may work for what you want to do but I figured I would give you the information and let you give it a try.

Downfall with it is, if you want to view one of them you have to stop gDevilspie or it will just remove it again ... like the one thing I have done this with has a tray icon and if I try to show the window .. it minimizes and hides the taskbar entry again... I have to stop the program to view the window again :( This program is good if its something that needs to be running all the time but no interaction needs to be done with it ..and you just want to hide it from view as if it was running as a service in the background or something.

My other suggestion would be to set up multi-workspaces and just move those windows to one of the desktops not in view and change it so that they dont show on all workspaces .. then the ones "hidden" on a non visible workspace will not show on your main workspace ... not sure if it will change the windows list though... it does with xubuntu.


Setting Up My wacom tablet to use only the right hand monitor

Here are a couple of links to were people were able to get what you were looking for. The second one is a command line fix

Adjust through menu

Terminal fix

Why this happens with multiple monitors, since Wacom driver doesn't support it you need to do it through X server a walkthrough


Command line tools

There are several command line tools for this purpose, for example df -h and lsblk -f that display disk usage/remaining disk space for mounted partitions.
  xubuntu@xubuntu:~$ df -h
  Filesystem      Size  Used Avail Use% Mounted on
  udev            7.8G     0  7.8G   0% /dev
  tmpfs           1.6G  1.8M  1.6G   1% /run
  /dev/sdb3       9.8G  1.6G  7.7G  17% /isodevice
  /dev/loop0      1.6G  1.6G     0 100% /cdrom
  /dev/loop1      1.5G  1.5G     0 100% /rofs
  /cow            7.8G   30M  7.8G   1% /
  tmpfs           7.8G     0  7.8G   0% /dev/shm
  tmpfs           5.0M  4.0K  5.0M   1% /run/lock
  tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
  tmpfs           7.8G  8.0K  7.8G   1% /tmp
  tmpfs           1.6G   20K  1.6G   1% /run/user/999
  /dev/sda1       150G  130G   13G  92% /media/xubuntu/bionic

  xubuntu@xubuntu:~$ lsblk -f
  NAME   FSTYPE   LABEL                   UUID                                 FSAVAIL FSUSE% MOUNTPOINT
  loop0  iso9660  Xubuntu 20.04 LTS amd64 2020-04-23-07-50-17-00                     0   100% /cdrom
  loop1  squashfs                                                                    0   100% /rofs
  sda
  ├─sda1 ext4     bionic                  2093f8d6-7840-4256-8edc-4db97e865784   12.2G    87% /media/xubuntu/bionic
  ├─sda2 swap                             4b882c9f-4867-4c5c-8eb7-c84ef03f4786                [SWAP]
  └─sda3 ext4     focal                   31f64dfc-933a-4f48-9209-e7a7b016d8c9
  sdb
  ├─sdb1
  ├─sdb2 vfat     usbboot                 02D3-7915
  └─sdb3 ext4     isodevice               04d5aa8c-aa1e-4a71-9d79-edaf6e8b2111    7.7G    16% /isodevice
  sr0
  xubuntu@xubuntu:~$

baobab

You can also [install and] use baobab, which displays disk usage/remaining disk space for mounted partitions. baobab has a graphical desktop environment.

But the main purpose of baobab is to show the disk usage by directories and files with graphics. So when you click on one of the partition icons, you may see the following view,

gparted

You can also [install and] use gparted, which displays disk usage/remaining disk space for mounted as well as unmounted partitions. gparted has a graphical desktop environment.

Use the small box near the top right corner of the window in order to select which drive to look at.

Mounted partitions are indicated with a key icon, showing that they are locked for editing (but you can unmount them).

Thunar

Thunar has a 'status line' at the bottom of its window, where the free space in the displayed partition is displayed. But I have not found any display in Thunar, that displays the remaining space in all partitions at the same time.


ATI Proprietary Driver Over/Underscan setting ignored after reboot

My dear friend Google helped me out with this. Slightly modifying the command given here made the under scan behave like it should.

Here's the command that solved the issue:

sudo aticonfig --set-pcs-val=MCIL,DigitalHDTVDefaultUnderscan,0


Can't ping machine on LAN from 1 out of 3 Kubuntus

It turns out that I also needed to install the libnss-winbind package, which wasn't mentioned in the instructions for connecting the MediaVault to Linux.  I don't know how that package got installed in 2 systems but not the third.  Installing it solved the problem.


What is the meaning of this keyring-related error?

I am not sure what kind of set up of your Ubunutu you have but, whenever I have that keyring popping up on my system, usually (one of reasons) is because I configured my system to auto-login going straight to desktop from booting.  It's one of the security feature.  I have gotten used to it, and it also have prevented me from few horror errors that I was so glad I didn't disable keyring.


Yes. Here is the official port fortwarding help.


This is the third or fourth time the question has been asked. It appears to be a bug in the display blanking of the window manager code. As Ubuntu is gutting all that for the future it probably won't be fixed.

My solution to the problem (vanilla Ubuntu 17.04) has been to go into settings and disable all screen blanking/screensavers functions. then to set the system to directly go into suspend or to use the actual Power button and OSD to go directly to suspend. that seemed to get it working for me so the system isn't just fully awake all the time. it still seems buggy if I try to immediately wake it back up, but most of the time it's suspended for 15-30 minutes and will wake up correctly.


Resolution stuck 1024x768 VirtualBox 6 VboxSVGA driver on guest Lubuntu 18.04

In VirtualBox, you have a menu that forces a user-specified screen resolution for the virtual screen. It should help you to specify Lubuntu the correct resolution:


What visual style is this and how do I install it?

Change your desktop image with something like this image and you will see that your desktop will look like in that video. The launcher color and the color for some other things are derived from your desktop wallpaper. Unity color is chameleonic. So you don't need to change the theme or the style:

Also, you can play with some tweaks from Ubuntu Tweak:

To install Ubuntu Tweak, run next commands in terminal:

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

To change the icon theme see this question: How do I change the icon theme in Ubuntu?


How do I start a wine program from the command line?

You just have to

wine /path/to/your/exe/program.exe


Certbot doesn’t change much, it adds a redirect to .htaccess and disables / enables .conf files for the site you’re working with. It sounds like Apache May have crashed.

Try the following.

I can’t comment because my reputation isn’t high enough. (Kind of dumb because this isn’t an answer it’s a request for more information.)

service status apache2

ufw status

Make sure 80 & 443 are allowed for tcp

If they aren’t use

sudo ufw allow 80/tcp

sudo ufw allow 443/tcp

Also, run this

sudo ls /etc/apache2/sites-enabled

Then run

sudo netstat -anl | grep 80

sudo netstat -anl | grep 443

Please comment all results to this answer.


How to open urllink.acsm file with Adobe Digital Editions when it's running with PlayOnLinux?

You have to set file association inside PlayOnLinux:

Open PlayOnLinux
Go to Settings → File Associations
Click New
Enter acsm in the opened window, click OK in it
Select acsm line in the table and set Assigned program to ADE executable
Click Apply
Restart PlayOnLinux
Try to open acsm file from file-manager by simple Open

Note: ACSM seems to be DRM format, so it will not work with native Calibre application. So your rights are limited here.


You can use a very simple script to do this.

Here is the script:

#! /bin/bash

"$@" > $$.txt
sublime-text $$.txt
rm $$.txt

Save it as sublime.sh (you can use any other name) and make it executable by running:

chmod +x sublime.sh

To use it:

./sublime.sh <command>

Example:

./sublime.sh ls -l

Explanation:

Line 1 is the shebang, which just specifies the interpreter.
Line 3 runs the command that you passed and saves it in a file named $$.txt. $$ returns the PID of the terminal you're using (feel free to use any other file name).
Line 4 opens the file in sublime-text
Line 5 deletes the file, since you don't want to save the file permanently.

Update: You can also put it in your ~/.bashrc file to access it easily.

Open a terminal.
Go to home folder.

cd

Open .bashrc file.

gedit .bashrc

Copy the following at the end of the file.

function sublime()
{
    "$@" > ~/$$.txt
    sublime-text ~/$$.txt
    rm ~/$$.txt
}

Run the following command to refresh:

. .bashrc

Done!! Now use it:

sublime ls -l


Live USB installation hanging on startup - Vivid, Acer Aspire V

To install the newest version of Ubuntu from Live USB I used a program that installed Ubuntu on the USB first and made it bootable

Link: This will install the newest version of Ubuntu on your USB drive for you


How to set environment variable without rebooting Ubuntu?

You can add to your $PATH variable directly like this:

export PATH=$PATH:/the/dir/you/want/to/add

Then, edit /etc/environment.

An alternate method would be to still export as I showed above, but then to add the entry to your ~/.bashrc file (if using BASH shell).

echo "export PATH=$PATH:/the/dir/you/want/to/add" >> ~/.bashrc
source ~/.bashrc

EDIT: Exporting your $PATH in your ~/.bashrc file rather than /etc/environment keeps you from needing to elevate permissions to edit a "global" (system) config file and also keeps other users (if you have any on your system) from having that path auto-added on account creation.


I had the same error last night trying to get Windows RDP and XRDP to work together. On your windows machine, go to Control Panel > System then select Remote Settings on the left side menu. In the next window, click on the Remote Tab if it isn't open, then make sure Allow Remote Assistance at the top and Allow Connections from any version of remote desktop in the lower half are both selected, and click Apply to save. This got me past this particular error while still having IPv6 active.


Can't bind Super + w in xbindkeys, all other combos work fine

Autokey-Qt might be able to map that key combo for you, however, Autokey will execute it and then the operating system will perform its task afterwards. This annoyed me enough that I moved my shortcut. :(


rsyslog server saves logs from remote also in /var/syslog

Just before posting this question i changed :

/etc/rsyslog.d/mikrotik.conf

to:

/etc/rsyslog.d/10-mikrotik.conf

It did fix my problem then but i just discovered it now.


The change to using LZ4 compression by default in Ubuntu kernel configurations is relatively recent. Not only do some older Ubuntu versions not have LZ4 related tools installed by default, but they are actually unavailable.

Change the compression method back to gzip: Method 1:

scripts/config --disable KERNEL_LZ4
scripts/config --enable KERNEL_GZIP

Method 2: Manually make these changes to your kernel config:

Change this:

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_HEADER_TEST is not set
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_BUILD_SALT=""
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
CONFIG_KERNEL_LZ4=y

To This:

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_HEADER_TEST is not set
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_BUILD_SALT=""
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set

Note: It takes about double the compile time to include the debug information as per the default Ubuntu kernel settings. Suggest to disable:

scripts/config --disable DEBUG_INFO

Which should do this:

doug@s15:~/temp-k-git/linux$ scripts/diffconfig .config-5.4.0-050400-lowlatency .config
 DEBUG_INFO y -> n
doug@s15:~/temp-k-git/linux$ diff .config-5.4.0-050400-lowlatency .config
10144c10144
< CONFIG_DEBUG_INFO=y
---
> # CONFIG_DEBUG_INFO is not set

Install only the resulting headers (~12 megabytes) and image (~60 megabytes) files.


Canon D530 Laser Printer not working on Ubuntu 15.04

Hello i got the same issue with the driver 2.90 on ubuntu 14 and 15. I finally installed driver version 2.80 who is working perfectly. The driver is not available on Canon web site you have to find it in a web site listing drivers for any brands. Canon has propably broken something from release 2.80 to release 2.90.

Stephane


Isolated NTP Server for use in switchgear testing

the howto you followed is high ranked, but also a decade old. Nowadays I'd recommend to use chrony as outlined in the ubuntu server guide.
This essentially comes down to just
$ apt install chrony
$ vim /etc/chrony/chrony.conf
# set from which networks/addresses NTP can be synced
$ sudo systemctl restart chrony.service

Since you don't care about the accuracy of the time I think that should be all you need. I use it on my RPi4 (with network and a GPS receiver for extra accuracy) just fine.

Note/Warning: Many NTP clients do a quality check on the time source
they fetch from for jitter, distance and such. If your server has
nothing but it's local clock and it might be really bad they might
disqualify it and therefore not sync. If you happen to use chrony as a client on one of your test clients check chronyc sources and
chronyc sourcestats


Since Ubuntu doesn't seem to provide a systemd service for iperf3d, we'll have to write it ourselves.
See https://gist.github.com/auipga/64be019018ef311deba2211ced316f5e, and I'll quote it here as well.
[Unit]
Description=iperf3 server
After=syslog.target network.target auditd.service

[Service]
ExecStart=/usr/bin/iperf3 -s

[Install]
WantedBy=multi-user.target

put this file in /etc/systemd/system/iperf3.service and then sudo systemctl enable iperf3.


installing Ubuntu with xp and partitioning

I have no idea as to your skill level with Ubuntu, but since you've asked a relatively basic question, I'm going to assume you're a beginner. Sorry if that's an incorrect assumption. With that in mind, I would like to recommend going with 14.04 LTS instead of 15.04 since issues dealing with installation, setup, and general use are better-documented for that version. You may have a better time with it.

Installing Ubuntu alongside Windows or any other operating system is commonly called "dual-booting" and is handled by the Ubuntu installation process. When you actually boot the computer after Ubuntu has been installed, you will be given the option to boot to any of the operating systems detected on your drive. Here is a good overview of the installation process: http://news.softpedia.com/news/Installing-Ubuntu-15-04-479239.shtml (Google is your friend here.)

The basic steps are common to just about any Ubuntu installation. There are, however, a few tips that I'd like to offer from my experience:

Make your own partitions. When you get to the step where Ubuntu asks you about partitioning and dealing with other OSes, consider making your own partitions manually. This has the advantage of showing you exactly what you're going to get instead of relying on the installer to figure out what's what. It will also prove easier to re-install Ubuntu if you break the OS without losing your personal data. (This is unlikely to happen, but I've done it before, and knowing my partition setup helped me fix it.) Here's a guide that I've used in the past: How to use manual partitioning during installation?
Back things up. If you're unfamiliar with the partitioning process, you could destroy some or all of the data on your drive(s), and that can be anything from discouraging to disasterous. If you can, back up either your whole drive or as much of it as you can.
Search before you ask. Even though 15.04 is new, there are a lot of concepts that are common to all versions, so give Google a try before asking questions. Don't be afraid to ask, of course, but do your research.

Now let's talk about drive space. I'm not really clear on what you mean by not having "enough space", since that can mean that either your Windows partition is taking up the whole drive or you simply have too much data on the drive already. In the latter case, you'll just have to shuffle stuff off of the disk (either by deleting or moving to another place) until you've got enough room. In the former, bear in mind that you can make your Windows partition smaller as a part of the installation process, or even from within Windows. This will leave unallocated space on your drive for Ubuntu. Poke around on your drive and see what you might be able to live without.

I hope you found this to be helpful.

Scrat9518


Getting my File Manager to link to my Google Drive

There is actually a way to do this.

Run these commands:

sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt-get update
sudo apt-get install google-drive-ocamlfuse

Configure the program by running google-drive-ocamlfuse.
Make a mount point in your home directory, called "gdrive": mkdir ~/gdrive.
Mount Drive: google-drive-ocamlfuse ~/gdrive.

Source:
http://www.webupd8.org/2013/09/mount-google-drive-in-linux-with-google.html


Ubuntu 14.04 installation attempt destroys Windows 10

If this is what you selected, then you wiped the entire HDD.

You must now reinstall Windows 10.

There is a way to install Windows 10 from the Live Ubuntu but I don't know for sure it will work:

From GParted: Put a GPT partition table on your HDD.
Make a 8 - 10 GB FAT32 partition at the end of the HDD. Leave the remaining space unallocated.
Mount this new partition.
In the live distribuition, go to Microsoft and download Windows 10 ISO in the partition you created.
Extract the ISO (I don't know how you do that in a live distro) in the root of that partition so that you will get Windows folders like this:

Go to efi folder, then boot and checck if you have a bootx64.efi file there.
Restart PC, remove USB flashdrive and set it to boot from HDD. It may start Windows installation.
When formatting HDD for Windows, do not format the partition at the end that holds installation files! You will do that from Windows Disk Management after the installation is completed.

Note: In case this will work, it works for UEFI only!


SOLVED! i now can stream sockshare net in ubuntu 18 bionic beaver

I needed an extention for the seperatdly installed chrome :
agent switcher, a white face with thick black glasses icon.
It did not work at once, i also had to reinstall flash.
And i had to install the Hardware Abstraction Layer for Proprietary Steams
Then after restart i used an chrome extention, the agent switcher, a.k.a ua spoofer, as apple safari 7, and blam, it streams!

Instal the Hardware Abstraction Layer for Proprietary Steams

sudo apt-get install hal

reinstall the flash plugin

sudo apt-get remove --purge flashplugin-installer && sudo apt-get install flashplugin-installer


I uninstalled lxde using all methods but still lubuntu screen displays while logging in

If your intention is to return to a pure Ubuntu set-up, then the best way is to uninstall all of the Lubuntu applications.  Psycho cat's blog has a how to command for each version.  For versions 12.04 and before http://www.psychocats.net/ubuntu/pureubuntu
For versions after 12.04
http://www.psychocats.net/ubuntucat/tag/pure-ubuntu/
Since you did not mention your version number, merely go to the appropriate web site and paste the respective command in your terminal.  If you have things that you cannot live without, please back up because you never know what may happen.


try

cat /proc/acpi/battery/BAT1/info

or

cat /proc/acpi/battery/BAT1/stat


Is there a way to open a text file in an already open instance of gedit?

As @igi suggested, its the default behavior for Ubuntu Natty. Otherwise

Open /usr/share/applications/gedit.desktop and make sure the Exec property is equal to gedit --new-document %U

Alternately, you can open your ~/.bash_aliases or ~/.bashrc and add

alias gedit="gedit --new-document"


To install XBMC you can run the following commands:

sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install xbmc


I cant shutdown or restart ubuntu with cinnamon

I had the same issue, my setup is Ubuntu 14.04 and Cinnamon 2.8.6

Here is how I solved it:

Install dconf-tools. Run in a terminal window:

sudo apt-get install dconf-tools

Open dconf-editor:

dconf-editor

Go to org > cinnamon > desktop > session
Change session-manager-uses-logind to TRUE (checked)
Logout and login
Now you'll have different options


I just received the same error, while trying to reproduce the error you experienced.

You need to do sudo apt-get install dolphin-emu-master by the look of my error. It allowed me to start to install (i.e. it found the package), although I did cancel it.

Was this what you got?

tim@Hairy14:~$ sudo apt-get install dolphin-emu
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package dolphin-emu is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  dolphin-emu-master

E: Package 'dolphin-emu' has no installation candidate

NB: I used this site to get the PPA details, the same PPA as you.


lightDM GTK greeter won't log in unless root

I found out how to fix it!

I needed to remove the X server I was using, and replace it with the default server included in Ubuntu.


A simple timer app, similar to timer-applet

alarm-clock-applet might be what you are looking for, you can save pre-sets for either alarms (specific time) or countdown timers. Two advantages over timer-applet is that several timers can run at the same time, and you can set a custom snooze time.
It's in the Software Center.


By default Ubuntu expects your hardware clock to run on UTC and calculates your localtime based on that.
See How to tell Ubuntu that hardware clock is local time? if you don't want that. Note that in this case Ubuntu doesn't adjust the clock for daylight saving time.
It's usually better to use UTC for the hardware clock (unless you need e.g. to dualboot a system that doesn't support that, like some old Windows versions).


Reinstalling Java packages gives unmet dependencies error, after uninstalling Java

I tried to install sudo apt-get install openjdk-6-jre and then I got that some other package was missing. Then I tried to install that package and then I got some other package was missing.

After 3 times, I installed the last package successfully  and I started installing all the missing  packages from the end, and then I finally installed it!


Why has Ubuntu moved the default mount points?

In fact, Ubuntu as many other Linux distributions have switched to udisks2 which is used for the auto mount feature.

In the new version of udisks, the default mount point is /run/media/$USER, but it has been patched by Ubuntu (and some other distributions) to be /media/$USER (See this answer from Florian Diesch for more details).

udisks version 2.0.0, which is included in Ubuntu 12.10 doesn't allow you to change the default behaviour which is mounting a file system as non-shared (only accessible by $USER).

Since udisks 2.0.91, it is possible to change the default behaviour so that mounting a file system as shared can be done as before [/media] (See this answer from rocko for more details).

The root cause for this change of default behaviour in udisks2 seems clear : the security. It is safer to restrict access to a file system to one particular user instead of giving access to it to all the users of the system.