How can I install iBroadcast Media Sync Lite?

These instructions are roughly based on the official readme, but with specific details and an additional step (step III) that I found was necessary to build successfully. I've tested them on Ubuntu 16.04 LTS.

I. Install prerequisites.

First install Git (to download the software), the tools to build the software, and the libraries used by the software:

sudo apt update
sudo apt install git build-essential libgtk-3-dev libcurl4-openssl-dev openssl libssl-dev libjansson-dev

Choose a place to build the software. The traditional place is /usr/local/src, which you can allow administrators (members of the sudo group) to read and write files in:

sudo chgrp sudo /usr/local/src
sudo chmod g+sw /usr/local/src

If you're building it somewhere else then you can adjust the following commands accordingly.

II. Download the source code.

cd /usr/local/src
git clone https://github.com/iBroadcastMediaServices/MediaSyncLiteLinux.git

Now you have a MediaSyncLiteLinux directory that contains the source code. The source code includes two files called Makefile, one in the top-level directory and the other in src. (Actually there are more than just those two, but those are the ones we care about.)

III. Patch the source code to link against libcrypto instead of libssl.

Currently, to build iBroadcast Media Sync Lite in Ubuntu 16.04, it is necessary to modify the Makefile in src. This is because it links against libssl but needs libcrypto instead. Future versions of the software (which you, or future readers, would obtain automatically by running the git command above) may not require this.

If you skip this step, currently you would get this error during the subsequent make step (step IV). The error message will look slightly different if you're using the 32-bit version of Ubuntu.

/usr/bin/ld: tools.o: undefined reference to symbol 'MD5@@OPENSSL_1.0.0'
//lib/x86_64-linux-gnu/libcrypto.so.1.0.0: error adding symbols: DSO missing from command line

That message means you must link against libcrypto.

Go to the src subdirectory of MediaSyncLiteLinux, back up the file, and open the file in a text editor. These instructions use the nano editor, but you can use whatever text editor you like. (Not a word processor though--the files must remain plain text.)

cd MediaSyncLiteLinux/src
cp Makefile Makefile.orig
nano -w Makefile

In the text editor, find the line that says:

LDFLAGS = `pkg-config --libs gtk+-3.0 libcurl libssl` -ljansson -lpthread -rdynamic

Change libssl to libcrypto, so now it says:

LDFLAGS = `pkg-config --libs gtk+-3.0 libcurl libcrypto` -ljansson -lpthread -rdynamic

Future versions of the software may have this line differ in other ways. You should only make this specific change to it. For example, if there are other libraries listed, don't remove them.

Everything in OpenSSL that this program needs seems to be provided by libcrypto, but in theory a future version might need libssl too. If so, you should see error messages about this when you try to build it--probably mentioning libssl.so, much as the error message shown above mentioned libcrypto.so. Other newly required libraries may be indicated similarly (if you're lucky).

Ctrl+X exits nano, and you will be prompted to save.

IV. Build and install the software.

Go to the top-level MediaSyncLiteLinux directory that was created by git clone. After following step III above, cd .. will achieve this (because you were in MediaSyncLiteLinux/src). Or you can run:

cd /usr/local/src/MediaSyncLiteLinux

Now to build it just run:

make

You're running make in the directory that contains the top-level Makefile. This is not the one you edited, though that one will automatically get used during the build too.

You will see warnings like warning: ‘gtk_widget_override_color’ is deprecated [-Wdeprecated-declarations]. That is okay. If there are errors, then that will have to be investigated. If not, then you can proceed to install it:

sudo make install

This will install iBroadcast Media Sync Lite in /usr/local.

Note that, while I suggest you install it, installation is actually optional. As the readme says, you have the option of just always running the mediasynclite executable that was created in the top-level MediaSyncLiteLinux directory when you ran make.

V. Run it and see if it works.

The mediasynclite command was installed to /usr/local/bin. Since that directory is part of users' $PATH by default, you can now run that command (from anywhere).

mediasynclite

You should probably run it from the directory where you keep your music. When you run it you'll have to log in to your iBroadcast account. This is what it looks like (after the initial splash screen) when I run it:

If you chose not to run sudo make install and want to run the compiled executable (from anywhere), you can run:

/usr/local/src/MediaSyncLiteLinux/mediasynclite

VI. Finding the Installed Files

You may someday want or need to find the files that were installed. When you run sudo make install it will tell you what files are being created. You may want to save that information.

As of the current version, they are:

The single binary executable file /usr/local/bin/mediasynclite.
The /usr/local/share/mediasynclite directory and its contents.

I mention this mainly because, as of now, uninstalling with sudo make uninstall is not supported. You can remove the files manually to uninstall. If you like, you could also use checkinstall instead of the sudo make install command given above, to make uninstallation easier. Or you can use it without installing it, by running the mediasynclite command in the top-level source directory.

Further Reading

Though it doesn't really tell you enough specific information to build this particular program if you don't have any experience compiling software from source code, CompilingEasyHowTo is a useful resource and may interest you.


Even though this is a bit old I'd like to answer this for other people who found this thread when trying to fix this issue, like me.

I found the fix is extremely simple.

Open the file manager and navigate to the desktop folder located in your Home folder. (The file manager will show all your desktop icons there)
Now simply drag and drop the icons you need moved from the file manager to the place you want on your desktop.

Instead of duplicating the icons, it will simply relocate the existing ones to where you want.


If you are using your internal hard disk for both Windows 8 and Ubuntu, then you should be storing your grub on the first sector of the HDD.

This is while installing Ubuntu, in the partitioning stage. You will get a dialog box with all your partitions mentioned and at the bottom, you will be asked where you want to store your grub. Here, you should point it to /dev/sda. Note that there is no number at the end and just the device name.


Format computer and install Ubuntu 17.04 server

Try this and start in text only:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
systemctl disable  display-manager.service
systemctl set-default multi-user.target
reboot

Should start in terminal without graphical environment.

How would You revert it back to normal though if You want to go back?

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
systemctl enable display-manager.service
systemctl set-default graphical.target
reboot

Comparison of SysV Runlevels with systemd Targets

Runlevel ----- Target Units -------- Description
0 runlevel0 -- poweroff.target ----- Shut down and power off the system.
1 runlevel1 -- rescue.target ------- Set up a rescue shell.
2 runlevel2 -- multi-user.target --- Set up a non-graphical multi-user system.
3 runlevel3 -- multi-user.target --- Set up a non-graphical multi-user system.
4 runlevel4 -- multi-user.target --- Set up a non-graphical multi-user system.
5 runlevel5 -- graphical.target ---- Set up a graphical multi-user system.
6 runlevel6 -- reboot.target ------- Shut down and reboot the system.


Can't use cd command or execute a file as root

As pointed out by @AnwarShah you could (and should) just run the script with sudo

sudo ./hp-linux-bios-installer

But here is what went wrong:

You put the .gzip file and the hp-linux-bios-installer in your ~/Desktop directory. You made the file hp-linux-bios-installer executable...

Then you do sudo -i

Whatever the current working directory is, when you open a shell as root with this command, you are now in root's home directory /root. Type pwd and you will see this.

Tilde expansion is performed in reference to the current user, so if you try to do

cd Desktop
cd ~/Desktop

neither of them will work because there is no directory /root/Desktop (and if there were it wouldn't be the one you want). You can use the full path

cd /home/YOUR_USERNAME/Desktop/DIRECTORY-NAME

or go in steps, (use ls and pwd if you get lost) (I use my own username as an example here)

cd ..
cd home
cd zanna
cd Desktop
cd [directory-name-with-the-files]

Now you can run the executable in this directory.


User friendly ubuntu distribution for Old PowerBook G4 15"

Xubuntu would be best for this. Some other people have gone through it here
http://ubuntuforums.org/showthread.php?t=1147883

I'd say download the live CD or USB and give it a try see how quick it is.


External USB mouse not being detected by Ubuntu 17.04

As a last resort, please unplug all USB devices from your PC, unplug machine so it totally disconnected from power. If it's a laptop also remove the battery.

Now wait a minute or two, then connect everything back to it state, and try use the mouse again.

Source: https://paulphilippov.com/articles/how-to-fix-device-not-accepting-address-error


save char in a specific position and line in a text file (bash)

A couple of options to extract the character:

sed -n '2s/\(.\).*/\1/p' file

or

awk -F '' 'NR==2 {print $1}' file

You can redirect the output to a new file > newfile or save the result as a variable using command substitution var=$(...)

If you really want to do it "in bash", then

n=0
while read line; do
  ((++n == 2)) && { echo "${line:0:1}"; break; }
done < file


Settings wont open after going to Devices panel: "Segmentation fault (core dumped)"

You can reset the control center to a good state with

dconf reset -f /org/gnome/control-center/


for gene in $(cat file1); do cat file2 | grep $gene; done
18      18      NM23XX  Als     2.34886


nvidia and intel low-graphics mode error

after a couple of months with no answers in any "ubuntu" community , i tried to :

sudo apt-get update
sudo apt-get upgrade

since after a couple of months there sure would be kernel update and drivers , and it was ,
i just waited for the system to install ~400mb new packages , hoping everything would be ok ,
guess what, it didn't .

The solution to my problem is : wipe the partition and reinstall ubuntu .
It kindda makes you wonder that an update can break the OS like that , well at least now i understand the blue screen of death for windows .


How to Remove the Restart Notification (One Time)

OK so I have been researching and experimenting, and here's what you need to do. Delete the following files, and optionally restart any process that's nagging you.

/var/run/reboot-required
/var/run/reboot-required.pkgs


How do I turn on popup blocker through terminal?

Please also check the MozillaZine URLs:
1.  http://kb.mozillazine.org/Prefs.js_file

http://kb.mozillazine.org/Editing_configuration

that describe the best methods for editing preferences in Mozilla.

Also a user.js file may be an option as preferences in user.js will overwrite preferences in prefs.js with the user.js preferences.


Accidentally skipped encryption dialog after installation. How to resume?

If you already have a regular (non encrypted) home dir, and you want to convert it to an encrypted home, you must follow this procedure:
http://blog.dustinkirkland.com/2009/06/migrating-to-encrypted-home-directory.html


Chrome menu options not revealed through Ubuntu Unity HUD

This is a known bug: https://bugs.launchpad.net/ubuntu/+source/hud/+bug/1197213, https://code.google.com/p/chromium/issues/detail?id=306667 . It is fixed in chrome 35 as the UI stack moves to aura, which will be released to stable hopefully within a month.


Deleting an embedded string in a text file with grep or anything else via terminal

Do not do

anycommand filename > filename

The shell processes the redirection before launching the command. The > file redirection will first truncate the file so its size is 0 bytes. Then, when the command starts, it has an empty file to work with.

The sponge command from the moreutils package exists for just this purpose:

anycommand filename | sponge filename

To answer your question, you'll want to use sed to edit your file

sed -i 's,/d[0-5]/,,' filename

sed's -i flag will save the changes back to the same filename.


Do you have a Notebook? If so, the 2nd plug will most likely be the input plug for microphone and if the first plug is blocked by a broken earphone piece you can't use line out anymore...

If you are on a Desktop PC with more than one output then you can have a look in the system audio options...


Using Microsoft Designer Keyboard and Mouse with ubuntu 16.04 (on a dell xps 13)

I updated to latest bluez version from 17.04. It's fixed there according to debian bug ticket.
I just downloaded the file manually.


you@yourpc:~$ sudo apt-get install unrar-free
you@yourpc:~$ unrar-free heroes3.rar

You should now be able to browse into the folder created when you unrar'ed the file, and double-click the .EXE file for Heroes and have it open in Wine.


Could I use my webcam as a barcode reader?

ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors.

It supports EAN,UPC, Code 128, Code 39 and Interleaved 2 of 5.

This package contains basic applications for decoding captured bar code images
and using a video4linux device (e.g. webcam) as a bar code scanner.

referred from this link

sudo apt-get install libzbar0
sudo apt-get install libv4lconvert
sudo apt-get install zbar-tools

You can also use qrdecoder

Install Python 2.7

sudo apt-get install python2.7

Install Python Imaging Library (PIL)

sudo apt-get install python-imaging

Install PyQt4.

sudo apt-get install python-qt4

Install zbar.

sudo apt-get install python-zbar

Download and unpack qrDecode source tarball to any directory.

wget http://qrdecoder.googlecode.com/files/qrdecoder-x.x.x.tar.gz

Where x.x.x is the version of qrdecoder

Unpack the tarball.

tar -xvf qrdecoder-x.x.x.tar.gz

Change into the qrDecoder directory.

cd qrdecoder-x.x.x

Start qrDecoder.

python qrdecoder.pyw

You may get an error Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap"

To get rid of this error, install gtk2-engines-pixbuf

sudo apt-get install gtk2-engines-pixbuf


In what way did I destroy my USB and how to repair it?

Creating filesystems on raw disks is comprised of two steps: creating partition(s) and then creating the filesystem.  I think what's happening is that you created a partition without a filesystem with gparted and then tried creating a filesystem without partitions using mkfs.ext4.  Try the following:

Zero out the drive again using dd just so we know we're starting from scratch
Create one giant partition using gparted that takes up the entire drive
Format the new partition as ext4 using the command sudo mkfs.ext4 /dev/sda1 (note the use of sda1 and not sda, this indicates the first partition vs the entire disk).

You might be already aware but Windows has no support for reading data on ext4 partitions (there are third party utilities but they're underdeveloped).  If you're wanting to read this thumbdrive from Windows and are running 20.04, I would recommend formatting as exFAT.  The downside to that is that exFAT doesn't support any permissions on the files/directories.


How to start Ubuntu installer in a graphical safe mode?

You can use the Alternate install CD.  Its text based install, but the final outcome is the same as the live CD.


Intel Centrino 1000 not working on an hp dm4t

Refer the following link, you will get a work around to your problem.

Wifi for Centrino Wireless-N 1000 Intel Corporation (HP Pavilion dm4 - 2070us) is not working


NP540? I think it's close enough to NP300 to try the following fix (worked for me on 12.04 and 14.04):

1) In /etc/default/grub, append two kernel options acpi_osi=Linux and acpi_backlight=vendor so the line looks like this (leave any previously existing options not related to acpi):

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"

Then run update-grub

2) Blacklist samsung-laptop module by creating /etc/modprobe.d/blacklist-np450.conf with the following contents:

blacklist samsung_laptop

3) Reboot, see if this works. If not, revert the changes (remove modifications to /etc/default/grub and /etc/modprobe.d/blacklist-np450.conf)


Do I need intall nvidia driver on ubuntu 14.04?

If you are happy with the resolution and performance as is, you need do nothing. You may find you get higher resolution or better performance by installing a manufacturers driver.

If you would like to try this, run additional drivers and see if one pops up for your card.


From my read of the image that you posted, the issue appears to be unknown filesystem type 'exfat'.

A bit of searching turned up this related exfat discussion, with a potential solution (you don't mention the version of Ubuntu that you're running). In short, your install of Ubuntu may be missing the exfat packages that should allow you to correctly read the SD card. Those packages can be installed with:

sudo apt-get install exfat-utils exfat-fuse


Cannot find location of permanent aliases.

Run man bash to see what files bash may be looking at.
They include .bash_profile, .bash_login, .profile,
and, if you went privileged, /etc/bash.bashrc and /etc/profile.
Or you could pick a word or a sequence of words from one of your existing aliases
(for example, qwerty aardvark42), and do

grep "qwerty aardvark42" ~/.*
grep "qwerty aardvark42" /etc/*


Ubuntu installer doesn't see internal hard drive on DELL Vostro 3360

Best thing I can think of is boot from your Ubuntu LIVE USB (should be an option in BIOS to boot from USB), then select "Try Ubuntu" from the window that pops up.

Once the GUI loads, launch your terminal from the dashboard and type sudo gparted to run Ubuntu's partition manager. From there you should be able to see all mounted and unmounted drives.

Also, Ubuntu's file format is ext4...Windows is typically NTFS. If it it NTFS, the Partition Manager you're supplied with may not see it but instead will show Fat32 and unallocated space partitions. Gparted will show you all partitions.

I may not be on par with your question here but not fully sure what you're asking. Interpreted to the best of my ability.


Boot delay due to missing SCSI removable disk

From the comments...

Not declared in the original question, testdisk had been used to restore their HDD from a partition erasure, and some partitions were clearly not working correctly.

Rebuilt the swap partition, edited /etc/fstab with the new UUID, and it's all working ok now.

Update #1:

I guess that it's not fully operational after all. Recommend backing up important data, wipe the disk, lay down a fresh MBR/GPT partition table (this will wipe the disk), and reinstalling Windows/Ubuntu.

Regarding swap, modern SSD's work fine with swap, without causing wear issues.


Will Ubuntu enable RANDOM_TRUST_CPU in the kernel and what would be the effect?

First, reasonably, the system's cryptographic security - its unpredictability -, is not going to be altered in any way, regardless of whether the CPU's built-in HWRNG (e.g. RDRAND in Intel) is used or not, otherwise, as you noted, that would unavoidably weaken the security of the RNG (and anything that depends on it).

Briefly, just to sum up, during the bootstrapping process, after the kernel has loaded the randomness driver, the Linux RNG initializes all the random pools (entropy pools, which are just memory areas that hold random data), including the main pool (input pool), by populating them with entropy which comes from the HWRNG if it is available, otherwise via random_get_entropy(), which is a macro for get_cycles(), whose implementation varies with the architecture (e.g. in aarch64 a read of the CNTVCT_EL0 register is done, which is kind of a frequency counter, not actually the clock rate which is instead used in x86-64 by reading the TSC reg). All this data is given to a primary cipher state (primary_crng, an object of type struct crng_state, which is the implementation of the ChaCha20 algorithm), which contains a key of 384 truly random bits, which are eventually supplied to the /dev/urandom interface.

Now with this contextualization, to answer your question, kernel's RNG actual initialization through rand_initialize(), being an early_initcall, happens obviously only at boot time (like all the *_initcall()), particularly, at the very end of start_kernel(), the kernel routine rest_init() gets called where, one of the first things it does, is to spawn a kernel thread (kernel_init) with the purpose, among other things, to launch that initcall (note also that add_device_randomness() is called even before, but doesn't actually add any entropic data); and consequently yes, per source, the cipher state of the ChaCha20, the primary and the blocking pools would be initialized with arch_get_random_long(), which makes use of the RDRAND instruction in x86 processors (again, if it's available, and if it is, the kernel warns you about this). I wouldn't say it's the only source used though (even if RDRAND is available), because, at least:

The firmware time is used and is mixed into the pools during the initialization (maybe not that entropic, still an attacker would have to infer the timestamp with an extremely high precision);
There's another little pool (one per CPU, called fast pool), which collects entropy from add_interrupt_randomness(), which uses IRQs (and theoretically other kernel events, and even some seed coming from the CPU hardware RNG if there is) as input, all mixed, and then it's injected into the input pool. This happens like every second.

So the process of gathering entropy from both the HWRNG and the other sources happens all together; of course the first one dominates the scene (because the entropy quality is definitely higher, it's a true RNG), and occurs at boot time, and, from userspace, whenever the pseudorandom devices (or the getrandom() syscall) are used. In the second case though, the pools are already initialized, and just the primary_crng (the cipher state) is reseeded. And yes, as you noted, the CPU built-in RNG surely improves the overall randomness.

I would finally add, that, especially in the embedded systems, which may lack of some source noise (like keyboards, hard disks, etc.), the usage of the HWRNG would have a significant impact. And just note that, always per documentation, you could disable the kernel usage of RDRAND way before the introduction of RANDOM_TRUST_CPU, if you're concerned with security.


The command xrandr will show the available resolutions and the current one with an asterisk.

xrandr | fgrep '*'


Ubuntu Touch/Phone Nexus 4 - 'No Data Sources Available'

This is the normal startup behaviour.

Did you read the other Wiki pages?

eg. https://wiki.ubuntu.com/Nexus7/UsingTheDevice


Wubi Installation completed but getting error msgs after booting for the first time

First you should Use unetbootin software (http://unetbootin.sourceforge.net/) for making pendrive bootable for any linux system.Install with wubi for just Try out Ubuntu, but not permanent.


Ubuntu dist-upgrade failure from 13.10 to 14.04 LTS

Open 'Software Updater' and upgrade online. On slow connection it would take some time. Have patience. It would be seamless. All your apps would remain as it is.


How to send ELM327 command via USB and fetch the answer?

There is a python library called python-OBD that can do most of this for you, if you don't want to build it from scratch. If you would prefer not to use a premade library, here is a quick tutorial on how to do it with pyserial.


Are you using the ubuntu partition right now? You cant modify a mounted partition. You have to boot up with a live environment, e.g. Ubuntu from a USB stick to modify the partition.


Find all files on the filesystem that I have edited or created

Using find command you can list the files created/edited by a user.

find / -mtime -10 -type f -user userid -print

This will search all the files created/edited in last 10 days.

use sudo if you are searching the files under / file system and if it's only your home directory($HOME) ignore sudo command.


WSL: tabTitle not overwritten when using ssh

Fixed it with adding something to .ssh/config:
Host *
    PermitLocalCommand yes
    LocalCommand printf '\033]0;%%s\007' "%r@%n"

When I now do ssh server, the LocalCommand is executed after the ssh command and set the tab title, using the user and the name which are provided in config of this server.
For example:
Host server
  Hostname 1.1.1.1
  User root

If I do then ssh server, the tab title will be changed to root@server.


How to disable bottom panel/message tray in Gnome Shell 3.4?

This extension may help you. Check out other extensions for Gnome shell here


The OP answered the question themselves in a comment:

  switching the wireless channel fixed it - viale


How can I stop YaCy from starting when my machine starts?

From all the general answers on disabling a service, this "traditional" technique is the one that works with YaCy (it is not an Upstart service, so that technique doesn't work):

sudo update-rc.d yacy disable
sudo service yacy stop

This will stop YaCy and prevent it from starting on the next bootup. You can start it again at any time by running:

sudo service yacy start
#or sudo /etc/init.d/yacy start as in the original instructions

If you prefer using a GUI, I saw that the yacy service did appear in BootUp Manager (I didn't test disabling from there, but since it's using a well-established control technique, I assume it will work). To install BootUp Manager:

sudo apt install bum
#then run it from the Dash


Is this 4k resolution support, or 1080-?

1: Video Memory

I got a message saying that my gues needed at least 33MB (or something) of video memory. I set it to 64MB and I could select my full 4K resolution.

2: Scaling factor

Not relevant to Ubuntu most likely, but just adding it here in case someone stumbles on this post from Google
Something else that may be affecting this is the scaling factor in Windows 10.
If this is set to 150% your guest resolution will also be scaled and you won't be able to select the full 4K resolution in the client causing everything to look slightly blurry.
You can set this to back 100%, which will make everything work as expected again.
Or if you want to keep the 150% scaling in Windows but not your guest, you can check out this post. (setting guest resolution through command line)
Haven't tried that myself though.


Ape files (Monkey's Audio): How to create them under Trusty and Xenial?

Best way under Trusty Tahr or Xenial Xerus is to use the Monkey's Audio Console Front End of Matthew T. Ashland. mc3man holds a package in his PPAs for either Trusty or Xenial. Add the required PPA and install this application as follows:

1. Installation for Trusty Tahr

Use the following commands from a Terminal window to add this PPA and install the monkeys-audio package:

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install monkeys-audio

2.Installation for Xenial Xerus

Use the following commands from a Terminal window to add this PPA and install the monkeys-audio package:

sudo add-apt-repository ppa:mc3man/xerus-media
sudo apt-get update
sudo apt-get install monkeys-audio

3. Usage

Installation instructions are fairly basic and can be seen by running mac -h. For a single file the following would work well:

andrew@ilium~$ mac luckynight.wav luckynight.ape -c4000
--- Monkey's Audio Console Front End (v 4.11) (c) Matthew T. Ashland ---
Compressing (extra high)...
Progress: 100.0% (0.0 seconds remaining, 1.2 seconds total)
Success...
andrew@ilium~$

And for a collection of wav files the following loop would also work quite nicely:

mkdir ape && \
for j in *.wav
do
mac "$j" ape/"${j%.wav}.ape" -c4000
done

And now enjoy your Monkey's Audio music :).

References:

PPA: Ubuntu Multimedia for Trusty
PPA: Ubuntu Multimedia for Xerus


Problem with setting static IP 16.04 ubuntu server

By default VirtualBox will use NAT for guest VMs, and uses an internal DHCP server to hand out ip addresses for the Virtual Machines (Usually in the 10.x.x.x network range like Qemu does).
It looks like you want to "bridge" the guest VM (Ubuntu) with the host (Windows). Change the network settings, in VirtualBox, in the guest VM settings to use bridge, and then try again.

You also should give your Ubuntu VM a different ip address e.g. 192.168.1.105 and not the same as your Windows host 192.168.1.104
Can you ping your host 192.168.1.104 after that ? And can you ping 192.168.1.1 and 8.8.8.8 ?


Video not working properly on an integrated Intel 82865G card

From what I see HERE is, you can try reverting the driver to older version. Also classic desktop should work with 64MB IMHO, but is still really low memory and multimedia like flash and video might have problems.

Maybe there are some legacy intel drivers but in general old hardware is sometimes hard to make it work and is waste of your time because you won't gain much, so if you run out of options you can:

buy old nvidia card for 10-15€ (I would check which works good, but most do)
put it in and disable intel chip in bios
install nvidia restricted drivers
have fun with unity :P

regards and good luck!


APT "/var/cache/apt/archives" Cache Configuration

After some researches I found the solution:

to change the APT Cache Settings create a new file like /etc/apt/apt.conf.d/99_new_file, with a content similar the following one:

APT::Archives::MaxAge "0";
APT::Archives::MinAge "0";
APT::Archives::MaxSize "2000";

and to get a specific value use a command like this:

apt-config dump | grep 'APT::Archives::MaxAge' | cut -d'"' -f2


If you have installed Ubuntu, you have typed a password when you created your username : it is that one called "sudo" password.
If your Ubuntu was installed by another person, that person have set a password for you. Ask him about it.

Note : if you use a professionnal PC, in your workplace for example, it is perfectly normal that the IT team set a password to prevent workers from accessing important things on the computer. So your only option here would be to ask them direclty.


Installing particular versions when repo has newer versions?

You have to select the particular versions to install, and install them all at the same time that you install the meta-package.

sudo apt-get install meta-package package1=2 package2=2 package3=2

Like int_ua's answer says, you can find out reverse dependencies with this:

apt-cache rdepends package

If you want to know more information about any of those packages (available versions, dependencies, and lots more), use this:

apt-cache show package

After you finish installing them, and want to keep them at those versions while doing system upgrades, you will need to use apt-pinning as suggested by belacqua.

APT pinning

  The APT pinning feature allows administrators to force APT to choose
  particular versions of packages which may be available in different
  versions from different repositories. This allows administrators to
  ensure that packages are not upgraded to versions which may conflict
  with other packages on the system, or that have not been sufficiently
  tested for unwelcome changes. In order to do this, the pins in APT's
  preferences file (/etc/apt/preferences) must be modified.


The input redirection operator is < so for example

$ sed -n '1p' < /usr/include/stdio.h
/* Define ISO C stdio on top of C++ iostreams.

However, in spite of the history of its name as a "stream editor", modern implementations of sed can read files by name directly, without input redirection

$ sed -n '1p' /usr/include/stdio.h
/* Define ISO C stdio on top of C++ iostreams.

  Note: don't change the contents of the actual /usr/include/stdio.h file. Make a local copy if you want to play with it.


OK,
Turns out a simple restart fixed the original command in the fusuma config.yml

command: 'xdotool key ctrl+alt+Right'


Checking computer working, processes etc

Which system do you use? If you're using standard Ubuntu, look at the pre-installed System Monitor (type it in the Dash).

Unfortunately, it can't monitor temperature.


There are few possible methods to launch GUI application (as gmome-terminal) at system startup and maybe the most appropriate is to use Startup Applications (see also). In this way the app will be started when the user login. (In every other method we should export some desktop envvars to be able to do that.)

To be able to test my answer, I created executable file, called myapp, located in /usr/local/bin. It adds just the current date and time within a file in the /root directory, so we will need root (sudo) permissions to run the script:

#!/bin/bash
date >> /root/date.txt

We can grant permissions to a specific user to run a command without password via sudo. No matter whether the user belongs to the sudoers group or not. We can use sudo visudo to edit safely /etc/sudoers and add one or more lines as these:

user1 ALL=(ALL) NOPASSWD: /usr/local/bin/myapp
user2 ALL=(ALL) NOPASSWD: /usr/local/bin/myapp

The better idea is to create a separate file, for example /etc/sudoers.d/myapp, where to put these rules. For this purpose we shall use the command: sudo visudo -f /etc/sudoers.d/myapp.

Now user1 and user2 should be able to run sudo myapp without password.

  Note: Always use the command visudo to edit the sudoers file to make sure you do not lock yourself out of the system – just in
  case you accidentally write something incorrect to the sudoers file.
  visudo will save your modified file to a temporary location and will
  only overwrite the real sudoers file if the modified file can be parsed without errors... source.

The next step is to modify the startup script. Let's call it myapp_startup and place it into the same directory /usr/local/bin. The script content should be:

#!/bin/sh
gnome-terminal --geometry=75x36+0+0 -x bash -c "sudo myapp; exec bash"

Detailed explanation about the above command is provided here.
If you want to minimise the window automatically use: this approach.

Now we can create an entry in Startup Applications as this:

Additionally we can modify the startup script in this way: sleep 3 && gnome-terminal ... to launch the new terminal window after the entire desktop is initialised.
When the script isn't located within a directory that is added to user's $PATH variable (echo $PATH) we should use the full path, for example: /usr/local/bin/myapp_startup.

Further reading:

Instead of gnome-terminal probably you can use tmux (or some other session manager) as it is described in this answer.
Additionally you can launch the startup script via Cron (or some other limited environment) by the script cron-gui-launcher.bash from this project: https://github.com/pa4080/cron-gui-launcher. This script will wait the user to login and then will export all DE Variables, etc... But in the current case the final result will be the same as we using Startup Application.


How to hide recent files and most used apps?

I personally don't use Unity but if you're looking for a way to hide traces of certain, erm, "activities", you could create another user account that was dedicated to that activity which would have its own Unity cache and settings, so you could go wild and nobody ever need know.

So let's say you have a passion for painting Warhammer 40,000 characters. Obviously you don't want your friends or family suddenly see a picture of a great, big, filthy Space Marine Terminator Chaplain.

Oh yes, he'd do some pretty bad things to your Tyranids.

So you create an account:

Go into System > Administration > Users and Groups (no idea how you get there in Unity)
Create a new user tyranidlover
Then you want to hide this from the login screen. The options for this have been evaluated on this thread.
You can also encrypt your other user's home directory so that nobody else could accidentally find the files hidden within. This is another step for another question, I think. I don't know how to do this for a second user off the top of my head.

Then when you feel the need to do some Warhammer research, you can just switch users, punch in your hidden username and password and there you are, up to your knuckles in lead-based modelling paint and plastic glue.


To install XAMPP, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/xampp-linux-x64-1.8.3-2-installer.run/download

Once downloaded, just run:

sudo chmod +x xampp-linux-x64-1.8.3-2-installer.run
sudo ./xampp-linux-x64-1.8.3-2-installer.run

This will start the install.  See image below.


Websites running on server showing virus warnings

It turned out to be a Plesk vulnerability http://securitystreetknowledge.com/?p=771 that a microupdate managed to fix. We then reset all FTP and control panel passwords and the issue was resolved.


How do I recover all the partitions listed in testdisk?

If you proceeded with the full Ubuntu installation, chances are it's overwritten enough data on your Windows partition that you'll never be able to recover it to the point where it will boot. You might, however, be able to recover some user files from the disk. You're more likely to be able to succeed with this task by using PhotoRec than by using TestDisk; however, the last I heard, PhotoRec did a poor job at recovering filenames. I've heard that some Windows-specific recovery tools can do a better job at recovering filenames, but I don't have pointers to specific products.

Once you've recovered your files, if you want to boot Windows, you'll need to re-install it. Contact your manufacturer for a recovery disc set or check out this superuser.com question and answer for information on getting legal Windows 8 images online. (That question is about Windows 8, not 8.1. I'm not sure if exactly the same procedures work for 8.1.)


Too Slow after Upgrading from 13.10 to 14.04 LTS

For me it worked to toggle the Window Animations in Unity Tweak Tool (install this if you haven't got it already). You find the settings in Unity Tweak Tool under Window Manager->General.


Probably the easiest solution is to do a new install of Ubuntu 13.10 from DVD or USB Flash and select the Update option on the install menu...


Is there a touch-friendly casino gambling (poker, roulette, slot machine) application that interfaces with coin acceptors

I don't know what kind of coin acceptor you're using, but you can see something related to payment computing on these sites:

KMyMoney

Quasar Point-of-Sale

Future Net

You can search on google if the payment system you have already had been used successfully on ubuntu.


puppy Linux will work for you as it has very low minimum system requirements and requires only 128 MB of RAM, although at least 256 MB of RAM is recommended. It offers the most basic applications you’d expect — an extremely lightweight web browser named Dillo, and other programs like an email client, media player, text editor, and image editor. It uses the Openbox window manager by default. and it runs from ram when booted so no worry about old HDD performance.

click here to go to puppy Linux website


Nvidia not displaying correctly HDMI monitor

So after some experiments and with a little luck I found out that I had to regenerate my xorg.conf file using the command: sudo nvidia-xconfig. After that restart lightdm and that's it ;)

Additionally, in Display Settings (not nvidia-settings) you will probably have to choose to align all by laptop screen.


Try to update OpenGL.  In a terminal enter the following commands:

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libegl1-mesa libegl1-mesa-drivers xserver-xorg-video-intel libgl1-mesa-dri libglapi-mesa mesa-vdpau-drivers

(source)


I have removed the second line in the /etc/environment file. now, apt-get install is working.

my /etc/environment now:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
LANG=en_IN
LANGUAGE=en_IN:en
SUDO_COMMAND=/bin/su
SUDO_USER=sahith
SUDO_UID=1000
SUDO_GID=1000
_=/usr/bin/env


Unable to change password - user account not in account settings list

Try changing the password in the terminal.

Open a terminal window and type:

sudo passwd USERNAME

where USERNAME is the name of the user account you want to change the password for, or (even simpler) just type

passwd

to change the password of the account you're running the command from.

When prompted, then type your current password, then the new password, and finally retype the new password.


How do I save after editing a file in terminal using Vi in Edubuntu?

Apparently no-one wants to answer this question, maybe trying to avoid getting into an editor war...

You might want to check out How-To-Geek's Beginner's guide to Vi

As it says here, you first have to exit insert mode by pressing esc and then type :wq

w for write and q for quit. Obvious, surely? ;)


Launcher not auto-hiding while using Writer

One easy remedy is to drag an arbitrary icon (e.g. from the desktop) onto the launcher -- no need to drop it -- and the launcher seems to remember to hide itself ;)


error symbol 'grub_term_highlight_color' not found

Standard repair procedure with rescuing from boot CD/USB stick (with any Linux distribution):

sudo -s
mkdir /mnt/disk
mount /dev/sda3 /mnt/disk # use sdXY where your root partition is
mount --bind /dev /mnt/disk/dev
mount --bind /sys /mnt/disk/sys
mount --bind /proc /mnt/disk/proc
chroot /mnt/disk

delete old files from /boot, in my case I had there outdated afi-3.11* files

update-grub
# press Ctrl + D
reboot

Now, grub should normally boot.

In case you need EFI, have a look at similar question.


Ubuntu Install screen is pixellated and has strange aspect ratio

Try reinstalling VirtualBox as well as redownloading the .ISO file.

If the error is persistent through that than your system might not fully support that kind of virtualization.


I downgraded Meld to 1.5.3 with the following actions:

sudo wget http://security.ubuntu.com/ubuntu/pool/universe/m/meld/meld_1.5.3-1ubuntu1_all.deb -O /var/cache/apt/archives/meld_1.5.3-1ubuntu1_all.deb
sudo dpkg -i /var/cache/apt/archives/meld_1.5.3-1ubuntu1_all.deb

cat <<EOF | sudo tee /etc/apt/preferences.d/pin-meld
Package: meld
Pin: version 1.5.3-1ubuntu1
Pin-Priority: 1337

EOF

It works better for me. It has for example very useful <Ctrl+Shift+R> shortcut and close with <Ctrl+Q>. Also you can copy file paths with it.


How do I intall a older Python version than my current 3.8.5?

I would suggest try using a virtual env for your development efforts.
Try the below thread
https://stackoverflow.com/a/1534343/8029019


In b.sh:

source a.sh

That will make the function available to be called within b.sh.

The source command (also known as the . command) executes a.sh in b.sh's shell, so if you only want that function, you'll have to extract it into c.sh, and both a.sh and b.sh will have to source c.sh


Can't copy/cut/paste into my external harddrive

Go to terminal and run:

sudo -H nautilus

It will ask you the password.

Once the Nautilus is open with sudo, copy the directory and paste on the external HD or anywhere you want. Because it is running as root, you will be able to do the same things with it that you can do by running commands with sudo in a terminal. When you're done, you should close this root-owned file browser window so you don't use it by accident when it's not needed.


Why is 'Authenticated' setup of FTP on ubuntu very insecure?

With FTP user name and password are transferred as plain text without encryption. An attacker may sniff them from the network and use them to log in.

It's the same problem as with e.g. telnet


How to install TP-LINK TL-WR841ND router

You don't install a router, you just plug it in to your LAN, and configure it.  Before installing the Router, make sure your PC is connected to the Internet through the broadband service successfully.

The default domain name of the TL-WR841ND 300Mbps Wireless N Router is http://tplinklogin.net, the default IP address is 192.168.0.1, and the default Subnet Mask is 255.255.255.0. These values can be changed as you desire.

To access the configuration utility, open a web-browser and type in the default domain name http://tplinklogin.net in the address field of the browser, or 192.168.0.1.  When the login window comes up, enter admin fro the username and password, and once in set it up according to what you want.


Need guidance to install Miraclecast using Cmake

I built the package successfully on my 17.10 system.

First, let's address the error above. Do you have pkg-config installed? Check:

which pkg-config

If it is not found, install it:

sudo apt-get install pkg-config

On my system, I needed to install some dependencies; my list is here: http://paste.ubuntu.com/25925482/ The exact versions you need may vary if you are not running 17.10 64-bit, fully updated.

Next, I followed the build directions; from the terminal:

git clone https://github.com/albfan/miraclecast.git
cd miraclecast
mkdir build
cd build
cmake ..

If all goes well, the response should be:

-- Checking for module 'libsystemd'
--   Found libsystemd, version 234
-- Checking for module 'systemd>=213'
--   Found systemd, version 234
-- Compiling with Readline support
-- Compiling with Readline support
-- Checking for module 'check'
--   Found check, version 0.10.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/chili/Desktop/Forum/miraclecast/build

Next, do:

make
sudo make install


You cannot run Microsoft Windows from your Windows partition without first doing a lot of hackery in Wine to make this work, and its unlikely to work cleanly either.

Wine will run from its own prefix stored inside your home directory in LInux - it does not easily work with the windows partition in a dualboot setup.

Your best bet would be to install Office in Wine, or use a Windows virtual machine and load up Office inside it (which is what I do because I have to use office for school)


VMWare player and Ubuntu 15.04: net driver does not compile anymore, how to fix?

Use this commands (need root access):

$ wget http://pastie.org/pastes/9934018/download -O /tmp/vmnet-3.19.patch
$ cd /usr/lib/vmware/modules/source
$ tar -xf vmnet.tar
$ patch -p0 -i /tmp/vmnet-3.19.patch
$ tar -cf vmnet.tar vmnet-only
$ rm -r *-only
$ vmware-modconfig --console --install-all

for vmware-player 9 you also need to change:

vmnet-only/netif.c line 152 from:

dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);

to

dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_UNKNOWN, VNetNetIfSetup);

vmnet-only/filter.c line 207 from:

VNetFilterHookFn(unsigned int hooknum,          // IN:

to:

VNetFilterHookFn(const struct nf_hook_ops *ops,  // IN:
vmnet-only/filter.c line 255 from:

transmit = (hooknum == VMW_NF_INET_POST_ROUTING);

to:

transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);


Dropbox isn't running/is already running

Found this thread upon running into the same problem on Ubuntu 14.04 (unsure of which dropbox build I'm using). I'm logging in via ssh and after copying some files to the remote ~/Dropbox/ folder, I found that they weren't syncing. That's when I tried to manually start dropbox:

dropbox start

and got the isn't running/is already running message. What seemed to work was checking if there was already a dropbox process:

ps aux | grep dropbox

Found there was indeed, so I killed it and then restarted dropbox:

kill <pid>
dropbox start
dropbox status


Probably you used the wrong sysntax. Check /var/log/pgl/pglcmd.log for error messages.

Generally it is easiest and safest to just use pglgui and right-click in the log tab on any blocked connection that you want to whitelist.

The decision whether you want to whitelist any IP depends solely on your personal needs. Just don't whitelist simply an IP (or worse: an port) because it annoys you.


Update manager will keep installing forever

It seems that update manager waits for user input while showing changelog of the unattended-upgrades package. You can try to press q while it is shown.

Otherwise you should try to fix this manually from terminal:

sudo apt update
sudo apt upgrade


Locked out by permissions on an internal 4TB drives problem

I finally am getting back to this post.

I was right about the problem being created by updates. It turned out that updates had changed the usage permissions on all USB devices, and were restricting usage. A timer seemed to be enacted for all permissions on all USB devices. Since I transfer large files between drives all of the time, this was a serious problem. I was exceeding the times allowed for file transfers between USB devices.

My solution was to change the permissions for all USB devices.

I have heard comments about me weakening the security on my system. But the fact is that my computer is not even usable without continuous access to USB devices.

Another fact is/was that those security updates cost me many files which were not replaceable.

Plus those security updates cost me one hard drive, which to overheated to the point where it fried itself and was no longer usable. It completely burned out while trying to unsuccessfully write large files which the permissions had timed out on and operating system was blocking.

I solved this problem many months ago by changing the permissions, but this is not a satisfactory solution for everyone. This problem is solved from my perspective. These days, I keep a close eye on all new updates which effect my USB drives.


Problem in installing pip in Ubuntu 16.04

Had a similar problem a while ago. If I remember correctly, it was solved by purging and reinstalling with

sudo apt-get purge python-pip

followed by

sudo apt-get update
sudo apt-get install python-pip

Purge removes configuration files as well as uninstalling the package.


Your laptop has a pretty neat graphics card. Probably, Ubuntu is continuously powering the device which makes your fan go crazy and drains your battery.

I would suggest to install AMD proprietary drivers from their website. These drivers include fan control and will be less generous in terms of power supply to the graphics card.


Why is the Dell XPS 13 Developer Edition (2016) not certified?

All previous editions of this laptop have been certified and Dell has a long track-record of working closely together with canonical. So I would feel highly confident, that it will run quite smoothly.

Why it might not be certified (yet)? Sometimes the different timelines (release of the os and release of the newest model) don't quite fit together perfectly, so it can take a few months until the certification might be done. Nevertheless I would not hesitate to buy it.


Reaver 1.4 can be installed from the default repositories in all currently supported versions of Ubuntu and also in Ubuntu 18.10 when it is released. To install Reaver open the terminal and type:

sudo apt install reaver


scripting canonical partner source addition

You can just pick the codename from sources.list, since it already includes it:

sudo sed -i 's,# \(deb http://archive.canonical.com/ubuntu [a-z]* partner\),\1,' /etc/apt/sources.list

I'm using , as the separator for s to avoid leaning toothpicks. Here, since the replacement text is pretty much already in the match, we can use regex groups (\(...\)) to use them in the replacement (\1).


You need to install evolution to use the calendar option in Gnome 3:

sudo apt-get install evolution

There is another method if you need to set up Thunderbird or Chromium check this answer. But remember, this won't sync the calendar, nor tasks


Boot your system using windows 7 installation CD to fix your Windows boot first.

Go to "repair your system" after selecting your language from first dialog.
use command prompt (Troubleshoot ► Advanced Options ► Command Prompt)
type bootrec /fixboot then hit enter
type bootrec /fixmbr then hit enter

THEN boot from Ubuntu live CD/USB and do below steps to restore your grub:

Open a Terminal (use Ctlr+Alt+T)
Mount /dev/sda7 (this one you can get from lsblk where root / partition mounted in) by the following commands: (run one by one)

sudo mount /dev/sda7 /mnt
for i in /sys /proc /run /dev;do sudo mount --bind "$i" "/mnt$i";done
sudo chroot /mnt

And run below command to install grub to main partition /dev/sda:

grub-install /dev/sda

Update grub and exit and reboot your system.

update-grub
exit
sudo reboot


How do I restore a missing base folder on the home path on a fresh Ubuntu 17.04 install?

Don't do vagrant but from here it state that your command aught to have been like so:

vagrant init hashicorp/precise32

Not

vagrant init

So your missing a box name, change it to the one your trying to setup.


My webcam is upside down whenever I use it

The real problem is that webcam often is mounted upside down.  It is a driver job to reverse the image, so if you have this kind of problem it means there is something from with the webcam driver.  If you use Linux, I suggest to follow this HOW-TO  The site is in Italian, you can see an English translation Here.


Alt+Tab show-up speed is too slow - can I make it instant on Ubuntu 17.10?

To fix this you could install a GNOME Shell extension. You can find a short tutorial on how to do this here: How do I install and manage GNOME Shell extensions?
or this external link.

Basically once you have installed the GNOME Shell integration add-on for your favorite browser and the GNOME Shell integration for Chrome on your system - go to extensions.gnome.org and search for

  Alt-Tab Switcher Popup Delay Removal by xhfhope

or go directly to

https://extensions.gnome.org/extension/1317/alt-tab-switcher-popup-delay-removal/

and install the extension (you should only need to click on the switch and turn it "on"). Now the Alt-Tab delay should be gone.

I don't even understand why this delay exists.
Basically, what the extension does is the following (I'm not the author of this extension):

function init(){
    defaultValue = imports.ui.switcherPopup.POPUP_DELAY_TIMEOUT;
}

function enable(){
    imports.ui.switcherPopup.POPUP_DELAY_TIMEOUT = 0;
}

function disable(){
    imports.ui.switcherPopup.POPUP_DELAY_TIMEOUT = defaultValue;
}


How to differentiate a music and voice in a video file using FFMPEG?

I had seen your question earlier today, and was working on another project.

I have not tested this yet, but audacity has a filter to attempt to remove vocals, or isolate vocals.  I have difficulty taking a picture, but the menu structure would be:

select the entire audio track
Choose menus  "Effect" -> "Plug-in 1 to 15" -> "Vocal Reduction and Isolation"
In the effect window there are some parameters which can be set, and a drop-down allows you to choose vocal reduction or isolation, and a few other options.

My reading about this (a google search) indicate that it works well in specific circumstances - for example if the vocals are on two tracks, and all instruments or other sounds are split between two tracks.

There is a second filter, "Vocal Remover" in the Plug-in 16 to 17" menu, which may also work.


How to install themes with GNOME tweak tool?

How to install themes in Ubuntu:
When you download a theme for Ubuntu this come compressed into a .tar.gz file almost always. What you have to do is:

Run the terminal Ctrl+Alt+T
Enter cd ~ && mkdir .themes
This command will create a .themes folder in your personal folder. The dot is necessary
Enter cp files_path ~/.themes
Replace files_path with the directory where are your zipped files. This command copy the compressed files into this folder.
Enter cd ~/.themes && tar xvzf PACKAGENAME.tar.gz
Replace PACKAGENAME with the name of the file. This command will unzip the theme file into the new folder.
Enter gnome-tweak-tool

Finally will appears the tweak window (similar as the following) and you'll see the themes that you've previously copy in the themes folder and will be able to choice them!

For future themes, omit the second step


I had the same problem with an Acer Aspire 5315 which was given to me to mend.
The answer is to download the latest BIOS from Acer and flash it.
The issue arises as several (maybe all) Acer models use the Acer installed software to manage the fan. If that software is removed either because the user doesn't want it, to update Windows, or as I did, to install Ubuntu, then the fan will not work correctly. It may start when the laptop is booted up but if the machine hibernates, sleeps etc then the fan will not restart causing overheating and cut-off.
It seems that Acer acknowledged this some time ago and used a BIOS upgrade to correct the problem.
I did this with my machine and now have had no problem for 3 weeks (as opposed to cutting-out every few minutes before).


Which Java versions support global appmenu

It's not the JVM, it's the GUI toolkit fault. A GUI toolkit is a set of api+libraries that enable apps to be drawn in the screen, think of them as a collection of widgets + a runtime for those.

Eclipse uses the SWT toolkit which looks and feel more natively than other Java toolkits (Swing, etc). The easy explanation for the lost is that the globalmenu binding have upgraded and SWT has not (yet) upgraded to support.


Described problems are two years old. Probably you don't have to do anything to make it work, as other posters confirm, that it is included in Ubuntu. If you are new to Ubuntu you have to know, that most scanners and printers are installed by default. That means you just have to connect the USB-Cable to your computer, open "Simple Scan" (Open the Dash pressing Super or Windows next to Alt, then write "simple scan" enter) and press Scan.

If no scanner is found, you will get a message.


The power management regression you are referring to was actually the Linux kernel learning to respect the BIOS when it says "these devices don't support PCIe ASPM".  Now, sometimes (often!) the BIOS is wrong about this, but should your system start to randomly hang after forcing this option on, one candidate is that you've force-enabled a broken hardware feature.

You can help test the fix by going to this wiki page.


How to make the android notifer desktop indicator appear on the Unity panel?

Ok, there is Issue 383 already filed for this.
But, it does not yet solve the problem :-)
If you are interested in getting this to work, login to code.google.comand click on the  icon.


Dell Studio 1558 shutting down due to over heating

According to this page on Dell Support,

  Problem: May randomly shutdown

  The Studio 1558 may intermittently restart or shut down during use.

  Resolution: Update the BIOS

  To resolve the issue, download and install BIOS (System Setup) version
  A04 or later. If you need help to download or install the BIOS, click
  here for downloading and installation instructions.

  Click here to proceed to Dell Drivers and Downloads

Your next question/step would be how do I update BIOS on your Dell from Linux? For that the answer is provided by our moderator Bruno Pereira here. Following is the information provided in that answer:

  Dell has a very nifty utility to download and apply latest BIOS to
  their computers that are using Linux. It should theoretically run
  without any problems and you can run it in Ubuntu.

  Please visit their page for more information, there are precise
  instructions there

  Dell BIOS updates using Linux systems

  Here are the instructions from the linked page

sudo wget -q -O - http://linux.dell.com/repo/firmware/bootstrap.cgi | bash
sudo apt-get install firmware-addon-dell
sudo apt-get install $(bootstrap_firmware -a)
sudo update_firmware

  Please note: I have not tested this myself, you might first drop an
  email to Dell support to ask them if this method deprecated or if
  there are any issues with it.


Open the terminal, change directory using the command cd to the directory where the vsinst file is located, and run:

sudo ./vsinst

If you are installing the 32-bit version of SlickEdit in a 64-bit operating system, run this command instead:

sudo apt-get install ia32-libs && sudo ./vsinst


solved this in the IRC:

the file permissions on nearly all / folders are a mess (nearly all have 777).
a

sudo chmod o-w /usr

did fix it.

But i strongly suggest a reinstall since there is no way to get the permissions right again for all folders and files.


Versions of Kdenlive in official repositories are deprecated

That means that the versions you can find in the Software Centre are out of date. This is possibly because they have updated it, but not got it into the repos.


Not enough disk space '/' in AWS instance

The answer is twofold.

Workaround: use /dev/xvdb (/mnt) for temporary data

This is the so called ephemeral storage of your Amazon EC2 instance and its characteristics are vastly different than the of the persistent Amazon EBS storage in use elsewhere. In particular, this ephemeral storage will be lost on stop/start cycles and can generally go away, so you definitely don't want to put anything of lasting value there, i.e. only put temporary data there you can afford to lose or rebuild easily, like a swap file or strictly temporary data in use during computations. Of course you might store huge indexes there for example, but must be prepared to rebuild these after the storage has been cleared for whatever reason (instance reboot, hardware failure, ...).

Solution: resize /dev/xvda1 (/) to gain desired storage

This is the so called Root Device Storage of your Amazon EBS-backed EC2 instance, which facilitates Amazon EBS for flexibility and durability in particular, i.e. data put there is reasonably safe and survives instance failures; you can increase flexibility and durability even further by taking regular snapshots of your EBS volume, which are stored on Amazon S3, featuring the well known 99.999999999% durability.

This snapshot features enables you to solve your problem in turn, insofar you can replace your current 8GB EBS root storage (/dev/xvda1) with one more or less as large as you desire. The process is outlined in Eric Hammond's excellent article Resizing the Root Disk on a Running EBS Boot EC2 Instance:

  As long as you are ok with a little down time on the EC2 instance (few
  minutes), it is possible to change out the root EBS volume with a
  larger copy, without needing to start a new instance.

If you properly prepare the steps he describes (I highly recommend to test them with a throw away EC2 instance first to get acquainted with the procedure, or automate it via a tailored script even), you should be able to finish the process with a few minutes downtime only indeed.

Most of the outlined steps can be performed via the AWS Management Console as well, which avoids dealing with the Amazon EC2 API Tools; this boils down to:

stop (not terminate!) the EC2 instance
detach the EBS volume from the stopped instance
create a snapshot of the detached EBS volume
create a new (larger) EBS volume from the created snapshot
attach the new EBS volume to the EC2 instance (Important! If this is your root device be sure it to name it exactly as the root device of the instance as it was mentioned e.g (/dev/sda1) or (/dev/xdva1) otherwise it will be attached as a block device and not a root device and you will not be able to start the instance as there will be no root device listed for the instance.)
SSH into the running instance and confirm everything is in order via df -ah

in case your system hasn't automatically resized the file system, you'll need to do this manually as explained in Eric's article

Good luck!

Alternative

Given the versatility and ease of use of these EBS volumes, an additional option would be to attach more EBS volumes to your instance and move clearly separable areas of concern over there.

For example, we are using a couple of pretty heavyweight Java applications, each consuming 1-2GB storage per version; to ease upgrading versions and generally be able to move these apps to different instances at my discretion, I've placed them on dedicated EBS volumes each, mount these to an instance and soft link them to the desired location, e.g. usually /var/lib/<app>/<version> and /usr/local/<app>/<version>.

With this method, we are currently running EC2 instances with the root device storage still at its default size of 8GB (just like yours), but sometimes up to 8 EBS volumes with varying sizes (1-15GB) attached as well.

You need to be aware of potential network performance issues though, insofar all these EBS volumes are using the very same LAN for their I/O, which might yield respective performance gains even, or saturate your network in extreme cases - so as usual this depends on the use case and workload at hand.


How many maximum CPUs does Ubuntu support by default?

Maximum CPUs (i.e. cores) supported by default:

Note: by 32-bit/64-bit we mean the common i386/x86_x64 architectures; PPC, ARM, etc. are not included.

12.04 LTS (and later):

Desktop/Server 32-bit: 8 cores/CPUs
Desktop/Server 64-bit: 256 cores/CPUs (but LiveCD supports 64 by default)

11.10 and below, including 10.04 LTS

Desktop/Server 32-bit: 8 cores/CPUs
Desktop 64-bit: 64 cores/CPUs
Server 64-bit: 256 cores/CPUs

How to find the maximum supported by your running kernel:
As @otus indicated, open a terminal with Ctrl-Alt-T, and type:
grep NR_CPUS /boot/config-`uname -r`

The below is a somewhat technical discussion on what maximum really means:

The "default" maximum is not the maximum!

You can recompile the desktop or server kernels to support up to 512 CPUs for 64-bit (8 is max for 32-bit).
but even those are not absolute maximums!:

The kernel has "experimental" options for going higher than the "default" maximum
The limit for 32-bit with BIGSMP=y is 512
The limit for 64-bit with MAXSMP=y is 4096 (or more!)
Just because the kernel supports so many cores on the general i386/x86_64 architecture does not mean your hardware will!


What is the difference between terminal and text console ?

In unix terminology, the short answer is that

terminal = tty = text input/output environment
console = physical terminal

Console, terminal and tty are closely related. Originally, they meant a piece of equipment through which you could interact with a computer: in the early days of unix, that meant a teleprinter-style device resembling a typewriter, sometimes called a teletypewriter, or “tty” in shorthand. The name “terminal” came from the electronic point of view, and the name “console” from the furniture point of view. Very early in unix history, electronic keyboards and displays became the norm for terminals.

In unix terminology, a tty is a particular kind of device file which implements a number of additional commands (ioctls) beyond read and write. In its most common meaning, terminal is synonymous with tty. Some ttys are provided by the kernel on behalf of a hardware device, for example with the input coming from the keyboard and the output going to a text mode screen, or with the input and output transmitted over a serial line. Other ttys, sometimes called pseudo-ttys, are provided (through a thin kernel layer) by programs called terminal emulators, such as Xterm (running in the X Window System), Screen (which provides a layer of isolation between a program and another terminal), Ssh (which connects a terminal on one machine with programs on another machine), Expect (for scripting terminal interactions), etc.

The word terminal can also have a more traditional meaning of a device through which one interacts with a computer, typically with a keyboard and display. For example an X terminal is a kind of thin client, a special-purpose computer whose only purpose is to drive a keyboard, display, mouse and occasionally other human interaction peripherals, with the actual applications running on another, more powerful computer.

A console is generally a terminal in the physical sense that is by some definition the primary terminal directly connected to a machine. The console appears to the operating system as a (kernel-implemented) tty. On some systems, such as Linux and FreeBSD, the console appears as several ttys (special key combinations switch between these ttys); just to confuse matters, the name given to each particular tty can be “console”, ”virtual console”, ”virtual terminal”, and other variations.

See also Why is a Virtual Terminal “virtual”, and what/why/where is the “real” Terminal?.

============================================

A terminal or a console is a piece of hardware, using which a user can interact with a host. Basically a keyboard coupled with a text screen.
Nowadays nearly all terminals and consoles represent "virtual" ones.

The file that represents a terminal is, traditionally, called a tty file. If you look under the "/dev" directory of a UNIX system, you'll find a lot of tty files connected to virtual consoles (e.g. tty1 on linux), virtual terminals (e.g. pts/0) or physically connected hardware (e.g. ttyS0 is the physical serial terminal, if any, attached on first serial port of the host).

A console must be a piece of hardware physically connected to (or part of) the host. It has a special role in the system: it is the main point to access a system for maintenance and some special operation can be done only from a console (e.g. see single user mode). A terminal can be, and usually is, a remote piece of hardware.

A terminal emulator is a program that emulates a physical terminal (e.g. xterm, gnome-terminal, minicom).

So when you look to a "text window" on your linux system (under X11) you are looking to: a terminal emulator, connected to a virtual terminal, identified by a tty file, inside which runs a shell.

Thanks to Gilles and Ankoz for their answers on this thread.


How to start new applications in a new workspace (GNOME shell)?

Check out this extension: https://extensions.gnome.org/extension/16/auto-move-windows/. Works with GS 3.4+


You should try a look at Lubuntu it is for older pc. Since 18.04 Kubuntu does not support 32-bit anymore you should install Lubuntu instead of Kubuntu

EDIT:
All Ubuntu flavours supports 32-bit but KDE Plasma 5 won't run smooth on your device because the hardware is too old.


Is there any media player that can playback MSS2-encoded videos?

If neither mplayer nor VLC can handle that then probably nothing would.


Will I lose the already installed applications if I upgrade from ubuntu 18.04 to 20.04

Immediately after Ubuntu 18.04 was released I created a chatroom where Ask Ubuntu users could report applications from the default Ubuntu repositories that were removed from the official 16.04 repositories in Ubuntu 18.04. The total reported missing applications that had been removed from the default repositories in Ubuntu 18.04 was not more than 10 applications. I interpret this as evidence that you should have few problems with removed applications when upgrading from 18.04 to 20.04.

When upgrading from 16.04 to 18.04 I also found that a few applications that could not be upgraded were still installed and I could still open them, but some of them had to be removed because they didn't work properly in Ubuntu 18.04. Afterwards I searched for replacements and discovered reasons why some of these applications were removed from the default Ubuntu repositories. It was because new alternative applications were added to the Ubuntu 18.04 repositories that were better than the old ones. I strongly recommend that you don't give up if one of your favorite applications was removed from the default Ubuntu 20.04 repositories until you search in Ubuntu Software to check if there is a better replacement for it. You may be pleasantly surprised at the results!

Regarding PyCharm, Sublime text editor and Visual Studio Code I have all three of them currently installed in Ubuntu 18.04 which was fresh installed on a new computer. Before installing Ubuntu 18.04 I saved a list of all my existing extensions in PyCharm, Sublime and VSCode in a text file so that I could quickly reinstall them later.

Regarding third-party applications the release upgrade process is conservative and doesn't remove them, although I prefer to resolve possible compatibility issues by reinstalling all of them after upgrading. Before reinstalling any third-party applications I search in Ubuntu Software to check if there are any new applications in the latest release that I might like better.


Laptop keyboard not working after upgrade from Ubuntu 16.04 to 16.10

I have a flex 2 laptop and I had the same issue.

I installed Windows 8.1, which worked fine, then I updated the BIOS from official software and installed Ubuntu again, and it's working fine now.


Ubuntu 12.04 doesn t boot after automatic upgrades were installed

I think the ploblem is about the new kernel 3.8.0-34 with the proprietary driver of nvidia. I solved with a new istallation of ubuntu 12.04 without update the kernel and istall only driver raccomanded by jokey (319.xx ). I don't know if there is a solution less complicated. with rescue mode I try but I don't solved.


Make persistent expanded screen preferences when using multiple monitors

I managed to make the expanded display setting persistent by using the following xrandr command:

#!/bin/sh
xrandr --output HDMI1 --mode 1280x720 --pos 1920x0 --rotate normal --output DP1 --off --output eDP1 --mode 1920x1080 --pos 0x0 --rotate normal --output VIRTUAL1 --off

(My primary display has 1920x1080 resolution, my secondary display which is the one connected through HDMI has 1280x720)

But this does not automatically disactivate HDMI output when the HDMI cable is plugged out (which is a feature I wanted). Haven't found out how to do this yet.

However I also found out about the minimalistic xfce4 display settings dialog, which I didn't know before. This is appears to be useful for quick extending to another screen or deactivating it. It's invoked as follows:

xfce4-display-settings -m

I found this command was already bound to shortcut (+p, same as in Windows). If that is not yet the case you can set this by going to Settings Manager > Keyboard > Application Shortcuts and assigning the shortcut there.

For me this is an equally satisfying solution.


I figured it out! The problem was a path issue for reboot. I had to put "sudo /sbin/reboot now" in arewerunning.sh. I had read about the path issues for other commands but didn't put two and two together that reboot was also a command whose path might have been tampered with.


Browse internet through another host without having external public ip on any host

The external server certainly give options but I'd like to explore direct connections first.

They're faster and generally more reliable. They do however require an IP to connect and the routing at the other end to get your connection from router to server. You say you don't have these but I think you might be overlooking options.

I find it hard (not impossible) to believe that you have no legal IP. Most home connections have one. The router gets it and uses NAT and DHCP to give you private internal IPs. While at home you can ask Google for your IP address and it should tell you.

Lots of home connections use dynamic IP addressing meaning your IP will change on a timetable determined by your ISP. You can work around that by using one of many dynamic DNS options.
The routing is harder. Traditionally I would ask you to forward a port by logging into the router. You say you can't do that... So what about UPNP? A lot of routers have this turned on by default and this essentially allows you to do the same thing. You lease a port from the router. Setting this up in Ubuntu is fairly simple:

sudo apt-get install miniupnpc
upnpc -a <local_ip> 22 22 TCP

Then external machines can access your SSH server through your public IP.

Failing that, you could create a persistent connection from your home computer to the external server that tunnelled back a port to a SSH server running on your home computer. Then people could connect to you home through your server. I've called this reverse port tunnelling.

From home: ssh -L 22:0.0.0.0:2200 serveruser@server to expose your home SSH to the server. You'll probably also need to edit /etc/ssh/sshd_config and turn on GatewayPorts (see this)
Then from anywhere ssh -D -p2200 homeuser@server

Of course you may find that the connection from home to server stalls or times out. There are various options for working around that.

With either option you are exposing a seriously big door into your system. Please practise safe computing and follow my tutorial on making SSH more secure.


Are you in mouse active mode in vi? That will prevent ctl-shift-c from copying. Try this from within vi and then try to copy again:
:set mouse=


What Does The Installer Download During The Installation Process?

Packages that Ubuntu is not allowed to redistribute for copyright/patent reasons, like the MP3 codecs
The online repository at archive.ubuntu.com is enabled, so every package that has been updated since the CD image was created will be downloaded (including new kernel images)


Ubuntu 14.04 to Windows *CANT BOOT INTO WINDOWS AT ALL

if you want to use Linux, try Lubuntu because lxde is really a light weight, I have 8GB RAM but I only use lxde and don't use Unity. 1GB is really low to run Unity. And if you use Windows XP is better unless you increase your RAM. Windows 7 will consume a lot :)


How do I get back my ubuntu sudo password not reset it?

You cannot retrieve your password in plaintext because it is not stored that way.

Passwords are hashed with a salt and stored in /etc/shadow, the first two characters are the salt, the rest is the resulting hash value.

You can try a dictionary attack against the hash:

get hash and salt
produce a list of all passwords you may have used, maybe with some variations
generate hash of each password with the retrieved salt and compare with the retrieved hash
remove the password list

If you find a match, it's the password you used.


You can make an OEM installation according to this link

Ubuntu_OEM_Installer_Overview

and you can create a compressed image with Clonezilla. The image is a directory with a number of files, and you use Clonezilla to extract alias restore the system from the image to a drive (in the same or in other computers).

http://clonezilla.org

-o-

Install proprietary drivers only if you know that all the final computers will work with them.

If you want identical copies, you can skip the OEM bit, but OEM is usually a good idea, because the computers will get unique identities in the network, and the end users can create their own user IDs and passwords.


Why use the "staging" version? Just run:
sudo apt install wine


By default VPNC uses an ifmode of virtual point to point interface(ie tun). But it also has another mode that you can use, virtual ethernet interface(ie tap).
Try using that, ie:

sudo vpnc example.conf --local-port 0 --ifmode tap


My testing with Nessus has indicated SMBv1 is only disabled when setting

min protocol = SMB2

in the [global] section of smb.conf . Core, LANMAN2 and NT1 were all still flagged as being vulnerable.


My ATI graphics card gets very hot and Ubuntu freezes

Are your fans running fast, but your GPU is still hot?

If this is the case, you should check for dust and remove it. I've encountered several cases where the cooler was clogged so badly that very little air passed through it, even though the fan was running at maximum speed. Try removing the fan and then carefully use a vacuum cleaner to remove all the dust.

If there is no clogging and the fan is spinning slowly, the problem could be the fan itself. Too much dust inside the fan itself could be a problem. Spraying some oil into it might help, or you could just replace the fan completely.


Using Ubuntu Live CD to create disk image?

Boot your Ubuntu live system and connect the external HDD where you want to save the image. You do not need to (or should not?) mount the Windows HDD.

Open gnome-disks by searching for it in the Dash's application lens (Super+A), entering it into the HUD (Alt+F2) or launching it from a terminal window (Ctrl+Alt+T).

When the window below opens, select your source drive on the left (the 250GB Hitachi HDD in my example, see red circle). Then open the drive context menu by clicking on the hamburger button on the right (see red arrow).

In the appearing context menu above, select Create Disk Image... to open another dialogue window:

Enter a nice file name for the disk image file to create and select a location (the external HDD) where to save it. Be careful that the target directory is not on the source disk!

Then click the Start Creating... button, lean back and get yourself cup of a coffee.
Repeat the last action (coffee) until the process has finished. ;-D


In what directory(s) are the default ubuntu icons located?


Check what database clusters are currently created:

pg_lsclusters

If there is one, but it's not running, then start it (substituting the version and name):

sudo pg_ctlcluster x.y name start

If there isn't one, create one and have it started:

sudo pg_createcluster --start x.y name

Normally, this should have happened automatically when you install the package.  So either something happened during package installation, or the package was already installed and someone had already messed around with the things I show above.


python3-pygments is missing the executable

A workaround is to have python-pygments installed, and change the first line of /usr/bin/pygmentize to use python3. Not ideal, but it works.


My server has a double IP address for one NIC. How can I resolve this?

Modify the line in your /etc/dhcpcd.conf file of static ip_address=10.0.0.14/24 to static ip_address=10.0.0.10/24 so that it no longer tries to set the 10.0.0.14 IP address.


Permission denied only when using "sudo su -c"

Does the user local have permissions to access the folders in the path to the file?  Just because it has permissions on the file doesn't mean it can access the file.

as user main, try

su local
<enter password>
touch /home/main/some/folders/script

To solve it, you'll need to
chmod g+rx  each directory in the path

(Note that to run a script, the user doesn't actually need read permissions, on a directory, just execute permissions.)


wmctrl -lG

Will give you something like:

oli@bert:~$ wmctrl -lG
0x0384c0d5 -1 1590 1030 330  170  bert N/A
0x01200023 -1 0    0    3840 1200 bert x-nautilus-desktop
0x01000003 -1 3840 2352 1920 24   bert Bottom Expanded Edge Panel
0x01000028 -1 0    2352 1920 24   bert Bottom Expanded Edge Panel
0x0500003e  0 676  252  1404 1015 bert Chromium
0x02e00021  0 3860 160  1361 1084 bert Liferea
0x02000047  0 6650 940  506  683  bert Social broadcast messages
0x04600004  0 4546 460  1263 833  bert oli@bert: ~

With this you can grep and cut down on these so you are left with the geometry values (columns 3-6).

To quote the man page so you understand exactly what the columns are:

  -l

  List the windows being managed by the window manager. One line is output for each window, with the line broken up into space separated columns. The first column always contains the window identity as a hexadecimal integer, and the second column always contains the desktop number (a -1 is used to identify a sticky window). If the -p option is specified the next column will contain the PID for the window as a decimal integer. If the -G option is specified then four integer columns will follow: x-offset, y-offset, width and height. The next column always contains the client machine name. The remainder of the line contains the window title (possibly with multiple spaces in the title).


Correct password cannot be authenticated to run Synaptic Package Manager GUI

I solved it!.. I change the one that launches the synaptic by replacing

Exec = synaptic-pkexec

in usr/share/applications/synaptic.desktop

pkexec is the one that manages authentication when you open synaptic(that is the flaw) which it doesn't authenticate you even though your root password is correct. I replace it to

gksu synaptic %u

then, save it.(You must have a gconf-editor and gksu installed.)

After that, I press alt+ F2 then I type there "gconf-editor" and then I go to apps>gksu and then mark the sudo-mode.

If pkexec gives you trouble launching synaptic in GUI, better try to change its launcher to gksu. That will do.


Where is the log of pppd in ubuntu 13.10?

You can see pppd logs in /var/log/syslog

less /var/log/syslog

or

tail -f /var/log/syslog

or

cat /var/log/syslog


GPG KEYEXPIRED error in when updating repositories

You added a repository from "insynchq" that uses a recently expired key:

pub  2048R/ACCAF35C 2012-09-10

uid Insynchq Inc <services@insynchq.com>
sig  sig3  ACCAF35C 2012-09-10 __________ 2016-09-10 [selfsig]

sub  2048R/02DFE7E7 2012-09-10
sig sbind  ACCAF35C 2012-09-10 __________ 2016-09-10 []

It is not an official repository you're having trouble with, but a private one. Likely the company just did not extend the validity period in time. The only thing you can do is to ignore the message for now and tell the company to extend or exchange their signing key. If you do not require the repository any more, simply remove it.

Update: The company extended the validity period, so a simple

sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-keys 0x06BBDC2602DFE7E7

will update the key and re-enable the repository.


Trying to mount drive /dev/sdc: TYPE="nvidia_raid_member"

As always, you should back up your data before doing any of this !!

You can change the type with fdisk

sudo fdisk /dev/sdc

Display the partition list ;

p

The partition(s) on the disc will be listed, along with some information. Look for what is listed under the "System" column (it should say it is a raid member).

Change the type by pressing ;

t

Select the partition number ;

1

List the available type codes ;

L

Enter the code that you want, for example for FAT32 ;

b

Save the settings and exit ;

w

I don't THINK your data will be wiped, provided you select the correct parition type and don't reformat, but you should seek confirmation before continuing.


How to extend root partition size of dualboot ubuntu

When you reformat the sda7 partition, you will probably want to add a partition for your /home to make storing your personal files easier, as I believe that makes mounting them easier when you update or change the operating system.


How can KVM be located by Android Studio on Ubuntu 14.04 LTS

See the instructions here: https://help.ubuntu.com/community/KVM/Installation

In short:

sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
sudo adduser `id -un` libvirtd
sudo adduser `id -un` kvm

Then log out and back in again, and check that it is working by running:

virsh -c qemu:///system list

Some more instructions from Intel: https://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assisted-virtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-emulator


How to make changes in enviroment variables permanent?

My issue was in lack of permission to the folder to my tools folder


How to make a script for touchscreen to run after resume?

I have the same laptop , and I have just been able to fix it this way.

First, I created a script

sudo nano /usr/local/bin/reload_touchscreen.sh

With this code:

#!/bin/bash
export DISPLAY=:0.0
export XAUTHORITY=/home/username/.Xauthority
sleep 5s
xinput disable "SIS0457:00 0457:1136"
xinput enable "SIS0457:00 0457:1136"

You need to modify "/home/username/.Xauthority" to match your own computer username.
I also found the name of my touchscreen using "xinput list". Update it as well, or use the number id.
I put a 5 second pause so I have time to login back to the desktop, just in case.
Make sure you make this file executable:

chmod +x /usr/local/bin/reload_touchscreen.sh

Then create a systemd service, with this:

sudo nano /etc/systemd/system/reload_touchscreen.service

With this content:

[Unit]
Description=Reload touchscreen
After=suspend.target
#After=hibernate.target
#After=hybrid-sleep.target

[Service]
ExecStart=/usr/local/bin/reload_touchscreen.sh

[Install]
WantedBy=suspend.target
#WantedBy=hibernate.target
#WantedBy=hybrid-sleep.target

Not sure if it's needed, but I made the service file executable as well.

Then enable the service with this:

systemctl enable reload_touchscreen.service

I hope it works for you!
PS: I have installed the 4.10 mainline kernel on my laptop, and now the Brightness keys work as well. I think Ubuntu 17.04 will work great on this laptop.


Why does the Terminal keep showing "^[[2~" randomly?

With a bit of trial and error, on my system I found that the Insert is ^[[2~. You can check this in a terminal by pressing CtrlV (to turn on Verbatim mode), then pressing Insert. It's possible the key is faulty and sending in keypresses randomly. I have heard of programs which inhibit sleep by simulating keypresses (perhaps Caffeine?) so that might also be a cause.


How to install Ubuntu Touch Emulator on 13.10?

Dependencies

Install the dependencies with the following PPA:

sudo add-apt-repository ppa:phablet-team/tools
sudo apt-get update
sudo apt-get install ubuntu-emulator

Install

To install the Ubuntu Touch x86 Emulator, paste the following in your terminal:

wget http://people.canonical.com/~rsalveti/aosp/generic_x86/emulator-x86.tar.bz2 -O /tmp/emulator-x86.tar.bz2
tar -jxvf /tmp/emulator-x86.tar.bz2
cd emulator-x86
./build-emulator-sdcard.sh #this will download the ubuntu rootfs and create the sdcard image

To run the emulator:

cd emulator-x86; ./run-emulator.sh

Scale down the window

If the emulator window doesn't fit in your screen, the you can resize it, by going In the ~/emulator-x86 folder, edit the run-emulator.sh file, and add in -scale 0.5. To scale it down half the size.

 ...
 exec emulator -memory 512 \
    -scale 0.5 \
 ...

Source:

Ubuntu Touch Emulator: Installation And Usage In Ubuntu 14.04, 13.10 And 12.04 ~ Web Upd8
Ubuntu Touch X86 Emulator: Better Emulator Performance, Faster Startup ~ Web Upd8


How to change the separator on the clock?

You can archive it by creating a custom locale in:

/usr/share/i18n/locales

Modify the date format using ASCII CODE (Change from U002E to U003A).
Compile it using localedef
Direct LC_TIME to your custom locale, restart pc.

For more info: How to Change Date Formats on Ubuntu


How do I open files that are outside the home folder with Snap programs?

apparently there's also a removable-media interface which wasn't being used by the VLC snap and is being added. This might be a better fit than the udisk2 one?

Cheers,

-Loïc Minier


How to convert a Mac UTF-8 .xml file into something that Banshee understands?

I guess it's related to decomposed vs. precomposed diacritic characaters: In Unicode you can write many diacritic characters like é either as as one character ("precomposed", NFC) or as a combination of the base character "e" and an additional accent character ("decomposed", NFD), see

OS X always uses decomposed characters for file names. Linux files systems don't care about characters but just store bytes as file names and let the programs interpret them. NFC and NFD lead to different byte sequences Linux considers the resulting file names to be different. Most programs under Linux use NFC.

I don't know of any program that can convert text between the two encoding forms. The program convmv (not installed by default) can convert file names between NFC and NFD. Maybe that helps, but maybe it causes other problems, so be careful.


Having trouble installing ubuntu on desktop

Don't know if this would help but....

Have you tried booting from a USB? you can download and format the iso on the USB.

Link to USB site Unetbootin

You have not said if the "try ubuntu" option is working? Personally I would start with a tried and trusted version of Ubuntu LTS like Trusty as 16.04 is a bit new and untested.


Unable to boot to Windows 10 after failing installation of Ubuntu 16.04.1

Maybe you should try to repair the grub: ubuntu-wiki

Or try to repair windows (https://superuser.com/a/1021657)


I just moved my HD from a Lenovo X201 to a Lenovo W520, and everything seems to work. Is this OK?

Yes, this is the normal outcome. You usually can move a hard disk from one system to another and expect it to work.

There are some exceptions, like when you are using some proprietary RAID controller or you have tweaked something important that results in an incompatibility. But these are the exception not the rule.


Clicking Unity Launcher icon relaunches another instance of same app

Short but annoying answer: reboot (or perhaps just log out) after installing new applications until this bug is fixed.

Longer answer:

I just installed Chromium today (nothing wrong with Firefox but I also need to use Chromium for work) and was frustrated because I couldn't get it to maximize on my second monitor! I could move it to the second monitor but if I hit the window-maximize button, it jumped to the main monitor (maximized). Because of the problems I described above (with PG Admin and Pidgin).

I glanced at the launcher icon and saw that it didn't indicate that Chromium was running. Clicking the launcher opened a new Chromium window. On a whim I restarted the computer (maybe could have just logged out), and... both problems are solved! Chromium maximizes, and launcher knows it's running. I expect that it wouldn't have appeared in the switcher either, but forgot to try that.

I left the Windows world 12 years ago and haven't looked back. One thing that's been nice with Linux is rarely having to reboot the computer to "fix" anything. But today it feels like I'm having a bad Windows flashback. Still trying to be patient with  Unity.

So it appears that there is a bug that only occurs for newly-installed programs. I don't know if it's something in the installer scripts or if Unity can be blamed for not discovering them, but I never had this problem with classic Gnome. I will follow up on this page once I install another GUI app and report whether this happens with every new app or just certain ones. I should probably also file a bug but I have a feeling it must have already been reported... if only I could find the right search terms.


Connecting external screen to BQ aquaris e4.5 ubuntu edition

there is a bug report with the response that the feature won't be brought to Aquaris 4.5

https://bugs.launchpad.net/aethercast/+bug/1598559

If you need it as well you can vote for the bug.


Fixed width and height for new opened folder/file

Install Compiz Config Settings Manager

Compiz desktop effects are available in your Ubuntu by default and if you have any kind of 3D acceleration available(graphics driver ie), you are good to go with Compiz.

Now to tweak Compiz desktop effects in Ubuntu, you need to install "compizconfig-settings-manager" package. Simply copy paste the following command into Terminal to install "compizconfig-settings-manager".

sudo apt-get install compizconfig-settings-manager

If you want to enable some extra animation plug-ins like Burn, Airplane, Paint fire on the screen, etc., you'll need to install the 'compiz-fusion-plugins-extra' package also.

sudo apt-get install compiz-fusion-plugins-extra

This is where you will get the options under "Window Management"

Place - Put - Resize - Scale - Move and many others


With an unlocked Prime it is possible to 'dual-boot' with Ubuntu.

The instructions are too extensive to go into here but you can google it and find many sites with instructions and also some videos on how to do it. The Prime is a nice piece of hardware.

Here are a few links to get you started:

http://forum.xda-developers.com/showthread.php?t=1603921

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

http://www.transformerforums.com/forum/asus-transformer-tf101-development/1467-dual-booting-transformer-pad-other-linux.html


Can't get to bash in 9.10 Server VM, zombie process and hung tomcat

I ran TOP and saw that winbindd was eating up a ton of resources, and attempting a kill-9 on it resulted in the process simply jumping to a new ID, somehow.

I removed winbindd and tomcat, this has resolved the issue.

I suspect the AD/LDAP has changed somehow without my knowledge and impacted the way winbindd was interacting with it.


how to install windows 8 in ubuntu 14.04 with dual boot option?

Firstly backup you /home directory and test the disk or use to ensure it will recover your data.
You may still have the recovery option, by say pressing f4 at the point in the boot sequence where you would press that key to access bios settings. This like all options will crap all over your ubuntu making it irretrievable to people of my or your skill level. This will hopefully give you an ms-win 8 environment which will access the Internet to download the full operating system.
If this doesn't work or is unavailable then phone yes phone Microsoft to get a bootable cd (some drives don't like dvd boot) to get you in a position for an internet download. Or you may have to part with cash to buy a full set of ms-win 8 discs . Remember if you have a contact with these discs and you may borrow those and use your license, that's not piracy.
You now have a Microsoft laptop. In microsoft's I control panel defragment and compress your drive. Consider making a d: partition for all your windows data, it helps avoid data loss during future crash recovery.
You can now reboot your machine with ubuntu installation disc in, but you need to access the bios by pressing escape,f1,f2,f12 or delete or which ever key it is for your machine. There is a bios option now on ms-win 8 machines to allow multiple operating systems (or disable Microsoft only).
Consider creating a /home partition during ubuntu install again for data loss avoidance reasons.
Ubuntu should create grub entries for ms-windows on completion.


In Steam settings you can choose a game download location.

Also when you download a game, you are asked where you want to install it.


gksudo doesn't act like sudo for 'string' >> file

You were very close, try that:

#!/bin/sh
gksudo "bash -c \"echo 'nameserver XXX.XXX.XXX.XXX' >> /etc/resolv.conf\""