DisplayLink usb on ubuntu 12.04 on laptop

#/usr/share/X11/xorg.conf.d/52-displaylink.conf
Section "Device"
   Identifier      "intel"
   driver          "intel"
   Option "monitor-LVDS1" "monitor2"
   Option "monitor-VGA1" "monitor1"
EndSection

Section "Device"
   Identifier      "dl1"
   driver          "displaylink"
   Option  "fbdev" "/dev/fb1"
EndSection

Section "Monitor"
   Identifier "monitor0"
   Option "PreferredMode" "1920x1080"
EndSection

Section "Monitor"
   Identifier "monitor1"
   Option "RightOf" "monitor2"
   Option "PreferredMode" "1920x1080"
EndSection

Section "Monitor"
   Identifier "monitor2"
   Option "PreferredMode" "1366x768"
EndSection

Section "Screen"
   Identifier "screen0"
   Device "dl1"
   Monitor "monitor0"
   DefaultDepth 16
EndSection

Section "Screen"
   Identifier "screen1"
   Device "intel"
   Monitor "monitor1"
   DefaultDepth 16
EndSection

Section "ServerLayout"
   Identifier     "multihead"
   Screen      0  "screen0" 0 0
   Screen      1  "screen1" LeftOf "screen0"
   Option    "Xinerama" "on"
EndSection


How do I get my laptop not to lock up every time I close the lid in Ubuntu 13.04

Under settings go into the Power section and change "When lid is closed" to "Do nothing"


libstdc++ is not a binary package name. Since a package matching the name libstdc++ isn't found, apt-get searches packages that match this regex, and therefore wants to install 4.4, 4.6, 4.7, and 4.8 and the associated -doc and -dbg files. The same thing applies for clang++

Instead, the packages you are probably looking for libstdc++6 (for your first command) and libc++1 (for your second command).


Can't install ATI proprietary drivers in 12.10

I started with a clean 12.10 install (not an upgrade)
My card is a Radeon HD 5450

First thing I done was to install Linux-source and Linux headers

sudo apt-get install linux-source
sudo apt-get install linux-headers-generic

I noticed that many with Nvidia cards were having to do this and am sure I saw mentioned some-where that it also helped ATI users.

Like everyone else if I installed either of the proprietary drivers after reboot I was able to login but lost unity.

One thing I did notice is that installing the driver did not install Catalyst control centre (not sure if it is the same for everyone else)

So I installed Synaptic package manager and installed fglrx-updates from there

Now the Catalyst control centre was installed.

Upon rebooting however instead of being able to login with no Unity the system was hanging at the splash screen.

So I applied nomodeset and this time it booted with Unity present

Here is the result of fglrxinfo

And here is what software sources says

With nomodeset applied I might not be getting the splash screen on boot up but fglrx-updates is working well. I would go as far as to say that it is performing better than it was in 12.04

More info

Grub offers me 2 kernels

3.5.0-18-generic
and
3.5.0-17-generic

The later one '18' is good, the older one '17' still loads without Unity


Really slow boot on Ubuntu 16.10 Alienware 17R3

This is a problem with your hard drive, I had experienced the same problem on alienware area 51 and have replaced hard drive with old data image from old hard drive restored onto it and it worked absolutely fast, much faster, see if that solves your problem, if not, update your bios that REALLY helps.


List programs in the Ubuntu Software Center by file association

PackageKit allows you to search for applications by mime-type. Sadly, the Ubuntu devs haven't put much effort into integrating PackageKit with Ubuntu by default, but it still works surprisingly well.

First, make sure you've installed the graphical toolkit for PackageKit, gnome-packagekit-tools .

Then, run gpk-install-mime-type on the command line, followed by a mime-type. For example:

gpk-install-mime-type text/plain

Screenshots:


To install gfortran version 8.4 in Ubuntu 18.04 open the terminal and type:
sudo apt install gfortran-8

You may need to use update-alternatives link to set the gfortran version if you have two or more different versions of gfortran installed. To change the default version of gfortran type:
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-8 60
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-7 40
sudo update-alternatives --config gfortran


What is the meaning of `SCSI3 (0,0,0)` in Partition disks during Ubuntu installation?

It means:

Controller 0
Disk 0
Partition 0

So it is the 1st disk controller, the 1st disk and the 1st partition on that disk.

ls -1d /sys/class/scsi_device/*/device/block/*

will list them all and also show the device name used for it.Example:

$ ls -1d /sys/class/scsi_device/*/device/block/*
/sys/class/scsi_device/2:0:0:0/device/block/sr0
/sys/class/scsi_device/4:0:0:0/device/block/sda
/sys/class/scsi_device/5:0:0:0/device/block/sdb

Linux device naming


ssh: connect to host stopped working and port 22: connection timed out

First of all check out if the SSH daemon is running properly. you may need to check the journald logs for further details.

You can alternatively run netstat command and see if SSH is listening on 22, and test if ‘telnet ip -port 22’ is working from the firewall to the machine ?

Check ssd_config configuration file if any restrictions in there.

Please note that any problem will be logged in the journald, the sshd.log or your firewall log.


Atheros Bluetooth not working on Ubuntu 14.10

Can you post the results of lsusb and hciconfig --allas there are some chipsets that are not yet supported correctly

I was able to patch a couple modules so that your bluetooth should work in 14.10 with the 3.16.0-28 64 bit kernel, check with uname -a hopefully it shows x86_64 also

New modules zipped can be found https://www.dropbox.com/s/kufg12cf28eh36l/Ubuntu1410.zip?dl=0 extract them to desktop then in terminal sudo mv /lib/modules/3.16.0-28-generic/kernel/drivers/bluetooth/ath3k.ko /lib/modules/3.16.0-28-generic/kernel/drivers/bluetooth/ath3k.ko.bak

sudo modprobe -r btusb

sudo mv /lib/modules/3.16.0-28-generic/kernel/drivers/bluetooth/btusb.ko /lib/modules/3.16.0-28-generic/kernel/drivers/bluetooth/btusb.ko.bak
cd Desktop
cd Ubuntu1410
sudo cp btusb.ko /lib/modules/3.16.0-28-generic/kernel/drivers/bluetooth/btusb.ko
sudo cp ath3k.ko /lib/modules/3.13.0-39-generic/kernel/drivers/bluetooth/ath3k.ko
sudo apt-get install linux-firmware
sudo modprobe ath3k
sudo modprobe btusb

With any luck it will work as I haven't witnessed the xhci glitch with loading the firmware in 14.10 like it was in 14.04

New edit 1/1/2015, a different method with patched ath3k.c and btusb.c files
Edit: download this https://www.dropbox.com/s/ajxndivy4vwgapv/test.zip?dl=0 and extract it to /home so you have a folder named test in home, then in terminal

sudo apt-get install build-essential
cd test
cp /usr/src/linux-headers-$(uname -r)/Module.symvers Module.symvers
make all
sudo modprobe -r ath3k
sudo modprobe -r btusb
sudo mv /lib/modules/$(uname -r)/kernel/drivers/bluetooth/ath3k.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/ath3k.ko.bak
sudo mv /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko.bak
sudo cp ath3k.ko  /lib/modules/$(uname -r)/kernel/drivers/bluetooth/
sudo cp btusb.ko  /lib/modules/$(uname -r)/kernel/drivers/bluetooth/

then Reboot.


After partitioning space to my ubuntu partition, nothing updates

Contrary to what it seems, sudo apt-get dist-upgrade does not upgrade to the new version if you do not changes the sources before.

The correct command is sudo update-manager or sudo update-manager -d.

More info in http://www.unixmen.com/upgrade-ubuntu-13-04-raring-ubuntu-13-10-saucy-salamander/


A file manager to open a zip file like opening a folder, instead of extract it by using a archive manager

If you want everything to be opened in one window you can use Double Commander alike file manager tools. If you are familiar with Total Commander, you'll get use to it quickly.

Example:

For GTK

sudo apt-get install doublecmd-gtk

For QT

sudo apt-get install doublecmd-qt


Computer is not detecting any wireless signal

You can fix wifi problems using two methods:

Either connect to the internet via wired connection and run this command:

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

Then reboot your system.

Or use the following commands:

sudo apt-get install linux linux-headers-generic kernel-package

sudo apt-get install --reinstall bcmwl* firmware-b43-lpphy-installer b43-fwcutter

Finally, reboot your system.

If that didn't help, try these commands:

sudo apt-get remove bcmwl-kernel-source

sudo apt-get install firmware-b43-installer b43-fwcutter

sudo reboot


Is vnc a requirement? or are you simply referring to being able to access the "physical screen" of your virtual machine without having to use a network enabled vm?

If so, The Virtual Box way of doing it ,is using Oracles implementation of the remote desktop protocol (RDP) which they call VRDP.

This allows you control of the guest with any rdesktop client.

You can see Oracles instructions for installing the vrdp here

If you really require / prefer VNC , or dont want the proprietary vbox extension
you can enable vnc support with some tinkering according to this post


How to prevent my system from becoming unresponsive when thrashing (out of RAM)?

I just discovered that my sistem doesn't have any swap space

If this is true, then it's probably contributing to the problem.

By using multiple VMs with large memory allocations, an amount of RAM that would normally be more than enough for normal use (8GB) starts becoming tight, which means your system won't be able to use as much cache, and will want to swap.  Now, if you don't have swap, there will be even more pressure on memory and you may even get tasks killed due to running out of memory.

Swap tries to improve overall stability and performance in situations like the one you have described, by re-allocating some allocated but seldom-used data in memory to disk, freeing memory for data you are using.  Adding swap, if you indeed have none, will help.  However, in performance terms you'll make much more improvement if you also buy more RAM, or use less of it.

On a system where you're running VMs but you're also using a regular desktop on the VM host, you don't want your VMs to take up all your RAM, in fact I'd save half your RAM (up to 4GB) for the host, given you're running software on the host and want it to be responsive.

Note too that VMs have inherent inefficiencies not just because their RAM is totally separate they don't share any cache or buffers, but they are running a whole separate OS under a number of layers of abstraction.  So you can always get better efficiency if you decide to run something on the host rather than in a VM - though if your purpose for using VMs is to use other operating systems this won't be possible.

  Is there a way to ensure that the UI remains responsive when my system is thrashing?

When the amount of RAM you have is a problem, anything you can do is only a hack - the real solution is to buy more RAM (although in your case as I mentioned you may be able to just allocate less to the VMs).

Your question is put in simple terms - you want the UI to be able to continue to operate smoothly even if IO is congested.  However, it's complicated to answer.  Your system will already be doing this to the best of its ability: operations that don't require disk access won't be being delayed.  If your "UI is stuttering" it's because the particular process responsible for that UI needs disk access.  In a low memory situation and where the disk is thrashing, even something which will normally be trivial - such as reading some config from your home directory to find out what your display preferences are - can be slow due to depletion of disk cache.

  I could imagine something like a "nice" for memory (so that I could nice Chrome and my VM)

There isn't really a "nice for memory".  Memory access is so fast that you can usually practically ignore it.  When you have thrashing, it's not memory, it's disk, that's the problem.  There is an "ionice" because of this.  Though that's probably not what I'd recommend for your issue.

Another rough equivalent of "nice for memory" is swap - you can't control how swappy each process is individually but the system does a pretty good job of working out which processes you are actively using and therefore are a higher priority to be kept in RAM.

But as I said and as is a golden rule, if you're running out of RAM, then buying more RAM is the solution with the least headaches and drawbacks.


use the "software & updates" gui panel. In the "ubuntu software" tab, check everything except "source code". in the "updates" tab, check "important security updates" and "recommended updates". Close the panel, saving changes. Then retry apt-get and it works.


what is needed to run and install software-center?

To show the dependencies of the Ubuntu Software Center (software-center) open the terminal and type:

apt-cache showpkg software-center

To show the dependencies of Lubuntu Software Center (lubuntu-software-center):

apt-cache showpkg lubuntu-software-center


How can I turn off/set nodmraid for installation?

Immediately after initialisation of the Ubuntu installer, two small signs will appear on the bottom of the screen. At this moment you have to press the ESC button and then extra options will appear such as change the language (F2) or change installation properties (F6). That's it.


How to configure apache and iptables to allow incoming connections ubuntu server?

Try

iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT


Not able to plot band structure in p4vasp

In Ubuntu 14.04 the missing file libgnome.so is provided by either      libgnomeui-0 or libgnomeui-0-dbg. To install libgnomeui-0 (GNOME user interface library - runtime files) open the terminal and type:

sudo apt-get install libgnomeui-0


Why do I get a "the location is not a folder" error when trying to open files using Dash or Synapse?

sudo apt-get remove exo-utils

this is from xfce. You might need to remove thunar as well.
Fixed it for me anyway.


How not to enable bluetooth with hw-wireless switch?

To add a soft-block you would use the syntax:

sudo rfkill block bluetooth

To unblock:

sudo rfkill unblock bluetooth

Possibly, if the softblock isnt remembered after a reboot I think you can run this without sudo on Natty

rfkill block bluetooth

If the above works for you, you can add this as part of your start-up applications.


Extending root partition into allocated space

From the comments, including those of @MichaelBay and @user68186, and myself...
Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or loose data.
Keep these things in mind:

always start the entire procedure with issuing a swapoff on any mounted swap partitions, and end the entire procedure with issuing a swapon on that same swap partition

a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor

a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor

if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)

you begin any move/resize by right-clicking on the partition in the lower part of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window

Do the following...
Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.

boot the a Ubuntu Live DVD/USB
start gparted
move sda7 all the way to the left
resize the right side of sda7 all the way to the right
if it looks good, click on the "Apply" icon
when complete, quit gparted
reboot


It is possible for someone to reprogram a user's fingerprints provided they have already been authenticated as that user. However, the developers of the program do not consider this an issue under their current security model.

You can see this forum post for an explanation of their choice:

http://home.ullrich-online.cc/fingerprint/Forum/topic.php?TopicId=324#1063


How to stop running uTorrent in Ubuntu18.04.1?


How do I control output video file size with kdenlive?

well if you never specify anything it never alters anything. This applies to any video editing software.
Wrong approach to making a video editing project start to finish :

go to "file" -> "new project" specifing color, resolution and so on...
we can stop here step one was already wrong (IMO)....

Correct approach (IMO) :

(record the source material in the format you want, codec can be anything .mkv, .flv, .mp4 (preferably not .avi))
Open the editing software and close the "new project" window that opens, if any.
drag and drop video file in the editing app's project's "media library" section (not the timeline).
then drag and drop video from the media file project library to the timeline. (the timeline de-facto inherit's that file's properties and won't be altered by further file drops to it even if the format is different, the first drop defines the project).
edit
on render don't add any resolution options, simply choose container (again .mkv and .flv is fine but prefer .mp4), encoding (here the choice is simple : hardware or software h264 but feel free to choose another encoding if you really want to.), the quality level and the filename).

(if you don't have a recording of your desired resolution to start with you can grab a sample off of youtube with a youtube downloader website and use that as a "timeline initilizer", once the timeline is set to that resolution and you've added one of your own files, you can remove it from the timeline).
this works for me in Kdenlive, Davinci Resolve and Premiere (on windows)
in editing I find the K.I.S.S. principles make you win out in time and results. And this approach is really as simple as it gets.
It's also fine to scale down, ...say you have some 2K/4K footage to mix with 1080p, then just add the 1080 bit to the timeline first (even if you're going to edit it last).
From there on the whole project is 1080p, then when you drag your 2k/4k footage to the timeline you'll find it overflows outside of the zone, you'll have to scale (and maybe crop) it and then the rest of the steps remain the same, at render you won't have to specify a resolution and the file you'll get will be a 1080p.
(also always select a small bit to render and render that first to test it before wasting several hours of rendering the whole project for something that isn't outputting the resolution/quality/sound/ect.. you want)
as for if you need to go through the hassle of rendering just for a small fade to black I think the answer is yes, until youtube finishes their new beta online editor and adds this sort of functionality. at that point you can offload menial render tasks to youtube.


Problem with Google Chrome dock icon on 16.04

Shortly after my whole unity crashed, meaning that I only saw my wallpaper at all times. What solved this for me was the top answer here: Unity doesn't load, no Launcher, no Dash appears


You may want to use curl, wget or someting similar.

Here are some similar questions:

Getting files, all at once, from a web page using curl

How to download all files (but no HTML) from a website using wget

How do I use wget to download all links from my site and save to a text file?

So yo could do like this:

curl --recursive --level 2 http://123.4.5.6/3/4

or using short arguments

curl -r -l 2 http://123.4.5.6/3/4

Actually this doesn't make a click, but it does make a request and get its answer. The -r argument means it will recursively request all links and the links found in the answers of this links and so on. The -l argument specifies the recursion maximum depth level. So change the number 2 according to your needs.

Yo can check the man page to get more info, just type man curl in your terminal. Jump to the recursion info typing /Recursive Retrieval Options.


Cannot open virtual machine after upgrading to 16.10

This is what worked for me.  Running ...

virsh edit your-virtual-machine-name

which will ask what editor to use, and then show the generated XML for your virtual machine.  This section ...

<os>
  <type arch='x86_64' machine='pc-i440fx-vivid'>hvm</type>
  <bootmenu enable='no'/>
</os>

can be changed to this ...

<os>
  <type arch='x86_64' machine='ubuntu'>hvm</type>
  <bootmenu enable='no'/>
</os>

based on looking at the machine help ...

$ kvm-spice -machine help
Supported machines are:
ubuntu               Ubuntu 16.10 PC (i440FX + PIIX, 1996) (alias of pc-i440fx-yakkety)
pc-i440fx-yakkety    Ubuntu 16.10 PC (i440FX + PIIX, 1996) (default)
pc-i440fx-xenial     Ubuntu 16.04 PC (i440FX + PIIX, 1996)
pc-i440fx-wily       Ubuntu 15.04 PC (i440FX + PIIX, 1996)
pc-i440fx-trusty     Ubuntu 14.04 PC (i440FX + PIIX, 1996)
.
.
.

It looks like pc-i440fx-vivid is either no longer supported or was left out (possibly because it has reached end-of-life).


Unable to launch xdiagnose through GUI in normal way

This is easy and functional, found it for me! :)

Replace the command application in your launcher
(/usr/share/applications/yourapplication.desktop)
with the follow:

 Exec=sh -c "pkexec command && true"

Example, this found it me:

In the terminal command put:

 sudo vim /usr/share/applications/xdiagnose.desktop

And edit the application.desktop that wish run as root

[Desktop Entry]
Name=xdiagnose
GenericName=Diagnose Graphics Issues
Comment=X.org Diagnostic and Repair Utility
Exec=sh -c "pkexec xdiagnose && true"
Icon=/usr/share/xdiagnose/icons/microscope.svg
Terminal=false
Type=Application
Categories=System;Settings;
X-Ubuntu-Gettext-Domain=xdiagnose

Hugs!


I'm connected to wifi but cannot access the internet except thru VPN (14.04)

Lux,

I almost hate to answer because I'm not sure that I have the solution. I did a little research and found something interesting here:

https://superuser.com/questions/713977/how-to-prevent-firefox-from-connecting-to-the-internet-through-vpn

What the above answer suggests is making sure that you haven't, or an application hasn't, created static routes that might be forcing your machine to go through the vpn for connectivity.

To check, go to your network connections (I'm guessing you're using IPv4), select the IPv4, find where you can add/edit static routes. If there are any (you might want to be cautious here and jot down the information, in case you need to put it back in) remove them.

After that, I would clear the cache an history on the browser, reboot, and try again.


Unable to access Windows files running Ubuntu from a USB drive

Since you only want to read files from it, did you try following the instructions in the error message, and mounting with the read-only option ro?

mount -t ntfs-3g /dev/sda1 /media/disk -o force,ro


How to decode the hash password in /etc/shadow

In short - you can't!

/etc/shadow stores a hashed version of the password. This is, for all intents and purposes, impossible to recover because hashing is a one way operation.

This stops malicious people being able to read the passwords of users on the system.


It depends. If you have a water cooling setup such low temperatures are possible if you´re air cooling than your telemetric data is definitely incorrect. The best thing is to check your BIOS data: if it´s displaying +/- 10 °C you can go on. The measured temperature also depends on your sensor location. A thermometer inside the CPU can measure 60 °C while at the same time a thermometer at a different spot inside the CPU could only measure 30 °C.
For an AMD fx-4150 a temperature of 70 °C is definitely fine and for a short period of time it also can handle up to 95 °C but try to avoid very hight temperatures. Last but not least I highly recommend you to set up some kind of 'automatic emergency kill switch' inside your BIOS making it that if your CPU temperature reaches hight levels the BIOS automatically lowers the CPU frequency.


Epson V33 Perfection not working with 14.04

Install the common driver packages from main Ubuntu repository:

sudo apt-get --reinstall install sane xsane xsane-common sane-utils libsane libsane-common libsane-dbg libsane-dev libsane-extras libsane-extras-common libsane-extras-dbg libsane-extras-dev

Then open the application simple-scan and use the scanner with it.


Can't launch System Settings on Ubuntu GNOME 15.10

Hello I had the same issue these days and I could solve it like this:

TL;DR

sudo apt-get install cheese-common

Explanation

The cause to this is because gnome-control-center depends on cheese, I guess on the users module, so that you can set up your profile picture to an image you take with your camera.
I resolved it by following the dependencies needed, first tried:

sudo apt-get install libcheese-gtk25

Which is mentioned in the error message you post (and the one I got too).
Then it pointed out:

libcheese-gtk25 : Depende: libcheese8 (>= 3.18.0) pero no va a instalarse
               Depende: cheese-common (= 3.18.1-2ubuntu1~wily1) pero 3.16.1-1ubuntu2 va a ser instalado

And finally I tried with cheese-common, which solved the problem

Hope it helps.

Greetings.


KVM: High host CPU load after upgrading VM to windows 10 1803

Found someone with the same issue and a possible fix for it here:
https://forum.proxmox.com/threads/high-cpu-load-for-windows-10-guests-when-idle.44531/

Tested changing my own config, and setting hpet to yes in the vm xml fixed it for me.

  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='yes'/>
    <timer name='hypervclock' present='yes'/>
  </clock>

hpet part is important.


How to use MASM for assembly language on Ubuntu?

You can try using DOSBox with this guide. These instructions will run in all versions of Ubuntu.

Download the all files in the masm folder from here.
Install dosbox with the following command:

sudo apt install dosbox

Usage

Write an masm program (e.g. myProgram) in any text editor and save it.
Mount the location where the downloaded folder is available (e.g. ~/Downloads). To mount, launch dosbox and run this command in dosbox:

mount c: ~/Downloads/masm

Change the current working directory to c.

c:

Assemble the code.

masm myProgram;

Link the file.

link myProgram;

Run the executable.

debug myProgram.exe

Type -g and press Enter.
Once the output is displayed, enter q to quit.


Ubuntu Server 18.04 Temporary failure in name resolution

In ubuntu server 18-04, with xorg lightdm lightdm-gtk-greeter and xfce4 GUI installed, when booting into the system, the only way I figured out to get the wired network going is this:

    sudo dhclient -v -4

works great, however, this has to be done manually after every boot and after every network disconnect/reconnect, so it works but it is a manual solution, not the permanent solution;

to get the wireless network going automatically, simply:

    sudo apt-get install nm-tray network-manager

you probably have to reboot; then you will be able to use the wireless network icon that appears in the notification area in your control panel (make sure the notification area is added to the panel) to select a wireless network; after that, it will reconnect automatically;

however, to get the wired network to reconnect automatically,
I tried installing avahi-daemon and avahi-autoipd but apparently, it is not helping; even tried:

    sudo systemctl start NetworkManager
    sudo systemctl enable NetworkManager

basically, if you install a distro such as Xubuntu desktop, the proper tool(s)/daemon/config is installed and the network is detected automatically when it is plugged in without any user configuration;
would be nice to know which tool/daemon/config/setting does that.


Please sir suggest me partition size of 1 tb HDD. Eg how much efi swap area home directory etc

Partition Size for 1 TB

500MB - EFI
200GB - /
780GB - /home
16GB - SWAP (keep double the memory of RAM for SWAP)

for '/' and '/home' size can be varied based on requirement.


Changing permissions of these system files is generally not recommended.
It'll adversely affect system functionality and other applications as well.

You can add your user to the group which owns the files/folder

sudo usermod -a -G group username


Manually installed go, auto-update in conflict

remove package:

sudo apt-get remove golang-go

remove deps:

sudo apt-get remove --auto-remove golang-go

remove data and config:

sudo apt-get purge golang-go

then follow the install instructions at golang.org


Ubuntu 18.04-19.04 HDMI screen not detected

I have the same problem, I updated the Kernel to 5.3.11 and my problem with the HDMI was solved.

But I still cannot find a solution for the driver of the intel graphic card 8a52. The pc details still show: llvmpipe (LLVM 8.0, 256 bits)


How are you running gparted? You can run it by opening a terminal and typing

sudo gparted

this will run it as root/superuser without having to set a root password.


How to get out of a Netplan rabbit hole?

The replacement yaml has an error, the search: key takes a list rather than a single value, e.g.:

search: [mylan.local]

If you fix this, the netplan generation should succeed.

As for whether to edit the cloud config file vs the netplan yaml file, I have opened https://bugs.launchpad.net/cloud-init/+bug/1869967 to discuss this.  The intent is that a user never has to rerun cloud-init on a server install, and the config files under /etc/netplan should be treated as the authoritative location to edit.


Windows is not installing in ntfs partition of ubuntu

First, please understand that both the GUID Partition Table (GPT) and the Master Boot Record (MBR) are partition table formats. As such, they apply to the entire disk, not to individual partitions. That is, you can't have one partition in GPT form and another in MBR form. (A partial exception is if you use a hybrid MBR, but those are ugly and dangerous hacks that should be avoided except in certain limited situations, mostly involving Macs that dual boot with older versions of Windows.)

Second, the error message you received indicates that the Windows installation medium was booted in BIOS/CSM/legacy mode; when booted in this way, Windows insists on installing to an MBR disk, rather than to the GPT disk your computer has. The way the message is written makes it sound as if the partition table is the problem, but that's not really the case here -- it's the boot mode of the installation medium that's the problem. Your partition table makes it look as if Ubuntu is probably installed in EFI/UEFI mode. The key point here is that you should not mix boot modes -- if Ubuntu is installed in EFI mode, you should also install Windows in EFI mode. Although it's possible to back up and re-install Ubuntu in BIOS mode (on an MBR disk), or to convert your existing Ubuntu installation to BIOS mode (and to convert the disk from GPT to MBR), that's the hard way to resolve the problem.

The easy way to resolve the problem is to get the Windows installer to boot in EFI mode. There are several ways this may be done; however, no one method is guaranteed to work, because there are several possible reasons it's booting in BIOS mode now:

Disable the Compatibility Support Module (CSM) in your firmware. Unfortunately, a lot of Web sites suggest enabling the CSM as a routine part of Ubuntu installation, but that's bad advice, as described on this page of mine. If you disable the CSM on your computer, the Windows installation medium may start booting in EFI mode, and the installation should proceed normally.
Re-write the Windows boot medium. Depending on the Windows version, how you obtained the boot image, and how you prepared the boot medium (if the boot image didn't come as a physical medium), you may need to re-write the boot medium. Some tools omit or damage the EFI boot loader when preparing boot media, and some images (especially pirated images or very old versions of Windows) may lack the EFI boot loader entirely. My CSM page covers tools to write images, but from a Linux perspective; some details differ for creating Windows boot media. You might want to ask on a Windows forum if you need more help.
Use the computer's built-in boot manager to select the correct boot option. In some cases, the built-in boot manager may show two options to boot from an external medium, with one option including the string "UEFI" and the other lacking that string. Be sure to select the option that includes the "UEFI" string.

Note that Windows added EFI support with Windows 7; earlier versions lack EFI support and can only be installed in BIOS mode. (There are exceptions for exotic platforms.) Thus, if you're trying to set up a dual-boot with, say, Windows XP, you should ignore most of the preceding and convert to a BIOS-mode installation.

Finally, be aware that when you install Windows on an EFI-based computer, Windows will set its own boot loader as the default, and you will then be unable to boot to Ubuntu. There are several ways around this problem, such as:

You can use the computer's built-in boot manager in perpetuity -- the same one you use to tell the computer to boot to an external medium. It should present options for both Ubuntu and Windows. On many computers, though, accessing this boot manager is inconvenient, and on some there are bugs or design flaws that make this approach unworkable.
In Windows, download the EasyUEFI tool and use it to adjust the boot order; move the ubuntu entry to the top of the boot list. When you reboot, Ubuntu will boot. You'll then need to run sudo update-grub to make GRUB detect Windows. On subsequent boots, you should see both Windows and Ubuntu in the GRUB menu.
In Windows, open an Administrator Command Prompt window and type bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi. This does something similar to what EasyUEFI does, but without involving third-party software.
Install my rEFInd boot manager. You can do this in Windows (which is a bit tedious); or download the USB flash drive or CD-R version, use it to boot to Ubuntu, and install the Debian package or PPA. rEFInd will take over as the primary boot program and give you the option to boot either Windows or Ubuntu.
Run Boot Repair from an Ubuntu emergency disk. This tool will completely re-install GRUB and make it the default boot manager. This approach is overkill and, in rare situations, can make matters worse; but a lot of people are familiar with Boot Repair and so can help if you do run into problems with it.

There are quite a few variants on these options, as well as other more exotic possibilities, such as using any of half a dozen or so other boot loaders for Linux, as described on this page of mine. Using EasyUEFI is probably the easiest solution to the problem, followed by using bcdedit or installing rEFInd.

Note also that some computers have buggy or quirky EFIs that require extra steps to get them working. IMHO, if the computer is new enough, it's best to return it to the store for a refund rather than accept such a defective product, but few people do so.


Can't ssh remotely, but can locally, after installing desktop on remote server

You need to port forward your Local Lan Host IP.

Just open your modem's (or router's) interface through your browser using Default Gateway IP.

Look for "Port Forward" in the menu and enter that page. Look for a field labeled like "Local Lan Host Ip". Enter your Local Server's IP.
The default port for SSH client connections is 22. Enter 22 in all input fields labeled as something like "WAN Start Port" and "LAN Host Start Port".

You are done.


sun-java6-plugin installed but does not work in Maverick 10.10

As explained here, this is due to a change in the Java-Oracle licensing policy.

The procedure explained here should help you to install the correct java plugin.
As soon as you will have installed the official jre from Oracle, you could do :

ln -s /path/to/the/official/jre/lib/your_arch/libnpjp2.so ~/.mozilla/plugins/

to activate the plugin.

If you have Google Chrome (or if you want to make the plugin available for all users), try something like this :

ln -s /path/to/the/official/jre/lib/your_arch/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so


It looks like your Ubuntu boot loader (GRUB 2) is not properly registered with the firmware. You should be able to fix it as follows:

Boot the installer in "try before installing" mode.
Open a Terminal window.
Type sudo apt-get install efibootmgr to install the efibootmgr tool.
Type sudo efibootmgr -o 0003,2001,0000,2002,2003. This adds your Ubuntu entry (0003) to the start of the boot order, as shown in lines 589-599 of your Boot Repair output.
Reboot.

That should fix the problem. Unfortunately, there are some badly broken EFIs that tend to forget their boot orders or ignore anything but Windows boot entries. If you've got such a computer, your best bet is to return it to the store for a refund and get a new computer that's not broken. If that's not possible, Boot Repair has an option on its Advanced menu to back up and rename boot files that might work, but it's an ugly hack of a workaround that might not last all that long, since Windows might easily undo it.


Sharing internet from USB-Modem to an external router via ethernet cable

It's failing to connect because when you use Ubuntu's sharing mode, it doesn't set up a DHCP server.

You need to manually assign an IP address to the device connected to the Ubuntu system.


After downloading the .iso file, what do I do?

Welcome to Ask Ubuntu!

It's very simple actually, just follow this guide here. That'll tell you how to burn it to a disk.

As for creating a LiveUSB look here

Because of the fact the you are installing Ubuntu on a Win8 computer, there are a few things you have to do before the install because of some of the new Win8 features like EUFI and SecureBoot. Read this Installing Ubuntu Alongside a Pre-Installed Windows with UEFI question for some help on that.

Best of Luck!


Does `BorderlessMaximizedWindows=false` still work with Kubuntu 13.10?

The ability to show borders on maximized windows was removed from kwin in KDE 4.11.  You can find more information about this decision in bug 299245.  Basically, the implementation was a hack that caused multiple bugs, and the developer said that the proper place for this feature was in the decoration rather than in kwin.

So, this feature was added to the oxygen window decoration.  Unfortunately, this change has not made it into a stable KDE release yet.  Once released, the option will be available by going to System Settings->Workspace Appearance.  Then, if you're using the oxygen decoration, you'll be able to click on the 'Configure Decoration' button, go to the 'Fine Tuning' tab, and check 'Display window borders for maximized windows'.


can't navigate to /home/username/Downloads

You, or somebody, has deleted the Downloads directory. What you see in the GUI is a shortcut. That the shortcut's target is no longer existing doesn't make the shortcut disappear.

All you need to do is create that directory again:

mkdir Downloads


How to set up passwordless SSH access for root user

Part 1 : SSH key without a password

To set up a passwordless SSH connection for the root user you need to have root access on the server. Easiest method is to temporarily allow root to log in over ssh via password. One way or another you need root access on the server to do this. If you do not have root access on the server, contact the server administrator for help.

On the client (where you ssh FROM)

First make a ssh key with no password. I highly suggest you give it a name rather then using the default

ssh-keygen -f foo

The -f option specifies a file name, foo is an example, use whatever name you wish.

When you are prompted for a password, just hit the enter key and you will generate a key with no password.

Next you need to transfer the key to the server. Easiest method is to use ssh-copy-id . To do this you must temporarily allow root to ssh into the server.

On the server (where you ssh TO)

edit /etc/ssh/sshd_config

sudo nano /etc/ssh/sshd_config

Make sure you allow root to log in with the following syntax

PasswordAuthentication yes
PermitRootLogin yes

Restart the server

sudo service ssh restart

Set a root password, use a strong one

sudo passwd

On the client :

From the client, Transfer the key to the server

ssh-copy-id -i ~/.ssh/foo root@server

change "foo" the the name of your key and enter your server root password when asked.

Test the key

ssh -i ~/.ssh/foo root@server

Assuming it works, unset a root password and disable password login.

On the server :

sudo passwd -l root

Edit /etc/ssh/sshd_config

sudo nano `/etc/ssh/sshd_config`

Change the following :

PasswordAuthentication no
PermitRootLogin without-password

Restart the server

sudo service ssh restart

On the client (Test):

You should now be able to ssh in with your key without a password and you should not be able to ssh in as any user without a key.

ssh -i ~/.ssh/foo root@server

Part 2 : Running commands via sudo without entering a password

You configure sudo to allow you to run commands without a password.

This is answered here in two places:

How do I run specific sudo commands without a password?
How to run sudo command with no password?

Of the two, I suggest allowing as few commands as possible (first answer) rather then all commands (second answer).


dovecot can't compact mail folder /var/mail/username

I went into /etc/dovecot/conf.d/10-mail.conf, added the group mail to the line "mail_privileged_group = ", stop dovecot, and then start dovecot. It works now.

As pointed out by Celada, it is documented here.


PDF-Shuffler | Cannot save a changed PDF-file

I found the answer to my previos question. The problem was, that my pdf-file (a book) couldn't be changed due to some security options (password).

I've just tried to print the pdf into the file. Then, I saw, that the document became changable. So, now I can rotate or move several pages inside the document and save it again.

Solved!!! ;)


The problem was with my router/modem. I changed the address pool back to default ( from .2 to .254 ) , I deleted the static ip for my server ( that I had set up in my router/modem settings ) , connected to my server and set a static ip. Now everything runs smoothly.


Unable to download driver for RTL8125 2.5GbE 20.04 LTS

If you are struggling to get an internet connection, maybe an easier way would be to install a mainline 5.9+ kernel from
Ubuntu kernel PPA
It doesn't require build-essential or other drivers for your device.
Then you can install build-essential and revert to an Ubuntu kernel if you like.


When I try to install Pycharm or Atom through Ubuntu software centre, I get the error: snapd returned status code 400: Bad Request

If you are trying to install via software center, you will get error. I too had the same problem. Because they are snaps. You can install snaps as in the below article.

How to install Snap packages on Ubuntu 16.04 | TechRepublic


How to do I connect a VMWare guest to the internet?

The most common solution is to use two network interfaces on your guest OS.  One bridged and the other host only.  This way you get bi-directional host-guest connections whether or not you have an external network connection.

It's detailed on the VMWare help page here.

If VMWare doesn't support bridged to Atheros wireless, I know that Virtualbox does.

Solution from link above ("Removing a Host Virtual Adapter on a Linux Host") and common wizard to configure VMware virtual network:

1

Become root and run the VMware Workstation configuration script.

su
vmware-config.pl

2

Watch for the following question

Do you want networking for your Virtual Machines? (yes/no/help) [yes]

Answer Yes if you still want to use any networking in your virtual machines, then continue to the next question.

Otherwise, answer No to remove all networking.

3

If you answer Yes, the script prompts you to select the wizard or editor to edit your network configuration. Select editor. This is the only way to delete virtual network adapters without removing all of them.

Would you prefer to modify your existing networking configuration using the wizard
or the editor? (wizard/editor/help) [wizard] editor

4

You see a list of virtual networks that have been configured. Select the network corresponding to the adapter you wish to disable.

The following virtual networks have been defined:

. vmnet0 is bridged to eth0
. vmnet1 is a host-only network on subnet 172.16.155.0.
. vmnet8 is NAT network on a private subnet 172.16.107.0.

Which virtual network do you wish to configure? (0-99) 1

5

You may be prompted to keep this virtual network. If you are sure you want to remove it, answer Yes to the question.

The network vmnet1 has been reserved for a host-only network. You may change it,
but it is highly recommended that you use it as a host-only network.
Are you sure you want to modify it? (yes/no) [no] yes

6

When prompted about the type of virtual network, select None and the virtual network will be removed.

What type of virtual network do you wish
to set vmnet1? (bridged,hostonly,nat,none) [hostonly] none


What is the active MAC Address of my computer?

Use ip instead of the outdated ifconfig. Example:

ip addr show

...
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 04:7d:4b:28:51:33 brd ff:ff:ff:ff:ff:ff
...

FINDING: The MAC address of network interface/adapter eth0 is 04:7d:4b:28:51:33.


How to change font style of file names in file manager?

Did you have try using gnome-tweak-tool Just run it with Alt+F2 then type gnome-tweak-tool.

if gnome-tweak-tool is not available in your platform you can type sudo apt-get install gnome-tweak-tool in your terminal. Then you're all set


How to delete duplicate bootloader from dual-boot setup?

I am reproducing Part-IV of my answer from the post Dual Boot Windows 10 and Linux Ubuntu on Separate SSD in order to answer this current post. For screenshots, please refer above post (Part-IV).

The answer is split into two sections such as Section-1 (The action at Windows-10) and Section-2 (The action at Ubuntu side).

Section-1

  Now, the action begins from Windows-10.

Step-1.1:

Press  Windows + X and select Command Prompt (Admin) and run diskpart command.

diskpart

Step-1.2:

Issue the following commands to list available disks:

DISKPART>list disk

Now select the target disk which contains Windows installation.

DISKPART>sel disk 0

Step-1.3:

Now list the partitions in the disk, so that the partition (volume) that corresponds to the Boot EFI folder can be identified.

DISKPART>list vol

Now find out partition (volume) with label EFI and System in the info column.

Warning: Please select correct volume based on the above input. If you make a mistake, you may harm the selected partition (volume).

DISKPART>sel vol 3

Now Volume 3 is the selected volume.

After it has been identified and selected, you assign it an unused drive letter to make it easier to work with. Here drive letter 'G' was assigned.

DISKPART>assign letter=G:

Step-1.4:

Now issue cd to 'g' drive, by this command

DISKPART>cd /d g:

Now list the contents by dir command

DISKPART>dir /B

You will obeserve a folder EFI in the list, issue the command to cd to EFI:

DISKPART>cd /d efi

Now, list the contents of directory efi and you will see a folder in the name something like ubuntu. To remove it issue the following command:

DISKPART>rmdir /S ubuntu

To make sure that ubuntu has been removed, issue dir command again:

DISKPART>dir /B

The output will show only two entries.

Exit from diskpart command.

DISKPART>exit

Section-2

  Now, the action shifts to Ubuntu side.

Step-2.1:

Now restart computer and login into Ubuntu system.

Open up terminal by hitting Ctrl+Alt+T and run following command to show boot entries:

$ sudo efibootmgr

You will see the following similar output:

BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0000,0002
Boot0000* Windows Boot Manager
Boot0001* ubuntu
Boot0002* Ubuntu

Boot entry 2 should be removed. How to confirm this?

Step-2.2:

Issue the following verbose command :

$ sudo efibootmgr -v                    # issue this verbose command

Whose output is as follows:

BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0000,0002
Boot0000* Windows Boot Manager  HD(1,GPT,74ab4c2d-3660-4780-a9a1-f3cad2a533c0,0x800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...M................
Boot0001* ubuntu    HD(1,GPT,55a574ce-441a-4032-b8ea-5009b5bc4222,0x800,0xf3800)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0002* ubntu     HD(1,GPT,74ab4c2d-3660-4780-a9a1-f3cad2a533c0,0x800,0x32000/File(\EFI\UBUNTU\SHIM.EFI)..BO

Boot entry 2 has the same UID for SSD disk as boot entry 0 which is windows loader.

For example, 74ab4c2d-3660-4780-a9a1-f3cad2a533c0 matches entry 0 as well as entry 2.

Step-2.3:

Issue the following command to remove entry 2:

$ sudo efibootmgr -b 2 -B               # where 2 is the boot entry Boot0002.

Now the entry 2 has been removed.

Warning: Please select correct extraneous boot entry for removal. If you make a mistake, you may harm a needed bootloader.

Step-2.4:

To confirm the removal, just issue the following command:

$ sudo efibootmgr                   # issue this command to display boot entries

Whose output is as follows:

BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0000
Boot0000* Windows Boot Manager
Boot0001* ubuntu

You can observe that only two entries are present rather than three.

Just see the entries marked with *.

Step-2.5:

Reboot the system and press del key and enter into BIOS setup screen.

  Now you will find only two bootloaders viz., Windows boot loader and Ubuntu boot loader.


Unable to Access ubuntu 20.04 server Remotely using RDP

I encounter the exact same error messages when I try to enable Screen Sharing on a remote host running Ubuntu Desktop 20.04 after I log in to that remote host using ssh -X. This is a different situation from yours, but it could be related.

I have reported the issue to upstream gnome-control-center and you may want to follow it.

PS: Screen Sharing in Ubuntu is through VNC, not RDP.


Look at apt-cache show libnspr4:

  Maintainer: Ubuntu Mozilla Team
  Original-Maintainer: Maintainers of Mozilla-related packages

and

  Description-en: NetScape Portable Runtime Library
   This library provides platform independent non-GUI operating system
  facilities including:
   * threads,
   * thread synchronisation,
   * normal file I/O and network I/O,
   * interval timing and calendar time,
   * basic memory management (malloc and free),
   * shared library linking.

As you can see it has its purpose and is being maintained.


mv: cannot stat 'pencil.desktop': No such file or directory

rm: cannot remove /usr/share/applications/pencil.desktop: No such file .. rm: cannot remove
  /usr/share/applications/pencil.png: No such file

Pencil errors : The packages are packed "as wrong as possible" with scripts {postinst, postrm} containing install / remove text from the RPM package. But the text doesn't match the installed files ! Attempts to remove non installed files.

I installed the package 'pencil_3.1.0.ga' with gdebi to get the dependencies installed too. But /opt/pencil-3.1.0.ga/ was empty. Removing was done with sudo apt remove pencil and  succeeded.

Install solution https://pencil.evolus.vn/dl/development/pencil_3.1.0.20200319003004_amd64.deb

$ sudo dpkg -i pencil_3.1.0.20200319003004_amd64.deb

$ /opt/pencil-3.1.0.20200319003004/pencil
        ## the pencil GUI opens

... The launcher 'pencil.desktop' is in /opt/pencil-3.1.0.20200319003004/, and can be copied to /usr/share/applications/


How to bind neo4j to IP address not with localhost

If you want to bind the different IP address. You just go to the conf/neo4j.conf and change the localhost:7474 to your specific IP:7474

I'm using the neo4j 3.04 + Java 1.8.


How to turn a local network of Ubuntu computers into effectively one computer controlled by a single 'master´ computer on the same network?

Looks like what you want to do is taking advantage of the processing power of multi computer (with 2 or more available machines running within the same local network) and that way increasing performance, if so, you might want to cluster them.
A very good answer was provided here with a few tool options that are available: How can I cluster two machines to double the processing power?


Remote Desktop - Windows to Ubuntu 16.04 LTS

Apparently, the OP's install didn't have all the repos enabled.

In order to enable them and install xrdp, you need to open a terminal (CTRL+ALT+T) and run these commands:

sudo add-apt-repository main
sudo add-apt-repository universe
sudo add-apt-repository restricted
sudo add-apt-repository multiverse

sudo apt-get update

sudo apt-get install xrdp


How is installing from a repository different from installing via downloading a .deb file?

All the other answers are correct, you get:

Auto Updates
Dependencies

But most importantly, you get reliability. Repositories systems in place to make sure that the software you download will work on your computer. In windows when you want to install an application to fix a problem, you have to trust not only the website that's hosting it, but all the computers in between.

With key signing, you can be sure that you are installing software that the developers intended for you to install.

That just leaves the issues to you, to make sure that you chose good developers.


How to extract/install android-ndk-r10c-linux-x86_64.bin

Use 7z x *bin as workaround as all r10c packages are 7z archive.
To install 7z, do sudo apt-get install p7zip-full.

Found that from here: https://code.google.com/p/android/issues/detail?id=78148


You might check in your BIOS to see if you have a hyperthreading option and if so if it is enabled.  Hyperthreading can give a performance boost, and I believe some of the P4's had hyper-threading technologies.

Even at that, with only 1GB of Ram, it's doable, but you would be better with a lighter desktop environment.  You could try looking up xfce, kde, or even lxde if you need something quite light.  In my opinion with lxde and even a single thread p4 with 1gb of ram it should be usable, depending, of course, what you're using it for.

Ubuntu 16.04 should be out soon, so another thing you could try would be doing a fresh install of server 16.04 minimally when it comes out and installing lxde on top of that.  You should have a fairly stable, quite light installation which can run the most modern programs in the new software center.

Another side note: I would not recommend reinstalling XP even if you can get your hands on an old installation : it's support is expired and security is a major risk unless you use it strictly offline.


how to remote desktop into server gui without logging into the console beforehand

You should take  a look on the X11RDP.

It's really a great update of the Xrdp in addition you can customize the behavior as u need. The guy there "Kevin Cave" is genius and now he make some update so you can install x11rdp as Debian packages.

Also you can use the regular xrdp with specifying ubuntu-2d as default session for xrdp. That should solve your problem with xrdp. To do that:

cd /home/user
echo "gnome-session --session=ubuntu-2d" > .xsession
sudo /etc/init.d/xrdp restart


Ubuntu cannot start after upgrade 12.04 to 12.10

It is always better to make a fresh install for new versions of OSes. I would suggest you take backup of your files, format the disk and do a clean install of 12.10. It takes very less time to do clean install then the time it takes to upgrade from 12.04 to 12.10.


Why won't my dual-boot system start after being shut down for a few days?

All you need to do is follow the documentation here. https://help.ubuntu.com/community/Boot-Repair

Basically there a few methods, but the easiest is just making a CD with the ISO on it listed on the page. https://sourceforge.net/projects/boot-repair-cd/files/

It is a simple process and should get you back up and running.


How to install gitg 0.3.3 on Ubuntu 14.04?

Download the gitg 0.3.3 tar/zip file from gnome

zip file
tar file

And follow these steps:

tar Jxf gitg-0.3.3.tar.xz
cd gitg-0.3.3
./configure
make
sudo make install

Also, make sure you have all the dependencies installed.


I found the answer for the same myself.

Actually Issue was with the packages provided by designate.

After executing the stack.sh I have accessed the screen to see the service status.

So that I can be able to see that there was a error as follows:

ImportError: No module named oslo_service

I have installed the module manually, I can be able to see that It is working fine.

pip install oslo.service

Now I can be able to see that designate is working fine.


How do I identify which log is incorrectly rotated?

I would suggest to turn on verbosity on logrotate. We need more information on which line causing this error.

Edit /etc/cron.daily/logrotate. At the end of the file there is line /usr/sbin/logrotate /etc/logrotate.conf, change this to /usr/sbin/logrotate --verbose /etc/logrotate.conf.

Or else you might run this directly /usr/sbin/logrotate --verbose /etc/logrotate.conf, but of course some logs will be get rotated if the conditions matching the config file rules for rotation.


a minimal Ubuntu 18.04.2 LTS (Bionic Beaver) server requirements

According to the official Ubuntu System Requirements page, for an Ubuntu Server minimal installation the minium hardware requirements are:

300 MHz x86 processor
256 MiB of system memory (RAM)
1.5 GB of disk space
Graphics card and monitor capable of 640x480
CD drive (well, I think you can install via USB instead!)

so you should be good.

As they are official requirements, without any specific kernel mentioned, I think that the default Ubuntu-shipped kernel is good enough.

That said, it's not guaranteed that anything will run smoothly with those specs, just that the system can be installed and run.


To stop charging at 60%, I use

echo 60 | sudo tee /sys/class/power_supply/BAT0/charge_control_end_threshold

Currently my battery is at 63%, so it is not charging (the power led is white). If I run the above command with 70 instead of 60, then it starts charging again (the power led becomes red).

This setting is lost when I reboot the computer. To make it persistent, I have added

@reboot root echo 60 > /sys/class/power_supply/BAT0/charge_control_end_threshold

to my /etc/crontab.

My laptop is an Asus Zenbook running under Ubuntu 20.04 LTS, but maybe this can work for other brands/distributions as well - explore what you have under /sys/class/power_supply/.


Problem installing Ubuntu 14.04 on external hard disk, disk letter changes

Have you tried the "Boot Repair" here. That just might repair the booting problem


Removing dual boot and installing ubuntu 12.04.3

I think the installer continues to copy the files in the background while you fill in the details and choose timezone and such. So lack of visible action may not mean that it isn't happening.

How long do you wait before giving up?


Ubuntu 11.04 mini boots to black screen, alt-f2 restores monitor image.

Alt+F2 changes your session to tty2
See here: http://wiki.debian.org/getty

Perhaps you're on Alt+F7 for some reason.. which is where is typically where your X session is.

Honestly, there is probably little reason to care if it's a cli only box.


How to change CPU fan speed on ThinkPad?

If you want direct control via the ThinkPad driver then the following wiki page is very helpful:

http://www.thinkwiki.org/wiki/How_to_control_fan_speed


Deja Dup Ubutu 16.04 Deja Dup back up fails

I had the same problem on Ubuntu 17.04. After I ran command:

sudo apt-cache policy deja-dup duplicity

I saw in terminal output that duplicity is not installed. So I installed it with apt.

sudo apt-get install duplicity

And error was successfully solved. Hope it helps you too.


You'll need to create a configuration file for udev.

Run gksu gedit /etc/udev/rules.d/hidden-partition.rules, and paste in the following content:

#sould be placed into /etc/udev/rules.d/
ACTION!="add|change", GOTO="hide_partitions_end"
SUBSYSTEM!="block", GOTO="hide_partitions_end"
KERNEL=="loop*|ram*", GOTO="hide_partitions_end"

################################################## ############################

#Hide sda6
KERNEL=="sda6", ENV{UDISKS_PRESENTATION_HIDE}="1"

################################################## ############################

LABEL="hide_partitions_end"

The boot partition should be gone after reboot.

PS: The method has been working well for me for hiding a Windows partition. I've don't have a boot partition to test, but hope it will work as well.


How can I install Kobo Desktop on Ubuntu?

Edit:

It looks like the .deb file has been taken down. I haven't been able to find another copy so far.

Original post:

Overview

The Kobo desktop client is still in development but you can install an older beta version by following the steps outlined in this post.

Please note that this Kobo desktop build is not officially supported and outdated compared to the ones released for Windows and Mac OS X. It worked fine with my Kobo mini but your experience may vary.

Dependencies

Before proceeding to install Kobo desktop you will first have to manually install a number of dependencies:

sudo apt-get install libjpeg62:i386 libpng3:i386 libzip1:i386 libicu44:i386 libzip1:i386

Depending on your Ubuntu version you might find that one or more of these dependencies aren't available in the repositories. In that case you will have to manually grab the packages from launchpad.

On Ubuntu 12.04 LTS for instance I had to download the following packages manually:

libicu44:i386
libzip1:i386

Ater downloading the packages install them either by double-clicking on them (this will launch the Software Center / gdebi) or through the CLI:

cd Downloads
sudo dpkg -i *.deb

Installation

Next, we will download and install kobo-desktop:

wget http://dl.dropbox.com/u/2183775/kobo-desktop.deb
sudo dkpg -i "$HOME/kobo-desktop.deb"

A Kobo Desktop launcher should now appear in the dash. Clicking it will launch the application :

Additional notes

Kobo Desktop is great for setting your eReader up initially and managing your Kobo store purchases. For any advanced eBook management I would advise you to take a look at Calibre, a fantastic open-source eBook library management application that is fully compatible with all current Kobo eReaders.

Sources

mobileread.com thread concerning Kobo desktop for Linux, created and maintained by Kobo developers
the actual post where the Linux build was released
posts concerning dependency issues and resolving them: 1, 2


How to contribute binary .debs for others?

If you are talking about saving specific debs for other machines for offline install use dpkg-repack but if you want an offline repo for your own use there are ways of doing that (though not an area of my expertise) and it takes up maybe a terabyte at most.


This is not the default behavior. Unless you have changed some preferences, nautilus should update the desktop. Maybe nautilus wasn't running, for example it crashed?

Next time the same happens, check whether nautilus is running using pgrep nautilus.

Also, no need to kill it in such a brutal manner, just type nautilus -q.


How do I uninstall Ubuntu 14 and reinstall Windows 8? I only have product key

I you have overwritten your windows, You need to install Windows again on your PC. You can note down the product key and after insert media to install windows. You cant retrive deleted files just by a product key.


Which Java version should I target for 12.04 installations?

The default version in 12.04 is OpenJDK 6 (openjdk-6-jre, aka default-jre) (although OpenJDK 7 is installable). The default in 12.10 is OpenJDK 7.

OpenJDK is an open-source implementation of the Java specification. It is generally fully compatible with the "official" Oracle/Sun Java implementation (but there are a few edge cases where parts of the original JDK were licence encumbered, eg with fonts where the implementations can slightly differ). This question discusses the issue a bit.

Unless there are features in Java 7 you really want to use, I would recommend targeting OpenJDK 6, which should work with the vast majority of Java installations, both on Ubuntu and other platforms.


You can run a software updater from a command line (in the application named terminal, but in GNOME you can run it using a shortcut too, as shown below.).

I will write an example based on your case of the need to reinstall python3 package.

Press: Alt+Ctrl+t

sudo apt-get update
sudo apt-get install python3

If lacking python3 package is your problem, hopefully this will help.  Please let me know if it worked, because there are a couple of ways to try if you're still stuck.


How to switch between Google Chrome beta and stable on Ubuntu?

It was actually simpler than I thought it would be.

Open Synaptic Package Manager
Quick filter: "chrome"
google-chrome-beta: "Mark for removal"
google-chrome-stable: "Mark for installation"
Press "Apply".

If you want to go back to the beta channel, do the reverse in steps 3 and 4.


Ubuntu Server 16.04.3 LTS - issues with update and interfaces

Your /etc/apt/sources.list seems to have been modified, one trivial thing that is missing is the component, it should at least look like this :

Ubuntu Update Rest
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates main

deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-update main

And about your network interface name, eth0 is no more in use, since this name can change from one boot to anoter, see predictable network interface name. But if you really want it to be named eth0, this old behavior can be restored like described here.


Scanmem

scanmem is a simple interactive debugging utility for linux, used to locate the address of a variable in an executing process. This can be used for the analysis or modification of a hostile process on a compromised machine, reverse engineering, or as a "pokefinder" to cheat at video games.

Features

Interactive command mode, with online
help.
Specify target value exactly, or
using abstract "higher" and "lower".
Supports variable width targets.
Set variable to any value.
Modify variables once, or continually
over user specified period.
Detailed information about mappings,
allow users to eliminate regions.

Game Cheater

It is a game cheater for GNU/Linux , use "ptrace" system call. With it, you can search and edit the game process' memory, modify HP, MP, score .


Is there any utility like `Proxifier` for Ubuntu?

According to the description of the homepage of Proxifier, the software Privoxy looks like a good recommendation. Privoxy is a proxy application which filters a lot privacy related things (cookies, webbugs etc.). However the software allows you to configure HTTP, SOCKS and other types of software and is very flexible. I am sure that this is a good replacement.

After reading your comment I can go  a bit more into detail:
The central configuration file is /etc/privoxy/config. The directory /etc/privoxy has some other files, too. The config file is very well documented.

Lets assume you want to send all traffic to example.com though proxy-a and all traffic to askubuntu.com through proxy-b. SSL/TLS traffic (HTTPS) should not use any proxy. So you add the following lines:

forward .example.com proxy-a
forward .askubuntu.com proxy-b
forward :443 .

The keyword forward is followed by a site or a pattern. It can be an IP address, hostname or a regular expression. All traffic which matches will be send to the last entry in the line. This the proxy address. When you use a . (a dot) a the end of a line, it means that the pattern before will not use any proxy. You will find more information at the handbook.


Flash does not work on Firefox in Lubuntu 14.04

the up-to-date adobe flash player needs SSE2 CPU support to work correctly. According to wikipedia you processor does not have.

Source. Getting flashplayer to work on firefox  Athlon XP  lubuntu machine I have this problem. The solution is to get older versions of the libflashplayer.so file. Steps to fix:

make sure flashplugin-installer package is installed.

sudo apt-get install flashplugin-installer

download http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_10.0.45.2.orig.tar.gz
extract libflashplayer.so from this file to home directory.

tar -xvzf adobe-flashplugin_10.0.45.2.orig.tar.gz -C ~/

mv adobe-flashplugin-10.0.45.2.orig/libflashplayer.so ~/

copy downloaded libflashplayer.so in home directory to this folder:

sudo cp libflashplayer.so /usr/lib/adobe-flashplugin/libflashplayer.so

close firefox and reopen, so that new flashplayer will be used. flash should now work (for firefox).

Problems with this is using outdated flashplayer will have security vulnerabilities so only use for sites you can trust. Also running updates on your system will mean having to repeat last copy command.


How can I recover data from /var on a broken system?

If you're on live media, your data and installation should be just fine. You'll need a terminal for this, so open one from the Dash menu, or by pressing the trusty Ctrl+Alt+T shortcut.

Get a spare USB and plug it in. It should mount to /media/ubuntu/<something>. Make note of the mount path.
Type the command blkid and look for something with ext* in the name:
Ex: /dev/sda4: UUID="..." TYPE="ext4" PARTUUID="..."
Make note of the partition ID (/dev/sda4).
Mount the partiton using sudo mount <id> /mnt, replacing <id> with whatever you got in step 3, in my case, /dev/sda4.
Run cd /mnt/var.
Run sudo cp -R www/ <mountpath_from_step_1>.

Finally, use Nautilus or ls to check that all of your files did actually get copied over successfully.

After it's all over and done, unmount both drives with this command:

sudo sync; sudo umount /mnt <mountpath_from_step_1>

Alternatively, you could have done with without live media. On the broken Ubuntu install, you could have gone to TTY4 (Ctrl+Alt+F4), inserted a USB drive, and done this:

Run lsblk and find the USB drive's lettering (ex, /dev/sdb1).
Mount the USB drive to /mnt with the command: sudo mount <step_1> /mnt
Make a folder for your drive (sudo mkdir /mnt/web-backup)
Copy everything over: sudo cp -R /var/www /mnt/web-backup
Use ls to verify: ls /mnt/web-backup.
Unmount your USB using: sudo sync; sudo umount /mnt

You could also do these steps from the Recovery Shell. You can access this by pressing SHIFT while Grub boots, selecting (advanced options), (recovery mode) for the latest kernel, and then going to the root option.

  Note: With either solution, filesystem permissons might have become a bit wonky. You're going to want to sudo chown -R $USER:$USER <path_to_backup> on your new system, so you can actually read the data.


resume paused gnome-shell from virtual terminal

Assuming System Monitor sends the SIGSTOP signal to the gnome-shell process to pause it, you can tell it to resume by sending the SIGCONT signal:

pkill -CONT gnome-shell


Enable Overlay Scrollbars In all Applications

There are currently no way to do it.
Currently only native Gtk applications support the overlay-scrollbars, additional support will eventually come later on.


I don't see anything in the terms of service that forbid it, as long as it is legal in your country/jurisdiction.

Acceptable use and conduct
All usage of the services must be legal
and not infringe any third party's rights. You must not take any
action or use the services in any way that might bring Canonical into
disrepute, affect the ability of Canonical to provide the services, be
illegal, or encourage illegal activities. You may not use the services
in any manner that might be libellous or defamatory (more info on what
that means), that contains threats or incites violence towards
individuals or entities, or that violates the privacy or publicity
rights of any third party. Some services have usage limitations as
indicated at https://one.ubuntu.com/plans, and you may not exceed
these. As part of the services, you may store data on Canonical's
servers or those of Canonical's suppliers. You should ensure that this
data is not in breach of any applicable law and does not breach any
individual's data protection or privacy rights. You shall indemnify
Canonical in full for any loss, cost or damages suffered by it as a
result of your use or misuse of the services.


I had the same, resetting the crop settings that Shotwell remembers with gsettings fixed it for me:

gsettings reset-recursively org.yorba.shotwell.crop-settings


Bulk/Batch-rename files with different endings (NOT change the endings)

If you are comfortable with a command line solution, you could do something like this, in bash

i=1
for file in *.*; do
  printf -v newfile "%03d.%s" $((i++)) ${file##*.}
  echo mv -v -- "$file" "$newfile"
done

The echo will prevent it from actually making any changes (it will just output a list of mv commands that it would make) - you can actually make the changes by running the same command without the echo once you are satisfied that it's going to do what you want.


Why is /etc/profile not invoked for non-login shells?

/etc/profile is invoked only for login shells because that is its specific purpose.

If you want a command to run for interactive shells that are not login shells, and you're using bash, put it in ~/.bashrc or /etc/bash.bashrc.

The purpose of the "profile" files is to contain commands that ought to be run for login shells only. These files are:

/etc/profile, run by all Bourne-compatible shells (including bash and dash) when started as a login shell.
Scripts in /etc/profile.d.

This is for Bourne-style shells, but it's not coded into the shell executable itself. Rather, commands in /etc/profile calls them. For example, on my Ubuntu 12.04 system, /etc/profile includes these lines:

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

.profile in the user's home directory, run by Bourne-compatible shells when started as a login shell (unless overridden, see below).
.bash_profile or .bash_login in the user's home directory. These are ignored by shells other than bash. But if .bash_profile exists, bash runs it instead of .profile. If .bash_profile doesn't exist but .bash_login exists, that is run instead of .profile.

(But it is common for .bash_profile or .bash_login, when it exists, to be written so as to *explicitly call .profile.)

The benefit of shell-specific profile files is that they can contain commands or syntax that are only valid for that shell. For example, I can use the [[ evaluation operator in .bash_profile/.bash_login but if I use it in .profile and then log in with dash as my shell, it will fail.

What Should Go In "profile" Files

"profile" files should contain commands that ought only run once, at the beginning of login. (This includes graphical logins, as they start with a login shell, too.) If a shell is interactive, the user running it is probably logged on, and so it probably has an ancestor (that started it, or started what started it, or started that, etc.) that was a login shell.

You might want to run a command only once because:

there is no reason to run it more than one time per login, it would be inefficient, or
it would produce an undesired result, to run it more than once per login.

As an example of the second situation, where an undesirable result would occur, consider these lines, which appear by default in every user's ~/.profile:

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

Suppose you SSH'd in, ran another shell (say, zsh), at some point found you wanted to temporarily go back to bash but keep your environment (so ran bash again while in zsh), and then ran a program like mc that runs a shell as part of its interface. If bin exists in your home folder and your username is james, your PATH in the innermost shell is something like:

/home/james/bin:/home/james/bin:/home/james/bin:/home/james/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

That's inefficient and (much more importantly) makes it hard to understand the contents of PATH.

This is by no means a disaster, though. As far as I can tell, if every interactive shell sourced "profile" files, nothing terrible would happen, in the default configuration. However, since the purpose of "profile" files is to contain commands to just run once per login, a user or administrator may add commands to a profile that must only run when starting a login shell.

Where to Put Commands for Every Interactive Shell to Run

If you are using bash, there are files for commands that are to be run in every interactive shell:

/etc/bash.bashrc
.bashrc in the user's home directory.

This is most commonly used for commands that

affect only the environment of the shell in which they run--not even child shells, or
ought to run even when this is not the login shell.

For example, command-line tab-completion should generally be enabled whether or not bash was the login shell. So this appears in ~/.bashrc:

if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi

There, 1 and 2 both apply: this does not carry over to other shells run inside this one, and tab-completion should work in bash even if I logged in with a different shell.

Where to Put Commands for Login Shells and Interactive non-Login Shells

If you're using bash and want a command to run in login shells and interactive shells and that are not login shells, it is generally sufficient to put it in /etc/bash.bashrc or ~/.bashrc. This is because, by default, /etc/profile and ~/.profile run them explicitly. For example, ~/.profile has:

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

(Similarly, /etc/profile sources /etc/bash.bashrc for bash.)

Thus both "profile" and "rc" files run when you start an interactive bash shell (whether or not it's a login shell).

Where to Put Commands to Run in non-Interactive Shells

You probably do not want to specify any commands for all non-interactive shells to run; they would run every time a script is run (provided the script is run by the shell you configure to run them).

This can cause substantial breakage. If you're going to do this, and there is not an administrator account on the system besides the one you're using, you might want to create one; that can make it easier to fix mistakes.

In bash, the "rc" files are actually run whether the shell is interactive or not. However, at the top they say:

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

So, if you need commands to run automatically even in non-interactive shells like the ones that run to execute scripts, you can add your commands before those lines.

Starting a Login Shell

Logging in starts a login shell. If you want a shell started after that to behave as a login shell, start it with the -l flag (stands for login). For example:

sh -l
bash -l
pdksh -l

That's the best way to start a login shell (without logging in) unless you want to start one as another user. Then, use:

sudo -i for root (use sudo -s for a non-login, interactive root shell)
sudo -u username -i for any user
su - username for non-root users (use su username for a non-login, interactive root shell)

What's an initial login shell?

An initial login shell is the same as a login shell. Everywhere this answer says "login shell" it could say "inital login shell" (except in this section, which would already have stoped making sense).

One reason for the term inital login shell is that login shell is also used in a different sense--to identify which program is used as the shell that is executed by logging on. This is the sense of login shell used to say:

"OpenBSD's default login shell is ksh; in Ubuntu, it's bash."
"You can change your login shell with chsh."

Further Reading

"Configuration files for shells" in "Unix shell" (Wikipedia)
bash manpage
Full bash manual (GNU)


Is there a way to prolong the timeout period when sharing my files to a windows pc?

There are several timeouts that can be set within Samba and they depend on how the connection is being made (CUPS, LDAP etc.). For each type of timeout there is a directive that you can alter that can be found in /etc/smb.conf. For information on each, please see the documentation here.

Hint: ctrl+F timeout


Windows 8.1 not coming up in boot options?

You can use boot repair to fix your boot isses.
Just burn the image to a cd/dvd or make a bootable usb thumbdrive, boot from it and click recommended repair.


New Lenovo X1 Carbon 2nd Generation - function key bar and vertical scrolling

I managed to find a work around by enabling the proposed updates in "Software Sources", otherwise known as "Software and Updates" in Lubuntu 14.04

Check this out; this issue has been fixed if you can't wait for the 3.15 kernel to release

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1309609

Got it working only on the 3.13.9-27 kernel. Tried 3.14 with adaptive keyboard cycling as it should but not returning after resume from suspend.


gdebi doesn't finish installing rstudio service

Ugh.  I had tried to "upgrade" from the rstudio-server-1.1.463-amd64.deb server to the rstudio-1.2.1335-amd64.deb desktop application.  I have the 1.2 server running now.


how to remove python 3.4.4 in ubuntu 14.04

After running make -n altinstall and doing a bit of processing1, the relevant paths are:

/usr/local/bin/python3.4
/usr/local/include/python3.4
/usr/local/lib/libpython3.4
/usr/local/lib/python3.4
/usr/local/share/man/man1/python3.4

Some of these maybe temporary - only used during installation and deleted after finishing it. So, you might not find some of these. Delete the rest.

1 I just ran:

make -n altinstall | grep -v rm | grep -Po '/usr/local[^[:space:]]*?python3.4' | sort -u

This filters out rm commands, and then prints only the paths in /usr/local (the default location picked by ./configure) that end in python3.4 and removes duplicated entries.


Centrino Wireless-N 1030 [Rainbow Peak] disconnect every 10 minutes

After making the below changes in my /etc/modprobe.d/iwlwifi.conf file and a system restart, I do not see any frequent disconnects.

options iwlwifi 11n_disable=1 wd_disable=1

I believe it might help someone in future.

References

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


Dash-to-dock turns off whenever I turn my monitor off in Ubuntu 18.04 (GNOME 3.28.4), only reboot turns it back on

It's a DtD bug.

Assuming that you've got the latest version of DtD, try this:

open a Files window, and hit the CTRL+h keys to show hidden files/folders
open the ~/.local/share/gnome-shell/extensions folder
identify the DtD GNOME Shell extension folder by its name
drag that folder out to the Desktop (or other open folder)
restart GNOME Shell with ALT+F2, then r, then ENTER
move the DtD folder, from the Desktop (or previous open folder), back into its original folder
restart the GNOME Shell again
see if DtD works again


How to Enable PCIe Gen3 on Ubuntu 16.04.04

ok
the right way to edit /etc/modprobe.d/nvidia.conf is by put also the graphics card number in my case i have istalled nvidia 384 driver then:

options nvidia_384 NVreg_EnablePCIeGen3=1

and one update:

sudo update-initramfs -u

and reboot.
after for me all working !! :)


To upgrade from one version to another, first you need to prepare your system, I mean, updating and upgrading. If not, you wont be able to upgrade.

System preparation

Just in case repositories are disabled (if they are, you wont be able to update), go to

Main Menu: System > Administration > Software Sources.

It will display you a window, that must look like this one.

Tick all of em like in the pic!

Now we are going to update the system.
Be sure you have conection to internet, and open a terminal prompt (ctl + alt + T). Run:

sudo apt-get update

Once updating had finished, let's upgrade the system. In the same terminal prompt run:

sudo apt-get upgrade

Wait until the prompt finishes.

Upgrading to 16.04

If all of this worked without erros, you must be able to upgrade to 16.04. In the same terminal prompt, just run:

sudo do-release-upgrade

Now you can sit and relax, the upgrade will take some time.


Realtek RTL8723BE junk NIC Problems on Lenovo G50-30

You can install a better driver this way.

 sudo add-apt-repository ppa:hanipouspilot/rtlwifi
 sudo apt-get update
 sudo apt-get install rtlwifi-new-dkms

If you have Ubuntu 14.04, I also suggest installing updated firmware.

sudo apt-get install linux-firmware

To fix hardware lock, you need to install a patched ideapad-laptop module.

sudo add-apt-repository ppa:hanipouspilot/ideapad-laptop
sudo apt-get update
sudo apt-get install ideapad-laptop-dkms

I sent the patch upstream, it has been accepted, but it did not get into any of stable kernels yet.

At the moment I am writing this it is COMMITED to linux-next.

But good news it is marked for stable and will get to all Ubuntu kernels some time.

There is no guarantee that that module will work on 4.0.4

But I think it will work. There is no need to install unsupported kernel for that.

Update: This issue with hardware blocking has been fixed in kernel 3.19.0-26. The ideapad-laptop-dkms can be removed if you upgraded to that kernel.


Upstart conf changes do not reload after edit

Changes to Upstart scripts apply when all running instances of that job have stopped. Thus modifying a conf file and doing sudo restart job will run it with old values. You need to sudo stop job, then sudo start job to have new conf file in effect.

Bonus: sudo stop job getting stuck at such script means you have wrong expect stanza defined. See Cookbook section on expect for more info on this. tl;dr, likely it is extra and can be removed.


How can I rename a file containing "&" in its name in kubuntu using Dolphin or terminal?

Krename

http://www.krename.net

  What is KRename ?

  KRename is a powerful batch renamer for KDE. It allows you to easily
  rename hundreds or even more files in one go. The filenames can be
  created by parts of the original filename, numbering the files or
  accessing hundreds of informations about the file, like creation date
  or Exif informations of an image.

Ubuntu packages: http://packages.ubuntu.com/search?keywords=krename&searchon=names&suite=all&section=all

Dolphin - Right click the files > Actions > Rename with KRename

KRename has 'Find and Replace'...


Yes, Ubuntu, or most any version of Linux will run on most any virtualization as a guest.


I had the same issue and I created an applet. This way i simply did rm -rf the trash folder. I also added a "shred" option - which is configurable.

this way more secure.

here's a example of applet code: http://conjurecode.com/create-indicator-applet-for-ubuntu-unity-with-python/


You may try Archon http://archon-runtime.github.io/, which runs the packaged apk as google chrome browser extension. You will need the Archon packager from google play in order to package the apk from phone to your linux desktop.

You better try the 2.1 version of Archon as it contains better support for various apks.

How to in detail:

When you have 32bit Ubuntu, choose Chrome 32-bit / Chrome OS 32-bit. When you have 64bit Ubuntu, choose Intel x86 Chrome 64-bit / Chrome OS 64-bit. Download the zip.
Install google chrome on Ubuntu and unzip the downloaded zip to a directory.
Launch google chrome and enable in the extensions developer mode. Then load as unpacked extension the directory where you unzipped downloaded archon.

Next download on your phone or tabled archon packager from the playstore. Run Archon Packager on your phone, choose installed application, choose Geometry Dash Lite and export to zip on your phone.
Transfer the zip archive from your phone to your computer. Unzip the archive to a folder (Geometry Dash Lite), then go to Google chrome and load unpacked extension this time the Geometry Dash Lite.
In Google Chrome you have now two unpacked extensions: Archon and Geometry Dash Lite.
To launch the game simple click on run in google chrome extensions or search the application name in the Ubuntu Dash.


How to check if hardware clock is in UTC or Local time

Ubuntu 15.04 and later uses systemd as the default init system and includes the timedatectl program.  Running timedatectl will output:

      Local time: Tue 2016-02-02 09:47:54 MST
  Universal time: Tue 2016-02-02 16:47:54 UTC
        RTC time: Tue 2016-02-02 16:47:54
       Time zone: America/Denver (MST, -0700)
 Network time on: yes
NTP synchronized: no
 RTC in local TZ: no

RTC time is the hardware clock. Compare it to the Local time and Universal times returned by timedatectl to determine how the hardware clock is set.

RTC in local TZ: no means the hardware clock is interpreted as UTC

RTC in local TZ: yes means the hardware clock is interpreted as local time

To switch using timedatectl

sudo timedatectl set-local-rtc 0 sets RTC to UTC

sudo timedatectl set-local-rtc 1 sets RTC to local time

Switch using config file

Setting the UTC= setting in /etc/default/rcS will change how the system interprets the hardware clock (UTC=yes or UTC=no).


Run .sh with Desktop entry without closing terminal

Use @Dane's solution (copied here):

read -n1 -p "Press any key to exit."
exit

And change two lines in the .desktop file:

Exec=gksu "gnome-terminal -x bash -c /home/markku/PRGM.sh"
...
Terminal=false

Or if sudo would work fine, it's simpler:

Exec=sudo /home/markku/PRGM.sh
...
Terminal=true


Nautilus gives a warning when opened in the current directory from the terminal

To open Nautilus from the current directory use:
nautilus .

To open with a given file selected use:
nautilus . -s filename

If the file name has spaces enclose it in double quotes (" ).

Warning messages will appear
Nautilus, gedit and other apps are all based on Gnome Took Kit (GTK) and it is infamous for giving warning messages. 99% of the time you can ignore them. Does nautilus open ok with the current directory displayed? That is the only question. For Ubuntu 16.04.3 LTS with xorg there are lots of warnings:
$ nautilus .

(nautilus:18233): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed

(nautilus:18233): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed

(nautilus:18233): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(nautilus:18233): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(nautilus:18233): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

Once again Nautilus works fine and these annoying warning messages are simply part of the Gnome back bone history of Ubuntu and other Linux distributions.


Window image stays for forever in the workspace after closing it

I had the same issue. It has something to do with a bug when windows are set translucent. Go to system settings, desktop behavior, and then find anything that has a translucence setting and turn it off. Unfortunately thats an ongoing issue for now.

Hope that helps my friend.


Mounted partitions cannot be re-sized. Umouont the partition and you will be able to re-size it.

Alan


They are normal i guess,type ps x | grep python in terminal to find out what it is.It may be some applets or programs running in your system.

This is my output:

karthick@Ubuntu-desktop:~$ ps x | grep python
 2133 ?        S      0:10 python /usr/share/stackapplet/stackapplet.py
 2134 ?        S      0:01 python /usr/share/system-config-printer/applet.py
 9988 pts/0    S+     0:00 grep --color=auto python


Happened to me too. A quick search on the internet revealed that you can solve this by removing the deb package information using the following command in the terminal.

sudo dpkg -r sublime-text-installer


How to make gif which goes backwards and forwards on a loop?

The easiest way would be to do it with this online tool.
Simply upload the GIF and mark "run to the end and reverse back to the start" checkbox.

I haven't seen any Linux tool with such feature built in, but if you don't want to use online tools or the file is too large, you could split the GIF using gifsicle, copy and rename the frames or just make a list of filenames in ascending and descending order and join them back together, again - using gifsicle.

Something like this could do the trick:

gifsicle --unoptimize --explode original.gif &&
find . -iname "*\.gif\.*" | sort > frame_list.txt &&
find . -iname "*\.gif\.*" | sort -r >> frame_list.txt &&
cat frame_list.txt | xargs gifsicle > reversed.gif

(In case you get broken/flickering gif or some gifsicle error, you may need to remove optimizations with imagemagick before splitting it: convert original.gif -coalesce unoptimized.gif)

For the mp4 to gif conversion step, there are many different options online and offline, but I have found this to produce the best results: http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html

Disassembling and reassembling a GIF after it's made shouldn't affect the quality at all, the mp4 to gif conversion step will determine the quality.


The output of both df -h and lsblk will give us the size in gibibyte (GiB) where 1 GiB is 1.07374 GB.

df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        55G  9,3G   43G  18% /

Using the option -H will output disk size to a base of 1000 (which is GB) to report the size of a drive as expected.

df -H
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        59G  9,9G   47G  18% /

For an output of lsblk in bytes rather than GiB use option lsblk -b.

To list all partitions we may give them to the df command e.g.

df /dev/sdb1 -H


I need the Best/Most Secure Supported JRE for LibreOffice

Use OpenJDK because it do not contain the closed-source Oracle browser plugin that have been the attack vector for all the latest zero-day exploits.

If you want a JRE with included security updates install:
openjdk-7-jre

OpenJDK builds in Ubuntu are based on IcedTea, this is good because the IcedTea team apply the latest security updates, that fix issues inside the core java libraries, on top of OpenJDK 6 and 7. You can find all IcedTea security announcements in gnu_andrew's blog who maintains the IcedTea security releases.
http://blog.fuseyism.com/index.php/category/security/

If you want a secure java browser plugin and webstart then use the IcedTea-web plugin and javaws. You install IcedTea-web by installing:
icedtea-plugin

IcedTea-web implements a more strict security policy compared to Oracles closed-source plugin:
http://icedtea.classpath.org/wiki/IcedTea-Web#Security_Notes
http://icedtea.classpath.org/wiki/IcedTea-Web

By using the above mentioned IcedTea-OpenJDK packages you get all new security updates when performing regular Ubuntu updates. If you manually install Oracles closed source releases you have to update manually.


Bluetooth headset gets paired on Kubuntu 18.04 but never gets reconnected

This issue has been solved in a recent update.


Warning: the following is for the flatpak version of Gimp, but possibly also relevant to other flatpak apps.

The standard file used by well-behaved applications is ~/.local/share/recently-used.xbel. Unfortunately the flatpak installs keep their own copy as ~/.var/app/{application}/data/recently-used.xbel.

A first idea is to replace ~/.var/app/{application}/data/recently-used.xbel by a link to ~/.local/share/recently-used.xbel but this link is quickly replaced by a plain file.

On the other hand the ~/.var/app/{application}/data directory has the same organization as ~/.local/share/ and replacing it by a (soft) link to ~/.local/share/ (and possibly copying over useful stuff) did correct the problem for me.


Can Landscape monitor the server it is hosted on?

Yes! You can install the client software onto the same hardware as the Landscape server software to manage it.


HP Elitebook 840 G4 WIFI light stays Orange

I have solved this by playing around in the BIOS. I believe disabling and reenabling Wireless Button State did the trick for me.

Differences:

I am using Arch, not Ubuntu.
The LED remained white, not orange.
I am not sure which generation I am using but I believe it's an older one.

More Details:

I was able to bind the button e.g. in i3/sway config with

bindsym XF86RFKill                  exec --no-startup-id rfkill block all

As pointed out in this question the desired status of the LED was correctly reflected by

cat /sys/class/leds/phy0-led/brightness

When wifi was on (can be checked with rfkill) it printed 1 when wifi was off it printed 0.
The real LED, however, did not care about that. It always stayed white while the computer was running.

When booting up and powering down the color of the LED changed so I knew that this was not a hardware defect.

The kernel option CONFIG_HP_WIRELESS is set to m:

$ zcat /proc/config.gz | grep HP_WIRELESS
CONFIG_HP_WIRELESS=m

The module is loaded:

$ lsmod | grep hp_wireless
hp_wireless            16384  0

I am using the driver iwlwifi:

$ lspci -nnk | grep -iA5 network
03:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 48)
    DeviceName: WLAN
    Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5010]
    Kernel driver in use: iwlwifi
    Kernel modules: iwlwifi

Solution:

Open the BIOS Setup.
When powering on the laptop it displays the text "Press the Esc key for Startup Menu" in the lower left corner while displaying the hp logo in the center of the screen. Press the Esc key until the color of the text is inverted. Select BIOS Setup with the arrow keys and press enter.

Go to the option Advanced > Built-In Device Options > Wireless Button State. It was enabled. I disabled it and booted up. The wifi button was not working anymore. I enabled the option in the BIOS again, booted up again and the button works: When pressing it it toggles and the LED displays the correct status of the WIFI. Even when disabling/enabling WIFI with nmcli r wifi on/off instead of the hardware button the color of the LED changes as desired.

(I have also changed other BIOS settings in the same go like disabling WWAN and enabling wake on lid open so it's difficult to say for sure that it was this very option which made the difference but it's the only one which sounds plausible.)