mouse bug? ubuntu 12.04 acts as if i clicked the mouse when I didn't just after move

There is an accessibility that enables this function I guess to make it easier on people who find it difficult to press the mouse buttons. Check your accessibility settings and make sure nothing is enabled that should not be.


How to synchronise an Ubuntu and Windows desktop

You can mount ntfs discs on startup, ntfs-config will help with that, then delete your desktop folder, make link (alt )  at home and name it desktop, same approach with document's.

I advice you only make link to windows desktop on Linux desktop to avoid problems.


Why are some programs not getting focused correctly?

This is related to your focus stealing preventing settings in Compiz.

Install Compizconfig-settings-manager from the software centre, open it, and then go to general options, and in there, set your focus stealing prevention level to a higher level:


Unfortunately, due to the nature of the Linux kernel, you require a root (or just user, in the case of sudo) password to install any programs or do anything possibly dangerous to the system.

This doesn't apply to Live CDs, because of the easily recoverable nature of Live CDs. You mess up a Live CD, you can just reburn it. You mess up an installation on a hard drive though, not so easy.


Set up MongoDB for multiple developers plus production use

You can and should. Just create several environments, for example for development, testing, and for production. Just create a Dockerfile for one of each.

One way could be:

Create a Dockerfile (the official is broken, so I created this one and a PR):

# Dockerizing MongoDB: Dockerfile for building MongoDB images
# Based on ubuntu:18.04, installs MongoDB following the instructions from:
# http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

FROM       ubuntu:18.04

# Installation:
# Import MongoDB public GPG key AND create a MongoDB list file
RUN apt-get update && apt-get install -y gnupg2 ca-certificates
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
RUN echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" > /etc/apt/sources.list.d/mongodb-org-4.0.list

# Update apt-get sources AND install MongoDB (latest stable version)
RUN apt-get update && apt-get install -y mongodb-org

# Create the MongoDB data directory
RUN mkdir -p /data/db

# Expose port #27017 from the container to the host
EXPOSE 27017

# Set /usr/bin/mongod as the dockerized entry-point application
ENTRYPOINT ["/usr/bin/mongod"]

Build

docker build --tag my_mongodb_1 .

Run

docker run -p 27017:27017 --interactive --tty my_mongodb_1

Pay special attention to which user have access to which environment, since is very common and dangerous to forget to change something on the developer setup and end working with production database thinking you are working with development one.

Here is a nice post about how to do all this.


How to install aircrack-ng on Ubuntu 12.04.
Open terminal:

sudo apt-get install build-essential
sudo apt-get install libssl-dev
wget http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz

Now you can make new directory

mkdir aircrack
cd Downloads
mv aircrack-ng-1.1.tar.gz ~/aircrack
cd ..
cd aircrack
tar -zxvf aircrack-ng-1.1.tar.gz
cd aircrack-ng-1.1
sudo gedit common.mak

in this file find

CFLAGS ?= -g -W -Wall -Werror -O3

delete -Werror to look like this

CFLAGS ?= -g -W -Wall -O3

save and close

make
sudo make install

Here is my tube link: http://www.youtube.com/watch?v=apoaHf8tPVk


How to start a systemd service with complex arguments?

I ended up going down the path that Thomas Ward suggested.

ExecStart=/usr/local/bin/mjpg_streamer -i 'input_uvc.so -d /dev/video0' -o 'output_http.so -w /home/pi/mjpg-streamer/www -p 8000'


Window Control doesn't work corectly on UBUNTU 14.04 LTS

I think there is no hope for that: unfortunately, the new Unity decorations seems not to support changing the window buttons position (close, minimize, maximize), at least for now.

http://ubuntuforums.org/showthread.php?t=2210844&page=2#14

http://ubuntuforums.org/showthread.php?t=2210844&page=4#39

https://code.launchpad.net/~3v1n0/unity/unity-decorations/+merge/202582

http://www.webupd8.org/2014/01/unity-7-to-get-new-window-decorations.html


Thats because normally 5% of the space is reserved for the root user.

you can disable that by

tune2fs -m0 /dev/sysvg/lvvideos

EDIT

that has nothing to do with LVM, that's a "feature" of the chosen filesystem...

EDIT2

The manpage of mke2fs states the following

   -m reserved-blocks-percentage
          Specify the percentage of the filesystem blocks reserved for the
          super-user.   This  avoids  fragmentation, and allows root-owned
          daemons, such as syslogd(8), to continue to  function  correctly
          after non-privileged processes are prevented from writing to the
          filesystem.  The default percentage is 5%.

So yes that applies to all ext2/ext3/ext4 partitions.


Ubuntu 18.10 install on Desktop with no OS and UEFI bios crashes

Nvidia has released a Linux driver for the RTX cards (410.93), but I don't know if they have been added to the Ubuntu repositories yet.  I didn't see it listed when I searched the repositories with Synaptic.

You might have to install it manually, which is not hard but you have to follow the instructions in the readme file that is part of the driver package exactly.


collecting data, saving it into a file and rerun it again in bash script;

You didn't specify the nature of the errors. You should always specify the exact error message(s) when asking for help. Otherwise, it's like you're expecing others to do all your debugging for you. Take a second or two to provide the most basic and obvious of information, and you'll probably get a lot more help.

Nevertheless, here are a few notes:

When reading the phone number, you've got a space, meaning that you're reading into two separate variables. When you try to put it into the file, you're calling the variable by a different name.

echo "Type the phone number:"
read phone number
#...
echo "Phone Number: $phonenumber" >> Datacollection.txt

You need spaces between square brackets ([]) and their contents. Thus, this line is wrong:

elif ["opt" = "Add another user"]; then

In addition to the preceeding, be careful what you're comparing. You have no dollar sign in front of "opt", so you're comparing the literal string, not its value.
Your option selection routine is totally broken. You'll need to throw it away and rewrite it, using a different approach. Hint: Whatever the user types will be stored in the variable you pass to read. You'll be testing that value, so consider carefully what the user needs to type and how you can communicate that. Hint 2: Type help select to see the documentation for a good way to approach this.
Finally, a really valuable tool for debugging your script is set -x. Put it at the top of your script. Then you'll be able to see everything in your script as the shell interprets it. If something looks wrong there, you've found a bug.


Anyone else suddenly having problems tethering their Android or smartphone to 12.04?

Update:  Also fixed in latest kernel upgrade (3.2.0-27-generic).

This appears to be a kernel regression from 3.2.0-25-generic to 3.2.0-26-generic.
  Reverting to the older kernel solved it.  Bug reported.


Squid Proxy Problem to arised after update

execute

  service squid restart

as said in the message:

  Since the script you are attempting to invoke has been converted to an
  Upstart job, you may also use the restart(8) utility, e.g. restart squid

It's more easy to remember in fact :-P


Start the gui program as non-root in systemd

So here   you need to change user when the program started with a user   and same user privileges will be applied to the GUI program.
As per man page of systemctl the user parameter  can also be changed as per use case. and Alter the service's possession as well, so the password  warning will be disabled..
Before
[Service]
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/sunxy/.Xauthority"
ExecStart=/home/testui/build/terui
User=root
Type=simple
Restart=always
RestartSec=3s
[Install]
WantedBy=graphical.target

After
[Service]
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/sunxy/.Xauthority"
ExecStart=/home/testui/build/terui
User=USERNAME
Type=simple
Restart=always
RestartSec=3s
[Install]
WantedBy=graphical.target


Its the same password you use to login into your user.


Invalid SSH key error in juju when using it with MAAS

The solution I came up with is to set a password for the newly-booted nodes, and then manually insert SSH keys into each of them. To set a boot password for the ubuntu user, ensure that the following lines to /var/lib/cobbler/kickstarts/maas.preseed:

d-i    passwd/make-user boolean true
d-i    passwd/user-fullname ubuntu
d-i    passwd/username string ubuntu
d-i    passwd/user-password-crypted password <CRYPTED PASSWORD>

Once this is done, you can ssh ubuntu@ and use the password specified in the crypted password string (easiest way is to use one from an /etc/shadow file you already know) to log in. You can then insert your SSH public keys under ~ubuntu/.ssh/authorized_keys and ~root/.ssh/authorized keys.

Note that this is a workaround- once you ssh-keygen, MaaS should either be pulling the id_rsa.pub from your .ssh directory, or from the MaaS WebUI, where the user can specify a public key in his profile. No matter what I've tried, these keys aren't propagated, so I came up with the workaround.

A further cheat is to just add the .pub key to your MaaS node's .ssh/authorized_keys and then scp it to each of the nodes in the MaaS:

for i in `cobbler system list |grep -v default`;
    do j=`cobbler system dumpvars --name "${i}" | grep hostname |grep -v duplicate |cut -f 2 -d \:`;
    scp ~/.ssh/authorized_keys ubuntu@${j}:.ssh/authorized_keys;
done

This leaves you able to just repeatedly accept the SSH certificate errors and type the password in the crypted string to populate your entire MaaS with the SSH public key.


This sounds like a bug where the two peripherals are sharing the same
bus and when one turns on, it crowds out the other. You would be better
served by filing a launchpad bug and uploading full apport diagnostics
so we can better observe what's going on. Please update this post
with the bug #. Thanks.


Errors running apt-get update and apt-get install mysql-server

This was a known bug with Amazon S3. To fix this, just run sudo apt-get update


To everyone who also got confused like I did since there has not been an answer here and I have figured it out a while ago now.
The answer is simple: There is no open printing for Ubuntu 18 and above* (*as far as I know for future versions)
Instead the drivers are installed already and if you are missing any then simply search for them with

sudo apt-cache search printer*

This is how I found all the drivers I needed.


What's the difference between a protocol and API?

The API are used to programmer and they're classes or functions that a programmer can use to build applications.
A protocol is all that rules that are used to do somethings. Some examples of protocols are: http and https (for the web browser), ftp (for client ftp), imap/pop/smtp (these are three protocols for mail server), telnet/ssh (are protocols to connect to remote server to use it by command line), dns (this is used to convert the name of a site to its ip), irc (this protocol is used for old style chat), rdp (means remote desktop protocol, and it has used by windows to connect to other windows machine and use its graphical interface), and so on.
PS. the op has changed the question after my answer.


How do I chop the first 20 seconds off every video in a folder?

mkdir output
for f in *.mp4; do ffmpeg -i "$f" -ss 20 -map 0 -c copy "output/$f"; done

This will need to cut on a keyframe for non intra-frame formats (most "consumer" videos these days are non-intra), so it may not cut at exactly 20 seconds.

If your inputs are intra (such as DV), or if you know a keyframe is at or near 20 seconds then move -ss before the -i and it will process somewhat faster.

If you must cut exactly at 20 seconds then you'll need to re-encode: remove the -c copy, but again, it's format dependent if you'll need to do that.


How to uninstall Haguichi/Hamachi completely?

Uninstalling Haguichi (a graphical frontend for Hamachi)

Assuming you installed Haguchi through the Webupd8 Haguchi PPA as recommended on the Haguchi download page, you can uninstall the haguichi and haguichi-appindicator packages and remove the PPA from your software sources.

I suggest using the ppa-purge utility to accomplish this. If you don't have it, install the ppa-purge  package first:

sudo apt-get update
sudo apt-get install ppa-purge

Then use it to remove the Haguchi PPA:

sudo ppa-purge ppa:webupd8team/haguichi

Uninstalling Hamachi

Assuming you installed Hamachi with one of the .deb files provided at the Hamachi for Linux download page, just remove the logmein-hamachi package:

sudo apt-get remove logmein-hamachi

That stops the Hamachi service and uninstalls Hamachi. If you want to also remove systemwide configuration files, you can use sudo apt-get purge logmein-hamachi instead.

Removing lsb-core

Optionally, you may wish to remove the lsb-core package (and any of its dependencies that are not required by other software you've installed). On Ubuntu this package is not very commonly installed, but logmein-hamachi depends on it, so you probably installed it when you installed Hamachi originally.

Just in case something else is depending on lsb-core, I recommend marking it as automatically installed and then performing autoremoval of unneeded packages, rather than forcing it to be removed:

sudo apt-mark auto lsb-core
sudo apt-get autoremove

If you want to also remove systemwide configuration files, you can use sudo apt-get --purge autoremove instead of sudo apt-get --autoremove.


I am unable to download programs from the Ubuntu Software Center with Ubuntu 12.04

Which program are you talking about?  I have both installed in 12.04 and have no issues..

How are you doing it?  Is it giving you any errors?

Try this way:

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

sudo apt-get update && sudo apt-get install gcu-bin

And see if it works.

Try this,  Go into Update Manager, and click on the Settings Button

Then click on the Ubuntu Software Tab  and go to Download from, and choose other as shown

and then choose Select Best Server.

Once its done try installing the program again.


They show "Next you must enter the IP address of your Samba server (Figure C) in the form of //SERVER_IP/SHARE (Where SERVER_IP is the IP address of your Samba server and SHARE is the name of the share you want to add)."

I'm pretty sure it should be it should have back slashes not forward ones.


16.04LTS 64bit sees only 3.9GB of memory out of 8GB

The system detects both 4096MB RAM bricks (your 8GB in total) correctly and they seem to work well. I am sure your problem is still hardware related though.

We see that the 8GB of RAM are detected, but only a bit less than 4GB are usable. There are not enough memory addresses to which your RAM could be mapped though. All the remaining memory which can not get mapped to an address can not be used.

Your machine obviously can only map 4GB because any of the responsible components is limited to 32 bit addresses. The really usable amount of RAM is a bit smaller because e.g. your graphics card's video memory also needs to get mapped into the same address range.

You are running 64 bit Ubuntu, so neither the OS nor the CPU can be the problem. I am sure the component which annoys us here is your chipset (also known as North Bridge) that only supports an address width of 32 bit and therefore limits the address range to only 4 GB.

You can verify the address width of your chipset using this command:

sudo lshw | grep -m1 width

A result of width: 32 bits proves me right and explains your issues.

Unfortunately there is no software solution, the only thing you can do is to replace your chipset which means to get a complete new mainboard.


Thanks to Rod Smith in the comments I found a bug report

Now we wait...


If you use wmctrl -lp the PIDs are in the third column.

For a given window ID you can use

kill $(wmctrl -lp | awk '/^WID/ {print $3}')

(replace WID with your window ID)


Discrepancy with Firefox print (headers and footers)

I was able to solve this problem with a printer setting that I missed earlier.

Checking "Scale to Fit" did the trick - apparently, Firefox was sending the header and footer information to be printed, but the pages were scaled larger that a sheet of paper, so did not appear.

Enabling "Scale To Fit" solved the problem.


No HDMI audio on Intel NUC Kit NUC5i7RYH with Ubuntu 16.04

I know this is an odd set of steps to follow, however I found the following to work each and every time on my i7/7th Gen NUC from MicroCenter, where sound worked throught the headphone jack, but not through HDMI.  Only thing is...I don't have a clue as to WHY it works.

Note:

Read this before doing it. Write down the steps so you can get back to the desktop.

Steps:

Open up Youtube.com to any video, so that you will hear sound when it comes back on.
Enter TTYL Terminal by simultaneously pressing the keys Ctrl+Alt+F1
Exit TTYL Terminal by simultaneously pressing hitting the keys Ctrl+Alt+F7
The sound should be working now.

Background:

I originally found this solution (AFTER HOURS OF RESEARCH) by accident because I needed to enter the TTYL terminal to initially set my root user's password without restarting.  As soon as I logged in as my user (before resetting any passwords) the sound randomly started working. Eventually, I found that simply entering TTYL terminal and returning to the desktop while audio SHOULD be playing caused it to work as expected ... UNTIL RESTARTING.

SO,

This solution ONLY works for the current session.  If your computer restarts for any reason, you will have to again perform this action.

If you find any other information on this, including a more permanent fix, please inform so that everyone can act on it!

Thanks,

Joseph


I found the solution.

press Alt+F2 to bring up the dash, do not click on the icon directly from Unity Launcher and then write and click on kde-nm-connection-editor


Atom throws a crash message, but runs normally

I had the exact same issue. There is an update for Atom that was released today (2020-09-09). It's now version 1.51.0 and the issue is fixed.


How to change the icon of a Unity Launcher:

Unity Launchers are files stored in your computer, with a .desktop extension. These files are used to launch a specific application, but in Unity they are also used so as to create right-click menus for each application, which you can access from the Unity Launcher.

Such file looks something like this:

[Desktop Entry]
Version=x.y
Name=ProgramName
Comment=This is my comment
Exec=/home/$USER/Documents/exec.sh
Icon=/home/$USER/Pictures/icon.png
Terminal=false
Type=Application
Categories=Utility;Application;

Icon field is the icon that should be used by the launcher and represents the application. All icons that are under the directory /usr/share/pixmaps don't need to have their full path specified, but their filename without the extension.

For example, if the icon file is /usr/share/pixmaps/wallch.png, then the Icon field should be just wallch. All other icons should have their full path specified.

Therefore, in order to change the icon for a specific program, you need to:

1. Find the related .desktop file, they are commonly under /usr/share/....

You can do so with:

locate program_name.desktop

or if you can't seem to find it:

locate .desktop

and scroll through the list.

2. Open the .desktop you want to modify:

gedit /path/to/program_name.desktop

3. Modify any of the fields you wish:

Just to be save, make a backup first, which you can replace for the original file in case you screw up:

cp /path/to/program_name.desktop /path/to/program_name_backup

Source and further information:

https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles


xrdp keyboard settings not working in a terminal

You might want to have a look at this web page. This page describes your problem and possibly the workaround might work for you

http://c-nergy.be/blog/?p=3858

This might solve your issue

See ya


Nvidia external VS Intel built-in graphics for ubuntu 16.04

Some important informations to give when asking this are the processor's model and the video card's model. If the processor is too old, it may suffer alone when using Ubuntu's Unity.

My friend had issues when using Ubuntu with a Nvidia GTX 550 Ti. The computer would freeze after some time. Lower time when using Ubuntu, higher time using Lubuntu, then we installed psensor and we checked that the problem was a overheat.

There are possible ways to keep using the Nvidia card: you can configure nouveau's (the open-source driver) to set to a fixed fan speed. Configuring nouveau is not very simple, but it is doable. If the video card is noisy, this may be annoying, but the hangs will stop.

Nvidia provides drivers to Ubuntu, however those aren't open-source. If you mind with using only open-source programs, this may be not acceptable. If you don't mind using closed source programs, you can install it. They are called nvidia-3XX, with the "XX" being a number version, which depends on which model your video card is to choose correctly. The Nvidia driver comes with a interface that can easily change fan speed and can (this is a possibility only) automatically control the fan.

Now, if you want to use Intel on-board video card: on my experiences, it's the most stable one of all graphic implementation I have ever seen. Ever. Linux graphics is a big project, which is heavily supported. Intel Graphics's support for Linux is even better than the support for Windows. I have a 2003 notebook, a 2011 desktop and a 2016 notebook, the three with Intel Graphics on Linux, and the three work really well. The 2003 notebook don't work with Windows 7, as a comparison.

So yes: Intel graphics are more stable. If you need the performance, then I would recommend to install the correct Nvidia driver for your specific video card.


Alt+Tab - want it limited to current monitor in Ubuntu 19.04

Short answer
This snippet was written on request for Ubuntu Budgie, but should work on anything but Wayland. It switches between windows on current workspace & monitor, and, depending on the possible argument, either between all windows or between windows of the active application.
It doesn't show any animations though, it just cycles through windows.
Setup instructions are in the link.
Disclaimer: I am the author


Wine is not really any more intensive that a normal application, unless there is some memory leak bottleneck in the application you are running.

I don't have any arbitrary numbers for you, but in my experience, Wine is very light (in recent versions) in terms of CPU and memory usage, which is largely due to the fact that Wine is a compatibility layer and not an emulator. What this means then is that applications running on Wine don't need any kind of "translation" or emulation unless of course you are running a Direct 3D game (Direct 3D calls are translated into Open GL counterparts first).


Ubuntu 18.04 on a Lenovo Ideapad - Can't get it to recognize USB Keyboard

I have found some info referring to an error with newer Gigabyte Motherboards.
Have a look in: https://unix.stackexchange.com/questions/72625/why-is-usb-not-working-in-linux-when-it-works-in-uefi-bios

EDIT:
Basically you may need to enable the option IOMMU Controller in your BIOS, also XHCI and EHCI if it's available.


apt-get paralyzed by failed dropbox install

This I had already done and in fact someone else had posted a similar problem and after having tried exactly the same thing, received no more answers.

BUT it finally occurred to me-- given that apt-get sends me over to dpkg, why not trying purging there?

sudo dpkg --purge dropbox

and voila'! problem solved!!!


Windows 10 and Ubuntu both installed in UEFI mode but no Windows entry in grub

I apologize for not being able to comment. But have you accessed your bootloader pressing "F12" right after you start your system or the equivalent key to load the BIOS menu instead of going to GRUB, just to make sure your Windows is still there?


Can't log into my computer after video cart update

From whatever you have described here it seems that your Ubuntu is not correctly starting up. There is some process in the init.d that is getting stuck. You need to investigate that. Why don't you press the down key while Ubuntu is starting up. Instead of showing you the graphics it will show you the actual services as they get loaded. Watching your services getting loaded up will give you a pretty good idea as to what is failing. Find that out and update your question.


Is there any problem with a full installation on a USB drive?

Will it work in most systems (including 64-bit)?

Yes.

  Will the installation contain only the drivers needed for the computer used for the installation?

Ubuntu doesn't install specific drivers for each machine, it' has a full stack of drivers.

You can, and should, during the installation, mark the box "Installing propietary drivers"

I have install Lubuntu 16 and so far it works, on every machine I could try.


How do I make a shell program run with the script name? and script help

The main problem is the script has the wrong name of prargs.sh when the filename should be prargs. The second problem is there should be a "shebang" at the top telling the system it is a bash script:

#!/bin/bash

while [ "$#" -ne 0 ]
do
    ((Count++))
    echo "$Count: $1"
    shift
done

Note: Your script was missing the 1:, 2:, etc. parameter count. I've added that missing pieces with:

((Count++))
echo "$Count: $1"

So when you run the script you now see:

$ prargs a 'b c' d
1: a
2: b c
3: d

The next problem is calling the prargs without specifying a location in front. If you place your script in one of your paths it will be found without specifying a directory. To see your current paths use: echo $PATH. Many people will create a path in their home directory for personal scripts:

mkdir -p $HOME/bin

After this reopen the terminal to have it in your path. So create your script as $HOME/bin/prargs and then mark it executable:

chmod a+x $HOME/bin/prargs

After this no matter what your current directory is you can type prargs a 'b c' d.


Coolers noise at Dell XPS 15 9550 without heavy loading

This should solve it, did it for me. The culprit is gvfsd-smb-browse process.

Add the statement below to [global] section of your /etc/samba/smb.conf

name resolve order = wins lmhosts bcast

https://itsfoss.com/fix-gvfsd-smb-high-cpu-ubuntu/


The default Ubuntu login display manager is called lightdm  because it is lightweight and therefore fast. Normally this is a good thing, but you may be booting to your login screen so quickly that your Nvidia graphics card isn't able to keep up. So try installing GDM. GDM is an alternative login display manager to lightdm.

During the installation of gdm you will be asked to select either gdm or lightdm as the default login display manager. Select gdm.

You can switch back and forth between lightdm and gdm at any time from the terminal by running sudo dpkg-reconfigure gdm. This will open up a new window allowing you to select either gdm or lightdm as the default login display manager.


i was looking how to launch gnome-terminal directly into byobu and funny enough your question answered my question.
so I did some research into your question and it appears that byobu is setting the title of the terminal and that is actually not configurable even without byobu
i also keep reading about BYOBU_NO_TITLE=1 fixing it but I cannot figure where it is supposed to be set..... i have tried /usr/share/byobu/profiles/bashrc and /usr/share/byobu/profiles/byoburc` no luck
what did work is setting the following ~/.byobu/.tmux.conf
set -g set-titles on
set -g set-titles-string "#(pwd)"


Problem faced after removing desktop environment-boot screen changed?

You need to have at least one of the *buntu-desktop packages installed.  This pulls in all the other packages required for a desktop session.

So try:

sudo apt install --reinstall ubuntu-desktop

To get the Ubuntu boot logo, you need to install the package plymouth-theme-ubuntu-logo

sudo apt install --reinstall plymouth-theme-ubuntu-logo


You have to download now the apt .deb package on your system from
http://security.ubuntu.com/ubuntu/pool/main/a/apt/

Open a terminal(Ctrl-Alt-t) type:

32 Bit:

wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_v_x_x_x_i386.deb

Or

64 Bit:

wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_v_x_x_x_amd64.deb

Install it by typing:

sudo dpkg -i  apt_apt_v_x_x_x_i386.deb

sudo dpkg -i  apt_apt_v_x_x_x_amd64.deb

Or

Try to install it from Ubuntu Software Center.


Is there a Linux file manager with a proper drop-down tree view? (like finder in OS X)

Nautilus does this.
Ubuntu up to version 12.10

Just switch to View > List.

Ubuntu 13.04
Feature is missing in this release
Ubuntu 13.10 and newer

activate Preferences > Display > Navigate folders in a tree
switch to List View


Exchange Online Account Connection refused

you need to use outlook.office.com as the server name in the Custom section:

Here's a screenshot of the settings I used


CX usb3 2.5-hdd-case asm1051 wont spindown/detach on ubuntu 12.04

I have the same device and the same problem.

I can say that my WD Passport 2.5" 2TB external USB3 disk works fine in this regard though - it sleeps when not in use, and when the computer sleeps. So it seems to be a driver or chipset issue.

Can you try to boot a live CD (or USB image) of Ubuntu 14.04 alpha/beta and test if it works there? I tried using my case, and there was no change. However, there might be a firmware update for the ASM1051 chipset available which supports spindown modes. If you find such an update, please let us know!


If you set PasswordAuthentication to no you can login only by using keys. If you didn't set up keys properly it denies you the access with exactly that error (Permission Denied (publickey)). You either need to reactivate passwords or set up public key authentication (a lot of tutorials available for that).


Flickering screen + CPU pipe B FIFO underrun when I use the termnal

I found a pretty logical workaround : the rollback.

I followed the below tutoriel:

http://ubuntuhandbook.org/index.php/2017/02/install-remove-enablement-stacks-ubuntu-16-04/

The first part of the removal process actually removes xorg and kubuntu-desktop. We have to remember to reinstall them right after.

After that, I rebooted. It seems that the system kept one 4.8.x kernel by default, but it replaced the graphical stack with the previous one.

This solved the issue I got with LibreOffice (selections and buttons). It seems that it also solved the kernel CPU pipe issue.

Right now, I don't think I am going to dig this deeper.

Note : I am still with the new graphical stck and 4.8.x kernel on my desktop and it works well.

Cheers


Just bumped into this-- Rebooting after I hit this point and then rerunning the install seems to have taken care of it.

$ sudo apt get install selinux
<snip>
usr/sbin/semodule: SELinux policy is not managed or store cannot be accessed.
Error opening /etc/selinux/ubuntu/contexts/files/file_contexts.local: No such file or directory
libsemanage.sefcontext_compile: sefcontext_compile returned error code 255. Compiling /etc/selinux/ubuntu/contexts/files/file_contexts.local
libsemanage.semanage_install_active: Could not copy /etc/selinux/ubuntu/modules/active/policy.kern to /etc/selinux/ubuntu/policy/policy.29. (No such file or directory).
/usr/sbin/semodule:  Failed!
dpkg: error processing package selinux (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 selinux
 E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo reboot

$ sudo apt-get install selinux
Reading package lists... Done
Building dependency tree
Reading state information... Done
selinux is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up selinux (1:0.11) ...
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-30-generic
Found initrd image: /boot/initrd.img-3.13.0-30-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
 * Starting SELinux autorelabel                                      [ OK ]
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-30-generic

$ sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             ubuntu
Current mode:                   permissive
Mode from config file:          permissive
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28

Been a while since I've played with SELinux (and never on a debian-based distro), but my guess is that the install depends on something that's not running in the kernel by default and the reboot takes care of this.


How to format an external hard drive to ext4?

you can

use Disks (the tool you get by entering Disks in dash)
or you can install gparted and use that
or you can do it from the command line using fdisk in order to delete/create a partition and mkfs.ext4 in order to format a partition.

and - as commented by Byte Commander: ext4 is not a good choice if you want to be compatible with windows or OSX.

in any case make sure you work on the correct drive/partition. it is surprisingly easy to wreck your system with these tools!


Why does Drag&Drop from Engrampa (*.tar.gz content) to Thunar not work?

Most likely your are missing the "thunar-archive-plugin". Try to (re-)install it. If this doesn't solve it, try following the instructions here.


On Linux, this typically accomplished using LDAP. Commonly used is the OpenLDAP server, with various client-side daemons like nslcd, SSSD, etc. The Ubuntu Server Guide has a section on OpenLDAP.

When using LDAP, it's also common to serve home directories from a common server via NFS, etc. NFS is also covered in the Server Guide.

Of course, if crashing is the issue, then you're just pushing the problem one level down. The difference is that when your LDAP server goes down, all your servers are effectively down.


From the GNU info page for cp:

  By default, 'cp' does not copy directories.  However, the '-R', '-a',
  and '-r' options cause 'cp' to copy recursively by descending into
  source directories and copying files to corresponding destination
  directories.

https://www.gnu.org/software/coreutils/manual/html_node/cp-invocation.html#cp-invocation


Thinkpad T540p + Xubuntu 18.04 + old monitor

Solved: the problem was the cable, the T540p requires an active adapter for HDMI -> Mini Displayport. It works right away using a Displayport -> Mini Displayport cable.


How do I give the Gift of Ubuntu One music store

We don't currently have a way to do this, sorry.


What options are supported by a utility is a variable. In general, you can try the options -h, --help and the man and info commands:

man look
info look

The manpages are also available online (http://manpages.ubuntu.com), so you can look them up even if they are not installed.

In general, the best method is to look at the manpages. They are the standard source of information in Unix-like systems.


How to stop Rhythmbox adding played sound files to the library?

I think this is an automatic feature so it's not really possible to not let it be added to the library. What I have done is that I set the default program for music to Totem. That way if I open a music file in Nautilus it opens and plays that file and nothing else. Not ideal but it works for me.


Why does the find command blow up in /run/?

The permissions:

$ stat -c %a /run/user/1000/gvfs
500

So only the owner has execute permission (which allows directories to be searched). But, you used sudo and root has all possible permissions, right? Actually you found the exception:

This answer by Gilles on Unix and Linux SE explains why permission is denied for root that directory, which is a mountpoint for FUSE:

  Managing trust boundaries with FUSE filesystems is difficult, because
  the filesystem driver is running as an unprivileged user, as opposed
  to kernel code for traditional filesystems. To avoid complications, by
  default, FUSE filesystems are only accessible to the user running the
  driver process. Even root doesn't get to bypass this restriction.

If you run the find command without sudo (as your own user, UID 1000) you will not get that error, because you own the directory, but you will get other permission errors instead, so, use sudo and take Gilles' advice:

  If you're searching for a file on local filesystems only, pass -xdev
  to find.

Easiest way to check python versions:

$ python --version
Python 2.7.12+
$ python3 --version
Python 3.5.2+


I think just umount <the-mount-dir> is enough.

Here is an example:
Say I have this directory structure under /tmp/unionfs:

.
├── Fruits
│   ├── Apple
│   └── Tomato
└── Vegetables
    ├── celery
    └── Tomato

2 directories, 4 files

Now mount the Fruits and Vegetables on /tmp/mnt:

$ unionfs-fuse /tmp/unionfs/Fruits:/tmp/unionfs/Vegetables /tmp/mnt

To unmount it do this:

# umount /tmp/mnt


Ubuntu Precise with Raring kernel, how to create deb? Precise or raring?

I would build it for the precise distribution, as that is what you are running. The kernel is just what interfaces with the hardware - to quote this:

  A kernel is the lowest level of easily replaceable software that
  interfaces with the hardware in your computer. It is responsible for
  interfacing all of your applications that are running in “user mode”
  down to the physical hardware, and allowing processes, known as
  servers, to get information from each other using inter-process
  communication (IPC).


You can ignore the lowercase label warning.

You need to separate the commands, e.g.

mkfs.vfat -F 32 -n program /dev/sdb1
mkfs.vfat -F 32 -n init /dev/sdb2

If your device have no partitions than you have to create new partition table, here is a good example: http://www.howtogeek.com/106873/how-to-use-fdisk-to-manage-partitions-on-linux/.


The best way is to fix the erroneous invocation of java in your ~/.bashrc.

Alternatively, read man clear.


Ubuntu 14.10 create new user password change button disabled

This is how to create a new user from unity-control-center user-accounts (search for User Accounts in Dash):

From an administrator account unlock settings (click on Unlock to enter password). Then add a user with +):

Enter username:

Enter password dialog by clicking on Password: Account disabled:

Choose a strong password for the user.

Shown here is the dialog when entering a weak password, which is not allowed.

Repeat the password (without typing error!):

Only if steps 4. and 5. are correct we will be able to Change the password to activate the new account.


If it is any kind of bug from firefox or Ubuntu 20.04 side?

It looks like your Firefox window is just positioned a bit higher up the screen than before, and is getting covered by the bar at the top.
I don't use that particular desktop environment, but it seems like you could just move the window a bit down, and see more of the top of it. Maybe you should reduce its vertical size a bit first, otherwise it would of course just move some of the bottom of the window out of sight.


How to completely remove Unity, and replace it with Cinnamon?

I decided to get my hands dirty and hunt down all files related to Unity in Ubuntu 13.04. I will share my experience in switching to Cinnamon and completely remove Unity.

I am not responsible for any damage to your system nor any loss of data. A Backup is recommended.

First you will need to add the Cinnamon PPA and install it.

sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
sudo apt-get install cinnamon nemo

After Cinnamon is installed, logoff or reboot the system and login in Cinnamon. You can customize it now, or later, it's up to you.

Now you will need to make Nemo the default file manager.

xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
gsettings set org.gnome.desktop.background show-desktop-icons false
gsettings set org.nemo.desktop show-desktop-icons true

Then run the command below, if Nemo opens this means that everything is configured correctly.

xdg-open $HOME

Now, let's get rid of Unity.

I searched carefully at all the files related to Unity, with the help of Synaptic, and gather them all into a single command line. The next command will completely remove Unity and everything related with it, but will keep LightDM, Software Center and all the programs that comes with Ubuntu.

sudo apt-get autoremove --purge unity unity-common unity-services unity-lens-\* unity-scope-\* unity-webapps-\* gnome-control-center-unity hud libunity-core-6\* libunity-misc4 libunity-webapps\* appmenu-gtk appmenu-gtk3 appmenu-qt\* overlay-scrollbar\* activity-log-manager-control-center firefox-globalmenu thunderbird-globalmenu libufe-xidgetter0 xul-ext-unity xul-ext-webaccounts webaccounts-extension-common xul-ext-websites-integration gnome-control-center gnome-session

Please note that there are a few libraries that will remain in the system, they are necessary, removing them will break your programs and possibly the system. These libraries should remain:

gir1.2-unity-5.0 libunity-common libunity-protocol-private0 libunity9 unity-asset-pool unity-greeter

There is a Thunderbird extension called “Messaging Menu and Unity Launcher integration” that needs to be removed from its folder.

sudo rm /usr/lib/thunderbird-addons/extensions/messagingmenu@mozilla.com.xpi

Cinnamon uses Muffin as window manager, so you can safely remove Compiz.

sudo apt-get autoremove --purge compiz compiz-gnome compiz-plugins-default libcompizconfig0

If you installed Nemo you can remove Nautilus as well.

sudo apt-get autoremove --purge nautilus nautilus-sendto nautilus-sendto-empathy nautilus-share

Optionally, you can remove Zeitgeist, which is considered intrusive by many users, this will also free some memory and reduce hard disk access.

zeitgeist-daemon --quit
sudo apt-get autoremove --purge activity-log-manager-common python-zeitgeist rhythmbox-plugin-zeitgeist zeitgeist zeitgeist-core zeitgeist-datahub

You can also remove configurations files related to Unity, Compiz, Nautilus and Zeitgeist, on your home directory. They are in the following paths:

~/.local/share/unity-webapps
~/.compiz
~/.config/compiz-1
~/.config/nautilus
~/.local/share/nautilus
~/.local/share/zeitgeist

Another good tip is install Bleachbit, to remove temporary files from your system.

sudo apt-get install bleachbit

That's it, now reboot the system to clear the memory and make sure everything is fine. If all went well, you now have a clean and elegant system running!

With Cinnamon my system became much more fluid, especially on gaming, and the memory consumption has been reduced by 118MB.

Unity: 579MB vs Cinnamon: 461MB

Hope this helps.


Some plain text mails have a different font

Possibly you're seeing spam that tries to evade detection with similar-looking letters in faraway Unicode planes, similar to how upside-down text is achieved. Try copy-pasting it inside gedit, which will probably have the same behaviour as Thunderbird (requests a single font but gets a fallback font for rendering unusual characters).


Updating youtube-dl gives me ERROR: no write permission

The -U flag updates youtube-dl.

To do this, you need root permissions to write in /usr/local/bin/. Try running it again with sudo.

sudo youtube-dl -U


Should I install the intel graphic driver after installed nvidia driver?

If you don't have any problems: no, you don't!  Let the automatic system updates take care of it.

If you have problems with your display, yes, you do!                          !                        !


GRUB shows apurple screen when trying to boot windows

Did you disable fast startup in Windows?

If you didn't do that:

Go to Control panel -> All control panel items -> Power options -> Choose what the powers button do
Click on Change settings that are currently unavailable
Uncheck Turn on fast startup
Uncheck Hibernate
Restart entering Bios/UEFI
Move Ubuntu on top of Windows
Save and restart

I had the same issue just two days ago and this worked for me.


Installed Ubuntu due to Windows 7 failure, need to save windows data drive

According to the information you've provided in the comments, your /dev/sda5 partition is, in fact, an LVM partition.  Therefore, please don't try to mount it as you would a non-LVM partition.
This is the blkid output you provided, and stubbornly refused to add to the question by ignoring my instructions to do so:
blkid
/dev/sda1: LABEL="OldWindows" UUID="31C048F06C2BEECC" TYPE="ntfs" PARTUUID="5118739f-01"
/dev/sda5: UUID="k0mgvC-ioOZ-xyvt-1AoF-B5Gv-ZGCU-oPVvmD" TYPE="LVM2_member"
/dev/mapper/ubuntu--vg-root: UUID="429f849a-3e4f-41cc-ac78-873ec0fa11f6" TYPE="ext4"
/dev/mapper/ubuntu--vg-swap_1: UUID="50ddb2e6-62f4-4033-a255-b4e57b75c5f7" TYPE="swap"
/dev/dm-1: UUID="50ddb2e6-62f4-4033-a255-b4e57b75c5f7" TYPE="swap"

I will assume your pvs output will show the /dev/sda5 partition designated as the Physical Volume Disk, upon which the ubuntu--vg Volume Group is located.  The Volume Group appears to have two Logical Volume partitions:

root
swap

If this is the case, then the /dev/sda5 partition is already mounted as the main / partition of your Ubuntu installation!
Once again, please provide as much information as you can within the actual question.
The output of the mount, fdisk -l, pvs, and perhaps the df -Th commands would be of particular use to anyone attempting to diagnose the problem you claim to have with the partition.
Please see the Ubuntu Wiki: LVM page for more information on LVM in Ubuntu.

Initial Erroneous Assumption of Windows Partition in Use
I will assume that the Windows partition is formatted as NTFS, like most other Windows partitions.
Since you say you're a "first-time Ubuntu user", I will assume that you don't have the necessary tools installed to work with ntfs partitions.  If I recall correctly, mainly the ntfs-3g program needs to be installed.  Therefore, execute in a terminal
sudo apt-get install ntfs-3g

Are you experiencing the same problems with the other Windows partitions as well?
If your drive is, for some reason, formatted as a "vfat" partition, you may also need the vfat driver installed.  Note, this partition type is primarily used on windows-compatible removable devices, e.g. USB drives.
Please take a look at the Community Wiki: Mounting Windows Partitions.


Please try to export your data into excel first, then,
export the excel sheet to the csv (comma separated values) file,
then use read.csv(“your_file.csv”, header = T) rather than read.table.

Please make sure the last column on the csv file ends with the right format for Linux or you may experience the last column to be missed.

Cheers


What flavour of ubuntu (32-bit/64-bit) do I get when I install using Windows Installer

In the top right hand corner you can get to 'System Settings' and then there should be an option in the control panel like menu at the bottom under system which displays your current version and all that info. It might be called "System Info" or something or "About Me," but there's not a lot of options.


FreeCAD

If you haven't tried FreeCAD, you're missing out.  It's a fully parametric 3-D modelling package that can be extended with Python. The interface is reasonably user-friendly, and feels like a "younger" version of Solidworks.

Installation: Just install freecad package , or newer version using PPA. Also you have an AppImage.


Does it matter what's the base OS is when packing a docker image?

The container only uses the kernel from the host, everything else must be inside the image.

It shouldn't matter from what OS the libraries inside are, you only care for the application to work as expected.


How can I get forward this terminal interface?

The editor that you are using is nano

Press ctrl+o to write the file, and ctrl+x to exit.


You are trying to install a npm package globally and npm stores this packages inside /usr/local/lib folders. Your user does not have permission to edit files outside of the home directory for security reason.

Option 1 - Stop using npm and start using yarn

The issue is connected to npm so I would stop using it and install yarn as in their official guide. Packages should be stored inside your home directory, even when installed globally like the other package manager do (Yarn, rbenv etc..), for this and many other reasons I would stop using npm.

Option 2 - Try to fix npm

There are several solution proposed in this discussion, none of which really good options.

The best option is changing the permission to the folder /usr/local/lib as explained here

sudo chown -R [owner]:[owner] /usr/local/lib

Then follow the official @vue/cli installation instructions for either npm or yarn

Options 3 - Install it via apt package manager

I don't suggest you to use apt package manager, as you may work with different projects which use different versions of this package. If project 1 uses @vue/cli version 1, then you update because you want to work on project 2, project 1 may not work anymore.

sudo npm install -g @vue/cli


Botched my Nginx install, making it worse

I suggest you edit the line:

 index index.html index.htm index.nginx-debian.html;

and write only the exact name of your index page, say  index.html;  for instance. This is how I managed with my own Nginx server.

After second thought, the problem might be just to add port number " :8080 " to be able to see the site with external address ( ???.???.???.???:8080 ).

I may have found the problem, it just happened to me. This is possibly linked to ubuntu firewall, it can be stopped with sudo ufw disable. This worked for me.


How to set "Performance" instead of "Powersave" as default?

Performance and Powersave Governor Policies
There are various options for setting CPU governor policy described in Ask Ubuntu and other websites:

How to permanently set CPU power management to the powersave governor?
Prevent your laptop from overheating
How I can disable CPU frequency scaling and set the system to performance?
CPU Frequency scaling in Linux
Avoiding CPU Speed Scaling – Running CPU At Full Speed

Keep in mind most websites suggest leaving CPU governing at Powersave. I'm on a laptop and found using Intel's ThermalD and P-State technologies coupled with TLP power management has best result for frequencies, fan speed and temperature.
Summarizing above links
To summarize achieving your goal from the above answers use:
Install cpufrequtils:
sudo apt-get install cpufrequtils

Then edit the following file (if it doesn't exist, create it):
sudo nano /etc/default/cpufrequtils

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

Save and exit.
For changes take effect, run:
sudo systemctl restart cpufrequtils

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

As per this Q&A: Set CPU governor to performance in 18.04
If you want performance governor all the time you need to edit /etc/rc.local and insert these lines before the last line containing exit 0:
sleep 120 # Give CPU startup routines time to settle.
cpupower frequency-set --governor performance

To setup /etc/rc.local in 18.04 see: How to Enable /etc/rc.local with Systemd


Why am I getting a login prompt after installation of ubuntu 12.04.1?

A login prompt is normal, just login to your user like you would on any computer.


30 secs sounds good if you don't have SSD (mine is 48sec) . Try disabling some applications from the Startup Applications program. Also take a look at these services:

Disable bluetooth.service if you don't use bluetooth by executing systemctl disable bluetooth and you will gain about 1 sec.
The  cmdavd.service and cmdmgd.service must be from the comodo antivirus (and I guess you want it running), if not then remove it and you will gain about 5.5 secs.
The apparmor.service takes a bit much time (mine takes about 500 ms) but I guess you shouldn't disable it for security reasons  and I didn't find any more information on the internet of how to make it faster. You can run systemctl status apparmor and journalctl |grep apparmor commands to see some info but I don't think you will understand any of it, at least I don't :P

All else seem normal.


Cannot install any software from the Software Center due to ttf-mscorefonts-installer package error

Possibly this error was caused when you interrupted the install or removal of Wine.

Try running the following in a terminal session:

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

Edit:

When you see in the terminal window appear
"Package configuration -

┌─────────────────┤ Configuring ttf-mscorefonts-installer ├─────────────────┐

press tab or I think the arrow keys until the "OK" is highlighted.

Then press Enter to accept the license agreement

How can I accept the Microsoft EULA agreement for ttf-mscorefonts-installer?


Neither Draftsight nor BricsCAD can be installed on 64 bit Ubuntu 13.10

There is some tips from this helpful website with helpful people:

http://ubuntuhandbook.org/index.php/2013/11/easily-install-draftsight-64-bit-ubuntu/

install Gdebi from Ubuntu Software Center
sudo apt-get install libcanberra-gtk-module:i386 libcanberra-gtk0:i386 libglu1-mesa:i386
start Gdebi and install downloaded DraftSight package.

It works for me to install Draftsight in Ubuntu 13.10 64 bit environment, for Intel based notebook (i3). I still have problem installing in AMD based system though (A8).

Good luck.


Although not perfect, not so long ago someone thankfully made this theme called Oxygen-SCSS. It isn't perfect but it does the job for me, since the oxygen-gtk3 project has been abandoned and is not compatible with more recent gtk3 releases.
https://www.pling.com/p/1394719/
In the gtk3 folder, you can edit the _common.scss file and recompile with the parse-sass.sh script if you want to change the color scheme.


Lubuntu - what task switchers with previews can I install?

Skippy-xd offers a lightweight spread-like function.

Demonstration: https://www.youtube.com/watch?v=gVRPCd7OS38

There's no PPA and I wasn't able to find any .debs, so you will have to compile it manually. After installation you can add a hotkey for skippy-xd by modifying your Openbox configuration file:

leafpad ~/.config/openbox/lubuntu-rc.xml

Add the following lines under the keyboard section:

<keybind key="W-s">
  <action name="Execute">
     <command>skippy-xd</command>
  </action>
</keybind>

where W-s corresponds with Super + S.

First note: I am running xcompmgr, no idea if skippy will work on a non-compositing dsktop as well.

Second note: I have a precompiled amd64 .deb of skippy on my hard drive (one that I compiled myself in order to install it). I don't know what the askubuntu policy on spreading prepackaged binaries is, but if you're struggling with compiling skippy on your own I might be able to upload my version for you.


The best way to use Ubuntu One from KDE at this point, is probably to upgrade to Ubuntu 12.04.

The Ubuntu One control panel is now based on Qt.
The code is split up a bit better, and should be installable without requiring most of GNOME as it did before.
The programs have had many performance improvements, as well as bug fixes.

The new ubuntu-sso-client used by Ubuntu One now, should work with the new KWallet API in newer versions of KDE as well. It uses the Freedesktop Secrets API to talk to the keyring. However, if KWallet doesn't support everything that ubuntu-sso-client uses yet, then gnome-keyring will still be required. You can install that package, and ensure that gnome-keyring-daemon is getting started when you log in, and the environment variables it sets, are exported to the applications in KDE. You can check that by running env | grep GNOME_KEYRING inside a terminal.

Once that's set up, you should be able to launch ubuntuone-control-panel-qt, and click the Sign me in with an existing account button to log in with your current account.

However, if you simply get a blank page when logging in on the web site, you may want to file a support request at https://one.ubuntu.com/help/contact/ so that the support team can check your account is not having issues.


Upgrade from 17.04 to 17.10 on Samsung NC 10 80% of screen corrupted

The same issue happens on Acer Aspire One A110 (ZG5)

When system is booting and grub shows up, press "e"
Find line with "ro quiet splash" and add nomodeset so it says "ro nomodeset quiet splash".
Press CTRL-X to continue booting

Then there are two workarounds:

if you need the new kernel 4.13, you can add "nomodeset" to your kernel options permanently, but this will limit screen resolution to 800x600:

$ sudo vi /etc/default/grub
Then add "nomodeset" as below:
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset quiet splash"
$ sudo update-grub

if you don't mind running older kernel 4.10 and want full 1024x600 resolution, try this solution Set "older" kernel as default grub entry to set up kernel 4.10 as default (framebuffer works fine in this version, in 1024x600 and without having to use nomodeset)


Ubuntu Server 12.04 - webmin & OpenVPN have both stopped accepting connections

I eventually found the problem was the virtualbox host-only network adapter on Windows 2012 had reverted to its default ip address (though I'm not sure why), so the ubuntu guest which had a public ip on eth0 (bridged) and local ip on eth1 (host-only) could no longer communicate via eth1 and as such could accept connection requests via the public IP but could not make a ldap binding via eth1 in order to authenticate users - hence the AUTH_FAILED messages. This is also why I could not access the webmin interface from the host server.


Call and run php script from shell script

The problem in your code is the line:

. "${CONFIG}${i}/test.php"

Remove the .

Here is another example:

$ ls -l

-rwxrwxr-x 1 bg bg 67 Oct 20 09:42 index.php
-rwxrwxr-x 1 bg bg 68 Oct 20 09:43 test.sh

index.php

<?php
    shell_exec('echo Hello > /tmp/hello.txt');
?>

test.sh

#!/bin/bash
/usr/bin/php index.php


Open terminal, then make sample work folder and grab Golden Dict source:

git clone https://github.com/goldendict/goldendict.git

Goto cloned folder: cd goldendict

Unlike common use, file configure lists which packages are needed for building Golden Dict. Get them with apt-get:

sudo apt-get install libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev qt4-qmake libqt4-dev g++ libxtst-dev libphonon-dev

Now run: qmake and then make

If everything turns fine, you'll have file goldendict in current folder. Then just copy it to preferred folder, and try it:


writing note taking app, save and load text with tags from textbuffer written in python and glade

I haven't done this before, but looking at the gtk.TextBuffer documentation it has a serialize() and deserialize() method which seems exactly what you need.

From docs:

  This method serializes the portion of text between start and end in the rich text format represented by format.


How to install Sagemath on Ubuntu 20.04?

To install Sage Math, enter the command sudo apt install sagemath.
sagemath-common (which you installed) is one of the dependencies of the whole package. When you install sagemath, it would install all the required dependencies.


To create 4GB of swapfile, you can run:

sudo dd if=/dev/zero of=swapfile bs=1K count=4M

so by using multiplicative suffixes it's easier to count (1K * 4M = 4 GiB).

Then you need to convert that file into swap space, and enable it, so:

sudo mkswap swapfile
sudo swapon swapfile

For more details, check: How do I add a swap?


Sending syslog messages to storage pool instead of /var/log/

Change the /var/log directory into a soft symlink pointing to a folder on your larger device. Just mv the current log directory to the side, mv /var/log /var/log.old and then make a soft symlink ln -s [/path/to/folder/on/large/storage] /var/log and then your log files should be recreated. It's a work around so you don't have to point your logs to a different path.

I will use this trick if I need to scp a file from a server and I don't have permissions for it, but I do have root permissions.

I will create a soft symlink in my home directory pointing to the file I want to scp. That way I can retrieve it using scp server:~/file .


Fixed by running Computer Janitor in Ubuntu Tweak.


Can you do a

sudo apt-get dist-upgrade

and try again. Im running Windows 10 Education and I can simply install avrdude without any issue by repository.

Here is my output

user@USER-ROG502VS:/mnt/c/Program Files/MongoDB/Server/3.6/bin$ sudo apt install avrdude
[sudo] password for kasun:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libftdi1
Suggested packages:
  avrdude-doc
The following NEW packages will be installed:
  avrdude libftdi1
0 upgraded, 2 newly installed, 0 to remove and 76 not upgraded.
Need to get 306 kB of archives.
After this operation, 1,105 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libftdi1 amd64 0.20-4build1 [15.2
kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/universe amd64 avrdude amd64 6.2-5 [291 kB]
Fetched 306 kB in 20s (15.0 kB/s)
Selecting previously unselected package libftdi1:amd64.
(Reading database ... 25822 files and directories currently installed.)
Preparing to unpack .../libftdi1_0.20-4build1_amd64.deb ...
Unpacking libftdi1:amd64 (0.20-4build1) ...
Selecting previously unselected package avrdude.
Preparing to unpack .../avrdude_6.2-5_amd64.deb ...
Unpacking avrdude (6.2-5) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libftdi1:amd64 (0.20-4build1) ...
Setting up avrdude (6.2-5) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...

edit : If you have upgraded windows to latest version then please check your bash in windows store, make sure its correctly working, if not reinstall then this should work well.


How to keep a remote X11 app running after disconnecting SSH?

Xpra seems to be exactly what you are looking for.
It's a bit like screen or tmux but for X11 applications.

See this answer on http://unix.stackexchange.com for an example.


20.04 local repository not working for updates/installs

A problem exists with the version of apt-mirror that ships with Ubuntu 20.04.
Per the following github issues, it causes apt updates to fail when local repositories are used.
https://github.com/apt-mirror/apt-mirror/issues/102
https://github.com/apt-mirror/apt-mirror/issues/118
Here's a link to the updated apt-mirror package I used to solve this problem.
https://github.com/Stifler6996/apt-mirror


Stuck at Busybox v1.18.4 (ubuntu 1:1.18.4-2ubuntu2) built-in shell (ash) Enter help for a list of commands

I found the answer with this website, thanks to Wyatt Smith and David S.

https://answers.launchpad.net/ubuntu/+source/linux/+question/195941

Basically, so create a liveUSB, boot up using this. There's loads of info online for how to do this in official Ubuntu documentation.

Boot up with the USB plugged in.
In the Bios screen select boot options (or the other options, can't quite remember)
select the USB
select try ubuntu
wait
run "gparted" (this is used to adjust and fix any problems with partitions)
one by one select each partition, right click, select "check"
Then click the green tick to execute the operation
this will check and fix your partitions. It is highly unlikely your hard drive is broke, it's probably that you didn't properly shut down and something got messed up.
when you've done each partition (some are not possible) then restart normally and select your normal ubuntu.

This should fix your stuff.

This is not my fix, but I found it worked for me, so good luck. I've seen this problem on a few sites, so I'm repeating the post.

Alex


You can use pactl list sinks to get info on the current state of your sinks. This returns a lot of information, including the volume. So, to get only the volume of sink 1, you can use:
pactl list sinks | perl -000ne 'if(/#1/){/(Volume:.*)/; print "$1\n"}'

This will return something like:
Volume: 0:  50% 1:  50%

The above perl command will print the details of sink 1. To use a different sink, change the #1 to another number, for example #0.
I am not sure what the two 50% mean, I assume they are the left and right speaker volumes. So, in order to check if they are above or below a specific value, (assuming that the balance is set to "center", that both left and right volumes are identical so only one needs to be checked), you can do:
pactl list sinks | perl -000lne 'if(/#1/){/Volume:.*?(\d+)%/; $1 >= 50 ? (print "y\n") : (print "n\n")}'

The above will print a y if the volume is greater than or equal to 50 and an n otherwise. This is all getting a bit complex though, so I would simplify by creating a script:

    #!/usr/bin/env perl

    ## The sink we are interested in should be given as the
    ## 1st argument to the script.
    die("Need a sink number as the first argument\n") if @ARGV < 1;
    my $sink=$ARGV[0];

    ## If the script has been run with a second argument,
    ## that argument will be the volume threshold we are checking
    my $volume_limit=$ARGV[1]||undef;

    ## Run the pactl command and save the output in
    ## ther filehandle $fh
    open(my $fh, '-|', 'pactl list sinks');

    ## Set the record separator to consecutive newlines (same as -000)
    ## this means we read the info for each sink as a single "line".
    $/="\n\n";

    ## Go through the pactl output
    while (<$fh>) {
        ## If this is the sink we are interested in
        if (/#$sink/) {
            ## Extract the current colume of this sink
            /Volume:.*?(\d+)%/;
            my $volume=$1;
            ## If the script has been run with a second argument,
            ## check whether the volume is above or below that
            if ($volume_limit) {
                ## If the volume os greater than or equal to the
                ## value passed, print "y"
                if ($volume >= $volume_limit) {
                   print "y\n";
                    exit 0;
                }
                else {
                    print "n\n";
                    exit 1;
                }
            }
            ## Else, if the script has been run with just one argument,
            ## print the current volume.
            else {
                print "$volume%\n";
            }
        }
}

Save the script above as check_volume.pl in a directory in your $PATH (for example, /usr/local/bin), make it executable, chmod +x check_volume.pl and then run it giving the sink you are interested as the first argument:
$ check_volume.pl 1
50%

To check whether the volume is above a given threshold, give the threshold as a second argument:
$ check_volume.pl 1 50
y
$ check_volume.pl 1 70
n

Note that this assumes your system language is English. If it isn't run the script with a changed locale:
LC_ALL=C check_volume.pl 1 50


remove packaged from installed ubuntu from livecd

Boot the Ubuntu Live CD, press Ctrl-Alt-F1

$ sudo mount /dev/sda1 /mnt

If you created a custom partition layout when installing Ubuntu you have to find your root partition using the fdisk utility. See the section Finding your root partition.

$ sudo chroot /mnt


Configuring internet gateway in Ubuntu 14.04 (Desktop)

With goggling any one can easily configure Internet gateway, i was confused how to link my primary OS traffic with running machine on VMWare. i could be done by:

-Edit VMWare connection settings from NAT to bridge

-go in control panel of Primary OS and assign IP and gateway you provide in OS running on VMWare.

its done :-)


According to this answer "xmodmap has no notion of state, so it has no way to reset state directly."

So, you can restore it to back by undoing your edited keys:

Open terminal again and type this line one by one for key: for example to set the ; and F12 as default do following command.

xmodmap -e "keycode 47 = semicolon"
xmodmap -e "keycode 96 = F12"

Next type xmodmap -pke > ~/.Xmodmap

Or you can use setxkbmap -layout Your_keybard_Layout_Here to reset completely your changes to default.

Note: Replace correct keyboard layout istead of Your_keybard_Layout_Here use setxkbmap -query to find your correct layout.

For example my layout is "us":

user@test-pc:~$ setxkbmap -query
   rules:      evdev
   model:      pc105
   layout:     us        <---------------------- HERE
   options:    grp_led:scroll


I installed Ubuntu Desktop Edition on my Acer Aspire One and it works perfectly. I also got in troubles with the USB image but I did another one image and it works for me


Installing the package 'exfat-fuse' could solve the problem.

If the card reader is being detected correctly, as it seems it was from the original poster's logs, then perhaps the card was formatted with a filesystem such as 'exfat' for which support hasn't yet been installed. This has solved similar issues for me.


Permission denied while creating file or directory on /dev/sda1 in ext4 filesystem

That partition is the operating system partition.
The common user should not have write and modify access to it, as it can damage the system.
If you still want to try, you must log in, which is not advisable, as root with the file manager or in a terminal with command:
sudo mkdir

========================================================================
Edited - Move /home to partition:
You need to create a new filesystem on the partition.
sudo mkfs -t ext4 /dev/sda1

To use the new drive, You must mount the partition on it to a mount point in the filesystem.
sudo mount /dev/sda1 /mnt

You need to copy everything from the old home directory to the newly mounted filesystem.
sudo cp -rp /home/* /mnt

As a safety net, You're going to rename and keep your old /home directory until You’re satisfied that it is safe to delete it.
sudo mv /home /home.orig

And You’ll create a new, empty home directory.
sudo mkdir /home

You’ll use that new empty home directory as the mount point for Your filesystem on the new partition.
sudo umount /dev/sda1

sudo mount /dev/sda1 /home/

Check that everything is correct in the new /home
cd /home

ls

If anything was missing, You could copy it out of the /home.orig directory, which we still have access to in the root of the filesystem.
You need to have /dev/sda1 mounted automatically every time your computer is started, find out the UUID of the partition and edit the fstab file.
sudo blkid /dev/sda1

sudo gedit /etc/fstab

You must add the lines at the bottom of the file to mount your new /home directory
Type the UUUI of the partition at the start of the line, (UUID= blkid /dev/sda1 UUID) and then press Tab.

Type the mount point, /home,  and press Tab.

Type the filesystem description ext4, and press Tab.

Type defaults for the mount options, and press Tab.

Type the digit 0 for the filesystem dump option, and press Tab.

Type the digit 0 for the filesystem check option.

Save the fstab file, close Gedit and reboot.
Once you’re perfectly sure that you no longer need the safety copy of your old /home directory, you can delete it:
cd /

sudo rm -rf home.orig/

====================================================
Edited: Clean the system
I suggest you read about each command
Open a terminal and run:
sudo apt update
sudo apt install --reinstall deborphan
sudo apt autoremove
sudo deborphan
sudo apt --purge remove $(deborphan)
sudo deborphan --libdevel
sudo apt --purge remove $(deborphan --libdevel)
sudo deborphan --find-config
sudo dpkg --purge $(deborphan --find-config)
sudo apt clean
rm -rf /home/*/.local/share/Trash/*/** &> /dev/null
rm -rf /root/.local/share/Trash/*/** &> /dev/null

=========================================================


Inkscape-0.91: You can get a package with a fake name, inkscape_0.92.1-10ubuntu17_amd64.deb → To prevent any automatic update from installing a new version.

dpkg -s inkscape will report: Version 0.92.1 ... ... Description: Inkscape 0.91

Download link https://drive.google.com/file/d/0B7S255p3kFXNMDVycFMzeGtmLTA/view?usp=sharing The package provides /usr/local/bin/{inkscape, inkview}.

The package was compiled and built with Ubuntu 17.04 .


How to Dual Boot Windows 10 and Ubuntu 16 off an External Drive

Dual Boot Windows 10 and Ubuntu 16 with Externally Via GRUB2

Part One - Overview

Abstract

This procedure designed to install a dual boot of Windows 10 and Ubuntu 16 with the addition of live ISOs to an external hard drive with Grub2 as the bootloader. This process includes installing windows 10 externally, changing the partition table to install Grub2, install Ubuntu 16, and to configure the bootloader to be able to boot live ISO files. This is my first how-to, so please feel free to edit this to be more beneficial.

Updates

05/07/16: Tutorial Uploaded to AskUbuntu.

09/07/16: Uploaded grub.cfg file.

11/16/16: Now on GitHub.

Materials

Tools Needed:

External Hard Drive (128GB minimum)
USB Flash Drive (4GB minimum)
Grub2's grub.cfg file.

Software Used:

Windows Media Creation Tool
GImageX
YUMI
GParted
CloneZilla (Recommend)

ISOs Needed:

Windows 10
Ubuntu 16
Lubuntu 15
Kali 2016
Clonezilla 2.4
DBAN 2.3
OPRE 1.4

Part Two - Installing Windows 10

Introduction

We will be working in the Windows 10 operating system. This includes downloading the WIM file as well as formatting it to the external hard drive to be able to boot. We conclude with setting up Windows 10 on the external drive.

Steps

Download the Windows Media Creation Tool with the button "Download tool now".
Open the downloaded executable file and accept the terms and conditions.
Select the option "Create installation media for another PC" followed by "Next".
Uncheck "Use recommend options for this PC" and select what options you need, then select "Next".
Choose the option "ISO file" and select "Next".
Make a new folder on your desktop labeled "ISOs" and save the ISO file to the ISO folder on your desktop.
Wait until the ISO file has successfully been created and close the program.
Go to the ISOs folder on the desktop and mount the ISO by double clicking the file.
Run Administrator Command Prompt.
Navigate to the WIM file location by changing to volume and using the "cd" command.
D: Note: Make sure you use the drive letter of your mounted iso.
cd /sources
Now we need to get information about the ESD file to convert it to a WIM file.
dism /Get-WimInfo /WimFile:install.esd
Convert the ESD file to a WIM file using DISM and save it to the ISO folder.
C:\Users\youkergav\Desktop\ISOs Note: Change "youkergav" to your username so the path is correctly specified.
Once the image export is successful, close command prompt.
Plug in you external hard drive and launch "Disk Management"
Locate the external hard drive and format the drive to NTFS with the label as "Portable Windows" Note: Be aware this will delete all the contents of the drive.
Download and install GImageX.
Open GImageX and go to the "Apply" tab.
Browse for the source. This is the WIM file that is located on the desktop folder "ISOs".
Browse for the destination. This will be the "Portable Windows" drive we just formatted.
Select "Apply" and wait for GImageX to apply the image to the drive.
Go back to Disk Management and make the partition active.
Open Administrator Command Prompt and navigate to the external drive's System32.
D: Note: Make sure the drive letter is the same as your external drive.
cd /Windows/System32
Make the drives boot entries.
bcdboot.exe D:\Windows /s D: /f ALL Note: Make sure the drive letter is the same as your external drive.
After Command Prompt reads "Boot files successfully created.", boot to the external drive through the BIOS and set up windows just like you would for the first time.
Once you setup everything set up to your liking, reboot back into the external drive to make sure all the data is clean.

Part Three - Installing Grub2

Introduction

In this part of the procedure, we will install grub2. We will do this by making a live version of Ubuntu and Clonezilla (Clonezilla is optional, but recommended). This objective will be completed by using Windows 10 to create a temporary bootloader for Ubuntu and CloneZilla via YUMI. The rest of this section will be done in Ubuntu 16 Live.

Download and install YUMI.
Download ISOs for Ubuntu and CloneZilla to ISOs folder.
Insert flash drive (not external drive) and open YUMI.
Select flash drive from dropdown and FAT32 the drive. Note: Formatting drive will erase contents.
Select Ubuntu from dropdown and locate the Ubuntu ISO.
Create the image.
Select "Yes" when adding more ISOs and image the CloneZilla ISO. Note: Do not FAT32 drive.
Boot to the flash drive from the BIOS.
From the YUMI bootloader, select "Linux Distributions" and boot Ubuntu.
Once Ubuntu is booted, open the program "Disks" and insert your external hard drive.
Under devices, find the device location.
Open the program "GParted" and select the device location of your external hard drive.
Right click and select "unmount" on the partition.
Right click on the partition and select "resize/move".
Resize the partition to 50 GB (51200 MB).
Right click on the unallocated space and select "new".
Make the partition size 25 GB (25600 MB). Format the drive to FAT32 and label the filesystem "Bootloader".
Click the check mark to apply changes.
Open terminal and log in as sudo user.
sudo su
Select the drive using fdisk.
fdisk /dev/sde NOTE please make sure you use your device path.
Activate the drive on partition 2 and write the changes to the drive.
a 2 w
Unmount the partition if it is mounted.
umount /dev/sde1 Note: Please use your specified device path.
Format the drive using mkfs.vfat.
mkfs.vfat -F 32 -n MULTIBOOT /dev/sde1 Note: Please use your specified device path.
Make the directory /mnt/USB and mount the device to that path.
mkdir /mnt/USB && mount /dev/sde2 /mnt/USB
Install grub to the device path.
grub-install --force --no-floppy --boot-directory=/mnt/USB/boot /dev/sde
Go to the directory grub and make folder for ISOs.
cd /mnt/USB/boot && mkdir images
Download the grub.cfg file.
Move the grub.cfg file to /mnt/USB/boot/grub/.

Part Four - Install Live ISOs.

Introduction

This part is a quick and easy way to install the live ISOs of CloneZilla, Lubuntu, and DBAN. Simply download the ISOs, rename the files, and place them to the right destination. This is made easy because the set up is already coded in the grub configuration file.

Steps

Download the ISOs for CloneZilla, Lubuntu, and DBAN.
Name the CloneZilla ISO "clonezilla.iso". Name the Lubuntu ISO "lubuntu.iso". Name the DBAN ISO "dban.iso"
Move the ISOs to the folder /mnt/USB/boot/images

Part Five - Installing Ubuntu.

Introduction

This is the final piece to making the bootloader complete. We now have to create the partitions necessary to install Ubuntu. The only difference between this and a normal install is to install Ubuntu without Grub2. We also need to manually install the partitions for Ubuntu.

Steps

Open Terminal and use the command to install Ubuntu without Grub2.
ubiquity -b
Select your language and proceed.
Select the option "Something Else"
Find your external drive path and click the free space then "+".
Add a swap partition with 8 GB (8192 MB). Make the partition a primary partiton
Click on the free space again, followed by clicking "+".
Add 20 GB (20480 MB) logical partiton, mounted on "/".
Use the remaining space as portable storage.
Install the Ubuntu system the the drive to dev/sdc. Note: Please use device path.
Use your bootloader.

Part 6 - Backup (Optional)

Background

I will not be going over this in detail. It is recommended that you clone the disk in case you lose it or need to restore it. This can be done in CloneZilla.

Steps

Boot from flash drive though BIOS.
Select "System Tools" and boot CloneZilla.
Configure CloneZilla settings and select "Clone Disks"
Clone the disk associated with the device path.

Conclusion

Thanks if you followed! :) Appreciate support... took a while to write. Please let me know if any errors or edit it yourself! Let me know if this works for you. This is how I did it for my bootloader.


Program uninstalled but still on list to remove

You can use Synaptic Package Manager (GUI) or Command Line

If you do not have Synaptic Package Manager installed, you can install it either, by using Ubuntu Software Center or by typing:

sudo apt-get install synaptic

To more information on how to use Synaptic Package Manager See this page

Command line

To completely remove programs using the command line, you have the following options;

Completely remove package using dpkg

sudo dpkg -P package name

Remove package and config files, but not dependences using apt-get

sudo apt-get --purge remove package name

Remove unused dependencies and config files using apt-get

sudo apt-get --purge autoremove

Remove package and unused dependencies of package, and config files using aptitude

sudo aptitude purge package name


Why am I unable to connect to WiFi network? Password is reported to be incorrect

Are you sure it is asking you for the password for the wireless network, and not your user password in order to access the keyring that contains the key for the network?  The first time you enter the password, it will normally save this paassword to the keyring, then it won't need to keep asking you every time.  I believe it uses your login password as the keyring password, but if these are different, then it will prompt you for the keyring password.  The default behavior always works well for me, but in the past, I've had problems with this when I didn't understand the behavior, but tried to do something non-standard anyway.

The next thing you should understand as soon as you can is that there is no such thing as "administrator" of the system, per se.  There is root authority, but you do not normally use this, ever.  Instead, Ubuntu has a way to temporarily give you elevated privileges, using sudo, or gksu.  Using your normal login, you should never have privileges to change the system.  But there is an easy way to do it, by using the built-in methods I mentioned.  This is not something to be worked around, it is there for your protection.  Yes, you need it, unless your system is a throwaway system that you don't mind fixing or reinstalling regularly.


No Disk Space Left While There is a Space

I don't know if this is related but I guess I should mention I have a pictures directory where I keep more than 1 million image files.

That is your problem. Every directory and file also consume 1 inode so that wont fix your problem.

df -i

shows you inodes (check for your own system how many you have free) Example:

Filesystem       Inodes  IUsed    IFree IUse% Mounted on
udev            1518973    590  1518383    1% /dev
tmpfs           1523785    843  1522942    1% /run
/dev/sda2       3049648 190226  2859422    7% /
tmpfs           1523785     15  1523770    1% /dev/shm
tmpfs           1523785      3  1523782    1% /run/lock
tmpfs           1523785     18  1523767    1% /sys/fs/cgroup
/dev/sda1             0      0        0     - /boot/efi
/dev/sda5       2256576  12935  2243641    1% /home
/dev/sdb1      61054976   1638 61053338    1% /discworld
cgmfs           1523785     14  1523771    1% /run/cgmanager/fs
tmpfs           1523785     33  1523752    1% /run/user/1000

Running out of them also is a "no space left on device".

You set the amount of inodes during creation of the partition so it is not easy to fix when the disk contains so many files (you'd need to back them up, recreate the file system and then restore them).

You are probably better off creating a 2nd, 3rd, 4th partition and store those files on those partitions.


Make ubuntu use specific part of screen only [Ubuntu 19.04]

You could turn down the resolution and then set the zoom or aspect setting on the screen so that it doesn't stretch the smaller, non native resolution.


How to create a RAID1 btrfs with two disks and a mirror attached to each?

You can make a RAID1 on those 4 disks by

sudo mkfs.btrfs -m raid1 -d raid1 /dev/sda /dev/sdg /dev/sdd /dev/cdc

All data and metadata will be mirrored.

-m and -d are set to store both data and metadata as RAID1. You don't need to care which data will be stored where.

On btrfs you don't set "hardcoded" mirrors.

You can mount the raid by choosing either of disks in a mount command.


"Focus application" keyboard shortcut in Lubuntu (LXDE)

Openbox (LXDE's window manager) doesn't have an inbuilt functionality for this, but with a little help from xdotool we can write a script that can replicate and even enhance Unity's behaviour.

First, make sure you have xdotool installed:

sudo apt-get install xdotool

Save the following script as focus_or_launch and make it executable:

 #!/bin/bash

# NAME:         focus_or_launch
# VERSION:      0.4
# AUTHOR:       (c) 2014 Glutanimate <https://github.com/Glutanimate/>
#
# DESCRIPTION:  Focus existing app window or launch application if no
#               window found
#
#               Simplified version of a script by Henning Bekel
#               (https://bbs.archlinux.org/viewtopic.php?pid=625009#p625009)
#
# DEPENDENCIES: xdotool
#
# LICENSE:      GNU GPLv3 (http://www.gnu.de/documents/gpl-3.0.en.html)
#
# NOTICE:       THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
#               EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
#               PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
#               IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
#               AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
#               PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE,
#               YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
#
#               IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY
#               COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS
#               PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
#               INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
#               THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
#               INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
#               PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
#               PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
#
# USAGE:        focus_or_launch <command>
# EXAMPLE:      focus_or_launch google-chrome

############# GLOBVAR/PREP ###############

Executable="$1"
ExecutableBase="$(basename "$Executable")"
Usage="\
Usage: $(basename $0) command
E.g.:  $(basename $0) google-chrome\
"

############## USGCHECKS #################

if [[ $# -ne 1 || "$1" =~ ^(-h|--help)$ ]]; then
  echo "$Usage"
  exit 1
fi

################ MAIN ####################

MostRecentWID="$(xdotool search --class --name "$ExecutableBase" | tail -1 2> /dev/null)"

if [[ -z "$MostRecentWID" ]]; then
  echo "$ExecutableBase not found. Launching new window."
  "$Executable" > /dev/null 2>&1 &
  disown
else
  echo "Focusing existing instance of $ExecutableBase."
  # use brute-force approach if activating most recent WID doesn't work
  xdotool windowactivate "$MostRecentWID" 2>&1 | grep failed \
  && xdotool search --class --name "$ExecutableBase" windowactivate %@
fi

Here's how the script works: When you run focus_or_launch application xdotool will look for existing instances of the application and focus one of them. If no instance is found the script will launch a new one.

To integrate this script with your desktop session edit your openbox configuration file (e.g. ~/.config/openbox/lxde-rc.xml, ../lubuntu-rc.xml or ../rc.xml) and add a section similar to the following for each application you want to control:

<keybind key="W-g">
  <action name="Execute">
    <command>focus_or_launch gedit</command>
  </action>
</keybind>

Make sure to replace focus_or_launch with the path to the script on your system or,  alternatively, copy the script to your $PATH.

If you don't want the script to launch a new app instance, simply remove the following section:

"$Executable" > /dev/null 2>&1 &
disown

P.S.: This script should work on all xdotool-compatible desktop environments (e.g. Unity, GNOME, XFCE...)


You can clone my own docear repository from GitHub. It should work out of the box on Ubuntu since it comes with the right java library (and it does not require to set additional environment variables).
Unfortunately, it seems like the project is not developed anymore and the software can only be kept up-to-date by the opensource community.


Lenovo T60P with 4GB of RAM, Ubuntu 11.04 and 11.10 only see 3GB

32 bit Ubuntu should detect > 4GB RAM at install and 'automagically' enable Physical Address Extensions, which lets you use up to 64GB RAM. Not in exactly the same way as 64 bit installs, but you can see it and use it. Check that your processor supports this first:

grep --color=always -i PAE /proc/cpuinfo

I had this same laptop (excellent machine, btw) with 4GB RAM and this all worked just fine.

Failing that, you can test your memory to make sure it is not the culprit here. You need to choose memtest86 at the GRUB menu. You can do this from the Live CD or USB if you have just one OS installed and don't usually see GRUB at boot.

If none of this helps, post an update to your question with more info and we can help you some more.


Keeping the nVidia CUDA driver in sync with kernel updates

I haven't run nvidia drivers from their site for a while, but when I did this helped Automatically update manually installed NVidia drivers after kernel updates

Don't know if it still works.


Black borders after installing Calalyst 14.4

Problem solved here:

https://help.ubuntu.com/community/BinaryDriverHowto/AMD

See para 5.2. In a terminal:

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

sudo reboot

Now have nice full screen!


Ubuntu live USB can't see internal drive on Macbook Air (early 2015)

I've experienced this problem myself and I have found that the possible
cause is the MacBook NVMe SSD is not found because Apple gave it an
incorrect PCI Class ID.

There is a patch available see link below :

https://bugzilla.kernel.org/show_bug.cgi?id=105621

kernel 4.4 should have the patch applied already so in theory if you
could have a linux installer usb disk with updated 4.4 kernel
it should be possible to install linux on the SSD.

Another option is to apply the patch on an older kernel and install from there

I havent tried this myself yet as i have no experience with patching.


The 'rc' at the beginning of the line means that the package has been removed.
Currently installed packages are the 'ii' lines.

You are looking at the database of packages that dpkg is aware of, installed or not, including packages from the past that have since been removed.

If you really want to re-install an older kernel, there's a good chance that simply telling apt will do the trick: sudo apt install linux-image-4.18.0-25-generic

Since Ubuntu regularly wants to upgrade you to a newer kernel, you can apt-mark the package so it doesn't get removed again: sudo apt-mark hold linux-image-4.18.0-25-generic.

Someday, when you change your mind and DO want to remove the old kernel: sudo apt-mark unhold linux-image-4.18.0-25-generic


Is there a way to shut off the hard drive when running the live USB stick with Bionic Beaver?

You have already mentioned the most low level method - unplug the drive, or at least the power and/or data connection. This is straight-forward, and you can be sure that it will work :-)

In many (but not all) computers, you can disable a drive in BIOS/UEFI menu system at boot. It is worth checking if this option is available in your computer.

Depending on what you want to do, you may find a tool which helps you identify the drives and select target and perform the operations. There should also be a final checkpoint. These features will make your potentially risky operations safer.

But in any case, it is very important to check which drives are connected, and which device letter corresponds to each of the drives, to avoid writing to the wrong drive.

I would recommend the following commands

df -h
sudo lsblk -f
sudo lsblk -m
sudo parted -ls

maybe also

sudo fdisk -lu
sudo blkid

and if you want a graphical tool gparted from the menu or

sudo -H gparted

Edit:

According to your comment, I think it is a good solution to just power down the hard drive by unplugging it or unplug the power and/or data cables.
Later on,

If you want a persistent live drive, try mkusb. It can use the whole USB pendrive because it uses a casper-rw partition to store the persistent data (installed programs as well as data files).
If you want a system in your USB drive, that is installed like into an internal drive, see this link: How do I install Ubuntu to a USB key? (without using Startup Disk Creator)


How to use backspace in terminal in ubuntu 13.10..?

You can change this behavior by editing the terminal profile.

Go Profile Preferences, either by:

Right-clicking in the terminal window and choosing Profiles >> Profiles Preferences

Or from the menu: Edit >> Profile Preferences
Go the the compatibility tab
Find Backspace key generates
Select ASCII DEL

This should solve your problem.


You only need to redirect that command output to a file like:

your_command > outfile

You can add & in the end in above command to send the command to running in background if you needed.

your_command > outfile &


I have found a solution to my problem. All I've got to do was upgrading software with command:

$ sudo apt-get upgrade

Now mouse and keyboard are working fine.


Change operating system language of ubuntu after insallaled

Open Language support from Dash.
Select English(US) language and then apply it system wide.
Now it works.


How do I implement progressbar in appindicator?

Progress bars are by design not supported in app indicators, but they are in Unity Launcher icons.

Check out the Launcher integration documentation for the details.
Watch the Unity integration workshop


According to man dh_installcron:

--name=name
   Look for files named debian/package.name.cron.* and install them as
   etc/cron.*/name, instead of using the usual files and installing
   them as the package name.

So name your debian/package-name.foobar.cron.d, and add to debian/rules:

override_dh_installcron:
    dh_installcron --name=foobar


Where can I find an automatic day-night color balance adjuster similar to f.lux/Redshift that works with multiple monitors?

I had the same problem with -m vidmode but when I used -m randr instead, both monitor changed.

For example, I use:

gtk-redshift -l 49.2:-123.1 6500:3700  -b 0.7 -g 0.8 -m randr -v


Issues installing smbclient and openssh-server on 18.04.2

For the issue for openssh-server, I solved with this :
sudo apt-get install openssh-client=1:7.6p1-4 (copied the version mentioned in the message to install the required dependency version manually)


Would there be any negative side-effects of sharing /var/cache/apt/ between two systems?

I believe that /var/cache/apt/{,src}pkgcache.bin contains the current installed packages.

Instead of sharing /var/cache/apt/, share the /var/cache/apt/archives/ directory, which contains independent files. You have to do some tweaking, because /var/cache/apt/archives is owned and writable only by root. One option would be setting the group of /var/cache/apt/archives to apt-cache-writer and adding the setgid bit to the directory. Add yourself to the apt-cache-writer group and set the umask to something like 0002 or 0007 instead of 0022.

Note that sudo apt-get clean clears this directory (/var/cache/apt/archives).