What is better Ubuntu Tweak or Software center?

None. They have different uses.

Ubuntu Tweak is a Management Tool software, which happens to have an menu for installing popular applications. It has menu entrys that allow tweaking windows buttons, cleaning cache and so on. I personally think that Ubuntu Tweak main focus is allowing easy configuration of the system, not installing apps, and this should be the focus of future versions of it. So yeah, I don't think it'll overlap the functionalities of Ubuntu Software Center.

Ubuntu Software Center is a Application Install Software (front-end to apt-get) which allow you to install/remove ANY applications in your computer. I personally think that Ubuntu Software Center focus is to make easier to install/remove/manage software for your system. I think it's headed to archive a experience of a "Iphone Store" for the Linux Desktop, which we can see as they are trying to synchronize applications installed on the system and pushing payed apps on the Software Center.


Code::Blocks from the default Ubuntu repositories is an alternative to Dev-C++ with similar features. Code::Blocks is a cross-platform Integrated Development Environment (IDE). It is based on a self-developed plugin framework allowing unlimited extensibility. Most of its functionality is already provided by plugins. Plugins included in the base package are:

Compiler frontend to many free compilers
Debugger frontend for GDB
Source formatter (based on AStyle)
Wizard to create new C++ classes
Code-completion / symbols-browser (work in progress)
Default MIME handler
Wizard to create new Code::Blocks plugins
To-do list
Extensible wizard based on scripts
Autosave (saves your work in the unfortunate case of a crash)

Compare this functionality to the functionality of Dev-C++ and you'll see the resemblance, so it's worth a try.

To install Code::Blocks open the terminal and type:

sudo apt install codeblocks g++ xterm gdb # optional g++-8


I have solved this with the help of the Launchpad people. The issue is that the Launchpad screen where you enter the key's fingerprint times out. But does not indicate it has done so.   When I entered the fingerprint and pressed Import, it took me to a re-login screen.  I thought it was processing my input but in fact had discarded the input as the session had expired.
By ensuring you are ready to proceed, not flicking through various documentation tabs, when you get to the fingerprint page, it all works as expected.
Davo


I am trying to compile WRF, while checking System Environment Tests am getting error as shown below

you would have installed 32 bit linux os on your system. So, you have to write -m32 instead of -m64.
Initially, i had the same problem u have posted. Now, it is working.


VMRC on Ubuntu does not render client area

I have finally solved my problem:

in the folder /etc/profile.d/ I had found some scripts from elementary-os theme:

gtk-csd.sh
qt-style-override.sh
qt-qpa-platformtheme.sh

that set some environmental variables (e.g. export GTK_CSD=1). I have removed them all and voila, my vmrc works again. Due to my impatience I did not investigated which one of these files actually was the source of the problem, however I surmise it was the first one.

Wojtek


Also exist nice alternatives for hungry Autodesk products.

FreeCAD

FreeCAD - A parametric 3D CAD modeler

just free and just available for all major operating systems.

Q-CAD

Other one is more than ten times cheaper than AutoCAD and it is very handy software:
Q-CAD Community Edition - Features
A professional 2d builder based on SVG manipulation and ECMAScript, which support DXF/DWG through 2010 version.

BRL-CAD

To full impress third one is BRL-CAD, a powerful cross-platform open source solid modeling system that includes interactive geometry editing.

... and his Stryker ICV 8 trillions rays rendering example :

Update:

DraftSight

DraftSight - Overview
Professional CAD software.


Dual Monitor Tearing, Missing Compiz Refresh Rate,

It's dirty fix, but works for me in Ubuntu 13.10.

In section "Monitor" i changed VertRefresh     75.0 - 75.0 and added to section "Screen:" Option         "UseEDIDFreqs" "False"

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 331.20  (buildmeister@swio-display-x86-rhel47-05)  Wed Oct 30 18:20:32 PDT 2013

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "BenQ FP93GX+"
    HorizSync       31.0 - 83.0
    VertRefresh     75.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 260"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "1280x1024_75+0+0"
    Option         "UseEDIDFreqs" "False"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


Dell ubuntu Repositories authorisation Key

Note: This answer assumes you're running on Ubuntu 16.04, codename xenial. If this is not the case, please edit your post to reflect the version of Ubuntu you are planning to install.

It's much easier to just add these to a sources.list.d file. Run this command:

cat << 'EOL' | sudo tee /etc/apt/sources.list.d/dell-repos.list
deb http://dell.archive.canonical.com/updates/ xenial-dell public
deb http://dell.archive.canonical.com/updates/ xenial-dell-crane-kbl public
deb-src http://dell.archive.canonical.com/updates/ xenial-dell public
deb-src http://dell.archive.canonical.com/updates/ xenial-dell-crane-kbl public
EOL

When you run this, copy and paste all of it. Do not run it line-by-line.

After you're done with the above, run this command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9FDA6BED73CDC22

Finally, run this command to update your package cache:

sudo apt update

Your Dell repos will now be added to your system, and you will be able to install packages freely.


I finally got it to work. I installed Synaptic Package Manager, and then I chose Not Installed (reconfigure) tab where you have packages that didn't installed properly.

Uninstall all the packages there and search for each of the packages in the error message. And Bingo, my cheese installed completely and finally started working.

I was also able to install ubuntu desktop and system settings worked perfectly using
sudo apt-get install ubuntu-desktop

That did it.


First, only ask one question per Question. It makes it easier for other people to search your question and its answer.

Second, replacing the battery will cost much less than replacing the laptop, so that's what I recommend as a first step.


MEncoder AC3 has no sound when run with VLC

Could you try using avconv instead? AFAIK, they share a lot of the same encoders, so this will test if the problem is a mencoder-specific issue. To copy all streams, use:

avconv -i input.avi -c copy output.avi

(obviously use whatever file extensions are appropriate to your needs)


Remove separate version of Python 2.7 after install

FYI, I fixed this by running:

which -a python

This gave me 2 different python binaries:

/usr/local/bin/python
/usr/bin/python

where /usr/bin/python was the original.

Both of these paths were symlinks to python2.7 in the same directories, that is /usr/bin/python was a symlink to /usr/bin/python2.7 and so on.

I simply symlinked the /usr/local/bin/python to /usr/bin/python2.7 and the conflicts were resolved.

I am not sure if this is the best solution but it seems to work.


The problem seems to be with the Video Drivers.

Enter recovery mode.
Log in with your user name and password.
Install the video drivers for your computer.

If you don't know how to install your video dirvers, follow this guide.


How can I change the decimal separator for my locale?

Copied /usr/share/i18n/locales/sv_SE to .../sv_SE_std-comma
Then edited .../sv_SE 'in place' and copied to .../sv_SE_dp

$ diff -u2 /usr/share/i18n/locales/sv_SE_dp /usr/share/i18n/locales/sv_SE_std-comma
--- /usr/share/i18n/locales/sv_SE_dp    2020-12-30 21:06:07.959649184 +0100
+++ /usr/share/i18n/locales/sv_SE_std-comma 2020-12-30 19:21:36.726778749 +0100
@@ -196,6 +196,6 @@

 LC_NUMERIC
-decimal_point           "."
-thousands_sep           " "
+decimal_point           ","
+thousands_sep           ""
 grouping                3;3
 END LC_NUMERIC

$ sudo locale-gen
Generating locales (this might take a while)...
- - - 8<---
  sv_SE.UTF-8... done
Generation complete.

$ locale -k LC_NUMERIC
decimal_point="."
thousands_sep=" "
grouping=3;3
numeric-decimal-point-wc=46
numeric-thousands-sep-wc=32
numeric-codeset="UTF-8"

$

Now LibreOffice Calc accepts numbers with decimal point,
entered with a deci-point from the numeric keypad Del/,-key
Nice!


This would be better done with an XML library, but here it is in sed...

Sed has i and a commands for inserting and appending lines. I think the following script will help.

sed -n '/log4jConfigLocation/=' < test.test |\
while read index; do
    sed -i $search -e "$((index-1)) i\ <\!--" -e "$((index+8)) a\ -->" < $search
done

The first part, `sed -n '/log4jConfigLocation/=' will get the line numbers that have 'log4jConfigLocation'. The next part uses those line numbers in two commands: insert a line 1 line above, and append a line 8 lines below.

There is a better way using sed's hold buffer, but I'm not familiar enough with it; if you're interested, you can see this guide. Ultimately, though, if you're going to be working with this type of stuff regularly, you should check out XMLStarlet.


How can I remove an empty main menu category in Ubuntu Budgie 19.04?

You are not alone in finding Menulibre an unsatisfactory (albeit official) solution Issue 789 Issue 939. You may wish to add your voice to those assembled multitudes to encourage a satisfactory solution. Until then, have you tried Appeditor (more)? That requires:

sudo apt install flatpak
sudo flatpak remote-add --if-not-exists flathub  https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub com.github.donadigo.appeditor


The annotation palette must be open to use annotation tools. As @DK Bose already mentioned, there are already keyboard shortcuts assigned to the preinstalled annotation tools (hover over a tool to display its shortcut).

The shortcuts are defined in ~/.config/okularpartrc. It is a bit hard to read because all tools are defined in one line, but the shortcuts are defined inside <shortcut> tags. Instead of single keys, you can also define combinations using modifiers, e.g.:

<shortcut>ctrl+shift+j</shortcut>

Edit:
Apparently, shortcut assignment is hard coded in the annotation configuration (see here). This means that as soon as you open Okular's configuration and click Apply or Ok, changes in okularpartrc will be overriden. The first nine tools will automatically be assigned the numbers 1-9 as shortcuts.


"Failure to download extra data files" with ttf-mscorefonts-installer on Ubuntu 16.04

Summary:

wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.7_all.deb
sudo apt-get purge ttf-mscorefonts-installer -y
sudo apt install ./ttf-mscorefonts-installer_3.7_all.deb

This seems to be an Ubuntu server problem for now. Below is a temporary workaround to avoid this problem:

Download all the fonts except for wd97vwr32.exe from the sourceforge site using your favorite internet browser. Put all of the exe files in one folder.

Then run the command line in your terminal:

sudo dpkg-reconfigure ttf-mscorefonts-installer

with the fonts folder directed.

Notice that you may need to repeat this operation for a couple of times if there are more missing-fonts messages popping up. For all missing fonts, you should try searching for the missed fonts, download the exe files and put them in the fonts folder created in the previous step and redo the command line until no more error messages pop up.

The prompt will stop popping out after this. As pointed out in the other answer, this is a bug of the Ubuntu 16.04 system, and hopefully it will be fixed at the root soon.

Update on 2018-11-6: A better/easier workaround is to download the 3.7 or the latest version of ttf-mscorefonts-installer from Debian. Double clicking and installing that package with gnome's software center (and probably also ubuntu's software center) works perfectly. Or, if you would like to run some code, here you go:

wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.7_all.deb -P ~/Downloads

will download the package to your Downloads folder, and

sudo apt install ~/Downloads/ttf-mscorefonts-installer_3.7_all.deb


To sleep the number of seconds specified in timeout.txt file:

#!/bin/sh
read timeout <timeout.txt
date
sleep $timeout
date

Or using bash-specific syntax:

#!/bin/bash
date
sleep $(<timeout.txt)
date


Bash script to update BIND ACL - unwanted character

So, you are trying to use the (GNU extension) a text command to append text after a match. However, your text in this case starts with a tab character, represented in sed by the escape sequence \t.
Unfortunately there is also a (POSIX compliant) form of the append command in which a backslash character separates the a command from the text. So when you write a\t it appends a literal t. You "fixed" that by placing an additional character (first &, then later /) to separate the backslash from the a command - but that just caused those characters to be appended literally.
To resolve the ambiguity, you need to pass the command as a\\t. Unfortunately, because you are using double quotes around the whole sed expression (to allow for expansion of shell variables), the shell will expand \\ to \; to pass \\ you need to escape both backslashes:
sed "/acl \"trusted\" {/a\\\\t$ACL_IP;    # $SRV_HOST_NAME"

Alternatively, single-quote the parts that don't need shell expansion:
sed '/acl "trusted" {/a\\t'"$ACL_IP;    # $SRV_HOST_NAME"

Another option is to replace the escape sequence \t by a literal tab, composed using Ctrl+V then TAB. You must still use the a\ form of the command, since the GNU extension a text form ignores leading whitespace.

Alternatively (and perhaps more cleanly) you could use the r command to read a printf-formatted string from standard input:
printf '\t%s;    # %s\n' "$ACL_IP" "$SRV_HOST_NAME" |
  sed -i '/acl "trusted" {/r/dev/stdin' "$ACL_CONF_FILE"


You need to use the command

chmod +x xampp-linux-x64-5.5.30-0-installer.run

Only then you can execute it.


Splitting lines from a txt file into excel columns in bash

The rs (reshape) utility, originally from BSD, is useful for this kind of thing.
For example:
$ rs -e -t 4 0 < lines.txt
ab.qq  cd.qq  ef.qq
1      3      7
2      4      8
3      5      9

where

-e says to treat each line of input as an element
-t transposes columns to rows
4 0 outputs 4 rows and as many columns as required

The -c and -C options respectively set the input and output separator characters - so for CSV output you can use
$ rs -etC, 4 0 < lines.txt
ab.qq,cd.qq,ef.qq,
1,3,7,
2,4,8,
3,5,9,

rs is available as a package of the same name from the Ubuntu universe repository.

Alternatively, you could do something like this in awk:
$ awk '
    {a[NR%4] = a[NR%4] == "" ? $0 : a[NR%4] "," $0}
    END {for(i=1;i<=4;i++) print a[i%4]}
' lines.txt
ab.qq,cd.qq,ef.qq
1,3,7
2,4,8
3,5,9


Recently I have been struggling with VNC on a Raspberry Pi. I got similar errors like you at the client side.
I decided to install TightVNCserver instead of the default, since TightVNC got many good reviews.
You can install TightVNC on your server (sudo apt-get install tightvncserver).
First stop the other VNC server software or remove it.
Then to test TightVNC, you log in as normal user, and set a VNC password.

$ tightvncpasswd

After that start tightvnc as normal user on your server.

$ tightvncserver

That would start VNC on your server.

Then on your local machine do the following, to build an ssh tunnel :

$ ssh -v remote-username@remote-hostname -L 5901:localhost:5901

This needed because VNC runs at localhost by default, but also needed
to prevent plain text traffic.

After that start Remmina client, and configure it to connect to localhost:5901 with the remote username and the VNC password you created.

When this test works fine, you can continue to create a start-up script
for boot time on your server, or decide to use it manually after each reboot.

Apart from VNC, the x2go is in my opinion nicer and easier to use.
A very cool solution for a remote desktop.
X2go is available in the Ubuntu repositories. For more info have a look here :

http://wiki.x2go.org/doku.php/start


How do I start KeePass2 (portable) from Nautilus in Ubuntu 13.04?

This is functionality that was removed from versions of Ubuntu @ 11.10 and beyond. The 'Add' for adding a custom opener no longer exists. If you would like to do this open a terminal and change to your KeePass directory.

Then type:

mimeopen -d KeePass.exe

You will see that there will be options asking what you want the default open to be, you will select the number that has the option 'Other' and when prompted:

mono %f

This should allow it into the Open With list. I hope this helps!


It helped me this link from DaboRoss.

For example command for resize: ffmpeg -i in.ogv -vf "crop=500:250:13:0" out.ogv


Synaptic package manager will not install

You need to enable the universe repository.

In the command line:

sudo add-apt-repository universe

Or using the Software Properties:

Open the Software Sources:

And tick "Community maintained Open Source software (universe)":


VirtualBox refuses to start VM: `The device helper structure version has changed`

This is typical behavior of VirtualBox after it has been upgraded by Ubuntu while it was running.

Solution:

Stop VirtualBox
Download the latest extension pack at https://www.virtualbox.org/wiki/Downloads (it is the same for all platforms)
Install the extension
Restart Ubuntu

It should now work with any VM that worked previously.

Actually, the log contains this very tip: If you have upgraded VirtualBox recently, please make sure you have terminated all VMs and upgraded any extension packs.


How to install Canon printer driver mg4270 with *.rpm files?

go here https://www.canon-europe.com/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_mg_series/pixma_mg4250.aspx?type=drivers&driverdetailid=tcm:13-994525&os=Linux%20(64-bit)&language=EN and click to download and SAVE what will be cnijfilter-mg4200series-3.80-1-deb.tar.gz

open a terminal; copy each command below; paste into the terminal; hit the ENTER key after each paste

cd Downloads

tar -zxvf cnijfilter-mg4200series-3.80-1-deb.tar.gz

cd cnijfilter-mg4200series-3.80-1-deb

sudo ./install.sh

that should 1) install the drivers and 2) register the printer with lpadmin

(Ubuntu uses debian packages)


Unable to find CD-ROM when installing Office 2010 with PlayOnLinux

I never used PlayOnLinux but was able to install Office 2007 on Ubuntu through winetricks and the Office CD.
I'm currently using the latest wine installed through this PPA:
http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu

I also installed wintricks with

apt-get install winetricks

There is an option to install Microsoft Office 2007 Pro. I have a Home and Student edition but it installed just fine with this option.


The short answer is "no, not on a vanilla Ubuntu distribution" (and btw, hitting printscreen is not the only way to take a screenshot).

The somewhat longer answer is that the question is ill-posed.  Whether some approach might work would depend on the specific combination of X server (or whatever display server you are using), window manager, whether you are willing to write your own X extensions, what your threat model is, how tight control you have of your environment, and so on.

I'm curious, though, what is your threat model?


Windows 7 can see Server, but not its contents

You could edit your /etc/smb.conf file... use your favorite text editor:

sudo vim /etc/smb.conf

Uncomment/supply values for these:

workgroup = your_workgroup
security = user # real unix users
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY
[homes]
    comment = Home Directories
    browseable = yes
    read only = no
    create mask = 0644
    directory mask = 0755
    valid users = %S

And maybe add other shares at the end of the file...

[backup]
    comment = Backup Disk
    writable = yes
    path = /mnt/backup/
    browseable = yes
    create mask = 0644
    directory mask = 0755
    valid users = root @admin @backup # only root, group admin, and group backup

Save then restart samba

sudo restart smbd

Now you can map drives with the same credentials you use for Ubuntu.
Success?


Looking for an Ubuntu USB driver for a Canon MG5350 printer

Thierry Ordissimo has a PPA for cannon drivers the official drivers of Canon printers and multifunction devices, cannon printer and scanner ppa made  included versions 2.20 and newer, into PPA. There’s also sane backend for some scanners.
Supported devices in the repository:
bjf900, bjf9000
bjs300, bjs500
e400, e500, e510, e560, e600, e610
i250, i255
ip90, ip100, ip1800, ip1900, ip2200, ip2500, ip2600, ip2700, ip2800, ip3300, ip3500, ip3600, ip4200, ip4300, ip4500, ip4600, ip4700, ip4800, ip4900, ip6600d, ip7200, ip7500, ip8700
ix6500, ix6700, ix6800
mg2100, mg2200, mg2400, mg2500, mg3100, mg3200, mg3500, mg4100, mg4200, mg5100, mg5200, mg5300, mg5400, mg5500, mg6100, mg6200, mg6300, mg6400, mg6500, mg7100, mg8100, mg8200.
mp140, mp160, mp190, mp210, mp230, mp240, mp250, mp270, mp280, mp490, mp495, mp500, mp510, mp520, mp540, mp550, mp560, mp600, mp610, mp630, mp640
mx320, mx330, mx340, mx350, mx360, mx370, mx390, mx410, mx420, mx430, mx450, mx470, mx510, mx520, mx530, mx710, mx720, mx860, mx870, mx880, mx890, mx920.
p200
pixmaip1000, pixmaip1500
pixus550i, pixus560i, pixus850i, pixus860i, pixus950i, pixus990i
pixusip3100, pixusip4100, pixusip8600

and so on
add the ppa, update and install:
sudo add-apt-repository ppa:thierry-f/fork-michael-gruz
sudo apt update
sudo apt install cnijfilter2 scangearmp2 cndrvcups-utility

Jim of ubuntuhandbook has a detailed explanation you can just adjust to Ubuntu 20.04.
A similar answer for another canon printer suggests:

sudo apt install printer-driver-gutenprint
system-config-printer


How to auto(re)connect to openvpn connection?

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

  sudo gedit /etc/default/openvpn

then Uncomment the AUTOSTART="all" line.

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

save and close.

If a username/password is required,

edit the .conf file

edit auth-user-pass user-password-filename

Create a file containing:

  username

password

save and close. reboot your system.


Skype for Linux on 64 bit Asus with upside down webcam

To get rid of the Wrong ELF class try this:

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l2convert.so /usr/bin/skype

or

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype

I have to use now "skypeforlinux". I think I used "skype" before too.

If you install:

v4l2ucp

There is a setting: horizontal / vertical flip. This might solve your problem. Good luck.


Per Chris Guiver (guiverc here on Ask Ubuntu, and a member of the Lubuntu team per their Launchpad Profile) has indicated in the comments to this question that since 18.10, the Lubuntu OEM Install option on the Lubuntu ISO is not in use and has not been used/functional since 18.10.
As such, it simply does not work for Lubuntu 20.04.  The feature request tracking task for this is at these locations:

Launchpad: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1901056
Lubuntu Phabricator (Lubuntu bug/task tracker): https://phab.lubuntu.me/T16

There's some technical details in here about getting this done, mostly that it takes time and testing and none on the Lubuntu Team actually had any interest in testing/developing this out; this task has not moved much since pre-20.04 so it may end up being decided that it's Won't Fix if they ultimately choose that they don't have time to implement this feature.

Also per Chris (in the comments as well), 20.10 Groovy ISOs do not contain an OEM Install option, so it's possible that it was removed officially from the Lubuntu ISO options and as such is unlikely to be implemented.
If, however, the Lubuntu Team does choose to implement the OEM Install option, chances are that it might not land in older releases of the Lubuntu ISO for some time.


How do you install appimages in multi-user environments

You can put appimages in /opt wich means optional. When you can't or you don't know where to install your apps you need to use this directory.

Put all appimages files in a "appimages" directory.
Open a terminal in that directory
Type sudo cp * /opt

Users need to go in /opt or you can add launchers. https://developer.gnome.org/integration-guide/stable/desktop-files


How can I show only zombie processes in htop?

You should click on S column or choose F6 (SortBy) and then select STATE.

Afterwards you will get zombies on top:


How to create a new partition from the existing partition?

Boot from the livecd and run gparted.  You also appear to have duplicate swap partitions so you should get rid of one of those.


What is the industry standard to installing ubuntu in a windows machine?

Installing Ubuntu on Second Drive, Windows on First

Unplug Windows hard drive.
Install Ubuntu on second hard drive.
Plug Windows drive back in.
Boot Ubuntu hard drive.
In Terminal run:

sudo update-grub

This should automatically add a Windows menuentry to the grub boot menu.

You can change back to Windows bootloader, (first HDD), using BIOS if desired.


Thunderbird showing "Unable to locate mail spool file" on installing gmail account in ubuntu 13.04?

Make sure thunderbird is closed.

Just go to the file browser and type CTRL+H to reveal hidden files, then delete the .thunderbird folder.

After that, thunderbird should open fine.


When installing CUDA, how to determine distro,version and architecture parameters?

If you use the CUDA downloads website and selected the appropriate options (say Linux, x86-64, Ubuntu, 16.04 in order), it will show the exact command you're supposed to run:

The distro is Ubuntu (16.04 or 14.04 depending on what you're using, run lsb_release -cd to find out).
The version is based on the CUDA release you're downloading.
For the architecture, see How to find architecture of my PC and Ubuntu? - use uname -m.


Ubuntu 14.04 "[Errno 5] Input/output error" during Installation

I was getting the same exact "errno 5" error when trying to install Ubuntu 14.04 on my laptop. What fixed it for me was burning the iso to a DVD at a very slow rate. For example, I used the "Free ISO Burner" software and used a burn rate of 2x instead of max. Perhaps you can try this method instead of a USB stick? Also, before burning the DVD, do make sure that you get the MD5 Checksum of the downloaded iso and compare it to the value here: https://help.ubuntu.com/community/UbuntuHashes

This is just to verify the integrity of the iso in case you downloaded it from some untrustworthy mirror.

If using a DVD doesn't work either, then others facing similar issues in the past have recommended testing your RAM using the memtest86+ utility. You can use it from the Ubuntu LiveCD/DVD itself. For my laptop, I pressed Shift during bootup and launched memtest86+ from the GRUB menu.


desktop byobu launcher doesn't read my ~/.byobu/windows.ssh_sessions file

I believe that you're supposed to start byobu by running byobu-launcher, which handles all the setup details and config files.

Edit: You are setting an environment variable in .bashrc, which means it will only be set in bash. Running byobu directly from gnome-terminal means that bash is not involved. Putting the environment variable in .profile should make it session-wide, but you would have to log out and back in for it to take effect.


How to use Ubuntu to recover data from an old Windows XP laptop with a broken hard drive?

I would use a USB stick, or disk with Ubuntu on, to boot 1, from which I could work out whether 1's hard drive still works - It would be a 'Live' environment of Ubuntu, with disk and file managers, which should work, and mean youw would not need to install anything.

Basically, your first method should work OK, but if you do all the stuff from a Ubuntu session on a USB stick or disk, then you would not wipe the Ubuntu install on the 4 hard drive, and could copy all the stuff from 1's broken drive to the new 4 drive form the Live Ubuntu session.

This will all depend on the type of 'broken' you mean on the first drive...

Here is a step-by-step guide (tested on Windows 7 Pro 64bit):

First download the Ubuntu 14.04 (latest version of Ubuntu, main version 32bit) from here. This should be perfectly capable of recovering any data etc from your computer, and anything else can likely be installed easily. Note this download will take a while, and will require at least 1 Gigabyte in space.

Then open where it was downloaded to, right click on the 'ubuntu-14.04-desktop-i386.iso' File and click 'Properties'. You should be able to see something like the following, with similar sizes (note, not all computers and programs may get the exact same size):

The iso file should be around 970MiB (1017118 KiloBytes) in size - if the download had stopped suddenly try again (I managed to download it fully on the second try using Firefox), or use the torrent download (you can do this with BitTorrent, you can exit it when has downloaded)

If you are still not sure the file has been downloaded properly, you can check the MD5SUM of the file, using these instructions, the program available here, and this file with what the MD5SUMs should be (use the one for ubuntu-14.04-desktop-i386.iso).

You can then burn the DVD to a disc. There are instructions on that here. You should be able to use the Windows program to do this, you shouldn't need a third-party (other companies) program to do it (if you do, you can use InfraRecorder, instructions on using it are here ).

Insert a blank DVD (ignore any autorun options), then right click on the downloaded iso file and click 'Burn disc image'. Select the Disc burner, and tick 'Verify after burning' so the disc is checked afterwards. When finished it should show:

Note: Writing on the disc what you have put on it (ubuntu-14.04-desktop-i386.iso) and the date is great for future reference. Permanent markers work fine for this.

You can then check the disk to see if it has been burned correctly - take the disc out and put it in again. You may get this Autorun option (probably a good sign that it has burned correctly):

Select 'Open folder to view files' and you should get:

You can then eject the disc and put it into the computer you want to recover the files from. When booting, get the computer to boot from the CD/DVD drive. You said you had the following:

CD/DVD -  what you want it do, boot from a disc in the CD/DVD drive
+HDD - boot from the hard disk
LAN (or PXE or Ethernet) - boot from the internet - this means it will search the connected network for something to boot from, and will return errors if it can't find anything. See also: Preboot Execution Environment
FDD - Floppy Disk Drive (probably) - is this computer that old? :-)

The only two options that are likely to work ar CD/DVD and HDD - the first will boot from the disc, what you need to

When booting the disc, you should get a purple screen then a screen with the Ubuntu logo. When prompted press 'Try Ubuntu'. This means that Ubuntu will run off the disc, and the memory in the computer - any files you save to Ubuntu's won't be saved as this is in the computer's memory - use a USB stick to save/copy to.

When the desktop loads, open the Nautilus file manager from the launcher on the left. Looking under 'Devices' you should see the entry for the computer's hard disk partitions, as well as a any connected USB drivers. The directory 'Users' (or 'Documents and Settings' for Windows XP) in the root of one of these drives should contain your user's files.

If you can't access the disk, you may need to do something else to get the data off of the disc.

Recovering files

If you only have command line access to Ubuntu, you can run mc to use the midnight-command file manager:

(You can run mc -a if the lines are not drawn properly)

This is a command line file manager - you can find out how to use it here, also here - you can use the following:

Use Tab and the arrows keys to navigate
The function keys:

F1 - help.
F2 - user menu (to compress files etc)
F3 - view (checking contents of a file i think)
F5 - copy
F6 - rename or move
F7 - create a directory
F8 - delete
F9 - pull-down - accesses the menu bar at the top.
F10 - quit. Closes mc, as well as mcedit and any unwanted open menu.

Ctrl+O to switch to and from command line - useful for running mount commands etc

Devices plugged into the computer should be automounted in the media directory - if not, you will need mount them manually - for example:

To make a directory for the partition to mount to

sudo mkdir /media/windows-partition

To mount the partition - you can find the device (/dev/sda2 for example) from the output of sudo fdisk -l or sudo parted -l - a large partiton (you can find sizes in sudo parted -l) formatted to NTFS or FAT should be the main windows partition. Your user files should be contained within 'Documents and Settings' in the root of the partition.

sudo mount /dev/sda2 /media/windows-partition/

To unmount the partition, run

sudo umount /media/windows-partition

You can then copy the files over using mc - copying should mean you can check whether you have the files you want afterwards.


Why does kernel 4.4.0-135 need an explicit upgrade instead of the usual apt upgrade?

apt != apt-get

The traditional apt-get has the following upgrade-related commands:

apt-get upgrade will upgrade packages to newer versions without installing new or removing  other packages.
apt-get dist-upgrade will upgrade packages as well, but is also able to handle upgrades with changing dependencies by installing new or removing old packages if necessary.

The newer interface apt interprets different options:

apt upgrade of course upgrades packages again, but it also can install new packages to fulfill changing dependencies, unlike apt-get upgrade. It does never remove packages though.
apt full-upgrade is equivalent to apt-get dist-upgrade in that it can both install and remove packages if this is required by changed dependencies of the newer package version.

Kernel upgrades work by upgrading the meta-package (e.g. linux-image-generic) to a newer version, which then has a changed dependency on the latest linux-image-X.Y.Z-AAA-generic package. That means, apt-get upgrade can never upgrade kernels, but apt-get dist-upgrade, apt full-upgrade or even apt upgrade can.


What measures/precautions do I need to take before upgrading from Ubuntu 14.04LTS to 16.04LTS (on pendrive)?

Backup all your work files first.  There is a chance the upgrade may fail or you may end up with an unbootable system.  Backup all your work first so that you can do a clean install if the upgrade fails.

Do not take any chances on this if you cannot lose your work files as you say.


WIn7 & Ubuntu fail, replaced RAM, now error no. 5 while installing ubuntu, XP install fails & win 7 BSODs

Suggest you create a LiveUSB installation of Ubuntu with persistence (read that link) then reboot with it. Once you have done so, then open up a terminal window and run the smartmontools test with

sudo apt-get install smartmontools

and then (assuming your hard drive is /dev/sda - and change the following line if not) run

sudo smartctl -i /dev/sda
sudo smartctl -s on -o on -S on /dev/sda

to turn on offline data collection and then do

sudo smartctl -H /dev/sda

and if it fails, your hard drive is bad & needs replacement. If not, do an overnight

sudo smartctl -t long /dev/sda

for a very rigorous test.  Please click on edit above on the left to post any results - and it's OK if the post gets long.


Ubuntu 19.10 Intel Wireless AC 3160 working but Additional drivers said NO

You don't need any backports drivers for this device on Ubuntu 19.10.

Some backports were installed for a previous Ubuntu release that lacked kernel support of this device.

So leave it as is.

You can also remove Dell repository with this backport, not to confuse you in the future.


HPLIP can not detect printer after upgrade to Ubuntu 19.04

As the printer is now working, I would like to share some information about my resolution:

Purge everything as explained on How to install latest HPLIP on my Ubuntu to support my HP printer and/or scanner?
Redo installation of the hp drivers as explained on https://developers.hp.com/hp-linux-imaging-and-printing/install/install/index
Enable and disable the printer. I had to do it multiple times, until Ubuntu says that it discovered the printer and that the printer is ready for printing.
Do the plug-in installation with the dialog which pop ups when the printer is enabled. Redo the plug-in installation with hp-plugin and hp-setup until the printer shows up in hp-setup and the plug-in installation is successful without any error message.


How to configure / troubleshoot a new keyboard

It seems to me a hardware issue because there is a pattern in those working keys, this is compared to /usr/share/X11/xkb/symbols/us layout (may be you are using other layout)

   .. 04 .. 11         12
AE                     equal
AD    r                bracketright
AC    f     apostrophe
AB    v

As you see those letters are from same column, KP_* are from same block and same thing for control keys.

May be the connector is misaligned
Or they don't have same pins map (not same order for rows and columns in the connection).


Partition of windows causing problem after installing and not shown in grub

Open a new terminal session ( Ctrl + Alt + T ) and type the following command :

sudo grub-mkconfig -o /boot/grub/grub.cfg

Reboot the system. Windows must have appeared in the grub menu now.


Ubuntu 14.04: Boot Repair is not working (No Boot Menu)

Have you gone into BIOS and set to boot from sdb drive or the 1TB drive?
It is unusual for a newer system to only boot from first drive. Some much older BIOS, only boot from larger drives if system in first 137GB of drive.
But make sure BIOS is set to AHCI, not IDE as that is the compatibility with the very old BIOS.

Also turn off Windows 8's fast start or always on hibernation. You will not be able to boot Windows from grub menu with fast start on, nor be able to see any NTFS partition.

http://ubuntuforums.org/showthread.php?t=2324331&p=13488472#post13488472

Boot Windows drive directly with one time boot key Escape, f9 on HP, f10 or f12 on most others.

Do not install grub to any partition, just to drive sdb. And keep Windows boot loader in sda, so you can directly boot it if Windows updates turns on fast startup again. Best to have Windows repair flash drive.

And you should remove wubi from Windows, that is not supported anymore.

https://wiki.ubuntu.com/WubiGuide
https://help.ubuntu.com/community/Wubi


Gnome Shell related JS errors seen in syslog file during investigating system freeze

journalctl

cat /etc/systemd/journald.conf

Can turn off logging to journald to get back some use of your machine until locate and fix the bug that is crashing your machine. Original value was to accept thousands per a second, the screen shot is changed to accept  0 per 0 seconds.

FileName='/etc/systemd/journald.conf'

FindLine='#RateLimitIntervalSec='
ReplaceWith='#RateLimitIntervalSec=0s'
sudo sed -i "/$FindLine/c\$ReplaceWith" $FileName

FindLine='#RateLimitBurst='
ReplaceWith='RateLimitBurst=0'
sudo sed -i "/$FindLine/c\$ReplaceWith" $FileName

cat $FileName | grep --color -E "^|$FindLine"


Upgrade bq Aquaris M10 from 15.04 to 16.04?

Update:

I was wrong below. My system is still 15.04 after ubuntu upgrade. Ubuntu 16.04 expected release date for touch (OTA-11) is currently 1 May 2016:
https://launchpad.net/ubuntu-calendar-app/+milestone/0.6

Some time after that I expect we'll be given the option to upgrade.

To check your current version enter lsb_release -a into the terminal

original answer not correct because not yet available:

  Go to System Settings by dragging down on the top right menu icons to > reveal the mini panel, select the System icon and then tap System Settings
  Tap on Updates
  Tap the option to install updates (I forget the wording as currently - I have no updates to install)
  Specifically click on the ubuntu update option as you will be asked to confirm to restart the system to install the ubuntu (make sure you are plugged into a power supply for this)
  the tablet will restart and you will see a spinning ubuntu logo on a black background. This takes many minutes to complete and eventually takes you back to the login screen

  After I upgraded ubuntu my location service stopped working. The location icon flashed on and off. To fix this I went into the location options and set that it should not use WIFI or GPS - i.e. turned of option fully off. I then went into the energy management settings and turned off the WIFI and GPS services. (I think what happened is that the update turned off GPS  at the firmware level but ubuntu thought it was still on). I then turned back on all of the options and pressed and held down the power button to bring up the option to restart. Once restarted the location option worked again and so did long touch for copy and paste.


How do I check if my nVidia GPU supports VDPAU?

Pretty much any card after the 8000 series GPU's are supported. Make sure you have the nVidia proprietary driver installed, as vdpau doesn't not work with the nouveau driver.

Here's a table of nVidia GPU's supporting vdpau: http://www.mythtv.org/wiki/VDPAU#Supported_Cards

Also, make sure that the package vdpau-va-driver is installed. You can then run vainfo to see if your card is supported.


Copy app to Rackspace from Different Network

You can use scp or you could even use rsync.

I often use rsync to connect to a remote machine and send files. You will need to have access to the remote machine (i usually have ssh access via private key).

http://linux.die.net/man/1/rsync

Of course if you're trying to connect to the remote server over SSH (the way rsync does) you will need access to this port (so you'll run into issues if your network blocks access).

You will need to tell us more about your individual setup if this isn't a suitable solution.


Merging non-zero differing bytes in large files

I wrote a Python script for you.

#!/usr/bin/env python3
'''
Given two input files and one output file, merge the input files on
matching bytes or bytes that are null in one file but not the other.
Non-matching non-null bytes will raise a ValueError.
'''

import sys

args = sys.argv[1:]

file1 = open(args[0], 'rb')
file2 = open(args[1], 'rb')
file_out = open(args[2], 'wb')

def get_bytes(file):
    '''Return a generator that yields each byte in the given file.'''
    def get_byte():
        return file.read(1)
    return iter(get_byte, b'')

for i, (byte1, byte2) in enumerate(zip(get_bytes(file1), get_bytes(file2))):
    if byte1 == byte2:
        byte_out = byte1
    elif ord(byte1) == 0:
        byte_out = byte2
    elif ord(byte2) == 0:
        byte_out = byte1
    else:
        msg = 'Bytes at {:#x} are both non-zero and do not match: {}, {}'
        raise ValueError(msg.format(i, byte1, byte2))
    file_out.write(byte_out)

Make it executable then call it like so:

$ ./test.py file1.iso file2.iso file3.iso

Or for short:

$ ./test.py file{1,2,3}.iso

P.s. I've recently been studying reading files in different ways, so this is nice serendipity.


How do I show running windows without clicking the "Activities" button but only hovering over it?

First install (GNOME) Tweaks by running

sudo apt install gnome-tweaks

Then launch Tweaks and enable the "Activities Overview Hot Corner" option under "Top Bar".


I have customized my Ubuntu Live USB, should I expect the same customization after installing to a hard drive?

Nope, I'm afraid not.  The live USB is self-contained within the persistence file - when you install Ubuntu, there's no option to migrate those settings into your clean install.

For example, my Live CD with persistence has an install of clamAV, and panel applets to show CPU, frequency and temperature.  It's also connected to my WIFI.  However, when I use that key to install, I get the stock install - no clamAV, none of my customised panel applets, and I have to re-connect to my WIFI.

Sorry.

With regards to your first question - your customisations on the Live USB will remain in place when you use that Live USB, regardless of which PC you run it on.


Apt-get not working after removing libusb

Use the links at the bottom of Package: apt  to download the package for your architecture.

This should include all the depends and suggests. As for the installation, doing the install will install all the packages


Update manager history and rollback options? (trying to resolve touchpad issues)

All actions with apt (apt-get) are logged. These files are available in /var/log/apt/. To view the most recent history log, execute:

less /var/log/apt/history.log

These logs gets rotated (every month I guess), old files will be suffixed with a number and compressed. So to view the next history log, use:

zless /var/log/apt/history.log.1.gz

To view the logs available:

ls -la /var/log/apt/

You will have to examine them to determine the latest.
Or go to the Ubuntu Software Center and check the history


Well, this turned out to be a pip3/PyCharm issue:

I has previously done apt-get install python3-pyqt5.
The apt-get install libqt5sql5-mysql had previously installed /usr/lib/x86_64-linux-gnu/qt5/plugins/sqldrivers/libqsqlmysql.so, and all was well.
Then PyCharm made me do apt-get install python3-pip (I was lucky I recalled this), and proceeded to do some kind of pip3 install pyqt5 behind the scenes.
This had created its own /usr/local/lib/python3.5/dist-packages/PyQt5/Qt/plugins/sqldrivers/libqsqlmysql.so, and as can be seen from the ldd output there had left the area in an incomplete/inconsistent state.
pip3 uninstall pyqt5 removed that, and reverted me to an error-free installation.

I had previously managed to avoid any pip3, successfully installing everything via apt-get.  This experience has left me not trusting pip3 at all, if it can simply create an erroneous installation without any messages.


How to monitor syslog and get alerted when there is a certain entry?

Here, a script, in Python:

Checks file for changes every 5 seconds, if changed, it checks for the string. If string is found:

the line in which it was found along with the current time is printed
[optional] notifies using notify-send
[optional] plays the default alert sound

Usage:

python3 LogMonitor.py [log file] [string to watch]

Optional arguments, to be put after the above

beep and/or notify -- this will cause the script to beep and/or notify (using notify-send) in addition to printing the message

So, if I want to watch /var/log/auth.log for SSH and make a beep sound and notify me, I will:

python3 LogMonitor.py /var/log/auth.log SSH beep notify

Raw download (Right Click → Save link as): GitHub Gist

#!/usr/bin/env python

import os
import sys
import subprocess
import collections
import time
import mmap

try:

    LOG_FILE = os.path.abspath(sys.argv[1])
    WATCH_FOR = sys.argv[2]

except:

    sys.stderr.write(
        'Usage: %s [log file] [string to watch for]' % sys.argv[0])
    sys.exit(1)

def action():

    if 'beep' in sys.argv:

        subprocess.Popen(['paplay', '/usr/share/sounds/ubuntu/notifications/Mallet.ogg'])

    if 'notify' in sys.argv:

        subprocess.Popen(['notify-send', 'LogMonitor', 'Found!'])

    print(time.strftime('%Y-%m-%d %I:%M:%S %p'), 'Found! \n', i)

# basic Python implementation of Unix tail

def tail(file, n):

    with open(file, "r") as f:

        f.seek (0, 2)           # Seek @ EOF
        fsize = f.tell()        # Get Size
        f.seek (max (fsize-1024, 0), 0) # Set pos @ last n chars
        lines = f.readlines()       # Read to end

    lines = lines[-n:]    # Get last 10 lines

    return lines

print(
    'Watching of ' + LOG_FILE + ' for ' + WATCH_FOR +
    ' started at ' + time.strftime('%Y-%m-%d %I:%M:%S %p'))

mtime_last = 0

while True:

    mtime_cur = os.path.getmtime(LOG_FILE)

    if mtime_cur != mtime_last:

        for i in tail(LOG_FILE, 5):

            if WATCH_FOR.lower() in i.lower():

                action()

    mtime_last = mtime_cur

    time.sleep(5)


Transmission. Started with a "permission denied", now it won't even run

The last command in that set:

sudo chown your_user -R /etc/transmission-daemon/settings.json

sets your user as the owner of the settings file, and that file has read-permissions only for the owner by default. Transmission won't even be able to read it. Try:

sudo service transmission-daemon stop
chmod g+rw /etc/transmission-daemon/settings.json
sudo service transmission-daemon start

Since the commands don't change the group ownership of that file, giving it group read/write permission should be enough to get Transmission to start.

There are other problems as well, so I suggest these modifications as well:

chmod g+rw /var/lib/transmission-daemon/info/
chmod u+s /your_path/progress /your_path/completed

This will:

Give the daemon the necessary write permissions on /var/lib/transmission-daemon/info/, where it stores the current status.
Ensure that files created in the download and temporary folders are owned by you, by making the folders setuid.


Having Problems detecting my Android Phone

Usually you have to enable the USB connection from the handset, too. Pull down the notification bar at the top of the screen, and switch the USB connection on. You don't need any drivers for this with Ubuntu, USB already works fine.

There's also an Android Stack Exchange site (like this one) over here.


Bluetooth on Ubuntu 18.04 and XPS13 completely gone (even after reboot)

My solution was:

Shutting down, waiting a few minutes and then turning on again worked for me.

No restart! Multiple restarts (about 10x) didn't help!

PS: If this still doesn't work, try to turn off the bluetooth-device inside bios, then restart and turn it on again.


To install Super Boot Manager in Ubuntu 14.10:

I wasn't able to get the ppa working, so I had to download  the binaries from the project website. If any of these links are broken, you can search for them on launchpad. I had to do this for buc 0.5.2.
I've circled the ones I downloaded in the link below:

Open the terminal ctrlaltt and paste:

sudo dpkg -i *.deb

When that's finished installing super-boot-manager and buc, run:

sudo apt-get -f install

It should install a new version of plymouth as well as plowshare.


Selection box disappeared on Ubuntu 18.04.2 LTS

This happened because the Nautilus Flowbox View was enabled. To disable it open a terminal and execute the following:

gsettings set org.gnome.nautilus.preferences use-experimental-views false

Of course, you can use the dconf-Editor as well and follow the path above to toggle the setting.


Server 18.04 request once on boot ip address but never again afterwards if disconnected

Thanks to @chili555 I looked into netplan and found a working solution:

In /etc/netplan I set the interface I wanted my server for it's own usage.

Sadly I couldn't get it all there configured, as I wanted the interfaces 2 and 3 be only enabled, but without any addresses.
Therefore I left those two interfaces to /etc/network/interfaces file.

=> Now working setup as follows:

Content of /etc/netplan/01-netcfg.yaml

network:
    version: 2
    renderer: networkd
    ethernets:
        enp1s0:
            dhcp4: yes

Content of /etc/network/interfaces:

auto enp2s0
iface enp2s0 inet static
    address 0.0.0.0
    up sysctl -w net.ipv6.conf.enp2s0.disable_ipv6=1

auto enp3s0
iface enp3s0 inet static
    address 0.0.0.0
    up sysctl -w net.ipv6.conf.enp3s0.disable_ipv6=1

Now my setup works as expected:
enp1s0 is fully automatically mamaged and I on every linkup I do it makes a new dhcp request.

enp2s0 and enp3s0 are both without ipv4/6 addresses and can be used from my pfSense Virtual machine


I assume that you have set the boot order to first look at the USB drive. Another option might be to restore the normal boot order and then enter the menu for selecting the boot device.

On most platforms there is a hotkey for doing this, but it varies a lot. It is usually something like F2, F12, DEL, holding down Ctrl or something similar.

Try looking up your platform to get the right hotkey. There is a change that this may work a bit better. If it doesn't, the error is probably with the USB image or some motherboard settings.


Cannot switch from Intel to Nvidia in Ubuntu 16.04 (Nvidia Prime)

I had the same problem. then i did the following:

software & updates > additional drivers: select nvidia 381.09> reboot the machine

then use nvidia x settings, and then select nvidia prime.

after rebooting, everything is ok.

I hope this will help :-)


Apple Magic Mouse too sensitive on Ubuntu 12.10

This works for me in 12.10 for speeding up the scrolling.

sudo rmmod hid_magicmouse
modprobe hid_magicmouse scroll-speed=55 scroll-acceleration=1

You can play around with the speed. The min is 0 and the max is 63 (default is 32 I believe). Anything over 50 feels 'natural' to me. I used scroll-acceleration of 1; which feels like enough (when you move fast, scrolling is exponential).

If you dont' type them in right, the mouse will not be able to work until valid settings are applied.


It seems like there is some issue with loading the initrd: possibly
the GRUB configuration file is corrupt.  If you want to try fixing
your existing install, I would try the following:

Boot from live CD or USB stick (the Ubuntu Wiki has instructions on how to prepare a bootable installation USB stick)
Re-install GRUB; some instructions are available in this post.

However, if you don't have any valuable data on the disk, it may just
be simpler to reinstall: just use the Ubuntu Live CD or a bootable
USB key,
wipe out your existing Linux partitions (using the "Manual
partitioning scheme" in the installation; you can also let the installer
"Use whole disk for Ubuntu" if you don't have Windows or other OSes on
the disk), and then proceeed installing as usual.


you can add --disable-werror --enable-mc when running ./configure. That will not fix the problem but you will be able to compile. When running the VM you will get an error -- "custom memory allocation vtable not supported" but all seem to work ok for me


What is the difference between GNOME desktop and Ubuntu in SDDM?

As suggested in the comments, and after exploring the folders /usr/share/{xsessions,wayland-sessions}/ I got a hint of what goes on in there.
I was also able to find the difference between GNOME and Ubuntu sessions... (at a technical level but not visible per se), and how to rename and rearrange the entries in the menu.
To rearrange the entries I preceeded them with a number on how they're to be read.
I also changed the extension from .desktop to .disabled for those that I didn't want to show.
The resulting entries were these:
$ ls -l /usr/share/xsessions
... 0-plasma.desktop
... 1-ubuntu.desktop
... 2-gnome-classic.desktop
... gnome.disabled -> gnome-xorg.disabled
... gnome-xorg.disabled

When showing the corresponding files, I was able to change the desktop-session names for better consistency:
E.g.
$ sudo vim /usr/share/xsessions/gnome-xorg.desktop
...
[Desktop Entry]
Name=GNOME on Xorg
Comment=This session logs you into GNOME
...

change what comes after Name to whatever you need, or in my case Gnome (because I prefer title case than all caps).
For the Wayland sessions, I noticed SDDM already adds its own tag: (Wayland) so I removed that from the name.
GNOME on Xorg -> Gnome   # Since I don't understand Xorg, I'll remove that.
                         # I also know GNOME has all caps, but I prefer no caps.
Ubuntu on Wayland -> Ubuntu    # Since SDDM already adds (Wayland) by default.
Plasma (Wayland)  -> Plasma    # Because SDDM added an additional (Wayland).

Since finding that gnome.desktop (later renamed by me) was pointing to gnome-xorg.desktop, this results in a repeated entry in SDDM.
Finally, the difference between them and ubuntu.desktop consists of a couple of env variables when running the command gnome-desktop via the DM.
I should mention that this is exploratory programming, and therefore people following this must be ready to get their hands dirty with the Display Manager.
Thanks.


How to create a bash script to create images from pdf file and then crop all of the *.png images to 1920x1080 (using mogrify)?

You may want to separate these tasks and do all of task 1 first (create image files from pdf), then all of task 2 (resize images). For an example of how to loop through and resize images, see https://stackoverflow.com/questions/14304480/batch-resize-images-and-output-images-to-new-folder-with-imagemagick
Update: So I haven't used pdftoppm so you'll have to refine that part of your script yourself but it looks like you may have that part down. Here's some starter code:
pdftoppm $1 -png img -r 305.3
magick mogrify -resize 1920x1080 *.png

More info on passing arguments to a script. Then make sure you save and put this script in your PATH so you can execute it from anywhere. Note that a more robust script would have error checking (making sure you passed in input files for example).


Boot problem after installing Ubuntu 12.04.3 alongside Windows 8 - only get to grub prompt

Purple screen is BIOS boot. When you boot in UEFI mode the installer on the flash drive also uses grub2 menu.

You should always be booting in UEFI mode unless you have one of the few systems that only boots in BIOS mode.

You should use Boot-Repair to convert your BIOS install to UEFI by uninstalling grub-pc and installing grub-efi. But have secure boot off. It looks like Boot-Repair also wants to install the secure boot versions which you can do if you want.
Do not run 'buggy' UEFI until all other options are resolved. That is only for a few systems where vendor modifies UEFI (not per UEFI st'd) to only boot Windows.

If you get black screen after boot that is a different issue than booting. Usually nomodeset but depending on video card/chip boot parameter may vary.

Shows install with screen shots for both BIOS & UEFI, so you know which you are using.

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

Also shows Windows 8 screens

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI


Adding the answer for future reference. Probably won't help you after so long.

The hfsplus driver is in the extra package. You need to install linux-image-extra-virtual.

One liner that fixes the issue for both up to date kernel versions and kernels managed by something like Ksplice / uptrack:

sudo apt-get install linux-image-extra-virtual linux-image-extra-$(uname -r)

The solution wasn't obvious. I installed apt-file and searched through the packages contents. That's how I found the extra package.


RTL8822be driver for Ubuntu 18.04 and 20.04

You originally posted this solution in your question:

Finally, I came across a solution which works.
sudo apt install git dkms
git clone https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
sudo make dkms_install


(two part) Do i need a bootable usb to install ubuntu 13.10 on a os-less computer? and if i do, how do i create one on my mac?

Follow the instructions:

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-

I hope it solves your doubt.


Is there a way to add individual files to Ubuntu One, not just directories?

You can probably create a link in your Ubuntu One folder that refers to the file in the other folder, if you want to avoid copying the file.


One way would be to use capture groups:

echo 'X23X_1XY4_XXXX_Y12Y_YYX2_XXYY' |
  sed -E s/'([^_]*)_([^_]*)_([^_]*)_([^_]*)_.*/\2_\3_\4/'
1XY4_XXXX_Y12Y

For delimited data, awk is often simpler:

echo 'X23X_1XY4_XXXX_Y12Y_YYX2_XXYY' |
  awk -F_ 'BEGIN{OFS=FS} {print $2,$3,$4}'
1XY4_XXXX_Y12Y


Manually partitioning 15.04 Server for RAID 0

LVM offers features very similar to RAID 0, and is more flexible -- it's easier to combine two disks of different sizes with LVM than with RAID 0, for instance. I also happen to be more familiar with Linux's LVM than with Linux's software RAID, so that's what I'd use in your case. Somebody who's more familiar with RAID might make the other choice, and that's fine; for your purposes, chances are either will work equally well, provided you don't need to make changes in the future.

I believe the Ubuntu setup tool has an option to use LVM, but I'm only passingly familiar with that path through the installer. It's also got a known bug that creates a /boot partition that's too small. The Ubuntu LVM wiki entry should help you get started with LVM. In brief, you'll create a /boot partition (I recommend making it at least 500MiB) on one disk and at least one LVM partition on each disk. You can then link them together and create whatever logical volumes you want to span the disks. You can stripe logical volumes across disks to improve performance, if you like.

An EFI System Partition (ESP) will also be necessary if you install Ubuntu in EFI mode. This may not be optimal for a Mac, though; ironically, it's easier to install Ubuntu in BIOS mode on Macs, at least for single-boot systems. The reason is that managing EFI boot loaders on Macs is best done using the bless utility in OS X. The standard Ubuntu tool for this task, efibootmgr, doesn't always work quite right on Macs -- although I've seen indications that it's working better in such configurations than it did a few years ago. If you do a BIOS-mode install, you must use the older Master Boot Record (MBR) partitioning system; this signals to the Mac firmware that it should activate its BIOS (aka legacy) boot support.

If you go with a RAID setup, it will be similar, with a separate (non-RAID) /boot partition and (if you do an EFI installation) an ESP. If your disks are identical in size, I'd put one of these on each disk and make them identical in size; that will enable you to make your other partitions identical in size, for no lost disk space.

Note that GRUB can, in theory, read kernels from RAID or LVM setups, so in theory you don't need a separate /boot partition; however, when using LVM or RAID, every distribution I know of sets up a separate /boot partition. I don't know if the distribution maintainers know of a bug or complications, but at the very least, this means that GRUB's ability to read kernels from within an LVM or RAID is relatively untested. Also, most non-GRUB tools can't read from within an LVM or RAID, so if you don't create a separate /boot partition, you'll be tying your hands when it comes to boot loaders.


How to fix messed up GUI when Installing Ubuntu 13.04

From your description this sounds like a graphics card issue. The boot menu where you select the language would be 'grub' which is a software that Ubuntu uses to boot into the main OS. (Grub v2.something to be more specific)
Grub loads using the Linux VESA driver, which is compatible with a very wide range of graphics cards.
But I suppose it is possible that it's not compatible with yours.
If that's the case, then the best thing to do would be to get Ubuntu to boot off the USB stick into the "Live session".
The live session is when Linux boots pre-install. It will at that point load the open source drivers for your graphics card. Which hopefully will work better than the VESA drivers... Quite likely not though, but it's worth a shot.

Normally, if you don't press a key as the Ubuntu USB stick boots, it would automatically select English as the default language and boot into the live session.
Or if that's not the case (some of the USB stick creators put on their own grub menus), then you can see if it's possible to navigate the grub menu to select your language and then select "try ubuntu without installing" or some such, which is the default boot mode and will boot a live session.

It might also help to search the model of your graphics card/ chip and see if other Linux users have been having the same issue, and what their solutions were.


Documentation for gnome shell extension development?

The reason I'm not happy with the demo code and tutorials is that they introduce a bunch of random imports and never explain what they are or how to use them. I'm constructing my own answer that others can add to, so that people can actually know what functions they can call, what they can import, etc.

There is generated documentation for Gnome Shell, but it is somewhat incomplete — I couldn't find most of the things I saw in various tutorials, examples and published extensions.

The only really reliable documentation is the Gnome Shell source itself. There simply isn't any other up-to-date or complete way to know what's available.

These two starting points are particularly good:

The Gnome Shell C source
The Gnome Shell JS source

The C source shows that there is an important object called global that doesn't need to be imported, and provides access to things like the window manager (including keybindings), the session information, the screens available and other such things. Here's the source:

The shell-global.c source itself
The part of the source where the available properties are added
The part of the source that shows you the types of the underlying objects

I wanted to know how to use the global.display object, and for now the best documentation is that provided by Alan Knowles.

Other things can be imported via the GObject introspection bindings, for example:

The Clutter UI library (imports.gi.Clutter)
GLib itself (imports.gi.GLib)
The Shell Toolkit (imports.gi.St)

In general, you can look through the reference documentation for the various Gnome components to find other imports.

A note on the looking glass: There are some quirks about using these imports in the looking glass though — I wasted a lot of time just trying to test things out on the fly. For example:

const Clutter = imports.gi.Clutter;

...won't work, because Clutter already exists. But then:

const MyClutter = imports.gi.Clutter;

...also won't work; MyClutter is undefined and can't be used. You have to do:

MyClutter = imports.gi.Clutter;

Of course, in this case Clutter already exists, so it's not really necessary. But since it's not documented what is and isn't already in the looking glass namespace, if you try to import something and have these problems, keep it in mind.

Remaining questions:

What is Mainloop? This is imported in main.js and appears to have functions related to the GLib main loop. Is there documentation for this?
What is imports.misc? It seems to have some really useful things in there, like ExtensionUtils — what's that?
How do you use DBus? What about introspection?


How do i solve unmet dependencies for a package?

Open terminal and type

  sudo dpkg --configure -a

If it doesn't help then do this

  sudo apt autoremove <packagename>

If this doesn't help then you
Need an internet connection.Type in terminal

  sudo apt-get autoclean

remove sources.list file.and create new sources.list...

sudo rm /etc/apt/sources.list

Then, type in

sudo software-properties-gtk

This will open software-properties-gtk and a newsources.list will be created automatically.

Then change the server to US or to any other server of your choice. You must enable repositories from the new dialog in order to create new sources.list.

Tick all the boxes then click on Revert then click close.

Need to restore default repositories

 sudo apt-get update && sudo apt-get dist-upgrade -y

(it is good practice to backup this file before installing to recover if such things happen)

Now install anything!

 sudo apt-get install mysql-server


What is the proper way to Windows 7/Ubuntu 10.10 Dual-Triple Boot Partitioning for Laptop OEM?

You should Leave your Windows Partition alone (they are fine)

Ideally You Want to:

Backup Ubuntu files you want to keep
Reinstall Ubuntu
This time make a 189GB Extended Partition
Within the Partition make a 188GB "/" partition (No it will not be harder to backup your /home folder, its more convenient and less messy. Consider using Deja-Dup to back up your /home folder)
Make a Swap Partition that is twice the size of your RAM, which should be 1GB as you said

NOTE:
You will not have trouble accessing your NTFS Windows Partitions from Ubuntu it is actually the other way around. Windows will not recognize the EXT4 Ubuntu Partition

SOLUTION:
Keep most of your personal files on your Windows Partitions like movies or documents. This way both Ubuntu and Windows can access your personal files.


Is There A VCS-Like System on Libreoffice Documents

Well, I found a solution on saving and reopening it as a directory. When you save it, open it with an archive manager and extract to a folder.

Then, you can rebuild to reopen it by compressing as zip. Then, rename its extension as odt. Now it works.

However, that will not work if you try to have a README.md like additional files inside directory. So, you will need an extra directory to dump and rebuild.

This is one of solutions and will be accepted as valid answer if there does not occur any better one in three days.


Icons change colour on Ubuntu 18.04 depending on window state

there is only one color image in icons folder.
The difference you observe is because of panel property when in solid condition and in normal condition.

the panel is transparent when in normal condition and when it is solid its different color. those are specified in /etc/alternatives/gdm3.css file. you can make it solid all the time or give particular color in all cases. this is off-topic abut panel color now.

if you want to choose a particular icon for this "man running" icon,
below images are self explanatory.

Edit: 02nd Feb 04:30 UTC

it seems that .svg image is filled with a color #dfdbd2

changing it to white color or any dark color will be the solution.

to change the fill color..
open the icon with text-editor


All you need to do is: add the fonts that you want to Ubuntu, and then you can use them in Gimp.

Download the font(s) that you like, and once downloaded, you can double click on the font file, and that will open Font Viewer, just click on install, and you're done.  Take a look at Dafont for a great selection of fonts.

To download, just click on the download button.

Once you click download you will see the image below, just click OK.

Double click the font, and that will open the Font viewer, as shown above, just click on Install.


Change Dovecot to allow IMAP folder names with '.' like "test.com"

try this

sed -i '
/  \# The default however depends on the underlying mail storage format./ {
N
    s_  \# The default however depends on the underlying mail storage format.\n  \#separator =_  \# The default however depends on the underlying mail storage format.\n  \#separator =\n  separator = /_
}' /etc/dovecot/conf.d/10-mail.conf


Kubuntu microphone volume level keeps going down

Open Skype > Options > Sound Devices, and uncheck the box that says "Allow Skype to automatically adjust my mixer levels".

I find Skype never does a very good job of regulating this (at least it never did when I used this option on my previous computer, running OS X).


Is It Possible To Change the Date of Creation of a File (Docx, Pdf, jpg) from the Command Line?

touch -t

from man touch the format is as follows

  -t STAMP
            use [[CC]YY]MMDDhhmm[.ss] instead of current time

http://manpages.ubuntu.com/manpages/eoan/man1/touch.1.html

guiverc@d960-ubu2:~$   touch file
guiverc@d960-ubu2:~$   touch -t 7001012005 file
guiverc@d960-ubu2:~$   stat file
  File: file
  Size: 0               Blocks: 16         IO Block: 4096   regular empty file
Device: 37h/55d Inode: 574182      Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1000/ guiverc)   Gid: ( 1000/ guiverc)
Access: 1970-01-01 20:05:00.000000000 +1000
Modify: 1970-01-01 20:05:00.000000000 +1000
Change: 2019-06-04 22:46:02.178960273 +1000
 Birth: -


Is there a way I can modify icon themes?

I don't know if there is a specific method but you can perform this manually.
I changed the "view-app-grid-symbolic" icon by copying the new icon in the theme directory.
sudo cp ubuntu-icon.svg /usr/share/icons/Suru/scalable/actions/view-app-grid-symbolic.svg

After the copy, reload Gnome.
You have to perform the copy and reload at each update of your theme.
Hope this help.


wired connection not being recognised in ubuntu 10.04 lts

Try to install the ndisgtk package (and all the required packages)
select install new driver
navigate to your driver's cdrom and find the .inf file and click install.
Should work 100% !
try to reactivate the network from the network manager.


Ubuntu deleted files from guest account desktop

Ubuntu's Guest account is a special type of account, which has its home directory set to the mount point of a tmpfs filesystem, which is used to store data which does not need to be persisted after a reboot.

The data in tmpfs is stored in RAM backed up by the swap space, so it is likely the data had never been written to disk in the first place, so there's basically nothing to recover.

More details on tmpfs.

If you're curious how guest account is set up, you can study /usr/sbin/guest-account, which is a shell script used to create/remove a guest account.


How can I run a shell script from bashrc file?

Just create a function:

function masterScript()
{
    if [ -e /home/arun/Desktop/scripts/myMasterScript.sh ]
    then
        bash /home/arun/Desktop/scripts/myMasterScript.sh
    fi
}

And make sure your script is executable:

chmod 755 /home/arun/Desktop/scripts/myMasterScript.sh


"Partition Misaligned by 1024 bytes" on encrypted lvm

I believe the best way to solve this is:

backup your important files to another hard drive
format the partition (or the whole hard drive) using an ubuntu live cd and gparted.

Some people complain of very low speed when they have this misalignment. If you don't have slow speed when reading/writing to the partition, I suggest you leave it as it is and simply ignore the warning. That is, until you find an opportunity (another hard drive, and time) to reformat the drive.


I am not sure which download I require for VSCodium

I found the following guide which worked seamlessly for me on Ubuntu 20.04:
https://www.addictivetips.com/ubuntu-linux-tips/install-vscodium-ide-on-linux/


Disk Space Shortage since cron job setup

It's fruitless to speculate. Look for yourself where the disk space is being consumed. Run something like

sudo du -hx / | sort -h

du will list recursively how much space each folder occupies on your disk. The -x option will limit this to one filesystem, and -h will select "human readable" output format. It is run under sudo to make sure it can report on all folders regardless of their access permissions. The sort command sorts the output by size so the biggest folders will appear at the end. (Add the -r option to have them at the beginning instead.)

So this will show you the biggest folders on your root partition (assuming that's the one running out of space) at the bottom. Then look what kind of files are accumulating there.


How to use rsync from within a python script?

import os
os.system("rsync -avrz /opt/data/filename root@ip:/opt/data/file")

Did you try that?
os.system basically allows you to run bash commands.


Remove the Brave completely

sudo apt remove brave

rm -r ~/.config/BraveSoftware

Install Brave

sudo snap install brave

If you don't have Snap activated read here


Blank updates in Software Updater in 18.04

I put off the update for over a week, it included some primary components, lib kits, etc... (requires admin) but mostly (size-wise) was firefox package. I don't use that browser. None the worse for it so far, and the "remind me later" nag notice is gone.


Settings option has disappeared from the task bar as of this morning's update to 20.10

So I deleted and reinstalled a bunch of gnome, task and settings packages using Synaptic. Now Settings is back on the task bar.


dnsmasq can bind to separate network interfaces and provide a mix of address ranges as a dhcp server using its dhcp-range option a really good explanation is at https://wiki.debian.org/HowTo/dnsmasq

It can also really simplify any DNS look up services you might want to provide


Just upgraded to Ubuntu 14...won't start up

For the future it would be a great idea to use TimeSift. You can do backups and in your situation it would be helpful. I swear on this program. It saved my Ubuntu-PC a few times.
I hope for you someone can help you anyway.


Creating a Git repo at / (root) for tracking settings?

The answer to both of your questions is no, you can create any directory you want in the /. the only thing that could happen is some permission issues with some spacial paths I guess.

However it's better to store the .git directory somewhere else, something look like:

git --git-dir=/home/user/backup-root --work-tree=/

Read here.


How to delete all files based on year in unix?

Use find -newermt option:

find /path/to/directory -type f -newermt 2018-01-01 ! -newermt 2019-01-01 -print

or for less thinking:

y=2018
find /path/to/directory -type f -newermt $y-01-01 ! -newermt $((y+1))-01-01 -print

Change -print to -delete if you're happy with the result.


What GL libraries do I need to install the Finite Element Toolkit (FETK)?

On CentOS, I fixed this error by installing all XOrg libraries:

yum install 'libX*-devel'

I am assuming that it would be something similar on Ubuntu. Maybe:

apt install libx11-dev


14.04 Nvidia issues - black screen, freeze etc

The problem with hybrid graphics (aka switchable, etc) and nVidia Optimus technology is that nVidia doesn't give support of Optimus to Linux.  Meaning, you will always have problems of black screen when trying to run your machine with nVidia video chip directly.

To avoid this problem, there is a project called Bumblebee, which runs as main video chip the intel video integrated chip, turns off the nvidia to save power, and when you need video acelerating you can use optirun command to activate the nvidia chip.

You can find help about Bumblebee in the Ubuntu Help page:
https://wiki.ubuntu.com/Bumblebee

Hope that helps you solve your problem


Ubuntu 12.04 sometimes doesn't halt completely

I think I solved it by edditing the reboot options in the grub file. How? just edit /etc/default/grub and search for the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" and add the ACPI option force, to become
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
This did the work for me. Hope it helps you guys too.


intel-microcode 3.20200609.0ubuntu0.20.04.0 update crashes computer. Unable to boot

I've got the exact same laptop and had encountered the exact same problem starting 6 hours ago!

Here's my work-around also captured in that Launchpad bug you quoted in your comment....

I went here: https://launchpad.net/ubuntu/+source/intel-microcode
to check what version of intel-microcode to downgrade to. Basically I wanted the previous one that had no issues.
I used an ubuntu-live-usb to chroot into my yoga 710-11ISK laptop (intel m3-6Y30)
sudo apt-get purge --auto-remove intel-microcode

sudo apt install -y intel-microcode=3.20191115.1ubuntu3

That's the version from point 1 above
I was unable to update-initramfs for some reason while in chroot
I noticed that ~1/7 reboots into recovery would work; don't know why. But I found out the hard way trying to figure out what the heck had gone wrong banging my head reboot after reboot!
Anyway once in recovery mode I...

sudo update-initramfs -u

I rebooted and logged-in multiple times to ensure problem is gone. Including from powered-off state.
Awesome!
Ubuntu's package management will want to install the newest cr@p intel-microcode (I swear I'm getting AMD next time)...

sudo apt-mark hold intel-microcode

That holds the package from upgrading until the microcode is fixed. I don't think Ubuntu can fix this, it will have to be Intel.

I hear Lenovo are now selling Ubuntu certified AMD laptops!... hmmm


Reading information on pastebin,
I found out that

  GRUB_TIMEOUT=5

edit GRUB configutaion by running

  gksudo gedit /etc/default/grub

in terminal. Enter your root password, then edit

  GRUB_TIMEOUT=5

to

  GRUB_TIMEOUT=10

Save the configuration file and run

  sudo update-grub

This should solve your problem.


What does it mean "Processing Triggers for..." after installing/Uninstalling?

Those are normal messages to get when dealing with packages, and are actually there to prevent you from having to take any actions.  Without those triggers, you would have to logout/login or reboot for some changes to show up.

The reason they are there is to give other tools a chance to update - for instance, the list of applications in the unity dash would need to update to not show newly removed items.  There are other triggers for man pages (documentation), grub bootloader (new kernel versions), and many others.


How to complete remove macbuntu (even by formatting)?

macbuntu cannot determine the currently installed version probably because you deleted the ~/.macbuntu folder.

To still uninstall macbuntu, you need to tweak the uninstall script so it will omit the checks in the files:

Back up your home directory (please really do that!):

sudo cp -r ~ /home/backup

Open the uninstall script uninstall.sh and comment the following lines (put a # in front of them):

chk_version
chk_user

Run the uninstall script uninstall.sh. Cross fingers ;)


How can I Fix the CD/DVD refresh for the media drive so that it is recognized automatically?

Pretend that your CD/DVD drive does not have a manual ejection button.
Instead, r-click the Desktop icon and choose Eject.
There is also an Eject option in Nautilus when a CD/DVD has been mounted.
Or, from the command line type eject.
Or, [ALT]+[F2] eject and Run.

Unix-like systems "mount" a CD/DVD, incorporating the contents into the file system.
Not too-too long ago, the physical ejection button would not work at all
if a CD/DVD was currently mounted. By using the physical ejection button,
you have ejected the media, but Linux doesn't know about it, so it shows you what
it thinks is supposed to be there.


Transitioning to Ubuntu - Complete Newbie

You can run a trial on a PC with the "Live" feature.

With the "Live" feature you will run the OS from the USB stick without installing it to the hard drive.

And if you add "Persistent file" the changes and files you create will remain between reboots.

Add persistent file

Ref.: https://itsfoss.com/create-live-usb-of-ubuntu-in-windows/


Just bought it today. It works like a regular mouse, scroll works but is not smooth. Gestures doesn't work at all, those need to be implemented by reverse engineering. It has only one physical button, it detects where is your finger in order to decide if is a right or left click. with both fingers on the touch surface every click is a left clock, it doesn't have a middle click.


Copying folder from ntfs to ext4 partition

I suggest trying to paste the file anyway, using [Ctrl] + v. Or drag and drop the file.

I have noticed that in Nautilus the Context menu option "Paste" is greyed out despite having permissions to paste into that location.

This has already been logged as a bug: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/949468


How Install "Telepathy Connection Manager"

There's currently a confirmed bug about this not working properly.


i had this same error. what solved it for me is reverting mount.cifs's security parameter back to its previous default as indicated here and in mount.cifs' manpage:

  The default in mainline kernel versions prior to v3.8 was sec=ntlm. In v3.8, the default was changed to sec=ntlmssp.

in your case, the new command would be

sudo mount.cifs //192.168.1.130/LaCie ~/lacie -o user=admin,sec=ntlm

notice sec=ntlm at the end


Graphics drivers for Intel Core i5-1035G4?

It looks like this adapter is not supported by the 5.0.0-23 Linux kernel.

First update your system by

sudo apt update && sudo apt upgrade

reboot and test.

If this doesn't help, try the 5.3 kernel that can be installed by

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

reboot to apply.


Touchpad not recognized on new Ultrabook

This is an upstream problem from the 3.15-rc kernel. A patch has been submitted here:
https://patchwork.kernel.org/patch/4096321/

3.15 final should not contain the bug.

oh, and this is not a conflict with i2c_hid.


Which contact sheet generator can be scripted?

montage (part of the imagemagick package) can do this.

The options are exhastive so i thoroughly recommend running man montage but here's an example I pulled to show off the perverse level of detail you can go into:

montage -size 400x400 ~/Pictures/2008/Sept/*.JPG  -thumbnail 200x200 -font /var/lib/defoma/gs.d/dirs/fonts/Vera.ttf  -set caption '%t' -bordercolor Lavender -background grey40  -gravity Center   -pointsize 9  -density 144x144  +polaroid  -resize 50%   -set label ''  -background white  -geometry +1+1  -tile 5x  index.html

It makes both a webpage and a contact image.


rysnc errors, backup with deltacopy and Ubuntu

This error tells you that the local rsync was trying to talk to the remote rsync, but the connection to that rsync is now gone.

If the remote rsync is a daemon, your first step should be to look at the daemon's log file to see if it logged an error explaining why it aborted the transfer. Also double-check to ensure that the log file is setup right, as a wrong "log file" setting in your rsyncd.conf file can also cause this problem.

There are several common causes for a remote rsync process going away:

The destination disk is full (remember that you need at least the size of the largest file that needs to be updated available in free disk space for the transfer to succeed).
An idle connection caused a router or remote-shell server to close the connection.
A network error caused the connection to be dropped.
The remote rsync executable wasn't found.
Your remote-shell setup isn't working right or isn't "clean" (i.e. it is sending spurious text to rsync).

If you can't figure out why the failure happened, there are steps you can take to debug the situation. One way is to create a shell script on the remote system such as this one named "rsync-debug" (This is a Linux script and you probably need a windows equivalent). You would use the script like this:

rsync -av --rsync-path=/some/path/rsync-debug HOST:SOURCE DEST
rsync -av --rsync-path=/some/path/rsync-debug SOURCE HOST:DEST

This script enables core dumps and also logs all the OS system calls that lead up to the failure to a file in the /tmp dir. You can use the resulting files to help figure out why the remote rsync failed.

rsync error. Has some interesting pointers.
Answer created from this source.


“A system restart is needed to complete the update process” message was shown in KDE Plasma previously but now it's gone. How to enable it back?

The required package is kubuntu-notification-helper. Install it:

sudo apt-get install kubuntu-notification-helper

Then restart KDE.

How to verify that notification really works

Run:

sudo touch /var/run/reboot-required
sudo touch /var/lib/update-notifier/dpkg-run-stamp

Notification should be shown almost instantly.


What is the purpose of the 'nobody' user?

It's there to run things that don't need any special permissions. It's usually reserved for vulnerable services (httpd, etc) so that if they get hacked, they'll have minimal damage on the rest of the system.
Contrast this with running something as a real user, if that service were compromised (web servers are occasionally exploited to run arbitrary code), it would run as that user and have access to everything that user had. In most cases, this is as bad as getting root.
You can read a little bit more about the nobody user on the Ubuntu Wiki:

https://wiki.ubuntu.com/nobody

To answer your follow-ups:
Why I can't access this account with su nobody?
sudo grep nobody /etc/shadow will show you that nobody doesn't have a password and you can't su without an account password. The cleanest way is to sudo su nobody instead. That'll leave you in a pretty desolate sh shell.
Can you give a particular example when is indicated to use this account?
When permissions aren't required for a program's operations. This is most notable when there isn't ever going to be any disk activity.
A real world example of this is memcached (a key-value in-memory cache/database/thing), sitting on my computer and my server running under the nobody account. Why? Because it just doesn't need any permissions and to give it an account that did have write access to files would just be a needless risk.


How to build an "orignal" Ubuntu installer/live iso image?

To do this, make a custom live CD from scratch. This article in the Ubuntu community documentation explains how.

However, you might prefer to start out with an existing live CD image, and customize that (which is considerably faster and simpler).


btrfs with multi devices fails automount in fstab

Add device=/dev/sda1,/dev/sdb1 etc to the mount options (e.g. subvol=@,device=/dev...) depending on what your actual btrfs partitions are to grub.cfg.

Note that update-grub will overwrite this. You can monkeypatch /etc/grub.d/10_linux.

Theoretically initrd should do a btrfs device scan, and I think I've already seen bugs open for this. At any rate once I have a cleaner solution I will double check.


Yes, I have the same. To avoid this I just install TLP and change in configuration

CPU_SCALING_GOVERNOR_ON_AC=performance
CPU_SCALING_GOVERNOR_ON_BAT=powersave
CPU_HWP_ON_AC=default
CPU_MAX_PERF_ON_AC=80
CPU_MAX_PERF_ON_BAT=50
CPU_BOOST_ON_AC=0
CPU_BOOST_ON_BAT=0
ENERGY_PERF_POLICY_ON_AC=balance-performance

And now my temperature not raising higher then 70 C.

BTW I have same issue on another Asus UX490UA, same solution helps


Not sure how to do it with Enter but it should work with you using  Escape assuming you have no password to unlock screen.

If you do have a password to unlock the screen than you can simply type it without using the mouse first to swipe the screen. As per:

How to remove "phone style" Gnome swipe to unlock


How to deploy apt-get updates as of a certain date or matching a specific version?

The only way to do this with any degree of certainty is to maintain your own mirrors. Sync the mirrors to the main ones by whatever schedule you want. Update dev using them, do whatever testing you need to, and then update production, and only then sync your mirror again. Or maintain two mirrors, so that you can simultaneously test a new iteration of updates while updating production to the tested batch.

  Is there a way to export the package versions from the dev server and use it as a manifest for updating in production?

Sure there is, but if you try to force updates to specific versions, and those versions have since been superseded in the mirrors you use (and are now missing), you'll end up with broken dependencies and apt hell.


Window painting issue in Ubuntu 18.04.1 LTS

Okay, I managed to solve this problem.

I changed the input method from xim to ibus. Open im-config, click ok and after that you can change the input method.

More information here: https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1760818


Google Drive is not synchronizing properly

The API for google drive changed so that program won't work anymore.


Can I install Ubuntu on the same drive as windows?

Since you said you're using the windows installer (WUBI), you need not worry about your Windows installation. Ubuntu will be installed in a virtual drive (a file with all the ubuntu files in it) and it won't harm your Windows installation.


How do I get passed the "MBR-helper missing" error message in installation?

Try redownloading the iso. Also don't forget to check the MD5Sum and make sure they are the same

How to check MD5


Problems after git installation from source

Try
apt-get purge git

Then instead of compiling from source, you can add another repo that will have the latest available git, which is explained here, allowing you to simply use apt-get install git after adding the new repo

How do I install the latest version of Git with apt?


Pipeline character, | indicates OR, i.e., either of the two lxqt-sudo and gksu can be used. Similarly, xfwm4 or x-window-manager and firefox or www-browser.


Well it was a silly mistake.
I need to change the owner of the entire datastax studio directory recursively.
chown -R <new-user> or <root> datastax-studio-6.8.1/

Once it is done - datastax studio is working fine.


Trying to use the move (mv) command, but I get "no such file or directory"

Some useful things to know when doing things with files:

Linux is case sensitive (so dog, Dog and DOG are all different files)
How commands work depends on where you are in the filesystem
Based on where you are you can use relative or absolute pathnames

So, if you are in the parent directory of Cat and Dog you can use relative pathnames, like this:

mv Cat/puppies Dog

An easy mistake to make is to type the pathname starting with /

mv /Cat/puppies /Dog

This will give a no such file or directory error, because / is the root directory and there are no Cat and Dog directories under /. Have a look:

ls /

One reason for this confusion is that the system uses a helpful shortcut for the user's home directory, so instead of /home/username/somefile you can type ~/somefile as the absolute pathname of somefile in your user's home directory, so, assuming Cat and Dog are at the top of your user's home directory, you can move puppies from Cat to Dog from anywhere in your filesystem with

mv ~/Cat/puppies ~/Dog

A couple of examples using relative pathnames

If you are in the directory Cat, you can move puppies like this

mv puppies ../Dog

.. specifies the parent directory of the current working directory

If you are in the directory Dog you can move puppies like this

mv ../Cat/puppies .

. specifies the current working directory

To find out where you are, you can usually look at your prompt, but just to be sure, you can always check with pwd which stands for 'print working directory'


Ubuntu on VMware/Virtual Box will not launch

Reinstalled OS, some reason it works now.


You should have about 247-(247*0,05) = 234GB. That's because 5% of the available space is saved for the root user so that you may boot the system and perform tasks. This can be tuned using tune2fs. However, you should remember a couple of things; full file systems get fragmented and slow. Also, if your system file system is all full for some reason, you may run into trouble. The 5% is reserved for those two reasons.

234GB isn't exactly the same as the 226 that you expected. There might be other issues as well, such as one using GiB instead of GB, etc.

But to answer your question, it's not caused by previous installs.


unable to edit /proc/sys/net/ipv4/ip_forward in Xubuntu

You can not re-direct so easily with sudo. There are several potential solutions, including tee.

You can re-direct to files you own as the user calling sudo, such as files in your home directory, but not system files.

Example

# it works when re-direction to a location / file the user has permission to access
ubuntu@ubuntu:~$sudo echo "it works" > ~/file
ubuntu@ubuntu:~$cat file
it works

# But NOT if you do not have permission to access the target
ubuntu@ubuntu:~$sudo echo "it works" > /root/file
-bash: /root/file: Permission denied

Option one

use sudo bash -c and quote the entire command

sudo bash -c 'echo 1 > /proc/sys/net/ipv4/ip_forward'

Option two

Use tee

echo "1" | sudo tee /proc/sys/net/ipv4/ip_forward


Does the Ubuntu Newsletter still get sent over email?

I'm getting my emailed copy of the Ubuntu Weekly Newsletter.  It's published at many locations, including

Ubuntu Fridge
UbuntuForums
Ubuntu wiki

& more.
Traditionally posts published to Ubuntu Fridge (my first link) are mirrored to http://ubuntu-news.org/ , where an issue there does exist.
It was hoped that would be fixed Dec 26, 2020, but it wasn't possible, and with luck the fix will occur soon.
A number of feeds (eg. google use ubuntu-news.org for their info) have thus stopped at UWN issue 660 as that was the last post mirrored to ubuntu-news.org.
At this time, our next issue (#664) will go out in tuesday morning (my local time, <48 hours from now), and I'm hoping it'll appear on http://ubuntu-news.org/ as well, but I'll have to wait and see (ubuntu-news maybe back online later this week)
Email'd issues of Ubuntu Weekly Newsletter are being sent out, but after a number of returned emails, names on the list get removed. I don't have your email, so can't check if it's on the mailing list, but links to where you signed up may have been helpful in looking for reasons as to your not receiving copies. Emails go out

Reference in the question was made to a question which referred to the Ubuntu Weekly Newsletter so it was assumed it was that Newsletter which was being asked about.  Instead it turned out in comments (below) it was a Canonical Newsletter signup, which is an ad-hoc publication used for marketing purposes. That newsletter comes out from the Canonical company (why you have to tick that you agree to receive information about Canonical's products & services) and is not a Ubuntu community newsletter.


Install Ubuntu on a second internal drive

Move the files someplace else and then install Ubuntu 14.04.