XRDP from Windows 10 to Ubuntu Mate 20 (Raspberry PI 4) - Error: Could not acquire name on session bus

After messing around with a lot of xrdp settings over the past few days - with no success in solving the problem, I found a workaround!
I saw a section in the blog post Ubuntu 18.04 – Detected issues with xRDP on Ubuntu 18.04 that described how the ability to log a userid in to both a (physical) "console" session and an RDP (Remote Display Protocol) session had been removed!  Here is specifically what it said:

It used to be possible to have the same user connected locally and remotely (even do the session where not the same).  This capability has been removed from some time now and we do not why and if it’s possible to implement this feature back (we have not checked that yet).

So after seeing that, I created a new userid and logged it in from Windows-10 using RDP, and it brings up a new MATE desktop perfectly now!
I'm still not sure why I was still getting a blank screen when I tried to login my RDP session directly as "root" earlier, but no worries - I didn't really want to do that past simple debugging anyway...  I still don't understand why I was able to logon to both my physical console and an RDP session on my 4GB Pi-4, but not on my 8GB Pi-4 in the first place - when both were running slightly different versions of Ubuntu MATE 20.04.x.  I'll have to try to diagnose that when I get my 4GB Pi-4 reconnected up again.
I hope this works for others and that at some point it may be possible to put out a better, more specific error message if an RDP logon is done for a userid that is already logged onto a physical console.  That would have saved a lot of time and trouble tracking down a workaround!


Netplan and NIC not working after changing DNS

You seem to be missing the important binary /usr/sbin/netplan.

Reinstall the netplan.io package: sudo apt install --reinstall netplan.io

If the package is not in your local cache, you will need to download it from http://packages.ubuntu.com and sneakernet it across to the affected machine.


Dependency problem while processing CUPS

Just prevent cups package from automatic upgrade,

sudo apt-mark hold cups

Now fix the dependencies,

sudo apt-get install -f


Wi-fi on Windows became very slow when I connect from Ubuntu

I'm no networking whiz, but I would see if this same issues occur with a different router or wireless network. Also verify that no unusual amounts of data or coming/going from either your windows or ubuntu computers. Obviously there is no inherent issue in Ubuntu that slows Windows computers on the same network, so without more specific details it's hard to give specific advice. After seeing this questions, you might want to investigate the specific wifi drivers that you're using: Wi-fi interferes with other devices when connected?


When i boot from an ubuntu usb drive i get the grub prompt

Ubuntu now loaded and running. It seems the iso image downloaded from Ubuntu caused the problem. For me the iso file for Ubuntu 20.04.1 LTS is bad. The image for Ubuntu 20.10 is fine. I will try to report this to Canonical


TL;DR: If you are running the 64-bit version of Ubuntu and you're invoking GCC as gcc (for C) or g++ (for C++), you need not be worried about the presence of libc-i386 on your system. A 64-bit system with a working compiler will produce binaries that link against the proper, 64-bit version of libc.

  Does libc6-i386 compile 64-bit executables?

libc-i386 doesn't compile anything because it is not a compiler. The C compiler is gcc. Both libc binaries and libc header files are important but passive in the build process. Code is preprocessed, including information from the header files. It is compiled. It is linked to libc. libc is not doing any of this, your build tools--principally gcc (in the sense that that's the command you most frequently run to make these things happen)--do this.

If you are running the 64-bit version of Ubuntu and you have a C compiler installed, then you already have the necessary libraries and header files to compile and link programs against a 64-bit implementation of libc. My guess is that this is the situation you are in. Note that the presence of a 32-bit libc does not prevent the 64-bit libc from being used by default unless you are cross-compiling a 32-bit binary (which you would generally know you were doing, as it requires a bit of effort, and you would probably not be invoking gcc as gcc). Therefore, you need not be worried about the presence of libc-i386 on your system.

If you are running the 32-bit version of Ubuntu and you want to cross-compile 64-bit binaries, then you'll need something that provides the 64-bit version of libc as well as header files for it. (Header files provided officially in Ubuntu are provided by packages whose names end in -dev.) However, while 32-bit binaries can run on a 64-bit operating system, 64-bit binaries cannot run on a 32-bit operating system. So unless you really need to cross-compile, it's usually best to build 64-bit programs in a 64-bit operating system.

Given the small amount of information you've provided, it would be difficult to give an answer more specific to your situation.


How do I develop software for Ubuntu that one could still use in future versions

Make it Open Source! That way anyone can jump in and maintain, fix, whatever, when for whatever reason you just can't anymore, although this can happen due to basic operability (stares at air apps...) some apps just need an extra hit with a hammer to keep them working.

Graditor: Packaged for 14.04 with little difficulty:

PPA named gradiator-mateo for Mateo Salta : Mateo Salta

Cuttlefish: someone already went through the trouble of making a ppa for it:

Install Cuttlefish in Ubuntu 14.04 or Ubuntu 13.10 | UbuntuHandbook

Nitrogen - is in the repository still, may just need some bug love. Seems to work as described for me (with the exception of having to turn off wallpaper in unity's settings)


How do I banish the "You have just inserted an Audio CD." dialog forever?

Prompting for action to perform upon inserting media is a behaviour of nautilus (the file browser program in GNOME Environment). To change this behaviour I would recommend the following steps:

Close all open File Browser windows
Open Places -> Home Folder. This will open the home folder in a new File Browser window.
Click Edit -> Preferences
Select the Media tab
For those media types where you don't want any prompt, select Do Nothing in the drop-down list.
Click Close

From next time, you should not get the messages while inserting media.


I was having the same problem on Ubuntu 20.04 with both mouse and keyboard connected to the same wireless USB dongle. During each session, the lag would appear after a little while, barely noticable at first, but could extend to several seconds over time.
I would describe that experience as "soul crushing" :)
I tried several solutions found here and there: nothing worked.
Turns out the solution was simply to use a USB 2.0 port instead of a USB 3.0 port.


Where is the dc=example,dc=com ldap dit?

I just checked slapd installation on a VM, and it does not create an example DN by default (which is a good thing):

$ ls /etc/ldap/slapd.d
cn=config cn=config.ldif

You can either add entries all the way from a base DN, or run sudo dpkg-reconfigure slapd, in which case, you will be greeted with these choices:

Pick No:

Use an FQDN (such as example.com, my.personal.site.org, etc.):

Do NOT enter dc=example,dc=com here.
Pick some name (e.g.,  "An example site", "My personal site", etc.):

When asked for admin password, you're resetting the password to cn=admin,cn=config. So it's not necessary that you use the password you set while installing slapd.
Use HDB unless you know otherwise. If you don't know what this is, HDB it is.

Since we don't have a database, pick yes.

Same here. Move it.

Do not allow v2 unless you know otherwise. If you don't know what this is, No it is.

A base DN for whatever FQDN you entered will be created.

You can repeated sudo dpkg-reconfigure slapd to reset slapd and start over from scratch at any time.


Video mode switch during 18.04 UEFI boot fails; suspending system fixes the problem

Adriaan has the answer. I was using the open source X.Org X server. When I switched to the nvidia-driver-450-server driver, which was the only one available that was labeled proprietary and tested, the system came up fine and switched graphics modes during boot just the way it should Thank you for that.


How to identify an existing NFS or CIFS mount, is a hard or soft mount?

Check the respective manpages. man mount.nfs points to man 5 nfs for details, which says:

soft / hard   Determines the recovery behavior of the NFS client after
              an  NFS  request  times  out.   If  neither  option   is
              specified  (or  if  the  hard  option is specified), NFS
              requests are retried indefinitely.  If the  soft  option
              is  specified,  then the NFS client fails an NFS request
              after retrans retransmissions have  been  sent,  causing
              the  NFS  client  to  return  an  error  to  the calling
              application.

So the default unless specified otherwise for NFS is hard.

And man mount.cifs says:

soft
   (default) The program accessing a file on the cifs mounted file
   system will not hang when the server crashes and will return errors
   to the user application.

And the default for CIFS is soft.


Lubuntu / Ubuntu - Unable to connect to wifi network

I suggest installing a dkms driver from ppa.

You need to connect to internet by wire and run these commands in terminal.

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

If you do not have internet connection, you can install it this way.

Download dkms and rtl8192cu-dkms. You can use another computer for that.

Place these files to your home folder in Lubuntu and run in terminal

sudo dpkg -i dkms*.deb rtl8192*.deb

If Lubuntu does not have some dependencies, you can copy these packages from installation media or download them form the same mirror as dkms deb.

Packages are installed by dpkg -i <file_name>.

Then reboot and try to connect.


In order to create a Logical partition, you must first create an Extended "partition". As stated in the forum post, an Extended partition is just a container, not an actual partition. This Extended container is what contains the Logical partitions.


Try changing the Hotspot wifi key to WEP or remove the security altogether and then see if your devices can connect.


Freshly installed system boots slow - unable to understand kernel messages

'Fixed' issues with purchase of a new mainboard. Thanks to everyone who helped.
Thanks for the downvote.


Install Numpy for Python-3.4.2 using Conda on Ubuntu 14.04.01 LTS

In conda, the package is just called numpy. Your conda environment should already have Python 3 in it. If it doesn't, you can create a new one with conda create -n py3 python=3 numpy and activate it with source activate py3.


Is there Ubuntu Unstable/Development, like Debian Sid (Unstable)?

There is no 'rolling' development version like Sid is.
You will need to keep upgrading/installing the in-development releases (right now it's Impish 21.10) during the dev cycles to get the 'latest development' track.  There's no singular name like sid or Unstable in Debian to constantly track 'development'.
However, there is no 'magical' way to continue to track the development or unstable branches after a release is complete - except to 'upgrade' to the development release via do-release-upgrade -d on that system.  However, that isn't guaranteed to work, so you'd have to do a reinstall with the ISOs for that development release to guarantee you're on that devel track, and repeat the same behavior every time a new release is being developed.


Screen locks before sleep on laptop lid close

Set systemd logind.conf settings

Invoke the Terminal by pressing Ctrl+Alt+T. Edit the systemd logind.conf file by typing:

sudo -H gedit /etc/systemd/logind.conf

Look for these two lines and change them to look like this:

HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend

You might have to change ignore or lock to read suspend. You might have to remove a leading #.

Save the file and quit gedit. After ensuring no applications (like word processor, spreadsheet, etc.) have files open type into the terminal:

sudo reboot


What are the equivalent bash cli commands for this graphical actions?

Currently there aren't any implemented commands to control Phonon from command line.There is a request on the KDE Bug Tracker:

http://bugs.kde.org/show_bug.cgi?id=212091
(Bug 212091 - Configure phonon from command line)
It seems it's not yet implemented until now.

Phonon page links:
http://phonon.kde.org and http://userbase.kde.org/Phonon


Ubuntu 20.04: Why does available disk space amount vary depending on what program I am using to view it?

It looks like Disk Analyzer treats reserved space as available, while others treat it as unavailable. 5% of any ext4 filesystem space is reserved by default, which, in your case amounts to 471*0.05=23.55GB.

I hope my answer is clear. :~)


I still don't know if the syntax of the /etc/resolv.conf file is correct, but I think I solved the DNS problems with the following command to flush the cache after conncet/deconnection of the VPN:

sudo systemd-resolve --flush-caches


Click on Activities, search for Settings and open it.
Go to Wi-Fi section.
Click on the vertical ellipsis (three vertical dots) or something similar at the top right to open a pop-up dialogue. You should find a "Turn On Wi-Fi Hotspot" option there:

If you're unable to transmit data even after turning on hotspot, try this: Wi-fi hotspot doesn't transmit data


Twitter media cannot be played from Firefox

The solution is straightforward: just install ffmpeg:

sudo apt-get install ffmpeg


Creating an AppIndicator using vala: Package `appindicator3-0.1' not found

According to the search on packages.ubuntu.com you need to install related packages:

sudo apt install libappindicator3-dev gir1.2-appindicator3-0.1


Let's create a virtual video lookpack device with v412 loopback:

sudo apt-get install v4l2loopback-dkms
sudo modprobe v4l2loopback
sudo depmod -a

Then send the video file into that device with

ffmpeg -i vid1.mp4 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video2


Autocomplete on Partial Matches in the Middle of a filename in Terminal (dash/bash)

You can do that by creating an alias for cd and defining a bash completion as your will. See Bach Completion manual.

Here is a step by step guide. I will use "scd" for our new command, but you can use "cd" as well.

1) Editing .bashrc file

gedit ~/.bashrc

2) Creating the alias
Paste this in the final of the ".bashrc" file:

# Alias for making a "Super cd"

alias scd="cd"

_scd_completion() {
    mapfile -t COMPREPLY < <(ls -d */ | grep "${COMP_WORDS[COMP_CWORD]}")
}
complete -F _scd_completion scd

Save and close.

3) Open a new terminal
Or run: source ~/.bashrc

4) How to use

Just call the command followed by part of the name of the directory you want to go.

scd Bikes<TAB>

Done. Enjoy!


Is there a KVM GUI for headless Ubuntu Server 18.04 LTS?

You can run virt-manager on your Windows machine and visually manage your remote libvirtd server.


When you direct output to a file, is that file opened and closed exactly once?

It's only opened once, by the shell process that interprets the "> filename" before it starts the command. Since that shell process is waiting for the command to exit, there is nobody to close the file, until command exits.

Output will seem to appear, in bursts, in the file, as disk buffering and caching does its magic.


The minimal cd image is a misnomer.  It does not mean it installs a minimal Ubuntu system; it means it is the smallest image you can download.  This is so because it does not have packages on it.  It only boots up and downloads everything over the network.  It should be called the net install image, rather than minimal.

If you want more control over what packages are installed, use the alternate cd with the text mode installer.


How to change "read-only" file at root prompt

You must first mount the drive as read/write using the Recovery Menu option, then drop to the root shell (with networking if needed).

Everything should work then.

For Ubuntu 14.04 and higher, there is no option for read/write. Instead, enable-networking option will mount the system in read/write mode.


The operating system will never delete files, including configuration files, in your own home folder. These files are considered yours and are under your control. This works the same for applications installed using the traditional APT system. Feel free to delete these remnants.
Other remnants will remain at the level of the system files, including possible "snapshots" of previous versions of this snap. The snap system is, however, setup to clean these up after a certain period of time, although you also can clean them up yourself.


I have at least been able to get 2 out of 3 with the following set up. Both Stereo audio and passthrough work within XBMC without having to uninstall pulse. I still however have to select a different audio output from the ubuntu sound settings (i.e. internal audio):

In ~/.asoundrc:

# ALSA library configuration file

# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)
</home/kbrandt/.asoundrc.asoundconf>
pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,2"
        period_time 0
        period_size 1024
        buffer_size 8192
        #periods 128
        #rate 44100
        rate 48000
     }
     bindings {
        0 0
        1 1
     }
}

Then in XBMC:

note: The greyed out "Custom Passthrough Device" means that the option is not in use. It only is in use if "Passthrough output device" is set to "Custom"


Sending data using HTTP GET request to Ubuntu server in TCP

Look at the access log in /var/log/apache2/access.log. The access log lists not only the IP address, the timestamp, and the actual request, but also the user agent. This may give an indication of where the requests are coming from, if the IP address doesn't narrow it down enough. Also, a 408 error means that the client has initiated a connection to the server, but hasn't actually sent a request within a reasonable time. It's hard to tell where the timed-out connections originate. If the error.log doesn't give any more cues, you could run a tcpdump on the server to see what other traffic runs between server and client. In any case the server does not deny the connection. The TCP system allows the "three-way handshake" of which the web server is notified, but after that, nothing happens.

The client should close the request with an empty line. That signals to the server that the request is complete and that the server can begin responding. The Connection: close header signals to the server that it can close the connection (at the TCP level). Otherwise the connection will just time out. The Connection header is optional.


Do you have optimus enabled in your laptop ? This means that you have both an intel / nvidia graphics chipset, that work together in certain ways to save power. It could be that your linux OS cannot find the nvidia chip , and hence cannot render anything on screen. If this is the case, a straightforward solution might be to try Ubuntu 14.04 , which seems to have the right updates for this to work. I would recommend checking this link out , and installing nvidia-prime/ nvidia drivers (i personally use nvidia-319 drivers).

FYI: i had faced similar issues and solved them only yesterday (used beta2 version of 14.04).


In Ubuntu 15.10 and later open the terminal and type:

sudo apt install --only-upgrade sqlmap


File / Application association using a custom command is gone?

As I found on http://blog.whatgeek.com.pt/?p=319 you can use mimeopen -d /path/to/file to configure a custom application on the cli. It will be used by gnome3 then.

$ mimeopen -d foo.matroska
Please choose a default application for files of type application/x-matroska

    1) VLC media player  (vlc)
    2) Banshee  (banshee)
    3) Movie Player  (totem)
    4) Other...

use application #4
use command: mplayer
Opening "foo.matroska" with mplayer  (application/x-matroska)


gnome-terminal hides ending characters of the current path's first row

I know this is old. I hope @John Doe, that if you solved this you would report on the solution. Here are some of my thoughts:

I saw this behavior at one point, but I think it was with a specific application.
There is an interaction between the TERM environment variable and the detection of the terminal size upon resizing. Use stty size to get the report on the width (2nd number) that the OS believes the terminal is. I suspect the width is 2 columns more than the window allows in your nominal case. Watch how this changes with resizing the window. You can also control it via stty cols 75. If you reduce it by 2 columns and your problem is fixed, you know that it is OS confusion about the terminal width.
It might be an issue of color change pseudo characters getting confused as being actual characters. Try removing all color from your prompt PS1.
Just to be sure gnome-terminal and the terminfo database are not corrupted, try: apt-get install --reinstall gnome-terminal gnome-terminal-data tinfo5 .
Try different values of TERM.


Running service spacenavd start not same as /etc/init.d/spacenavd start

The root does not have access to Xserver by default. In order to enable it, you need to copy your /home/sam/.Xauthority  file to /root/.Xauthority

sudo cp /home/sam/.Xauthority /root/

After the reboot simply enable the spacenavd daemon at the boot:

sudo service spacenavd enable

And start the spacenavd service:

sudo service spacenavd start


How can I disable/enable ubuntu's auto shut down feature?

Here is a resolution:

  Edit => /etc/default/grub

  Edit => GRUB_CMDLINE_LINUX_DEFAULT=

  Add => GRUB_CMDLINE_LINUX_DEFAULT="quiet splash thermal.nocrt=1"

  Update GRUB => sudo update-grub

  View settings, should be disabled => cat
  /proc/acpi/thermal_zone/THM/trip_points

  View temperature => acpi -V or sensors

However, doing this comes at an obvious risk, whereas getting rid of dust in your PC comes at a much lower risk. Plus, it can be that not Ubuntu but your bios shuts your PC down which means that Ubuntu is the wrong place to change settings.


Assuming you're using Juju 2 you don't need to deploy the GUI charm any longer, it's included with Juju.

You can start the GUI by running juju gui and it'll output a link to the GUI as well as credentials you can use to log in.

If you've been running your controller for a while you can run juju upgrade-gui to upgrade to the latest GUI.


How to open a file in gedit with zenity --file-selection as root

With the command you're running, the $(...) syntax is evaluated by your shell before calling gksudo.  What you want is for it to be evaluated by a shell running as root.  Perhaps try something like this:

gksudo -u root "sh -c 'gedit \$(zenity --file-selection)'"


Keyboard shortcut for open terminal Nautilus >= 3.16

I added a new feature to Nautilus with the precious help of the maintainers.

This new feature allow you to map custom keyboard shortcuts to launch the scripts in the scripts folder ( ~/.local/share/nautilus/scripts ).

So, when you add an executable in that folder it will appear in the right-click context menu, but now if you create a special configuration file ( ~/.config/nautilus/scripts-accels ) you can assign a shortcut to it.

For example make a script called Terminal with the following content:

#! /bin/sh
gnome-terminal

Now create (or edit) the ~/.config/nautilus/scripts-accels file adding the following lines:

F4 Terminal

; Commented lines must have a space after the semicolon
; Examples of other key combinations:
; <Control>F12 Terminal
; <Alt>F12 Terminal
; <Shift>F12 Terminal

Restart Nautilus (nautilus -q) and when you'll press F4 key you'll open a new terminal window in the current directory (feel free to create a new key combination following the commented lines examples).

Note: if you select one or more files, their names will be passed as parameters to the executable.
Your script can also have access to many information through environment variables.

Link of the commit: https://git.gnome.org/browse/nautilus/commit/?id=9fe1335

There is also a gui to manage these shortcuts:
https://github.com/echo-devim/nautilusaccelsmanager


Old AMD Linux Drivers Cannot Be Downloaded From AMD

I was able to download 12.1-12.4 from the previous releases page just fine with DownThemAll.

Full links:

http://www2.ati.com/drivers/linux/amd-driver-installer-12-1-x86.x86_64.run
http://www2.ati.com/drivers/linux/amd-driver-installer-12-2-x86.x86_64.run
http://www2.ati.com/drivers/linux/amd-driver-installer-12-3-x86.x86_64.run
http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.zip

Could you try again? May be it was just a hiccup on AMDs servers that they fixed in the mean time.


Change the color of directories in GNOME Terminal

I know your post is old but I just went through this myself and thought I would share what I know.
My ls output was giving me the same thing but only on my partition where I store my data. That partition is an NTFS partition (some call it a "Windows type partition"). The ls command give different colors on a "Windows partition" and that's why I was getting the green highlights. I fixed my problem by adding a line to the bottom of my .bashrc file. The highlights went away and I was left with light blue for directories and green for files. Here's how I fixed it.

Shut down all open terminal emulators
Back up your .bashrc file (go to your home folder and press Ctrl-h to see your hidden / "." files and folders
Edit your .bashrc file
Add the following line to the bottom of .bashrc

export LS_COLORS='ow=01;36;40'

Save your .bashrc file. Some people say you have to run "source ~/.bashrc" to get your changes to take, but I never had to.
Open your terminal emulator and see if the highlights are gone

Hope that helps!


Ubuntu 20.04 as a VM how to insert pipe symbol?


Your device 14e4:4312 needs this:

    sudo apt-get install firmware-b43-lpphy-installer
    sudo modprobe -r b43 && sudo modprobe b43

It may take a reboot.


reducing disk writes: swapiness=0 or swapoff better?

Yes, if you want to disable swap entirely just comment out the line in fstab and reboot. Or, to avoid rebooting:

sudo swapoff -a

The downside if you entirely turn off swap is that you're left with no "safety net" if your processes start needing more memory than physically available. If you're confident that is not going to happen, it should be OK to disable swap.

Read here:

Is it safe to turn swap off permanently?

This has a very good explanation of whether it's safe to turn swap off and what swappiness means; swappiness 0 means it won't touch the swap file unless absolutely necessary (i.e. out of memory).

Now, if you want to minimize writes entirely there are other things you need to look into, such as logging for your applications (i.e. you probably don't want them writing logs to the USB flash). Be sure you look into that as well.


I suspect you need to add a shebang to the start of your script to help cron know what interpreter to use. So your script would become:

#!/bin/sh
cd /var/log/myprog/
/etc/myprog/updatescript.sh 1> `date '+/etc/myprog/logs/%Y-%m-%d-cran.log'` 2> `date '+/etc/myprog/logs/%Y-%m-%d-cran-warnings.log'`

Cron may not know much about paths and the like, so you need to give it more clues.


Ubuntu ships with Unity, which is dependent on Compiz, which is apparently incapable of handling more than one graphics card at this time.

What worked for me was to completely rip out Unity, Compiz, and lightdm, and then install KDE. Alternately, just install kubuntu (which is just Ubuntu with KDE, a really great desktop environment that's been in development since the '90s, rather than Unity.) This done, you will need to install the 3D card drivers.

At this time, the process of massaging the drivers to do what you want is not intuitive and can be exceedingly difficult. (It is with nVidia, at least, which is puzzling since it works with zero effort in Windows.) You may have to be somewhat tenacious.


The only application that is able to do what you want regarding the folder structure is the rapid-photo-downloader, which is available in the repositories. It is obviously an importer program, rather than a photo viewer, although you can view pictures in it as they are imported. As the screenshot shows, it has more options than any other program for controlling how pictures are imported. It can download your pictures into exactly the folder structure that you want and perform many other tasks such as renaming and reorganising your photos.

However, it is very important to note that it works best when your camera card is put in a card reader, as it works every time when that is done, but does not always recognise your camera as a device for import when you connect it directly.

For more information on the feature set of the program, see this site.

If you want a more recent version than that in the repositories, as some of the latest versions contain a lot of bugfixes and improvements, you could use the following PPA, which I have used for a while:

sudo add-apt-repository ppa:dlynch3
sudo apt-get update
sudo apt-get install rapid-photo-downloader


Driver packagers at xerox did not care to add dependencies.
On Ubuntu 14 you will need to

sudo apt-get install libcupsimage2:i386

On old ubuntus, I think package ia32-libs will do.
Restart CUPS daemon afterwards

sudo  /etc/init.d/cups restart

UPDATE
In Unicorn, I had to

sudo apt-get install libstdc++6:i386

additionally.

MORE UPDATE
Ubuntu 16.10. Developer's driver still works, even though it was last updated in 2010. You need to install 2 packages above, reboot cups, set printer and reboot cups again.
Ubuntu offers preinstalled driver for the printer and it does not work.

Ubuntu 17.10. Still works!No cups rebooting was needed. However, if printer is idle for a minute or two, it turns off its fans. After that, it does not wake up, so I have to reboot it.


How can an image of an Ubuntu phone be taken?

Backup everything in /home/phablet. This will backup all user data and program settings. You will however need to reinstall your programs after a factory reset. But once you restore that folder, any programs installed will have the same settings as before.

Don't forget to backup all hidden folders as well, such as /home/phablet/.config


This has been fixed with the latest ubuntu 11.04 + updates and the latest opera release.
Unstick opera from unity launcher, remove/purge opera, download it and install it again.


MAAS + Pods - Automatic NICs config guest side

MaaS Pods are not designed with that flexibility and I have not seen any other evidence of that kind of feature in development (yet).

MaaS Will pick up a network one of 3 ways in the following order:

Look for and attach guest to a network bridge called maas.
Look for and attach guest to a network bridge called default.
If neither the maas & nor default network are found, select first network found in alphabetical order.

Personally I have to have a maas network on all libvirt nodes. I use openvswitch bridges instead of the libvirt network defaults and connect them across hosts for a virtual overlay network. After that, you can add nic's to the networks you need for each VM while retaining maas functionality on its own virtual network.

You can check this bug for reference.


issue still ask credentiels with rsync over ssh with sudo

You are running:

sudo rsync -e "ssh"

You  execute ssh from root account (as you used sudo before running the rsync command) instead of syncuser account (which have ssh access to the remote-server)

In order to solve it, you can allow root@local-host access to syncuser@remote-host (e.g. using ssh-copy-id)?


how to kill an app started by `quickly run`

Try to kill it via the process list:

Or - if you want to be more nerdy - kill it via the console, using $>top


When Ubuntu asks for an admin user's password, how does it decide which administrative user to ask for?

First of all let to point out that privileged actions are allowed for a non-root user through two different mechanisms.

sudo
PolicyKit

The first one is used when you explicitly run a command with sudo or a menu item whose command is wrapped with gksu (like Synaptic Package Manager).
In this case the password required is that of the invoking user, usually the user logged in.

The second one is used when a PolicyKit-aware application try to perform a privileged action. In such a case the application asks the PolicyKit Local Authority (through D-Bus) if the action can be executed. The Local Authority then, through an Authentication Agent, asks the active user to prove its identity. The dialog windows is like the following (unfortunately with text in italian :)

You can identify PolicyKit from the little black triangle and the label Details.
As you can see, if more that one user is in the admin group, you can choose from the list which user to use for authentication.

Given all this, both sudo and PolicyKit are much more complicated, with respect to the configurations that can be achieved: you can configure action that can be executed without password, executed only by a particular user or group, etc.

Coming to your question, when the mechanism used by the application is PolicyKit, independently from the current logged in user, the password required would be that of Bob or Alice (the only two admin user, if I understand correctly), and you can change from the list which user you want to use for authentication.

When the mechanism used by the application is sudo (for admin tasks performed through GUI this is becoming less frequent), you have no immediate and simple mean to choose the user for authentication.


Try TestDisk from CGSecurity (info here). In the the link:
TestDisk can:
Fix partition table, recover deleted partition
Recover FAT32 boot sector from its backup
Rebuild FAT12/FAT16/FAT32 boot sector
Fix FAT tables
Rebuild NTFS boot sector
Recover NTFS boot sector from its backup
Fix MFT using MFT mirror
Locate ext2/ext3/ext4 Backup SuperBlock
Undelete files from FAT, exFAT, NTFS and ext2 filesystem
Copy files from deleted FAT, exFAT, NTFS and ext2/ext3/ext4 partitions.

It is OpenSource and can be run from:
DOS (either real or in a Windows 9x DOS-box),
Windows (NT4, 2000, XP, 2003, Vista, 2008, Windows 7 (x86 & x64),
Linux,
FreeBSD, NetBSD, OpenBSD,
SunOS and
MacOS X

Using the program you can see that it does indeed analyse the data. If you want to view it at bit level - which is an entirely different thing - just use dd to take a copy then use hexdump to view it.

I think you need to clarify your requirements.


How to expand an encrypted ubuntu partition with LVM

After fiddling around for a long time, and failing multiple times (thank god for backups) I was able to resize it. Here goes my guide.

This assumes you have a partition table like mine: sda1 is swap and around 250MB, sda2 is a container with sda5 (our crypt volume) and a lot of free space in front of sda2, like so

|sda1|sda2 (sda5)|free space|

Boot to a LiveCD of your favourite distro. Run gparted and shrink your sda1 partition by around 20MB. This is because fdisk requires a buffer of unallocated space between the start of sda2 and sda5, dunno why. While you're at it increase the size of sda2 as far as it can go, all the way to the right.
You should end up with

|sda1|free space|sda2 (sda5)|

Go ahead and launch fdisk

sudo fdisk /dev/sda

press p to print out the current partition scheme. Write down where sda5 starts.

press d to delete first sda5 then sda2. Scary.

Now press n to create a new volume. Press e to select type extended and number it 2. The defaults for start and end should be ok.

Now create a new partition, type is Linux (should be default) and number it 5. The start value should be the same as the one you wrote down for sda5 before, the end value is the default one (as far as it can go).

Press p again to be sure that everything is OK and press w to write your changes to disk.

Reboot into your live CD again.

If you open up gparted you should now have

|sda1|sda2 (free space) (sda5)|

Follow these steps:

Decrypt your file system.

sudo cryptsetup luksOpen /dev/sda5 crypt1

Get the live CD to recognize (activate) your LVM.

sudo vgscan --mknodes
sudo vgchange -ay

Resize the Crypt.

sudo cryptsetup resize crypt1

Resize the (LVM) Physical Volume.

sudo pvresize /dev/mapper/crypt1

Resize your root (LVM) Logical Volume.

Unlock the (LVM) Physical Volume.

 sudo pvchange -x y /dev/mapper/crypt1

Resize the (LVM) Physical Volume.

 sudo lvresize -l +100%FREE /dev/ubuntu-vg/root

Re-lock the physical volume.

 sudo pvchange -x n /dev/mapper/crypt1

Resize the filesystem.

sudo e2fsck -f /dev/mapper/ubuntu--vg-root
sudo resize2fs -p /dev/mapper/ubuntu--vg-root

Now you should be OK to reboot and if everything went well you should have a bigger encrypted partition.

Note: This method has the downside of robbing you of around 20MB of swap. If the swap resize isn't done, fdisk won't let you write sda5 in the required position (which may lead to corruption, I suspect). This caveat is necessary until someone explains exactly what fdisk is doing behind the scenes and if there is any way to get it to do our bidding.


how to remove lubuntu and install ubuntu

You can just install ubuntu, the old installation will be erased when you chose the option use entire disk during the installation setup. You can download the iso of ubuntu 12.10 from here:

http://www.ubuntu.com/download

Or 12.04.1 LTS, you might prefer 12.04.1 because it's an LTS which means is's supported for five years instead of one and a half years for a normal release:

http://releases.ubuntu.com/precise/ .

Burn the iso on a dvd, boot from it and install.

If you're going to dual boot with windows don't follow my instructions because you'll erase windows too. You can find dual boot instructions here:

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

It might be a good idea though to install lubuntu 12.10 because you're machine is a bit older, it might be sluggish when you install regular ubuntu. You can obtain the lubuntu iso here:

http://cdimage.ubuntu.com/lubuntu/releases/12.10/release/

Lubuntu 12.04 is not an LTS so I'd get lubuntu 12.10.


How can I get a notification using Notify-OSD when the charger is inserted/removed?

dbus

Some people reported my earlier udev solution sent the notification too many times when the power cable was plugged in. I couldn't reproduce that but I wrote this python script to utilize dbus instead of udev. Save it as a .py file somewhere on your hard drive. Mark the file executable by running:

sudo chmod +x yourFile.py

and add it to your startup applications as described here. This script requires the package acpi be installed.

#!/usr/bin/python

import dbus
from dbus.mainloop.glib import DBusGMainLoop
import gobject
import subprocess

dbus_loop = DBusGMainLoop()
bus = dbus.SystemBus(mainloop=dbus_loop)

onMessage="Power plugged in!"
offMessage="Power unplugged!"
onImage="/usr/share/icons/gnome/32x32/devices/ac-adapter.png"
offImage="/usr/share/icons/gnome/32x32/status/battery-full.png"

def callback():
    state = subprocess.check_output(["acpi", "-a"]).split(':')[1].strip()
    if state == "on-line":
        subprocess.call(["notify-send", "-i", onImage, onMessage])
    elif state == "off-line":
        subprocess.call(["notify-send", "-i", offImage, offMessage])

bus.add_signal_receiver(callback, 'Changed', 'org.freedesktop.UPower.Device', 'org.freedesktop.UPower', '/org/freedesktop/UPower/devices/line_power_AC')

loop = gobject.MainLoop()
loop.run()

udev

With a little experimentation (and a little help) I was able to utilize a udev rule to accomplish this. Some people have reported that it sometimes sends the notification more than once but I have not had any problems. YMMV.

Create a script with the following contents:

#!/bin/bash

# Set this to your username
USER="some_user"

if [ "$POWER" == "on" ]
  then
  DISPLAY=:0 /bin/su $USER -c '/usr/bin/notify-send -i /usr/share/icons/gnome/32x32/devices/ac-adapter.png "Power cable plugged in."'
elif [ "$POWER" == "off" ]
  then
  DISPLAY=:0 /bin/su $USER -c '/usr/bin/notify-send -i /usr/share/icons/gnome/32x32/status/battery-full.png "Power cable unplugged."'
fi

replacing some_user with your username. Mark the file executable by running:

sudo chmod +x /path/to/script.sh

replacing /path/to/script.sh with the path to where you saved the script.

Next create a file in /etc/udev/rules.d named 10-power.rules with the contents:

SUBSYSTEM=="power_supply", ACTION=="change", ENV{POWER_SUPPLY_ONLINE}=="0", OPTIONS+="last_rule", RUN+="/path/to/script.sh" ENV{POWER}="off"
SUBSYSTEM=="power_supply", ACTION=="change", ENV{POWER_SUPPLY_ONLINE}=="1", OPTIONS+="last_rule", RUN+="/path/to/script.sh" ENV{POWER}="on"

again replacing /path/to/script.sh with the path to the script you created earlier.

Now reload the udev rules by running:

sudo udevadm control --reload-rules

Unplug the power cable. You should get a notification.


Suddenly it works. It seems that we just need to upgrade all packages with apt then restart. The device name will remain the same (not changed to wlan0)


Merge home directory after fresh installation with existing (Gentoo) home

Well, I guess .gnome2 and .gnome2_private and similar. However, if I were you, I would create a new user (with empty home) to log into gnome. Then you can check the new user's home and you will clearly see what kind of directories are created so you will know what you need copy then.

By the way, it's a bit odd situation: you told that you used XFCE on that NFS mounted share and no gnome (?). Then gnome should create directories at the first time. Are you sure that you (as the user, I mean, including gnome) can write to the mounted NFS /home? Isn't it possible that you used with different uid/gid with gentoo and/or different uid mapping policy with NFS export and/or mount?


Nautilus and the visualization of available volumes/partitions

I would say it uses GIO/GVFS which belongs to Glib.

Api documentation can be found here and here.


USB Endoscope not recognised as a MTP Device. How to Correct?

This is not the answer, but may help you along the path. Read these man pages:

jmtpfs (1)           - FUSE based filesystem for accessing MTP devices
             from package jmtpfs
mtp-server (1)       - A simple MTP server implementation
                 from package mtp-server
mtp_basic (3)        - The basic device management API.
mtp_internals (3)    - The libmtp internals API.
                 from package libmtp-doc
qlix (1)             - Manage MTP devices
             from package qlix


Cron don´t run python files that imports modules

By adding the MAILTO tag in crontab I checked the error message. The problem was the driver path (in this case Chromedriver) wthat had to be an absolute path to Chromedrivers location.


Click on the top right corner of your desktop(an icon that seems like sun or poweroff button).
select About This computer,it will show you the version of ubuntu.


If you are doing this on a server, you can reap lots of benefits by creating multiple partitions ie: mail server, etc...

If this is for a desktop machine.  The only benefit is that you can install new O.S.'s over your existing / partition and keep your /home partition intact (this is my preference).  My setup would be something like:

/ - 15 Gigs (lots of extra room here, I've read about people getting away with < 5Gigs
swap - size of ram installed

/home - rest of HD space


Do I need to install "Swift" to make Charms work?

No, you do not need to install Swift in order to make charms work.


I am able to do install packages as root but not as a user. Getting error like "could not resolve in.ubuntu.archieve.com"

What are your permissions?
ls -l /etc/resolv.conf

Other users must have read permission.
Example:
-rw-r--r--.


Why does video tear on a Radeon Mobility 7500?

I have found a way to improve the performance massively: I have made a custom setting for the radeon driver. This is my /etc/X11/xorg.conf.d/20-radeon.conf

Section "Device"
        Identifier "Radeon"
        Driver "radeon"
    Option  "SWcursor"              "off" #software cursor might be necessary on some rare occasions, hence set off by default
    Option  "EnablePageFlip"        "on"  #supported on all R/RV/RS4xx and older hardware and set off by default
    Option  "AccelMethod"           "EXA" #valid options are XAA and EXA. EXA is the newest acceleration method and its the default.
    Option  "RenderAccel"           "on"  #enabled by default on all radeon hardware
    Option  "ColorTiling"           "off"  #enabled by default on RV300 and later radeon cards.
    Option  "EXAVSync"              "off"  #default is off, otherwise on
    Option  "EXAPixmaps"            "on"  #when on icreases 2D performance, but may also cause artifacts on some old cards
    Option  "AccelDFS"              "on"  #default is off, read the radeon manpage for more information
EndSection

The key option that makes the difference is the EXAPixmaps, which increases the performance a lot.


My kernel won't boot. What steps should I take?

I had something similar to your case. Try the following:

Boot 2.6.38~11 with recovery mode.
From the recovery menu, choose "drop to shell with i-net access"  (or something similar)
type in the terminal: telinit 3 to switch to runlevel 3
Enter your username, Enter password
Type: sudo service gdm stop to close the x server.
Type: sudo nvidia-installer -f --update ; this will download the latest driver and reinstall it.
That's it, type sudo service gdm start and you have your desktop back.

At point 6 you don't really need to reinstall the driver. All you need is to build the module for your current kernel version, but i couldn't figured it out how to do it.


Your kernel modules in /lib/modules do not match the loaded kernel version.

Loaded kernel version: 2.6.18-028stab070.14
Kernel modules version: 2.6.18-028stab070.7

You should never attempt to load kernel modules which are not compiled for the loaded kernel. A quick search made clear that your kernel (OpenVZ visualization technique?) is a common one.

Try to find the matching kernel modules by running apt-cache search 'linux-image-*'. If you cannot find the right kernel, please post the output of the command in your question.


How do I mark a .jar file as executable on Xubuntu 13.04?

Assuming the file in question is in your $HOME (just move it with the GUI otherwise), open a terminal (that much should be easy :) then run this command:

chmod a+x jarfile.jar

Change jarfile.jar to the actual name of the file in question of course. If that gives you an error, the file is probably not owned by your user, so try again with sudo:

sudo chmod a+x jarfile.jar


Installed Ubuntu alongside Windows 7 - But no boot menu, only booting Ubuntu

Try this

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

For more details, refer this link

Please make sure that both Windows and Ubuntu are installed in EFI mode.
Also disable secure boot in BIOS.


I'm having a similar problem on my X220, in my case it helps to kill the fingerprint-helper process to resume my session. However, I'm not seeing the behaviour you're describing with the fingerprint reader text being shown after waiting and hitting enter then... On the other hand, the lock screen behaves the same as in your case.

Did you have a look at Ubuntu bug report #1310104?

In case you're interested in the steps required in my case, have a look at my answer here: Fingerprint GUI breaks lock screen after suspend.


how to set ubuntu not to group the similar windows when swithing through the open windows?

What about just let them group and use special commands for them?
In How to ungroup windows on task switcher? you got:

Press alt + ` (the key above Tab) (by glindste)

or

Press ↓ while holding alt+tab to view list of windows for current application. (by Riateche)

I guess it's duplicate question, I'm new here, I don't know what to do with it.


The efi filesystem creation failed installing Ubuntu, even selecting "something else" and doing the partitions manually

You need to have made certain to select the partition the /boot/efi is on in that screen and said to use it as system partition I think it is worded. Alternatively in a Terminal just before starting the install, if that did not succeed as mentioned set the type to ef00 with gdisk, an example below.
root@zeus-H370M-DS3H:/home/zeus# gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.5

Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present

Creating new GPT entries in memory.

Command (? for help): t
Partition number (1-128, default 1): 1
First sector (34-234441614, default = 2048) or    {+-}size{KMGTP}: 40
Last sector (2048-234441614, default = 234441614) or {+-}size{KMGTP}: 200M
Current type is 8300 (Linux filesystem)
Hex code or GUID (L to show codes, Enter = 8300): ef00
Changed type of partition to 'EFI system partition'

Command (? for help): w

Final checks complete. About to write GPT data.  THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to   /dev/sda.
The operation has completed successfully.

You would use the number 4 for youu disk setup and to check it did indeed do it.
root@zeus-H370M-DS3H:~# fdisk -l /dev/sda | grep sda1
/dev/sda1      40    409639    409600   200M EFI System

You need to use the sudo command in front of the commands I use to do it as root user like I have.


Prevent Flash from using webcam and microphone?

Simply open the Macromedia settings manager and select "Always Deny" in the "Global Privacy Settings panel".

On a side note: this page is accessible from all browsers and those settings will be used by all browsers.


Shutdown computer with the remote controller

As the root user, you could define something like this in the ~/.lircrc file (with "POWER" replaced with whatever is correct for your remote):

begin
 prog = rawcontrol
 button = POWER
 config = power
end

Then add something like this to /etc/rc.local or another init script:

ircat rawcontrol | (while read line
do
        if [ "x$line" = "xpower" ]; then
                shutdown -h now
        fi
done) &

This will have "ircat" watch for events using the "rawcontrol" definitions. When it sees "power" get pressed, it'll shut down the system.


Unable to copy file from /opt/lampp/htdocs to /home/username/ using PHP

The folder your PHP script is trying to write to will probably be owned by the root user. Your PHP script is running under the www-data user if you're using a default Ubuntu/Apache/PHP setup.

As such you need to:

chown -R www-data:www-data *dir*
chmod -R g+w *dir*

you don't have to do the second line if ls -al shows you this

drwxrwxr-x

If your PHP is running under a different user then just change the user in the first line of code.

that should fix your problem.


Your current "zsh terminal" has to be told to reread ~/.profile to see the changed contents.

  source ~/.profile

should do the trick.


Getting Unity style back after installing Gnome

Install Tweak Tool:
https://apps.ubuntu.com/cat/applications/gnome-tweak-tool/

then open it and go to Appearance and set the icons to Ubuntu-mono-dark (Ambiance) or Ubuntu-mono-light (Radiance).


Attachments missing in Evolution since 12.10 upgrade

If you get:

WriteStream: MAPI error MAPI_E_CALL_FAILED (0×80004005)

Then the solution can be found here:

https://bugs.launchpad.net/ubuntu/+source/openchange/+bug/1073991

Shortcut: (which you will find somewhere on the above link) : install this package"

https://bugs.launchpad.net/ubuntu/+source/openchange/+bug/1073991/+attachment/3428716/+files/openchange.tar.gz


Uninstalling node and npm and then again reinstalling

If you used apt install nodejs and apt install npm, you can remove it with apt purge nodejs and apt purge npm.
But if you used snap, then you can run the following command: snap remove node.


2 Ubuntu 19.10 PCs cannot share desktop, mediafiles and cups printer

If you need to screen share within your LAN inside your network between Linux devices, use NoMachine. It is way faster than any other service and user friendly options to change host resolution and change screen size to make it usable on your client screen.

However if you need support online like TeamViewer, use AnyDesk.

I now use my PC or NAS by simply using NoMachine on my laptop. Giving me access to a full pc while on the couch.


MySQL uses the UNIX socket on localhost - much faster. It won't run on a TCP port unless you tell it to do so.


Ubuntu 12.04 GNOME Terminal (3.4.1.1) Xorg 100% CPU

I have found out it has to do with my dual monitor setup through Nvidia's Twinview. With my external monitor disabled it does not seem to slow down.


Why the horrid artifacts in mpgv playback in VLC?

The ~/.dvdcss folder needed to be deleted, VLC automatically rebuilt it when asked to play the DVD. It then played perfectly.

The Troubleshooting section on this Ubuntu documentation page had the information I needed.


What actions does Ubuntu trigger when battery is low?

If you look at the "Power" tab in System Settings, you have the option to choose what happens when the battery reaches a critically low level. You can, with standard Ubuntu, make it power off when critically low. If you have hibernation enabled (Check out this link for instructions: How to enable hibernation?), you can also make the computer hibernate. If in doubt about the difference between suspend and hibernate, look at this: http://ubuntuforums.org/showthread.php?t=1660436

I hope that I have been of service.

-Mario3D13


A Solution

Avoid using terminal emulators with alpha channels (i.e. transparency support) such as those included in your distro. (In my case, it's the KDE Konsole.)

Instead, use a terminal without transparency support, such as XTerm or UXTerm, which should be included as part of any clean distro installation.

It may not look as nice at first or have the same feature set, but I can confirm that OBS is able to capture the source and display it correctly. (I confirmed this last night during a 4.5hr stream.)

To make it look nicer, you can press and hold Ctrl + R-Click to get the terminal's context menu and change font size, set it to use TrueType fonts, and so on. This definitely helps and is strongly recommended.

Problem Description

I ran into this issue yesterday and, after more searching, found out that this is a known bug in OBS, which was reported here back in Oct 31st, 2014 and last updated (to a closed status) on Nov. 26, 2016.

The issue is that OBS is not able to capture from a source that has an alpha channel. If you launch OBS from the terminal, you'll see the output below when you try to add a new Window Capture (XComposite) source to capture from a terminal. On my system a few minutes ago, the relevant output was:

info: User added source 'Terminal' (xcomposite_input) to scene 'Code - Mono'
info: xcompcap: [window-capture: 'Terminal'] update settings:
        title: Desktop — Plasma
        class: plasmashell
error: glCopyImageSubData failed, glGetError returned 0x502
error: device_copy_texture (GL) failed
error: glCopyImageSubData failed, glGetError returned 0x502
error: device_copy_texture (GL) failed
error: glCopyImageSubData failed, glGetError returned 0x502
error: device_copy_texture (GL) failed
error: glCopyImageSubData failed, glGetError returned 0x502
...

The terminal has an alpha channel, which is used for transparency, and this is what makes OBS flip out whenever you try to capture from that source.

As you can see from my terminal below (KDE Konsole: Settings → Edit Current Profile... → Appearance (tab) → Edit...), you can set the alpha channel (transparency) value to 0%, but you cannot really remove the channel to get a terminal without the alpha channel itself.

By the looks of it, it seems they have no way (or intention) to fix this bug, which is unfortunate either way.


The desktop environment is deeply integrated into the system. It is not obvious to remove fully all elements related to the KDE desktop as it has been build by the Ubuntu developpers.

The kubuntu-desktop package is but a meta package. Installing it will automatically pull in the hundreds of packages that give you a KDE desktop as the Ubuntu developpers conceived it. However, removing the package will merely remove the meta-package. Using the option --autoremove will remove some more packages, but that will be restricted to some Ubuntu specific icon packs. See some unsatisfactory answers on how to remove the entire desktop here and on many other places in Askubuntu.

There is no way to accurately reversely track all packages specific to a desktop environment, even if you would manually identify all dependencies of the kubuntu-desktop package, and in turn the dependencies of these dependencies. You could break down your entire system to be left with a functional terminal, then install your desktop of choice, but a mistake may leave you with an unbootable system. The only easy way to fundamentally get rid of packages associated with a specific desktop is simply to perform a reinstall with the desktop of your choice.

You may now have already removed a significant part of he KDE-related packages. However, you did not remove the KDE display manager, sddm, which provides the graphical login screen. To remove sddm, you first need to make sure another display manager is installed, then disable sddm and finally enable the other display manager you want to use. Otherwise, you will loose graphical login and automatic start of the graphical environment. When you then restart the system, you should be greeted by the other display manager. After logging in, you can effectively remove sddm if you wish.

Bottom line: it is probably faster and easier to just perform a fresh install if you want to change desktop environments and get rid of all related software. Alternatively, do not bother about remaining components: they will take some disk space but not affect the performance of your system.


I have the same environment (Windows 8.1 and Ubuntu 14.04).
The tip given in the following link worked perfectly for me.
http://itsfoss.com/how-to-solve-microphone-not-working-in-skype-quick-tip/


Graphical user interface to view man page?

At the command line try examples:

yelp man:printf
yelp 'man:printf(3)'

or use

yelp man:printf &

to carry on working at the command line. For a more permanent solution try adding

man () { yelp "man:$@"; }

to the last line of your .bashrc file. Then at the command line try examples:

man printf
man printf &

for the yelp viewer to come up.
I like having the scroll-able window next to my CLI to alt-tab to.


Open Terminal and run

sudo apt install firefox


Mouse weirdly sticking to the right edge of screen

You can check your display settings:
Press Super (windows key) and type "system settings" and open the System Settings application. At the Topic Hardware you will find Displays. Make sure there is only one Display configured. If not you can disable a display.


how to run more then one process through terminal

Yes you can. Just append the ampersand character (&) at the end of the command. This will allow the program to run as a background job in the shell. Like this:

sudo wvdial &
nautilus

It's worth nothing that you will still see terminal output from the task while it's running in the background.


Start from scratch. Reboot, then do the following:

airmon-ng start wlan0
wash -i mon0
reaver -i mon0 -b BSSID -c CHANNELNUMBER -vv


How to stop turning off sequence when power manager says that battery is too low and want to power down?

Insert nothing here and it should just crash with undetermined results if it actually ends up with an empty battery. Run gconf-editor from command line and go to apps > gnome-power-management > actions.

Command line option:

gconftool-2 --set --type string /apps/gnome-power-manager/actions/critical_battery       nothing


Ubuntu Software Centre fails with package catalog error

You have broken packages on your system.  Open up a terminal and enter

sudo apt-get install -f

and that should fix it.

sorry for not commenting on my first answer, but I don't have the privileges.


Why is the network configuration I set in /etc/network/interfaces ignored on Ubuntu 17.10?

Networking is handled by netplan by default in Ubuntu Server 17.10 and later. I suggest that you edit the /etc/netplan/01-netcfg.yaml file to read:

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  wifis:
    wlp2s0b1:
      dhcp4: no
      dhcp6: no
      addresses: [192.168.0.21/24]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [8.8.8.8,192.168.0.1]
      access-points:
        "******":
          password: "**********"

Exit and save your changes by running the command:

sudo netplan generate
sudo netplan apply

Please note and follow the spacing and indentation. Also note that the SSID and password are in between quotes ".

Comment out all the wlp2s0b1 stanzas in /etc/network/interfaces and reboot.

Any improvement?

NOTE: The exact method to set a static IP address for a server with netplan and wifi is hard to find. We may need to tweak the settings a bit.


Wine 1.3.25 update broke sound, how do I go back?

There are instructions here, on WineHQ. You need to uninstall and reinstall an earlier version. According to the FAQ, this won't uninstall your apps.

It's more likely to be a problem with your configuration or a sound driver, though. You should open up the Wine configuration to be sure.

If the problem is not fixed when you use an older version of Wine, try 1) changing your sound driver to each individual sound driver and no other, then 2) removing your .wine directory and reinstalling your apps.


You may not have the proper codecs to play encrypted DVDs. all you need if this is your problem is to install them its called libdvdcss2. Here is a link to set it up just click on the 32-bit or 64-bit depending on your system, and it will open up ubuntu software center just hit install and try your DVD again.

http://www.omgubuntu.co.uk/2011/06/how-to-enable-dvd-playback-in-ubuntu-11-04


IS there any way to force UBUNTU to install in BIOS Boot mode?

Step 1:
Run the Ubuntu Installer. Select SOMETHING ELSE at the storage configuration prompt. Creating one main primary partition mounting '/' and a secondary partition as swap about the same size as your memory. The installation will fail at the end saying that GRUB-EFI-XX could not find an EFI partition. This is fine and normal.

Step 2.
Keep using the live environment you have running or boot from an Ubuntu AMD64+MAC LIVE-USB STICK. CHROOT the environment on the drive and try to install GRUB-PC. You will get an error that GRUB-EFI was not able to install and therefore it will resist the GRUB-PC installation. You will have to do a 'dpkg -r grub-efi-xxx' before it will allow you to install GRUB-PC.

Step 3.
Install GRUB-PC, select the drive (/dev/SDA). Reboot and whalla. Instant fix. Now you can install modern debian based distros into a NON-UEFI laptop.

Step 4. You may have to do some manual cleanup since the installation script did not finish running. You may have to manually remove the installer and any other stuff that may have been included in the LIVE USB.


Mounting external HD 4 TB failed with error message (ubuntu 16.04.2)

Boot into Windows.

First we check/fix the disk structure, then we turn off fast start and hibernation.

in an administrative command prompt window, type chkdsk /f D: and change the D to the appropriate drive letter
open power control panel, choose Change what power buttons do, then choose Change options that are unavailable, then uncheck Fast Start
in an administrative command prompt window, type powercfg /h off

Then reboot into kubuntu and all should be well.


Intel driver issues on 20.04 (can't change driver, screen tearing)

Well, it turns out that the solution to this was to disable fractional scaling. To sort-of avoid looking at a tiny screen, I instead increased my font scaling to 1.25 and left my screen scaling at 100% and now everything is perfect.


Through you reinstalled this is the safest method to remove kubuntu desktop package:

sudo apt-get install aptitude ubuntu-minimal
sudo aptitude remove '?and(?reverse-depends(kubuntu)),?not(?reverse-depends(?exact-name(ubuntu-minimal))))'

This will leave your system with the minimal installation of Ubuntu, enough to boot, without Kubuntu packages.

Explaining what aptitude does:

?and(conditional1, conditional2): search for all packages that fulfill both conditions.
?reverse-depends(package): search for all packages which reverse dependencies include the package package.
?not(package): search for packages that doesn't fulfill this condition.
?exact-name(package): when using ?name() it search for any package that contains the name, for example it will find package, libpackage0 and package-gui. With ?exact-name it specifies that it should be the exact name, is the equivalent to ^package$ regular expression.

If we were to interpret it in plain english: aptitude, remove any package that has reverse dependencies with a package that includes in it's name kubuntu, but that isn't reverse dependency of a package with the exact name of ubuntu-minimal.


"Network error: Connection refused" in Putty when I'm trying to connect to my remote home Ubuntu server

You have to forward the port 22 to your home server. Port 80 is the standard port of an webserver like Apache.
You can ping your public IP without to forward any port.


What is meant by "Novelty" in Ubuntu App Contest?

It means it should be new in both code and features.  A nice GUI for ffmpeg would certainly be a worthwhile submission, but yet another simple text editor or image viewer probably won't get very high marks from the judges.


Intel HD card not recognized (llvmpipe instead)

AFAIK, GPU passthrough only works when the GPU is not being used by the host OS, e.g. the host OS uses the iGPU, and the guest has a discrete GPU passed through to it.  This could definitely result in the guest falling back to llvmpipe.

Is there a particular reason to use virtualization?  There may be an alternate solution that would allow running Ubuntu directly on the box.  Alternatively, you could grab a cheapo dGPU off Ebay or such and pass that through to the VM. (Note that I'd go with an AMD card over Nvidia, as Nvidia's drivers don't like being ran in a VM.)


The View_Entry() block isn't closed. i.e. it should be

View_Entry() {

        echo "Go Flight"
        pause

}

Fixing this makes the script work for me. If you use a text editor with syntax hightlighting (e.g. vim or kate, perhaps gedit?) this is easy to spot.


You need to patch grub-installer.

See bug report 776633 for a patch:

Index: grub-installer-1.60ubuntu3/grub-installer
===================================================================
--- grub-installer-1.60ubuntu3.orig/grub-installer  2011-05-03 12:00:57.553509999 -0700
+++ grub-installer-1.60ubuntu3/grub-installer   2011-05-03 12:04:02.873000831 -0700
@@ -286,7 +286,7 @@
     /dev/loop)
    disc_offered_devfs="$bootfs"
    ;;
-    /dev/[hsv]d[a-z]|/dev/xvd[a-z]|/dev/cciss/c[0-9]d[0-9]*|/dev/ida/c[0-9]d[0-9]*|/dev/rs/c[0-9]d[0-9]*|/dev/mmcblk[0-9]|/dev/ad[0-9]*|/dev/da[0-9]*)
+    /dev/[hsv]d[a-z]|/dev/[sv]d[a-z][a-z]|/dev/[sv]d[a-z][a-z][a-z]|/dev/xvd[a-z]|/dev/cciss/c[0-9]d[0-9]*|/dev/ida/c[0-9]d[0-9]*|/dev/rs/c[0-9]d[0-9]*|/dev/mmcblk[0-9]|/dev/ad[0-9]*|/dev/da[0-9]*)
    disc_offered_devfs="$prefix"
    ;;
     *)

grub-installer is probably not on your system (since after it's in installed there's not really need for it to stay ;) ). This is the package it concerns: http://packages.ubuntu.com/source/natty/grub-installer so you'll probably find it on the install medium...

Here's a quick how to on remastering your own CD:  How can I easily remaster Ubuntu?


Sound from DVD very low in MPlayer, other sounds normal

Check and adjust the output volume for Mplayer to match the other applications' output levels. (Have Mplayer outputting audio when you go to set it, or you will see the same message as in the screenshot below.)

System Settings -> Sound -> Applications:


How to ssh from windows to my ubuntu machine in the local network

I know this is an old question, but it came up sorta high up in the Google search, so, for anyone having troubles for SSH'ing from a Windows to a Linux box, in my case, the problem was that I hadn't installed the SSH server on my Linux Mint machine.

Even if you do have SSH installed (like for connecting to another computers), you need this package to enable receiving connections.

sudo apt-get install openssh-server


I found this answer that provided a command-line solution for changing the launcher key shortcut. Restoring the default behavior only takes a single command:

dconf write /org/compiz/profiles/unity/plugins/unityshell/show-launcher '"<Super>"'


libnotfy1(>= 0.4.4) and libnotify1-gtk2.10 for Ubuntu 11.10

Dependency problem solved by downloading libnotify1 deb file from natty repository... here is the link to the natty deb file: packages.ubuntu.com/natty/libnotify1


The problem is that you should have:

127.0.0.1   localhost
127.0.1.1   master

in your /etch/hosts file, not a real ip address.

Simply run the command sudo hostname your-new-name

If that doesn't work, can you not use localhost instead of master?


You can use \1 to refer to the matching sub-expressions in the regex:
 sed -Ei 's:^([^ ]+):"<opentag>\1</closetag>":' file


How is a login via an ssh private/public key associated with a given user

The command:

ssh-copy-id  username@host

As documented in the link above does not work from mac. Therefore, I logged in as root and of course, that is where the key was installed.

The answer seems to be: If You log in as the user, then cat the public key to the ~/.ssh/authorized_keys file.


The answer is simple, the file/directory do not exist where you say it does. Review the configuration files or how you are invoking the program and point to the right file.


UFW not allowing Transmission to transfer

Add a rule using the gufw (the UFW GUI) program to allow the port that's set in Transmission. Actually, gufw has a handy preset for Transmission.


Wget server issues or the command is wrong?

If you want to download a file from a FTP server over wget, you have to type:

wget -t 10 -nH -P backup -r ftp://USER:PASSWORD@ftp.example.com/dir/subnets.cfg

Replace USER with your ftp username and PASSWORD with your ftp password.

I hope this helped you,

Daniel


Remembering Screen Brightness at Display Manager/Startup

I found a solution using a bash script and systemd services for anyone else that may come along and wish there was a screen brightness perseverance.

Make a bash script and place it where you see fit. Here is my example where I named it Brightness_Checker.bash.  Also create a text file names something like Brightness_Checker.backup, this will be for storing the brightness value. You will want to update sLoc with that path to the .backup file.

#!/bin/bash

bLoc=/sys/class/backlight/intel_backlight/brightness
sLoc=/home/kar/Programs/BashTools/Brightness_Checker.backup

bVal=$(cat $sLoc)

echo $bVal > $bLoc

while :
do
    cVal=$(cat $bLoc)

    if [ $cVal = "0" ];
    then
        echo 1 > $bLoc
        cVal=1
    fi

    if [ $bVal != $cVal ];
    then
        bVal=$cVal
        echo $bVal > $sLoc
    fi
    sleep 10
done

Within /etc/systemd/system, create a service file similar to mine where ExecStart will point to your bash script:

[Unit]
Description = Brightness checker

[Service]
ExecStart=/home/kar/Programs/BashTools/Brightness_Checker.bash

[Install]
WantedBy=multi-user.target

From here you want to enable the service:
sudo systemctl enable Brightness_Checker.service

Then restart your pc.
Note: The reason I have it echo 1 if the brightness is 0 is due to something beyond my pay grade that resets the brightness to full when booting up.
EDIT: One thing I forgot to mention, for security, I would suggest making those 2 files root owner and remove write access from everyone but root otherwise any update to that script could be ran on next startup.


Are my files on an ext4 filesystem recoverable after removing the logical volume the filesystem was inside of?

I'm in the process of reading-up on using logical volumes. I ran across this advice from ArchWiki:

  "Warning: Before you remove a logical volume, make sure to move all
  data that you want to keep somewhere else; otherwise, it will be
  lost!"

Based on that, it would appear that your files are "lost". Of course, that doesn't mean that there isn't another person out-there somewhere who may have the knowledge concerning how to recover your lost files.


Should I stick with Ubuntu 20.04 LTS and upgrade kernel to 5.8 or install Ubuntu 20.10 for Ryzen 4000 series?

I have Asus Zenbook 14 with Ryzen 7 4700U and I had problems with touchpad and screen brightness on Ubuntu 20.04.
Ubuntu 20.10 beta works without troubles, so I think that you should use newer versions of Ubuntu but Ubuntu 20.04 with upgraded kernel should work too.


You install juju on the machine where you expect to drive the deployments from. It can even be more than one machine, and then you would share the environment file with other people.

It's kind of like installing openssh-client on the machines where you want to administer your network from. It's where you run ssh from. Same with juju. You will run the juju commands from some machine. It can be anywhere, as long as it can reach out to the nodes.


Howto add Windows 7 in the grub on Ubuntu 11.10

IF you have ur windows 7 DVD, boot into recovery and open command prompt

type in

bootrec /fixmbr

then

bootrec /fixboot

now reboot and insert ur ubuntu live cd and in terminal type

sudo update-grub

this should fix it

for more info on the bootrec tol visit http://support.microsoft.com/kb/927392


Shared Folder permission Denied on Ubuntu 18.04

I suggest you use sshfs to share directories.

With the same user/pass on two machines, this is how I do it:

sshfs file sharing:

1) Install sshfs: sudo apt_get install sshfs
2) Mount dir: sshfs <remote_host>:<dir> <local_dir>
3) Umount dir: fusermount -u <local_dir>

You can set up sshfs so that you don't even need to enter a password when you use it.


Problem with text on Ubuntu 14.04 (freenx)

In order to exclude which side causes the issue I would recommend to install

NoMachine

and play all combinations of old and new clients and servers. Hope it helps.

Also you can try to install qtnx client, it is not in Ubuntu repository, though can be installed, here is instruction


SSH fails with connection timed out - in VPN and hangs here "expecting SSH2_MSG_KEX_ECDH_REPLY" + Ubuntu 16.04.6 LTS

The root cause of the issue is with the openconnect VPN client package, MTU handling fail to negotiate.
Bug -> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1874257


How to install "libgtk1.2" on Ubuntu 12.04/64bit?

libgtk1.2 is no longer supported in 12.04.

You need to install libgtk2.0 and the packages are available in repository. To install libgtk2.0 use the command

 sudo apt-get install libgtk2.0

For dependencies and other information look here

Hope this helps.


In past, many of the Ubuntu themes had those Mac-Like looks. It's hard to say the exact theme just by looking at the image. However, I have one theme that has same visual looks. The name of the theme is mac-ithemes-v3 and is provided by old noobslab themes PPA. The problem is this theme is for Ubuntu 14.04 and hasn't been updated for later releases.

However, if you must own this theme, you can grab the deb package for Trusty and install it using dpkg -i.

wget -c https://launchpad.net/~noobslab/+archive/ubuntu/themes/+files/mac-ithemes-v3_3.12-c~trusty~NoobsLab.com_all.deb
sudo dpkg -i mac-ithemes-v3_3.12-c~trusty~NoobsLab.com_all.deb

You should now be able to use this theme (with some problem) in Xenial Xerus. This package has multiple themes included. You'd select Mbuntu-mb for that look.

Here is a screenshot of same CCSM program using the theme.


You can leave the password blank when generating the private keys, if you do so, it will not ask for a password when establishing the connection later.

rsync should work if you can establish a connection for "direct access" without a password, as long as you are using the same user (crontab -e). If you are running this from a root crontab (/etc/crontab or /etc/cron.*) then you also need to make rsync/ssh use the correct identity, you can do so with:

rsync -av -e "ssh -i /home/username/.ssh/id_rsa" /source/folder/ username@server:/destination/folder/


Since the /dev file system is created and populated at boot, the easiest way to restore /dev/log is to reboot the system in question.

Alternatively, if it was indeed a symbolic link, you know its former target and the target still exists, you can recreate it with:

sudo ln -s /run/systemd/journal/dev-log /dev/log


Error: No such device and Error: unknown file system

Like @guiverc suggests, it looks like you accidentially installed the thumbdrive's bootloader onto your harddisk.

Does your PC boot Lubuntu when you reconnect flashdrive#1 (the one you installed Lubuntu to) but set your BIOS to boot from your ubuntu-harddisk?

If yes, remove your Lubuntu-Drive again and reboot to the error message. From there you can use this guide:

https://linuxhint.com/grub_rescue_ubuntu_1804/

to restore Grub into booting Ubuntu. It explains how to use the grub cli to find your original Ubuntu-installation, boot into it manually and reinstall grub.


How can I change the system language to Sanskrit? (not asking for typing help)

For languages with very few translations no language packs are built, and they are not included as options in the GUIs. I see that Sanskrit was an option in Trusty, but not later.

So to make Sanskrit reappear as an option, helping with improving the translation coverage is the best way.

If you have particular applications where Sanskrit translations are available, you can enable it manually:

Generate the Sanskrit locale:

sudo locale-gen sa_IN

Add these lines to your ~/.profile file:

export LANG=sa_IN.UTF-8
export LANGUAGE=sa


If I understand correctly, you have windows and ubuntu installed in your PC.
Now, you want to move to ubuntu completely.

If you have already backed up your important files to external hard disk, you can simply increase the size of ubuntu partition by Gparted.

If your ubuntu partition is NOT the first partion, then you will have to reinstall Ubuntu, by formatting and using new partition for the whole hard disk

For more information on GPARTED, check http://gparted.org/


Merge and edit two cell phone videos for youtube.com

On my Ubuntu box I use shotcut. It's a bit clonky for certain things, but it's powerful for a totally free (Open Source) software.

What you are asking is a matter of drag & drop each clip to the screen, then from the screen to the timeline. Make sure it works (click play) and then do Export. As you'll notice the interface is not 100% flowless, but in the end I have videos that work as is on YouTube.

IMPORTANT: make sure to get the latest and install it "by hand". Otherwise you're likely to get an old version (the authors generate new versions quickly and the one in Ubuntu is not being updated all the time.)


If i upgrade to ubuntu 13.04 from 12.04 will i lose my data and apps?

The simple answer is no. But it will be good to make a backup. See Upgrade from Ubuntu 12.10 to 13.04.


You have to create a description, in a .desktop file, under the ~/.local/share/applications directory.

E.g. newprog.desktop :

[Desktop Entry]
Type=Application
Exec=/usr/bin/NEWPROG
Hidden=false
Name=My-Fancy-Name
Comment=Something I never want to say :-)


At the boot: prompt type live initrd=initrd.gz console=ttyS0,115200 and hit Enter.
This will boot the Ubuntu 20.04 installation process over the ttyS0 serial port.


How to properly disable systemd-resolved

The sporadic problem sounds like bugs 1396379 and 1805027 and 1804487.  I found the solution to my sporadic 18.04 name resolution failures was to add the package libnss-resolve.  This altered the /etc/nsswitch.conf hosts line to be:

hosts:          files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns myhostname

No other changes were needed to the default install. Leave  the /etc/resolv.conf link to the default stub-resolv.conf.


How can I remove persistence after making changes?

Adding radeon.modeset=0 to UNetbootin Non-Persistent Install

If booting BIOS mode boot the UNetbootin USB and press Tab, type a space then toram.

Once booted and stable, unplug and replug the USB.

Edit /cdrom/boot/grub/grub.cfg, adding radeon.modeset=0 after quiet splash in the first menuentry

Then Edit /cdrom/syslinux.cfg, adding radeon.modeset=0 after quiet splash in the first menu item.

This change will be permanent.
If you are booting in UEFI mode press e at the boot menu and add toram after quiet splash.
Once booted edit grub.cfg and syslinux.cfg as above.
You can also edit the boot files running from another Live USB or desktop. Booted from another Live USB the paths are /media/xubuntu/USBNAME/syslinux.cfg and /media/xubuntu/USBNAME/boot/grub/grub.cfg where USBNAME is the name of the USB. In this case cdrom is not on the path.


Firefox only uses its default font, can't use any others

I finally found out the issue: I had a fonts-twemoji-svginot PPA package installed that was messing up Firefox. I installed it to work around an issue with emojis in Thunderbird subject lines being super big and I guess it messed up Firefox. Uninstalling it fixed Firefox and I guess I'll need to figure out another way to fix Thunderbird.


ClamAV detects certain files on the PlayOnLinux directory as malware, should I be concerned?

True, "Linux is virus free" is a myth. And it's also an extremely inaccurate and vague sentence.

You can read a lot on this topic, and there are a lot of articles explaining you what kind of "virus" (believe me, it's the wrong word to define such things, but let's use it for this discussion) are out there, how a "virus" may harm you, and how unlikely this event can be on a desktop system.

To start I suggest you to read Is Linux Immune to Viruses?

Actually if you:

use a recent release of Ubuntu that's currently supported
install only packages from main repositories and Ubuntu Software Center
set a complex user password
keep your system constantly updated
setup ufw firewall

the odds that you get any harm from a "virus" or "malware" are extremely low, approaching zero.

The best thing you can do to protect yourself from potentially harmful "viruses" is to read and learn about system inner workings and security. No software can be as effective as "security device" as knowledge. ;-)

About your experiences: since PlayOnLinux uses Wine to make Windows software run on GNU/Linux, you are able to run most of the software that can run on Microsoft Windows, even viruses. Actually they are a lot less harmful on Ubuntu than on Windows, since Wine isolate them from most of the system, but still they can do something.

What ClamAV found were the exactly the same Windows viruses you could get on Windows. Maybe you got them trying to install something from untrustworthy sources, that you ought to avoid anyway.

So, in conclusion, it's practically true that "Linux is virus free", as long as you stick on the 5 points above. ;-)


As you've said, Kodak don't currently distribute Linux drivers for their machines, but the internet is a vast place, and, thanks to the amount of more advanced users using Ubuntu, their are some available.

They are not official, nor are they overly tested, but they do sometimes work.

Unfortunately, there are known bugs with the C Series printers. Fortunately, you can download and install for free, here.

The project is called c2esp, for future reference.


Why are there two network indicators with ubuntu-desktop in Kubuntu

Disable nm-applet from loading at startup of Unity by the use of this command:

 sudo sed --in-place 's/NotShowIn=KDE/NotShowIn=Unity/g' /etc/xdg/autostart/nm-applet.desktop


Kodak ESP Aio prints good on Ubuntu 12.04, butnothing finds the scanner. Any ideas, please?

just spent some time poking around, starting to git clone the "sane backends" and then wondered if they were already present...hooray,it seems in 12.04 quantal the sane backends are already there. I was able to find my scanner's conf file in /etc/sane.d/
I specifically have a Kodak AiO ESP5250
I did need to open & edit the kodakaio.conf file

FIRST even tho it said autodetect for network was enabled, i needed to uncomment the line for my ESP5250 network connection

and
SECOND i also needed to change my ip address to reflect what my printer said on its little control panel (under "network settings"->"view network configuration"->IP address) my scanner said 192.168.1.7, instead of the prepopulated/default of 192.169.1.4 that was there

hope it helps


Solved: deleted offending printer and reinstalled.  Now everything is now working OK.

I still have no idea what went wrong though...


It seems some kind  file missing. Try updating your system through update center and then try it again.

In my experience with some modems (ZTE and Huawei) the availability to use the Broadband modem is based on the behaviour of the modem itself. This is because these modems were designed to be functioning on specific OS. IF you have the recommended software for your USB modem try installing it,then connecting via it.

Else try dowloading it using this Rapidshare link and install this after connecting the modem and then try reconnecting after restarting.


I think what you may want to try is:

sudo apt-get update;

sudo apt-get install update-manager-core

Then go for:

sudo do-release-upgrade


It seems that switching over to lightdm  worked. sudo dpkg-reconfigure lighdm. No idea why.


How to install full ubuntu on a USB drive

Set the USB partition to type ext4, and set the mount point to "/" . You could optionally delete the existing partition first, then create two partitions on the jumpdrive: a 1G swap partition, and the root ( "/" ) partition that uses the rest of the space. The swap space is nice to have but not really essential.


This grey screen appears if an error occurred during the last shutdown.
The first option 'ubuntu with linux 3.2.0-38-generic' should start ubuntu as expected.
If ubuntu doesn't start with the first option, you'd have to select recovery mode, but without further info it's not possible to give further instructions.


Problems with Wireless cards are common, due to the large number of cards.

As you are using Ubuntu 12.04, this version permits you upgrade your kernel to the
ones used by the new versions of ubuntu, such Ubuntu 13.10 (Saucy Salamander). So you
just need to install the new kernel from the command line:

sudo apt-get install linux-generic-lts-saucy

This will install the kernel version 3.11. Normally installing the new versions of the kernel sanes the problems with wireless cards.

Hope this helps.


I had the same problem which was also due to an upgrade to one of my institute’s servers. I managed to mount the share by adding the vers=3.0 option to fstab without the -o argument.

sudo mount -t cifs //192.168.1.100/Movies /mnt/Media vers=3.0,user=plex,uid=111,gid=1000,pass=PASSWORD


Do you mean the screen when you choose the system to boot, or the screen when you enter username and password? If you mean the second one, then you can try: sudo dpkg-reconfigure lightdm, then choose one from the list:

lightdm: default for Ubuntu 11.10, 12.04 (and 11.04 if I remember it correctly)
gdm: default for Ubuntu 10.10 and older ones.
kdm: for KDE.
Of course, if some of them does not display, then you have to install it. For example: sudo apt-get install gdm


Change Owner From “root” in VMware's Shared Folder

On VirtualBox, it is a simple fix. Run this first to add user to vboxsf group:

sudo adduser mysuser vboxsf

Then run either the command you were trying, or the one below to change group ownership as well.

sudo chown hooman:hooman simple-todos/

Add -R if you would like to recursively change ownership in the directory.

On VMWare, there is a little more to it. Try using this guide.


mod_auth_kerb/apache 2.4 not authenticating for sub folders

Do you by chance have shibboleth on that server.  Shibboleth seems to break basic auth in that valid-user doesn't work.  Try

ShibCompatValidUser On
in apache conf.

http://trwa.ca/2014/10/shibboleth-2-5-apache-2-4-and-breaking-apache-basic-auth/

For me, SVNParentPath seems to not work.  If I use SVNPath it works as expected (but then I have to configure an entry in the apache conf for every repo)

And I too think something is broken.  I upgraded to ubuntu 14.04 a few months ago but only started using the repo's again now.


how to exclude ftp traffic from being routed trough vpn?

You can route ftp directly to internet with iptables

Here we shall take ftp for routing. Use mangle table of iptables for modifying the ftp packets.

sudo iptables -t mangle -A OUTPUT -p tcp --dport 21 -j MARK --set-mark 0x1

We are marking all packets with destination port 21 as 0x1 .

Now save and restart iptables.

sudo service iptables save
sudo service iptables restart

Next, create a new IP route table in /etc/iproute2/rt_tables by just giving an entry

100 ftptable

Write rule for ftp packets.

ip rule add fwmark 0x1 lookup ftptable

Add route at new table ftptable. All other traffic will go through the
vpn if is vpn set like default gateway, which can be seen by ip route show command.

Do this first time when you are connected to vpn.

We copy all entries except default gateway entry from main table.

sudo ip route show table main | grep -Ev ^default | while read ROUTE ; do ip route add table ftptable $ROUTE; done

Add default gateway entry for ftp packets to table ftptable

sudo ip route add default dev <your_interface> table ftptable

your_interfrace in command is you usual wifi or eth interface to access internet when you are not connected to internet.

Use ip route show table ftptable to show all routes at ftptable.

EDIT 1

Second way

Edit /etc/iproute2/rt_tables and add a new table by appending the following line:

100 ftptable

Configure your new routing table named ftptable with a default gateway and create rules to conditionally send traffic to that table.

ip route add default via <usual_gw_ip> dev <your_int> table ftptable
ip rule add fwmark 0x1 table ftptable

Your final annotated script would look like this:

# Populate secondary routing table
ip route add default via <usual_gw_ip> dev <your_int> table ftptable
# Anything with this fwmark will use the secondary routing table
ip rule add fwmark 0x1 table ftptable
# Mark these packets so that iproute can route it through ftptable
iptables -A OUTPUT -t mangle -o <your_int> -p tcp --dport 21 -j MARK --set-mark 1
# now rewrite the src-addr
iptables -A POSTROUTING -t nat -o <your_int> -p tcp --dport 21 -j SNAT --to <your_local_ip>

Try.

EDIT 2

When you are connected to vpn I guess that all traffic go trough them. In you routing table you will see default gw to tun0 interface.
Simple add route to route traffic to ftp server to different interface/ip

ip route add <your_ftp_server_ip/32> dev <your_exit_int>

<your_exit_int> - represent not tun interface example: eth0, ens160, ...


Okay, so for whatever reason you have a python package in your local package cache which provides Python 3, although it should be Python 2.

If you hopefully haven't messed up too much yet and apt-get still works, try running this:

sudo apt-get install python=2.7.3-0ubuntu2.2 python3

and remove your cached packages with

sudo apt-get clean

afterwards.

After everything got fixed again, you should probably also check your /var/log/apt/history.log and see which packages got removed when you uninstalled python3 earlier (which you should not have done) and reinstall them again.


Merging/joining a lot of csv files with numeric digits in the file name

If the order in which the files are concatenated is not important, use:

cat AB_20151127_120000_*_SEGMENT_FINAL.csv > AB_20151127_120000_SEGMENT_FINAL.csv

If the order is important, you'll have to get creative. If you know the number of segments, 599 for example, you can use brace expansion  (the \ is only there to let me print the command on two lines for readability):

cat AB_20151127_120000_{0..599}_SEGMENT_FINAL.csv > \
    AB_20151127_120000_SEGMENT_FINAL.csv

If you don't, you can still use brace expansion. Just choose a large enough number to be sure that all files will be included and ignore error messages about non-existant files:

cat AB_20151127_120000_{0..599}_SEGMENT_FINAL.csv > \
    AB_20151127_120000_SEGMENT_FINAL.csv 2>/dev/null

Alternatively, you can generate a list of sorted file names and use that:

cat $(printf '%s\n' AB_20151127_120000_*_SEGMENT_FINAL.csv | sort -nt_ -k4) > \
    AB_20151127_120000_SEGMENT_FINAL.csv

The printf will print each file name followed by a newline which is the passed to sort which will sort it numerically (-n) on the 4th field (-t4) where fields are defined by _ (-t_).


I have a huge boot fail....gnome power manager

If you could, could you boot into a recovery console as root and run the following command:

sudo dpkg-reconfigure gnome-power-manager

That might work.


Existing ubuntu image convert to reburn dvd for installation

Yes, this is exactly the site where you need to get the old releases' ISOs from.

However, it is disrecommended to install a End Of Life version of Ubuntu. You will receive neither real support, nor any security updates.

I doubt your friend will have problems with using Trusty or Utopic, since both use Unity as their default Desktop Environment, like Oneiric does. I doubt that your friend will even notice any difference.

If, however, you still plan to install Oneiric on his computer, you are free to do so. Then just get the correct ISO from the link in your question.

PS: If you have an USB stick with more than 1GB, use UNetBootin to extract the ISO to this empty stick. It will then behave like an Ubuntu DVD on boot. After the installation, you can wipe the stick and use it normally again. This will save you a DVD.


I know I am late to the party, but for those who find this through google:
Try launching the url from a different browser ;)

Explanation: If you set a bogus redirect rule in a config with a permanent switch, most browsers will remember this rule and cache it. For example chrome caches it in some internal file that can not be cleared by removing cookies and site data - you have to actually clear full browser history and all browsing data for the last x hours.


Which version of Ubuntu is recommened for Samsung NB R519

Burn your iso image of ubuntu-12.04.2-desktop and then try installing ubuntu by booting from the CD. If you have any doubt in installing via CD reffer installing ubuntu-12.04.2-desktop


Is there ever any danger of a program escaping it's alotted memory space with sudo?

I'd say no. Due to process isolation, every process only sees their own virtual memory block and can not access anything outside that.

See e.g. http://www.tldp.org/LDP/khg/HyperNews/get/memory/linuxmm.html and http://www.tldp.org/LDP/tlk/mm/memory.html for more information about memory management.

However, this only restricts the application from accidentally accessing memory it should not be touching, e.g. because of a wrongly set pointer (in C programs). The application could still issue system commands to access any hardware, including the full RAM, if it is running as root and explicitly written to do this. You wouldn't have to fear about such a thing if you write your own program though.


3G modem not being detected after instaling V mobile broadband

I think you can install Sakis3g , this is a 3g manager and this may work to solve your problem.

Note that, to do this you will need to uninstall usb-modeswitch.

Open a terminal window, and type these commands:

sudo bash

cd /usr/bin

wget 'http://www.sakis3g.org/versions/latest/sakis3g.gz'

Then, type this:

gunzip sakis3g.gz

chmod +x sakis3g

Run sakis3g from the terminal window:

sakis3g

Take a look through the menus , and optimize to your needs.

Hope it helps and solve your problem.


How can I reassign the semi-maximize keyboard shortcut?

Install CompizConfigSettingsManager ( sudo apt-get install compizconfig-settings-manager )

Go to "Grid" (under "Window Management") > "Bindings" (should be selected already).
From there, adjust the key bindings for 'Put Left' and 'Put Right'.


Ubuntu not so friendly to other softwares

General regarding flash on Linux

In case you really need flash - consider using Google Chrome instead of Mozilla Firefox.

Google Chrome should come with a bundled flash for Linux.

How to get Google Chrome for Linux

Download Chrome from the google page. The downloaded file should be a .deb file.

How to install local .deb

Either doubleclick the .deb or run the following command in a terminal

sudo dpkg -i /path/to/localfile.deb

Google Chrome should add a custom source to your system, which will be used in the future to update Chrome

Final general hint

It helps to create separate questions/posts for each question you might have.


On their handbook page under Recipe Actions you have two options, scale by yield or scale by factor. It sounds like you want the second one. Look for the Resize recipe button in the edit recipe page. Note that this will change the entire recipe each time you do this. Keep a backup copy of the original in case the scaling back and forth doesn't work out over time.

To request this as a feature, select Help/Report Bug in the menu. Type in your feature request. The KDE help document explaining this in greater detail is here.

To do this now, you need to use one of the many online recipe scaling calculators found through a search. You probably did this already, I'm just including all the options here.