Creating/editing a bootable usb with your own applications (like a hirens boot)

A very detailed procedure on how to create a custom live CD is available on Github. It shows how to set up a chroot eenvironmemnt, in which you configure and build your live system, and how to create a bootable ISO of it.
There used to be software, Ubuntu Kit Customization kit. This made it a very easy task. Unfortunately, that project was discontinued.


Print screen button does not work after upgrading to Ubuntu 18.04

The default program to take screenshots in Ubuntu is gnome-screenshot.
Run command gnome-screenshot on terminal to know if the problem is in gnome-screenshot or something else. To provide you just a workaround, you can create another shortcut by going to -
System Settings -> Keyboard -> Shortcuts and press + button there. A menu like below will appear

Enter gnome-screenshot in the name and gnome-screenshot -w in command.
-w is for taking screenshot of the current window.
After entering name and command, press apply, and custom shortcut be added to your list. Click on the "Disabled", and the text should change to "New accellerator". This is where you set a new shortcut, for example - Shift + Ctrl + Alt + C.


Use grep and no need sort them:

grep -Fxvf file2 file1 > diff_file

will return lines which are in file1 but not in file2 (lines missed in file2).


Permission denied for ubuntu shell user to list home directories of users

You could make the root directory of the home directory world readable.  This wouldn't change the mode of the files or the other directories that is subdirectories of the instant home directory.

You could do this with:

$ sudo chmod go+x /home/someuser

The above mode parameters are:

  g  - group access
  o  - others/everyone else
  x  - execute (in this case directory access)

If you want to restrict a directory (the home directory to a specific group, for instance the default group of the web server you could set the group owner of the directory to www-data and use only the g of the command, leaving out the o for others as in:

$ sudo chgrp www-data /home/someuser
$ sudo chmod g+x /home/someuser

It might be more convenient to use the chmod go+x command for the root directory of the user and create a sub-directory of your php programs.

By the way, by default your web applications will be running under the www-data group.


How do I use KeePass app on other computer?

Keepass uses a password safe which is nothing more or less than an encrypted file. So the only thing you have to do is install Keepass and replace the empty password file by one that you've taken from another computer and that contains all your passwords.


Gparted can not list disk percentage usage (Ubuntu 16.04 )

To help alleviate some of the confusion. The KINGSTON SV300S37A240G is not a hybrid drive. It's a stand alone SSD. I agree with oldfred. It appears that a filesystem was placed on /dev/sda without a partition table of any kind. This explains why gparted shows /dev/sda without any partition numbers.  You can confirm this from the terminal with the command  sudo parted -l which will normally provide output similar to this and will allow you to confirm whether or not you actually have a /dev/sdb:

Model: ATA TOSHIBA THNSNH12 (scsi)
Disk /dev/sda: 128GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  13.3GB  13.3GB  primary  ext4
 2      13.3GB  128GB   115GB   primary  ext4         boot

Model: ATA WDC WD2003FZEX-0 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      32.3kB  2000GB  2000GB  primary  ext4

Model: ATA WDC WD3001FAEX-0 (scsi)
Disk /dev/sdc: 3001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  3000GB  3000GB  ext4
 2      3000GB  3001GB  1074MB  linux-swap(v1)

`

If the drive has been wiped you'll get output like this:

Error: /dev/sdd: unrecognised disk label
Model: JetFlash Transcend 4GB (scsi)
Disk /dev/sdd: 4014MB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

If the entire device has been formatted with a file-system and no partition table you'll get output like this:

Model: JetFlash Transcend 4GB (scsi)
Disk /dev/sdd: 4014MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number  Start  End     Size    File system  Flags
 1      0.00B  4014MB  4014MB  ext4

Edit:
Note that parted will report "loop" when it can't find a partition table.

The red dot with the exclamation point indicates a problem reading the  file-system which is why you aren't getting any usage data. That warning is well explained here: Warning image in Gparted

The root cause (of that) could be anything from a dodgy connection to badblocks. The command cat /var/log/syslog | grep sda should provide some clues in your case.

All the above command does is provide output matching the device sda from your syslog.

EDIT:

as e2fsprogs is [essential] I'm relatively certain that you have it and that it's version 1.41+ you can always check to be sure.
The command dpkg -l e2fsprogs will produce that information for you as in this example:

  ii  e2fsprogs 1.42.13-1ubuntu1   amd64  ext2/ext3/ext4 file system utilities

This output tells me that as of this date I have the most current version of e2fsprogs for 16.04 installed thats currently available in the repositories.

Your question doesn't indicate whether or not you have critical data on /dev/sda but if you do, you might wish to consider making a backup image of the drive, loop mounting that image and then attempting to Rewrite the superblock and group descriptors only. For safety, I highly recommend working with an image rather than the hardware when attempting data recovery.


How to change grub to start in tty1, just disable graphics like on servers

you can solve it by using service like this one, i guess.
Change default login tty


Running Teamspeak 3 on Ubuntu 14.04 issue

Here is how to run a .sh file.

Ensure the sh file has execution permissions, to do this right click the file and go to properties and ensure Allow executing file as program is checked.

Right-click on a blank space in the folder that the .sh file is located (not on the sh file itself!). Select the option to Open in Terminal :

(You can also just cd into the location of the file like so:
cd ~/Desktop )
Type the following command:

 ./sample.sh

Where sample is the name of your file. Be sure to add the ./ at the beginning.
Hit Enter and your .sh file should run!


How to make Retroarch start on Ubuntu server 14.04 boot

i don't know if you tried this but you can try making a .conf file containing the following lines

start on startup
task
exec /path/to/command

and save this .conf in /etc/init


How do I organize an Ubuntu party or get together?

There are tons of ways that an organized group of people can contribute to Ubuntu. Here are some of mine:

LoCo Activities - formal teams in Ubuntu are called Local Teams (LoCo), they have a ton of information with good ideas on their wiki page. You can find if there's an existing LoCo team in the directory. I recommend you contact them and let them know that you're ready to start planning events at your school.
Throw a release party!!
You can run an Ubuntu Jam
You can run an Ubuntu Hour
And of course, you can all particiapte on Ask Ubuntu by asking more questions and answering them - the site is still relatively new and we could always use questions that new users are running into so we can help build a good list of answers.


The best option you have to get the familiar feel in linux on an older pc is to get Lubuntu. You can download the torrent file from here. I assume you know what to do next ;) :)


I'm trying to use SSHFS to transfer files via SSH to my Raspberry Pi web server, specifically using the GUI

Discover the path you need in Nautilus

Navigate to the pi Home dir.
Right-Click on empty space. Select "Properties". Look for the "Parent Folder" field.

Example: ssh://192.168.1.32/home/me

Use the path in Nautilus

Click the empty Top Bar at the top of the window.

If you start to type, the bar will change into a Search box.
If your first character is a slash (/), you can enter file paths (note the little file icon on the left side of the box)
DON'T paste. It only works for typing.
DON'T use the search icon. While it will open a similar search box, it won't convert into paths.

Enter the root folder path: ssh://192.168.1.32/

Use a dummy slash (/) so the box accepts file paths, then delete the slash, then enter the path


First boot the Kernel which you want to retain. Then use the below command to remove Kernel from your machine permanently,

sudo apt-get remove --purge $(dpkg -l 'linux-image-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')

Hope this helps.


How do I copy from the ubuntu 18.04 vm terminal and paste into windows 10?

If you are copying inside a VM, in some VM's Windows doesn't know that. If you are using Virtualbox, you can't copy something inside the VM and then paste it on Windows.
But some VM's can do that like Vmware workstation.
I used both virtualbox and vmware workstation and i've come across with that problem at the time. While virtualbox doesn't allow you to copy-paste from vm to host ; vmware workstation will allow you to copy-paste to host.

If it isn't so crucial you can mail your key to you or you can transfer it via USB. These are the ways i can think of at the moment.

Note: In virtualbox you can create a shared folder and that folder will be used on both in guest and host operating systems. You can give that a try.


Does it really crash because of swap space? Did you see the memory usage go up and see it crash? I mean, it could crash for a lot of reasons.

You can either increase the swap partition size with a tool like gparted, probably only from a live cd though. Or you can create a swap file.


Cursor flickers on primary display when fractional scaling is enable for dual monitors on Ubuntu Desktop 20.04

I do not have enough reputation to comment so I add a new answer (I do not understand this rule tbh).
Another workaround which worked for me was to set the scaling to different value than 200%, e.g. 175% or 150% both worked for me. It was still close to 200% which I initially wanted, but I am also ok with this. No screen tearing nor impact on the performance in comparison to what other users reported with the 0.9999x0.9999 hack and most importantly I do not see the cursor flickering anymore. Also you can comfortably set this up in the settings.
I am on X1 carbon 7th gen with Ubuntu 20.04 desktop.
Primary display: 1920x1080, scale 100%
Secondary display: 2560x1440 (built-in WQHD), scale 175%


How do I remove manually installed packages?

If the makefile is correctly written, you should be able to cd back into the directory where you ran ./configure and make and this time run make uninstall

You should also look at installing checkinstall to use in these situations - it will allow you to build from source, but have the packages tracked by apt.

sudo apt-get install checkinstall and then man checkinstall


How to fully utilize RAM to increase overall system performance

You should install Preload which will preload the software you use the most in your RAM (it'll learn which software to preload on its own). That's very easy to setup:

sudo apt-get install preload

You probably don't need to touch it, but if you want you can edit the options in /etc/preload.conf


How do I get a patch applied to a package, when the upstream maintainer does not seem active?

The proper way to do this is to first make sure that the package uses a patch system, and if it doesn't set it up to use Quilt.  There should be answers on this site for how to do that.

Then, create a new version of the package using dch -i.  Add your changes (such as use of a patch system) to the changelog, add your patch into the patch system, and then test the package (locally or in a PPA).

From there, you can attach a debdiff to the bug report, tag it "patch", and start hunting for a sponsor.  A debdiff makes it very easy for a developer to just see your latest version of the package (patch included) and upload it themselves.

You could skip some of these steps and just attach the patch to the upstream source code to the bug report, but then your sponsor would need to do them all for you, and that means it'll probably take longer and it'll be harder to find a sponsor (since your package seems like an uncommon one, it's likely no developers are even familiar with it and thus might be reluctant to apply a patch).


To save my data, one solution that worked for me:

Create a bootable Ubuntu on a USB drive
Change the boot order in Bias to boot ubuntu from the USBdrive
Mount the specified drive to load my data
Finally, transfer all data to an external backup hard disc

And after saving my data, I reinstalled a new ubuntu version!


I disconnected my other monitor (I have a dual monitor setup) and I was able to install the OS. I then rebooted with both monitors (the second wouldn't recognize without a reboot - which was odd). The monitor I had connected worked, but the newly connected one had it's refresh rate insanely high (causing it to not draw that screen).

After adjusting the settings to a more reasonable 60hz (down from the 120hz default) I got both monitors working. Now however I am getting graphical glitches whenever my screen updates (like snow in small portions of the screen). I am installing the proprietary drivers now to see if that fixes the issue.

UPDATE: The Nvidia drivers seem to have fixed my issue.


No Windows7 entry on GRUB2's menu after installing Ubuntu

Some Windows boot files are missing. Probably there was a separate Windows boot partition that was erased when you installed Ubuntu.

Solution:

Use a Windows7 disk this way: https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader , until you get direct access to Windows
then use Boot-Repair's Recommended Repair to recover the GRUB menu


Intel Compute Stick, move Ubuntu OS to SanDisk microdrive

I attempted to perform a restore from the PQService, but it only does this on the internal HD, gives no option to perform a backup to another hard drive location.
Also attempted to perform a backup, but there does not seem to be a valid backup tool for 14.04.
Finally seems the only option is to install from a fresh download to the new Sandisk, and to set that in BIOS as the main drive.


Why don't you just comment the line in fstab to disable it on boot?

#UUID=751E843A54B3D902 /media/Windows\040Compatability     ntfs    noauto     0        0

You should still be able to mount he partition simply with nautilus whenever you need it.


The file rt5592sta_fix_64bit_3.8.patch must be in the same location as your Makefile (base dir of the driver source). Also, you will require sudo for step 7.


glxtest: libpci missing although I made an apt install

You have to remove Snap version of Firefox by
snap remove firefox

and then use Firefox from the repository
sudo apt-get install firefox
sudo apt-get install firefox-geckodriver

If you need newer firefox - check packages from Mozilla PPAs - firefox-next or daily .


Add event to google calendar from chrome/chromium via .ics file

The only thing that we need to add an external calendar to Google Calendar is the address where the calendar itself resides. In this case, represented by the .ics file. Nevertheless, finding the proper address where the file is hosted may be certainly difficult, specially if it is coded in Javascript (as in this case) and not in a public URL.

Anyway. By Diving in the code of the page you provided in the question, I found that the .ics file can be reached in this address: http://events.colorado.edu/eventexport.aspx?Eid=14255&Iid=72564&Dt=O&fmt=I&invite=False&inviteemail=

So if you are interested in adding the appointment of this .ics file (and may be other appointments when the file is updated), you can import the file directly by Clicking the button next to "Other calendars" (the one with a small triangle pointing to downside) and choose "Add by URL" as we can see in the next screenshot:

You will be asked for the url, let's introduce the .ics file url and hit the "Add Calendar". Google Calendar will import the file and add it to your current appointments list as we can see in the next screenshot.

BTW The last appointment for that calendar seems to be dated for Sunday June 30 @ 16:00-18:00 Hrs.

Good luck!


"Unknown filesystem unionfs" although all packages and modules are installed

I've solved (or rather worked around) this, by not using unionfs and instead using aufs - another union file system.

Install the AUFS package and its kernel module from linux-image-extra-virtual:

sudo apt-get install aufs-tools linux-image-extra-virtual

The corresponding row in my fstab now looks like this:

usr    /usr    aufs    udba=reval,br:/.filesystems/usr/rw:/.filesystems/usr/ro    0   0

The squashfs is mounted at /.filesystems/usr/ro in the previous line, making this working as a substitute for the troubling steps in the guide I referred to in the OP.


Just had this problem too and entered here looking for an answer and after being disappointed for not finding one I just wanted to search deeply into Chrome options and got it! :P look, go at Chrome, to Settings, and at the bottom, click for Advanced Settings and almost at the bottom (again), you'll find it as an unchecked box saying something like: "Run apps as a background process still while chrome is closed"... If you don't get something because of my bad explanation... or get stuck... or whatever, just tell me.
Greetings.


I was trying to change my password, on my user account and accidently pressed enter too fast. Im running 12.04LTS

Based on your edit, it looks like you have actually managed to log in as root. The sequence of commands you are showing does not make much sense (I understand it's hard to get used to the command line, that's not a complaint :) but since you end up with a prompt like this:

root@ubuntu:~#

you have managed to become root. You can make sure by running the command whoami, it should return root.

Assuming you are indeed root, you can use the passwd command to change your user's password. I will assume your user is joe, run this command:

passwd joe

The whole process should look something like this (the root@ubuntu # just represents your prompt, lines that begin with that represent commands and lines that don't are a command's output):

root@ubuntu # passwd joe
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@ubuntu #

At this point, user joe should have whatever password you just set for him. You should now be able to log in as joe with the new password.

As an aside, when logged in as root, you can become joe without needing a password:

root@ubuntu # su joe
joe@ubuntu $


The following is the official link

https://ubuntugnome.org/download/


Disable the recovery mode by uncommenting the line:

#GRUB_DISABLE_RECOVERY="true"

in /etc/default/grub (and running sudo update-grub afterwards), and password protect grub menu entry.


acer aspire v3-112p not booting ubuntu from hardware

For the UEFI mode to work properly you need to tell your UEFI to trust the Ubuntu bootloader, see this comment.


How to install a wireless adapter D-Link DWA-131?

I added a driver for this adapter to PPA. It can be installed by running:

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


How to force ubuntu to re-check for graphic drivers?

Check this thread:
Can't install ATI proprietary drivers in 12.10

From the begging Ubuntu (version 12.10) didn't recognized my graphics card. The solution for me was:

sudo apt-get purge fglrx*
sudo apt-get install fglrx
sudo aticonfig --initial

After reboot my desktop was OK and I did the next check:

sebastian@linux:~$ fglrxinfo
display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon HD 6700 Series
OpenGL version string: 4.2.11903 Compatibility Profile Context

Now the driver recognizes my graphics cards. On the System Details now I see as Graphics VESA :00. Apparently everything is working fine now.


Restarting docker service:

sudo service docker restart

was enough, as it recreates the networking bridge. Restarting my containers let them connect to the Internet again.


You cant change executable bit on fat systems.


Locking a folder on a shared linux server

See if you can chmod one of your own files. Something like chmod 600 myfile.txt If you can do that you have control of your files. The 6 is your permission lvl the 0 for others.

Now go check from someone else if they can see your file. or you could su <otheruser> and try to see/interact with the file.


Check your ~/.fonts folder.

If this folder is empty, please download SteamFonts and extract the content of this archive to your ~/.fonts folder.

After a steam restart the fonts should be back.


How to install Ubuntu on a laptop with Windows 10

This flowchart shows how to make a bootable USB for installing Ubuntu and troubleshoot problems booting Ubuntu from it.

Flowchart links

How to create a bootable USB stick on Windows

How to make an Ubuntu Minimal USB on Windows

Need help regarding dd command on Ubuntu app for Windows 10


Assuming u have user-theme extension installed.

U need to switch ON user-theme extension itself

Once u switch it ON then logoff and login or Alt+F2 r.
U should be able to see following menu:

If you don't have user-theme extension installed itself then I advise you to follow: https://extensions.gnome.org/ or I had used http://www.webupd8.org/2011/10/official-gnome-shell-extensions.html

Here are few themes: http://www.webupd8.org/2011/12/satyas-gnome-shell-gtk-themes-ppa.html

http://www.webupd8.org/2011/10/4-beautiful-gnome-32-compatible-gtk.html


How to make Ubuntu shutdown when power lost?

Try to check on_ac_power command. From man on_ac_power:
NAME
       on_ac_power - test whether computer is running on AC power

SYNOPSIS
       on_ac_power

DESCRIPTION
       on_ac_power  checks  whether  the  system  is  running on AC power (i.e., mains power) as opposed to battery
       power.

OPTIONS
       None.

EXIT STATUS
       0 (true)  System is on mains power
       1 (false) System is not on mains power
       255 (false)    Power status could not be determined

if on_ac_power; then
    echo "You are on AC-Power" # System is on mains power
 else
    echo "Power Lost"          # System is not on mains power
fi

You need to check the AC-Power status in every X interval of time. It's easiest way that you run it in the background, inside a while loop:
while true
 do
    if on_ac_power; then
        echo "You are on AC-Power" # System is on main power
     else
        echo "Power Lost"          # System is not on main power
    fi
    sleep [Seconds]
 done

Save your script(ChechMainPWR.sh) and if you want to run the script on startup, so add a line in /etc/rc.local to call your script (ChechMainPWR.sh) + "&" to make it exit. Like this
sh /home/USERNAME/ChechMainPWR.sh $

Reboot and see the changes.
BONUS
If you want to see the alert when it's lost or not connected on your desktop notification, you can use notify-send program.
notify-send "Main Power Lot!" "System is now shutting down"

See man notify-send for more info.
NAME
       notify-send - a program to send desktop notifications

SYNOPSIS
       notify-send [OPTIONS] <summary> [body]

DESCRIPTION
       With  notify-send you can sends desktop notifications to the user via a notification daemon from the command
       line.  These notifications can be used to inform the user about an event or display some form of information
       without getting in the user's way.

Then the final script would be like this:
Final script
while true
 do
    if ! on_ac_power; then    # System is not on main power
        notify-send "Main Power Lot!" "System is going down after 10 seconds"
        sleep 10
        echo YOUR_PASSWORD | sudo -kS  shutdown -h now
        #####^^^^^^^^^^^^^ VERY VERY VERY insecure!   ##########
    fi
    sleep 300 # check main power status every 5 minutes
 done

Warning: The echo YOUR_PASSWORD | sudo -kS  shutdown -h now works BUT it is extremely insecure, as your password is written in your history and may also be visible to other users through a process listing.
Then alternative solution is; You can configure your system that sudo someCommand does not require a password(in my case for sudo shutdown).
To do that, run sudo visudo and add the following line at the END in the file that opens:
Your_USERNAME  ALL=NOPASSWD: /sbin/shutdown

Then exit the editor and save it (CTRL+x).
Now you can use shutdown command from the command line or in your script without password.
So the script would be like this:
while true
 do
    if ! on_ac_power; then  #your system is not on AC-Power
        notify-send "Main Power Lost!" "System is going down after 10 seconds"
        sleep 10
        sudo shutdown -h now  # System is not on mains power
    fi
    sleep 300 # check main power status every 5 minutes
 done

External links:
How do I run specific sudo commands without a password?
How do I restart /shutdown from a terminal?


What I do is:

Delete or Move the Kernel versions you do not want from /boot to another place. For example in my case I have:

For abi files I have: abi-3.0.0-12, abi-3.0.0-13, abi-3.0.0-14, abi-3.0.0-15

For config files I have: config-3.0.0-13, config-3.0.0-14, config-3.0.0-15

For the rest I also have the same thing. About 4 or 5 versions of it. So I literally delete (or more recommended it is to move) the files to another place and leave the last version and the previous version for that. For example, for the abi files I would leave the last ones which are abi-3.0.0-14 and abi-3.0.0-15

Same goes for the rest, you should have several versions of abi, config, initrd.img, System.map, vmcoreinfo and vmlinuz. Delete/Move all but the last 2.

then execute sudo update-grub and reboot. You should now have only the last 2 shown in the list.

NOTE - It is more recommended to Move the files instead of deleting in case you have a problem later.

UPDATE: As suggested by Lekensteyn using dpkg -S /boot/filename will show you what package is responsible for the filename in boot. For example: dpkg -S /boot/abi-3.0.0-12-generic will show you:

linux-image-3.0.0-12-generic: /boot/abi-3.0.0-12-generic

which means that the package linux-image-3.0.0-12-generic is responsible for installing that specific file. If you want to see the whole linux-image files do something like:

sudo apt-cache search linux-image or more friendly sudo aptitude search linux-image

You then can use sudo apt-get remove PACKAGE for each one but of course will take some time since there are several. A quick GUI way is Synaptic since you can select multiple packages and then just mark them for deletion.

Another GUI way is Ubuntu Tweak (Mentioned by TomTasche) which offers an easy way to remove the old kernels:

I should mention that when I started deleting kernel files Ubuntu-Tweak did not exist. After using it and booting again without any problem I can say that you can use it and not be afraid of some problem since it removes the packages the same way as purging/removing them with aptitude or apt-get. What I still recommend is leaving the previous version of the kernel, so if you have 3.0.0-15 as the latest, keep also 3.0.0-14 just in case something happens with 15 you can have a backup by going to 14.

To install ubuntu-tweak:

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


Remote connection programs on Ubuntu 20.04 are useless

What you probably want is xrdp Remote Desktop Protocol (RDP) server
You can install it like so:
sudo apt install xrdp

After that, use Windows remote desktop app if connecting from windows or remmina if connecting from Ubuntu as clients.

Please see extra information on xrdp homepage page

Notice:
By default xrdp will create a new session when you remotely connect and the local user must be logged out first for this to work or otherwise you will see a blank screen when you connect remotely.
To have xrdp log you in to the existing active logged-in local session instead, follow these steps:
First, enable screen sharing in Ubuntu settings and set a password.
Then, edit /etc/xrdp/xrdp.ini like so:
sudo nano /etc/xrdp/xrdp.ini

Then, copy and paste the following at the end of the file:
[xrdp1-loggedin]
name=Local Active Session
lib=libvnc.so
username=na
password=ask
ip=127.0.0.1
port=5900

Then, save the file and close the editor by pressing Ctrl + x then y then Enter
Finally, run in the terminal:
gsettings set org.gnome.Vino require-encryption false

Next, connect from a remote machine and choose Local Active Session from the Session drop-down menu when you see this screen:

Then, enter the password you set for screen sharing and click the OK button when you see the password field that looks like this:


The PPA you linked to is the main PPA for the GNOME team. The 3.12 packages are not yet available there.

If you are willing to deal with possible issues, you can use their staging PPA. Packages there are tested before being moved to the main PPA.

Similar questions seem to be referred to the following question. This is silly because since the latest GNOME is not in the Ubuntu repos, it does not really answer your question (unless you want to build it from source, in which case you can follow the the second answer).

How do I install and use the latest version of GNOME?


Opening Doc file in LibreOffice with password in writing mode

You can toggle the edit mode using this button:

If the file is write-protected, a message will appear. The content of the message depends on the reason for the write protection:

If the file itself is protected (on file system level), you wil be asked to create a copy of that document to work with. To remove the file protection, you will have to change the file's attributes (using a file manager or a terminal using the chmod +w filename command).
If the document is saved with write protection (on application level), you will be prompted for the password that was set when the doc was saved.

Please keep in mind that there may be two (different) passwords set for a certain document. LibreOffice allows for setting separate passwords to open a file and to edit it:

So, even if it's possible to open a password-protected libreoffice doc, there may be another password set to prevent editing.


My NTFS and ext4 partition mounts as read only

From the output of fsck, I can see you are using the Kernel NTFS driver which is a read-only driver.

You need to install (perhaps reinstall) the FUSE NTFS driver called NTFS 3G. The following command should solve your problem:

sudo apt-get install ntfs-3g

After that, either reboot or unmount and remount your NTFS partition. It should be mounted as read write. If it is not the case try forcing the type of file system with the following command:

sudo mount -t ntfs-3g /dev/sda5 /mnt

NOTE: AFAIK there are no fsck tool for NTFS partitions on Linux.


Random disconnects of Wifi (usb-device) after switching from Ubuntu 14.04 to 18.04

i guess your wifi adapter is a usb one.

If so you should tune the usb autosuspend

See those files

/sys/bus/usb/devices/*/power/autosuspend
/sys/bus/usb/devices/*/power/level


Which usenet client would you recommend for binary downloads?

lottanzb  is a nice desktop client that integrates real well with sabnzbdplus  which is a great web-based tool for this sort of thing.

I recommend just setting up sabnzbd and then connecting this to it, the nice thing about sab is that it has integration with a ton of tools, so your phone, media center, etc. work real well with it.


Do terminal tabs correspond to different shells?

export exports a variable to all children of the current shell.

So if you do

somevariable=somevalue
export somevariable
bash
echo $somevariable

you'll see the value of $somevariable in this new shell.

However shells in other terminal tabs are not children of the shell in the first tab, so they won't inherit the exported variables.

The shells in terminal tabs are all children of the gnome process that opened the terminal, so they are "brothers and sisters". You can verify this by calling ps -f in two terminal tabs and looking at the column PPID (parent process ID) of the bash line. In my example both have the parent 5319 which is the gnome terminal process.

tab 1:

$ ps -f
UID        PID  PPID  C STIME TTY          TIME CMD
jean      5329  5319  0 10:36 pts/0    00:00:00 bash
jean      5359  5329  0 10:37 pts/0    00:00:00 ps -f

tab 2:

$ ps -f
UID        PID  PPID  C STIME TTY          TIME CMD
jean      5363  5319  0 10:37 pts/1    00:00:00 bash
jean      5372  5363  0 10:37 pts/1    00:00:00 ps -f

$ ps -f -p5319
UID        PID  PPID  C STIME TTY          TIME CMD
jean      5319  2299  0 10:36 ?        00:00:02 /usr/lib/gnome-terminal/gnome-t


What the "snap" is going on with this symbolic link?

As sergiy mentioned in comments it is a bug with ls not filling in colors properly when window size causes a line to wrap to the next.

You can see it here by changing the window size for sudoedit:

As for the color red itself it's because root becomes the user due to access permissions:

$ llocate /lib/snapd/snap-confine
ACCESS      OWNER  GROUP  SIZE   MODIFIED      NAME (updatdb last ran: 2018-09-26 17:45:05)
-rwsr-sr-x  root   root   98440  Jul 19 04:48  /mnt/clone/usr/lib/snapd/snap-confine
-rwsr-sr-x  root   root   85832  Nov 30  2017  /mnt/old/usr/lib/snapd/snap-confine
-rwsr-sr-x  root   root   98440  Jul 19 04:48  /usr/lib/snapd/snap-confine

Notice root has access rights rws and group has access rights r-s. Everyone else has r-x execute rights. See: rwx Versus rws

Scrolling down further there is another bug example in orange this time:


There's nothing to uninstall. Just delete the directory you got from unpacking the archive and remove the export PATH line from your .bashrc.


Manual way

Works for some systems, though not yours, apparently, since ls /sys/class/backlight/ shows nothing for you. Sometimes instead of intel_backlight you'll have acpi_video0, or something else.

  You can manually change the brighntess level all the way down (to
  disable it altogether) by doing echo 23 > /sys/class/backlight/intel_backlight/brightness as a root. "23" is the desired brightness level. If you put "0",
  the screen will look blank.

From Adam Ryczkowski's comment here, which helped my friend in similar case.

Empty /sys/class/backlight/ means unrecognized hardware

When I noticed your exchange with @Serg, I thought "why would that folder be empty" and search showed this:

  If /sys/class/backlight/ is empty, that means that the kernel thinks
  you have a big bad old CRT attached to the system and that you have to
  turn the big fat knobs named "Brightness" and "Contrast" on the from
  to change... well, brightness and contrast...

source: @Fabby's answer to another AskUbuntu question.


the output for skype is prefixed by un - those two letters are explained in the first two lines.

The first line represents the state the package should be in (according to what command you entered last):

>Desired=Unknown/Install/Remove/Purge/Hold

u stands for Unknown - which means that dpkg has no info on this package.

The second line represents the actual status.

| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

n stands for Not - meaning "not installed"

So your un means: I don't know skype and it is not installed.

in summary:
skype is uninstalled.


UEFI (~EFI) is a firmware interface that is widespread on recent computers, especially those more recent than 2010. It is intended to replace the traditional BIOS firmware interface that is prevalent on earlier machines. This page provides information about installing and booting Ubuntu using EFI, as well as about switching between EFI mode and legacy BIOS mode using Ubuntu.

Installing Ubuntu Quickly and Easily via Trial and Error

If you have a computer that is more recent than 2010 and you do not know whether or not you need to install Ubuntu in EFI mode, you should be able to get Ubuntu installed quickly and correctly using the following steps:

Create a LiveDVD or LiveUSB of Ubuntu (>=12.04.2) 64bit.

In your BIOS, disable QuickBoot/FastBoot and Intel Smart Response Technology (SRT). If you have Windows8, also disable FastStartup.

Boot your PC using the LiveDVD or LiveUSB and choose "Try Ubuntu". If you get a Secure boot or signature error, you may wish to disable SecureBoot then retry to boot the disk.

Install Ubuntu from the Live CD/DVD or Live USB in the usual manner, then reboot the PC.

If the PC does not load Ubuntu (but instead loads Windows, for example, as in Bug #1050940), or if the Windows entry in the GRUB 2 menu does not boot Windows (see Bug #1024383), boot your PC using the Live CD/DVD or Live USB and choose "Try Ubuntu" once again. When the live session has loaded, run Boot-Repair (see link for details). When Boot-Repair loads, click on the "Recommended repair" button, and write on a paper the URL (paste.ubuntu.com/XXXXXX/) that will appear. Then reboot the pc. Do not run Boot-Repair unless you have problems booting the computer; the expression "if it ain't broke, don't fix it" applies to this tool.

This should fix most boot problems. If this does not fix your boot problems, please try to determine if you have accidentally installed a 32 bit version on a system that requires 64-bit EFI version or perhaps installed the right version in legacy mode. If you installed the right version in the wrong mode you can convert it (more on this later)

Installing Ubuntu in EFI mode

Warning: if you are a new Ubuntu user, you may want to follow the advice of the previous paragraph.

Case when Ubuntu must be installed in EFI mode

Having a PC with EFI firmware does not mean that you need to install Ubuntu in EFI mode. What is important is below:

If the other systems (Windows Vista/7/8, GNU/Linux...) of your computer are installed in EFI mode, then you must install Ubuntu in EFI mode too.

If the other systems (Windows, GNU/Linux...) of your computer are installed in Legacy (not-EFI) mode, then you must install Ubuntu in Legacy mode too. Eg if your computer is old (<2010), is 32bits, or was sold with a pre-installed Windows XP.

If Ubuntu is the only operating system on your computer, then it does not matter, you can install Ubuntu in EFI mode or not.

General principle

To install Ubuntu in EFI mode:

Use a 64bit disk of Ubuntu (Ubuntu32bit cannot be easily installed in UEFI mode)

Use a supported version of Ubuntu. Support for UEFI appeared in 11.10, but has become more reliable in next versions. Support for UEFI SecureBoot appeared in 12.10 and 12.04.2.

Set up your firmware (BIOS) to boot the disk in UEFI mode (see the "Identifying if the computer boots the HDD in EFI mode" paragraph below)

Then:
Nothing special is required if you use the automatic installer of Ubuntu ("Install Ubuntu alongside others" or "Erase the disk and install Ubuntu"). Important: if you have a pre-installed Windows and you want to keep it, do not choose "Erase the disk and install Ubuntu".

If you use the manual partitioning ("Something else"), the difference is that you will have to set the /boot/efi mount point to the EFI partition. And if there was not any EFI partition on your HDD, you first will have to create it (see the "Creating an EFI partition" paragraph below).

Identifying if the computer boots the HDD in EFI mode

This is possible only if you have already installed Ubuntu on the HDD, or by looking at the BIOS setup (see paragraph below).

From an Ubuntu installed on the HDD (neither liveCD nor liveUSB), open a terminal (Ctrl+Alt+T), then type the following command:

[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"

Remark: if the result is "Legacy boot on HDD", then either the BIOS is not UEFI type, or the BIOS is not set up to boot the HDD in UEFI mode.

Identifying if the computer boots the Ubuntu DVD in EFI mode

Warning: even if your PC boots the DVD in EFI mode, it might boot the HDD in Legacy mode (and the contrary).

When booting on a 64-bit Ubuntu disk:

If the BIOS is set up to boot the CD in EFI mode, then you will see the screen below:

If the BIOS is NOT set up to boot the CD in EFI mode, or if the disk is not 64-bit, then you will see the screen below:

Set up the BIOS in EFI or Legacy mode

Some recent computers (>2011) allow to set up the boot either in UEFI mode or in Legacy (not-EFI) mode. The way to carry out this setting depends on the computers, but generally this setting is located in the "Boot order" tab of the BIOS (to access the BIOS screens, it is generally necessary to press a key during the PC startup).

Note: Some BIOSes (e.g. American Megatrends' "Aptio", found on the Asus vivobook series) call Legacy mode "Compatibility Support Module" or simply "CSM".

Remark: Some BIOSes allow one to set up the boot mode for the optical drive separately from the boot mode for the HDD.

For example, below:

The "UEFI Hitachi" line allows to boot the HDD in EFI mode,

The "P1: Hitachi" line allows to boot the HDD in Legacy (not-EFI) mode,

The "P3: DVD" line allows to boot the Ubuntu CD in Legacy mode

The "UEFI: USB" line allows to boot the Ubuntu liveUSB in EFI mode.

Here is a 2nd example of BIOS, simpler, where the "Boot Mode" parameter allows one to choose the boot mode ("UEFI" or "Legacy") for all media (hard disk, CD, USB...) at the same time.

Some other firmwares (BIOSes) propose an "UEFI/Legacy Boot:" option with the following choices: [Legacy only], [UEFI only] and [Both]. This last one boots in EFI mode when possible, then in Legacy mode if no EFI files are detected.

Creating an EFI partition

If you are manually partitioning your disk in the Ubuntu installer, you need to make sure you have an EFI partition set up.

If your disk already contains an EFI partition (eg if your computer had Windows8 preinstalled), it can be used for Ubuntu too. Do not format it. It is strongly recommended to have only 1 EFI partition per disk.

An EFI partition can be created via a recent version of GParted (the Gparted version included in the 12.04 disk is OK), and must have the following attributes:

Mount point: /boot/efi (remark: no need to set this mount point when using the manual partitioning, the Ubuntu installer will detect it automatically)

Size: minimum 100Mib. 200MiB recommended.

    Type: FAT32

    Other: needs a "boot" flag.

Identifying if an Ubuntu has been installed in EFI mode

An Ubuntu installed in EFI mode can be detected the following way:

its /etc/fstab file contains an EFI partition (mount point: /boot/efi)
it uses the grub-efi bootloader (not grub-pc)
from the installed Ubuntu, open a terminal (Ctrl+Alt+T) then type the following command:

[ -d /sys/firmware/efi ] && echo "Installed in EFI mode" || echo "Installed in Legacy mode"

Converting Ubuntu into EFI or Legacy mode

Converting Ubuntu into EFI mode

Note: Do not follow this procedure if your computer is already booting correctly. Use this procedure only if you believe you've accidentally installed Ubuntu in BIOS/CSM/legacy mode and you want it to boot in EFI/UEFI mode.

Start Boot-Repair, click on "Advanced options", go to the "GRUB location" tab.
If you do not see a "Separate /boot/efi partition" line, this means that your PC does not have any EFI partition. In this case, exit Boot-Repair, then create an EFI partition (see the "Creating an EFI partition" paragraph above).
    If you see a "Separate /boot/efi partition" line, tick it then click the "Apply" button.

Set up your BIOS so that it boots the HDD in EFI mode (see the ""Set up the BIOS in EFI or Legacy mode" paragraph above).

Source: https://help.ubuntu.com/community/UEFI


agent-state: pending for over 20 minutes

The current version of juju, 1.16.3 addresses a lot of the issues in 1.11.0 - if you haven't already tear down this install with juju destroy-environment, upgrade juju, then attempt to bootstrap again.

If that doesn't work, check your HP account if you have instances actually spun up. If not, consider destroying the environment again then juju bootstrap --show-log --debug to identify what's going on.


Logitech G27 Steering Wheel - feedback not working properly

Unfortunately it is not available directly as a binary, but you can easily compile it using the following commands:

Get some dependencies:

sudo apt-get install libusb-1.0-0-dev git jstest-gtk joystick

Download the source:

git clone https://github.com/thk/LTWheelConf.git

Build the source:

cd LTWheelConf
make

You should now have an executable named ltwheelconf.

Install

sudo cp ltwheelconf /usr/local/bin/

Use LTWheelConf

List all found/supported devices

sudo ltwheelconf --list

Supported wheel shortname values:
'DF' (Driving Force)
'MR' (Momo Racing)
'MF' (Momo Force)
'DFP' (Driving Force Pro)
'DFGT' (Driving Force GT)
'G25' (G25)
'G27' (G27)
Set wheel to native mode

sudo ltwheelconf --wheel <your-wheel-shortname> --nativemode

Set wheel rotation range of 900 degrees

sudo ltwheelconf --wheel <your-wheel-shortname> --range 900

Examples:
Put wheel into native mode:

sudo ltwheelconf --wheel G25 --nativemode

Set wheel rotation range to 540 degree:

sudo ltwheelconf --wheel G27 --range 540

Set moderate autocenter:

sudo ltwheelconf --wheel DFP --autocenter 100 --rampspeed 1

Disable autocenter completely:

sudo ltwheelconf --wheel G25 --autocenter 0 --rampspeed 0

Set native mode, disable autocenter and set wheel rotation range of 900 degrees in one call:

sudo ltwheelconf --wheel DFGT --nativemode --range 900 --autocenter 0 --rampspeed 0

Automagically invokes LTWheelConf
We can add a rule to UDEV to automatically invoke LTWheelConf when the steering wheel is connected.
This can be done using the following command (use the correct shortname instead of !):

echo 'ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c294", RUN+="/usr/local/bin/ltwheelconf --wheel <your-wheel-shortname> --nativemode --range 900"' | sudo tee -a /etc/udev/rules.d/90-logitech-wheel.rules

Now you need to restart UDEV:

sudo service udev restart

Extra information from Elder Geek what can be found here.


boot time increase after upgrading ubuntu 13.10 to 14.04

In Linux there is no defrag, by the way I suggest you to make a document backup and then a clean install of 14.04...this will be the best solution. Or you can try to clean the unnecessary files, tmp etc. with bleachbit.

sudo apt-get install bleachbit
sudo bleachbit

Use carefully.


How do I get Xubuntu to stop asking to upgrade to 15.04

go to Ubuntu software center, then click edit from top left then software sources. in the updates tab the last option is notify me of a new Ubuntu version. choose Either for long-term supported version, or never.


Failed to start ipmiutil ipmi_port service

It is a bug reported here: https://bugs.launchpad.net/ubuntu/+source/ipmiutil/+bug/1643784

You could manually download the newest version of ipmiutil package and install it manually using dpkg -i.
Download available from here: https://launchpad.net/ubuntu/zesty/amd64/ipmiutil/3.0.1-1


Windows has broken and will not boot nor reinstall, need to install ubuntu. Partition questions

It sounds like you want to erase Windows and install Ubuntu on the whole disk. If that is the case, you can choose "Replace Windows with Ubuntu" and the installer will automatically format the drive for you.

Alternatively, you could choose "Something Else," then manually specify that you want to format the whole disk and use a new partition scheme.

Ubuntu will create a new bootloader partition for itself, so you don't have to explicitly make one with the partitioning tool.


I fixed it by changing Blender to "Emulate 3 Button Mouse" and turning off opening context menu by Alt+RightMouse.
How do I disable the alt-right click keyboard binding?
It's just advice for Blender users, I don't find option for turn off scrolling in CCSM. :(


Can't enter BIOS settings after installing Ubuntu (Samsung NP300E5S)

Did you ever boot an older kernel or distribution? If so, you may have hit the infamous Samsung BIOS bug documented in bug #1040557.

You might need to reflash the BIOS, comment from that bug report:

  This topic is probably not Ubuntu related, but any UEFI linux distro.
  What I found out so far: Notebook: Samsung series 3 NP300E5C-A05DE
  (German), BIOS-ID: RAC, current version: P05RAC

  Installed Linux Mint 13, MBR mode. Later converted to GPT/UEFI - all
  seemed ok. Device booted ok, but then I recognized, that I was unable
  to enter the BIOS Setup with F2 anymore.

  What still works: F3 to boot from CD, FAT32-Stick with EFI-Shell v1.0
  saved as \EFI\BOOT\BOOTx64.efi (2.0 does not work even if BIOS version
  is UEFI 2.31)

  My fix: CD with WinPE, then flash BIOS (if using Samsung Flasher need
  to remove version check is BIOS is current, or directly use WinFlash)

  What's causing this?

  After I fixed my BIOS I tried to re-enable UEFI booting my linux using
  "efibootmgr", which instantly messed up my BIOS again (but I need
  stuff like that twice...)

  So I messed around with HexEdit and efishell and found 10 - in words
  TEN - efi boot entries within the Samsung BIOS, that are not even
  shown in "efibootmgr" - the first Entry is "Setup", second is
  "Recovery", third is "CD-ROM" and so on, so it seems like Samsung is
  misusing those hidden bootentries for their own stuff, putting the
  Setup into the first boot entry, which will be overwritten by
  efibootmgr - explains why it was still booting, but unable to enter
  Setup.

  Since I found the key assignments to these entries within Samsung
  related BIOS modules, they are responsible for this non-standard
  stuff. Thank you, Samsung.

  My stuff still does not explain complete bricks like others have
  encountered. But maybe the hint with the version 1.0 efishell might
  help, or even pressing F3 still helps, if the BIOS is not bricked
  completely.

  For all the Linux EFI programmers: Those bootentries are there, but
  only shown by efishell. Why does the nvram-module in linux not show
  them? Maybe there is an unusual way to get them from the nvram - if
  you could check them you should be able to avoid these bricks..


Is it possible to run GUI programs without a desktop installed?

The Xorg server is what takes care of drawing a graphical environment. When Xorg is launched, it also launches an application with a GUI. When this application exits, so does Xorg (if I recall correctly). In Ubuntu, this application is the Unity desktop environment.

You should be able to install a barebones Xorg server, and use the command line (I think xinit gedit should do it) to make it launch the application you want. Alternatively, you can install a lightweight window manager like Openbox. These are typically less user-friendly than full-blown desktop environments like Gnome, Unity and KDE Plasma, but they are also a lot smaller and faster.


PuTTy connection time-out? (Ubuntu Server 14.04)

Well I'm no Vbox expert, but i think if you want Adapter 1 bridged then host-only network shouldn't matter. Make sure that Vbox its bridged to the correct interface (the one on 192.168.0.37 and NOT host-only network). If you want it bridged then it should be on the same subnet as your windows 192.168.0.37 subnet 255.255.255.0 network. If your Windows box gets it's IP automatically, then make sure your guest Ubuntu is also set to automatic, if not pick a free IP in 192.168.0.1-254 range and statically assign it to your guest Ubuntu (instead of setting it to 10.0.2.15)


There are now packages in the Thunderbird Next PPA for 3.3 alpha 2: https://launchpad.net/~mozillateam/+archive/thunderbird-next

This PPA will also contain future alpha and beta releases of Thunderbird 3.3


To do so, open Tools > Options > LibreOffice > User Data, fill in the name fields and click OK. Save the file just to be thorough.

Now, whenever you open a file, the insertion cursor will be at the same point as when you last closed the file. If that happens to be at the end of your document, that's where the cursor will be.


The application you are after is the slightly 'retro' looking application Midnight Commander, which will do what you are looking for and much more with a slightly 'nano' looking interface.

As a quick demonstration I add a screenshot here that demonstrates the movement of three files (selected with the '+' key) being moved to a sub-directory (using a menu accessed with the F6 key):

Midnight Commander takes a little work until you come fully to grips with it but an excellent starting guide can be seen here... From this same page comes the following summary of Midnight Commander's capabilities:

Performs all the common file and directory manipulations such as copying, moving, renaming, linking, and deleting.
Allows manipulation of file and directory permissions.
Can treat remote systems (via FTP or SSH) as though they were local directories.
Can treat archive files (like .tar and .zip) as though they were local directories.
Allows creation of a user-defined "hotlist" of frequently used directories.
Can search for files based on file name or file contents, and treat the search results like a directory.

Makes me think that I should be spending more time with this great application :).

References:

LinuxCommand.org: Midnight Commander A great introductory page on the usage of Midnight Commander.


How to reuse ubuntu (installed on USB HDD) on another computer?

You probably have a video issue on the new PC.  Boot the USB, then switch to one of the virtual terminals with ctrl alt Fn1 (or function keys 2 through 6 should work too). Look at the modules with:

lsmod | sort

and see what proprietary video drivers you are using, and remove them with:

sudo apt-get purge <the proprietary video driver>

See if rebooting gets you to a working video, maybe add "nomodeset" to the grub command that starts with "linux"
Add any new proprietary video (wireless gets the same treatment) drivers.

With the same video chips, and it working in recovery mode, may be an X problem.  Look at /var/log/Xorg.0.log (or others with higher numbers) for any errors. Does the guest session work?  If so, maybe some config problem down in your .config directory.


This issue is resolved with changes in MAC controller Driver changes, from 100MBPS to 10MBps, and protocol change from UDP to TCP in fs/nfsroot.c and port no used for NFS boot.

--Regards
Satish.G


mount error(115): Operation now in progress. Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Three issues with that tutorial:

the default share is not MyPassport but Storage
the server needs to be forced to SMB2 protocol only, due to the notorious vulnerabilities of SMB1, using ssh access and changing the relevant smb-global.conf
mounting then requires -o guest,vers=2.0


ubuntu tweak menus in chinese please help

no idea if anyone has had this problem, I saw many post from people frustratred by chinese language installed by default in ubuntu 12.10 and taking over even terminal and so on. I'm a n00b so I dont know much about linux.

in the end I solved the problem by simply moving the chinese in Language support down the list (pull). Put English as second language and when I re-installed UT menus were in English (some sub-menus in Romanian) but at least there are no more chinese characters, so, problem solved.

I would not delete this issue however, there seems to be a lot of people who experience the presence of chinese support even when the language pack is neither installed, nor ticked as active.


Password required to suspend in Kubuntu after the latest upgrade

It's fixed now. Maybe these were some cache issues.


Where you downloaded the file should have also had instructions.  https://www.torproject.org/projects/torbrowser.html.en#linux

A tar.xz file is a tarball. You can extract it using the tar command, then change working directory to the new directory and run the start-tor-browser script

$ tar xf tor-browser-linux64-4.0_en-US.tar.xz
$ cd tor-browser_en-US/
$ ./start-tor-browser


path to javaldx not found (error on libdbus-glib-1.so.2) but JRE is available

I just ran into this issue with the latest libreoffice on a production machine.

LibreOffice 5.1.6.2 10m0(Build:2)

To fix:

sudo apt -y install libreoffice-base

This will install all the requirements for libreoffice including the java-jre


Ubuntu 16.04 doesn't handle Macbook keyboard

Here's the fix that worked for my MacBookPro 12,1 (Retina) on Xubuntu 16.04 LTS "xenial" running kernel 4.8.0-51 generic

Back up before editing:

nano /usr/share/X11/xkb/symbols/pc

Comment out

key <LSGT> {    [ less, greater, bar, brokenbar ] };

and add

key <LSGT> { [ grave, asciitilde, grave, asciitilde ] };

Apply the change

rm -rf /var/lib/xkb/*

Logout/login.

Thanks to Timofey (source here)


Updated Ubuntu to 16.04 and the new Libreoffice messed up my previous version document

Try to change your fonts, preferably by changing Default style. The old font you have used may not be supported now, either by Ubuntu or by loffice, and the replacement seems not what you wanted.


Photoshop in wine does not start - graphics driver problem?

What Photoshop version is it ?
As says  https://www.winehq.org/help : "If you want help with a single application our Application Database is a good place to look."   Example: https://appdb.winehq.org/objectManager.php?sClass=application&iId=17


18.04 updates break the grub and prevent booting

Same issue after a series of trusted updates on two Dell Precision 5820s.
The first has two OSs on separate 2 TB drives:

sda=Ubuntu18.04
sdb=Windows10

The second has three OSs on separate 2 TB drives:

sda=Ubuntu18.04
sdb=Fedora31
sdc=Debian9

On the first I ran the following :

sudo apt update
I invoked Software Updater.
I allowed it to update all.
when it came to updating GRUB, it asked whether I wanted to replace mine, stay with the local, or compare the two. I chose to compare the local and the new, which sounded simplea console readout stating Setting up shim-signed (1.37~18.04.3+15+1533136590.3beb971-0ubuntu1) ... when doing some update (even though I said NO to doing that!) and required a restart to free up the system.
When back in, I opened a terminal and ran sudo update-grub
I restarted again and got in.

The second system (in sync since both running from yesterday's Dell Restore flash install that overcame the "login loop" caused by AMD not getting their drivers in before Dell froze the system release with the 2100X graphics card endlessly awaiting login input which could not be read in 16.04 code/kernel) was different because I said (at the same query about a GRUB update) that I wanted to stay with the local one which allowed me to select/run my three OSs.
After a restart it gave me errors on all three, which tells me GRUB is broken (as is the Software Installer code)

Ubuntu: I used F12 to bypass the GRUB menu, and selected Ubuntu but it failed.

0.3294701 Kernel offset: ...
0.3294911 --- [ end Kernel panic - not synching: VFS:
Unable to mount fs on unknown-block(0,0)

So I rebooted.
Debian: I used F12 to bypass the GRUB menu, and selected Debian, but it failed.
It went to the System Tester window which I hit Esc to leave, and then rebooted.
Fedora: I used F12 to bypass the GRUB menu, and selected Fedora. At first, it seemed fine.
I got in and it auto-updated.
Then, it went into the EFI menu, where I again selected Fedora.
It got to the purple Ubuntu lo-res screen and hung up there.

This is tiring. There is supposed to be not-the-coder QA'ing of the release process and full regression (and build, and acceptance, and release) testing, esp. on all areas affected by modified code, adding new tests for new code! This is starting to look like the model of Microsoft and Apple releases, where once it is working, I dare not ever click [Ok] to update queries for a well-founded fear of getting an untraceable and fatal (no work-around) high priority/high severity "issue" wasting more of my time, wherein I have to do the QA and testing someone else skipped.

That is not how releasing is defined by ACM, IEEE, ISO, SQA, et. al. I have to replace an unsaved file on a system that cannot be logged into, i.e., reinstall after zeroing out.


Apache not running, even after purging and reinstalling

You have a syntax error on line 2 of /etc/apache2/mods-enabled/php7.0.load. It reports that lib /usr/lib/apache2/modules/libphp7 cannot be found

Try disabling php or php7 with the following command and see what happens.

sudo a2dismod php
sudo service apache2 start

From the looks of it you have not installed the all the necessary php packages. Or the php install is corrupted. Typically,

sudo apt-get install php libapache2-mod-php


There is a ufw GUI named gufw and it's easy to use, install gufw by running:
sudo apt install gufw

I don't think it will cause any problem with clamav if you allow outgoing traffic.


The rules in the startup rules file are just that, startup rules. Changes can be made to the rules after startup by you or any other process with root privileges. Run iptables-save (or iptables -L if you don't have -save) from a console to see what the rules currently are, while the problem is occurring, and you'll find a rule blocking your traffic. Determining where that rule is coming from is a much more daunting task. At the simplest level, there could just be an iptables -I ... port 443 DENY somewhere later in your init scripts.


From the error message:

INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used

And your processor is an i686

See:

http://www.linux-kvm.org/page/Processor_support

and

http://www.linux-kvm.org/page/FAQ#Are_64bits_processors_supported_under_KVM.3F

So to use KVM you need to upgrade your processor

You can use Virtualbox and qemu, but they will be slower then KVM


How do I Upgrade from Ubuntu 12.04.1 LTS to 12.10?

Go to System Settings -> Software Sources & Updates tab -> Notify me of a new Ubuntu version -> in drop down list select "For any new version" and Close.
Open up the Software Updater and check for updates. After that you will see the 12.10 version of ubuntu on software updates. Click upgrade.


How to find .php files with numbers in the filename

Since the number of digits before the extension is not fixed, using find:

find /path/to/target/directory -type f -regextype posix-basic -regex '.*[0-9]\.php'

If you need to match the extension case-insensitively:

find /path/to/target/directory -type f -regextype posix-basic -iregex '.*[0-9]\.php'

user@user-X550CL ~/tmp % tree
.
├── file100.php
├── file10.php
├── file1.php
├── file1.PHP
└── foo

0 directories, 5 files
user@user-X550CL ~/tmp % find . -type f -regextype posix-basic -regex '.*[0-9]\.php'
./file1.php
./file10.php
./file100.php
user@user-X550CL ~/tmp % find . -type f -regextype posix-basic -iregex '.*[0-9]\.php'
./file1.php
./file10.php
./file1.PHP
./file100.php


VLC could not read the file input/output error

You need to make sure that VLC knows it's playing a VCD and its using a 'CD' device (not a 'DVD').

In VLC just go to 'Media' -> 'Open Disc', then select 'SVCD/VCD' and change the Device setting to the appropriate 'CDROM' device.

Hit 'Play' and you should have more success.

Or this should help also:

media>open(advanced)>disk>svcd/vcd>disc Device- change to /dev/


Why are some .desktop files prefixed with "org.kde." or "org.gnome."?

Desktop Entry Specification
https://standards.freedesktop.org/desktop-entry-spec/latest/

  File naming

  The name of the desktop entry should follow the "reverse DNS"
  convention: it should start with a reversed DNS domain name controlled
  by the author of the application, in lower case. The domain name
  should be followed by the name of the application, which is
  conventionally written with words run together and initial capital
  letters (CamelCase). For example, if the owner of example.org writes
  "Foo Viewer", they might choose the name org.example.FooViewer,
  resulting in a file named org.example.FooViewer.desktop.

Example

Dolphin KDE file manager had desktop file: 'dolphin.desktop' but with the 2014-10-07 commit - Convert to reverse dns https://cgit.kde.org/dolphin.git/commit/?id=a705337fab20e230a3f990624f5f7de3b2468b3f

the desktop file was renamed:

  src/org.kde.dolphin.desktop (renamed from src/dolphin.desktop)

About freedesktop standards

freedesktop.org: https://www.freedesktop.org/wiki/

  freedesktop.org is not a formal standards organization, though some
  see a need for one that covers some of the areas we are working on.
  For Linux operating system standards, look at the Linux Standard Base
  project. The X.Org Foundation and the IETF are other groups that do
  formal standards. The Free Standards Group is one group that publishes
  "de jure" standards for free software; freedesktop.org is loosely
  affiliated with the FSG.

  Unlike a standards organization, freedesktop.org is a "collaboration
  zone" where ideas and code are tossed around, and de facto
  specifications are encouraged.


Will Ubuntu Touch be updated to a Lollipop base?

Please visit the dedicated forum: Ubuntu Phone and Tablet
You'll find a lot of answers because ubuntu-touch is always evolving and new devices are ported every day.


Where can I find the keyboard shortcut settings for the brightness keys?

I think that the keyboard/screen dimming and brightening controls are not considered as shortcuts, the shortcuts in this settings menu are ones that you can add for a specific(personnalized) action, not an action that affects the hardware(brightening...)


Why is Google Chrome displaying artifacts in YouTube?

This is because of a documented, gpu compositing bug: Issue 164555: Flickering rectangles like a swarm of bees when watching youtube and vimeo videos. On affected systems, yellow snow is seen when viewing Flash videos and orange snow is seen when viewing HTML5 content.

It involves the Pepper version of Flash and certain Mesa drivers.

Running Chrome with the Pepper Flash but with the --disable-accelerated-compositing switch stops the snow from appearing but WebGL function will be lost.

The other Flash, NPAPI Flash, also used by other browsers such as Firefox, isn't affected possibly because "the NPAPI plugin doesn't use the GPU process and probably just provides software rendered frames".

There are thus two workarounds:
disable the Pepper Flash and enable NPAPI Flash (if it is installed)
or
continue using the Pepper Flash but with the --disable-accelerated-compositing switch

Read the bug for full details.


How to find out what an action is called in gimp's Batch Image Manipulation?

Try gimp-image-flatten for the whole image (this also merges all layers), or gimp-layer-flatten to remove the transparency of a single layer.


Accidentally hid a notification in xfce4-notifyd

My answer is based on Mik's** very thorough response here: What is dconf, what is its function, and how do I use it?.

I'm assuming that your Xubuntu is a default one and that you are using Network Manager with nm-applet.

To reverse the action of clicking "Never show this notification again", open your terminal and paste in the following:

gsettings get org.gnome.nm-applet disable-vpn-notifications

The status will be returned to you. In my case, the response is "false".

In your case, to revert to seeing the notifications again, now paste in the following:

gsettings set org.gnome.nm-applet disable-vpn-notifications false

Alternatively, you could just reset the value to the default by using:

gsettings reset org.gnome.nm-applet disable-vpn-notifications

You may need to disable networking and renable it or log off and log in again or reboot for the changes to take effect.

Edit: there is a GUI if you want to avoid using the terminal. It's called dconf editor and you can get it from the software center or by running:

sudo apt-get install dconf-tools

Again, Mik's answer describes its usage but, at least in the past, there have been instances of confusion: an example is here: Are dconf schema names case-sensitive?.

**Mik has asked for his account to be deleted according to this.


Are $ reboot and $ shutdown -r now different?

The manpage for reboot says:

  When called with --force or when in runlevel 0 or 6, this tool
  invokes the reboot(2) system call itself and directly reboots the
  system.  Otherwise this simply invokes the shutdown(8) tool  with
  the  appropriate arguments.

So in most cases reboot just calls shutdown -r.


Ubuntu on old Macs - does it stop the "planned obsolescence" slowdown inherent on the software or is it a hardware issue?

Old HDDs become slow, and old batteries lose their ability to store energy. I don't think other components of a computer would have planned obsolescence built into them.
4 GB or greater memory (Intel Macs)
If you have enough memory, any recent version of Ubuntu should run well on an Intel Macs.
2 GB or less memory (Intel Macs)
If you have 2 GB memory or less, you should stick to a variant like Xubuntu or Lubuntu instead.
Alternatively, unless you need to regularly connect it to the internet, you can also use a slightly older version of Ubuntu (or its flavors).
PowerPC 64 bit
Ubuntu does not officially support PowerPC. Use Debian instead.
32 bit Intel Macs
Since recent versions of Ubuntu has dropped support for 32 bit processors, you can either stick to Lubuntu/Xubuntu 18.04 (not anymore supported), or use Debian.


Did you reboot the computer? The change to take effect needs your computer to be rebooted afterwards, a gear icon will be shown and then you can select the appropriate "GUI" you desire.


These are GECOS data, and are stored in /etc/passwd, in the fifth field as a set of comma-separated values:

$ getent passwd pulse
pulse:x:115:122:PulseAudio daemon,,,:/var/run/pulse:/bin/false

They can be modified using the chfn command (preferably), or the usermod command.

I don't know if there are utilities to get a particular field directly, but you can parse the output of getent passwd or finger.


no Terminal commands are working at all after install of Lubuntu 14.04

Usually, all user commands are in /bin and /usr/bin or /usr/local/bin directories. So if it is not in your path try to add directories to your search path as follows:

export PATH=$PATH:/bin:/usr/local/bin


Sometimes Windows 7 NAS cannot be mounted

Your NAS is being mounted with the auto option. This is known to cause problems on some system setups. You could fix this issue by adding the noauto option to your mount options:

//Hall/Share /media/HallShare cifs credentials=/root/.smbcredentials,noauto,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

However, this way your NAS will be mounted but not bound at boot at all, so you'll have to take another step: in a terminal type

gksudo gedit /etc/rc.local

At the end of the file, add the following line before the exit 0 (if not there, be sure to add exit 0 at the very end):

sleep 20

mount /media/HallShare

Save the file, reboot and you should be all set!
Good luck!

(For reference: https://wiki.ubuntu.com/MountWindowsSharesPermanently)


Having trouble installing old school runescape

I recommend you to use Webup8 Oracle Java8 Installer

 sudo add-apt-repository ppa:webupd8team/java -y
 sudo apt-get update
 sudo apt-get install oracle-java8-installer

To automatically set up the Java 8 environment variables

sudo apt-get install oracle-java8-set-default

Check It

java -version

Then try run the install as you did before. This should help :-)


How do I get a HP LaserJet 5N printer working?

Try just adding the printer in Ubuntu; the Add Printer wizard may be able to find a driver for you.


Just do:

    sudo apt-get install aircrack-ng


Lubuntu 15.04 & Windows 10: expanding partition

It looks like your Windows system was hibernated and not actually shut down. That causes issues for Linux's ntfs3g driver. So, you need to boot back into Windows and shut it down cleanly.

In their infinite wisdom, the Microsoft developers decided to make it hard for users to shut down their machines. According to this site, you need to:

  Mouse over the little gadget in the lower right corner of the screen. (You can also move your mouse cursor to the upper left corner;
  same result. Or, you can press Windows-C on your keyboard.)
  In the slide-out menu (known as the Charms Bar) that appears, click Settings.
  Click the Power button, and then click your desired action: Sleep, Shut down, or Update and restart.

That's for Windows 8 though. This site seems to suggest it is "easier"  on Windows 10:

  Click on start button to pen the Start Menu
  On top of it, click on ‘Power Options’ button next to your name (check the screenshot below) and click on ‘Shut down’ or ‘Restart’,
  (Sleep option is also available, which you can use it, if you want).

Anyway, assuming Windows actually allows you to shut down your machine, you can now reboot into Linux where gparted should be able to correctly read and resize your drive. It should look something like this:

While I have actually used gparted to resize NTFS partitions several times and have never had a problem, as always, you should backup your data first.


Can I use binaries compiled for Scientific Linux on Ubuntu?

No and yes...

No, Scientific Linux is based on Red Hat and they use .rpm-packages; and Ubuntu is based on Debian, so you need .deb-packages.

But you can try to use alien to install/convert foreign packages: https://help.ubuntu.com/community/RPM/AlienHowto

but IMHO compiling it yourself is definitely the better way...!

there were some problems/questions installing root-system in the past, so i link them here (maybe they are helpful):
How do I install root-cern?
Problem trying to install ROOT (by CERN) on 11.04 i386
How to install ROOT cern on Ubuntu 15

maybe also the obviously discontinued project Cern Root debs is worth a look: https://sourceforge.net/projects/cernrootdebs/

but no matter which method you use for installing (or also compiling)... with a 6 years old package/source on an actual system you might get stuck in a dependency hell.


Is setting default mount options for udisks really not possible?

I think there isn't.

But you can try a workaround: using udev rules to override the udisks options by creating your own /etc/udev/rules.d/*.rules file; for details see this great Archlinux site.


You are looking for cron
cron is the general purpose utility (that comes with Ubuntu) to schedule running any command of your choice at some regular intervals. The cron is configured and controlled via crontab. Understanding how to use `crontab will take some time. Before we go any further see https://help.ubuntu.com/community/CronHowto for how to use crontab.
Use crontoab to Schedule shutdow Every Night at 21:30
We want to run the script with administrator privileges. So we use sudo before crontab.. Open a terminal by pressing Ctrl+Alt+T and enter:
sudo crontab -e

This command will open the crontab file for the root user if one exists, or create a blank new file. Add the following line at the end of the file:
30 21 * * * /sbin/shutdown -h

Each line in crontab has five time-and-date fields, followed by a command, followed by a newline character ('\n'). The fields are separated by spaces. The five time-and-date fields cannot contain spaces. The five time-and-date fields are as follows:

minute (0-59),
hour (0-23, 0 = midnight),
day (1-31),
month (1-12),
weekday (0-6, 0 = Sunday).

Therefore, 30 21 * * * means at 21:30 everyday.
If you use nano as the text file editor (the default), exit the editor by pressing Ctrl+X. The editor will prompt you to save the changes. Press Y and then press Enter to select the default file name.
Note we need to specify the path of the program we call via cron, in this case shutdown. Second, we don't need to specify the time as an argument to the shutdown command, as the command will be executed at that time every day by cron.
Other solutions
Similar questions have been asked and answered before:
How can I shutdown the system every day at a specific time
What shutdown timers with/without GUI are there available?
Hope this helps


Change from qwerty to azerty in command line

This should set your keyboard to azerty in a terminal emulator:

setxkbmap fr

If on a console, that would be (as root):

loadkeys fr


How do I install a keyboard layout indicator in awesome WM?

This answer was written against a previous revision of the question, and is kept here for historical purposes.

You can make the settings persistent by editing /etc/default/keyboard.

So fot the layouts:

XKBLAYOUT="us,ru"

and for the switch options:

XKBOPTIONS="grp:switch,grp_led:scroll,grp:ctrl_shift_toggle"


How to show a notification if a startup application (or process) failed to start automatically

The solution below is not specifically for Lubuntu, only the way to set an application to autostart from GUI is a bit different, since Lubuntu does not have the Startup Applications application, like Ubuntu.

Check if a script has started within a certain time limit from login

With the script below, you can check if a script started successfully, within a certain time limit from login. If the startup(s) was unsuccessful, a message will appear, mentioning which of the scripts did not start successfully. You can use it to check on multiple scripts or processes in one step.

After the time limit has passed and sent its message, the script terminates

How to use

Copy the script below into an empty file, save it as proc_check.py in a permanent :) location.
In the head of the script, set the list of processes (script names) to keep an eye on, and set the time limit.
Make sure the processes (to check) are not running, and test-run the script with the command:

python3 /path/to/proc_check.py

It should send a warning after the time limit has passed.
If all works fine, add the command below to your Startup Applications:

python3 /path/to/proc_check.py

Note:

If you have notify-send available (sudo apt-get install libnotify-bin), you can also uncomment the before-last line, to get a confirmation if all went well:

The advantage of that is that you will either get a notification that all went well, or a warning, mentioning which of the processes did not start up successfully.
You will notice then if you accidentally moved this script. :)

The script

#!/usr/bin/env python3
import subprocess
import getpass
import time

#--- set the processes (script names) to check below
procs = ["pscript_2.py", "monkey.py"]
#--- set the time limit below (seconds)
wait = 30
#---

# define the user to fetch the current user's process list
user = getpass.getuser()
# create an (empty) list of succesful process startups
succeeded = []

def get():
    return subprocess.check_output(["ps", "-u", user, "ww"]).decode("utf-8")

t = 1
while t < wait:
    # add succesful processes to the "succeeded" list
    for p in [proc for proc in procs if proc in get()]:
        succeeded.append(p)
    time.sleep(1)
    t = t+1

# list the failures
fails = [p for p in procs if not succeeded.count(p) > 2]
# if there are any, send a message
if len(fails) > 0:
    subprocess.Popen(["zenity", "--info", "--text", "failed to run: "+(", ").join(fails)])
# if all was successfull, send a message; n.b. comment out the line if notify-send is not available
else:
    # subprocess.Popen(["notify-send", "All processes started succesfully"])
    pass


Install scratchbox2 package in ubuntu 17.04/16.04

From scratchbox2:

Git clone the repo:

git clone http://git.gitorious.org/scratchbox2/scratchbox2.git

Then,

cd scratchbox2

Next,

dpkg-buildpackage -rfakeroot

Finally,

cd .. && sudo dpkg -i libsb2*deb scratchbox2*deb

Dependencies:

dh-make


Is there OCR software for HP Laserjet Pro MFP M130A multifunction printer?

assuming you have the correct HPLIP installed gscan2pdf from the Ubuntu Software Center has an OCR facility.


Old screenless notebook with ubuntu v.14: sudo password

You could remove the hard disk and attach it to a different computer, then reinstall to the new hard disk (or just change the password, or just wipe the drive), finally replace the hard disk in the original notbook.

Alternatively, try different external monitors - you may find one which is happy to show the BIOS screen.


It possible to reformat Ubuntu Hard drive without Live Disk?

You can format any disk that is not mounted.

On an active system you can also use rm, dd, cp and cat. Examples  (Yes, these will kill your system so you are warned (and yes I left the command needed in front of these out of them on purpose):

rm -rf /
dd if=/dev/urandom > /dev/sd{xy}
cat /dev/urandom > /dev/sd{xy}
cp /dev/urandom /dev/sd{xy}

There are more methods, you can use the utility wipe, shred, the badblocks command, or scrub.

{xy} are the device letter and number (ie. sda1, sda2 etc).

/dev/urandom is a bottleneck. I found this on u&l from Gilles <3

openssl rand $(</proc/partitions awk '$4=="sda" {print $3*1024}') >/dev/sda

is very quick (it messes up a complete disk).

Alternative: you can also format a partition from the grub rescue prompt with fdisk and parted (parted is the command line version of gparted).

If the intention is to throw away the disk: the only good method is to hammer a nail through the disk. Formatting can be made undone, a shredding tool should be used since those do more than 1 run over the whole disk writing digits at random making it impossible to restore.

And to add to this: SSD's have a high failure rate in deleting data from a disk. The best erasing method for SSD's is ATA secure erase but this is buggy (Paper related to this: 12 disks, 8 have ATA secure erase, 3 of those had a buggy implementation and 1 reported the disk was cleared but the data was still there).


Joomla on Ubuntu 12.04 Warning: Failed to move file! error

You have a file permission problem.  Your template folder or the whole joomla folder on the server appears to not be setup to allow the browser agent to change the folders.  Depending on what server you're using (Windows based IIS or Unix based Apache), this article may help or at least point you in the right direction.

You can check the permissions on a folder or file by locating the folder or file on the server (through FTP if on a remote server or directly if on a local server), right-click, select properties, and the permissions/security tab.  You may have the option to select permissions from a list or to enter the numeric code of a permission.

In the article above, the numbers 755 and 644 are number codes for file permissions.  See this article for an overview of Unix/Linux file/folder permissions.  It explains the number codes.


I was able to crack this with an obvious solution.
python manage.py runserver 0.0.0.0:8000

Then clicking on http://10.158.109.84:8000/ from the host computer browser worked.
However, I am yet to find a solution on how to access the development server from other computers on the network. If anyone has some Idea please answer and I will delete this.
Thanks.


Possible drag and drop files from windows 7 virtual machine in vmware?

From what I know and I have only used VMware workstation 6 and above. You need to install VM tools here is a link to your version.

www.vmware.com/support/ws4/doc/new_guest_tools_ws.html


Note: this answer works with the current stable source, but if you are using git you may need a new version of glib-sharp not provided by the repositories (see the end of the answer).

Using apt-cache we can search the required library with:

apt-cache search 'glib-sharp*'

which returns, among other files:

libglib2.0-cil-dev

So I should install this package and the other required packages with

sudo apt-get install libglib2.0-cil-dev libgconf2.0-cil-dev libgconf2-dev

and sudo apt-get build-dep banshee.

The package for libglib2.0-cil-dev, for example, notes that

  This package provides the glib-sharp assembly that allows CLI (.NET) programs
  to use the GLib utility library 2.12. This is mostly useful for the GTK+ and
  GNOME bindings.

It is also probably best to check the official Banshee requirements, and check that you have got all the required libraries as noted at the official site; if you are compiling the development version, other files and newer versions of them may be needed.

I just did a successful configure with the latest stable source and only had to install a couple of extra things:

sudo apt-get install boo libboo-cil-dev mono-gmcs

The latest stable version shouldn't require glib-sharp-3.0; in the configure report is the following:

Banshee-2.6.0:

(glib >= 2.22, gio-sharp >= 2.22.3, and gtk-sharp-beans)

However, if you are compiling from Git you will need to run ./autogen.sh instead of configure, as noted on the official site. You may also need to get the glib-sharp-3 file in this case from other sources or even compile some libraries, as the files you want may not be available in the repositories, so the git sources here might help.


Should be USB stick drives be hot to touch when idle?

When you plug in any USB device, the first thing that happens ("first" is enforced by plug design), is that the computer supplies power (+5V  GND) to the USB device.
The USB device runs a tiny computer to communicate with the computer.
The first message sent is "I am a disk/mouse/keyboard/NIC/...", and here's how we'll communicate.
Then, the tiny computer devotes its attention to behaving like a "disk/mouse/keyboard/NIC/..." and communicating with the host computer via the appropriate USB protocol.
In your case, it's pretending to be a disk, ready to accept "disk" commands via USB.
Running the tiny cpu takes power, and dissipates heat (see "Laws of Thermodynamics").
Is it excessive power usage? Will the USB device frogboil itself?
Probably not, but YMMV.
Power dissipation is a concept known to Electrical Engineers and Product Designers.


Is it possible to re-install a package or see what changed?

You can reinstall a package using apt by running sudo apt install --reinstall package-name. For example sudo apt install --reinstall postgresql

As for seeing what the diff is, the best option would probably be to save a copy of the config file as soon as you install the package, and then compare the modified version again that one.


How do increase the swap size of my Wubi installation?

Just follow the Wubi Guide. While some of the other answers may work, you must make sure you don't create the swap file on the loop mounted device, which may see  decrease in performance.

See https://wiki.ubuntu.com/WubiGuide#How_do_I_increase_my_swap_space.3F

  How do I increase my swap space?

  The following will increase your swap to 2 GB. Replace count= with the
  number of kilobytes you want for your swap file.

sudo su
swapoff -a
cd /host/ubuntu/disks/
mv swap.disk swap.disk.bak
dd if=/dev/zero of=swap.disk bs=1024 count=2097152
mkswap swap.disk
swapon -a
free -m


Find the user under which a Ubuntu service runs?

You can use ps -ef to known who is running cassandra.

All services are located in /etc/init.d/.

If you are not running cassandra as a service, you can search where is the program with the whereis command:

$ whereis cassandra


Frequency scaling on AppliedMicro's Mustang

I solved the problem. I found the drivers from the kernel provided from AppliedMicro, compiled them as an external module, and loaded the module.
Everything works smoothly.


Mounting CIFS problem with Ubuntu Server 16.04.1 and SMB3.0 share from Windows Server 2012 R2

I found out what the problem is. As I suspected, the Data Access Encryption was the problem. When will it be a feature in Samba? I'd prefer if I could encrypt data access.


Dependency issues while installing PacketTracer

as it said you need to install packets it depends on

sudo apt-get install qt-at-spi

however if it depends on something else you should install it too...

it seems it is only on xenial and bionic
https://packages.ubuntu.com/source/bionic/qt-at-spi

However you can compile it from git maybe :

https://salsa.debian.org/a11y-team/qt-at-spi

or there maybe any other package it can satisfy the requirement ...

Try to contact with the coder of packettracer ...


How do I set up a local domain name in Apache and Ubuntu, eg website.sam?

It turns out there are quite a few steps involved in getting this working. Here is how I solved it:

Edit /etc/resolve.conf to set your domain name resolution to your local machine by commenting out any existing lines and adding nameserver 127.0.0.1. After this line add another line containing a secondary dns server for resolving other sites, eg nameserver 8.8.8.8. Some program also overwrites this file every time you boot, so you can use chmod 0444 /etc/resolv.conf to prevent this from happening (there might be a better way to achieve this).
Install dnsmasq, and at the end of /etc/dnsmasq.conf add a line address=/your-custom-local-domain/127.0.0.1
Create a new apache site config by placing a file called localdomain into
/etc/apache2/sites-available with the text at the bottom of this answer.
Run the following command sudo a2ensite config localdomain.
Reboot apache, and create a new folder in ~/ called Sites.

<VirtualHost *:80>
    ServerName 127.0.0.1
    ServerAlias *.your-custom-local-domain
    VirtualDocumentRoot /home/%2/Sites/%1/
    #ErrorLog /home/%2/logs/error.%1.log
</VirtualHost>

Now any new folder you create in the sites directory should be mapped to foldername.your-custom-local-domain.


HDMI outputs appears as “unavailable”, but running aplay command, it plays!

There is a script
According to OP Gustavo Moeira's comment above, there is a script available to workaround this issue. The script is available at:
https://gist.github.com/bassmanitram/495fd35b76083f0c4a79777b8ab470fd
I have no idea what this script does. As with anything on the Internet, one should understand and verify if it is safe before using it.
Hope this helps others with this problem


Use Automatic (DHCP) addresses only instead of Automatic (DHCP) in the drop down


Stop jackd by clicking "stop" in qjackctl  or running this command in a terminal:
killall jackd
then  if pulseaudio was stopped,  run this command:
pulseaudio
"Standard" audio should be back.
Pulseaudio and jackd can run  together installing pulseaudio-module-jack

EDIT  : The real solution :
     - try to install "pavucontrol" (pulse audio volume control)
and check in output tab that main audio device is selected.

Also check configuration tab: This was the problem: Nateowami changed  profile from  "Digital Output (S/PDIF)"  to "Analog Stereo Output" which solved the problem.


How to set Canon C5235i printer to staple

GPR

gpr is a graphical interface to lpr that provides for easy configuration of printer-specific options. gpr interfaces with a PostScript printer's PPD file to create a user-interface of configurable options. Based upon user choice, the device-specific option code is then inserted into the PostScript job and sent to the printer. This can be used to tell the printer to duplex or staple the print job, or tell it what paper tray to draw paper from. NOTE: gpr will detect if the file to be print is postscript, and, if not, it will call a2ps to preprocess it before sending it to ppdfilt and to lpr.


TroubleShooting, SimpleScreenRecorder Error: Can't write header!

In fact, the ogg container is not compatible with any other codecs than Theora and Vorbis. Even there is no uncompatibility warnings.
Using the regular MKV container works.

If anyone have the same issue, using the MKV container may fix the issue.


I'm running Ubuntu 11.04 64bit, I have Thunderbird 5 installed through the stable PPA. I also had the add-ons "Ubuntu Unity Messaging Menu Integration 0.6 and Unity Launcher Integration 0.4" installed on my system. When I removed these add-ons (because they weren’t doing anything) I regained use of my DVD player.


Troubleshooting MAAS supervision of IPv6 cluster of Rasperry Pi 4

Seems a rather very strange problem. My 2 eurocents : are you sure the MAAS is not playing around with a MAC address (i.e. a new random calculated MAC) ? Because I've experienced a lot of limitations with virtualization platforms that are NOT allowing the VM to receive any non virtually-assigned MAC (except for broadcast). I've seen this problem with playing around with VRRP between two pfSense virtual machines that are running CARP for failover of the routing address, and resolve the IPv4 address to the specific mac-prefix of the VRRP protocol. Regards, Didier.


How to run two different versions of Gmsh on Ubuntu 16.04 and related issues

It seems that you have two versions:

locally compiled and installed 3.0.6, located in /usr/local/bin/gmsh
version 2.10.1 installed from official ubuntu package, located in /usr/bin/gmsh

So you can call them with full execution path or set aliases in ~/.bashrc:

alias gmsh2='/usr/bin/gmsh'
alias gmsh3='/usr/local/bin/gmsh'


How to reduce the SSH failed login attempts because of authentication?

The per-connection value is configured using MaxAuthTries configuration option:

MaxAuthTries
Specifies the maximum number of authentication attempts permitted per connection.  Once the number of failures reaches half this value, additional failures are logged.  The default is 6.

To set lower, add MaxAuthTries 3 to your sshd_config.


VirtualBox not displaying Ubuntu 17.04 correctly

As memory serves me, switching TTY's should fix the problem.

To fix your video problem, hit the  host_key + F1, followed by host_key + F7. It's a bug.

On some keyboards, you may have to host_key + fn + F1 and then host_key + fn + F7

Update #1:

Note: You may have to issue the complete quoted key sequences a second time to get the screen to correct itself.


Installation problem with Ubuntu from USB

Here is a solution. delete the sda3 hfs+ ubuntu partition. This will combine the two unallocated spaces to give 38.8GB of unallocated space. Create the first partition for swap. When creating the swap partition use as Swap Area. Then the second for /. Select the appropriate bootloader i.e. dev/sda (465.76GB)


How do I install the build dependencies for Android?

I believe that the android.com page is a little out of date.  There are a lot of different workarounds that are floating around the net.  I'll try to summarize what worked for me.

Two helpful, if imperfect, pages are located here:

crashcourse.ca
wildartist

First, it looks like you'll probably want to use java6 and not java5, judging by some of the group threads  . So if you see java5 in instructions, know that you'll need to substitute in either the sun java6 or open java 6.

Here are the packages I needed for my 32-bit system:

sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jdk ant gcc-multilib g++-multilib

After those are in place, build repo :

sudo curl http://android.git.kernel.org/repo -o /usr/local/bin/repo
sudo chmod a+x /usr/local/bin/repo

Then in your build directory:

repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync

The wildartist site continues:

  If you encounter the message “command not found” then you can do it with the following commands:

$ sudo sh /usr/local/bin/repo init -u git://android.git.kernel.org/platform/manifest.git
$ sudo sh /usr/local/bin/repo sync

  It will take much time to get the code
  even though the line is fast as the
  project itself is really huge. After
  the long waiting, you will find that
  the checkout process has been ended.
  The next thing to do is MAKE to build
  the project. But you will meet a
  message that the Java version is not
  correct and the build process fails.
  Then you can modify the
  build/core/main.mk file to change the
  text ”1.5″ to “1.6″.

At this point you should have the dependencies and the code take care of.  You will still need to make .

Because the code base and supporting libraries and components are changing, it's hard to keep the instructions perfectly up-to-date, which is why there are so many conflicting how-to's for this process.


cannot boot window 7 after installing ubuntu 14.04 64 bit

Can you check using gparted which partitions you have?

Also you can install grub customizer to try to add your windows 7 to the grub list.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer

sudo apt-get update

sudo apt-get install grub-customizer


Can these viruses be treated as false positives?

You need to run TWO anti virus programs to compare their results to determine if it is a bogus notice. Besides that: you also really need to search this notice yourself online.

I assume the answer is yes, these are bogus (as are 99.99999% of all of these notices):

Win.Trojan.Ramnit-6905 FOUND
Win.Trojan.Agent-1429193
Win.Trojan.Agent-1429193


Why am I seeing "Starting snappy daemon [ok] " before Ubuntu login

Note that snapd should not be permanently running if no snaps are used, it is socket activated ...  the systemd unit that prints the "Starting snappy daemon [ok]" only sets up the socket through which snapd will be started once you use the snap command.


Ubuntu 12.10 64bit installation on HP Pavilion g6

At system start,press esc --> f9 and select the boot device


How to update Apache 2.4.7 to Apache 2.4.11

Apache 2.4.11 has yet to be released as a full package, as of today it's still in the development tree. That means you should check out and compile the source by yourself. As  a trade-off solution you could step up a few versions and get as much updated an Apache2 package as the Debian Apache2 team have released by adding these PPAs to your list of repositories:

https://launchpad.net/~ondrej/+archive/ubuntu/apache2

https://launchpad.net/~ondrej/+archive/ubuntu/php5

(the second link goes for php 5.5 support)

You may follow these web page's instructions or go the easiest way by issuing these commands:

sudo add-apt-repository ppa:ondrej/apache2
sudo add-apt-repository ppa:ondrej/php5

If add-apt-repository is not available in your VPS, install it.

sudo apt-get install software-properties-common

Or, on older Ubuntu versions:

sudo apt-get install python-software-properties