Temporary failure resolving repository URLs

When I've encountered this error in the past, it was typically a network configuration issue.

Is your Ubuntu machine's IP address statically or dynamically assigned, and can you access any other websites or machines on your LAN at all?

If it's statically assigned and you can't access anything else either on the internet or your LAN, check your configuration file /etc/network/interfaces and try changing it from iface (name) inet static to iface (name) inet dhcp, and comment out all lines pertaining to that interface, then reboot to see if anything changes.

If you can access your LAN but not the internet, it's likely due to a DNS or default gateway misconfiguration. For a static connection, verify the gateway xxx.xxx.xxx.xxx line of your /etc/network/interfaces file. If your IP address is obtained through DHCP, it's likely a misconfiguration on your networking and not your host.


Samsung headphones' microphone not recognised on Macbook Pro

The important part here is where you are plugging the headset into?

If you plug a 4-pin CTIA headset into a laptops' headphone jack and there is another microphone jack next to it then this is usually not going to work, you need an adapter in that case.

Newer laptops have only one CTIA compatible headphone jack where these headsets work fine and you would need an adapter that does the whole thing in reverse (splits the combined microphone jack into a dedicated headphone and dedicated microphone jack).

Debugging Sound Problems
LP #1410618: MacBook Air 6,2 TRRS Headset Mic Not Working
Headset jacks on newer laptops by David Henningsson and related section in the Wiki


sh stands for "shell" and shell is the old, Unix like command line interpreter. An interpreter is an program that executes specific instructions written in a programming or scripting language. So basically you say "Execute that file for me".

You must understand that Linux doesn't really look at the file extension in order to determine what the file (or program) is. So as long as the content of that file is written in a way that the sh interpreter understands, it will work. But just for the sake of readability, such files are normally given an .sh extension and I have no idea what the developer was thinking when he gave that file a .txt extension..


The buttons do exactly the same as the buttons below the track pad.

They are located so you can use them easily when you use the red 'joystick' instead of the track pad.


Can I install ubuntu to a partition on my portable hard drive?

Yes, it is possible to do so. First of all install Ubuntu simply on your 300Gig partition. Notice that this will change all boot loaders. So then you have to fix boot loader as you like. To do so:

If you do not have any other ext partitions on your 500Gig or 1000Gig hard disks then you have to fix your MBR using some tools in hirenCD. Download HirenCD, burn it to a blank disk, remove 300Gig hard disk from your system, reboot your system with HirenCD and find Fix MBR.
every time that you want to boot to ubuntu you must change your first boot device from bios.
If you have some other ext partitions on your 500Gig or 1000Gig hard disks then try to install grub on one of them. This can be done with a live ubuntu using sudo grub-install --boot-directory=/media/extPartitionThatYouHaveMounted sda. (sda is important for you, in your case it might be sdb or sdc).
It is not needed to change first boot device from bios each time.
I think that it is possible to install grub on some ntfs partitions. There we have grub for dos, it is the same grub, but for windows based partitions. This would be like option 2.


I am not sure, but if your account is passworded and your partner's not then it might just load the unpassworded account. Try setting a test password on your partner's account and see what it will do, even for curiosity sake.


Skip Grub by default on 16.10 - Weird Grub behavior, is /etc/default/grub not being used?

It works for me with

GRUB_HIDDEN_TIMEOUT=

No value entered after the = sign
The menu will be displayed for the number of seconds designated by GRUB_TIMEOUT.

This and several other settings are described in the following link.

https://help.ubuntu.com/community/Grub2/Setup


There is nothing wrong with your system or your SSD. The trim command allows the operating system to inform a solid state drive (SSD) which blocks of data are no longer considered in use and can be wiped internally. So as you have 200 GB of free space, only 200 GB can be trimmed.
Or the other way around, because you have 200 GB of free space, 200 GB are getting trimmed.


Would like to get rid of new bar along the bottom of screen that shows active apps and workspaces

Alt+Super+Right click on any Gnome panel to get its properties or delete it.

Alt+hold Left click, to drag pannel to another place.

I think in theory it should be Alt-right click to get to the panel peoperties, but I think compiz now swallows this on default settings for something else.


can't configure Nvidia on my Sony Vaio VPCEH2C1E/W

NVidia uses its own configuration software rather than integrate with Ubuntu ones; it was installed along with your drivers. You will be able to configure your monitors, among other things, with the NVIDIA X Server Settings application.


cannot start application if not on correct path

You are going wrong. /usr/share/applications contains launcher file(config file), not executable file. You can't run .desktop file by sudo command. Instead of you should run executable file.

sudo /usr/share/applications/indicator-monitor

Why it's not working? There is no file named indicator-monitor but indicator-monitor.desktop.

cd /usr/share/applications && sudo indicator-monitor

Why it's working? your first command will go to applications folder. It's ok. But next command will run indicator-monitor (executable file from env path), not from current directory. Current directory needs ./ prefix.

How to find where is executable file? run the following command with application name

which indicator-monitor

Check out the env path run the following command
echo $PATH

printed directories are accessible from anywhere.


Videos streaming with JW Player not working

Not all Java implementations are the same (thank god for universal standards, right?). There are many different versions of Java that you can install on your system and every version really is different.

Your best luck to get it working, is to install Java from Oracle. There are many links online to show you how to do this (e.g. http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux). Should this link not work, just google "Oracle java ubuntu" and you'll get proper working links.

Please follow the instructions carefully.


Right click in the top part of Firefox e.g. in the tabs bar and select "Customize..." :

In the new window, check the "Title bar" box at the bottom left :

That being said, even if you don't have the tile bar, you can probably keep Firefox always on top from the icon of your desktop task bar (here LXQt) :


Can I print from Ubuntu using a printer installed in Guest OS (Windows XP)?

You can, there is several ways to do that, over network, or direct.
Here is explanation:http://linuxibos.blogspot.com/2012/05/seprinters-linux.html
On the bottom of that page you can download linux print server which is I think best solution for your problem.


How to use `cat` to see the top of a very long file?

Use less, which will show the file from the top, allowing you to scroll through it, just like man:

less my-verylong-file

Press q to exit.

If you're just interested in seeing the n first lines of a file, head may be an alternative:

head -n 25 filename

will show the 25 first lines of the file.

Same thing for the n last lines of a file with tail:

tail -n 25 filename


perhaps you mean VLC instead of VLS, you can find this app in the Ubuntu Software Center, just type in dash "Ubuntu software center" without the quotes and when it starts, just locate VLC media player through the search bar and you are done.

Hope this helps.


Cannot run Windows XP from GRUB (returns to GRUB)

hy i also tried it like u and i got windows working

i also have asked a question but answersers where poor - if sb answeres here also - pls relink it

i think its in important topic

i tried also this ways - maybe one is for you helpfull what i tried so far

tags: testdisk,linuxreader,...

http://vanceance.blogspot.co.at/2012/11/testdisk-on-my-pc.html


Reducing size of Sage after building from source

http://www.sagemath.org/doc/installation/source.html#make-targets

make distclean

... ever heard of RTFM? ;-)


Switching from input language to input language

As for myself, I have to switch between French, English and Russian. I installed all 3 Input sources in Settings/Region & language. I recently discovered I had to press Super Key+Shift+Space to switch keyboard setting.

When there are only 2 input sources, just press Super Key + Space.


Ubuntu Server 12.04 LTS: Can't manage to run my wireless connection

try reading:
https://wiki.archlinux.org/index.php/Wireless_network_configuration
this will help you list information or configure your device.
here is a thread where wlan0 does not show in ifconfig
https://bbs.archlinux.org/viewtopic.php?id=116182


Does booting on an external hard drive have limitations?

It'll be slower than a proper SATA connection most times. The notable exceptions are USB3 over SATA1 and SATA2, external eSATA[2] over internal SATA1.

By slower, we're talking a maximum throughput of about 40MB/s on USB2 vs over 100MB/s on a good 7200rpm drive connected via SATA2 (that's the 3gbps version). Advanced features like queuing might also not be supported. And finally, seek time will be somewhat slower too.

You also need a BIOS that supports booting to USB. Thankfully most modern BIOSes won't have an issue doing this.

One note for installation: You'll need to unmount the drive when you boot to the LiveCD because by default Ubuntu will try and mount it and that will interfere with the partitioning. You might have to keep unmounting drives as they appear (once partitioned) so the installer can continue unimpeded.

If you can plug it in internally, or use a eSATA port, do that.


Making all folders not readable to "others" - but keeping their original status regarding "write" and "execute"

find /path/to/directory/ -type d -exec chmod o-r {} \;

should work. For every folder, find executes chmod. chmod then removes the read bit for others.


The "System Problem Detected" popup usually means that a crash occured.

The apport application listens for crashes. When one occurs, it constructs a .crash file in /var/crash with plenty of details for bug triagers to understand how and why the crash occurred.

Look in /var/crash for the .crash file to learn the cause. It's an ordinary text file - you can open it in any text editor.


DOM is included by default in a PHP installation:

  Installation

  This extension is enabled by default.
  It may be disabled by using the
  following option at compile time:
  --disable-dom

Looking at the build rules, DOM is neither disabled, so it should be available.

Answering your question: no, there is no package like php4-domxml because PHP 5 includes it by default.


Installing clang 6.0 on Ubuntu 18.04 LTS Bionic

clang-6.0 is (at least currently) the default version of clang on Bionic:

$ apt-cache depends clang
clang
  Depends: clang-6.0
  Breaks: <clang-3.2>
  Breaks: <clang-3.3>
  Breaks: <clang-3.4>
  Breaks: <clang-3.5>
  Replaces: clang
  Replaces: <clang-3.2>
  Replaces: <clang-3.3>
  Replaces: <clang-3.4>
  Replaces: <clang-3.5>

$ apt-cache policy clang-6.0
clang-6.0:
  Installed: 1:6.0-1ubuntu2
  Candidate: 1:6.0-1ubuntu2
  Version table:
 *** 1:6.0-1ubuntu2 500
        500 http://ca.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

So, you just enable the universe repository and then install clang - either from the software store or from the command line using

sudo apt update
sudo apt install clang


Ubuntu and windows 10 dual boot GRUB shows windows recovery environment loader

Windows Recovery Environment is just a misleading name.

GRUB detects all boot loaders being installed on the machine.

The first Windows boot loader detected points to the Win RE.

When you select Windows Recovery Environment from GRUB -

... the complete Windows Boot Environment will be started.


If you are starting Putty from command line or use command line tool "plink", it is the same -X option.

In Putty's GUI, the option is under category Connection / SSH / X11, Enable X11 forwarding.


How to force firefox to show mobile version of websites?

Firefox

Showing the mobile version of websites is a built-in feature in Firefox. In Firefox select Tools -> Web Developer -> Responsive Design Mode and then from the dropdown menu select your device model.

Chromium/Chrome

Toggle the Device Mode button to turn Device Mode on or off. When Device Mode is on, the icon is blue (). When Device Mode is off, the icon is gray (). Select Tools -> Developer tools -> click Toogle device toolbar button (marked by the mouse cursor in the below screenshot -> click the black downward triangle ▾ to the right of "Responsive" to show the dropdown menu and select your device from the dropdown menu.


APT tries to install previously failed installation

The package oracle-java8-installer is partially installed, so Apt will constantly try to complete the installation. To stop it, you can completely remove the package with sudo apt remove oracle-java8-installer.


Programs affected by python version update coming with new ubuntu distribution

I have managed to fix it. Maybe is dirty and ugly (maybe not) and I hope the place I got the packages from is safe... Actually I found that the 3 missing packages are available in https://www.ubuntuupdates.org under packages (I downloaded and installed the 3 packages corresponding for the Xenial Xerus (ubuntu 16.04) since given that they are not available under the Bionic Beaver (ubuntu 18.04) I do not expect python 3 to be calling the wrong package. So  far it seems to work fine (odoo 9 server up and running as wanted). For python experts maybe this is dirty and ugly as stated, but at least seems to be a work around for not so skilled IT people as myself.


Unable to locate package libapache2-mod-auth-mysql

The package has been deleted in Ubuntu 15.10 (since it was deleted upstream in Debian 8). The module itself is apparently unmaintained, and mod_authn_dbd or mod_authz_dbd should be used instead.


How to start matlabR2016a using command prompt when you have not set up any symbolic links?

I just found out how to do it!!

type

matlabroot/bin/matlab

Where matlabroot is the name of the folder in which I installed MATLAB.


Start / Stop OpenVPN client on machine with OpenVPN server running (command line)

get ID of your process:

openvpn --config openvpn.ovpn --auth-user-pass auth --auth-nocache --nobind > /dev/null & pid=$!

Stop that process:

kill $pid


Make Python3.6 the default interpreter when running the command python filename.py in terminal?

On your system /usr/bin/python3 is likely a link to /usr/bin/python3.7 and can be changed to be /usr/bin/python3.6. You will also find that /usr/bin/python is a link to /usr/bin/python2.7×

The link for python3 can be changed to be /usr/bin/python3.6 but making python itself default to python3 is fraught with peril, because your system may have scripts written for python v2(*) with a #! /usr/bin/python shebang and changing python to be a python V3 interpreter will break them.

Another solution is to define a shell alias (in .bashrc)

alias python3=/usr/bin/python3.6
alias python=/usr/bin/python3.6

The good thing about this solution is that it only changes the meaning of python for interactive shells, in scripts the aliases are ignored and you still use the default python interpreter and so won't break anything.

(*) Find them with:

find /usr/ -type f -executable -exec grep -E -l '#!.+python[^3]' {} \;


Wifi Doesn't Work After Suspend (Ubuntu 14.04)

so I ended up doing what darksky suggested and updated to 16.10, which solved the issue. I went with 14.04 because I thought 16.10 would lag on my hardware but that does not seem to be an issue. Thank you everyone for the help!


Getting Error Log Information After a System Crash

If you have a second machine you can use it to receive netconsole logging.


Matlab 2014a interface started lagging on Ubuntu 14.04

The problem might be related to Matlab R2014a. I have a similar problem in Windows 7 64bit with an efficient laptop. When running some simple script over and over again doing modifications to parameters, Matlab freezes on every 2nd or 3rd "run". Same thing with typing in the command window. It seems like the program would fall asleep every another minute or something.


"Requires to install untrusted updates" Error in Update Manager

In the software centre go to edit and software sources (type in your password) one of your software sources in the other sources tab does not have a key.

This does not necessarily mean it is bad but that you would need a key

Check this url:

http://www.liberiangeek.net/2010/10/fix-requires-installation-untrusted-packages-error-ubuntu-10-10-maverick-meerkat/

This will help you to resolve the error.


Wifi slow and drops out with RT2790 on 17.10

I assume this is your router or access point:

Cell 01 - Address: <MAC '582A0A' [AC1]>
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=54/70  Signal level=-56 dBm
                    Encryption key:on
                    ESSID:"582A0A"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=000006a984e16b42
                    Extra: Last beacon: 4ms ago
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PS

First, check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

I have worked on more than one RT2800 case where connectivity was improved when the router was set to use 802.11A, B and G only; in other words, disabling N speeds. I suggest that you experiment with both modes.

Reboot the computer and the router and let us hear if there is any improvement.


It is as tricky as making it dual boot. If you did not go through too much hassle while installing it and have kept two OSes in different file systems then all you to do is remove OS entry from GRUB and then see if you can safely delete the partition on which that OS reside.


Switching between places and tree sidebar modes quits Nautilus

This was related with a nautilus extension: http://projects.flogisoft.com/nautilus-terminal/

I totally forgot that I posted this here. I just uninstalled the thing and all worked again smoothly. However I enjoyed the extension and try it again check if it's fixed.


Can I install squid on regular version of Ubuntu not the server version?

Follow the following steps:

sudo apt-get update to update your package index.
apt-cache showpkg "squid3" to check the package repo index/cache (/var/lib/apt/lists) for the detail availability of the package squid3 in the repos.
sudo apt-get install "squid3" to install the package.

If there is no package shown in the step two please post your repo entries in /etc/apt/sources.list here.


Can I Run Ubuntu from a USB Flash Drive on a Built PC with No Operating System?

You can do a Full install to the flash drive.
Most computers see a flash drive as just another hard drive.

A Full install will probably give you a better feel that running a Live or Persistent system.

If your new computer has lots of RAM, Ubuntu will run in the RAM, so there should not be issues with speed.

A Full install requires a larger flash drive than a persistent install, about 8GB minimum.

Follow OldFred's advice when it comes to UEFI.


no wireless on Kubuntu 14.04/ Dell Vostro 1540

The driver that seems to work best for your BCM4313 is brcmsmac and not wl. Let's remove wl and let brcmsmac take over. Please open a terminal and do:

sudo apt-get purge bcmwl-kernel-source

After it finishes, reboot. Your wireless should be working well.


xhost command in script fails when executed by initctl

"GUI for root user" is considered harmful*, but, here's an explanation of your problem:

xhost tells the X Server that it may/may not accept connections from other hosts.

When upstart runs your script, no user has logged in and started an X Server. Therefore, xhost has nobody to talk to.

You need to delay execution of your xhost command until after you've logged in. xhost also needs a definition of the DISPLAY environment variable (so it can find the X Server). man X shows the format of DISPLAY: hostname:displaynumber.screennumber.

Answer: You cannot run xhost through upstart - the context is not right.

root is all-powerful, and graphics programs don't show you all that they do.


Change color of background on login screen

On clicking change background (right click on background) The opening color apears right below  your wallpaper. change that to the default color of your liking. (A note about this is that im running ubuntu on crouton so I do not have a login screen upon opening this up. so I do not know if this worked.)


Disable RST for Installing ubuntu 20.4 Dual boot

Intel RST
You've got a single SSD/HDD set up in RAID mode, and the Ubuntu installer won't recognize your SSD/HDD until you switch your disk setting in the BIOS from RAID to AHCI.
Making that switch comes with some problems though, as Windows will no longer boot.
You don't need to reinstall Windows...
Below, you'll find two different ways to solve this problem. Some users found Choice #2 to be easier.
Make sure to have a backup of your important Windows files!
Choice #1: Looking at this article https://samnicholls.net/2016/01/14/how-to-switch-sata-raid-to-ahci-windows-10-xps-13/ will show you how to make the change without having to reinstall Windows.

Boot to Windows with your current SATA controller configuration
Open Device Manager
Expand Storage Controllers and identify the Intel SATA RAID Controller
View properties of the identified controller
On the Driver tab, click the Update driver… button
Browse my computer…, Let me pick…
Uncheck Show compatible hardware
Select Microsoft as manufacturer
Select Microsoft Storage Spaces Controller as model #
Accept that Windows cannot confirm that this driver is compatible
Save changes, reboot to BIOS and change RAID SATA Controller to AHCI
Save changes and reboot normally, hopefully to Windows

Now you should be able to install Ubuntu in a dual-boot configuration.

Choice #2: See http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/

 Right-click the Windows Start Menu. Choose Command Prompt (Admin).
 If you don’t see Command Prompt listed, it’s because you have already been updated to a later version of Windows.  If so, use this method instead to get to the Command Prompt:
Click the Start Button and type cmd
Right-click the result and select Run as administrator
Type this command and press ENTER: bcdedit /set {current} safeboot minimal
If this command does not work for you, try bcdedit /set safeboot minimal
Restart the computer and enter BIOS Setup (the key to press varies between systems).
Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
Save changes and exit Setup and Windows will automatically boot to Safe Mode.
Right-click the Windows Start Menu once more. Choose Command Prompt (Admin)
Type this command and press ENTER: bcdedit /deletevalue {current} safeboot
If you had to try the alternate command above, you will likely need to do so here also: bcdedit /deletevalue safeboot
Reboot once more and Windows will automatically start with AHCI drivers enabled.


if you have problem with opening dashboard credentials means check for the local.conf file for some things like the below which i had in my local.conf:

ADMIN_PASSWORD=password
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50

and also check for environment variables which you will have to set for running all openstack commands

create one admin-openrc file and add the following things

export OS_USERNAME=admin
export OS_PASSWORD=password
export OS_TENANT_NAME=admin
export OS_SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50


Install 2 linux distros in 2 separate disks

When i insert the cdrom for installation, i selected the second disk ( 80 GB ) to install ubuntu.

When grub installation started it recognised Debian as an exist linux operating system.

Now at boot it recognized two linux  os as i asked for.


High load but nothing shows up on system monitor, what could be the cause?

First, you should make sure you understand what load measures. I'm not sure what you are considering high load. If you have a dual core system, a load of 2.0 would mean that your system is constantly busy. If you have a single core system, then a load of 2.0 would be really bad. See http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages.

On the processes page, what do you have selected on the View dropdown menu button? You probably want to make sure you have "All Processes" selected. If you don't, things started by other users (likely root) like Xorg (which will use some memory) will not show up.


No option to install alongside Windows 7

I think that you already have 4 primary partitions for Windows 7 (Ubuntu cannot create its partitions because you cannot create more than 4 primary partitions) and so Ubuntu can't show you automatically to install along Windows 7. You have to create manually the space for Ubuntu with GParted and then restart the installation of Ubuntu.
Here is a guide on the dual booting Ubuntu-Windows:

http://ubuntuguide.org/wiki/Ubuntu:All#Dual-Booting_Windows_and_Ubuntu

If you are unsure when you are partitioning, ecc., please ask a new question here.


To make it a short answer: It's a network issue.

The way I see the scenario is like this:

Now to correctly see where the problem is, in this case, we need to first check from the outer networks to the inner networks.

Make sure the router has internet. You can use the same host or another device connected to it to check this.
Make sure the Host has internet via the Router or any other source. To check simply send a ping to google.com for example like so: ping google.com.

If Point 1 and 2 are good (Your router is working great and has internet and your host has internet) then we proceed with the Guest and Virtualbox. It may be good to read how Wireless support is handled in VirtualBox by reading Wifi card on an virtualbox's ubuntu

We need to know the following information first:

There is no wireless connection inside the virtualbox environment. All "virtual" connections are in reference to cable/wired connected ones. So when you enable a Network card in your virtual guest, it is a virtual wired connection you are creating not a virtual wireless one.
The virtual connection from Host to Guest is independent of the type of connection your Host is connected to (Physically connected). If the host is connected via a wired or wireless connection, it does not matter or affect the virtual connection made from the Host to Guest because wired and wireless connections are used in the same way inside the Guest. Something similar to the following image:

If your host does not have internet access, your guest will not have it. The same goes that if your host has internet access and your connection from Host to Guest permits sharing the internet, then the guest will most probably have internet also (Default behavior with Virtualbox).
I will be using Virtualbox 4.1.20 which looks different from the one you are using (Might be same, I do not know). I will add the network image just to help and show the differences:

I will be using Ubuntu 12.04 as host and as Guest (This works the same in 12.10 or 13.04). In cases where Windows is the host you need to make sure the firewall is not blocking a particular port the guest will be using.
I assume that the Host is not using a proxy, just connected directly to the router via a wireless/wired connection.
The output from the Guest is the following with ifconfig and route:

Now to the points you want to solve:

Configure the network for the VM Ubuntu Server
Get VM to connect to internet
Get router to see the VM

Let me first mention that point 3 will be impossible unless the Virtualbox guess supports port forwarding. Your router will only see transfers made from your Guest as if they were transfers made from the actual Host. So without forwarding (Which is somewhat supported on the latest version) the router will never see the VM, only the Host.

There are of course ways to go around this like telling the host to forward stuff to the guest via the virtualbox engine. Or configuring (Easier I think) the guest for port forward. For example this:

So with this in mind we do the following in the Guest:

Test if the guest has Internet access with the common ping google.com approach.

If ping works then we know that an internet connection exists. The problem might be resolving the destination site.
Try the following:

/etc/init.d/network restart and/or dhclient
Verify that /etc/network/interface is correct. My example would be:

Change the Adapter Type in the Network Options in the Virtualbox Configuration Window.
Test out if the Ubuntu Desktop client or another OS works correctly. (Right now I only have the Desktop iso image of 12.10 and 12.04).


b). /dev/sda3 is the partition that you mount, /media/data/ is the place in the directory tree where the files on the partition are found. The mount command links the partition (or drive) to the directory tree. You can talk about the amount of space on /dev/sda3, or whether it is full or not, but you don't access files and directories through /dev/sda3/.


Using DKIM in my server for multiple domains (websites)

Good! I figured this out from the post mentioned in the question. I made a kind of mix between the answer itself and the links provided in it. Specially the fourth link is the one I used.

So the thing goes like this. Suppose you've got a server or VPS and make one of your domains to be the main domain and be used as the server name (in my example: mydomain.com).

So, first of all, we'll change to root to make things easier, but you can skip this step and use sudo before every command.

sudo su

Now, we install OpenDKIM:

apt-get install opendkim opendkim-tools

Let's fix the configuration file. We're opening /etc/opendkim.conf for editing. I use nano, but it's the same with other editor.

nano /etc/opendkim.conf

Once opened, make it look like this. If you feel comfortable, you can change some options, but the Domain, KeyFile and Selector must remain commented.

# This is a basic configuration that can easily be adapted to suit a standard
# installation. For more advanced options, see opendkim.conf(5) and/or
# /usr/share/doc/opendkim/examples/opendkim.conf.sample.
#
#Domain                  example.com
#KeyFile                 /etc/opendkim/201205.private
#Selector                201205
#
# Commonly-used options
Canonicalization        relaxed/simple
Mode                    sv
SubDomains              yes
# Log to syslog
Syslog                  yes
LogWhy                  yes
# Required to use local socket with MTAs that access the socket as a non-
# privileged user (e.g. Postfix)
UMask                   022
UserID                  opendkim:opendkim
#
KeyTable                /etc/opendkim/KeyTable
SigningTable            /etc/opendkim/SigningTable
ExternalIgnoreList      /etc/opendkim/TrustedHosts
InternalHosts           /etc/opendkim/TrustedHosts
#
Socket                  inet:8891@localhost
#EOF

Next, we create some of the folder and files that will hold information about what should OpenDKIM use and process. For now, the TrustedHosts file. We create and edit it:

mkdir /etc/opendkim
nano /etc/opendkim/TrustedHosts

We must put into this file a list of trusted addresses: localhost and 127.0.0.1, and your server name and IP:

127.0.0.1
localhost
192.99.34.121
mydomain.com

Now we edit OpenDKIM config file.

nano /etc/default/opendkim

And add these lines at the end of the file. They'll tell OpenDKIM in which port it should expect signing requests:

SOCKET="inet:8891@localhost"

We open the Postfix config file.

nano /etc/postfix/main.cf

And add these lines to the end of the file. They'll tell Postfix that it should send e-mails to be signed and where.

milter_default_action = accept
milter_protocol = 6
smtpd_milters = inet:localhost:8891
non_smtpd_milters = inet:localhost:8891

If you're not adding domains right now, you can restart everything, so the configuration takes effect.

/etc/init.d/opendkim restart
/etc/init.d/postfix reload
/etc/init.d/postfix restart

Done! The server is ready to work with DKIM. Now, you need to add your domains to this system. The following process is the same for all the domains you want to add. I'll use otherdomain.com for the example, replace it with your own.

Remember I was root from before, but if you're not, run sudo su or precede your commands with the keyword sudo.

sudo su

First, we create a directory for our domain and go inside of it:

mkdir -p /etc/opendkim/keys/otherdomain.com
cd /etc/opendkim/keys/otherdomain.com

Now we generate a key for the domain:

opendkim-genkey -r -d otherdomain.com

We give the OpenDKIM user ownership of the newly created file:

chown opendkim:opendkim default.private

And we open the KeyTable file to add our new key for our new domain:

nano /etc/opendkim/KeyTable

We add it to the end of the file (after all other domains we may have here):

default._domainkey.otherdomain.com otherdomain.com:default:/etc/opendkim/keys/otherdomain.com/default.private

We open the SigningTable file.

nano /etc/opendkim/SigningTable

And append at the end of the file (again, we'll have one line for each domain):

otherdomain.com default._domainkey.otherdomain.com

This SigningTable lists all mails which get signed. Just by adding a domain name, all mails from that domain will be signed.

I'm not sure of the necessity to do the next step, but I just did it, just in case... We open the TrustedHosts file.

nano /etc/opendkim/TrustedHosts

And add at the end of the file:

otherdomain.com

One last thing: we show the contents of the file /etc/opendkim/keys/otherdomain.com/default.txt.

cat /etc/opendkim/keys/otherdomain.com/default.txt

And add the information between the quotes to a TXT record in the DNS Zone of the domain, and we must also use default._domainkey as the name of the record. NOTE: "between the quotes" is the text that starts with "v=DKIM1;k=rsa; p=WIGfM...".

If we're done adding domains (by now), we restart everything to apply the changes.

/etc/init.d/opendkim restart
/etc/init.d/postfix reload
/etc/init.d/postfix restart

Done!


It seems the video is using GoToMeeting codec which is not supported on Linux. I searched the Internet and found this forum thread.
There was a link to this page which was provided to be helpful. I read it, as far as I understand, you need to have Wine, mplayer, w32codecs and gotomeeting codec to play it via Wine
I'm quoting the text below:

If you want to watch a GoToMeeting video on Linux (g2m3 codec)
You'll need to install mplayer, win32 codecs, wine, the gotomeeting codec (copy the G2M.dll codec to /usr/lib/codecs). Then run the video with WMV. You also might want to see this post on downloading the g2m3 codec.

Apparently, The process is as follows:

Install Wine with sudo apt-get install wine

Install mplayer with sudo apt-get install mplayer. You may want to install a front-end for mplayer. Try smplayer with sudo apt-get install smplayer

Enable the medibuntu repository by going to this help page.

After adding it, install w32codecs with sudo apt-get install w32codecs.

Then Download the free gotoMeeting codec from here. Install the downloaded .exe file with Wine.

After installation, try to play the file using smplayer or mplayer.
Don't forget to copy the G2M.dll file which is installed via Wine into /usr/lib/codecs directory. Most probably, you will find that file under .wine directory which is hidden in your home directory. You can search for that file using nautilus search feature.

For further info, you may want to visit these links:

http://onlinemeeting.lefora.com/2009/12/08/guide-to-using-gotomeeting-on-linux/
http://onlinemeeting.lefora.com/2009/12/08/g2m3-codec-download/#post0
http://ubuntuforums.org/showthread.php?t=1806787
And another interesting thread on Ubuntu forum

Hope this answer will help.


A more flexible way to manage permission on files is to use ACL.

sudo setfacl -m u:popey:rw /dev/input/eventx

If you really need to make this permanent then you can use an udev rules that set it for your event input device

add a file /etc/udev/rules.d/99-userdev-input.rules with:

KERNEL=="event*", SUBSYSTEM=="input", RUN+="/usr/bin/setfacl -m u:popey:rw $env{DEVNAME}"

you can check the ACLs permission with

getfacl /dev/input/event*


It appears Gem does not respect or know about the systemwide proxy settings. To use a proxy, Gem requires that:

The http proxy be specified as an environment variable
Gem told to use this proxy via command-line switch or via .gemrc

So, in your terminal session, first specify the proxy, assuming it is on port 12345 (change as appropriate): export HTTP_PROXY=http://10.8.8.13:12345

and then invoke Gem with the -p switch at the end: sudo gem install bundler -p

To make this persistent, you can set HTTP_PROXY in your .bashrc (other console programs, including wget and curl will also use this if it is set) and for gem, add the line --http-proxy to $HOME/.gemrc.


Yes, instead of using make install you can use the checkinstall utility.

What this does is instead of using make to copy all the required files directly to your file system, checkinstall runs make install in a virtual environment, waits till it completes, then compiles the resulting "installed" files into a .deb package.

The typical way of running checkinstall:

./configure
make
sudo checkinstall

During checkinstall you give the package a name and version number.

You can then install this .deb package with sudo dpkg -i packagename.deb and then dpkg (and therefore also APT) will know that this package is installed.  (It won't, however, know what packages it depends on, but most stuff you compile yourself will be self-sufficient, maybe statically linked).

If the package name you chose matches the package name of a package in the repos, then it will be treated by APT as another choice of version for that package - and if it's higher than the version in the repos, it will by default leave it alone.

This is a relatively clean way to install things, too, because it lets you "uninstall" the software easily too.


You can try to reinstall gnome-control-center from terminal:

sudo apt-get update
sudo apt-get install --reinstall gnome-control-center


Mounting and Enabling Write Access to Windows Drive

Have you tried unmounting the mounted drive?

umount /dev/sda1

After that you should be able to mount the drive using Nautilus.  You might want to consider mounting your samba shares by editing your /etc/fstab.  It should look something like this:

//192.168.0.0/directory /mnt/mountpoint smbfs user,credentials=/etc/samba/cred-file 0 0 0

Good luck!


Webex sound hangs in audio conference mode

It is supposed that pulseaudio (precisely the communication between pulseaudio and alsa) causes the problem. And the solution is to remove pulseaudio and use alsa audio server directly. You can refer to below link and give it a try. I've it done today but don't yet have a webex meeting chance to confirm if it works. Good luck.

WebEx audio doesn't work on 12.04 LTS 32-bit


I hope you have a Live USB already , if not you have to create it .

get pendrivelinux software , for creating Live USB from windows .

2.follow these steps

Select Ubuntu Desktop Edition from the dropdown list.

click at browse and select your ISO file .Then click at create .this will create a live USB for you from windows .

for this part credit goes here :Ubuntu.com

Now we have to configure the BIOS settings as Removal disk should be as 1st boot priority and HDD as 2nd . Now connect your USB and your PC will boot and take you to installation process .

After Ubuntu loading , you will get like this  , choose   Install Ubuntu .Then it will directs you to Preparing to install Ubuntu where it will check about minimum requirement . Internet connection doesn't matter but you should have minimum empty space as its mentioned .Then click at continue.Then next step is allocate drive step ,look at the image . , here you have to choose what kind of install you want to give . each type have its clear description , so you can easily understand . there partitioning you have to mention . make sure that you have selected an empty partition for Ubuntu install or a partition which you dont want .

you have to select the partition and you have to select it as EXT4/EXT3 and then mount point as / then click at create . Size is your wish but make sure about the minimum size (> 5 GB) .Creating swap is a good move .

more information on swap will be here : swapfaq.

Remaining steps are something like keyboard layout,languages and times Zones . I hope you can handle them safely .

Credit goes to :techspot.com softpedia


Print text file every three line start at 2nd line


localhost/phpmyadmin showing error access denied

You have probably misconfigured PHPMyAdmin.

You can reconfigure it by using sudo dpkg-reconfigure phpmyadmin.


You have provided excerpts from a context diff, which shows both lines that are the same in both files and lines that are changed. However, the excerpts you have selected don't actually show any changed lines. (Those would be preceded with - or + characters, depending on whether they're being removed or added.)

@@ -15,4 +22,6 @@ means that 4 lines starting with line 15 in the old file are are changed (or not changed, but shown as context), and correspond to 6 lines starting with line 22 in the new file. (The simplest and overwhelmingly most common way for this to occur is that the number of lines added in the new file exceeds the number of lines removed in the new file by 7, such that what started on line 15 in the old file starts on line 22 in the new file, prior to application of the changes about to be specified.)

Since this is a context diff, it provides some lines for context that don't specify changes. This is useful to allow people editing the files (developers/maintainers, when it's source code, as in this case) to know what's going on by skimming the diff. But it has the other useful purpose of making it possible, in many cases, to apply a diff created against one version of a file against another version of the same file, provided that it doesn't change the exact same lines that were already changed (i.e., that were changed after the diff was created but before it is being applied).

The following lines are presumably present, as context, in the diff, because there was a change shortly before them (so they are context provided after a change):

if __name__ == "__main__":
    myparams = {"server":"mpilgrim", \

Whereas these lines are presumably present, as context, in the diff, because there is going to be a change shortly after them (so they are context provided before a change):

                     "pwd":"secret" \
                     }

These lines are presumably not sufficiently close to any change specified in the diff to be included as context:

                    "database":"master", \
                    "uid":"sa", \

That's why they seem as though they are missing in the diff. They're not really missing, because a diff is not supposed to show you the entire file. The take home message of all this is that their absence is not because the diff is specifying that they be removed. It is certainly not specifying that--if it were, it would have to include them (with - signs before them to indicate their removal).

(I say presumably above not because there is any strong likelihood that this isn't what is going on, but because while the diff utility will create diffs with specified numbers of before and after context lines, you could, if you wanted, manually create or modify a diff so that it had more or fewer context lines in some places than in others, and it would still be a valid diff, provided that, where necessary, the numbers in @@ lines where changed to match.)

For more information about diff (the diff, patch, diff3, and sdiff utilities, and also the diff/patch format), see the GNU diff documentation. In particular, you may be interested in the section on the part about the unified format.


With wget command you can use:

wget -c -A '*.mp3' -r -l 1 -nd http://example.org/musics/

-c: continue getting a partially-downloaded file.
-A: only accept mp3 files. change this format with another format you want to download.
-r: recurse
-l 1: one level deep (ie, only files directly linked from this page)
-nd: don't create a directory structure, just download all the files into current directory.


Can't start an application as service, but running as standalone process simply works

You have to remove /var/run/cassandra folder hence it has wrong permissions:

sudo rm -rf /var/run/cassandra

Or you can fix permissions manually:

sudo chmod 750 /var/run/cassandra

Then start Cassandra as service:

sudo service cassandra start

Some explanations

Instructions of file permissions you can find here.

It is safe to delete that folder because it recreates with right permissions and content. But do not delete it once it works correct. It may result in loss of data or incorrect behavior.
chmod 750 decrypts as rwxr-x--- permissions. It allows read-write-execute to the user, read-execute to the group and nothing to others. For Cassandra, it is enough to set permissions so.


There is no opensync gui yet, as soon as opensync stabilises enough someone will make a graphical front end that will rock.


I just installed a 14.04 32 bit update, and now I get no Video using N-Vidia drivers

Had the same problem today, here's what helped me:

Boot into recovery mode and get into root shell (screenshots).
Make root partition writable: mount -o remount rw /
Remove all nvidia packages: apt-get remove --purge nvidia*
Reboot into normal mode: reboot

Now you are using open source Nouveau driver. If you wish, you can reenable Nvidia binary driver.


Is there an "install without bloatware" option for Ubuntu?

Most Ubuntu flavours at 18.04 now support a "minimal" install option.  This would install a browser and a small number of system utilities but most of the apps would be removed.


BASH_VERSION not set and .bashrc not sourced in the interactive shell

This user's shell is /bin/sh. This is a smaller shell, which uses fewer resources than bash but offers fewer programming features and next to no interactive features.

Run sudo chsh -s /bin/bash harry to change the user's login shell to bash. This changes the user entry in /etc/passwd (don't edit that file directly unless you know what you're doing).

Setting the SHELL environment variable tells applications to run a different shell but has no effect on the currently running shell.


Wireless Internet Issues - Intel Wireless, Ubuntu 18.04

What Worked

I previously avoided using alternate network managers because in all of my research and testing I found multiple blog posts and AskUbuntu answers claiming that WICD hasn't been updated since 2012, that NetworkManager has been better since 16.04, that many tools for network management don't support multiple networks (making them useless for a laptop that moves from place to place), etc

I ultimately decided to give it a chance. Step-by-step (for anyone having a similar issue and following along):

I opened Ubuntu Software and searched for "Synaptic" -- basically a superior version of Ubuntu Software. I installed this
Using Synaptic I searched for and installed "wicd". Upon selecting wicd it auto-selected several other packages. I didn't bother changing any defaults
I rebooted my computer
I hit the Windows key to open the app launcher, and searched for "wicd" and launched it
I selected and connected to my phone's hot spot (which worked this time) -- it doesn't need to be a phone's hot spot, though. Any wireless network will work
Now connected to the internet, I used Synaptic to uninstall network-manager
I rebooted my computer once more

At the very least I was able to connect to my phone's hot spot, so I think things are looking up. I'll connect to my home network and see if I can stay online all day without losing internet.

Caveat

Using Wicd caused all of my connection and stability issues to go away entirely. Now once I'm online, I stay online all day. I can also now connect to my phone's hotspot. However, it now takes 2-3 minutes to initially connect when I wake my computer from sleep or first turn it on. This isn't the end of the world, but it can be a bit annoying.


You can set the cursor speed in two ways:

Set an option in /usr/share/X11/xorg.conf.d/40-libinput.conf

On original 16.04, or 16.04.2 stack it is 90-libinput.conf.

The option is called "AccelSpeed". It is a float number between -1 and 1.

Example:

Option "AccelSpeed" "-0.5"

will make cursor slower.

To test setting before you set it in the conf file you can use xinput command. Run it this way:

xinput set-prop ID "libinput Accel Speed" -0.5

The ID is your touchpad ID in xinput output.

You can check props by

xinput list-props ID

The xinput setting is not persistent and will be reset after a reboot.

Note: The option in xinput is with space Accel Speed and there is no space in the conf file option AccelSpeed.

If you want to see what are other settings, refer to this manual:

http://manpages.ubuntu.com/manpages/zesty/man4/libinput.4.html


How to install ubuntu on windows 7 using ISO with no disk?

The easiest way is to use a USB drive.

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

If you are using Windows you should use Unetbootin:

http://unetbootin.sourceforge.net/

or you can download it for Ubuntu from the Software Center.

It is easy to use. Select "Disk image" then click on the "..." button to select your Ubuntu ISO. Before you click on "OK" be sure to select the right USB drive.


I have a hunch, that actually the applications are stopped roughly around the same time, however the windows itself are destroyed at a different time. These are minor programming issues - if this is the case.


DLNA Media Server and external subtitles

As far as I know there is not much options, official DLNA specification say nothing about external subtitles. There are two DLNA media servers:

Plex Media Server, it works by default with LG TV's and Samsung after installing official client on TV - https://apps.ubuntu.com/cat/applications/plexmediaserver/. My favourite media server, has a lot of features like media library with descriptions, watched/unwatched status
Serviio - http://www.serviio.org/, cannot tell how does it work


How to fix or re-install the broken packages resulting from updates installation?

This seems to be an issue with the python3-software-properties package or some of its configuration files, that might be providing inaccurate information to apt-get. I thus suggest you to purge this package:

sudo apt-get purge python3-software-properties

And then install muon:

sudo apt-get install muon

This later command will force a fresh install of python3-software-properties and any other packages muon may depend upon.

For more details on apt-get purge, I suggest this answer.


Why can't I upgrade to Ubuntu 13.04 using Update Manager?

Go to System Settings --> Software & Updates, then in the Software & Updates window, go to the Updates tab. Change the option Notify me of a new Ubuntu version to For any new version. Then go back and run update manager.

Basically the default setting only lets you upgrade to LTS versions and 13.04 is not LTS.


Indicator-weather is not automatically launched at first. You must locate it within your Applications in Unity and open it from there. If it still does not load automatically after that, try loading indicator-weather into your Startup Applications.


RADIUS is ignoring request to authentication address

To fix the problem I had to comment out client localhost { and ipaddr = 127.0.0.1 in /etc/freeradius/clients.conf.

Comment out the following

#client localhost {

        #  Allowed values are:
        #       dotted quad (1.2.3.4)
        #       hostname    (radius.example.com)
#       ipaddr = 127.0.0.1

        #  OR, you can use an IPv6 address, but not both
        #  at the same time.
#       ipv6addr = ::   # any.  ::1 == localhost

and then add

client openwrt {
        ipaddr = 192.168.2.1
        secret = testing123
        require_message_authenticator = yes

Allow port 1812 and 1813

sudo ufw allow 1812

sudo ufw allow 1813

Now my router uses radius.


Ubuntu 16.04 ssh: sign_and_send_pubkey: signing failed: agent refused operation

Looks like an ssh-agent is running already but it can not find any keys attached. To solve this add the private key identities to the authentication agent like so:

ssh-add

Then you can ssh into your server.

in addition, you can see the list of fingerprints of all identities currently added by:

ssh-add -l


python-is-python3 package in Ubuntu 20.04 - what is it and what does it actually do?

As the package description you linked to says:

In Ubuntu, all python packages use explicit python3 or python2 interpreter and do not use unversioned /usr/bin/python at all ... No packages may declare dependencies on this package.

So, all official Ubuntu packages will depend explicitly on "python2" or "python3", and invoke the appropriate command. The default "python" command is deliberately undefined so that any scripts referencing it have to be updated to unambiguously depend on one version or the other.
However, users may have code that relies on the "python" command being available, and know that they can safely point it across their whole system to one version or the other. The python-is-python3 package (and its counterpart, python-is-python2) are a convenient way to set up a symlink for this purpose.

Does python-is-python3 really just create a single symlink? It seems odd to introduce a package for such a bare bones purpose.

Linux distributions are extremely complex systems made up of a large number of simple components. The power of package managers comes in their flexibility to do simple things like this in a unified way. For instance, a server setup script might have a long list of apt packages that an application needs to be installed, and can simply include python-is-python3 in that list. Shipping a package for this purpose is considerably simpler than having a user guide explaining how to manage the symlink manually.

Does the same go for pip, i.e. pip instead of pip3?

Apparently not - according to this LaunchPad bug, the python3 package automatically points pip at pip3 anyway.
If you open up the .deb file for the package (I used 7-Zip), you can see that apart from some documentation, it really does just contain one symlink, to be installed at /usr/bin/python, pointing to /usr/bin/python3.


Just use GParted to shrink the Windows partition and then make a new partition in the freed space, again using GParted. Don't worry about lost data since you haven't used that space yet.


How to install Ubuntu on ARMv7 hardware?

Do you mean ARM7 or ARMv7?

If the former, I don't believe you can - not with Ubuntu. Other distros might though. Debian certainly supports ARM11, and maybe older. Gentoo might also, and if not you can probably rebuild it so most of the software works, assuming the kernel is OK. I can't just put my finger on any positive statement from any of them though.

Otherwise, the current Ubuntu/Linaro ARM release is for ARMv7 processors only (i.e. Cortex-A series). The best starting point is probably http://www.linaro.org.


Is .config called other things for different system languages?

That configuration directory is specified by the XDG Base Directory Specification standard.

The answer to your question is in the Environment variables section:

  $XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

Be sure to also read Basics, to ensure that you are using the right directories for the right files.

You may also want to know what to do when $HOME is not set. This is not specified by XDG, however what some applications do is to throw an error and exit. Alternatively, you can get the current user ID via getuid(2) and use getpwuid(3) to extract the home directory.


What is the right network settings in order to ping the IP address of the printer successfully?

The IP addresses in the 169.254.0.0/16 block are used for link-local addressing (network configuration) and are therefor not routable. It's a wonder this ever worked. Either your printer is configured to this address manually and your router is correctly dropping it or the printer isn't able to automatically configure itself with an IP address from the router so it defaults to a link-local address.

More than likely its the latter. DHCP needs to be activated on the printer. (Or less likely your router doesn't have DHCP enabled or its bugged) You'll need to connect your printer directly to a computer (link-local) and configure it via the web interface.


.desktop file doesn't execute a script, works fine when run by hand

I got it to work by moving the script to my home folder and editing the desktop configuration file to the following.

[Desktop Entry]
Name=Download Manager
Comment=
Exec=lxterminal --command="./.notifyscript.sh"
Icon=icon name
Terminal=false
Type=Application
StartupNotify=true

This seems really strange, especially because terminal is false... Anyhow it works, so I'm happy! Thanks everyone for your help!


If you want to compile a linux 5.8 kernel on Ubuntu 20.04, the package source to download is linux-image-unsigned-$(uname -r).
Run
apt source linux-image-unsigned-$(uname -r)

then compile the kernel. You'll find the source in linux-hwe-5.8-5.8.0 directory.
The command will download the source of the currently used kernel. If you are using another kernel, e.g. 5.4, you can manually add the version, like
apt source linux-image-unsigned-5.8.0-40-generic


How to make Ubuntu MATE 21.04 remember my default application for .desktop files in context menu?

OK, I got it to work, but there is really something going on I don't understand. See the question for details.
To get it work, I clicked here

and entered pluma for the custom command.  Now it works!
Note: You cannot have pluma selected at the left when you enter the custom command, or it will not work
That's just weird.

Thanks to the commenters who helped me solve it.


OpenVPN Server unable to ping device connected to client laptop via ethernet

You must configure the openvpn gateway settings on your laptop via the openvpn server.  There are examples in the server config file, look for "Thelonious"
Essentially, you will need to create a file on the server in /etc/openvpn/ccd with the name shown in the /etc/openvpn/openvpn-status.log when your client is connected.  Inside that file add iroute 10.0.0.0 255.255.255.0. This should configure the client to be a gateway.
You will also need to enable the ccd location, add the route and allow client to client comms in the openvpn server Configuration file.  Take a look at the config file comments, they are very good and should cover everything you need.


Is it possible to make OpenStack work with MaaS without involving Juju?

I believe I'm good now after spending a whole week reading and practicing, I fully understand the relationships between OpenStack, Juju and MaaS as well as Kernel Virtualization. I'm able to deploy a working OpenStack on a dedicated hardware and VMs (KVM/QEMU).

However, I wouldn't mind anyone posting more interesting articles on MaaS and Juju Magical powers.

Note: I will post a new question about VirtualBox and MaaS in another thread.


Ho to read/write a local file from a webapp?

Thanks to the kindness of a developer, I can give some information to my questions.

I can't read / write a local file; I can only use W3C supported content storage mechanisms or Web SQL or Indexed DB.

Best regards!


Need help with error found in home/superuser/.profile line 23

Remove the spaces around the assignment operator = in line 23:

export level="bandit9"

For further information, read the Advanced Bash-Scripting Guide


If you have direct access to this machine (perhaps via this browser terminal popup thing (?)), you could try to load your kernel and the initramfs and boot it.

This won't bring up your system again (because the boot process doesn't only depend on /boot) but you can get into a shell.

If you have full access to GRUB this may work:

linux /<path>/boot/vmlinuz<...>
initrd /<path>/boot/initrd<...>

Because you haven't specified a root file system (via root=...) - because you currently don't have a usable one -, your system will run a busybox shell right from the initramfs.

This (initramfs) prompt is a complete shell.  You need to create a folder - run mkdir /rootfs). Then you would need to mount your root file system (mount -o rw /dev/<...> /rootfs) and chroot into it (chroot /rootfs /bin/bash).

Then you can mount your other file systems (mount -a). Then you are able to do whatever you want.

Disclaimer: This is - as the question is, too - a cross-post from Super User.


The manpage (man 5 crontab) says:

  The entire command portion of the line, up  to  a  newline  or  %
  character, will be executed by /bin/sh or by the shell specified in
  the  SHELL variable of the crontab file.  Percent-signs (%) in the
  command,  unless escaped with backslash (), will be changed into
  newline characters, and all data after the first % will be sent  to
  the  command  as  standard  input.

So you have to replace every % in your date format with \%:

1 0 * * * rm -R /path/to/my/folder/$(date +'\%Y-\%m-\%d' -d "yesterday")


APPARENT SOLUTION: I booted in recovery mode, went into the root shell, and did dpkg --configure -a from there.  Everything (including locking and unlocking the screen) seems to be working like a charm now.

It doesn't seem like this was the most popular question to answer, but thankfully I managed to get it working, and post this in the event my problem happens to anyone else.

Happy Ubuntuing :-)


Problem during wifi driver(rtl8723de) installation in ubuntu 18.04

Install the driver this way. Run in a terminal
sudo apt update
sudo apt install git dkms
git clone -b rtw88 https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6

This will install a driver for new kernels.
If you already cloned, then it may be a wrong branch. So delete it first by
rm -rf ~/rtlwifi_new


Grub rescue is booting everytime instead of my windows 10 recovery flash drive HELP

Have you set your flash drive to be the first boot drive?

To do that you have to insert your flash drive (it is USB, right?), reboot the computer, during the boot press Del, F2, F12 or something else (depends on model of your computer) to get to BIOS (or UEFI) menu. Then find boot options and move your USB drive before your hard drive, then choose "Save settings and exit".


In the command line prompt, how do I show the full home path instead of the tilde (~)?

In your prompt (look for PS1 in your .bashrc), use $PWD instead of \w.

For example, your .bashrc would contain:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi

In both cases, change the second \w to $PWD:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]$PWD\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:$PWD\$ '
fi

According to man bash, \w is the abbreviated path:

\w     the current working directory, with $HOME abbreviated with a tilde (uses the value of the PROMPT_DIRTRI`M variable)


Executing a bash script and call python script via crontab

Okai I have found the solution.

First thing to know i'm a beginner in linux env.

So i have created a monitoring.sh script with chmod 770. this file call an other file named monitoring.py who got chmod 770.

Than i add the monitoring.sh on my crontab.

What i didn't know it's the crontab user isn't the same

So the call of my python script on my .sh script must have the full path

monitoring.sh

#!/bin/bash

touch testcronsh.txt
python /home/ubuntu/folder/monitoring.py


How to unzip a file in terminal and spit it out with specific file name?

If you are certain that your zip-archive contains only one file you can extract it to a different filename with

unzip -p > thenewFile

Explanation: -p tells unzip to extract the content directly to stdout which then gets redirected into a new file.


In your /etc/network/interfaces file you have duplicate lines of the following:

netmask 255.255.255.0

Remove the duplicates keeping just one. As you are using Virtualbox adapter in Bridged mode everything else seems fine.

Now run the following to bring the eth0 interface down and then up to make the changes take place instantly:

sudo ifdown eth0 && sudo ifup -v eth0


Mouse pointer stuck for a bit when moving the pointer down on a second monitor

After the last software update and a reboot. I don't see the issue anymore ¯\_(ツ)_/¯


IBM support for Ubuntu actually started with IBM Power8 and officially is only support on power8 and future power systems.  The support actually required changes to the fsp.  The older Power system however will support Redhat and SUSE.

See the links below
IBM
http://www-01.ibm.com/support/knowledgecenter/linuxonibm/liaam/liaamdistros.htm?lang=en
http://www-01.ibm.com/support/knowledgecenter/linuxonibm/liaam/liaamdistrospower7.htm?lang=en

Ubuntu
http://www.ubuntu.com/certification/server/models/?vendors=IBM


ubuntu 12.04 is not waking up after sleep

press on the power button for only 1-2 seconds. Maybe your machine will not return from sleep by a keyboard key press.


A well-supported wireless PCI adapter for Ubuntu 12.04?


if you are using GNOME 3, you can access the preferences via the top menu.

you should have "activities" on the top left corner of your screen. on the right side of activities, you will have gedit. click on it, and you should see the preferences.


Eliminar la particion de Windows 10 y aumentar la particion linux

With gparted, delete the partition corresponding to MS Windows and create a new one in ext4 format, do not delete UEFI partitions if any, only the one from MS Windows.
Then move your / home to this partition.
Suppose de new home is /dev/sda3
Open a terminal and run:
exec sudo -i
mkdir /media/hometemp
mount /dev/sda3 /media/hometemp
cd /home
cp -ax . /media/hometemp
cd /
mv /home /home.old
mkdir /home
umount /dev/sda3
mount /dev/sda3 /home
exit

If everything works, add the UUID in /etc/fstab to /dev/sda3.
exec sudo -i
blkid /dev/sda3
gedit /etc/fstab

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

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

Type the filesystem description ext4, and press Tab.

Type defaults for the mount options, and press Tab.

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

Type the digit 0 for the filesystem check option.

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


Which service is responsible for my networking? How to flush DNS Ubuntu 18.04.2 LTS?

The main network management daemon in Ubuntu is NetworkManager.

The error you're seeing might be caused by missing symlink inside /etc/systemd/system.

Please try to recreate it by using:

sudo ln -sf /lib/systemd/system/systemd-resolved.service /etc/systemd/system/dbus-org.freedesktop.resolve1.service

If you're having issues with systemd-resolved.service you can try to restart it. It should also flush DNS caches as a result.

sudo systemctl restart systemd-resolved.service

To see the domain TTL's you can use dig from dns-utils

apt install dnsutils
dig askubuntu.com

sample output:

;; ANSWER SECTION:
askubuntu.com.      247 IN  A   151.101.1.69
askubuntu.com.      247 IN  A   151.101.65.69
askubuntu.com.      247 IN  A   151.101.129.69
askubuntu.com.      247 IN  A   151.101.193.69

247 is the current TTL


14.04 Software Updater says Failed to download repository information. Check your Internet connection

Your issue is two-fold, because you have two problems.

Problem #1: You do not have the PGP key stored for the Skype repository.

There are multiple ways to fix this, but you can probably fix that issue with this one-liner:

curl https://repo.skype.com/data/SKYPE-GPG-KEY | sudo apt-key add -

Problem #2: You are trying to use a PPA that doesn't publish Trusty 32-bit packages - the Nemo 3 PPA from WebUpd8 Team.

This is resolved by removing the nemo3 PPA from Webupd8 from your system.  Most likely, the PPA has its own entry in /etc/apt/sources.list.d/ that you can remove.  Otherwise you'll have to find and remove the entries for that PPA from your /etc/apt/sources.list file.

Resolve both problems, and you will no longer get the software updater issue.


Getting Adobe Flash plugin on PowerBook G4 running Lubuntu

1nd ways

When I try to open YouTube or some website that contain some interactive view it require a plugin like flash-player that used to play kind of that about. So install flash plugin is required in Lubuntu.

To install adobe flash plugin, open LXTerminal first Start > Accessories > LXTerminal. Then type this following on LXTerminal window

sudo apt-get update && sudo apt-get install flashplugin-installer -y

After that finish restart your browser then try watch video on YouTube. Hopefully this work

2nd ways

Easy to install Flash Player using GUI (Graphical User Interface) first to do for install Flash player is:

Install Linux version Adobe Flash Player (works on all linux distributions)
If the proccess of download is finished, now extract the archive
Open your terminal and copy this following to terminal to run installer:

./flashplayer-installer
Follow on-screen instructions
Log out and login back after proccess is finish
Finally !! Test adobe on firefox


How do I copy local files to remote server where remote server needs root access with scp?

I would do the following (on the local machine):
% cd /Users/Username/Downloads/
% tar -cvf - lsp | ssh username@server 'dzdo tar -C /srv/path/directory -xvf -'

or
% cd /Users/Username/Downloads/
% tar -cvf - lsp | ssh username@server 'dzdo sudo su - -c "tar -C /srv/path/directory -xvf -"'

This command sequence will tar the local file(s) and send the tar output to stdout. The command sequence given in the second parameter of ssh will run a second tar command on the remote server with dzdo privileges that will extract the file(s) coming from stdin to the  directory specified in the -C parameter of tar command there.
Please note that the tar command(s) will copy the ownership and file permission information from the local system to the remote server also. For example, if the user id and group id of the file owner on the local system is 1000 and 1000 and the file permissions are -rw-r--r--,  the same user, group ids, and file permissions will be used on the remote server. However, that user and group id may belong to another user or group on the remote server. There are options in tar that will allow to change this. See the options: --group=, --owner=, --no-same-owner, --no-same-permissions, etc.


In the Linux world, configuration files and directories are usually found in your home folder ($HOME, also known as ~/) and are named as .nameoftheprogram. Many are collected in the ~/.config directory (such as ~/.config/google-chrome) and others are in your $HOME itself (like ~/.mozilla).

The one you are asking about is the configuration directory for FreeRDP:

  FreeRDP is a free remote desktop protocol client that implements RDP following the documentation provided under the Microsoft Open Specification Promise.

That's where your personal FreeRDP settings will be stored.


Why is the Ethernet not working with AUKEY USB C Hub?

I had similar problems with a Inateck USB3 hub with ethernet on 16.04 LTS.
It turned out that this hub shows up as  Manufacturer: VIA Labs, Inc. in /var/log/syslog and usb 2-1.4: Manufacturer: Realtek (the ethernet device).

Follow the instructions as given above even though it refers to a Linksys hub. It should work for any hub with a Realtek ethernet chip.

In my case ifconfig showed no wired device at all, so I could not check it with  ethtool. Once the driver was installed, it did show up but not as eth0 rather as enx00e04c110060. When I plugged the ethernet cable in, Network Manager showed it as a wired device and ifconfig showed its IP address.

The steps are:

download the Realtek driver from Realtek here -
this is a bz2 compressed tar file
Unpack it

cd Downloads                #or wherever it went
tar xvf name-of-tar         #replace with actual name!

Install it

sudo make install           # (I got some SSL signing warnings that I ignored)

Remove the old driver

modprobe -r cdc_ether

Load the new driver

modprobe r8152              # (automatically done by make install)

Regenerate the initramfs

update-initramfs -u         # so as to get it to load at boot


(Gnome) "To do" app display artifacts and issues

I had the same problem after upgrading to Ubuntu 18.04.
The solution for me was to change the applications theme from Ambiance to Adwaita via GNOME Tweaks.
Both Ambiance and Radiance themes create these artifacts in GNOME apps for some reason.


Try installing Wammu from the software center of Ubuntu. It used to work with my Nokia Lumia which works similar way like the iPhone when it comes to exchange files between Phone/PC.
If the program is not working install gammu too and try again.
Restart may be required afret the installation.


Ubuntu 18.10 GRUB2 wont recognize APFS filesystem

APFS file system is currently not supported on Linux at all, there is only an experimental FUSE (not kernel) driver to mount it in read-only - https://github.com/sgan81/apfs-fuse an commercial driver by Paragon

So, there is obviously no support for APFS in GRUB2 too.


Networking not working on ASUS F102B Netbook PC running ubuntu 16.04 LTS

Reboot and press the Shift key to get the Grub Menu to appear, then scroll to Advanced Options and boot into an older kernel.

If you have internet using the older kernel install all updates and reboot.

I suspect your last update included a kernel update but didn't install the new linux-image-extra and that is why both the wired and wireless connections are not functional.

Another option is to boot to a Live USB/DVD and follow instructions similar to https://help.ubuntu.com/community/LiveCdRecovery#Update_Failure
Once booted to the Live USB/DVD you should have internet use available again then open a terminal and enter

sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
sudo apt-get update
sudo apt-get install linux-image-generic linux-headers-generic
Reboot to the installed version when it is finished


Ubuntu 20.04 installation on a USB flash drive

It might be easier to install another way.
Extracting and cloning from an image file
Have a look at this link, that can help you install by extracting and cloning from an image file of an installed Ubuntu system. This system can boot both in UEFI mode and BIOS mode (alias CSM alias legacy mode) and it uses the free Linux drivers for graphics and wifi.
Use one of the following links to download the compressed image file,

more stable:
dd_unb_ubuntu-20.04_15GB_2020-09-06.img.xz

or with faster upgrading of program packages (using the 'proposed repository')
dd_unb_ubuntu-20.04_15GB_2020-09-07_with-proposed.img.xz.

Check that the download was successful, that the md5sum matches the listed entry in this file, with your eyes 'manually' or with the following command line,
<<<'89b3cd5206a1ce0e6b569cf276e04d7f  dd_unb_ubuntu-20.04_15GB_2020-09-06.img.xz' md5sum -c

or
<<<'ac00ae810b120d7b7dfca4d995593fbf  dd_unb_ubuntu-20.04_15GB_2020-09-07_with-proposed.img.xz' md5sum -c

when in the same directory as the compressed image file.
If there are problems

If you have new nvidia graphics, you may need the boot option nomodeset, and later on (when the installed system is running), you can install a proprietary nvidia driver.

If you need a proprietary driver for wifi, you can connect via wired internet (ethernet) and install a suitable proprietary driver for that purpose.

See also specific detailed tips for installing this system to a USB drive at this link.

In the future
Please check at the linked web site, if there is some newer image file of the whole Ubuntu system (with file size greater than 1 GB),
phillw.net/isos/linux-tools/uefi-n-bios


How to run command on connect to network

Look inside the /etc/network directory. There are some directories where you can insert your scripts:

$ ls /etc/network
if-down.d  if-post-down.d  if-pre-up.d  if-up.d  interfaces  run

if-down.d – before interfaces are down
if-post-down.d – after interfaces are down
if-pre-up.d – before ifcs are up
if-up.d – after ifcs are up


Try bringing your computer up in Recovery Mode, drop to the console and reset your password with the "passwd" command, then boot up normally.   If you're running on an old system without too many resources you might try installing the Lubuntu variant, as it works better (faster) on systems like this.


Is Ubuntu Phone OS going to include tools for development within the mobile platform?

Let's take our Ubuntu Touch Developer Preview.

I can ssh to a shell.
My Tablet is connected wirelessly to the internet.

So I can add development tools:

phablet@localhost: sudo apt-get install build-essential

then create a new file hello.c

#include <stdio.h>
void main(void) {
  printf("hello world!\n");
}

Now I can compile my C program:

phablet@localhost: gcc hello.c

and I can run it:

phablet@localhost: ./a.out

the output is:

hello world!

Conclusion: It is a real linux. It has already it's basic tools available.
And they work!

And I don't think that in the future anybody will try to find a way to remove the opportunity to install and run these essential development tools.

Even if there will be an Ubuntu Phone in the future where these tools are not included by default it will always be possible to add them in a very simple way.

I love this new world!


I need to pull email size for each email in a sendmail log, then total them up with the total size and total number of emails

I'll have a try with awk

$ awk -F'[[:blank:],=]' '/size=/ { sum += $12; total += 1} END { print "Sum: " sum " Total:" total}' /var/log/mail.log

-F'[[:blank:],=]' Tells awk to process all kind of blank, comma and equal as field separator
/size=/ Select lines that contains size=
{ sum += $12; total += 1} Select the 12th field and add it to sum at the same time we increment the total of one
END { print "Sum: " sum " Total:" total} At the end print Sum: $sum Total:$total

For example :

$ awk -F'[[:blank:],=]' '/size=/ { sum += $12; total += 1} END { print "Sum: " sum " Total:" total}' /var/log/mail.log
Sum: 1491646 Total:800

I don't know if it will perfectly work for you but that should give you a pretty good idea on how to do it !


input/output error during read on /dev/sda/

Have you tried running fsck? It's a utility that checks consistencies in a file system and makes repairs. To run it you'll have to make sure the drive isn't mounted to avoid altering disk data and causing runtime errors. Boot from live DVD/USB and run fsck /dev/sda3 on the drive from your terminal.


How to set up a virtual machine with VirtualBox

To begin with, you can simply double-click the DEB file you've downloaded to open the Software Center. Then simply click the 'Install' button to install the package:

Once the package is installed, press the super key (typically a button on your keyboard with the Windows logo) and begin typing 'VirtualBox'. When the VirtualBox icon appears, click it to start the application:

At this point you will be presented with the VirtualBox main window:

     * Click for larger image

Note that in the screenshot above, I already have a number of virtual machines - since you are just starting with VirtualBox, you won't have any yet. To create one, click on the "New" button in the toolbar. You will be presented with the "New Virtual Machine Wizard":

     * Click for larger image

The wizard will begin by asking you for a name and OS Type for your virtual machine. You may enter whatever name you like - what is entered here will be displayed in the main window later when you go to start your virtual machine. OS Type consists of a list of operating systems and specific versions / distros underneath. For example, if you are giving Fedora a try, select Linux in the OS drop-down and then Fedora in the version drop-down.

The next step asks you for the amount of memory to assign to the virtual machine. In most cases, VirtualBox picks a sensible default based on the information you provided in the previous page and the amount of memory you have installed. Just accept the value and click "Next".

The next step asks what virtual hard disk should be used for your virtual machine. Since you don't have any virtual hard disks yet, leave the "Create New Hard Disk" option selected and click "Next". You will then be guided through the process of creating a new virtual hard disk.

When creating the virtual hard disk, you will first be asked whether you want to create a dynamically expanding hard disk or a fixed size one. Since the fixed size disk will occupy a huge amount of space, I would suggest going with the "Dynamically Resizing Hard Disk" option. The next step is to give it a name (you can just leave that at its default) and select its size. You will need to check the website of your OS to find out the minimum amount of space required. Generally, 10GB should be enough for most Linux distributions while still providing some room to install applications, etc. Once you have finished with the "Create New Virtual Disk" wizard, you will be returned to the "New Virtual Machine Wizard". Click "Next" and then "Finish" and you're done - you've just created a virtual machine!

We're not ready to boot it quite yet though. We need to install the operating system on it. I'll assume that you want to install a Linux OS using an ISO CD image. You'll likely need to download the 32-bit version of the OS you want to try (look for a "32-bit" or "i386 / i586" option). Once you have the ISO file, click your new virtual machine on the left in the main window and click the 'Storage' section on the right:

Click the CD icon in the Storage Tree and then click the smaller CD icon on the right:

Select "Choose a Virtual CD/DVD Disk File" and browse to the location of the ISO file that you downloaded earlier. Now you can click OK and dismiss all of the dialogs.

Your new virtual machine is ready to boot! Simply double-click its entry in the main window on the left and it will (hopefully) start:

     * Click for larger image

You'll have to wait a minute or two for your new OS's installation menu / installer to load. To interact with your virtual machine, simply click inside the window. VirtualBox will display a dialog explaining how capturing the mouse works.

Hopefully that's enough to get you started.


Install GNOME Shell extensions from terminal

Dash to Dock GNOME extension

As seen at https://extensions.gnome.org/extension/307/dash-to-dock/

Download the .zip file here https://micheleg.github.io/dash-to-dock/releases.html

Note: the name of the downloaded .zip file may be different than the dash-to-dock@micxgx.gmail.com.zip shown in the unzip command shown below. Adjust the command as necessary for the correct .zip name.

See the manual installation notes here https://micheleg.github.io/dash-to-dock/download.html

Manual installation

You can also obtain the extension in the form of a zip archive from the release page. Look for the latest version supporting your shell version. The extension can be installed by means of gnome-tweak-tool, or alternatively by directly extracting the archive in the a directory named dash-to-dock@micxgx.gmail.com inside ~/.local/share/gnome-shell/extensions/

unzip dash-to-dock@micxgx.gmail.com.zip \
-d ~/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/

Shell reload is required Alt+F2 r Enter. The extension can be enabled with gnome-tweak-tool, or with dconf by adding dash-to-dock@micxgx.gmail.com to the /org/gnome/shell/enabled-extensions key.

Note: DtD is not compatible with 19.04.

rumor has it, that if you uninstall Ubuntu Dock, that DtD will work with 19.04
it also appears that the manual installation of DtD will make this work in 19.04


how to set open office as my default program

You can set as default from right click on document-->properties tab-->open with OpenOffice-->set as default


Taking the advice from this link worked for me..

As a TL;DR, it seems that xfce4 uses a pretty garbage, un-maintained compositor to render windows. Compton is a much better option. Install compton, and then add this text to the ~/.compton.conf file:

backend = "glx";
paint-on-overlay = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
vsync = "none";
shadow = true;
no-dock-shadow = true;
no-dnd-shadow = true;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-exclude = [
"! name~=''",
"name = 'Notification'",
"name = 'Docky'",
"name = 'Plank'",
"name = 'xfce4-notifyd'",
"name *= 'SMPlayer'",
"name *= 'compton'",
"name *= 'Firefox'",
"name *= 'Chrome'",
"name *= 'Thunderbird'",
"name *= 'Deluge'",
"class_g = 'Conky'",
"class_g ?= 'Notify-osd'",
"class_g ?= 'Xfce4-notifyd'",
"class_g ?= 'Xfce4-power-manager'"
];
fading = true;
fade-delta = 4;
fade-in-step = 0.03;
fade-out-step = 0.03;

detect-client-opacity = true;

wintypes:
{
tooltip = { fade = true; shadow = false; };
};


Looking for assistance with Graphic Card Dtriver. Help

One of them will say "Recommended" to the right, and when you highlight it the description area will say "tested" and have a little red ribbon next to it.  Those are generally the ones I pick.


Wireless active connection not shown in NM drop-down menu

I have solved thanks to #5 here

https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/1027638/comments/5

I edit:

sleep 1


Where do "internal error" error reports go?

All the errors from apport (which is the one reporting that the error occurred), will be stored in the /var/crash directory with the name of the process, PID, and other relevant information of the crash. When you send them using the tickbox, they are sent to Lauchpad (pre-release) or Ubuntu Error Tracker. This can be seen in the wiki page:

  If you choose to send an error report, the alert should disappear immediately. Data should be collected (if it hasn’t been already), and reports should be sent in the background, with no progress or success/failure feedback. If you are not connected to the Internet at the time, reports should be queued. Any queued reports should be sent when you next agree to send an error report while online.


Cannot write to NTFS data partition possibly because of lack of permissions?

By default, unless the partition being mounted is an ext2/3/4 partition or a partition that can handle UNIX style permissions (such as Mac HFS/HFS+ partitions), the drive gets mounted as root:root for user/group ownership by default.  exFAT/FAT/FAT32/NTFS do not support UNIX style permissions, so you can't use these types of permissions.

As such, you have to set permissions at mount to what you need them to be.  There're a lot of different options that you could set, but we'll borrow some from my other answer on how to mount NTFS so it can be read by any user but adapt it for your user only.

First, we need to get some information.  You will need to run the id command, in the terminal.  This will give us some information we will need when we construct the mount points, namely your uid and gid.  Below is the example of such output from my own laptop, though yours will probably differ substantially:

$ id
uid=1000(teward) gid=1000(teward) groups=1000(teward),4(adm),6(disk),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare),132(sbuild),137(lxd),140(wireshark),998(pgadmin4)

Of relevance in this specific instance is the uid and gid values, which in my case are 1000 for both.  Yours might differ, but we'll need to keep these values handly.

Next, let's restructure your /etc/fstab line.  Your system has done auto for detecting the external disk, which is fine, but there's a small issue with this - this relies on the OS being able to determine the type of file system on disk.  So we'll replace that with ntfs.

This makes the following the beginning of your /etc/fstab line:

/dev/sdb4 /mnt/sdb4 ntfs

The key part of what you need to do now, though is adjust the options for mounting.  defaults is a good start point but not what you need.  Ideally, you should have the following additional options in your options:

 locale=en_US.utf8,windows_names,umask=7000,uid=UID,gid=GID

Note that you need to replace UID and GID in the uid= and gid= lines with the numeric uid and gid values we got earlier from id.

Because you might wonder what these options do, let me pull my explanation with some edits from my other answer:

  locale=en_US.utf8 - enforces the US English locale with UTF8
  windows_names - enforces that Windows name restrictions are in place for new files in the partition.
  umask=7007 - Basically, inverse chmod.  Define what permissions are not permitted for files.  Essentially, I don't prohibit anything
  read/write/execute here except for 'other users' than yourself, so all files on the mounted location get,
  effectively, read, write, and execute privileges for your user.  I don't want any of
  the special bits set (setuid, setgid, sticky), so I have to eliminate
  them from the first octet - since the numeric sum of those is a '7'
  and i'm prohibiting those permissions, I put a leading 7.
  uid=1000, gid=1000 - Have the partition mounted into that folder with user and group ownership of UID (User ID) and GID (Group
  ID) of 1000 (this is my user's user and group, teward, on the
  Ubuntu system).

Adding these to the options line will allow your external device to be compliant with your Windows dual boot with file naming, and also enforce UTF8.  It'll also set permissions properly, so that your user only can have read/write on the partition.  This makes your /etc/fstab line this:

/dev/sdb4 /mnt/sdb4 auto defaults,x-gvfs-show,locale=en_US.utf8,windows_names,umask=7000,uid=UID,gid=GID 0 0

We don't need to do anything with the last two zeroes, that's OK to leave there.  Just make sure you updated the GID and UID values to the actual values.

Then, use sudo umount /dev/sdb4 && sudo mount /dev/sdb4 to unmount and remount the partition with the new options.  You should then have read/write privileges on the entire disk now.


Ubuntu MATE is a respin of Ubuntu that uses the MATE desktop environment, and became an official Ubuntu flavor starting with 15.04, "Vivid Vervet."


I had the same problem. But it turns out the problem was in the /etc/vsftpd.conf file. You have to uncomment the write_enable=YES line. Or just make sure it says YES and not NO. That is what fixed it for me.


How can I copy my data from NTFS Error Partition to external medium?

As Rinzwind mentioned, this isn't something Ubutnu can help you with.

The last time you used windows it was shutdown improperly.

You need to do one of the following

Boot some of windows live cd (like winPE) so that you can run scandisk
Remove the affected drive and attach it to a computer running windows and run scandisk
Reinstall Windows and run scandisk on those partitions


Removing CrossOver Games from Unity Start panel

The shortcut that you are talking about are called .desktop files.  They are in one of two places.

/usr/local/share/applications

or

home/.local/share/applications   Note that the .local is a hidden file so you will need to show hidden files Ctrl+h to see them

Most likely the files are in the usr/local so you will need to use sudo to delete them.

When you delete these .desktop files they will no longer show up in your Dash under Installed applications but will still show up in the recent history until you open enough other programs to push them out.


You could look in /var/log/apt/history.log, though you'd need to possibly check the archives as well.

It appears that synaptic and apt-get give the method

Start-Date: 2012-07-17  11:47:00
**Commandline: apt-get install** unetbootin
Install: unetbootin-translations:amd64 (575-1, automatic), extlinux:amd64 (4.05+dfsg-6, automatic), syslinux-themes-debian:amd64 (11-1, automatic), syslinux-themes-debian-wheezy:amd64 (11-1, automatic), unetbootin:amd64 (575-1), p7zip-full:amd64 (9.20.1~dfsg.1-4, automatic)
End-Date: 2012-07-17  11:47:18

Start-Date: 2012-07-17  11:57:51
**Commandline: /usr/sbin/synaptic**
Install: libunity-protocol-private0:amd64 (5.92.0-0ubuntu1, automatic)
Upgrade: libunity9:amd64 (5.12.0-0ubuntu2, 5.92.0-0ubuntu1), gir1.2-unity-5.0:amd64 (5.12.0-0ubuntu2, 5.92.0-0ubuntu1)
End-Date: 2012-07-17  11:58:09

Aptitude appears though to not show how

Start-Date: 2012-07-17  15:11:45
Install: 2ping:amd64 (2.0-1)
End-Date: 2012-07-17  15:11:53


JPGs downloaded from Facebook unrecognizable to Shotwell

The reason why the filename is watermarked is because you've selected the Import From Folder menu item.

When you import from Folder, all files in the folder that can be imported will be; you don't select individual files, you select a folder.

Try again, this time select your Pictures folder then click OK. All images in the Pictures folder that haven't already been imported will be.


How to reset options on a printing dialog?

I spent half an hour on this one, so I decided to put it here. I used strace to trace the system calls from evince, and found that evince tried to open the following files:

open("/etc/cups/lpoptions", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("/home/january/.lpoptions", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/january/.cups/lpoptions", O_RDONLY) = 48

The third one was present and contained the offending options:

  Default XXX collate=false Duplex=None InputSlot=Default number-up=2
  outputorder=normal PageSize=A4 position=center PrintoutMode=Normal
  Quality=FromPrintoutMode scaling=100 wrap=false

Strangely, the file was there for the last two years, but apparently has not been used with evince running in 10.04, which I have recently replaced by 13.04. Removing it resulted in the correct settings taken over from the properties of the printer.


Problem installing ubuntu 12.04 (dual boot) on Mac

This does not work on the newer iMacs if installing Precise. Please make a backup first.(2011)

First, you will need to install rEFIt. Please download the rEFIt DMG package and install it by mounting and running the installer .mkpg file/directory. Once rEFIt is installed, reboot, and you should see an alternate boot menu.

Boot to Mac OSX.

Open a terminal and run sudo diskutil resizeVolume disk0s2 200G, replacing 200G with the size of the Mac OSX partition you want. Insert the Ubuntu Live CD. If the rEFIt menu doesn't appear, hold the option key while rebooting. Hold C while booting to boot the CD. Press f6 when you see a purple screen with a man and keyboard at the bottom. Use the arrow keys to check nomodeset, press esc and select to Try Ubuntu. Start Gparted and create a 1 GB "swap" partition in the free space, and then an EXT4 partition. Remember the label(which may be something like /dev/sda3 Start the installer.

Choose the "somehing else" option when asked how to partition. Select the partition you made(the EXT4 one) ,and click edity below. Set the mount point to /. On the dropdown, select to install the bootloader to /dev/sda3(The EXT4 partition you made), NOT /dev/sda. Install, and reboot.

If you are unableto boot Ubuntu, select the partition tool on rEFIt, and allow it to "sync" the partitoin table(Press Y). Shutdown, and boot again. (Do not reboot, but shutdown)

Adapted from https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation#Quick_Steps for interface of newer installers

There are also some chat logs from trying to resolve the problem. A raw dump is below. This is not edited, so it contains a few off-topic things also.

http://paste.ubuntu.com/1100526/
http://paste.ubuntu.com/1100536/
http://paste.ubuntu.com/1100538/