Which cloud storage clients are supported by Ubuntu?

Dropbox, https://www.dropbox.com/install-linux,
Install the appropriate package if you want to use Dropbox on your Linux Desktop.

Google Drive, Insync, https://www.insynchq.com/, Insync extends Drive's web functionality to your desktop by integrating tightly with Windows, Mac and Linux so you can get work done.

Rclone, http://rclone.org, Rclone is a command line tool for synchronizing files and folders to multiple cloud storages (either from your machine or from one cloud storage to another). It supports Dropbox, Google Drive, Amazon S3, Amazon Drive, Microsoft One Drive, Yandex Disk, and more.

RcloneBrowser, https://mmozeiko.github.io/RcloneBrowser/, Simple cross platfrom GUI for rclone command line tool. Supports Windows, macOS and GNU/Linux.


Connecting phone via usb is a mess Ubuntu 17.04

I am using a little app, that starts an ssh server on any android phone: SSHelper from Paul Lutus ( available at Playstore ).

With this app you will see your phone in "other locations" or you can login  manually, access certain directories and create bookmarks e.g. via:

sftp://ip_of_your_phone:2222/sdcard
sftp://ip_of_your_phone:2222/storage/whatever

This works very well and with a speedy wlan very fast and wireless ;-)

If you have trouble: uninstall the app and reinstall it. This will recreate a new server key. Also you should change the Passord (it defaults to "admin").

I am using this for syncing certain content with rsync (unison) between my phone and my pc which works very well. If you do this, you can use the gvfs-link

/run/user/1000/gvfs/sftp\:host\=YOUR_IP\,port\=2222/YOUR_SUB_DIR_ON_ANDROID

for syncing on the phone's side.

Cheers
Axel

BTW: Yes, totaly agree: mtp sucks!


Why does Ubuntu One sync modified files just on one device?

I'm the developer working on Ubuntu One Files. Allow me to assist you.

Ubuntu One Files does not sync your files. It is a thin client that gives you access to Ubuntu One cloud storage. It works quite differently from what you are used to on your desktop machine, due to a number of platform limitations on Android (such as battery, CPU and bandwidth). In other words, you can download and upload your files, none of these actions are automatic. You can also choose to auto-upload pictures, but this is far from a fully functional sync feature.

When the app detects the file has changed on the server, it removes the local file copy, so that you don't access the old file, and download the new one whenever you try to access it. However, if you modify the file, the app will not sync it back to Ubuntu One automatically. You would have to manually select to upload that file to the same location.

It is true that you need a file explorer (we currently don't ship a custom one), but it doesn't need to be File Expert. Actually, I suggest you give these a try:

ES File explorer (the "File way" when you choose to share a file)
ASTRO file explorer

You can use any file explorer of your choice, which properly shares a raw path of the chosen file (that's a technical bit, but there are a few file explorers that share content in an unsupported way with content:// URIs).

That said, if you change a file, you would have to open Ubuntu One Files, browser to the destination directory, hit plus at the top, select File, and choose the file you have modified. The file will overwrite the copy on the server once uploaded.

EDIT: It is true that Ubuntu One stores your files under SD_card_path/u1/ directory.


Add title text over freezed frame in Kdenlive

Seems like this was a known bug. The Kdenlive codebase underwent a large refactoring for version 19.04, and it looks like it should be fixed in this and later versions.

Note that in this newer version, the context menu doesn't show all the effects anymore. So to find the freeze effect, you have to open the Effects pane (View > Effects) and go to the "Show all video effects" tab (the default view is the "Main effects" tab, and the freeze effect isn't visible here).


How can I get the celery daemon to run on Ubuntu 16.04 using systemd?

I've had the same problem not long ago.

Using CELERY_CONFIG_MODULE in /etc/default/celery file was helpful for me.
Also check if you have the user named celery. You can run celery under another unprivileged user. I launch celery under my own user.

Below is my file /etc/default/celery:

ENABLED="true"
CELERYD_NODES="celery_worker"

# Where to chdir at start.
CELERYD_CHDIR="/path/to/my/project"

CELERYD_OPTS="--time-limit=300 --concurrency=8"

CELERY_CONFIG_MODULE="celeryd"
CELERY_APP="celeryd:celery"

# %n will be replaced with the nodename.
CELERYD_LOG_FILE="/var/log/celery/%n.log"
CELERYD_PID_FILE="/var/run/celery/%N.pid"

# Workers should run as an unprivileged user.
CELERYD_USER="my_user_name"
CELERYD_GROUP="my_user_name"

CELERY_CREATE_DIRS=1

CELERY_BIN="/usr/local/bin/celery"

Here is my /etc/systemd/system/celery.service file word by word:

[Unit]
Description=Celery Service
After=network.target

[Service]
Type=forking
User=user
Group=group
EnvironmentFile=-/etc/default/celeryd
WorkingDirectory=/opt/celery
ExecStart=/bin/sh -c '${CELERY_BIN} multi start ${CELERYD_NODES} \
  -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \
  --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'
ExecStop=/bin/sh -c '${CELERY_BIN} multi stopwait ${CELERYD_NODES} \
  --pidfile=${CELERYD_PID_FILE}'
ExecReload=/bin/sh -c '${CELERY_BIN} multi restart ${CELERYD_NODES} \
  -A ${CELERY_APP} --pidfile=${CELERYD_PID_FILE} \
  --logfile=${CELERYD_LOG_FILE} --loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}'

[Install]
WantedBy=multi-user.target


I found that solution got fixed but only working for default /var/www directory:
How to avoid using sudo when working in /var/www?


udisksctl unmount with wildcard possible?

I found no way to make it over udisksctl. I make a starter with Exec=umount /media/my_username/*


Very choppy Flash during fullscreen mode

NOTE: This is the workaround for youtube. Still, same prinicple should work on any flash-based content.

If none of suggestions worked and if your videos play well in any resolution i.e. 480,720,1080 when flash content is not maximized and lag/stuttering/choppiness occurs only in full screen mode, try this:
try right-clicking the video and select pop out video. Then, just press F11 and the video should be still playing well with no lag.

This works for me and I'm using dell dual-core t220 2.0 Ghz, 2GB ram with ati radeon HD 3200 video card and using the ati official proprietary driver 12.1.
Long story short, if You are using proprietary ati drivers and lag occurs only in full screen, try poping out the window and maximize it instead pressing the full screen button on the flash player instead.
Also, turning of Vblank in ccsm also helps for overall performance.


You have to tell your computer to boot from the DVD.

Press F12 at boot (before grub). Choose the DVD.

(It can be something different like F2 etc)


You can disable the sidebar and the search and replace bar which is at the bottom of the screen.

First, click on "View" in your top menu.

Then, click on "Tool Views".

Finally, untick the box for "Show Search and Replace".

Now, if you want to completely hide the search and replace box and the sidebar, you can press: SHIFT+CTRL+ALT+F.


Dual boot windows 10 and ubuntu 14.04 on an MSI GS63VR machine

Yea it could happen , but you still can recovery your boot section with running grub from usb with https://www.supergrubdisk.org/ , just burn it from another computer or on another DOK , good luck with the installation.


Would like to use different passwords for initial login and sudo for encrypted home folder

You can completely remove the need to enter a password for sudo: How to run sudo command with no password?

I don't see any other way though, it's either entering the same sudo password or removing it.
I have a long password (about 20 characters) and it doesn't bother me. Also, entering a few sudo commands in succession only requires you to type the password once...
It doesn't bother me because my password is easy to type fast. Lots of people make a password too complicated, either to remember or to type. Personally I think this is wrong. If you have a long password that is easy to type, people can't follow your keystrokes when they're watching. If you do have a complicated password that takes time to type. There is lots to be said about passwords and they're never-ending discussions. I'm personally convinced that it's better to use a long password (even using normal dictionary words, including spaces and other punctuation) than a complicated short password. The longer the password, the longer (exponentially) it takes to crack. Using common sentences (e.g. I had bacon and eggs for breakfast.), makes it easy to remember, very strong but also easy and fast to type. You will find people who strongly object because they're all dictionary words, but I can assure you they're more difficult to crack than e.g. P@5s\/\/0Rd, which is considered by most as a very strong password.


The Xmonad wiki is very helpful. You need to logout and during the login select your session. The session descriptions are stored in

/usr/share/applications/

as .desktop files. Since you installed from the repos there should already be one. So you can just select Xmonad as your session during login and it will start instead of unity. The setting will remain, so to get back unity you have to select it during login.

If you want Xmonad with a Gnome session, you'll have to create another .desktop file. It is explained in the wiki: Xmonad with Gnome session.

The first time you login in into Xmonad you won't see much. It's just a black background with .. well nothing. You have to add the status bar yourself (in the config). Here are the default keybindings. You can start a terminal with mod-return (mod is the windows key) or launch other applications with mod-p.

Finnaly you probably want to configure Xmonad. The config is stored in ~/.xmonad/xmonad.hs and you can add additional haskell code to ~/.xmonad/lib/.
Here is the wiki on configs. Though the repo version of ubuntu 12.04 might be a bit old. I compiled it myself to have a new version of Xmonad.


unmet dependencies with fresh python3.8 installation on Ubuntu 16.04.4

I was able to solve the problem by deploying another instance of Ubuntu 16.04.
I copied the files that I deleted from /usr/bin/py* from the working instance, onto my broken machine.
This got me to a point where I could manually solve my individual errors by updating and removing broken links and packages.
Thank you @BrianTurek and @Guiverc for the help.


After installing xubuntu-desktop, I've removed some packages that are pre-installed in Ubuntu 14.04 (and no longer required) by this command.

These packages removed successfully and all working fine but some residual config are still exist and hence I removed unity-scrollbar from synaptic residual config:

Which removed files like: /etc/X11/Xsession.d/81overlay-scrollbar.

After logout and login I again tried to launch by command as below:

$ mousepad
$ zenity --info

Now Gtk-Message: Failed to load module "overlay-scrollbar" is gone, and problem solved.


Why does my Opera window not show up in Unity?

Okay, it looks like this solved itself by switching the computer off on Friday and switching it on on Monday.

If someone has an idea on how I did this (and how to avoid it in future), I'm still interested.


SSL Question - about "Unknown Authority"

I "FINALLY" figured it out, Ilyak - I've been learning for like 2 weeks now everything I can.
In my case I have 3 files
1. hostname.key I produced
2. ca_bundle.crt
3. certificate.crt

with postfix and dovecot it is obviouse where the first 2 go, I finally found 1 postfix setting that had an entry where I could give it the path example:
"TLS certificate authority file" : /etc/pki/dovecot/private/ca_bundle.crt , I couldn't find one for dovecot, it completes the chain through postfix only, re-tested and VIOALA all green now.

So from what I gathered, is it seems like this may have changed over different versions, One link above like many others I've tried suggest making all 3 files into 1, now the postfix I have on Ubuntu 18.04 takes all three files without any modification, in fact every time I catted more than one together, it wouldn't work at all. So all I ever had to do was make my key, make a csr, use the csr info to get a cert and then download the 2 files from sslforfree and set the path to 2 files in dovecot and all 3 in postfix restart both and done. When I need to replace the certificate I will use the same names and just download them replacing the old ones and restart dovecot and postfix.


Install a software using another distribution's branch

The page you have listed is linking to source code, which you cannot install using apt-get. However the version number of skipfish in your link is 2.10b-1, which is available in the ubuntu 13.04 universe repository, you can also manually download the .deb from here:
http://packages.ubuntu.com/raring/skipfish and if you double click it you should be prompted to open with the ubuntu software center, which you can use to install it.


php7.0-zip packages have unmet dependencies

Since php7.0-common (= 7.0.33-0+deb9u3) is a dependency, as shown by your console, I suggest you install it first before installing php7.0-zip. You can find the Debian package here.

Also, the best approach to get these packages installed is to use package managers such as aptitude or synaptic. You can install any of them and use as follows:

-- aptitude:

sudo apt-get update
sudo apt-get install aptitude
sudo aptitude update
sudo aptitude install php7.0-common php7.0-zip -y

-- synaptic:

sudo apt-get update
sudo apt-get install synaptic

Synaptic has a GUI you can use and in case you can't launch it after installing, see this.

I hope this answer helps you out!


Unless you really need the Oracle version of JDK, the easieste option would be installing openjdk

sudo apt-get install openjdk-7-jdk

If you really need to use Oracle JDK, you can follow this howto @WebUpd8. Steps 3 and 4 can be replaced by this commands (and are only needed if you have more than one jdk version installed) in the case you dont want to use the ppa:

sudo update-java-alternatives -l
sudo update-java-alternatives -s <name of jdk>


How to create a CLI alias for a web search with W3M?

You cannot use an alias if you need to pass parameters to it, you need to use a function instead. Add this to your ~/.bashrc file:
duckit(){
    w3m https://lite.duckduckgo.com/lite/?q="$@"
}

Now open a new terminal and try duckit test.


Ubuntu Does not BOOT after Started GNOME

I have some important files on PC else I would have Reinstalled.

You can access the files on the drive using the Ubuntu installation media ISO. Simply boot from your installation media and Try Ubuntu without installing. From there, open the regular file manager, and in the devices pane on the sidebar, find your drive which had Ubuntu installed. Assuming it is not LVM and/or encrypted, you will be able to access all the files from here, and back them up to another drive before reinstalling. After backing up the necessary files, then you can safely reinstall from the same medium. Hopefully this helps :)


Uninstall + Re-Install from terminal errors

You can check wether the package is installed with the following command:

dpkg -l suld-driver-4.01.17

And to show where its files are installed enter:

dpkg -S suld-driver-4.01.17

At least parts of SmartPanel are installed in /opt/Samsung/. You'd have to check the install.sh to be sure, but you might try to move that folder and reinstall.


The official install instructions for Team Viewer using GUI are:

To install TeamViewer on your Ubuntu system, follow these steps:

Download the TeamViewer full version under http://www.teamviewer.com/download.
Open the teamviewer_linux.deb file with a double click.
    The TeamViewer installation package will open in the Ubuntu Software Center.
Click on the Install button.
    The Authenticate dialog box will open.
Enter the administrative password.
Click on the Authenticate button.
    TeamViewer will be installed.
    The status within the Ubuntu Software Center changes to Installed.
TeamViewer is installed on your Ubuntu system.

Install using a command line:

For installing TeamViewer, we recommend using the graphical installer, as described above.

If you prefer to use the command line, or if there is no graphical installer available, you can use one of these commands as an administrator:

apt install teamviewer_12.0.xxxxx_i386.deb

Older systems (Ubuntu 14.04, Debian 7 and below)

Run this command:

dpkg -i teamviewer_12.0.xxxxx_i386.deb

In case dpkg indicates missing dependencies, complete the installation by executing the following command:

apt-get install -f

GDebi - General tool to install deb packages with their dependencies

You can also install .deb file using gdebi.

Install gdebi:

sudo apt-get install gdebi-core

Install .deb packages with gdebi:

sudo gdebi filename.deb


x11vnc server with Xubuntu show black screen in client

x11vnc faq headless entry says to create an xorg.conf file:
http://www.karlrunge.com/x11vnc/faq.html#faq-headless


Why does IntelliJ install Scala SDK in /home/<user/.ivy2/cache/?

IntelliJ doesn't ever, and won't ever, have system level write access to make that.  For the most part, it only touches files in your home directory, or in other system directories you tell it to open files from.

Install scala through the package manager, and then configure IntelliJ to use that instead.  Since IntelliJ doesn't have system wide privileges you don't have the ability to have it install and manage scala systemwide; this unfortunately leaves you with 2.9.2.

Your only other option for updating/upgrading scala would be to find a PPA that has the latest version, but that may introduce other breakages.\


Missing letters in menus and folder names

There seems to be a (bad) fix for this problem as described here
The problem seems not to appear by using the old UXA hardware acceleration for for the Intel graphic cards.
Edit the following section of the /etc/X11/xorg.conf file such that AccelMethod is set to "uxa" or create the file if it does not yet exist:
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"  "uxa"
EndSection

Reboot or restart X.
The problem went away for me, but I only restarted a couple of times since I changed the file so it might still come back. Also, note that UXA acceleration is considerably slower!
edit: There is a fix for this in the repository by now. If you still experience this issue you either did not update your system for a while or it has a different cause and I suggest filing a new bug.


Read a URL from a file and open it in a Firefox tab

Piping is not the same as passing an argument to a program.

If you run a program, a process is created. I'm simplifying here, but basically every process has a standard in and a standard out. It receives input through the standard in (maybe) and produces output at its standard out (maybe). These are abbreviated stdin and stdout respectively.

When you execute a program in the terminal, its standard in is what you type into the terminal while its running. Its standard out is printed on the terminal.

What you do when you execute a | b is to execute both a and b but connect the stdout of a's process to the stdin of b's process. That is, if a's process created output, it's fed as input to b's process, just like if you were to execute both a and b in separate terminals and type everything a's process prints on its terminal into the terminal you're running b on. Well, almost. You can only do text, for example, whereas processes can pipe arbitrary data to a different process.

You can test this by piping data to tee.

Example:

echo foo | tee

echo reads its arguments and writes them to its stdout. Its stdout is connected to tee's stdin. Tee simply reads from its stdin on a per-line basis and writes its input to its stdout. This means that "foo" will be printed to your terminal as that's the stdout of tee's process.

echo foo | tee | tee | tee

Has the same effect, of course.

You can do more useful stuff which is pretty simple, too:

echo foo | sha256sum

This calculates and prints the sha256sum of "foo\n". Where \n is a line feed because echo ends its output in a line feed, otherwise the previous example wouldn't have worked because tee wouldn't have seen a line feed.

So your command cat PreTabs.txt | firefox executes cat with the argument PreTabs.txt which causes cat to write the contents to its stdout. This stdout is the stdin of firefox which means that firefox can read it. It doesn't have to and there is no rule of how it should behave on this. It looks like it either doesn't read it or reads it and then ignores it.

If you want to pass an argument to a program but that argument is inside a text file, you can use backticks. Commands between paired backticks are executed in advance and their output is pasted at that point in the outer command.

Example:

echo bar > foo
echo `cat foo` > foobar

The first line writes "bar" into the file foo (overwrites the file's contents if it already exists, otherwise creates a new file). In the second line, cat foo is executed first. It reads its parameter foo and learns that it's supposed to read foo's contents and print them onto its stdout. This stdout is then pasted where

`cat foo`

is in the second line, so the second line becomes

echo foo > foobar

which writes foo into the file foobar.

This actually causes Firefox do to something:

echo "stackexchange.com" > foo
firefox `cat foo`

opens a new tab loading http://stackexchange.com in Firefox.

You said that in your case it loads the file whose name it got as a parameter and I actually have a vague recollection of it having behaved like that in the past. It's probably a better idea to tell it explicitly what to do:

echo "stackexchange.com" > foo
firefox -new-tab `cat foo`

This is defined in the man page (man firefox) as:

   -new-tab url
          Open url in a new tab.

though it might be different for your Firefox version, of course.


Cannot overwrite files in remote server via SFTP in 16.04

I found the solution by trial and error. I share it if others face this problem.

You have to install openssh-server on client machine too.

I don't know why, and why I did not encountered this problem in previous versions of Ubuntu. Probably openssh-server was included in the previous installation of Ubuntu desktop.


Can not get LightDM or GDM working on LTS 16.04 after VirtualBox update

Apparently, I've had Virtualbox guest utilities installed on my host system which you are generally just supposed to run on the guest.  This issue only occurred when the package was updated.  After trial and error, the offending package is virtualbox-guest-x11:amd64 (5.1.34-dfsg-0ubuntu1.16.04.2), none of the other virtualbox-guest packages cause this problem.


falconer's answer got me on the right track -- there was a favicon.gif in the directory that caused the error. That file must somehow be corrupt. I deleted that file and then Nautilus stopped crashing. I navigated to another subdirectory that still contains an exact copy of that file, and it crashes.

I'll see how I can report this crash as a bug. Even a malformed image file should not make the file browser crash...


If you can remove the security setting in the mean time just to troubleshoot things out, please do so and connect to your network without it. If you can connect, then it most likely, your Ubuntu is having problems with handling encryptions. Read more below:

It has been a known issue that Ubuntu 12.04 is having some problem handling TKIP encrytion. So I suggest that you change your router security encryption setting to WPA/AES (or anything except TKIP).

This is based on experience, by the way. I have a laptop dual boot with Windows 7 and Ubuntu 12.04. In Windows I have no problem with connecting to any WiFi hot spots, in Ubuntu too but I realized that there's one specific WiFi hotspot that I cannot connect to because the encryption type is TKIP. I suggested to change the encryption type to anything except this one and everything worked out fine.

This also has been discussed loooong ago. Please see the following questions for reference:

https://superuser.com/questions/642867/wireless-internet-connection-does-not-work-wired-connection-has-internet/642907

Wifi Connectivity problems when using WPA/WPA2 Encryption

And also this bug report:

https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/481432

The solutions on the bug report should help you get through your problem.

Good luck!


how to create the new directory in xampp

for creating the folder inside / you need root permisions

for creating the folder inside opt/lamp/ht docs/

open the terminal using ctrl+alt+t
and change the directory to it by typing

cd /opt/lamp/ht\ docs/

and make directory using the command

sudo mkdir <dir name>

and to copy the files to docs first change the directory where your files are located using the following command

cd <directory containing the docs>

and type the following commands

sudo cp <docs> /opt/lamp/ht\ docs/


Game came in a .zip file. How to install it?

I don't think you need to actually install it. Please open a terminal and do:

cd ~/Downloads/linux64

Or wherever you extracted the file. If yours is a 32-bit system, then:

cd ~/Downloads/linux32

In either case, next do:

chmod +x campfire
./campfire

Play and enjoy!


Can't upgrade the system, dist. update stuck

Test this:

Switch on your computer.

Press and hold the Shift key, which will bring up the Grub menu.

Select the line which starts with ---- Advanced options.

Select the line ending with ---- (recovery mode).

Your pc should display a menu with a number of options.

Select the line ---- Drop to root shell prompt.

In the terminal, run:

mount -o remount,rw /
mount --all
nano /etc/apt/sources.list

In the open file.

Delete the contents.

Paste the following:

deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ precise universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security main restricted
# deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
# deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
# deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner
deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://us.archive.ubuntu.com/ubuntu/ precise-proposed universe multiverse restricted main

Ctrl + U, paste text. Ctrl + O, save file. Ctrl + X, close nano.

Continue running:

apt-get update
apt-get dist-upgrade
apt-get -f install
dpkg --configure -a
apt-get install --reinstall ubuntu-desktop
apt-get autoremove
apt-get clean
reboot


14.04 LTS Black screen after installing bumblebee (MBP 9,1)

/etc/bumblebee.conf needs to be edited...
if you do not use nvidia-current (-> nvidia-331)

there should be no /etc/X11/xorg.conf of any kind

sudo update-alternatives --config i386-linux-gnu_gl_conf

and

sudo update-alternatives --config x86_64-linux-gnu_gl_conf

(or the mac equivalent) should be set to mesa.


Samba users cannot write into folders that created by other users

create mask only defines the maximum rights a file can be created with. If the windows user creates a file with 0750, that's the right that's going to be applied with your settings, since it's being bitwise ANDed. You probably want to combine your settings with the force (directory) create mode = 0777 setting.

For more info check man 5 smb.conf:
https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#CREATEMASK


Installing Gnome-Shell

Open a terminal and first of all fetch the latest package informations via

sudo apt update

Then install gnome-shell via the following command

sudo apt install ubuntu-gnome-desktop

If that finished, logout and back in the login-dialog (most likely lightdm) choose your session type and relogin to a new session - this time using Gnome.

You'll find some documentation for the gnome project here.


All of my laptop's hard-drives have suddenly become Read-Only

Turned out problem was due to Windows filesystem not being shut down properly (it had crashed and needed a hard reset before I left on my trip). All I had to do was boot into Windows and allow the computer to shut down naturally. The hibernate function had been preventing my drives from being accessible.


This really has nothing to do with whether the data is stored within awk using an array or not.

As mentioned by @muru, you can re-format your data into columns using the column command

awk 'NR > 1 {print $13,$14,$15}' | column -t

Alternatively, just set awk's own output field separator to TAB instead of space directly

awk 'NR > 1 {OFS="\t"; print $13,$14,$15}'

For more complicated formatting requirements, you could replace the print statement by a printf, which would allow you to specify field-widths explicitly, e.g.

awk 'NR > 1 {printf "%4s%8s%8s\n",$13,$14,$15}'

For your iostat requirement, the first thing to note is that you can limit iostat's output to only the CPU Utilization Report (omitting the Device Utilization Report) by adding the -c command line switch, e.g.

 iostat -c 1 10

Beyond that, if you want to skip the repeated blank and header lines, you could do something like

iostat -c 1 5 | awk '/^$/ || /^avg-cpu:/ {next}; {print}'
Linux 3.13.0-45-generic (T61p)  15-03-02    _x86_64_    (2 CPU)
          11.11    0.04    2.67    0.14    0.00   86.04
           2.53    0.00    1.01    0.00    0.00   96.46
           4.46    0.00    1.49    0.00    0.00   94.06
           2.99    0.00    1.00    0.50    0.00   95.52
           3.02    0.00    0.50    0.00    0.00   96.48

or you could do something fancier to print only the first % header:

$ iostat -c 1 5 | awk '/^$/ || (/^avg-cpu:/ && a) {next}; NR>1 {a=1;print}'
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          11.11    0.04    2.67    0.14    0.00   86.04
           2.02    0.00    0.51    0.00    0.00   97.47
           4.04    0.00    0.51    0.00    0.00   95.45
           2.50    0.00    1.00    0.00    0.00   96.50
           3.02    0.00    1.01    0.00    0.00   95.98


If you received an email with Approved or Rejected, then you've uploaded your package successfully.
But, in this case, after the upload the package was rejected with the message Source/binary (i.e. mixed) uploads are not allowed.
I.e., you need to build a source package only.
In order to achieve that, create your package with debuild -S.


If all these keys are mapped to the same keycode, the Linux kernel cannot distinguish between them and you should contact the hardware vendor about this...


Will windows 10 partitions work on ubuntu without data lose

From your question it seems you don't have experience with Linux.

I suggest you install Ubuntu in a dual-boot (alongside Windows) instead of replacing Windows. The installer shouldn't delete your files, but things can go wrong for a number of reasons, especially when doing something like installing an OS, so having an external backup of your important files is highly recommended.


WPA2 802.1X Wifi with Ubuntu 18.04.3 LTS

According to https://help.ubuntu.com/community/Network802.1xAuthentication the configuration is located on /etc/wpa_supplicant.conf— IIRC the newer Ubuntu distribution require to install wpasupplicant packages.

sudo apt install wpasupplicant

Then you can start editing the configuration files.

sudo nano /etc/wpa_supplicant.conf

You can also create a new connection through Ubuntu's network-manager, then changes the WiFi security to Dynamic WEP (802.1X).

More information regarding this method would be in this Youtube videos → https://www.youtube.com/watch?v=dEDNtJE6ZDc


Chrome window is off position after maximizing

Open Unity tweak tools and go to Unity -> Switcher. Make sure you have the "Switch between minimized windows" option checked. I had the exactly same issue and fixed in that way. Let me know if this works!


How to set cpu limit for given process permanently. Cpulimit and nice don't work

In the absence of requested details ...

Here is how I use cgroups on ubuntu.

Throughout this post, you will need to change the variable "$USER" to the user running the process

I added information for memory as well as that is going to be a FAQ, if you do not need it do not use it.

1) Install cgroup-bin

sudo apt-get install cgroup-bin

2) Reboot. cgroups is now located at /sys/fs/cgroup

3) Make a cgroup for your user (the owner of the process)

# Change $USER to the system user running your process.
sudo cgcreate -a $USER -g memory,cpu:$USER

4) Your user can them manage resources. By default users get 1024 cpu units (shares), so to limit to about 10 % cpu , memory is in bytes ...

# About 10 % cpu
echo 100 > /cgroup/cpu/$USER/cpu.shares

# 10 Mb
echo 10000000 > /cgroup/memory/$USER/memory.limit_in_bytes

5) Start your process (change exec to cgexec)

# -g specifies the control group to run the process in
# Limit cpu
cgexec -g cpu:$USER command <options> &

# Limit cpu and memory
cgexec -g memory,cpu:$USER command <options> &

Configuration

Assuming cgroups are working for you ;)

Edit /etc/cgconfig.conf , add in your custom cgroup

# Graphical
gksudo gedit /etc/cgconfig.conf

# Command line
sudo -e /etc/cgconfig.conf

Add in your cgroup. Again change $USER to the user name owning the process.

group $USER {
# Specify which users can admin (set limits) the group
perm {
    admin {
        uid = $USER;
    }
# Specify which users can add tasks to this group
    task {
        uid = $USER;
    }
}
# Set the cpu and memory limits for this group
cpu {
    cpu.shares = 100;
    }
memory {
    memory.limit_in_bytes = 10000000;
    }
}

You can also specify groups gid=$GROUP , /etc/cgconfig.conf is well commented.

Now again run your process with cgexec -g cpu:$USER command <options>

You can see your process (by PID) in /sys/fs/cgroup/cpu/$USER/tasks

Example

  bodhi@ufbt:~$ cgexec -g cpu:bodhi sleep 100 &

  [1] 1499

  bodhi@ufbt:~$ cat /sys/fs/cgroup/cpu/bodhi/tasks

  1499

For additional information see:
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/


I occasionally run into this as well, though usually it works fine. Just to answer the transparency upon cutting aspect of it, I don't think that PCManFM does this at all.


IntelliJ Icons (Pycharm, CLion) suddenly gone from Gnome Dashboard

After following the link provided by Elder Geek in a comment to my question, the following solved my problem (exemplary done for CLion):

Find all .desktop files related to CLion:

sudo find / -name '*clion*.desktop'

Delete those files, then open CLion manually and go to Tools > Create Desktop Entry .... This created the file in ~/.gnome/apps/jetbrains-clion.desktop but it did not yet solve the problem. Next go to /usr/share/applications and create the file clion.desktop with sudo privileges. In this file enter:

[Desktop Entry]
Name=CLion
Icon=/path/to/clion/bin/clion.svg
Exec=/path/to/clion/bin/clion.sh
Type=Application

and hit save. Note that only creating this file without going to Tools > Create Desktop Entry ... was not enough for the icon to appear back in the Gnome Dash.

Thanks to Elder Geek for providing the link!


Limit FTP users to home directory on webmin

I am not sure how to configure ProFTPD from webmin, but if you can SSH to the system (or access a terminal), edit /etc/proftpd/proftpd.conf to change the DefaultRoot directive to:

# Use this to jail all users in their homes
DefaultRoot         ~

Restart the ftp service:

sudo service proftpd restart

You can provide exceptions to certain users/groups.


cmath: No such file or directory #include

I would suspect corrupt installation of development tools or something like that. First thing I would do is re install build package

sudo apt-get purge build-essential
sudo apt-get install build-essential

If the problem still persists post it back

Just curious: How did you install GCC 4.8? I have 13.04 and it have 4.7.3
So that might be an issue if was not done properly!


Why does the snapd service use so much data?

By default, snaps are set to refresh themselves 4 times per day.  If you are using many snaps, this could be a data intensive process for you.

Perhaps limiting the number of times per day that the snaps refresh would help.  You can adjust this on your system with

sudo snap set system refresh.timer=fri,15:00

to set the update of snaps to occur on Friday at 15:00, or tell snapd that you are using a metered connection:

sudo snap set system refresh.metered=hold

I suspect (but cannot prove) that snapd looks at the "Restrict Background Data" flag of the network connection (as shown in the image below), to determine that the connection is metered.  If you choose to set your connections to "metered" then to update your snaps, you will need to

sudo snap refresh

on occastion, just as you would occasionally sudo apt update and sudo apt upgrade

=====

For more information on this, please see https://docs.snapcraft.io/system-options/87


How to upgrade Ubuntu 14.04 using usb bootable drive

I know that I'm not answering your question about using a USB, but it is much easier to use the steps in this article to upgrade to 14.04. It says 13.10, but it should also work for 12.10.
http://itsfoss.com/upgrade-ubuntu-1404-beta-1310/


Simply put, you could copy the content of /var/cache/apt/archives/*.deb into the other /var/cache/apt/archives/ as root...

But if this is anything but a one-off, I would definitely suggest one of the various caching server options that are out there so you only ever have to download these updates once:

Apt-Cacher-Server
AptProxy
Squid+Apache and more


I need a command to remove all files from a directory (and subdir) that are under 20MB

First, run

find . -type f ! -name '*.sub' ! -name '*.srt' -size -20M -print

to check that it mathes only file types that you want. I'm a long time unix user and I always do this before asking any command to remove anything (typos always happen at the worst possible time). Then edit the previous command line to become

find . -type f ! -name '*.sub' ! -name '*.srt' -size -20M -print0 | xargs -0 /bin/rm -f

and run it. It should do what you want. You can repeat the ! -name '*.srt' part more times if you need to exclude more files. Be careful to include the single quotes: they are important to prevent the shell from doing filename expansion.


Please boot from a live Linux system and connect a backup-disk to do a image-backup first ! Never ever try to repair on original data as long you don't have a backup.
If the Linux live system is up use lsscsi to see what is the right device (sda again ?)

dd if=/dev/"devices maybe lookuped by lsscsi" of=/mountpoint/backup-devices/directory/image.dd bs=4096"

if the image is not that big, make another copy. If the disk is very large just do a image only from one partition. if the system uses LVM...well,then better do a complete image backup.
Afterwards use losetup to create /dev/loop-devices and do fsck or what ever here. BUT - if you getting I/O errors during "dd" it is most likely that you hard drive is broken. Last option is to to a "dd conv=noerror,sync" to get over the errors and try to repair as good as possible afterwards.
So keep one's fingers crossed that "dd" can create an image without errors.
And hope that the first attempted to repair did not create more damage.


System resets when selecting "Install alongside Windows Vista"

I would try burning the Live CD again. Sometimes there can be small errors that cause problems like this.

Other than that I imagine it could be any number of things.


Arranging my applications by type on Ubuntu with GNOME Shell

You may use custom app folders to organise your application launchers in the "All" section of "Show Applications" so that this section looks like this:

You can do this using a GNOME shell extension called "Appfolders Management extension" by clicking on the on/off button here (you'll have to install a browser add-on/extension suggested by the webpage first).

Once you have installed the extension, you'll be able to right click and send any application launcher to specific app folder(s).

Alternatively you may use an application called GNOME App Folders Manager.


Notify-osd and libnotify: how do they cooperate?

notify-osd (like the standard notification-daemon and GNOME Shell) implements the Desktop Notifications Specification, which specifies a DBus interface for applications to talk to.

libnotify is a C library providing an API for applications to create and manage notifications; it uses DBus internally to talk to the notification daemon.

notify-send is a tiny commandline application which uses libnotify to show notifications.


With Xmonad / GNOME, switch gnome-panel between monitors

Try gsettings or dconf.  You might want to change org.gnome.gnome-panel.layout.toplevels.top-panel.monitor and org.gnome.gnome-panel.layout.toplevels.top-panel.orientation.

It would be something like:

$ gsettings set org.gnome.gnome-panel.layout.toplevels.top-panel.orientation top
$ gsettings set org.gnome.gnome-panel.layout.toplevels.top-panel.monitor 1


Error when using wget to download a list of URLs in a .txt file

The error message is a bit misleading.

wget shows this message if it can't find the file.

Please double check your path to the file and the file name.

You could also try a ls !$ directly after your failed wget command - this expands to ls url-list.txt and you will see it is not a wget issue.


(thinkpad t400) Two-finger scroll stops working after reboot

Finally, I found a workaround. Dont't know if it is the way to go - but at least it works for me:

Step 1:
I created a shell script enableMultitouch.sh as root in the directory /usr/local/bin/ and made it executable. (As described here: http://wiki.ubuntuusers.de/Autostart#Autostart-ueber-Skript.)

Step 2:
I pasted the commands as mentioned in the post that described how to enable multi-touch:

#!/bin/sh
xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 4
xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 8
xinput --set-prop --type=int --format=8  "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 1 0

As described here: How to enable Two finger scrolling on Lenovo Thinkpad T400/W540

Step 3:
Finally I added the script to the startup applications. And now two-finger-scrolling works just fine.

Hope this is somehow helpful...

Cheers!


How to setup virtual users for vsftpd with access to a specific sub directory?

With a bit of playing around I've managed to come up with a semi solution (not perfect but good enough)

using 2707974 answer and information I've gained else where I've been able to get what I need.

First you need vsftp and PAM installed

apt-get install vsftpd libpam-pwdfile

Edit /etc/vsftpd.conf

nano /etc/vsftpd.conf

then paste in the following

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
local_root=/var/www
chroot_local_user=YES
allow_writeable_chroot=YES
hide_ids=YES

#virutal user settings
user_config_dir=/etc/vsftpd_user_conf
guest_enable=YES
virtual_use_local_privs=YES
pam_service_name=vsftpd
nopriv_user=vsftpd
guest_username=vsftpd

Edit to your exact needs the most important bit for virtual users is everything after the virtual user settings comment

Creating User

You can either use a database or htpasswd I found htpasswd faster and easier to use.

make a directory to store your users

mkdir /etc/vsftpd
htpasswd -cd /etc/vsftpd/ftpd.passwd user1

adding additional users just omit the -c

htpasswd -d /etc/vsftpd/ftpd.passwd user2

I've only managed to get it to work using CRYPT which limits to 8 chars
to use more than 8 chars use openssl to generate a compatible hash and pipe directly into htpasswd

htpasswd -c -p -b /etc/vsftpd/ftpd.passwd user1 $(openssl passwd -1 -noverify password)

Once your users are created you can now change your PAM config file

nano /etc/pam.d/vsftpd

and remove everything inside this file and replace with the following

auth required pam_pwdfile.so pwdfile /etc/vsftpd/ftpd.passwd
account required pam_permit.so

This will enable login for your virtual users defined in /etc/vsftpd/ftpd.passwd and will disable local users

Next we need to add a user for these virtual users to use. These users will not have access to the shell and will be called vsftpd

useradd --home /home/vsftpd --gid nogroup -m --shell /bin/false vsftpd

the user must match guest_username=vsftpd in the vsftpd conf file

Defining Directory Access

The important line here is the following

user_config_dir=/etc/vsftpd_user_conf

this means that when user1 logs in it will look for the following file

/etc/vsftpd_user_conf/user1

this file the same as the vsftpd.conf so you can define a new local_root

going back to the question we want user1 to only have access to var/www/website_name1/sub_folder1, so we need to create the vsftpd_user_conf folder:

mkdir /etc/vsftpd_user_conf

Now create the user file:

nano /etc/vsftpd_user_conf/user1

and enter the following line

local_root=/var/www/website_name1/sub_folder1

Now restart vsftp

service vsftpd restart

you should now be able to login as user1 who will only be able to see
var/www/website_name1/sub_folder1 and any folder and file inside it.

That's it you can now add as many users as you want and limit their access to whatever folder you wish.

important to remember if you do not create a user conf file it will default to the var/www folder as root (in the example above)

If the subfolder is intended to be modifiable by the user, it might be necesary to change the owner of the shared subfolder:

chown vsftpd:nogroup /var/www/website_name1/sub_folder1


mpd is the Music Player Daemon, and should not be needed by VLC. It should be safe to uninstall with sudo apt-get remove mpd.


Ubuntu 16.10, Firefox and Chromium not working

Given you have run Firefox with sudo, and probably other programs not meant to be, you need to regain the ownership of files in your home directory so they are accessible without root permissions again. This is why you are getting the error:

Access was denied while trying to open files in your profile directory.

If there is any output from find ~ \! -user $USER, and I'm sure there will be, you need to run the command:

sudo chown -R faezeh:faezeh ~faezeh


How to link to php from xampp installation so i can just use php command instead of full path?

Have you tried symlinking the php binary from /usr/bin?

Assume your XAMPP installation is in default location /opt/lampp

This is the command to achieve that (in your case):

sudo ln -s /opt/lampp/bin/php /usr/bin/php


How to install xsane on ubuntu 18.04 LTS?

Try restarting your PC.

If the error persists then execute the command

sudo rm /var/lib/dpkg/lock*

Then try again.

What happens is that when ypu try installing a package/packages the package manager acquires the a lock on the database so that another instance of the package manager does not simultaneously perform operations.

Sometimes this process gets interrupted and the lock does not get released so you have to do it manually.


Internet sharing with static mac-addr to IP mapping

Typically, IP address assignment based on MAC is achieved via a DHCP server and its configuration file in /etc/dhcp/dhcpd.conf. The below example reserves a pool of IP addresses for guests, and the rest are assigned based on MAC:

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;

# option definitions common to all supported networks...

default-lease-time 86400;
max-lease-time 93000;
option domain-name "xxxxxx.com";
option domain-name-servers 192.168.111.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.111.255;
option routers 192.168.111.1;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# The Basic DHCP allocated addresses

subnet 192.168.111.0 netmask 255.255.255.0 {
  range 192.168.111.3 192.168.111.50;
}

# Some specifically declared static IP addresses

host Wireless-R {
  hardware ethernet 00:22:6B:82:01:55;
  fixed-address 192.168.111.57;
}

host Doug-XPS {
  hardware ethernet 00:23:4d:a6:ed:c4;
  fixed-address 192.168.111.100;
}

host Doug-XPS {
  hardware ethernet 00:23:4d:a6:ed:c4;
  fixed-address 192.168.111.100;
}

host Doug-XPS2 {
  hardware ethernet 00:21:9B:F9:21:26;
  fixed-address 192.168.111.101;
}

host S10 {
  hardware ethernet A0:F3:C1:10:22:EA;
  fixed-address 192.168.111.102;
}

Alternatively, and if you prefer to use dnsmasq, or are already using it by default, you can specify via MAC in /etc/dnsmasq.conf via:

doug-xps=00:23:4d:a6:ed:c4,192.168.111.100

Disclaimer: I am actually not familiar with dnsmasq, but the DHCP example is directly from my system.


can I combine free space unmounted partition ntfs to ext4 linux partition?

Moving the edges of partitions can have potentially destructive consequences for data stored on that partition.  Have viable backups.

It is easier to move the ending edge of a partition outward than it is to move the beginning edge of the partition, so it would be easier if you were attempting to expand a lower number partition into space formerly held by a higher number partition (given the usual order of partition creation).

Finally, when you expand a partition you expand that partition into unformatted empty space.  Thus you would be required to remove the NTFS partition to make that space available for expansion by the EXT partition.

These are likely the most important considerations.  With this being said and granting the caveats outlined above, the answer to your question is yes you can expand one partition to take-up the space formerly held by a neighboring partition.  (Though given all of this you may discover a different course will prove better for your specific situation.)


It is not recommended to continue PHP 5.6, which is EOL Since January 2010!

But you can install PHP5.6 from a PPA:

sudo add-apt-repository -y ppa:ondrej/php
sudo apt update
sudo apt install php5.6

source: https://askubuntu.com/a/762161/34298


I need help with Chown command . I broke my ubuntu

I'm afraid I have some BAD NEWS for you...

Refer to How can I recover from chmod -R a-wrx / command?

Basically, those two dots at the end of your command began a Recursive CHMOD of everything starting at one level up from wherever your current working directory (CWD) was.  That's "OUCH" and is usually very bad.  If your CWD was in your "~home" folder, there are symlinks in your ~home directory that are pointing to scripts and programs in system folders and these now have their permissions changed IN THE SYSTEM FOLDERS! Once CHMOD was in the system folders, I assume it recursively changed all the permissions of everything there as well since it appears from your description you've effectively locked your operating system.

I assume you've hosed your system and a backup of your important files is in order. I am not aware of a quick and simple solution to get all your permissions back the way they were unless you've made an image backup of your system prior to issuing that disastrous command.  Look at "Aaron's" answer as well at that referenced posting - he refers to a tedious method that perhaps will provide a starting point - if you're a patient person and want to learn far more about your operating system than you bargained for. You can also refer to a similar question on ServerFault.com - read all the suggestions...

But, in general, recovery is mostly a lost cause and you may never get your system back the way it was. Save your personal data, re-install your operating system, and chalk this up to another of life's lessons learned.


How can I limit battery charging to 80% capacity?

The charging thresholds are, very unfortunately, firmware and vendor specific.

The Lenovo ThinkPad user is luckily provided with a solution outlined on ThinkWiki.

It basically says that you would have to install and load the tp_smapi kernel module:

sudo apt-get install tp-smapi-dkms
sudo modprobe tp_smapi

and write the desired charging thresholds to virtual files in /sys/devices/platform/smapi:

echo 40 | sudo tee /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 80 | sudo tee /sys/devices/platform/smapi/BAT0/stop_charge_thresh

Then it will stop charging once it reached 80% and only start charging when it drops below 40%.

Toshiba and others might have a similar kernel module that exposes firmware functionality to the /sys or /proc space, but it is very unlikely for patent issues. For the same reasons, an application that could handle this would be either Thinkpad- specific or only address a few select vendors.


13.04 unity desktop crashes when nvidia-current is installed

Shutdown the computer
Boot into Recovery Mode --After BIOS load, hold down Shift key to access the grub menu --Once in grub menu, select the entry ending in "(recovery mode)"
From the next menu selected option to enter Root Session
At the root session, execute command
mount -o remount,rw /
to remount the filesystem as read-write
next

apt-get purge nvidia*

Then

rm /etc/X11/xorg.conf

That should do it and get you back to open source driver.


what file systems are compatible with Ubuntu 20.04.2 LTS

If the external drive will be used only by Ubuntu, then stick with the file system you use on the host machine, whether it’s ext4, Btrfs, or zfs. Ubuntu supports a lot of file systems for compatibility reasons, but sticking with something that is Linux-specific will save headaches in the future.


How to close sftp connections made by dolphin?

You should be able to type in the username, e.g. jondoe, into the url, like this:

sftp://jondoe@myserver.com

However, my attempts with sftp failed. I used fish:// instead to get it to work. Like this:

fish://jondoe@myserver.com


Ubuntu server 10.04 ESXi 4 VMTools install?

When you use the "Install VM Tools" action a virtual media should be available from the cdrom from the guest OS (the cdrom is attached to the vmware tools iso).
Because you are using a server install (no cdrom auto mount magic) you will need to manually mount the cdrom:

sudo mkdir /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom

Check the contents from /mnt/cdrom, there is a binary that you will need to execute to install the tools (I don't have vmware installed right now to check).


GNOME 3 on 11.04: Doesn't work. How to troubleshoot?

Open a tty, stop gdm (sudo /etc/init.d/gdm stop) (if you are using it) and start X (startx) from the tty. It may give you more info about what is happening. Probably it's a driver problem.
Another thing you could try is logging as a different (new) user. Maybe there is some config conflict around. If you are using ATI video card, then shift to open source drivers, because actually G3 is not compatible in almost every case with fglrx.


Monitor extremely dark after installation of 16.04 LTS

Worst case scenario IS that your PC has defective Hardware, Try doing a fresh install (not an upgrade, those never work, matter of fact the last time i did an upgrade i lost all my data, never trust upgrades to be safe) with a usb stick. if the problem persists i suspect your monitor light bulb is either burning or some kind of damage has been done.
hope this helps


How do I configure sound with PulseAudio and Multiseat?

I've spent many hours researching online, testing various setups and talking to Pulseaudio devs. The bottom line of it all is that running pulseaudio in normal user mode will allow only the active session as marked by ConsoleKit to access the audio hardware. Since current ConsoleKit is only able to mark one session as active at a time, this means that we must run a system-wide instance of pulseaudio. The upside: Each seat can have individual audio. The downside: ALL audio hardware is available to any user and can be manipulated AT WILL. This is not an ideal situation for an internet cafe or other public setting where security is a real concern. Keep this in mind when creating your site security policy. It might be prudent to restrict pavucontrol execution to admins only.

As always, make a backup of all of your default config files. If you have tinkered with your configs without backing up, you may retrieve the pulseaudio package with apt-get -d install pulseaudio. This will download the package (to /var/cache/archives/apt) only and you can extract the contents to retrieve the default configs. Be aware that client.conf is not included in there.

To run pulseaudio as a system-wide daemon, we need to edit a few files.

1.) /etc/default/pulseaudio

    PULSEAUDIO_SYSTEM_START=1

2.) /etc/pulse/daemon.conf - See man pulse-daemon.conf for more
    information.

    daemonize = yes
    local-server-type = system

3.) /etc/pulse/client.conf

    autospawn = no

We also need to add users to the pulse-access group.

sudo usermod -a -G pulse-access <username>

Now that all users are able to access the audio hardware, we need to select the hardware each user will use. This can be done using pavucontrol. Please be aware that the settings are stored PER USER and will not follow the seat. If users switch seats, you will need to re-select the desired audio hardware.

Additional Comments on Pulseaudio

I had hoped that there would be a more elegant solution for getting per seat audio working. Using a systemwide Pulseaudio in multiseat has many drawbacks and is not entirely stable between reboots. I had attempted to start a systemwide instance and have user instances connect to it as a server via localhost. That doesn't seem to work since when pulseaudio --start is run it sources daemon.conf.

Regarding ConsolKit

The issue we see when running a normal per-user pulseaudio is that one seat has access to the hardware and all others have Dummy Output. This is due to ConsoleKit not being entirely seat aware. CK considers all of our seats as sessions of seat1 and can only mark one session as active. This fact can be seen by running getfacl /dev/snd/*. The thought occurred to me that we might be able to edit the acl of the appropriate /dev/snd/ files based on which $DISPLAY a particular user is using. This is an option that I have not explored. Please consider contributing to the multiseat cause by exploring this hypothesis and editing the document with your findings.

Multiseat branches for ConsoleKit, GDM-2.3 and GDM-3.x do exist which should provide for automatic multiseat functionality.

Additional Notes

1.) It would be wise to also disallow users from loading modules DISALLOW_MODULE_LOADING=1.

2.) autospawn = no is not entirely necessary as seen in my example file. It causes no issues.


Cannot run Ubuntu install dual boot from USB on X1 Carbon w/Win8.1 - kernel panic, VFS

It came out the problem is with the USB stick - after using Windows recovery and reverting all the disks to original state, reinstalling Windows etc. it still appeared. Then I just recreated installation USB on different USB drive and it started to work.

I don't know what was the reason this drive was corrupted, but in similar situation using another USB drive should be one of the easiest bets.

Ps. That original USB drive had two partitions at some point: one for SWAP. Maybe it somehow interferred with installation.


Where can I find a good Finance Manager for Xubuntu 11.10?

I personally have never used SPB Finance, However I use gnucash for basic financial tracking. It pretty much has all the necessary functionality one would need to track money and can import your bank statements as well as generate basic graphs

#sudo apt-get install gnucash

if you don't like it...

#sudo apt-get purge gnucash

:)

You could also try the forums over at http://www.ubuntuforums.com and ask there, see if anyone has a better suggestion.


3D acceleration is not possible for Ubuntu as virtual machine by VMware Fusion?

The 3D graphics support for Linux guests is not available currently.

However, there is good news soon.

As you may be aware VMWare release future versions of their software for evaluation by testers and developers.

The "tech preview" of vmware fusion promises:

  Rendering and graphics correctness issues on all platforms and
  applications Linux 3D desktop experience, particularly Ubuntu 12.04
  LTS and recent OpenSUSE releases, which should work out-of-the-box
  Linux 3D application graphics correctness and performance

In the current iteration of the tech preview notes:

  Unity mode has been disabled for Linux and Windows 8 virtual machines in this release.

However, given the first statement - the Unity issues could/should be resolved in later beta versions of the software.


Your wireless is attempting to roam from among several access points, each with the same EESID, NU-Student. You are connected, at the time the wireless script was run, to one with a signal strength of 37, although nearby, there is another with a signal strength of 70. Your message log also shows disconnects and reconnects to several different access points all named NU-Student.

I suggest you do:

sudo iwlist wlan0 scan

Find the MAC address of the NU-Student access point with the highest signal strength and ask Network Manager to bind to it only by editing connections and specifying the MAC in the box 'BSSID' like this: http://i.imgur.com/Z2nHg.png Of course, specify your details.

Next, I'd delete the erroneous connection profiles:

sudo rm /etc/NetworkManager/system-connections/NU-Student
sudo rm /etc/NetworkManager/system-connections/NU-Student\ 1

Then restart Network manager:

sudo service network-manager restart

Any improvement?

You might also try a driver parameter:

sudo modprobe -r rtl8723ae
sudo modprobe rtl8723ae swenc=1

If it helps, make it permanent:

sudo -i
echo "options rtl8723ae swenc=1" >> /etc/modprobe.d/rtl8723ae.conf
exit


when I use matlab command , matlab does not open rather it shows this error

there is an answer to probably the same question on another forum.

I will report it for clarity and if someone passes through this question:

To resolve this problem, open a Terminal window and use the commands below depending on your OS architecture:

For 64-bit Ubuntu:

sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6

For 32-bit Ubuntu:

sudo ln -s /lib/i386-linux-gnu/libc.so.6 /lib/libc.so.6

For using the Student Version on 64-bit:

sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib

Afterwards try starting MATLAB again.

Let me know if this works for you.


Error installing Cinelerra GG on Ubuntu 20.04

We got this notice here at Cinelerra-gg.org and will try to do it ourselves to see if there is a problem.
UPDATE:  we had no problem installing it.  We believe that you probably just did not edit the file     /etc/apt/sources.list   as shown further down in the instructions.  You have to include in that file the line:
deb [trusted=yes] https://cinelerra-gg.org/download/pkgs/ub20 focal main
If that line in not in the file or correctly in the file, fix it. Then:
sudo apt update
sudo apt install cin


It is a bug but these messages are harmless. It is related to NFS and I found this description regarding the same problem (though related to Redhat):

  The daemon rpc.idmapd scans the /var/lib/nfs/rpc_pipefs/nfs/ directory
      periodically looking for NFS client mounts to communicate to. The daemon
      tried to open communication with a client mount but it disappeared in
      between looking for directory entries and opening them. NFS mount was
      umounted just before rpc.idmapd tried to communicate with it. This
      behavior is usually seen when autofs is configured on the system.

This needs to be reported here: http://linux-nfs.org/wiki/index.php/Reporting_bugs


This is in the ubuntu bug tracker with no work-around as yet (2018.Mar.27) https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1707451

I'd rather have made this a comment but I'm not allowed yet!


The issue is due to Numlock activating, resulting in part of the map being interpreted as a numeric keypad, and the rest doing nothing. At least with Apple compatible keyboards, the solution is to press Fn+F6 a couple of times to toggle Numlock off. You should also look into editing /etc/numlockx to disable Numlock by default. There is also a Gnome or X tweak mentioned at Apple Keyboard – Numlock on Apple Wireless Keyboard.


Is the "gpilotd" daemon running? It seems that some environment variables may still be missing that gpilot-install-file needs to do its work. Compare the output of the env command in your Desktop terminal against env run from cron. (You've already identified one required difference: the "DISPLAY" variable.)

Sometimes things like the D-Bus service environment ("DBUS_SESSION_BUS_ADDRESS") are needed, etc. Try defining things until you've got it working. To extract these variables from your running Desktop session, you can read them out of /proc:

xargs -0 -n1 < /proc/$(pidof gnome-session)/environ | grep what-you-need


How to install .deb files the old fashion way?

Yes, Ubuntu 7.10 used GDebi for installing .deb files.
Just install GDebi (GTK) from the software centre and set it as the default application for handling .deb files.


Firmware for Intel wireless drivers (`iwlwifi) should be already packaged in the repos.

sudo apt-get install firmware-iwlwifi

should do it. You may need a reboot for installation to take effect.


Ubuntu 17.10 system freezes while playing World of Warcraft

I know it is a very old post but I might have some info to help someone down the line. I had similar problems playing games on wine (either plain wine or via playonlinux).
How to do this might change based on the desktop environment you are using, and even graphics driver options. However what worked for me on KDE and AMD Radeon Vega 64 GPU (open source drivers on Kernel 4.15+) was to:

Disable "Tearing prevention ("vsync") on KDE compositor options
Disable "Allow applications to block compositing" on KDE Compositor options
Other options on KDE compositor options: Enable compositor on startup enabled, scale method accurate, rendering backend OpenGL 2.0.
On playonlinux, make sure GLSL is enabled
If the above is not enough, from the wine game check if you can limit fps to monitor refresh rate, and try to toggle vsync options on and off.

Please note, if you are not using open source drivers, you might need to check and change options on your AMD or NVIDIA control panel as well.

Cheers,
il vipero


I had similar problems with an Acer D270. The graphics were laggy and unacceptable. My solution was to switch to a lighter weight distro without 3d effects. Both Lubuntu and Xubuntu will work well with your system.


You're not sorting only by the third field. If you don't specify both start and end fields, sorting is done using the start of start field to the end of the line. From man sort:

KEYDEF  is F[.C][OPTS][,F[.C][OPTS]] for start and stop position, where
F is a field number and C a character position in the field;  both  are
origin 1, and the stop position defaults to the line's end.

So the :... is also included in the sort.

Use -k3,3 if you need to sort only on the third field:

% sort -t: -k3,3 foo | grep '^n'
ntp:x:38:38::/etc/ntp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
nickson:x:999:504:instructor:/home/SI/nickson:/bin/bash

With GNU sort you can verify what's happening with --debug:

$ sort -t: -k3,3 foo --debug | tail
sort: using ‘en_GB.UTF-8’ sorting rules
______________________________________________
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
          __
_________________________________________________
nobody:x:99:99:Nobody:/:/sbin/nologin
         __
_____________________________________
nickson:x:999:504:instructor:/home/SI/nickson:/bin/bash
          ___
_______________________________________________________
$ sort -t: -k3 foo --debug | tail
sort: using ‘en_GB.UTF-8’ sorting rules
______________________________________________
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
          _______________________________________
_________________________________________________
nickson:x:999:504:instructor:/home/SI/nickson:/bin/bash
          _____________________________________________
_______________________________________________________
nobody:x:99:99:Nobody:/:/sbin/nologin
         ____________________________
_____________________________________

The dashes immediately below each line shows the compared section.


Yes! I have an RX 480 in the x16 slot and a GT 710 in the x8 (maybe x4) slot. WHen I rebooted with the RX 480 replacing a GTX 750 Ti, no nvidia drivers were loaded in the software update list, and the RX worked fine.

Rebooting after adding the GT alongside the RX card, the nvidia drivers loaded again, and the RX gave me no trouble.


Ubuntu 18.04.1 LTS Cloudflare DNS Not working

I also encountered that problem when I tested Ubuntu 18.04 LTS.

Ubuntu has a new system to configure the network: Netplan

To configure DNS you must edit the file in the /etc/netplan directory with the name 01-netcfg.yaml

There you should put the following key, under the entry of your device ID.

nameservers:
          addresses: [1.1.1.1]

You can see in the example where the mentioned keys are located, and you can look for more information in the link to Netplan

Example copied from https://netplan.io:

network:
  version: 2
  # if specified, can only realistically have that value, as networkd can not
  # render wifi / 3G.
  renderer: NetworkManager
  ethernets:
    # opaque ID for physical interfaces, only referred to by other stanzas
    id0:
      match:
        macaddress: 00: 11: 22: 33: 44: 55
      wakeonlan: true
      dhcp4: true
      addresses:
        - 192.168.14.2/24
        - 192.168.14.3/24
        - "2001: 1 :: 1/64"
      gateway4: 192.168.14.1
      gateway6: "2001: 1 :: 2"
      nameservers:
        search: [foo.local, bar.local]
        addresses: [8.8.8.8]
      routes:
        - to: 0.0.0.0/0
          via: 11.0.0.1
          table: 70
          on-link: true
          metric: 3
      routing-policy:
        - to: 10.0.0.0/8
          from: 192.168.14.2/24
          table: 70
          priority: 100
        - to: 20.0.0.0/8
          from: 192.168.14.3/24
          table: 70
          priority: 50


Configure network interface for direct connection

The solution is to configure both sides as a static connection.

On the headless side in /etc/network/interfaces put:

auto eth0
iface eth0 inet static
    address 192.168.1.100
    gateway 192.168.1.254
    netmask 255.255.255.0

On the Ubuntu desktop side, configure a static connection in the network-manager, but with a different address (in the same network range).


Clicking the GUI (graphical user interface) power-off button solved a similar issue for me.

Clarification: That is, open the drop-down menu (upper right in Ubuntu 18.10 - I updated OS in the meantime) that contains wifi, screen dimming, battery status etc., and click the button that'll turn off your computer.

I guess either the screen dimming or the threat of immediate shutdown caused Ubuntu to re-evaluate its display decisions :-)

For me, the issue was that I had put my computer to sleep with night light on, and opened it again many hours later when night light should be off. The built-in display behaved as expected, but the external display was stuck with night light on. Flipping night light on & off didn't help, and mirroring displays didn't help, but threatening to turn the computer off did :-)
This is for a Thinkpad connected to a Dell display through a dock, Ubuntu 17.10.


How do I keep the Ubuntu One sync daemon from automatically starting up?

First, open the U1 Program:

Then, you can either disable it at startup or temporarily.
To disable at startup, go to the settings tab and uncheck the box saying "Connect automatically when the computer starts":

To disconnect temporarily, simply click on the disconnect button at the top right of the U1 program:

You can always turn it back on when you're done.


sudo ./Installer_LPCXpresso_8.0.0_526_Linux-x86 --mode console

Resolved my problem.
See also https://www.lpcware.com/content/forum/lpcxpresso-8-ubuntu-1404-64-bit


Bluetooth Not Turning On Dual Boot alongside windows 10

I  have faced a similar issue with 20.04 LTS on Lenovo Thinkpad hardware in the past and resolved using Blueman.
Steps to follow-

Make sure Bluetooth is not hardware/ physically blocked
Install Blueman from repo or, from Git (https://github.com/blueman-project/blueman)
Run it

It should resolve this issue.


There is a bug already opened for it in Launchpad, that is to be released soon:

https://bugs.launchpad.net/unity/+bug/842566


You can create the swap in an extended partition and come around that 4 partition limit this way.


Arrows do not work, all I see is ^[[A ^[[B^ [[C ^[[D

Those arrow keys work if you use an appropriate shell like bash.

The $ is a a clear indicator you are not using one of them (otherwise you would, by default, see more than just a $ as a prompt).

You should have done something like this:

useradd -u {username} -d /home/{username} -s /bin/bash -p {password}

You do not have to recreate the user though; Afterwards you can change the shell (permanently) when logged into the user:

chsh -s /bin/bash

There are more shells. If you feel adventurous change bash to zsh
Also have a read on useradd and adduser: https://askubuntu.com/a/381646/15811 (you should use adduser)


Changing python version without breaking software center

You shouldn't change the symlink for python to point to Python 3 as you have already seen its consequences. And I would recommend you to get into the habit of calling Python 3 programs with python3 as that would involve the least amount of trouble later on.

But if you insist on calling Python 3 on your Terminal using python, you may create an alias for it. Remember, alias is different than symlink. Edit ~/.bash_aliases file (create it if it doesn't exist) to add the following in it:

alias python='python3.2'

Then restart your terminal and you would be able to execute Python 3 by calling python. This wouldn't break anything as changing the symlink does.

You may even add aliases like alias py3='python3.2' and then call py3 to run Python 3. This is even shorter and less confusing.


How to register downloaded podcast mp3 in Banshee?

Thanks to information from MichaelMS, I google Banshee database and found out it is using sqlite. So I opened it up with Squirrel Client and to register downloaded podcast to Banshee, you need to update PODCASTENCLOSURES table.

The columns you need to update are:

LocalPath  - this point to where the physical location of where the downloaded podcast
DownloadStatus - I set it to 3, assuming this meant downloaded..as that is what other downloaded podcast value that I'd seen.


You must disable the Xfce4 energy manager to read the settings of the logind.conf file. Remember to restart the system every time you modify and save the logind.conf file.


Docker installation failed on ubuntu-16.04.3-server-amd64 on VMware

You need to modify the package configuration, since you're using server, Im afraid you have to modify /etc/apt/sources.list.

sudo nano /etc/apt/sources.list

Locate any line containing cdrom, once you've found it, you can either comment/delete the line. For example on my 14.04.

From

deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release i386 (20140417)]/ trusty main restricted

To

# deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release i386 (20140417)]/ trusty main restricted


which is better, "Install ubuntu alonside windows" or "something else"

If you see a tutorial suggesting manual repartitioning for a simple alongside install, it's probably from the 80s and you should back away slowly before thoroughly ignoring it.

Don't get me wrong, you can spend hours repartitioning everything manually if you want to or if you have particularly odd requirements, but it's going to be doing exactly the same thing as the installer, only I trust the installer more than a human not to make a silly mistake.


display not working after Ubuntu splash screen

In the recovery terminal, or if you can connect remotely, try adding nomodeset to your grub configuration:

sudo sed -i "s|quiet splash|quiet nomodeset splash|g" /usr/share/grub/default/grub
sudo update-grub

This will change the line in /usr/share/grub/default/grub

From...

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

To...

GRUB_CMDLINE_LINUX_DEFAULT="quiet nomodeset splash"

This instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.


FFmpeg streaming to youtube help needed for kids radio project

Streaming the file in a loop with desktop audio to youtube works. Thanks to all!

ffmpeg -re -f alsa -i default -re -stream_loop -1 -i "/home/pi/Documents/Youtube/video720p.mp4" -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-xxxx

ffmpeg version 4.1, if you have a older ffmpeg version the loop command may not work...


How to understand configuration files syntax?

The configuration file formats vary between different configuration files. You may want to conduct a google search for a tutorial on the format you wish to use. For .conf files in /etc/systemd, I found this wiki page: https://wiki.archlinux.org/index.php/systemd


Installing desktop in Ubuntu 14.04 server

You want the recommended packages for ubuntu-desktop .

sudo apt-get --install-recommends install ubuntu-desktop

Or else if that doesn't work due to ubuntu-desktop already being installed...

sudo apt-get remove ubuntu-desktop
sudo apt-get --install-recommends install ubuntu-desktop


Can't not create, delete my partition on ubuntu 18.04 tried chown and chmod but not work

vanadium gave the solution in a comment (which was confirmed to work).

Based on the information in the question, it was possible to discern that the partition was formatted NTFS:

  This is an NTFS formatted partition. NTFS is the format of MS Windows.
  Have it checked under MS Windows first of all. That likely will
  already solve the issue.

vanadium Nov 29 at 7:45

More specifically:

  Use the disk checking tools (one of the system tools) of Windows to
  check and repair the drive. ntfs is a proprietary format, so you need
  Windows to check that drive.

– vanadium Dec 3 at 8:33


Jstock: /usr/bin doesn't exist even if it exists

Changing the line _TMP="$JAVA_HOME/usr/bin to _TMP="$JAVA_HOME/usr/bin/java works for me.


How to check who opened files on UBUNTU 18.4

The information you're looking for isn't there.

As you saw it open, the files was opened by your user account. There is no logging of which physical person used the computer - except for the user account logs.

Furthermore, if anyone hacked into your computer, it's highly unlikely that they would open files in this manner. Do you have for instance a cat that may have had a walk on the keyboard?


How can I have Wicd connect to my wireless network without having to enter a password?

I assume that you're using the wicd-gtk package. It has two programs in /usr/bin:

/usr/bin/wicd-client
/usr/bin/wicd-gtk

The first is a wrapper for the second (and wicd-cli).

wicd-gtk recommends gksu, and the Arch Wiki suggests that it might use graphical sudo programs. So I think this problem can be solved using an appropriate NOPASSWD line in sudoers, since pkexec isn't involved.

You can add a file to /etc/sudoers.d with contents similar to (doctorow being your username):

doctorow ALL  = (ALL) NOPASSWD: /usr/bin/wicd-client, /usr/bin/wicd-gtk

The accepted answer to How do I run specific sudo commands without a password? has the steps required to create such a file.


problem loading and intel pro/1000 NIC in Ubuntu

After some trying I found a solution. as stated in dmesg, the e1000 driver failed to verify the NIC's NVRAM checksum, so it rejected the hardware MAC and assigned zeros to the MAC. so I just assigned a valid MAC to the interface, this way the interface enabled.
the MAC assignment could be done in two ways:

either by ifconfig:

/etc/init.d/networking stop
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
/etc/init.d/networking start

or through /etc/networking/interfaces:

hwaddress ether xx:xx:xx:xx:xx:xx


Can I copy Ubuntu from my computer to a flash drive?

No, you'll have to download Ubuntu to the flash drive, then add the files separately.

http://www.ubuntu.com/download/desktop

Visit the above link to download the 32 or 64 bit distro, then just use a separate USB stick for the files you want to add. Or install the distro, then use the same USB to transfer the files after the installation is complete.


My processor is not detected intel core 2 duo

As fas as I know everything is perfectly OK in your system. I have tried a couple of systems (my U2300 laptop, a Core2 server and a Pentium 4 server) and uname returns unknown in all, but all correctly identified in /proc/cpuinfo and all use full cores.

If you want VirtualBox to use more than one core you will need to give the virtual machine access to those cores in System->Processor tab in the virtual machine configuration screen.


OS only reports 4.1GB of RAM and not the 6GB that is installed... why?

Check in the BIOS to see if there is a setting for 32-bit & 64-bit HPET timer. I've found when the HPET is set to 32-bit, it tends to not address all of the memory available. I don't know how a timer can play in this, but make sure it is set to 64-bit. I could be reaching here, but it's worth a shot.

@jpyper on Twitter.


xserver-xorg-lts-quantal will remove many packages

The problem is many software packages have a dependency to lbgl1-mesa-glx which is not compatible with xserver-xorg-lts-quantal. See those listed by waterloo2005: 0ad (game), blender... Those are apps requiring OpenGL.

I am a member of the freecad-maintainers team on Launchpad and our precise FreeCAD packages are not compatible with the lts-quantal packages because of that. When one wants to install it on a fresh Ubuntu 12.04.2 install, the package manager wants to remove the whole lts-quantal stack!

(...)

Edit: Upon some research I think this is caused by a build dependency error made by the package maintainers. Our freecad package has a build-dep on libgl1-mesa-dev which maybe should be changed to libglew-dev. I will test this tomorrow. If I'm right this should be reported as a bug to each package that "wants to be removed"...


Ubuntu 12.04.1 LTS Init Process using all swap space and free memory

Not sure how much physical memory (pinned) is configured on your machine, but mysqld process (per your ps command output) indicates that it is using 8.3 GB of memory (RES) which is rendering your machine memory-exhausted (swap fully allocated). You may want to investigate your MySQL DBMS. Cheers


ATA Secure Erase - password set - not locked

My initial intention was to merely comment, but then I was told my reputation isn't high enough to do that. Anyway, let me begin by clarifying that I am by no means an experienced Linux user. That said, I did actually manage to tackle a similar issue I was facing up until the day before yesterday.

In my case, I did a reboot before long, which I guess you too have done by now, and that rendered my ssd not only security enabled but also locked.

I wouldn't know about the security-disable command, but the security-unlock appears to be a bit buggy (can't say I understand much of that).

What worked for me was to issue

sudo hdparm --user-master m --security-erase "" /dev/sda

NOTE: Mine is a Kingston SSD, in which case the master password is apparently set to NULL by default. Depending on the manufacturer you should replace it with the appropriate master-password. I've found a potentially useful list here, which I have, however, not tested, since Kingston was not included and I had to look elsewhere.

NOTE 2: The aforementioned command will obviously erase all data from your disk, including whatever user password you have set, setting security back to not enabled.

NOTE 3: I have been told that I should not try this more than 5 times per power cycle. I've also been told that rebooting may not be enough to enter a fresh power cycle, although in my case, it seems to have been.


to achieve the requirements in the Question for default Ubuntu 18.04

need to edit the below files:

for changing grub color: /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.grub
for plymouth color: /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.script
for login-screen background color: /usr/share/gnome-shell/theme/ubuntu.css

ubuntu-logo.grub my file content. replace the values to 0,0,0,0; for black

if background_color 66,48,228,0.5; then
  clear
fi

ubuntu-logo.script some of my file content. replace the values to (0, 0, 0); for black

Window.SetBackgroundTopColor (0.16, 0.00, 0.12);     # Nice colour on top of the screen fading to
Window.SetBackgroundBottomColor (0, 1.02, 1.02);  # an equally nice colour on the bottom

ubuntu.css my file edited content at around line number 1814

#lockDialogGroup {
  background-color: #000000; }

after editing the files, save & close all files..

then run sudo update-grub

Reboot to see the change.


bs stands for block size. which mean size of block taken by the dd command.
Ideal bs refers to your file system files.as u make bs larger as you move faster in cloning.

and yes it's better to use a live CD to not clone those temp and other unneeded files

The size of the destination must be the same or bigger (you can still clone to smaller hdd but it need much more configuration and fixing issues you'll face)

To restore the clone easily reuse the dd tool again. now the laptop hdd will be the destination

To clone to smaller hard disk refer to How to clone to a smaller harddisk?

Out of dd you can use clonezilla which is a great application for cloning. download the iso file and use it as live CD . It will be much easier for newbies to try


If the goal is to connect to the internet through VPN and you also have access OpenVPN server side then you might want to check the OpenVPN server conf file. There should be options starting with push "dhcp-option DNS, try changing DNS servers to something else, example OpenDNS, whis are 208.67.222.220 and 208.67.222.222.
Also after making changes in server conf you have to reload the service

    sudo service openvpn reload


Desktop font changed suddenly, yet font size in tweaks at default values

Going to Settings, then Screen Display and select 'turn on fractional scaling' worked for me.
Note that the actual scaling remained at 100%, but changing that option seemed to make the difference.
No idea what the root problem is, but another thread said a bug has been identified after a recent update: Ubuntu 20.04 interface font too small after restart, even with high scaling factor


Dell inspiron N51100 black screen after login

Open terminal by pressing Ctrl+Alt+F1 and then add the following commands:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:unity-team/staging
sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo apt-get install unity

and reboot, hope it will work.

If it doesn’t work then click here for further workaround
and
 here for wiki how.


No Permissions Button in gnome software xubuntu

Sadly I think I am going back to Windows everything is such a pain to accomplish here.  I just installed gnome desktop and it took forever to get the desktop icons enabled but I figured it out.  The icons show up like generic document icons and when you click them they fail in error.  Under the desktop folder they look and work fine.  Was going to re-add them to desktop which in windows is as easy as dragging or right click create shortcut.  In gnome apparently its like go under the bed find that old box..and don't forget your papermate pen in case you get trapped under the bed cuz it even writes upside down. Then use this tweak tool and add these commands to the terminal window... then do more reasearch for about an hour and voila a Shortcut. grrr.  I'm sad to go was excited about this OS but I cannot be spending an hour of time every time I want to customize something that should take a few seconds.  Thanks again for all the help you gave anyways it was very appreciated.


'WindowsBackend' object has no atribute 'iso_path' error when installing from CD

I found a Question on Launchpad, that seems fitting to your problem.
You may have a look: https://answers.launchpad.net/wubi/+question/175550


How do I (help) translate not-yet-localized text in non-English versions of Ubuntu?

According to the official site you may help translating Ubuntu via Launchpad:

  If your first language is not English but you have strong English skills, you can make a huge contribution by helping to translate Ubuntu applications into your first language. Even if you just translate a few lines you can make a difference to someone in your own country who is learning about computers and free software.

  Translate software in Ubuntu into your language using Launchpad. Join the Ubuntu-Translators mailing list to stay in touch with other Ubuntu translators.
  Translate documents written by the documentation team. This can also be done using Launchpad
  Discuss translation, fonts and other issues with your local community team.


Ubuntu 12.04 NVIDIA card overscan on HDMI HDTV

xorg.conf cannot be edited without root permissions. To edit it, do this:

Press Alt+F2. This will open the "Run Application" window.
Type gksu gedit /etc/X11/xorg.conf and press Enter.
Enter your password when prompted and press Enter.
gedit will open with xorg.conf.
Make your modifications and press Ctrl+S to save.
Reboot.


How can I copy quanta from 11.04 ubuntu to 11.10 install?

Earlier

A link: Quanta plus not supported?

KDE 3 version of Quanta

The Quanta is depending the deprecated KDE 3.5 libs /2/. They are removed from the 11.10 repositories /1/. You need to get them back.

KDE 4 version of Quanta

The development of the new version of the Quanta seems to have stalled.

KDE 3.5 Desktop

The Trinity /3/, /4/ is offering the KDE 3.5 desktop and support to the "old" KDE 3 apps.

A Quanta installation example

http://www.kubuntuforums.net/showthread.php?57703-Need-help-to-find-a-WYSIWYG-Web-editor&p=290490#post290490

Links:

https://bugs.launchpad.net/ubuntu/+source/kdelibs/+bug/794513
http://packages.ubuntu.com/natty/quanta
http://www.trinitydesktop.org/
http://tech.slashdot.org/story/11/11/02/1726228/kde-35-fork-trinity-releases-first-major-update


How do I get into recovery mode on ubuntu 14.04 if the option not showing

If recovery mode option does not show up in boot menu, highlight boot option ubuntu in grub and hit E on your keyboard.

On the next screen, replace the line

Linux /vmlinuz-3.13.0-44-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash $vt_handoff

with

Linux /vmlinuz-3.13.0-44-generic root=/dev/mapper/ubuntu--vg-root ro recovery nomodeset

Then hit F10 to enter recovery mode.


There is an answer but you'll have to decide whether making your own annotations is more imporpant than GUI consistency: https://okular.kde.org/ (Obviously a KDE program, so it will install lots of dependency libraries and look ugly in a gnome environment, but it does what you need...)
Actually making your own annotations in Calibre?
No-go...


Will an external HDD encrypted with 17.10 be accessible with 18.04 after an upgrade?

You should have no trouble mounting the external drive as long as you have cryptsetup:

sudo apt install cryptsetup

Once this is installed you will be able to mount the drive via file browser.


Macbook 3,1: Wireless not enabled on startup after upgrade to 13.04

If b43 is working well, let's make it persistent. Please open a terminal and do:

sudo apt-get remove --purge bcmwl-kernel-source

It may not be installed; that's fine, just proceed:

sudo su
echo b43 >> /etc/modules
exit

Now does it work as expected on reboot?


Just go to the download page of Launchpad and download the new translations:

https://translations.launchpad.net/ubuntu-system-settings/trunk/+pots/ubuntu-system-settings/pt/+export

Furthermore, we normally don't give support on software still in development, so that's as far as it goes, sorry.


Get rid of the $2 unless you're assigning a variable 2=1 or something like that elsewhere, -l$2 will cause wget to output wget: --level: Invalid number  which will not feed into sed very well.

you can do:

wget -l 2 <address>

or

wget --length=2 <address>

you may also have interest in the no-parent option, which will prevent wget from traversing up the directory (n levels). This is an especialy  useful option when retrieving recursively, since it guarantees that only the files below a certain hierarchy will  be downloaded.

wget -np <address>


GRUB2 error: unknown filesystem from reinstall

Okay, talk about crazy. I tried another reinstall, this time doing the custom selection for choosing which partition to install to. Still no luck. Tried it a 3rd time, this time choosing a different boot option from the BIOS for the USB(there were 2 options for booting from the USB, one with UEFI in the name). Reinstalled again, once again choosing the manual selection for choosing the partition to install to. On this attempt, everything works great. Including all the sound problems I was initially having which prompted the reinstall. Just have to run boot repair again, as the windows option isn't booting in grub. Just leaves me thinking, what the hell...


Resizing Ubuntu ext4 partition using Gparted live dvd fails

Right click the partition you want to resize then first try to "unmount". After that you should be able to resize that partition.

For your issue: The partition you are trying to resize needs to be fixed first. Do as it says on that error message please. You should be able to resize after fixing the file system.


I need to install DYMO software for labelwriter 450, but i can't... any help?

To install Dymo 450 LabelWriter on Debian Systems - Ubuntu, Raspibian, you might need first:  (helped me to compile drivers, advice from : http://ubuntuforums.org/showthread.php?t=1502581 )

sudo apt-get install libcups2-dev libcupsimage2-dev gcc g++

Then you want to do install dymo linux sdk (both links work at 2016-05-14):

http://www.dymo.com/en-US/dymo-label-sdk-and-cups-drivers-for-linux-dymo-label-sdk-cups-linux-p--1
http://var.dymo.com/US/resources/sdk/linux/

Then you unpack it, compile and install driver:

./configure
make
sudo make install

Later I've added driver via cups web interface like any other driver, choosing right ppd file. (example project : https://www.hmazter.com/2013/05/raspberry-pi-printer-server-for-labelwriter and another: https://gist.github.com/gwpl/6d6c1457b4d1f6b778917a2f7c3c57fd ).

Finally, I share via network Dymo 450 LabelWriter(s) attached to Ubuntu and Raspibian with other Linuxes (including Archlinux) and I've found that to make printing via network (e.g. ipp:// and ipps:// ) to work, I need to schedule printing (of pdf, png, whatever) add -o raw to lpr command. You will see example of -o raw in https://gist.github.com/gwpl/6d6c1457b4d1f6b778917a2f7c3c57fd and https://askubuntu.com/a/748035/31300 .

Finally references for installing and using Dymo 450 under Linux:

https://www.hmazter.com/2013/05/raspberry-pi-printer-server-for-labelwriter
https://ubuntuforums.org/showthread.php?t=861781&page=6
http://www.taklischris.info/varietas/use-your-dymo-printer-on-ubuntu


How to write a Debian/rule to copy the file to its target?

Use debian/install instead. A debian/install containing:

foo /etc/init.d

Will cause foo to be copied to /etc/init.d relative to the package build directory.


Manually add "verimatrix view right" plugin in Mozilla Firefox on Ubuntu 20.04

I understand that you want to install an extension from a file. You can do this in Firefox (currently v83) using these steps:

Go to your Firefox Add-ons Manager: settings > Add-ons, or use the address about:addons.
Click on the gear icon on the right ("Tools for add-ons")
Select "Install Add-on from File..." and point it to your extension.

I could not find any other Firefox extension for ActiveX. :-/ Note that this a rather old technology developed by Microsoft, which is not even supported in the latest Microsoft Edge browser: https://en.wikipedia.org/wiki/ActiveX


14.04 installer, how to fix screen before booting it?

Try booting with nomodeset in the kernal options - this prevents the graphics driver from starting until the xOrg drivers are loaded, and may solve your issues.  This is a temporary procedure (it does not make a permanent change)

At boot time, hold down the right shift key so that the grub boot menu appears.

Press 'e' to edit the Ubuntu boot entry

Use your cursor keys to move to the line that ends with "quiet splash"

Change the "quiet splash" to read "quiet splash nomodeset"

press ctrl+x to boot using the temporary parameters.

If this resolves your issue, you should modify your grub files to match this setup.  The easiest way to do this would be to install grub-customizer


Best is the dd command as other alternatives including Startup Disk Creator often gives errors with newer versions of linux. The command is sudo dd bs=4M if=/path/to/.iso of=/dev/sdx && sync

Remember to unmount the USB and check the device name with lsblk command and change the sdx with appropriate device name in the command.