How to connect from a Linux machine to an Ubuntu machine on internal network only?

Secure Shell is one choice that is fairly easy. SSH can be accessed from the WAN by port forwarding in your router settings.
Remote Desktop is easy and available natively on Ubuntu machines. The instructions to set it up can be found at the following page.
http://www.makeuseof.com/tag/ubuntu-remote-desktop-builtin-vnc-compatible-dead-easy/
You need to go into Desktop Sharing Preferences and allow others to view your Desktop and allow other users to control your desktop. You can set a password under security if you so desire.
After you find the IP address you can use Remmina Remote Desktop client to access it from that machine. You can use ifconfig to determine the IP address. When you open Remmina it should look similar to the picture below. However it will auto-populate with RDP, you will need to change this to VNC.
Remote Desktop can also be accessed from WAN by forwarding the port, but if this isn't setup you won't have access. One thing to check is to make sure that you are using VNC not RDP as your protocol to connect.
On the machine you want to connect from you will need to make sure that Remmina is installed and properly.
In Ubuntu/Debian:
sudo apt-get install remmina remmina-plugin-*

In Centos/RHEL:
yum install remmina remmina-plugin-*

In Fedora:
sudo dnf copr enable hubbitus/remmina-next
sudo dnf upgrade --refresh 'remmina*' 'freerdp*'


MacBook Pro 9.2 Ubuntu 14.04 Full Link Quality Wireless Error

I believe you have the incorrect driver. Please open a terminal and do:

sudo apt-get install firmware-b43-installer
sudo apt-get purge bcmwl-kernel-source

Reboot and tell us if it is working as expected.


Why is 17.10 signin on the wrong monitor in a two monitor setup?

The settings you made in Xorg are session-specific, and apply to the session after you have logged in.

The default Xorg setup for the login screen, however, sees the #2 monitor as primary, and shows the login there on #2. System messages during boot appear on both monitors.

A shortcut can be to just swap the cables on the graphics card outputs and make the desired primary monitor the default primary monitor as well.

A software solution would be to switch the primary and secondary off during startup of Xorg.

The details of that depend very much on your specific setup. Run xrandr within X in a terminal, it will give you an overview of your output ports, their names and if anything is connected or not.

Let's assume that your outputs are named DVI-D-0, the TV, and DVI-D-1, the monitor. Also, the monitor being off implies xrandr not showing connected. The last assumption might be untrue, please check with your system. Modify accordingly.

Make a script in /etc/X11/Xsession.d and name it 45custom_xrandr-settings.

PRIMARY="DVI-D-1"
SECONDARY="DVI-D-0"

xrandr | grep $SECONDARY | grep " connected "
if [ $? -eq 0 ]; then
    xrandr --output $SECONDARY --auto --output $PRIMARY --primary
else
    xrandr --output $SECONDARY --off --output $PRIMARY --primary
fi

This should make the desired primary monitor the primary also for login and switch off the second monitor for Xorg as well (so no wandering with the mouse in a 'black hole' when the monitor is not there, for example).


You have to boot from the disc.

In your BIOS settings (accessed by pressing the key you are told when the manufacturer's logo appears on start-up. Usually F12 or Esc),  set the boot order to put Disc drive higher than HDD.

If you have a recent PC, you may not need to do that - there should be another key for a "boot menu" - press that and select CD/DVD.

I should note that if the PC you intend to install on is Windows 8 or later, you should disable Fast Startup in Windows' Control Panel if you want to access Windows drives while in Ubuntu. Also, if you have Win 8 or later, you probably have UEFI instead of BIOS - see this guide.


File command returns different results since upgrade to Ubuntu 14.04

Well, perhaps not so much of an answer but I wanted to let you know how it looks on my system I'm using (14.04):

% file -v
file-5.14
magic file from /etc/magic:/usr/share/misc/magic

The only source of the magic :) is the file in /etc on my system since the other one is an empty directory:

% find /usr/share/misc/magic/
/usr/share/misc/magic/

% md5sum /etc/magic
272913026300e7ae9b5e2d51f138e674  /etc/magic

% ls -alh /etc/magic
-rw-r--r-- 1 root root 111 Apr  3  2014 /etc/magic

and it returns the following for many of the JPEGs I have:

% file *jpg
1Ns3345.jpg:      JPEG image data, JFIF standard 1.01
anfffffggsel.jpg: JPEG image data, JFIF standard 1.01
1m32ssQ.jpg:      JPEG image data, JFIF standard 1.01
fCWwevC.jpg:      JPEG image data, JFIF standard 1.01
SCN_0001.jpg:     JPEG image data, EXIF standard
SCN_0002.jpg:     JPEG image data, JFIF standard 1.01
SCN_0011.jpg:     JPEG image data, EXIF standard
SCN_0012.jpg:     JPEG image data, EXIF standard
for7sfe.jpg:      JPEG image data, JFIF standard 1.01

It looks like my magic is better than yours :D


First unplug the mouse. In the battery compartment there are probably a couple of screws, open the case. Then blow out the wheel sensor with air (by mouth or canned air, etc.).
A few drops of isopropyl (rubbing) alcohol in the wheel sensor can clean it out nicely, the alcohol will evaporate quickly.
If it is a wireless USB mouse try connecting the dongle with a USB extension and put it where the signal is not blocked by the computer case, I tried this on a problem mouse and it improved performance.


How to check what type my video card is and its memory size?

Run this command from a Terminal:

  lspci  | grep VGA  | cut -d " " -f 1 | xargs lspci -vv -s

This will show you a verbose sheet about your video card.


I don't see why what you're doing would cause flickering, but try adding these to your .conkyrc:

text_buffer_size 556
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes

Not at all sure that this will help but it might.


the correct syntax
The reason for the error Command 'rf' not found is because you have accidentally added a space character between rf and kill
The correct syntax is rfkill command
where command is one of:

    help
    event
    list [IDENTIFIER]
    block IDENTIFIER
    unblock IDENTIFIER
where IDENTIFIER is the index no. of an rfkill switch or one of:
     all wifi wlan bluetooth uwb ultrawideband wimax wwan gps fm

Since you appear to be trying to unblock a particular device the syntax would be:
rfkill unblock all

You should note - rfkill unblock all will only release the device lock that has been created by the operating system - i.e. a soft-block.
If your device has been locked by a physical device - for example, physical switch, keyboard lock such as Fn+Function-key then the rfkill unblock all will not work - this is a so called hard-block
You can see the status of devices with rfkill list all - example results are:

rfkill list all
0: acer-wireless: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: brcmwl-0: Wireless LAN
    Soft blocked: no
    Hard blocked: no


Looking at the page for the program, no.

Instead, I would use GIMP - it allows you to create GIF files. You make each frame an individual layer, and then you export to GIF, and select "As animation" in the export dialog.

(Install)

sudo apt-get install gimp


Right click on the ISO file and, if available, look at the options under "Open with". You should see an alternative program such as "Windows Disc Image Burner" (depending on which version of Windows you are using).

Alternatively, download "ImgBurn" which is a free ISO writing application which will allow you to burn this image to disc avoiding the problematic installation of "Sonic RecordNow!".


Connect to the internet, then open the System > Settings > Hardware drivers. Or in Unity Dash > Hardware Drivers.

Are there any display drivers to activate? If yes, activate it!

I hope it helps.


wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-rc1-utopic/linux-headers-3.18.0-031800rc1_3.18.0-031800rc1.201410192135_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-rc1-utopic/linux-headers-3.18.0-031800rc1-generic_3.18.0-031800rc1.201410192135_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18-rc1-utopic/linux-image-3.18.0-031800rc1-generic_3.18.0-031800rc1.201410192135_amd64.deb

sudo dpkg -i linux-headers-3.18*.deb linux-image-3.18*.deb

This should do the job


Broke Ubuntu 12.04 either with Screencloud or Ubuntu Tweak

It's possible to change settings that will cause Unity to not run correctly, however the settings in Ubuntu Tweak have been select to avoid this.  You could try resetting Unity in any case:

unity --reset

You should be able to get to a console to do this with CtrlAltF1

You can also remove screencloud with the command line.

sudo apt-get remove screencloud

however no-one else seems to have reported Unity conflict problems with it.


Issue with dependencies when trying to install Wine and Synaptic

Try to install using a terminal it should resolve any dependency automatically.

Just type sudo apt-get install wine.

Hope this helps.


How can I install Ubuntu 11.04 after removing the existing Linux Mint 8?

Is it possible to retain Windows & only remove Mint?

Yes

Can I just format the Linux partition from the Live CD and
install Ubuntu into that partition?

Yes

Can I dual boot into either Windows or Ubuntu from a menu
without any problem if I follow this procedure?

I can't say without any problem...but it should just work

Could there be any problem while dual booting? Please advice.

There's always a possibility of problems, but it usually just works


Short answer:  When you installed Ubuntu, the installation have used the whole drive as 1 LVM partition, and that's why you can't create another partition, since there is no space left.

See if this helps you shrink the partition.


PC does not boot into Windows, but Ubuntu still works well; how to recover?

Have you try Boot-Repair tool? It seems that your boot files were messed up by CHKDSK.


cannot write Active Directory Shares mounted with pam_mount

every thing it's OK but u should add these option with your options code

uid=941100071

to be

olume user="my_user" fstype="cifs" server="my_server" path="UsersFolders/%(USER)/Documents"
mountpoint="~/UserDocuments" options="file_mode=0777,dir_mode=0777,sec=ntlm,uid=941100071"

i was have the same problem with fstab and the uid was a solution .

i advice u to try these

sudo gedit /etc/fstab

after code post this

//10.0.0.0/path /home/path cifs username=ADusername,password=ADpass,uid=941100071 0 0


There might be two possible problems, first you might have used a corrupted disk/iso image.  Second you might have problem with your graphic drivers. In the first case try to redownload iso image.


Slow apt-get update in 12.04 new instalation

To improve the speed of the update I let the software center choose the best server for my connection at the time.

Try:

open the software center and going Edit -> Software sources...
In the 'Download from' dropdown choose Other...
Click 'Select Best Server' button


Detect and install correct graphics driver for RX 590

I do not have information regarding Open Source drivers, but, as regards AMD proprietary Drivers, I must tell you there is no yet any version for Ubuntu 19.04.
Check AMD website discussion: https://community.amd.com/thread/2381 . I am stuck at Ubuntu 18.04 LTS for precisely this reason.

Good luck!


Automated way to create a directory tree

With mkdir, printf and bash's brace expansion:

$ mkdir -p "$(printf "%s/" {A..Z})"
$ tree A
A
└── B
    └── C
        └── D
            └── E
                └── F
                    └── G
                        └── H
                            └── I
                                └── J
                                    └── K
                                        └── L
                                            └── M
                                                └── N
                                                    └── O
                                                        └── P
                                                            └── Q
                                                                └── R
                                                                    └── S
                                                                        └── T
                                                                            └── U
                                                                                └── V
                                                                                └── W
                                                                                └── X
                                                                                └── Y
                                                                                └── Z

25 directories, 0 files

{A..Z} expands to A B ... Z,
printf "%s/" prints the arguments with a / after them, so I get A/B/...Z/
and mkdir -p creates the A/B/.../Z directory with any parent directories that needed creating.


Retrieve information from running process

If you send the output of a command to /dev/null, it's gone and you can't retrieve it. It would probably be a better idea to send the output to a place that doesn't get in your way, but where you can look it up if you need to.
Several options come to mind: If you're working with a GUI, you could just use a separate terminal emulation window and minimize that. Some terminal emulators also offer tabs. With that, you could run the download (or whatever command) in one tab and do other work in another tab.
In a TUI (text based user interface), a terminal multiplexer like GNU screen or tmux could be a solution. With those, you can use multiple windows and/or split the screen into multiple sections. So, you could run your download in one window or split, and do other work in other window(s) or split(s).
A third way could be to just redirect the output to a file instead of to /dev/null. If you need it, you can look up the output in the file, and if you don't, it's not in your way. You'd only have to remember to clean up those files every once in a while (or use a place that gets cleaned up routinely, like /tmp).


You broke your system by unwisely installing software from a non-Ubuntu source.

Lots of good clues in the error message:

openssl : Depends: libssl1.0.0 (>= 1.0.2g) but 1.0.2d-1 is installed

libssl1.0.0 1.0.2g is in the Ubuntu 16.04 repositories.

libssl1.0.0 1.0.2d-1 is not in Ubuntu (nor Debian). You installed it from somewhere else.

To fix the problem, disable the non-Ubuntu source. Then uninstall ALL packages from that source. Refresh your package database (sudo apt update) because your sources have changed. Test your package manager for proper function (sudo apt upgrade). Then re-install the packages you need from the Ubuntu repositories.


ERROR: Docker version 1.12.6 not supported, please upgrade to at least 17.03.1, or recommended 17.06.2

I think I solved this problem when I had it by uninstalling docker-engine and docker (but not removing the apt sources) and reinstalling docker by following the docs.

Here are some notes about how we upgraded Docker (also for Discourse). Unfortunately, I didn't write down the specifics of the Docker upgrade.


Package is in a very bad inconsistent state

I tried many things and then this worked!

sudo dpkg --remove --force-all (packagename)

even after this if your problem is not solved then find all the files in /var/lib named with your package name as a prefix and use

sudo chmod 777 filename

with all of them and then create a copy of them (in case if something goes wrong) and then use

sudo rm filename

to delete of them and then run this again

sudo dpkg --remove --force-all gcc-4.8-base:i386


How to map the AltGr key to the Menu key?

Alt_Gr has the very intuitive name ISO_Level3_Shift. Therefore one has to change the following line in the pc file as instructed here from

key <MENU> {    [ Menu  ]   };

to

key <MENU> {    [ ISO_Level3_Shift  ]   };


Bash script to create multiple directories and Subdirectories

It is difficult to tell what you are trying to do but I think this does what you want:

#!/bin/bash

cat *.txt | while IFS= read -r line; do
    mkdir -p -- "$line/Dir3/Dir4"
done

This will read through all the .txt files in the current directory and make a folder with the path ./<line from file>/dir3/dir4.

If this is what you wanted to happen the reason it wasn't working is that $(ls -D) will only list the files in the current directory. It will not recurse down into sub-directories. So even if the first script created a dir1/dir2 directory the second script would only see the dir1 directory.


Where are all the `alternatives` stored?

This data seems to be in /var/lib/dpkg/alternatives, also check man update-alternatives for more information.


It looks like it was just as simple as a missing slash.  Thanks cmak.fr!


Why do the versions of Thunderbird and Firefox differ in 12.10?

I noticed, that on my Ubuntu 12.10 Thunderbird is only version 17.06
  while Firefox is already on 21.0.

  It seems, like the updates of Firefox are somewhat faster?

So, it means that you have the latest version of both software. The version of firefox doesn't have to have the same version as thunderbird.

Today, these are the latest versions :

thunderbird 17.0.6
firefox 21

  (I have a lot of important emails inside my Thunderbird, that I have to keep access.)

In that case, I wouldn't enable additional repositories to install beta or pre-release software, since it can be quite unstable.


How can I start Ubuntu One when OS X starts?

It currently doesn't start automatically. You can add it yourself using the instructions on this page: http://support.apple.com/kb/PH11177?viewlocale=en_US


Ubuntu 16.04: cannot download any software & updates

Remove the ttf-mscorefonts-installer package by running this command:

sudo apt-get purge ttf-mscorefonts-installer

In case this does not work, try that:

sudo apt-get -o 'Dpkg::Option::=force-remove-reinstreq' purge ttf-mscorefonts-installer


How do i log output of background program in a file

If you use a recent version of bash and also want to detach the program to the background you could use this command:
setsid programname &>> logfile &


LXC: Can I guarantee a certain level of CPU resources to a given container

After a few days further research... cgroups!

This video from Red Hat sums it all up brilliantly. Now get it implemented!

http://www.youtube.com/watch?v=KX5QV4LId_c


How to enable globe in Shutter in Ubuntu 18.04?

Go to the official download webpage for gnome-web-photo for Ubuntu 16.04.

Select a mirror and download gnome-web-photo_0.10.6-1_amd64.deb

Open the terminal and change directories using cd to the directory that contains the gnome-web-photo_0.10.6-1_amd64.deb file that you downloaded.

Install gnome-web-photo with the following command.
 sudo apt install ./gnome-web-photo_0.10.6-1_amd64.deb

This command automatically installs gnome-web-photo's dependencies along with the package.

You might need to restart shutter or reboot OS in order to see changes.

The shutter .deb package has been discontinued in Ubuntu 20.04. Shutter is still available as a snap package and can be installed by running sudo snap install shutter, but Shutter's grab a screenshot of the current window plus one of its menus feature no longer works in the Shutter snap package. Fortunately the default "Screenshot" app in Ubuntu 20.04 now has the features that Shutter used to have in Ubuntu 18.04.


APT (Advanced Packaging Tool) is the system that Ubuntu uses to manage all of the software installed on a system. It allows you to “pin” a package to a certain version, so that it won’t be updated when you the Update Manager runs.

To pin your kernel packages, first you must determine what version your kernel is. One way to do this is to open the Synaptic Package Manager in System > Administration.

Type in “linux-generic” in the Quick search text field and hit enter.

Make a note of the number listed in the “Installed Version” column. We’ll use it in the next step.

Next, we need to edit the file /etc/apt/preferences. Open it by pressing Alt+F2 to bring up the Run Application window and entering in:

gksudo gedit /etc/apt/preferences

This will open up a gedit window. Most likely the window will be blank, unless you’ve played around with APT before.

In the window, type in the following, replacing the version number with the version number you found in the Synaptic Package Manager.

Package: linux-generic linux-headers-generic linux-image-generic linux-restricted-modules-generic
Pin: version <insert version here>
Pin-Priority: 1001

Save the file and close gedit. If you open the Update Manager, you should see that the Linux kernel updates are now hidden!

Source

Blocking packages with APT/DPKG

Remember the package name of your kernel from above.

Open a terminal and run:

sudo -s

And hit enter.

Enter your password for sudo:

echo kernel_package_name hold | dpkg --set-selections

Replace kernel_package_name with the name of the kernel you want to pin.

Now run:

sudo apt-get update && sudo apt-get upgrade

To remove pin from Apt/Dpkg:

Open a terminal

sudo -s
echo kernel_package install | dpkg --set-selections

Replace kernel_package with the package you want to pin.

Now run:

sudo apt-get update &&  sudo apt-get upgrade

Source

What you're trying to do is called pinning. The sources I gave you above, have the essentials on what you must do to accomplish your tasks in hand.


Delete files that were created before today

find with -mtime +1 returns files that were modified two or more days ago.

It is a documented behavior i.e. -mtime ignores any fractional portion. From man find (Time calculation is identical in -atime, -mtime and -ctime):

  -atime n

  File  was  last  accessed  n*24 hours ago.  When find figures out how many 24-hour periods ago the file was last accessed,
  any
                fractional part is ignored, so to match -atime +1, a file has to have been accessed at least two days ago.

Now if you can use couple of solutions:

You can do:

find . -type f -mtime +0

This would get you the files modified one day or more ago.

In your case:

find $HOME -type f -name "myFile_*.sql.zip" -mtime +0

To get precision like this case, you should use -mmin option which strictly matches minutes.

So lets say you want to get the files that were modified more that 7 hours and 10 minutes i.e. 430 minutes ago, you can do:

find . -type f -mmin +430

In you case, do the calculation and replace 430 with that value:

find $HOME -type f -name "myFile_*.sql.zip" -mtime +430

Another option is to do it the reverse way.

You can create a reference file e.g. ref.txt:

 touch -d 'today + 2 days ago' ref.txt

Now you can find files that were modified more recently than ref.txt:

find . -type f -newer ref.txt

In your case:

find $HOME -type f -name "myFile_*.sql.zip" -newer ref.txt

Once you are satisfied with the results, you can remove the file(s) e.g.:

find . -type f -mmin +430 -delete


Can the admin of a SSH server monitor internet traffic?

Yes, an admin can practically monitor anything you type. All he would need to install is a keylogger like logkeys and it will store any key you touch. So that includes passwords.


I just recursively chmod'd everything under / to 750. Any tips?

At this point, the only way I can think of that might help you is to do a reinstall without formatting.

However, you could try logging in, and then doing sudo -i which will give you root access. You could also do what is suggested here. Also, the serverfault guys suggest reinstalling as well, to that might just be your best option. :(

If you do a reinstall without formatting, make sure to log in via a tty and run the following:

sudo chmod -R 700 /home/YOUR_USERNAME && sudo chown YOUR_USERNAME:YOUR_USERNAME /home/YOUR_USERNAME. To find out what your username is, run whoami and it will tell you.

Then reboot, and you should be set.

Also, I don't think anyone here will scold you - I've done it once, I also did a sudo rm -rf /* on a production system once, so don't feel bad. :)


How can I return non-zero if upstart job fails to start?

I figured it out.

description "MyJob"

respawn

# retry 4 times in 3 seconds
# This should ALWAYS be true:
# 4 times * sleep .5 < 3 sec
# Otherwise it will continue respawning forever
respawn limit 4 3

start on runlevel [2345]
stop on runlevel [!2345]

script
    exec python /usr/local/bin/myscript.py
end script

post-start script
    # Time after starting service should unquestionably be running
    sleep .5
    if ps fax | grep '[m]yscript' ; then
        exit 0
    fi
    exit 1
end script


Install program into folder which is equivalent to windows program files

There's no real equivalent since Linux is not Windows.

If you're installing netbeans for your own usage, it's reasonable to install it in your home directory, and the location it suggests is as good as any.

If you want to install it in a location where all users can get to it, there are several options.

Netbeans probably contains a lot of files and libraries, and on Unix systems these are usually installed in different locations (again, no direct equivalent to Program Files where you'd just dump every component for an application in its own directory; note that even on Windows this isn't strictly enforced as DLLs and other components can be scattered in several locations on the filesystem). For instance, binaries go in /usr/bin while libraries may go in /usr/lib and assorted data files somewhere in /usr/share.

About the closest thing you'll find to Program Files is the /opt directory, meant for " the installation of add-on application software packages." (see http://www.pathname.com/fhs/pub/fhs-2.3.html#OPTADDONAPPLICATIONSOFTWAREPACKAGES). You can conceivably install in /opt/netbeans if you so choose.

have a read about the Filesystem Hierarchy Standard to understand how a Linux filesystem is organized.


How install Real Time Application Interface (RTAI) in ubuntu 14.04

Just type:

    sudo apt-get install rtai

and enter the root password. Rtai will then be installeld.


Zoom and Anaconda Navigator have weird scaling

Fixing Zoom's Scaling Issue: Check out u/190's reddit post.
TL;DR of the post: Apparently, Zoom started doing that after some recent update. To fix things, you just have to set autoScale to false in Zoom's config file, which is ~/.config/zoomus.conf.
Fixing Anaconda Navigator's Scaling Issue: Turns out my Anaconda Navigator was not displaying right because it was configured by default to automatically scale up on high DPI displays, and when I disabled that option things went back to normal. Here are the steps you can follow to disable it:

Run QT_SCALE_FACTOR=0.5 anaconda-navigator to open Anaconda Navigator. (If you run anaconda-navigator without a QT_SCALE_FACTOR, it might run too zoomed-in for you to follow the steps below)

Go to File > Preferences, and uncheck "Enable High DPI Scaling".

Close Anaconda Navigator.


How do you run netscape 2 on Ubuntu 13.04?

It's not finding the libraries from the tarball. Try sudo ldconfig to refresh the library cache.

(In general, it's not safe to unpack random tarballs from the internet in your root directory. In this case, JWZ is very experienced and his blog post says that he tested it, so it will probably be fine, but be very careful about doing this in the future.)


Boot error for custom compiled kernel - gave up waiting for root device

I suggest using KernelCheck for this, it makes it very easy to compile the kernel with just a few clicks.


I have recieved messages informing me that a ip address is trying to view my computer remotely.

The most important thing is to make sure that if you don't want remote login, to disable the SSH server on your computer. By default, it doesn't run, so unless you intentionally started it before, it shouldn't be.


How to unistall cinco dias from ubuntu phone

You you go the Apps scope and hold the corresponding icon pressed, it will open a new tab where you can uninstall or open it.


What can I use to transcode and transfer music to my digital audio player at the same time?

SoundConverter
SoundConverter can transcode your music files from various locations to one location. Once you start it up, go to Edit->Preferences and edit the format, quality and output folder as you need:

You can then close the preferences window and use the main interface to add your music folders (normally just ~/Music).

Once it has finished loading the music, you can press the 'Convert' button and it will convert all of the listed files, putting the output files into the folder you chose in Preferences.
It is a simple program, and doesn't have the 'watch folder' functionality but is good for one off transcodings. When you get new music, you can convert just those files/folders.


How to add 'new docx' item in Ubuntu file manager context menu?

The easiest way to do this is to add a document to ~/Templates (the Templates folder in your home directory).  For example, if you put stuff.docx in this folder, under the "new document" option in the context menu, "stuff" will be an entry and will create a docx document when clicked.  This actually creates a copy of the file in the "Templates" folder so you can put text into the document and it will be copied into every document created from this menu.

This can be used to add any document type you wish to the "New Document" right-click option.


How to fresh install Win7 under grub boot loader?

Here's the general outline:

Reinstalling Windows 7
Reinstate GRUB
Mount the /boot partition
Install the boot loader

Step One
Re-install Win7.

Step Two
Load up from your Ubuntu live CD, and then run these commands.

If you DO NOT have a separate /boot partition:

  sudo mount /dev/DEVICENAME_FROM_STEP_ONE /mnt
  sudo rm -rf /boot    # Careful here, make sure YOU ARE USING THE LIVE CD. I tried it, it works.
  sudo ln -s /mnt/boot /boot

If you have a SEPARATE /boot partition:

  sudo mount /dev/DEVICENAME_FROM_STEP_ONE /boot

Step Four
Then continue with those commands:

  sudo apt-get update && sudo apt-get install grub-pc
  sudo grub-setup /dev/sda     # NOTE THAT THERE IS NO DIGIT
  sudo umount /boot

And restart. It should work fine and boot both systems.


Does Ubuntu have onboard support for dual video

yes you can do this with ubuntu but is best to check hardware compatibility


Autostart mono exe file with detached screen

Redirect your output to a file and then look into the file if you want to see what happens

mono Server.exe > file.log

Then see what happens with

tail -f file.log

It would be sensible to make sure the file is emptied so it will not full up all of your disk space. You can use logrotate to take care of that. Put a configuration file into /etc/logrotate.d/. There are examples how to do it.


Correct way to move a Linux partition to SSD

I would repeat all your steps but just before deleting the old Ubuntu partition, from the new Ubuntu in the SSD, execute

sudo grub-install /dev/sdX

Where sdX is the name of the drive you want to install it to.

After you delete the old Ubuntu, update-grub one more time to delete it from the list.


Login loop likely due to NVIDIA drivers with CUDA installed

The solution is try to reinstall the driver and reconfigure lightdm also. In the worst case you will need to install CUDA again but try reinstalling the driver first by downloading the installer from nvidia(the shell script).

  Is there a chance that my CUDA environment will break if I touch the drivers? Is there actually anything else I could try to fix the issue?

Not necessarily. As long as your drivers are in place. nvcc should function properly.


Black screen after selecting Install Ubuntu from boot menu (running Windows 8 pre-installed)

I have a number of suggestions, none of which is guaranteed to help:

Adjust your boot options. Pressing the "e" key at the GRUB menu will enable you to edit the options passed to the kernel. It's conceivable that adding or removing some options will prevent the reboot you're seeing, or at least show you some useful diagnostic messages. Removing quiet splash should do the latter, but I don't have any specific recommendations to actually fix the problem. (Those are likely to depend greatly on your particular hardware.)
Use a different boot loader. This will require replacing GRUB on your USB flash drive with something else, which is not a well-documented procedure, AFAIK. The best I can suggest is that you read my EFI Boot Loaders for Linux page (and particularly the first two sub-pages) to learn the principles and then apply them to your USB drive.
Fiddle with firmware settings. You can launch your firmware setup utility and start adjusting settings. I have nothing in particular in mind to change, but it's conceivable that some setting in there will improve matters.
Use a different distribution. You might simply have better luck with something other than Ubuntu 14.04. Maybe this is a 14.04-specific bug and 13.10 would work; or you might have to switch to something entirely different, like Fedora.


Check https://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/speed.html

We got some improvment using

socket options = TCP_NODELAY


Why is the Ubuntu Control Panel so limited?

This is a GNOME 3 change, and there is a utility named gnome-tweak-tool or "Advanced Settings" that you can install from the Ubuntu repositories.

You can also install ubuntu-tweak to access some unity configurations and other settings. Also you can install the dconf-editor to edit some hidden options of gnome and unity but it is only recommended if you know what are you doing:

sudo-apt-get install dconf-tools

and then in the alt+f2 menu or in a terminal type

dconf-editor


Empathy Notifications ? How open Emphaty from envelope?

Well I guess I resolved this problem :) But by using Kopete instead of Empathy :) With Kopete it all works perfect :)


Accidently activated keyboard input methods

The default keyboard shortcut to enable and disable input methods is Control + Space.
 Once enabled, the default keyboard shortcut to cycle through input methods is Alt + Shift.

I think it shouldn't have break your keyboard. Can you open a terminal and type
 gnome-keyboard-properties to check your keyboard layout?


Working with multiple terminals one of which is mission critical?

"Terminals" themselves are not the node process that's actually doing the work. The output you see on the terminal you see are merely a representation of the stdin and stdout of the process.

The process itself will be called node and it's functioning is not directly linked to the terminal except that when the terminal is closed ( i.e SIGHUP is sent to the process since it's the child of the terminal ), the process is shut down, since the terminal created the process by forking itself and replacing its contents with your node application. This can be circumvented by adding an & to the end of the command (which makes it ignore SIGHUP) or running your command inside a screen or tmux session (recommended since you can easily connect back)

Hence to answer your questions

Since terminals don't really "contain" your process, there isn't really any isolation between them. If any process has root access, it can mess with any other process
This all depends on the niceness value of the process in question since if more overall CPU time is granted to a process with a lesser nice value, and hence can potentially slow down any other process with a higher nice value if the system is being pushed to the limit
nice allows you to set the 'niceness' of a process, the lower the niceness, the more the priority. As for network you can use trickle to shape the bandwidth

In any case running anything mission critical on a system that's also used for research/dev work is not very optimal and should be avoided whenever it's possible


Try disabling hardware acceleration in flash. Worked for some YouTube videos for me on my ATI HD3000 series graphics card. HTML5 is the way to go though


Can you set up Banshee visualisations without root privileges?

The short answer: Yes.

The long answer: Yes, but it's not practical.

In general, banshee allows to create and run user specific extensions in a directory in the user's home folder. However, there are two problems with that:

It is not straightforward and cannot be done with the debian packages, since using apt-get requires root.
You will need to compile the extensions yourself, since this option is by default disabled at compile time, and for that you need the whole mono development environment, and to install that you also need root, so back to square 1.


how to boot ubuntu from external hard drive

Multiple errors trying to prevent it.

Grub should be installed on /dev/sda

Then left to do:

Disconnect the internal disks, and install Grub on the external, and this /dev/sda, previous change in the /etc/fstab file the UUID of the partition.

Install Grub in the root partition of the external, previous change in the /etc/fstab file the UUID of the partition, and then  from an internal hard disk session run:

sudo -i
update-grub

In order to incorporate the external disk operating system.


How to set up  Wi-Fi Hotspot for sharing using 2 wired and 1 Wi-Fi network cards?

All the clients are told by DHCP server to use the eth1 IP address as gateway, but that address isn't reachable by Wi-Fi clients, thus they cannot be routed to other networks. Wi-Fi clients can't even ping wlan0 address because both eth1 and wlan0 are on the same subnet and wired interfaces take precedence over wireless interfaces, thus the ping reply get out by eth1 and nerver reaches the wireless client.

You must separate eth1 and wlan0 subnets and configure DHCP accordingly.

/etc/network/interfaces:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
 address 192.168.1.15
 netmask 255.255.255.0
 gateway 192.168.1.1

#The secondary network interfaces
auto eth1
iface eth1 inet static
 address 10.0.0.15
 netmask 255.255.255.0

auto wlan0
iface wlan0 inet static
 address 10.0.1.15
 netmask 255.255.255.0

/etc/dhcp3/dhcpd.conf:

ddns-update-style none;
ignore client-updates;
authoritative;
default-lease-time 1209600;
max-lease-time 1814400;
option local-wpad code 252 = text;
option domain-name-servers 192.168.1.15;
option time-offset 0;

subnet 10.0.0.0 netmask 255.255.255.0 {
  option routers 10.0.0.15;
  range 10.0.0.21 10.0.0.30;
}

subnet 10.0.1.0 netmask 255.255.255.0 {
  option routers 10.0.1.15;
  range 10.0.1.21 10.0.1.30;
}


Virtual Machines: High-DPI screen scale resets to 100% when I resize VM's window

Fire up your terminal and type:

gsettings set org.gnome.desktop.interface scaling-factor 2

In virtualbox i tested it, and i can resize vm window without losing scaling.
This applies to wayland, so 17.10 is best to test this.


Two battery indicator symbols, how do I get rid of one?

There is an open bug about this. It only shows when the unity panel is set to whitelist all applications in the system tray, and seems to be related to GNOME Power Manager having a fall back icon.

I don't know if it will indeed be fixed soon, but I would suggest either waiting a while to see if an update fixes it, or disabling the unity systray whitelist.

How do I set the panel whitelist back to the default?


The issue, as alluded to by Jacek, was that I was using localhost.

I changed the code as below and it worked fine in so far as external requests were reaching the application.

Host = Configuration.Config.Get("grapevine-host", "localhost")

To

Host = Configuration.Config.Get("grapevine-host", "*")


How can I ensure transmission traffic uses a VPN?

Create vpnroute group:

sudo groupadd vpnroute

Add an iptables rule that rejects any outgoing network connection made by members of the vpnroute group that does not go through tun0 interface:

sudo iptables -A OUTPUT -m owner --gid-owner vpnroute \! -o tun0 -j REJECT

Start transmission process as a member of vpnroute group:

sudo -g vpnroute transmission-gtk &


If your service is masked it is symlinked to /dev/null
You can verify by:
ls -l /etc/systemd/system/systemd-resolved.service

To remove the mask simply run:
sudo systemctl unmask systemd-resolved

/lib/systemd/system/systemd-resolved.service is a text file and cannot be executed by bash. The service binary is located /lib/systemd/systemd-resolved


IPTABLES/UFW: Deny ssh (on alternate port) requests from WAN, and allow ssh (on alternate port) from LAN. HOW TO?

I can only answer part 2, the iptables way:
You have not made it clear to us how WAN sourced packets would get to your server in the first place, and that information might necessitate an edit to this answer. This answer assumes your server only has one NIC, and is not also acting as your router, which would require 2 NICs.
sudo iptables -A INPUT -i $EXTIF -m state --state NEW -p tcp -s 192.168.1.0/24 --dport 40001 -j ACCEPT
sudo iptables -A INPUT -i $EXTIF -m state --state NEW -p tcp -s 0.0.0.0/0 --dport 40001 -j DROP

These rules assumes that somewhere in the overall rule set there is a preceding:
sudo iptables -A INPUT -i $EXTIF -m state --state ESTABLISHED,RELATED -j ACCEPT

Where $EXTIF is replaced by your NIC name. Which you might actually be able to leave out the interface specification for this application, but I didn't test it.


Upgrade to 16.04 fails and disrupts graphics because dkpg encounters errors with TeX packages

The low-graphics problem

As I rebooted the computer after posting the question, 16.04 splashed into the same desktop environment of 14.04 and in the normal quality mode. This was the desired outcome. This suggests that the sequence

rebooting in normal mode rather than in recovery mode, thus unlike the suggestion of this post;
going into a terminal session (CTRL+ALT+F1);
restoring the network access with sudo dhclient eth0 that I missed, as from ifconfig -a where no inet addr showed up;
launching sudo apt-get install nvidia-commons to have the appropriate driver installed,

has fixed the low-graphics mode error. Probably the healing part of the apt workings begins from line 395 in the stdout+stderr log posted here. One can found these files in /var/log/apt.

Note 1. At the first reboot after the installation of nvidia-commons, I had the 'encryption passphrase' (a misnomer for the user password) asked twice by the terminal rather than by the graphical interface as one would expect. This has been a one-off occurrence.

Note 2. At the first splash into the desktop environment, the network connection did not get established. I used sudo dhclient eth0 as in point 3 above to fix this. This too has been a one-off glitch.

The TeX+apt+Ubuntu 16.04 problem

From the regained desktop environment, I then run the Software Updates which failed as it used to after upgrading from 14.04 to 16.04. Suggestion: stay by the computer during this long process as the terminal may ask you for the 'encryption passphrase' several times and, in my experience, up to 3 times in a row.

Taking courage from this post, I have removed the list of packages that bothered apt and that had been listed anew in /var/log/apt/term.log. These packages all related to TeX as before. Namely:

sudo apt-get remove tex-common latex-sanskrit texlive-latex-base tipa texlive-latex-recommended texlive-publishers texlive-pictures texlive-latex-extra texlive-xetex latex-xcolor latex-beamer cm-super-minimal cm-super texlive-metapost context context-modules texlive-font-utils texlive-extra-utils feynmf latex-cjk-common latex-cjk-chinese latex-cjk-japanese latex-cjk-korean texlive-lang-other latex-cjk-thai latex-cjk-all latexmk texlive-pictures-doc texlive-music m-tx musixtex pmx texlive-generic-recommended prerex purifyeps texlive-bibtex-extra texlive-fonts-extra texlive-fonts-extra-doc texlive-fonts-recommended texlive-fonts-recommended-doc texlive-formats-extra texlive-lang-french texlive-lang-indic texlive-lang-cjk texlive-publishers-doc texlive-latex-extra-doc texlive-science-doc texlive-lang-korean texlive-pstricks-doc texlive-humanities-doc texlive-lang-greek
sudo apt-get autoremove
sudo apt-get autoclean

The next run of Software Updater went well. This confirms some problematic relationship between TeX and the upgrade to Ubuntu 16.04. This far, after a few reboots, I have noted no difference with respect to the behaviour in other computers where I made a fresh install of 16.04. I will have to reinstall the TeX packages but that's another job.


As your ip range has no symmetry and there are only 10 nodes, I would suggest to list them in a text file. I am considering the file containing the list is list.txt which contains list of ip one at each line as shown below,

10.12.13.14
172.15.48.3
192.168.45.54
...
48.114.78.227

You can use this script,

#!/bin/bash
# Program name: pingall.sh
date
cat /path/to/list.txt |  while read output
do
    ping -c 1 "$output" > /dev/null
    if [ $? -eq 0 ]; then
    echo "node $output is up"
    else
    echo "node $output is down"
    fi
done

To update the running status of your nodes at an interval of 30 mins use at crontab,

*/30 * * * * /path/to/pingall.sh > /path/to/log.txt

Output of log.txt

$ cat /path/to/log.txt
Fri Jan 31 15:06:01 IST 2014
node 10.12.13.14 is up
node 172.15.48.3 is up
node 192.168.45.54 is up
...
node 48.114.78.227 is down


Ubuntu Server 20.04 and Postfix: configure SPF for a subdomain return error: spf=neutral and all emails marked as spam

Add ip4:1.2.3.0/CIDR and ~all in spf record can solve issue. But this is not good because someone who has that ip range can send mail will be authenticated.


You need to run these four commands in the terminal (one after another!):

wget -qO - http://download.opensuse.org/repositories/home:sxxxx/xUbuntu_12.04/Release.key | sudo apt-key add -
echo 'deb http://download.opensuse.org/repositories/home:sxxxx/xUbuntu_12.04/ /' | sudo tee -a /etc/apt/sources.list.d/qtck2launcher.list
sudo apt-get update
sudo apt-get install qtck2launcher


Ubuntu 18.04 is freezing randomly. How do I debug this?

I had the same problem and at least for me there were 2 problems:

The first one was a problem with my video card, so I had to go to bios settings and uncheck the Switchable graphics option.

And the second one, was related to Chrome using a lot of memory and I had to disable chrome hardware acceleration, take a look a this to see if it helps.

ubuntnu-18-freeze-while-using-chrome

Greetings!


How to watch Acestream / Sopcast Ubuntu 16.04 LTS?

It's now one step installation:

sudo snap install acestreamplayer

and to run it:

acestreamplayer.engine --client-console
acestreamplayer

If running the above commands after the successful snap installation fails with a command not found error, you might need to add /snap/bin to your $PATH or run it using the following commands:

snap run acestreamplayer.engine --client-console
snap run acestreamplayer

Based on info @ https://www.cnx-software.com/2018/04/15/how-to-install-and-use-acestream-easily-in-ubuntu-mint-linux/


"EISA : cannot allocate resource for Mainboard" error on installation

The EISA error is nothing to worry about. The system should still boot. Could you please try to boot with the option acpi=off


How to share Android USB tethered network on the entire LAN?

You will need to specify your gateway your android phone. In /etc/network/interfaces on your server you can define the gateway for your network. Define default gateway your android phone for your server. Be sure your usb interface is shown up in ifconfig. When yes then define for your eth0 interface the gateway ip the ip address of your android phone.


First two possibilities:

Broken DNS resolution.  Run host ntp.ubuntu.com (or dig, or nslookup - whichever you have installed) from the non-working system to find out if they return IP addresses.
Firewall blocking network connectivity.  If you can't get to a pool host over UDP port 123, NTP will not function.

As always, checking /var/log/syslog for messages from ntpd or using systemctl status ntp might offer some useful hints as to which one is more likely.


Does Ubuntu on Nexus 7 support the GPS hardware?

It would seem to me that currently there is not support for the onboard GPS. Developers are still working on getting functionality out of the firmware for broadcom wifi and bluetooth.


After TrueType fonts intstallation, they are not availabe on openoffice

Check if you have installed the ttf-mscorefonts-installer and/or fonts-liberation packages in Synaptics. They provide Microsoft TrueType fonts and substitutes respectively.


rmdir will only remove empty directories while rm -r will remove directories and files within them recursively. Thus, it is safer to use rmdir.

It can save one when hidden files get involved since a cp * or mv * won't copy or move the hidden files along with the rest. rmdir will refuse to delete the folder if there is anything in, even hidden files so it serves as a additional protection in cases like these. Of course, you could just do rm -ri if you wanted to be really careful, but personally, I find rmdir much faster.


How to see detailed information about a given PID?

ps -Flww -p THE_PID

will show you some information. See the ps manpage for more information about the ps command. The "STANDARD FORMAT SPECIFIERS" section explains what the different columns mean.


Grub menu not showing after recent Upgrade

I tried to inspect my BIOS setup. I didn't change anything, and I even used the option "discard changes" to exit. After exiting the setup, the GRUB menu magically showed up.
I was able to select Ubuntu, boot it, and then run:
sudo update-grub
This fixed the issue; new reboots are showing the GRUB menu again.


What is the difference between Debian contrib & non-free and how do they correspond to Ubuntu repositories?

In a nutshell, these are what Ubuntu's archive divisions mean:

1) main: Free software, officially supported by Canonical

2) universe: Free software, NOT supported by Canonical

3) restricted: Non-free software officially supported by Canonical (includes device drivers mainly, amongst others)

4) multiverse: Non-free software NOT supported by Canonical (flashplugin-nonfree comes over here)

Debian has these divisions:

1) main: All free software that follows the DFSG (Debian Free Software Guidelines)

2) contrib: Free software that follows DFSG but depends on software in non-free.

3) non-free: All kinds of non-free software that doesn't follow the DFSG.

Since Debian doesn't differentiate among packages on the basis of support (since all packages are supported by the Debian community), contrib and non-free packages correspond to Restricted/Multiverse in Ubuntu. By default, all contrib and non-free packages enter Multiverse when they are synced. If Canonical intends to support them, they are moved to restricted.


Interrupt `mv` command by ctrl+c, and disk space is lost

I found a solution.
I just set zero reserved-blocks as follows:
sudo tune2fs -m 0 /dev/sda

Then df -h shows
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb        7.3T  7.1T  132G  99% /KRX


If you don't tell something to format the /home partition, then it will not be formatted :)
The upgrade process will only update system files and not your own data. Beware if some software configuration format or options has changed though, since ~/.config will remain unchanged.


how to simplify the info contained in /var/log/auth.log

1) from the auth.log, how can I tell that the "successful su" was by me,
  not by hackers who may have gained my login info?

That would break the meaning of log files. How should your system know if it is a hacker, that did a succesfull su?

  2) How to filter the auth.log file so that it succinctly reports which
  user successfully logged in, for how long, and from where?

That's what the program last is for. It parses the files /var/log/wmtp and /var/log/utmp, that contain this information. See:

user@host:~$ last
root     pts/0        1.2.3.4      Fri Apr  4 07:59   still logged in
root     pts/5        1.2.3.4      Wed Apr  2 15:58 - 17:00  (01:02)
root     pts/0        1.2.3.4      Wed Apr  2 07:39 - 16:15  (08:36)
root     pts/0        1.2.3.4      Tue Apr  1 07:39 - 16:00  (08:20)

Additionally your can parse older wtmp and utmp files with the -f option: last -f /var/log/wtmp.1.

  3) Is there a log file to check what the hackers did?

See question 1). When a hacker gains access to your system it IS a successful authentication. So the system does not know that it is a hacker. All you can do is searching in /var/log/* for traces.


fatal error: log4cxx/logger.h: No such file or directory

You are missing the development package, liblog4cxx10-dev. You need to install it to compile code which uses the library.


sudo rm -rf /var/lib/apt/lists/partial/lb.archive.ubuntu.com_ubuntu_dists_precise_universe_i18n_Index
sudo rm -rf /var/lib/apt/lists/partial/lb.archive.ubuntu.com_ubuntu_dists_precise_restrivted_i18n_Index

sudo rm -rf /var/lib/apt/lists/partial/lb.archive.ubuntu.com_ubuntu_dists_precise_multiverse_i18n_Index

sudo apt-get update

This will remove the cached apt lists. And update them again, to get the newest.


It's pretty rare these days to find /usr split off into its own partition (or logical volume, as you've got). I used to do it that way myself, but I haven't had such a system for a while now. I've just checked a couple of systems I have and, subtracting out the space used by /usr, /var, and /home (when they're not separate filesystems), I've found disk space used in / alone in the 370-500MiB range.

Your /dev/mapper/owncloud--vg-root logical volume, by contrast, is just 313MiB in size. Thus, it's not really surprising that you're running out of space, and even if you delete some files, you'll probably be in the same boat again very soon. I recommend you either re-install with a larger /, and perhaps keep /usr and/or /var within that / (in which case it should be much larger -- say, 10-30GiB); or use system-config-lvm or the LVM command-line tools to resize your logical volumes and grow /. Given the space used on my systems, I'd make it at least 1GiB. There are several questions and answers on the latter topic on this site, such as:

How can I resize an active LVM partition?
How do I shrink the root logical volume (LV) on LVM?

A broader Web search turns up quite a few tutorials on this subject, too.


The results of sudo netstat -tlpn | grep :80 indicate that you have Apache running. Two processes can't listen to the same socket at once, so that's why nginx can't start.

You can stop Apache with sudo systemctl stop apache2, and if you want, disable it with sudo systemctl disable apache2. The latter command will permanently disable automatic start of Apache.

If you want to remove Apache, run sudo apt remove apache2 apache2-data apache2-utils.


Ubuntu 20.04 won't boot and won't write any logs

I found the problem!
It turns out that /etc/fstab had the wrong UUID for /. I might have misplaced the backups and restored another computer's one.
In case it is useful for anyone, I was able to hide the splash screen while booting pressing F1 and I saw a few errors there, seemingly not related to each other. It was the one about grub not being found which gave me the hint. Something was happening when mounting the file system.
I've checked /etc/fstab and I've noticed that the fs where / should be was not matching the result of running blkid | grep /dev/sda6 (where that fs is mounted from)
I've just booted from the installation USB, mounted /dev/sda6 in a temp dir, edited /etc/fstab and rebooted.


SOLVED

Epson XP - 305

Install wine
Insert Epson CD and open folder
Open InstallNavi.exe with wine (right click on mouse > wine windows program loader)
Follow instructions from CD (when error appears do not close, but click show and continue application)
You should be able at one moment to have wi-fi connections full bars on the printer's LCD screen (follow instructions from the set up)
Open printers on upper right ubutu menu (shut down button near user account)
Click > Add printer....wait... after a while your printer shall appear
Choose and install driver (basically ubutu will do all the work)
Print test page
END


17.04, can't detect HDMI monitor, ThinkPad P51

I got the same issue on my Lenovo P51 with Quadro M2200 graphics card. I'm running Ubuntu 16.04. Here's how I fixed it:

Boot your laptop (not connected to HDMI) in Hybrid Graphics mode.
Install nvidia-prime.
Change settings in "PRIME Profiles" to "NVIDIA (Performance Mode)".
Logout to apply changes.
Connect HDMI.

It now displays in both screens.


You can use hint from apt-get install linux-source command:

$ sudo apt-get install linux-source
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  linux-source-4.4.0
Suggested packages:                                        #<--  suggestion
  libncurses-dev | ncurses-dev kernel-package libqt3-dev   #<--  is here
The following NEW packages will be installed:
  linux-source linux-source-4.4.0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.

The libqt3-dev is not available, but you can install Qt4 one.

So you should install three packages and build tools:

sudo apt install ncurses-dev kernel-package qt4-dev-tools pkg-config build-essential

Then you will be able to run make menuconfig and make xconfig.


open Brasero Go to edit --> Plugings --> untick to image checksum

Also select Direct Burning it ask when your files ready to Burn

Now You Can Burn Fast


apt-get: unmet dependencies, but dependencies can't install

I had to manually free up space in boot. Since apt-get was useless, I had to manually remove the files for the 2 oldest linux kernels. This is an example of what I ran to remove a single kernel.

Warning: Dangerous:

sudo rm /boot/vmlinuz-3.8.0-36-generic /boot/System.map-3.8.0-36-generic /boot/initrd-3.8.0-36-generic /boot/config-3.8.0-36-generic /boot/abi-3.8.0-36-generic

After freeing up space, apt-get -f install still failed, due to a half-installed kernel from the previously failed do-release-upgrade.

I ran do-release-upgrade again, and this time it was successful, except for the packages that were previously failing in apt-get. Here's an example of what was shown at the end of the upgrade:

dpkg: error processing package linux-generic-lts-trusty (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-generic-lts-trusty
 libc6-dev:amd64
 linux-generic-lts-trusty

From here, I was able to run:

apt-get update
apt-get -f install
apt-get autoremove
apt-get upgrade

install fixed the dependency errors, and upgrade installed the latest kernel appropriately. I rebooted to test it out, and everything appears to be good.


Coloured fringing with Windows TrueType fonts

Coloured fringes are the result of sub-pixel AA.  You should check if you use the correct subpixel AA for your display (orientation & order of colours) as using the wrong type will make it really bad.

Or you could just disable it (as I do).  ;)

I did have a closer look at your image, and it seems like it uses two subpixels at both sides of all vertical lines, which maybe explains why it's more visible (usually at most 1 subpixel is used, I think).

It's very well possible that the hinting in open fonts prevents this, or that somehow there are fontconfig rules to prevent this for open fonts (you might be able to create a fontconfig rule that disables subpixel AA for the fonts that have these heavy colour fringes).  Or maybe this is a bug in the subpixel algorithm that gets triggered only by some fonts.

In any case, I'm probably a bad judge of how common it is for this to happen, because I see coloured fringes on all fonts when I enable subpixel AA, so I always disable it.


Can't install PPA after switching to Ubuntu

It can be that this PPA is tailored towards Mint and can't be installed to Ubuntu. Try other PPAs.

If they all fail, bad luck. You messed up Ubuntu installation. You have leftover Mint files in your Ubuntu partition. It can't be repaired because nobody know what exactly was left.
Reinstall your Ubuntu, don't forget to either format root partitions or remove all folders that are not cleanly your own from it.


If you are asking how to remove drivers, then you don't have to do anything.

When you plugged the device it, it didn't "install itself", but was detected by Linux kernel and necessary modules were loaded.

When there is no device, it will be detected by Linux automatically.


You either have video driver problems or permission problems with some required files in your home folder.
First, you need to enter terminal by pressing ctrl - alt - F1 in login screen. Then do
   sudo chown -R /home/username
to restore permissions.


You can use Annotate the document button. Then move to the annotation and click right button, annotation properties, and then select the color.

See http://www.debugpoint.com/2016/05/evince-3-18-2-comes-with-text-and-highlight-annotation-in-ubuntu-16-04/ for visual support (for evince 3.18.2+)


What does “dist-upgrade” mean?

It upgrades current OS and installed programs
The process does not affect personal data stored in /home folder
The process will not upgrade the OS version, will not wipe data or settings
It is safe to run it
As you can guess, a backup of personal files is not specially required before an sudo apt dist-upgrade but recommended for general use.

From apt-get manual:

dist-upgrade
   dist-upgrade in addition to performing the function of upgrade,
   also intelligently handles changing dependencies with new versions
   of packages; apt-get has a "smart" conflict resolution system, and
   it will attempt to upgrade the most important packages at the
   expense of less important ones if necessary. So, dist-upgrade
   command may remove some packages. The /etc/apt/sources.list file
   contains a list of locations from which to retrieve desired package
   files. See also apt_preferences(5) for a mechanism for overriding
   the general settings for individual packages.


Is there an existing web gui for locate?

Update, January 22,2018:

I have stumbled upon mlocate-web on GitHub, which fits OP's requirements quite well, although lacks ability to open files. Can be ran manually or as daemon. According to the README.md, the package was developed on Ubuntu 16.04, so it's quite recent as of right now.

Mini-update, Feb 2

Added double quotes to gnome-open "$TOPEN", so that gnome-open gets full pathname of files that have space.

Update # 2,Jan 30 :

As requested in the comments , I've refined the script, and added the option to open files. Everything is implemented with zenity, locate, and gnome-open. Praise the Unix philosophy of piping commands into others !

I've annotated the script , so it should be clear where, what, and how.
In  the screenshots I'm opening the Hello World  program for java.
The script exits at any point if user clicks Cancel/Quit buttons.

Side note: The OP requested that the app should be cross-platform. As far as I know, zenity,gnome-open, and locate are not dependent on presence of GNOME shell. Besides, users will be connecting to his Ubuntu server, and all those apps work on Ubuntu regardless of GNOME shell's presence. In other words, they're going to be executing the script on his system, not theirs, to locate the files.

The refined script:

#!/bin/bash
# Author: Serg
# Description: GUI using zenity for locate utility
# Date: January 30, 2015

# This flag will make popup appear if nothing was found
FOUND=0

# Ask user for input, and store it in USRFILE variable
USRFILE=`zenity --entry --title="SEARCH"  --entry-text="Text here" --text="Enter a filename or part of it"`

# if use clicked OK, proceed to this big if statement
if [ $(echo $?) = 0 ]
    then
    TOPEN=$( ( locate $USRFILE ) | ( zenity --height 450 --width=450\
     --list --column "Please wait, I'll display paths to files, if I find any"\
     --title "SEARCH RESULTS" --text "Select a file you want to open"\
    --height=450 --width=450 --ok-label="Open a file " --cancel-label="Quit" )  )
    # FIXME: if user clicks open a file without selecting one, program will crash
    # FIXME: selecting a file and hitting enter, brings up "Nothing found" dialog

    # If user clicked "Open a file" , gnome-open
    # will open it with whatever default
    # program is listed for that file-type
    if [ $(echo $?) = 0 ]
        then
        gnome-open "$TOPEN"
    fi

    # Set flag to true, do not display "Nothing found"
    if [ $(echo $?) = 0 ]

        then FOUND=1

    fi

    # If we didn't  find anything, display a message
    if [ $FOUND != 1  ]
        then zenity --info --text="Nothing found"
    fi

fi

Screenshots of the refinements

Get user input

Display search results if any, might take a moment to load

Open the selected file

For a suggestion on how to make this script open with a short-cut (double-click), refer to my previous update below

Update #1,Jan 29 : Disregard my previous post. I've though about the way you worded the problem : "a gui front end to locate". In fact there exists a gui front end to scripts , zenity, and I've used it to make a rough draft of a script that might be useful. Feel free to alter it and add functionality, but at the most basic level  it's locate with gui.

As for making a script "double-clickable" refer here

The script

#!/bin/bash

FOUND=0

USRFILE=`zenity --entry  --entry-text="Text here" --text="Enter a filename or part of it"`
zenity --info --text " Please wait a little, I'll try to find it "
locate $USRFILE > results.txt && zenity --text-info --html --filename='results.txt'
if [ -e results.txt ]
        then FOUND=1
        rm results.txt
fi

if [ $FOUND != 1  ]
         then zenity --info --text="Nothing found"
fi

Screenshots

Old post

There is gnome-search-tool, which I've checked with ps and htop utilities and it doesn't take too many resources. You can install it with sudo apt-get install  gnome-search-tool.


What is the list of TABLETS able to run with Ubuntu-Touch?

I found 2 tablets in this Wiki

Nexus 7
Nexus 10 Manta


OpenVPN connects but can not connect to local network resources or browse internet

I have managed to work it out thanks to some other posts.  It appears my etc/ufw/before.rules had a mistake in the subnet; instead of /8 I've updated to /24 and all seems to be working well now!

In /etc/ufw/before.rules

Updated:-

-A POSTROUTING -s 10.8.0.0/8 -o br0 -j MASQUERADE``

To:-

-A POSTROUTING -s 10.8.0.0/24 -o br0 -j MASQUERADE

Thanks all for helping me with this


Installed ubuntu 14.04 on external HDD, can't move it to another computer

for a generic question like yours you can simply reinstall grub on your HDD.

use a Ubuntu Live CD or USB, plug your hard drive and open a terminal. Mount the partition where you installed Ubuntu, for example, if the hard drive is on sdb:

sudo mount /dev/sdb1 /mnt

after that, do a simply reinstall grub on the MBR's hard drive:

sudo grub-install –root-directory=/mnt/boot /dev/sdb


I needed the same thing, and nerd-sniped my friend Stuart Langridge to develop this functionality. He made a great GNOME Extension called Clock Override which enables you to put whatever you want in the clock area in the centre of the screen.
You can configure it to say anything. The settings below will show a very verbose time such as "2021-03-06T23:23:00+00:00" but you can of course make it say something shorter.


Ubuntu 20.04 on Raspberry Pi 4 - Wired connection works but it's not detected

Does you distro an Rpi official?
Have you tried in wlan connection? if so, what is the result?
Do you have wlan turned on while using eth0? Try to disconnect wlan, it could generate some sort of IP conflicts


ubuntu 16.04 running out of sapce and virtualbox vdi not extending automatically

I have only ever used Virtualbox on Windows but assume that it works in a similar way.
When you create your vdi in the first instance it asks what size it should be, defaulting to 8GB iirc. This is the maximum size that the vdi will expand to. You are choosing whether to just block out the 8GB from the start or whether to expand to 8GB as you need it.

If you fill up that space then you will need to expand it.
Again, I have only ever done this on Windows but a quick search shows up a bunch of answers...may be this could be of help to you (even if it is a bit old)?

How do I increase the hard disk size of the virtual machine?

EDIT
Sorry, just re-read that it is a Windows host, try this instead.

http://derekmolloy.ie/resize-a-virtualbox-disk/


Are you sure the computer is trying to boot from the newly formatted ubuntu partition? How many hard drives or partitions do you have? Try analysing the boot priority order within your bios to ensure that the computer is at least trying to boot from the right partition and that the blinking cursor is actually coming from the new install.


You didn't say how it isn't working. I'm assuming that you mean that your computer won't boot. In that case, you can try booting into a LiveCD or LiveUSB environment (of the same version as your Ubuntu installation). Then, mount your hard drive somewhere. I'm assuming that you mounted it on /mnt for the sake of this answer. Any other place is fine, as long as you make the necessary adjustments to my instructions.

sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc
sudo chroot /mnt

At this point, you're in your machine with root privileges.

apt-get upgrade # Or whatever commands you want.
exit # Back to the live environment...
sudo umount /mnt/{proc,sys}
sudo umount /mnt
sudo reboot


You should be able to modify the /etc/X11/default-display-manager file in recovery mode after re-mounting the root filesystem with read-write permissions

mount -o remount,rw /

The default-display-manager~ file is likely just a backup automatically created by the editor that you used - it probably has nothing to do with your situation. You can delete it when you're done.

I'm not familiar with using an empty /etc/X11/default-display-manager file as a way to suppress GUI startup. If GDM is started via upstart you may want to look at using an /etc/init/gdm.override file (containing the single entry manual) instead.


Am I using all the power of my PC in Ubuntu? How can I find this out?

Well, I do believe - actually - you're using not just your PC at its full potential, you're also wasting it!

You've 4Gb of RAM, so 32 or 64 bits is the same. That's ok, you're correctly using all the available RAM.
You have 4 cores. Ubuntu is surely using them correctly, because it IS made to use everything at the maximum.

The problem is (or at least may be), you don't want to use all the powerhorses all the time! Electricity costs.

If you do care about this point, install cpufrequtils and this http://www.webupd8.org/2011/07/cpu-frequency-scaling-indicator-fixed.html.

Otherwise, you're good to go!


Internet connection sharing without Network Manager

Fixed:

sudo iptables -A FORWARD -o ppp0 -i eth1 -s 192.168.1.0/24 -m conntrack --ctstate NEW -j ACCEPT
sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
sudo iptables -t nat -F POSTROUTING
sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

Thanks again to g0rdon at #openwrt :)


Bootoptions can be configured by pressing e @ selected Bootentry, add nomodeset after quiet splash and press Strg + x, this should help if it is a graphical Issue as it sets the Resolution to a Failsafe. For Persistence of these Changes, put them in /etc/default/grub.


how to check already executed programs in Linux?

I add date and printf statements near the beginning and end of my scripts to write the date and time to a text file in my home directory. I also direct the output to that file so it records the output you would get if it was run in a terminal. Here is an example
#!/bin/sh

set -e

date >> /home/john/anacronjobs.txt

printf "pizero Starting!\n" >> /home/john/anacronjobs.txt

rsync -avh pi@pizero1.local:/home/pi/Python /home/john/pizero1 >> /home/john/anacronjobs.txt 2>&1

printf "pizero Done!\n\n" >> /home/john/anacronjobs.txt

date >> /home/john/anacronjobs.txt

exit

Using the >> operator ensures it appends to rather than overwrites the file
The output looks like this
Sun 14 Feb 11:06:04 GMT 2021
pizero Starting!
receiving incremental file list
Python/test.txt

sent 6.53K bytes  received 6.42K bytes  278.52 bytes/sec
total size is 1.17M  speedup is 90.55
pizero Done!


Setup Ubuntu Core 16 for RPi 3 without SSO

No. You cannot use Ubuntu Core images without SSO, nor can you use apt to manage them. You would need to install an Ubuntu Server image ARM build for the Raspberry Pi 3.

There is an arm64 ISO available, but not a preinstalled image for Raspberry Pi 3, it seems.


How do I change my operating system from Windows to Ubuntu?

Hi there if you go onto the Ubuntu website or use the link provided you can download the Ubuntu OS (http://www.ubuntu.com/download/desktop), you will then need to decide what version you would like. I would recommend 12.04 LTS as you will have more support but you can try 13.04 which has the latest features.

Once you have downloaded the iso file you will need to burn it to a disk. Or you can you can put all the installation files onto a USB drive and run it. To do that you will need the following software (http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/)

Please make sure that backup all your files from your original OS before you proceed to installing Ubuntu as you will loose all you files unless you decide to dual boot, which I would recommend if you are not 100% sure that you want Ubuntu as you main operating system.

All your software will probably not work on Ubuntu such as Microsoft Office, Internet Explorer etc, but ubuntu does have lots of alternatives and there is a program call wine which you can use if you want to try and use Windows software of Ubuntu.

Hope this is some use to you.


Copy pasted from: http://www.ubuntu.com/download/desktop/install-desktop-long-term-support

It’s easy to install Ubuntu from a CD. Here’s what you need to do:

Put the Ubuntu CD into the CD/DVD-drive.

Restart your computer. You should see a welcome screen prompting you to choose your language and giving you the option to install Ubuntu or try it from the CD.

If you don't get this menu, read the booting from the CD guide for more information.
Using a USB drive?

Most newer computers can boot from USB. You should see a welcome screen prompting you to choose your language and giving you the option to install Ubuntu or try it from the CD.

If your computer doesn’t automatically do so, you might need to press the F12 key to bring up the boot menu, but be careful not to hold it down - that can cause an error message.

2
Prepare to install Ubuntu

We recommend you plug your computer into a power source
You should also make sure you have enough space on your computer to install Ubuntu
We advise you to select Download updates while installing and Install this third-party software now
You should also stay connected to the internet so you can get the latest updates while you install Ubuntu
If you're not connected to the internet, we'll help you set up wireless at the next step

3
Set up wireless

If you are not connected to the internet, you will be asked to select a wireless network, if available. We advise you to connect during the installation so we can ensure your machine is up to date. So, if you set up your wireless network at this point, it’s worth then clicking the Back button to go back to the last screen (Preparing to install Ubuntu) and ticking the box marked ‘Download updates while installing’.

4
Allocate drive space

Use the checkboxes to choose whether you'd like to Install Ubuntu alongside another operating system, delete your existing operating system and replace it with Ubuntu, or — if you're an advanced user — choose the 'Something else' option

5
Begin the installation

Depending on your previous selections, you can now verify that you have chosen the way in which you would like to install Ubuntu. The installation process will begin when you click the Install Now button.

Ubuntu needs about 4.5 GB to install, so add a few extra GB to allow for your files.

Not sure about this step? Windows users can use the Windows installer, which will install and uninstall Ubuntu in the same way as any other Windows application. It's simpler and completely safe.

6
Select your location

If you are connected to the internet, this should be done automatically. Check your location is correct and click 'Forward' to proceed. If you're unsure of your time zone, type the name of the town you're in or click on the map and we'll help you find it.

TIP: If you’re having problems connecting to the Internet, use the menu in the top-right-hand corner to select a network.

7
Select your preferred keyboard layout

Click on the language option you need. If you’re not sure, click the ’Detect Keyboard Layout’ button for help.

8
Enter your login and password details

9
Learn more about Ubuntu while
the system installs…

…or make a cup of tea!

10
That’s it.

All that’s left is to restart your computer and start enjoying Ubuntu!


black screen except launcher and menu bar parallel ubuntu on mac

It is only supported for the Mac operating system, not anywhere on the Mac Computer. You'll have to install Mac OS X again if you wanna get Parallels working. Yes, Mac is kind of based on Linux, but applications for Mac OS X won't run on Linux and applications from Linux won't run on Mac OS X.


Missing user logo screen on the unity panel

Open System Settings -- open User Accounts -- tick Show my login name in the menu bar.


Do I need to install a desktop to run a nomachineNX server?

No, you don't need to install a desktop. In fact, for your use, I don't think you need to install X itself, since NX provides one itself.

Yes, someone has tried NX4. But that's a type of question that isn't suitable for this site.


playonlinux's unmet dependencies block from installing anything

Sounds like you should remove playonlinux with dpkg --remove playonlinux or install it's dependencies with apt-get -f install.


Virtual Machine Server and Multi Factor Authentication

In the interest of science I took the plunge and enabled Multi factor authentication using the Google system. I don't know why I ever doubted Ubuntu, it worked!

For those interested in setting it up, I used the following two links to great success.

Secure an Ubuntu OpenSSH server from Brute force attacks but without a firewall or SSH key pair?

https://www.digitalocean.com/community/tutorials/how-to-set-up-multi-factor-authentication-for-ssh-on-ubuntu-16-04

And to actually answer the question this is what is seen when you have 2FA enabled and connect to a remote virtual host.


Recover ecryptfs home directory from damaged hard disk

After a live USB reboot, I managed to retrieve the data using the "short way". It gave me an "Ecryptfs error locking counter", but I solved it with adding a tmpfs entry in /etc/fstab (inside the chrooted environment) as described here. Apparently no hard disk troubles so far. I leave this here in case someone has similar issues.


JAVA RPC server is not working in Ubuntu 10.04 Server Edition

Does it work when your client is running on the same system?

Do you have a firewall enabled, for examples iptables?

And final question, not related but important: you understand that 10.04 will go out of service next month?


I use relinux it's much better than Remastersys


"Boot device not found" when I try to boot after system installation with USB

Based on comments above and the fact that the installation pops out a let me say different kind of button as expected, now it seems to me as install hangs with error forcing it to quit and waiting for restart before grub properly configured itself.

Long story short as you can boot to live USB session, you are able to reinstall grub from there and everything should work as expected then.
Long story • How to reinstall grub using live USB

  Double check whether you accidentally installed bootloader on that installation USB or on HDD. You can do that simply by booting with that USB inserted.

Nevertheless, if you can access grub rescue then start from there. If you see the grub rescue > shell (right after the boot error message), continue typing ls to list your drives and partitions. You will see something like:

(hd0) (hd0,msdos1) (hd0,msdos2)

Check them one by one if you don't know which has the system installed on it.

ls (hd0,msdos1)/
ls (hd0,msdos2)/

The right one should have listed lost+found dir etc.

Assuming (hd0,msdos2) is the right one, we can continue by setting grub root and going out of rescue mode to the normal terminal, where more magic is available.

set prefix=(hd0,2)/boot/grub
set root=(hd0,2)
insmod normal
normal

  You will be able to boot from here, but if only some rare errors occurs, you can still set the boot image manually as it follows.

insmod linux
* linux /vmlinuz root=/dev/sda
ro

Optionally, you can select the initrd image, too.

initrd /initrd.img

After boot, you have to reinstall grub from terminal and set it to boot from your hard drive.

sudo update-grub
sudo grub-install /dev/sda


What does the commands `import gravity` and `import antigravity` do?

import gravity lets you click on a window and saves a screenshot of that window in a PostScript file named gravity in your current folder.

import antigravity does the same thing  with a file named antigravity


Expose (OSX Style) Functionality in Unity

Super+W should automatically be set in 11.04 (Super is the Windows key on most keyboards). If that doesn't work, look into the CompizConfig Settings Manager (install) and search for "Scale" to change various settings.


It simply means, that some line on source.list if reffering to a web resource which doesn't exist and the simplest solution would be by replacing the sources.list file with the Ubuntu's default and updated sources.list.

Here's a pastebin link to Generic Sources.list :  http://pastebin.com/raw/uzhrtg5M

Or generate sources.list according to your preference by this online tool :  https://repogen.simplylinux.ch/

Btw did you try finding the specific line that is causing errors?


In smb.conf, this is what I did:

I added / changed these lines to

map to guest = Never # Disables any login with a non-user
 restrict anonymous = 2 # Disables recon potential
usershare allow guests = no # Not sure exactly what this does, but looked like a good one to set to no

Then, I also changed any guest_ok lines to no

guest ok = no


"ATE1 E0" received over raw serial terminal over Bluetooth connection to a raspberry 3B+

This relates to a AT Modem command and originates from the ModemManager service running on the Raspberry Pi. To fix it, just turn off the ModemManager service:

sudo systemctl stop ModemManager

Also you migth want to disable the ModemManager:

sudo systemctl disable ModemManager


Failed to connect to socket /com/ubuntu/upstart: Connection refused: Errors were encountered while processing: runit

I've encountered the same error.  Reading the error message, it appears that the runit install script expects upstart at one point, but my system (and I suspect yours) is running systemd.  Notably, I've another machine that did not have this error during installation; the only substantive difference is that the erroring machine was an upgrade from 14.10, while the the "just works" machine was a fresh install.

As Vivid is not an LTS, I submit that one could edit the post installation dpkg file to get this back on track.  (This trick should also work for LTS installations as well, but hopefully would be a non-issue).

When dpkg errors out with

Setting up runit (2.1.2-3ubuntu1) ...
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
dpkg: error processing package runit (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
 runit
E: Sub-process /usr/bin/dpkg returned an error code (1)

it will have left the runit package in an semi-installed state.  You should find a runit.postinst file in /var/lib/dpkg/info/.  This file is executed as part of the post-installation details for the runit package (mainly for starting up runit immediately after installation, as opposed to waiting until next system boot).  The error is that the script appears to forget the exclusive nature of systemd/upstart.  Since you're clearly not running upstart, comment out the relevant lines (lines 58 - 60 on my install, currently).

Before:

if [ -x /sbin/start ]; then #provided by upstart
  /sbin/start runsvdir
fi

After:

#if [ -x /sbin/start ]; then #provided by upstart
#  /sbin/start runsvdir
#fi

When you've saved that change, you can tell apt to finish where it left off and you should be good to go:

$ sudo apt-get install -f


Uninstalling knetworkmanager removes icon from system tray

Solved .. All that was needed was to install plasma widget for network management. Everything is back to way it was before.


I was able to get this sorted out.

I was able to EFI boot the Mac Mini via the SD card but it kept failing on the installation from cdrom.  I created another install media onto a USB stick and mounted that to /cdrom.

Once the installer 'saw' the install media it was able to continue.  Ive now got a Ubuntu-only Mac Mini that boots perfectly.


Installing mysql-server on 10.04LTS gives "404 Not Found" error

You need to run sudo apt-get update first and then try again; that specific version is obsolete and has been updated


Create another instance of GNOME shell extension for development purposes

Open the metadata.json file located at
/home/rahi/.local/share/gnome-shell/extensions/clipboard-indicator@rahi.ca/
 and put "clipboard-indicator@rahi.ca" for the "uuid" entry so that it looks like

"uuid": "clipboard-indicator@rahi.ca",

(i.e. it should match the directory containing the metadata.json file).
You may also want to change the value for the "name" parameter.

Then save the file and restart GNOME shell (or re-login).

Then you should find another instance of the extension in Tweaks > Extensions (I renamed it "Clipboard Indicator for development"):

To learn more about uuid see this.


Why is the google PPA reenabled after an upgrade to a new release?

(Credit to Jorge Castro for this answer)

The Google packages install a cron job in /etc/cron.daily/ for custumizing the repository configuration and reenabling the source after a release upgrade.

Each Google package will put its own script (or a link to a script) here.  For example: google-musicmanager, google-chrome or google-talkplugin (the latter being a symlink to a script at /opt/google/talkplugin/cron/google-talkplugin).

Here is the description from the google-talkplugin script:

# This script is part of the google-talkplugin package.
#
# It creates the repository configuration file for package updates, and it
# monitors that config to see if it has been disabled by the overly aggressive
# distro upgrade process (e.g.  intrepid -> jaunty). When this situation is
# detected, the respository will be re-enabled. If the respository is disabled
# for any other reason, this won't re-enable it.
#
# This functionality can be controlled by creating the $DEFAULTS_FILE and
# setting "repo_add_once" and/or "repo_reenable_on_distupgrade" to "true" or
# "false" as desired. An empty $DEFAULTS_FILE is the same as setting both values
# to "false".

The script will:

# Install the repository signing key
# Update the Google repository if it's not set correctly.
# Add the Google repository to the apt sources.
# Remove our custom sources list file.
and
# Detect if the repo config was disabled by distro upgrade and enable if necessary.

Here is the portion of the script that detects and reenables the repo config after a release upgrade.

handle_distro_upgrade() {
  if [ ! "$REPOCONFIG" ]; then
    return 0
  fi

  find_apt_sources
  SOURCELIST="$APT_SOURCESDIR/google-talkplugin.list"
  if [ -r "$SOURCELIST" ]; then
    REPOLINE=$(grep -E "^[[:space:]]*#[[:space:]]*$REPOCONFIG[[:space:]]*# disabled on upgrade to .*" "$SOURCELIST")
    if [ $? -eq 0 ]; then
      sed -i -e "s,^[[:space:]]*#[[:space:]]*\($REPOCONFIG\)[[:space:]]*# disabled on upgrade to .*,\1," \
        "$SOURCELIST"
      LOGGER=$(which logger 2> /dev/null)
      if [ "$LOGGER" ]; then
        "$LOGGER" -t "$0" "Reverted repository modification: $REPOLINE."
      fi
    fi
  fi
}

And here is the /etc/apt/sources.list.d/google-talkplugin.list file that is created by the script.

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/talkplugin/deb/ stable main


in 'sound' settings you can change the audio output to HDMI.
You will need to change it back afterwards.


Failed to load “libpepflashplayer.so” on Firefox - Ubuntu

I solved this by typing this command :

sudo apt-get install pepperflashplugin-nonfree

hope this helps you.


You can use winusb to create a bootable USB drive.

To install on Ubuntu 14.04

sudo add-apt-repository ppa:colingille/freshlight

sudo sh -c "sed -i 's/trusty/saucy/g' /etc/apt/sources.list.d/colingille-freshlight-trusty.list"

sudo apt-get update

sudo apt-get install winusb


How to search for packages that provides a virtual package?

Assuming you know x-terminal-emulator is a virtual package, you may try

# absolutely blunt method
apt-provides() {
  apt-cache show '.*' |
    sed -n '/^Package: \(.*\)$/ {s//\1/;h}; /^Provides:.*'"$1"'/ {x;p}' | sort | uniq
}

# better method
apt-provides() {
  apt-cache show $(apt-cache search "$1" | awk '{ print $1 }' | tr '\n' ' ') |
    sed -n '/^Package: \(.*\)$/ {s//\1/;h}; /^Provides:.*'"$1"'/ {x;p}'
}

For example,

$ apt-provides x-terminal-emulator

gnome-terminal
xterm
aterm
aterm-ml
eterm
evilvte
guake
konsole
kterm
lxterminal
mlterm
mlterm-tiny
mrxvt
mrxvt-cjk
mrxvt-mini
pterm
roxterm-gtk2
roxterm-gtk3
rxvt
rxvt-beta
rxvt-ml
rxvt-unicode
rxvt-unicode-256color
rxvt-unicode-lite
sakura
terminal.app
terminator
termit
vala-terminal
xfce4-terminal
xiterm+thai
xvt

edit: included a blunt method for error-checking and made sed expression nicer


Trying to install Wireless Archer T4U Driver

I just did the following (on Ubuntu 14.04 LTS) which worked.
Make sure you have a working internet connection. Unplug the T4-U.
In a terminal:

git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
cd rtl8812AU_8821AU_linux/
make
sudo make install

If you the plug in the T4-U (no restart or log out needed), it is recognised.

(Answer based on this article: http://wiki.beyondlogic.org/index.php?title=TPLINK_Archer_T4U_RTL8812au_Linux_Drivers, which is slightly outdated since there's no need to manually add the T4-U ID anymore).


How do I install 'Make' without internet connection?

First, download the packages listed below

http://archive.ubuntu.com/ubuntu/pool/main/m/make-dfsg/make_4.1-9.1ubuntu1_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.27-3ubuntu1_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/libgcc1_8-20180414-1ubuntu2_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-8/gcc-8-base_8-20180414-1ubuntu2_amd64.deb

make requires libc6, libc6 requires libgcc1, libgcc1 requires gcc-8-base.

Copy these packages to a folder and transfer it to the pc on which they are to be installed.

Now, open a terminal into that folder and type the command

sudo dpkg -i *


Here is the easy answer:

Open gparted
Select the correct device in the menu Devices
Go to Device → Create Partition Table
Choose msdos
If that fails, throw away the USB stick: It's broken.  :-(
Now format
If that fails, throw away the USB stick: It's broken.  :-(


Run Mate without using a different operating system

It is possible. But for first experience I can recommend to install it on virtual machine or test with LiveCD/LiveUSB.

On already installed Ubuntu LTS you should install Ubuntu MATE meta-package with:

sudo apt-get install ubuntu-mate-desktop^

and then select MATE session on the login screen.

Removing GNOME session is also possible with:

sudo apt-get purge gnome-shell ubuntu-gnome-desktop \
ubuntu-desktop ubuntu-unity-desktop unity-session
sudo apt-get autoremove

And main GNOME software may be removed with (do not run it if unsure):

sudo apt-get purge activity-log-manager aisleriot alacarte baobab eog \
evince evince-common evolution-data-server-common file-roller gedit \
gedit-common gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0 \
gnome-accessibility-themes gnome-bluetooth gnome-calendar \
gnome-control-center gnome-control-center-data gnome-font-viewer \
gnome-getting-started-docs gnome-mahjongg gnome-menus gnome-mines \
gnome-online-accounts gnome-panel gnome-power-manager gnome-screensaver \
gnome-screenshot gnome-session-bin gnome-session-common \
gnome-settings-daemon gnome-shell-common gnome-shell-extension-appindicator \
gnome-shell-extension-ubuntu-dock gnome-software gnome-software-common \
gnome-sudoku gnome-system-log gnome-system-monitor gnome-terminal \
gnome-terminal-data gnome-themes-extra gnome-themes-extra-data \
gnome-todo gnome-todo-common gnome-user-docs gnome-user-guide \
libgnome-autoar-0-0 libgnome-bluetooth13 libgnome-games-support-1-3 \
libgnome-games-support-common libgnomekbd8 libgnomekbd-common \
libgnome-menu-3-0 libgnome-todo metacity mutter-common \
nautilus nautilus-data nautilus-extension-brasero \
nautilus-sendto network-manager-config-connectivity-ubuntu rhythmbox \
software-center totem totem-common webbrowser-app xwayland zeitgeist-core

sudo apt-get autoremove

After executing of these two commands you will get the system very similar to standard Ubuntu MATE 18.04 LTS installation.


!! Solved !! Why does mdadm --create start recovery

Answering my own question :)
Yes offcourse it is normal.
Since the md subsystem dosn't have a filesystem, it has to rebuild checksums for the entire array.


I want to install deepin music player in my ubuntu?

Well how to install it is these commands:

sudo apt-add-repository ppa:noobslab/deepin-sc
sudo apt-get update
sudo apt-get install deepin-music-player

I ran them all and got no errors.

Something else is wrong. Run this command:

sudo apt-get install --reinstall ca-certificates
sudo -E add-apt-repository ppa:noobslab/deepin-sc

Source

If that doesn't work - do you have a proxy? If so - solution is here.


Try gpointing-device-settings from the software center.

If that doesn't expose the needed features, use synclient in a terminal window. For example, to reduce the acceleration, use
synclient AccelFactor=XXX, where XXX is a number such as 0.144509 or whatever suites the touchpad.


I can't believe how this worked out!

Finally, after ~12 hours of searching, I learned how to set a static IP for my machine.  To may amazement, doing so completely fixed the problem!  Now all LAN access was as speedy as it had been under Vista. By the way, the magic trick in setting a static IP turns out to be hitting Enter after each IP you supply under the Network Manager (accessed by clicking that up-down arrow on the top bar).  If you miss even one, you can't save your entries.

However ...
A new and related problem arose the next time I booted Ubuntu.  It seems one always does!  I'll describe this as a new question, entitled, "Gateway IP Returns to Zero."

--Robert Smith


Here's my solution:

find sql/ -type f | awk '{system("mysql -u root -pXXX -h localhost mydatabase < "$0)}'


How to compile Linux driver from source given no /configure

That is part of the kernel tree, and not a separate external module. It's to be built with the build of the kernel, depending on how the build is configured.

If you want to build that module for an older kernel, you need to build it in the context of the older kernel, as a module, and you may need to do quite some back-porting work on 12.04 as that tree is a clone of the current master tree, and not the kernel version that is available in 12.04.


You want to apply the De-skew plugin from Gimp in batch mode. This means you prepare a script, then run it from Gimp in console mode to auto-rotate a number of scanned images in one go. Full instructions can be found here. Note, however, that the plugin's homepage has been moved to https://github.com/prokoudine/gimp-deskew-plugin.


cd-command not operating even with capitalized letters used in bash

Check if a Downloads directory exists in your home directory. If you are a root user your terminal prompt is a # character, so exit back to normal user by running exit and your terminal prompt will change from a # character to a $ character. Then run the following commands.

cd
ls

Make a Downloads directory if it doesn't exist and change directories to it.

cd # Change directories to your home directory.
mkdir Downloads # Make a Downloads directory if it doesn't exist.
cd Downloads


Please get a temporary wired ethernet connection, open a terminal and do:

sudo apt-get install linux-headers-generic
sudo apt-get install bcmwl-kernel-source
sudo modprobe wl

Your wireless should now be working.


Use Upstart to umount NFS at shutdown/restart?

Since you need to communicate with the remote system, you actually are too late if you start on net-device-down.

The bug you mentioned, https://launchpad.net/bugs/672177 , which I fixed, has nothing to do with NFS, and is definitely not your issue.

You mentioned a "known bug" that makes your system take 10 minutes to shut down, were you referring to https://launchpad.net/bugs/211631 ?

If you can create and edit upstart jobs, you should be able to edit fstab. There is a specific script that is run during the shutdown just to unmount NFS filesystems at the best time. If it is taking 10 minutes thats a pretty big problem, and should be reported and escalated as a bug we should fix in Ubuntu. You can specify the 'noauto' flag and it will not be mounted at boot time, so you can still control it with 'mount' and only mount it when you want to.

Finally, you may want to just do your unmount in a script in /etc/network/if-pre-down.d .. I have never tried this, but at least it will run before the network interface is deconfigured, so you have a chance to close the connections and sync data properly. Read man 5 interfaces for more on that.