To show the messages sent to the username which you logged in with from the terminal simply type mail however mail needs to be configured in order to receive messages from local users. The easiest way to configure mail is to install sendmail with sudo apt-get sendmail and the sendmail program will work for 3 to 5 minutes when it is being installed and it will configure mail automatically.

Then type mail to start the program and after the ? prompt type the number of a message to read it in the terminal. It can take a few minutes to get a notification that you have received a new message after it is sent.

The way to indicate the end of a message when composing  a message in mail is to type a newline at the end of the message containing only the . character and press Enter.


upstart config to start sync daemon as non-root user

I think this should do it:

exec su -c command_to_execute - $RUN_AS_USER


First thanks to Karel and Pomsky for keeping me searching!  See this link!

How to open Nautilus (File Manager) preferences?

Wonder why I couldnt find this!

So In the Tweak Tool go to Top Bar ( see pics )
But you have to turn Show Application Menu OFF not on to get access to the settings menue (see top left corner just before the looking glass)
This must be an error, but is it in Nautilus or Tweak?


Can't install git related packages on Ubuntu 18.04 due to unmet dependency

You are using a PPA that also provides git.  This is resulting in the version confusion that you're seeing that prevents installations.

Per your comment, you removed /etc/apt/sources.list.d/git-core-ubuntu-ppa-xenial.list and then ran sudo add-apt-repository ppa:git-core/ppa.  Once that happened, your apt-get update and apt-get upgrade worked.


Changes to libinput won't go into effect

Here's my 30-libinput.conf for reference.

Section "InputClass"
    Identifier "touchpad"
    Driver "libinput"
        MatchIsTouchpad "on"
    Option "Tapping" "on"
    Option "DisableWhileTyping" "on"
    Option "TappingDrag" "off"
    Option "NaturalScrolling" "on"
        Option "TappingDragLock" "off"
EndSection

The only difference I can see is the order of options and the fact that you have capitalized the word Touchpad in the Identifier bit. It could be something as silly as that. I've had linux refuse to boot with a misconfigured libinput configuration file before I arrived at this one. :)

Note: I just looked at the system provided 40-libinput.conf and the identifiers are all lowercase, so that could be it.


Drag and Drop works only for Linux guests (guest: OS on the virtual machine)

Source:

  Added experimental support for Drag'n'drop from the host to Linux
  guests. Support for more guests and for guest-to-host is planned.

https://www.virtualbox.org/wiki/Changelog

As guitar42697 said, you have to set a shared folder.


apt-cacher-ng fails to import from new distribution, ie bionic 18.04

i ended up figuring out how to do this. apt-cacher-ng can in theory import packages placed in _import, but modern apt doesn't appear to download the index files in a way that acng (at least the 0.9.1 version in ubuntu 16.04) recognizes so acng can't identify the imports and does nothing

the workaround is to explicitly request the index files, and then trigger the import using the webapp

# for bionic, with myhost as the acng host:

base="http://us.archive.ubuntu.com/ubuntu/dists"
for kk in bionic{,-updates,-backports}; do
  for jj in amd64 i386; do
    for ii in main multiverse restricted universe; do
      url="$base/$kk/$ii/binary-$jj/Packages.xz";
      echo $url;
      curl -x myhost:3142 $url > /dev/null;
    done;
  done;
done

# then trigger the import

at this point, everything imported successfully. i tracked this down using a variety of tools, which might be useful if you're trying to import from a different repository:

sudo strace -s 222 -v -y -yy -o ~/apt.log apt-get update
sudo ngrep -d any -vv -w byline outbound and not dst myhost or dst port 3142 > ~/apt2.log 2>&1

# strace output at the point of printing the package file

read(7<pipe:[341008]>, "200 URI Start...\nURI: http://us.archive.ubuntu.com/ubuntu/dists/bionic/universe/binary-amd64/by-hash/SHA256/39ec12bac1f788ae649d32c138898d49fdec15eee020a9c72ae92a622fb662a0\nSize:"..., 64000) = 232
write(1</dev/pts/4>, "Get:8 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8,570 kB]\n", 84) = 84
stat("/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-amd64_Packages.xz", ...) = 0

# the ngrep output showed the same hash

so instead of downloading the Package.xz file directly, apt is using the hash (and apparently acng doesn't now about it). grepping for this hash:

sudo grep -r 39ec12ba... /var/cache/apt* /var/lib/apt*

/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_bionic_InRelease
39ec12ba...          8569560 universe/binary-amd64/Packages.xz

which is how apt knows to use the hash instead of the Packages.xz url


Differences between df, df -h, and df -l

First of, df reports file system disk space usage. That is, it displays the total size, the used and available space for each of your mounted partitions.

df

is the default behavior, without arguments. Sizes are given in 1K-blocks (that is, 1024 bytes). Local filesystems (i.e., on hard drives on the present machine) as well as remote filesystems (e.g., mounted via NFS on a network) are listed.

df -h

tells df to display sizes in Gigabyte, Megabyte, or Kilobyte as appropriate, akin to the way a human would describe sizes. Actually, the h stands for "human-readable".

df -l

tells df to display only local filesystems, but no remote ones.


How to copy a layer between images or canvas in gimp 2.8?

To do this in GIMP 2.8, follow these steps:

Click the first image to make it active and hide the layer(s) you don't want copied.
(TIP: To quickly hide/unhide layers you can hold down Shift as you click on the 'eye icon' on one of the layers. This will hide/unhide all layers expect the one you have clicked on.)

Click and hold on the first image tab and drag. A little info box shows.
Drag the info box to the other image tab until it becomes active but don't release on the tab.
See below:

Drag the info box on the canvas itself and release.

The layer will be copied as a new layer - centered, keeping dimensions and size.


Errors were encountered while processing: spoofer-gui

you need to run sudo apt-get install libqt5gui5 libqt5gui5-gles libqt5network5 libqt5widgets5 once those are fully installed you can try installing spoofer-gui again with the command you used

If you receive any errors while installing the above .. copy the text and EDIT your question and paste the error text in you question so we can further troubleshoot the problem


First you need to build dependencies for that package.

sudo apt-get build-dep gnome-commander

gnome commander is not part of Ubuntu 14.04, so you can get and compile the source without specifying vivid. The -t means target release like unstable, 2.1*, or sid.

sudo apt-get source -b -t stable gnome-commander


How can I turn sticky edges off when it is already said to be disabled?

This could very well be a driver issue with your graphics. I have a Geforce GT 620 and it wasn't until I messed with the drivers some that I was able to get the little things such as transparency and non-sticky edges to work. Hope this helps!


.123 extension doesn't treated as textfile

By default, .123 file extension is recognized as a spreadsheet file and the system will try to open the file with application supporting spreadsheet (like lotus / libreoffice).

First you need to change the default opening type for this file extension. That can be done by,

Right click on the file and select properties -> Select "Open with" tab.

Select "Show Other applications" -> choose the text editor of your choice -> Press "Set as default" button

This will always makes the file with .123 extension to be recognized as a text file.


Partitioning hard disk by having one partiton

Using gparted partition editor you can split a partition into two.It was done through gparted live-disk or ubuntu live-disk because you installed ubuntu on the 465 GB which was already mounted while you logging into ubuntu.

Boot ubuntu live-disk,click on try ubuntu,then connect to the internet and openup the terminal.And run the below commands to install gparted

sudo apt-get update
sudo apt-get install gparted && sudo gparted

Right-click on the 465 GB partition then select the option Resize/Move.Now reduce the size of how much space did you want for another Os.
After resizing,an unallocated space was created just below to the 465 GB partition.
Now right-click on the unallocated space and click on the New option.From that Create ntfs partition for windows or ext4 partition for linux os.(choice based on your's)


How do I give apache access to a samba share?

You need to change your samba mount configuration so that you give permission to the www-data user and group to write to it. You may or may not have the ability to set specific directory permissions, but if not you'll have to set the entire drive the write access (which is bad for security).

I would personally advise using nfs instead of samba shares for networked storage and the use of ext3 or other fully featured file system.

http://www.cyberciti.biz/tips/how-do-i-set-permissions-to-samba-shares.html

https://help.ubuntu.com/community/Samba/SambaClientGuide

http://www.mattvanstone.com/2006/06/automatically_mounting_smb_sha/


Have you tried changing the video renderer in VLC? Also, i think there is a enable hardware decoding checkbox. Also, (at least when using mesa drivers from the optimized ppa) there might be a package that will allow nVidia VDPAU to work with ati cards. One more thing, if your really desperate, buy a Broadcom crystal hd.


How can I run fsck on ntfs partitions on my hard drive?

First, ensure you have ntfs-3g installed.

You can try following the top answer from the below post by @Micro:

fsck.ntfs is usually only a link to ntfsfix which is an utility from the package ntfsprogs that is already available with a standard installation of Ubuntu.

You can make a simbolic link between fsck.ntfs and ntfsfix to solve this permanently:

sudo ln -s /usr/bin/ntfsfix /sbin/fsck.ntfs
sudo ln -s /usr/bin/ntfsfix /sbin/fsck.ntfs-3g

Keep in mind that this utility came from a reverse engineering process and are not the best option to manage your filesystem, the NTFS filesystem does not belong to the GNU/linux world.

Source:
fsck can't find fsck.ntfs


Do a ppa purge of amd-microcode ppa and remove amd-microcode via software center or sudo apt-get --purge remove, reboot and rerun the upgrade.


There are many ways of install ruby.

RVM. This is the 'traditional' way that is used by many rubyists.
rbenv.
From packages.
From source (answer coming).


dumpe2fs: Block bitmap checksum does not match bitmap while trying to read '/dev/sda4' bitmaps

In case someone still need.
Follow step below.

reboot your computer
later show grub menu, choose advance options
choose kernel with recovery mode options
after show recovery menu, choose fsck
run command fsck {your disk}


Do an apt-get install ubuntu-desktop. This will reinstall all the packages part of the default setup.


Cannot Install Ubuntu Linux on Old Computer

Per N0rberts recommendation I ran memtest for 3+ hours with no errors. So that is good news.

After attempting to install dozens of different distros and variations of those distros with no success, I have successfully installed Xubuntu 14.04 and so far its working great after several reboots. Ive updated all software and am running the latest Firefox and Chrome browser. Its bit slow but my sis can use it for basic tasks.


DNS forward and reverse lookup works in Terminal, yet vCSA 6.7 site does not load in any web browser

I added my FQDN entry to /etc/hosts and this fixed the issue:

adminMe@IdeaPad-Ubuntu:/etc$ cat hosts
127.0.0.1   localhost
127.0.1.1   IdeaPad-Ubuntu
192.168.1.121   vCSA6-7.myLab.local

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


W10 Subsystem Linux: Ubuntu 16.04: systemd not started

Through the links provided by Hi-Angel I have learned that systemd is not supported by WSL Ubuntu and that the current architecture of WSL Ubuntu will require non-trivial changes to add support.

As Hi-Angel points out in the comments there is an active feature request for systemd on WSL. At this time it is not a highly ranking request, but with a cursory scan I see that higher ranked requests will require systemd support.


Docker breaks network bridging to virtual machines

Sadly Docker breaks bridge networking by changing the system's IPTABLES firewalls when it starts. This is a known problem without a decent solution.

See:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865975

A solution from here is:
https://anteru.net/blog/2017/docker-kvm-and-iptables/index.html

Create a file /etc/docker/daemon.json with the following contents:

{
    "iptables" : false
}

WARNING: This "fix" may have serious security implications so beware. I think the best solution would be for docker to create and manage its own chains in IPTABLES and leave the system ones alone.


Ubuntu Error : "The partition table format in use on your disks normally requires you to create a separate partition for boot loader code"

If Windows 8 is pre-installed it is booting in UEFI mode and requires gpt partitioning.

But the error you are getting is because you are installing BIOS boot mode on a gpt partitioned drive. If you really want BIOS boot for Ubuntu then you need a tiny 1 or 2MB unformatted partition with the bios_grub flag in gparted. If you use gdisk to create partition it is code ef02. It actually is a very long GUID that is assigned with these short flags or codes.

But you probably do not want Ubuntu in BIOS boot and Windows in UEFI boot. You may have to go into UEFI boot menu and turn on/off UEFI or CSM/BIOS each time you reboot into the other system. Much better to install Ubuntu in UEFI boot mode.

How you boot install media is how it installs. Your UEFI boot menu for the Ubuntu installer with have two entries. One will say UEFI and name of flash drive and the other just the name of flash drive which then is BIOS boot.

Shows install with screen shots. Both BIOS purple accessibility screen & UEFI black grub menu screen

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

Also shows Windows 8 screens

Installing Ubuntu Alongside a Pre-Installed Windows with UEFI

UEFI install,windows 8 with Something Else screen shots

http://www.everydaylinuxuser.com/2014/05/install-ubuntu-1404-alongside-windows.html

Linux on UEFI: A Quick Installation Guide

http://www.rodsbooks.com/linux-uefi/


How to use grep to find the next 7 characters after "temp1"?

Here's the answer:
For instance these are the texts inside the file

acpitz-virtual-0
Adapter: Virtual device
temp1:        +45.0Â°C  (crit = +90.0Â°C)
temp2:        +45.0Â°C  (crit = +90.0Â°C)

To get the +45.0Â°C of temp1, use this command:

grep temp1 < theFileWithTemp.txt | awk '{print $2}'


Insert the original SD card and check the name of the device (usually mmcblkX or sdcX):
sudo fdisk -l

You might see:
Device         Boot   Start      End  Sectors  Size Id Type
/dev/mmcblk0p1 *       2048  2099199  2097152    1G  c W95 FAT32 (LBA)
/dev/mmcblk0p2      2099200 31116287 29017088 13.9G 83 Linux

In my case the SD card is /dev/mmcblk0 (the *p1 and *p2 are the partitions).
Now you have to unmount the device:
sudo umount /dev/mmcblk0

Now to create an image of the device:
sudo dd if=/dev/mmcblk0 of=~/sd-card-copy.img bs=1M status=progress

This will take a while.
Once it's finished, insert the empty SD card. If the device is different (USB or other type of SD card reader) verify its name and be sure to unmount it:
sudo fdisk -l
sudo umount /dev/mmcblk0

Write the image to the device:
sudo dd if=~/sd-card-copy.img of=/dev/mmcblk0 bs=1M status=progress

The write operation is much slower than before.


update-manager problem: Failed to download repository information

To update your system just run:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade


Realtek RTL8723BE Wireless card Does not work in Ubuntu18.04

Remove rtlwifi_new modules. They are not needed with the 5.3 kernel. Run in a terminal:
sudo dkms remove rtlwifi-new/0.10 --all
sudo dkms remove rtlwifi-new/0.6 --all

and reboot.


First, open up monitor config - it's in Start > Settings > Settings Manger, then open the Display item.

Make sure both your displays are on.

Then, open a terminal and run this:

xrandr

The output will look something like this:

Screen 0: minimum 320 x 200, current 2464 x 900, maximum 4096 x 4096
LVDS1 connected 1024x600+1440+0 (normal left inverted right x axis y axis) 220mm x 129mm
   1024x600       60.0*+   65.0
   800x600        60.3     56.2
   640x480        59.9
VGA1 connected 1440x900+0+0 (normal left inverted right x axis y axis) 408mm x 255mm
   1440x900       59.9*+   75.0
   1280x1024      75.0     60.0
   1280x960       60.0
   1280x800       74.9     59.8
   1152x864       75.0
   1024x768       75.1     70.1     60.0
   832x624        74.6
   800x600        72.2     75.0     60.3     56.2
   640x480        72.8     75.0     66.7     60.0
   720x400        70.1

Then, run the following, changing VGA1 and LVDS1 to match the appropriate display:

xrandr --output VGA1 --left-of LVDS1

Note that you can move change --left-of to --right-of.

Now, it should work, but you've still got one problem.

It will disappear after you logout. So, you need to add it to your login items.

Head over to Start > Settings > Settings Manger, then open "Session and Startup", add the above command to your login items, and you're good to go!


12.04: LightDM freezes while "Logging in..." - maybe due to deactivated login sound

i had the same problem, i installed gdm and logins in gdm than lightdm. light dm is a bug-gy.
for this at main login crtl+alt+f1 and sudo there and apt-get install gdm and activate it


How can I boost my download speed for the softwares I download from ubuntu software centre?

Perhaps you could follow this article as to how use mirror-servers. The python-script seems promising, but adds manual labour.


Looking for plagiarism checking tools under Ubuntu

I don't know why you looking for tool exactly under ubuntu, if there are lot's of online plagiarism checkers, which are free or payed, where you can create your account, etc. Try this plagiarism checker, it's accurate, simple and fast, also it has free and premium versions, which depends on your needs.


Sound, stopping between multiple programs

You can reset your PulseAudio settings following the point 1 of part A of this guide.
http://ubuntuforums.org/showthread.php?t=789578


Cannot see boot message to choose which OS (Windows or Ubuntu)

It looks like you have Grub on the USB flash drive, and it has to be moved to the install grub to your hard drive.  To do that, with the USB plugged in, boot into Ubuntu just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below:

sudo grub-install /dev/sdaX (where X is your primary disk )

if you get any errors, try

sudo grub-install --force /dev/sda2

To find out which one is your primary disk,(in the image below, it would be sda1) just type

sudo fdisk -l

When done,  do sudo update-grub, remove the USB, and restart your system.

Try to re-install grub2 to the mbr from the live cd. This site would help: http://help.ubuntu.com/community/Grub2


No, the root directory will probably be /root/anaconda3/. That's where anaconda was installed so that is probably (I don't really know since you haven't given any information) what you mean by "root directory".


Installing Ubuntu on Windows Mobile Device

The spec sheet (pdf warning) for the MC659B shows that it uses a Qualcomm MSM7627 CPU, a family that is well-suported by Android for mobile phones. CodeAurora seems to be running a project to further the Linux support for this SoC family.

It looks like the MSM7627 core was later included in the Snapdragon S1, so you might have a smooth time installing Linux.

Further specs show you get 512MB RAM/1GB Flash, plenty of space for a minimal OS. Have  a a look at the BeagleBoardUbuntu project, because it contains a lot of good general info about running Ubuntu on a small ARM-based device.


If i install ubuntu 12.04.1 will I receive all updates without upgrading to ubuntu 12.04.2 due to bumblebee issue?

12.04.1 will be updated as normal without the new kernel (3.5.xx) or X-server from Quantal.
So no problem there.


How can I recover data from lost and found files present on root.disc from Windows?

Windows doesn't natively recognize the vast majority of Ubuntu file systems so the odds of data recovery from within Windows are virtually non-existent. You do have exceptionally good odds of recovering your data booted from Ubuntu live media and utilizing advanced data recovery tools such as testdisk As outlined in numerous posts here such as:

Partitions disappeared after power loss while installing

Recovering a lost file with testdisk


Where to start studying for developing ubuntu?

Developing for Ubuntu

Thanks for taking interest. Just some few clarifications. There is nothing such as an Ubuntu software (I know you didn't mean it). All the Ubuntu specific changes can be made available in other distros too. Their packagers have to package it.

Alpha 2 crashing

Natty is still under development and there is still a Xorg transistion under progress. I would recommend you to start working on stable releases. Use Maverick (10.10) for your development work. This way you will spend more time developing applications rather than encountering alpha bugs.

If you want to contribute to Natty or Unity, then surely you need to run Natty Alphas.

Unity Development

If you want to develop for Unity, then you need to get Natty and checkout the source code.

  bzr branch lp:unity

There is a file in the checkout branch for explaining what it's dependencies are and how you can get it to build.

If you want to get your code into unity maintree, you need to sign Canonical Contributer Agreement You don't need to sign it everytime you submit your code. Once it enough

Unity Bitesize bugs

The best way to get involved is to fix small bugs in Unity. Jorge Castro keeps posting a list of Bitesize rockstars regularly. Here is a list of bitesize bugs , you might want to talk to Jorge Castro (jcastro on IRC on channels #omg!ubuntu! etc - he also hangs out in Ask Ubuntu chat) before starting if you need extra help.

Here is a documentation for Getting Involved in Unity Development

Development on Ubuntu

As Burli pointed out, Quickly is a great tool for developing. It takes care of many things. Using it on Ubuntu is very easy as it integrates with ubuntu development  platforms like Launchpad, PPA etc

QUickly handles the boilerplate code and provides you with templates. Like one is for packaging. As per LWN article

Released template is ubuntu-project, which automates working
with Ubuntu-compatible code (using Bazaar for version control,
Debian packaging, and Launchpad.net Personal Package Archives (PPA)
for releases).

You can also read about it on this Ars Technica article from Ryan Paul

Language of Choice

Python is the most famous choice of development as I can see. I might be wrong since many also like to develop on Gtk/C or Boost/C++.

There are also other languages like Vala using which you can have native applications but have a higher level language.

If you know C#, you can use it for creating applications using Gtk# for UI.


How to make an indicator for Ubuntu? (Because tray is useless )

You're going to have a much easier time creating an app indicator with GTK. After all, App Indicators are a GTK thing.

Creating an app indicator is very easy, it only takes a few lines of code. Have a look here for a Python answer that uses QT and an app indicator in a very nice and easy to use manner.

There is also this link that has several examples in various languages.

Don't forget you can always look at the source code of an app indicator that you use and like, and see how that works.


Network (wifi) goes down and then up on ubuntu 17.04

Run in a terminal

sudo tee /etc/modprobe.d/iwlwifi-opt.conf <<< "options iwlwifi 11n_disable=8"

and reboot.


How to I write "å" on Ubuntu using an English (UK) keyboard?

Use "compose key", it is Shift + Alt Gr (Right Alt) and then in your case a will produce å. You might have to press a twice.


Application Switcher next, previous, up, down shortcuts in 13.10

I've found this merge request at launchpad which changed the switcher key handling from compiz to nux. That's why those options were removed in ccsm

Now the arrow shortcuts are hardcoded in unity code and cannot be customizable anymore. Unless you change the code recompile unity. That's what I did and it's working just fine. Not the very best solution, but at least I didn't need to downgrade.


How can I adjust system volume from within XBMC?

I had the same problem, that's why I wrote a little script to start xbmc that first gets the current volume, then sets the system volume to 100%, starts xbmc, and after exiting, resets the volume to the original level. That way controlling the volume in xbmc is the same as controlling the system volume since the system volume is on max.
Here is the script:

device=1
volume=$(pacmd list-sinks | sed "1,/index: ${device}/d" | grep volume | head -1 | awk ' {print $3}')
mute=$(pacmd list-sinks | sed "1,/index: ${device}/d" | grep muted | awk ' {print $2}')
pactl set-sink-mute $device 0
pactl set-sink-volume   $device 100%
xbmc
pactl set-sink-volume   $device $volume
if [[ $mute == "yes" ]]
then
pactl set-sink-mute $device 1
fi
exit;

The first line sets your audio device id. I have hdmi (device 0) and analog (device 1), you can check this with alsamixer or pacmd list-sinks. It also automatically unmutes your system, and when you exit xbmc it mutes it again if it was previously muted.

Note: you can also boost your volume to 150 instead if you find the volume too low, however you can also do this in xbmc in the audio osd settings.


Change arechive to archive and also change precisepartner to precise partner on lines 59 and 60 of /etc/apt/sources.list .


Ubuntu not connecting to ethernet nor wireless

Thank you for answering my comment in such fine detail.  It looks like a robust system and should work.  I suspect your WiFi connectivity problem is caused by a very common problem I frequently solve with a minimal configuration change.

First remove your WiFi card and you should find that your Ethernet connection works now.  I see this pretty often where there are WiFi setup problems.

Next reinstall your WiFi card and install WIFI RADAR and use it to determine which radio channels your neighbors are using and see if it might be the same as your own WiFi source.  If so, change your source to be the least in conflict with your neighbors.  When you have removed the conflict it should work.


How to install kingsoft office in ubuntu 14.04 64 bit?

What have you tried so far? I'm on Ubuntu 14.04.1 LTS x86_64 and it works perfectly fine for me. Try getting the .deb from http://wps-community.org/download.html.

The dependencies are:

Depends: libc6(>= 2.12), libstdc++6(>= 4.5), libfreetype6(>= 2.4), libglu1-mesa, libcups2, libglib2.0-0, libpng12-0, libsm6, libxrender1, libfontconfig1

which can be viewed with dpkg -I kingsoft-office_9.1.0.4280~a12p4_i386.deb or `apt-cache  .

You might have to do dpkg --add-architecture i386 and apt-get update before you can install i386 multiarch packages such as sudo apt-get install libcups2:i386 libglu1-mesa:i386 libpng12-0:i386 ...etc (:i386 because the dependencies are i386 just like the package)

sudo dpkg -i kingsoft-office_9.1.0.4280~a12p4_i386.deb

should work after that.


This is a known bug.  Head on over to https://bugs.launchpad.net/ubuntu/+source/linux/+bug/814323 and say it affects you too!

thanks


sudo dpkg --configure dpkg: error processing default-jdk (--configure):

Just do the same as in the other question (Failing package manager?):

sudo apt-get update

sudo apt-get clean

sudo apt-get autoremove

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

sudo dpkg --configure -a

sudo apt-get install -f

Edit: oops, sorry, you did already do that. I recommend to skip the dpkg --configure -a and first do apt-get install -f.


Adding an icon for Spyder in Favourites bar in Ubuntu 18.04

As the error message "There was an error launching the application" suggests, there is some sort of error in spyder.desktop. Fields like Exec and TryExec require the absolute path of the executable file, therefore the values for Exec and TryExec must be /home/hirono/anaconda3/bin/spyder. Same goes for Icon. It seems like you haven't given even the extension for the icon image. Value must be like /home/hirono/path-to-icon/icon.png.

Also, double check the permissions of spyder.desktop and /home/hirono/anaconda3/bin/spyder. They both must be executable.


I'm guessing you have bad rom files.  Do a scan in mame and if the game doesn't show as playable then you have bad rom files.


You can buy wireless drivers for it, that's what I did. It cost me £8 and I just plugged it into my computer and then the wireless worked.


Need to evaluate not variable itself but value as new variable in if-statement

With indirection

$ bin_variable_name=RSYNC_BIN
$ RSYNC_BIN="/home/<username>/Software/rsync"
$ echo "${!bin_variable_name}"
/home/<username>/Software/rsync


Visit torch - PyPi.
Click the "Download files" link.
Clicking the "Download files" link will expose the torch file to download. At the time of posting this answer the name of the torch file is: torch-0.4.1.post2-cp37-cp37m-manylinux1_x86_64.whl.
Open the terminal and type:

pip3 install https://files.pythonhosted.org/packages/d3/91/1b2871d6c8ca079254deae5872af32e02e9a85f07dd0834e8b3489ce138f/torch-0.4.1.post2-cp37-cp37m-manylinux1_x86_64.whl
pip3 install --user torchvision

Start the Python 3 interpreter with the command python3 and from the python3 prompt type:

import torch


Use command gstreamer-properties in terminal, in the window it opens you can select the interfaces for audio/video input and output. It helped me with a similar problem. To use that command, if you haven't, you have to install gnome-media package.


kamalesh. It seems that there's something wrong your software sources. Do you have PPA enabled on your machine? If so, try to do a ppa-purge to disable them and restore your repos to the orginal state. Please post your sources.list:

cat /etc/apt/sources.list

and I'll try to help you. Thank you.

Zhaofeng


How to enable remote desktop connection in Ubuntu 9.04 using command line. ( Using Putty)

If you can not login to your Ubuntu using putty, Install sshd first there.

sudo apt-get install openssh-server

If you want to have access to the desktop of Ubuntu install vnc there.

apt-get install vnc4server

Then configure vnc.


I had the same issue when plugging in my Cyborg RAT 7 mouse. To fix this (at least for my mouse, maybe yours too), add this to /etc/X11/xorg.conf (create the file if it's not there):

Section "InputClass"
    Identifier "Mouse Remap"
    MatchProduct "Saitek Cyborg R.A.T.7 Mouse"
    MatchDevicePath "/dev/input/event*"
    Option "ButtonMapping" "1 2 3 4 5 6 7 2 9 10 11 12 0 0 0"
EndSection

Log out and log back in and your mouse should work fine. Change the MatchProduct line and ButtonMapping (if necessary) to match your mouse.


apt-get cannot connect to Ubuntu archives

I just worked it out with help from a commenter. I had to go to the 'Software and Updates' Menu and change the 'Download from:' menu to Main Server. It does seem that there is a temporary issue with the Australian servers and nothing wrong with my system.

For server installations, see How do I change mirrors in Ubuntu Server from regional to main?


How to create a gif from a movie or dvd etc

You can navigate to this question

First command above create sequence of images. Second command puts images into on gif-file:

ffmpeg -i video.avi -t 10 out%02d.gif
gifsicle --delay=10 --loop *.gif > anim.gif

Also, you can use optimization level flag --optimize=03. It can be helpful to reduce file size:

gifsicle --delay=10 --optimize=03 --loop *.gif > anim.gif

Additionally, you can manipulate with number of colors --colors num of current palette
and --color-method method to determine most appropriate palette.

As for me most appropriate method is median-cut

median-cut is the median cut algorithm described by Heckbert

Also, I try to manipulate with described flags and found most useful options to achieve
better quality of generated gif-image:

gifsicle --delay=3 --optimize=03 --color-method median-cut --loop *.gif > anim.gif

Be accurate with --delay=NUM to correspond animation speed . This param depends on FPS of original video.


"Fullscreen" isn't a bash concept at all, it's down to your terminal emulator window and X.

However if you're scripting, you can tell X to add a fullscreen hint to a client. I most applications this will work. I've tested with Terminator and I've no reason to suspect it won't work with Gnome Terminal:

# set fullscreen on startup
wmctrl -r :ACTIVE: -b add,fullscreen

# ... do your stuff ...

# and before you quit
wmctrl -r :ACTIVE: -b remove,fullscreen

With regard to keeping this at a minimum footprint, the only way I've found to do this is to launch another terminal. Unfortunately lxterminal doesn't have a fullscreen launch option so you could either hack through the OpenBox settings (beurgh) or just fall back to xterm:

xterm -fullscreen -hold -e ./anotherscript.sh

Yeah, I'm suggesting launching another terminal. If you're shipping this with a launcher of sorts, you can avoid needing a secondary script.

xterm doesn't adhere to standard fonts or anything like that though you can configure almost everything through command line arguments (see man xterm for a riveting read).


xorg.conf for VGA connection with Sony Bravia at Lucid Lynx

I've found a configuration in a message from an email list, and it worked for me. Now I am enjoying a 1320 x 768 resolution, which is paradise comparing to the 640 x 480 I was stuck before.

I just had to add a few lines to the Monitor and Screen sections. Here is their new versions:

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "CRT-0"
    Option          "IgnoreEDID"
    VertRefresh     30-90
    HorizSync       20-150
    Modeline        "HDTV-1360x768" 85.500 1360 1424 1536 1792 768 771 777 795 +Hsync +Vsync
    DisplaySize     320 180
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth 24
    SubSection "Display"
        ViewPort 0 0
        Depth       24
        Modes "HDTV-1360x768"
    EndSubSection
EndSection


Okay so I got it working by removing the virtual temp levels from my /etc/thinkfan.conf file.

Not sure if this is going to be a problem, just having coretemp lvls. But it works


Touchpad scroll not working properly after Suspend

After several tries, I managed to find a solution and made it run automatically after reading this thread. I've only tested it on Ubuntu 18.10:

Basically, restarting the touchpad with these commands fixes it:

First run:

sudo modprobe -r psmouse

Then:

sudo modprobe psmouse

But.. I didn't want to have to write those commands after every suspend. So I setup a script running the commands above automatically everytime I resume from suspend

Run commands automatically after suspend:

1) Create script with commands (open Terminal and type)

sudo touch yourscriptname.sh

This will create the file in your home folder.

2) Edit script

sudo nano yourscriptname.sh

Paste this in and save the file:

#!/bin/bash

modprobe -r psmouse && modprobe psmouse

3) Move to your "system" folder

cd /etc/systemd/system

4) Create service:

sudo touch yourservicename.service

5) Edit service:

nano yourservicename.service

Paste this in and save it afterwards

[Unit]
Description=Run user script after suspend
After=basic.target suspend.target hibernate.target

[Service]
User=root
Environment=DISPLAY=:0
ExecStart=/home/yourusername/yourscriptname.sh

[Install]
WantedBy=basic.target suspend.target hibernate.target

6) Run chmod

sudo chmod +x /home/yourusername/yourscriptname.sh

7) Then run the following commands

systemctl daemon-reload

And:

sudo systemctl enable yourservicename.service

That should fix it!


Trying to download 14.04 LTS Desktop with Down Them All in Firefox

Alternative downloads

There are several other ways to get Ubuntu including torrents, which can potentially mean a quicker downloads, the network installer for older systems and special configurations, and links to the regional DVD image mirrors for older (and newer) releases are also available.


It seems to me like you are getting a bug with Banshee. Delete the ~/.config/banshee or ~/.config/banshee-1 directory, and try starting Banshee again. Don't enable the Miro guide plugin, if it is broken.

I enable the Dbus Mpris interface in Banshee and the issue with the play botton diseapered.
Is it official that miro guide is broken ?


Internal microphone doesn't work when using headphones

sudo apt install alsa-tools-gui

hdajackretask

Select the appropriate sound card up top in Select a codec:

Then make the Black Mic (headphone jack) override Not connected

Lower right corner, select Install boot override

Then reboot and test


ubuntu software center not opening in 12.10

You might have installed a Zope module from some other source than the official repository, to fix this run the following commands:

cd /usr/local/lib/python2.7/dist-packages/zope
sudo ln -s /usr/share/pyshared/zope/interface/

Source: https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1085425


How do I move "Application menu" within the widows title bar on the left side while "minimize, maximize, close" buttons are placed on the right side?

You can achieve the preferred ordering of window control buttons by running the following:

gsettings set org.gnome.desktop.wm.preferences button-layout appmenu:minimize,maximize,close

The : works as a "separator". You can put any button to the left or right of the : to make it appear on the left or right of the title-bar.

In order to place something in the left corner of the window title bar for all GTK and non GTK windows, you can modify the above command in this way (reference):

gsettings set org.gnome.desktop.wm.preferences button-layout menu:appmenu,minimize,maximize,close

Here is how the final result looks like for GTK and non GTK windows:


Turns out I hadn't rebooted after installing the NVIDIA drivers. So this morning, after starting my PC again, everything is as it should be.


Unwanted Asian Language set on my Ubuntu 12.04 LTS

Okay, in /etc/default/locale I set this and it worked

LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"


Ubuntu downloads everytime I boot up my computer

If I have understood your issue correctly,

Ensure you have made a bootable usb stick for ubuntu from windows. If not, please do this as suggested here .
If you have already done that, you need to go to bios and change the boot order.


My video (.mkv) thumbnails are green (or monochromatic)?

This answer is based on Another answer posted by Elder Geek, this just makes it easy for new users to execute

Original Work

For 17.04

Enable Multiverse and Universe repositories

Open the software and updates app and select multiverse and universe repositories

and run the following command after enabling them

sudo apt-get update

Install ubuntu-restricted-extras

sudo apt-get install ubuntu-restricted-extras

This command should do it, You'll need to use the Tab key to highlight the OK button for the mscore fonts package and hit enter to accept the agreement, How do I install the ubuntu-restricted extras package? (for more details)

You don't need to install ubuntu-restricted-extras if you've already installed media drivers while installing ubuntu

Install ffmpeg

sudo apt-get install ffmpeg ffmpegthumbnailer

These commands will install ffmpeg, after that delete all the existing thumbnails. by doing

rm -r ~/.cache/thumbnails

Change the job of creating thumbnails from Totem to ffmpeg

sudo nano /usr/share/thumbnailers/totem.thumbnailer

a text file will open up, replace all the text inside it with the following

[Thumbnailer Entry]
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -s %s -i %i -o %o -c png -f -t 10
MimeType=application/mxf;application/ogg;application/ram;application/sdp;application/vnd.ms-wpl;application/vnd.rn-realmedia;application/x-extension-m4a;application/x-extension-mp4;application/x-flash-video;application/x-matroska;application/x-netshow-channel;application/x-ogg;application/x-quicktimeplayer;application/x-shorten;image/vnd.rn-realpix;image/x-pict;misc/ultravox;text/x-google-video-pointer;video/3gpp;video/dv;video/fli;video/flv;video/mp2t;video/mp4;video/mp4v-es;video/mpeg;video/msvideo;video/ogg;video/quicktime;video/vivo;video/vnd.divx;video/vnd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-flv;video/x-m4v;video/x-matroska;video/x-mpeg;video/x-ms-asf;video/x-ms-asx;video/x-msvideo;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-nsv;video/x-ogm+ogg;video/x-theora+ogg;video/x-totem-stream;audio/x-pn-realaudio;audio/3gpp;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/midi;audio/mp2;audio/mp4;audio/mpeg;audio/ogg;audio/prs.sid;audio/vnd.rn-realaudio;audio/x-aiff;audio/x-ape;audio/x-flac;audio/x-gsm;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mod;audio/x-mp3;audio/x-mpeg;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-realaudio;audio/x-real-audio;audio/x-sbc;audio/x-speex;audio/x-tta;audio/x-wav;audio/x-wavpack;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-xm;application/x-flac;

To save updated file in Nano press Ctrl + X and then type y and enter. How to edit files in a terminal with nano?

You can use other text editing apps to edit /usr/share/thumbnailers/totem.thumbnailer file if you're not comfortable using nano

and the restart nautilus

nautilus -q

Clear all the thumbnails again and check if you're problem is solved

rm -r ~/.cache/thumbnails

The command above will clear all the thumbnails again, go check them, they will not be monochromatic now'

If you're losing Mp3/flac thumbnails after doing this, then try this approach instead


Is there a way to get a newer version of the linux-firmware project than the package in Ubuntu 18.04?

I don't know how much better this is but you could try downloading and installing the debian sid package using dpkg -i

https://packages.debian.org/sid/amd64/firmware-amd-graphics/download


How can I send commands to specific terminal windows?

Since you mention you solved the problem for your specific situation, below a solution for general purpose. Thanks to xdotool's --sync option, it works pretty reliable in the tests I ran; I could "send" commands to specific terminal windows and it ran perfectly without an exception.

How it works in practice

The solution exists from a script, which can be run with two options
-set and -run:

To set up (open) an arbitrary number of terminal windows, in this example 3:

target_term -set 3

Three new terminals will open up, their window id is remembered in a hidden file:

For clarity reasons I minimized the terminal window I ran the command from :)
Now that I created three windows, I can send commands to either one of them with the run command (e.g.):

target_term -run 2 echo "Monkey eats banana since it ran out of peanuts"

As shown below, the command ran in the second terminal:

Subsequently, I can send a command to the first terminal:

 target_term -run 1 sudo apt-get update

making sudo apt-get update run in terminal 1:

and so on...

How to set up

The script needs both wmctrl and xdotool:

sudo apt-get install wmctrl xdotool

Copy the script below into an empty file, safe it as target_term (no extension!) in ~/bin (create the directory ~/bin if necessary.
Make the script executable (don't forget) and either log out/in or run:

source ~/.profile

Now setup your terminal windows, with the number of required windows as an argument:

target_term -set <number_of_windows>

Now you can "send" commands to either one of your terminals with the command:

target_term -run <terminal_number> <command_to_run>

The script

#!/usr/bin/env python3
import subprocess
import os
import sys
import time
#--- set your terminal below
application = "gnome-terminal"
#---

option = sys.argv[1]
data = os.environ["HOME"]+"/.term_list"

def current_windows():
    w_list = subprocess.check_output(["wmctrl", "-lp"]).decode("utf-8")
    w_lines = [l for l in w_list.splitlines()]
    try:
        pid = subprocess.check_output(["pgrep", application]).decode("utf-8").strip()
        return [l for l in w_lines if str(pid) in l]
    except subprocess.CalledProcessError:
        return []

def arr_windows(n):
    w_count1 = current_windows()
    for requested in range(n):
        subprocess.Popen([application])
    called = []
    while len(called) < n:
        time.sleep(1)
        w_count2 = current_windows()
        add = [w for w in w_count2 if not w in w_count1]
        [called.append(w.split()[0]) for w in add if not w in called]
        w_count1 = w_count2

    return called

def run_intterm(w, command):
    subprocess.call(["xdotool", "windowfocus", "--sync", w])
    subprocess.call(["xdotool", "type", command+"\n"])

if option == "-set":
    open(data, "w").write("")
    n = int(sys.argv[2])
    new = arr_windows(n)
    for w in new:
        open(data, "a").write(w+"\n")
elif option == "-run":
    t_term = open(data).read().splitlines()[int(sys.argv[2])-1]
    command = (" ").join(sys.argv[3:])
    run_intterm(t_term, command)

Notes

The script is set for gnome-terminal, but can be used for any terminal (or other program as well) by changing the application in the head section of the script:

#--- set your terminal below
application = "gnome-terminal"
#---

The commands above can (of course) be run from a script as well in case you'd lile to use it for some kind of a simulation.
The script waits until both the targeted window has focus and the command is done typing, so the command will always land in the right terminal window.
No need to say that the script only works with the terminal setup (windows) that was called by the command:

target_term -set

The terminal windows will then be "labelled" by the script, like you mention in your question.
In case you start a new target_term session, the hidden file, created by the script will simply be overwritten, so there is no need to remove it otherwise.


Run the following command in a terminal:

gconftool --set /desktop/gnome/interface/menus_have_icons --type bool true
gconftool --set /desktop/gnome/interface/buttons_have_icons --type bool true

This will add the icons to the menus and the buttons.


Upgrade manager does not start upgrading

That is presumably a bug in the Update Manager.

You can run the update from the Terminal: launch it, then type sudo do-release-upgrade and enter your password at the prompt.

If you like, you can also download Ubuntu 12.04 from the Ubuntu website, start the installation normally, then select "Upgrade Ubuntu 11.10 (or whatever) to Ubuntu 12.04 LTS" when the installer gives you the choice. Other options will be to install to a new partition, install over top of what you have now, or to do something else.


Installing and using nvidia drivers inside lxc container

Reading the blog and wiki at:

https://blogs.igalia.com/itoral/2014/07/29/a-brief-introduction-to-the-linux-graphics-stack/

https://en.wikipedia.org/wiki/Direct_Rendering_Manager

I think it is not possible to have this configuration. I will have to have same graphics libraries installed in lxc container as the one on the host machine so as to use the same DRM/DRI layer of the kernel.


Grub won't start Windows 10 and there is a "Windows failed to start" error in Windows Boot Manager

If you reinstall Ubuntu 16.04 as UEFI then it should sort it out.

I was used to legacy boot but finally gave UEFI a try with a newish laptop. It works fine but what I didn't realise initially, when I was trying to install Ubuntu from a USB stick, is that I had to press f12 on booting up (to offer me the 'one-time boot menu') and then select the stick under the UEFI options.

If I didn't do that then it just read the stick as a legacy boot stick and, if I proceeded to install it in the usual manner, then Ubuntu and the grub bootloader would be installed in 'legacy' mode.

Since Ubuntu and grub are then following the Legacy Boot rules, they don't have 'permission' to boot up a UEFI Windows partition and so you get the error.

If Ubuntu is installed in UEFI mode, then grub will be able to boot a UEFI Windows partition without any problems.

Your grub boot menu (apart from the 'extra' Ubuntu 14.04 that I've installed) will probably then look something like this:


how to activate the root user and delete user 1 on console

To activate the root user run sudo passwd in terminal. Enter your sudo password to proceed. You will then be prompted for a new Unix password.


Force Unity Dash to index all files on Home

Try the command sudo updatedb on the Terminal application.


What is the purpose of ubuntu-vg partiton?

'vg' is a Volume Group, used in Logical Volume Management https://wiki.ubuntu.com/Lvm  and not needed for simple installations. However, there's nothing wrong with it, per se, and should you go dual-boot later, it will be no more problematic than standard partitioning.


Get unique values and their counts in a column

Using sort and uniq,

$ sort f | uniq -ci | awk '{print $2,$1}'
Bcoli 1
Ecoli 3
Mycobacterium 1
streptococcus 3


How to install a Huawei EC-226 USB Modem?

There is a guide at Ubuntuforums. Have a look here:
http://ubuntuforums.org/showthread.php?t=1090119
Maybe it helps You :


Now the settings are managed by the /etc/adjtime. Just edit the file and be sure that the last line says LOCAL:

-3618.710110 1377987830 0.000000
1377987830
LOCAL


Can't build pango applications. Pango header not found

You just need to tell cc where to find the corresponding headers. Using pkg-config can help here:

cc ./example1.c -o pangc $(pkg-config --cflags --libs pangocairo)

If pkg-config is not installed, just type:

sudo apt-get install pkg-config


How to execute PASTE command with sequence number?

Expanding on steeldriver's comment:
inc=3000
for ((i = 1, k = 1; i <= 50000; i += inc, k += 1)); do
  readarray -t files < <(seq -f "file%.0f" $i $((i + inc)))
  paste "${files[@]}" > "${k}output.txt"
done


Virtual Box "system is not currently set up to build kernel modules" on 16.04 (xenial)

The output of apt-cache policy linux-headers-4.4.0-24-generic that you provided was an important clue to the root cause of this problem.  Since the command reported (in part) Candidate: none it was clear that the repos were not set up properly on your system, and therefore it didn't know where to find the desired package.  Add http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main to your sources list and you should be able to install the package.

Just so you can check the rest of your sources list, here is what mine looks like, to use as an example (I removed the commented out lines).

deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security multiverse
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main


Rename files according to the parent folders and move to new location

As heemayl suggests in answer to the linked post, you could use a series of shell expansions.

Assuming the current working directory is the parent of both the source and the destination, you could use this loop on an Ubuntu system:

$ for d in ./BBC_english/*; do e="${d##*2017-}"; f="${e%%.[0-9]-[0-9].rec}"; g="${f/./__}"; echo mv -v -- "$d"/* ./newpath/BBC_english__"$g".mpeg; done
mv -v -- ./BBC_english/2017-09-19.20.00.3-0.rec/00001.mpeg ./newpath/BBC_english__09-19__20.00.mpeg
mv -v -- ./BBC_english/2017-09-19.21.00.3-0.rec/00001.mpeg ./newpath/BBC_english__09-19__21.00.mpeg
mv -v -- ./BBC_english/2017-09-19.22.00.3-0.rec/00001.mpeg ./newpath/BBC_english__09-19__22.00.mpeg
mv -v -- ./BBC_english/2017-09-19.23.00.3-0.rec/00001.mpeg ./newpath/BBC_english__09-19__23.00.mpeg

Note that we loop over the directories rather than the files. This assumes you really only have one file in each directory, which seems to be the case given the logic.

Remove echo after testing to actually move files. Then -v causes mv to report what it's doing.

If your mv does not support the -v (verbose) flag and you want to see what's happening, you can instead get bash to be verbose and give you a detailed summary of what it's doing using set -x

#!/bin/bash
set -x

for d in ./BBC_english/*; do
   e="${d##*2017-}"            # remove everything before and including 2017-
   f="${e%%.[0-9]-[0-9].rec}"  # remove the trailing numbers and `.rec`
   g="${f/./__}"               # replace the first `.` with `__`
 echo mv -- "$d"/* ./newpath/BBC_english__"$g".mpeg
 # move to the new path using the edited directory name
done

The output of this after removing echo would include the result of each expansion and the mv statement for every iteration of the loop. For the first iteration, the output would look like this:

+ for d in ./BBC_english/*
+ e=09-19.20.00.3-0.rec
+ f=09-19.20.00
+ g=09-19__20.00
+ mv -- ./BBC_english/2017-09-19.20.00.3-0.rec/00001.mpeg ./newpath/BBC_english__09-19__20.00.mpeg


libMagicWand.so.5 cannot open shared object file?

The library libMagickWand.so.5 doesn't exist anymore in Vivid. Install the following library if it is not already installed.

sudo apt-get install libmagickwand-6.q16-2

If that does not produce the desired result, then proceed here:

Either you install the official package of emacs or you must recompile it yourself.

With this command you can see, where do you get emacs via APT.

apt-cache policy emacs

Take the URL that is closest to the top. If the URL DOESN'T looks like this:

http://archive.ubuntu.com/ubuntu/

THAN you can search in the files in /etc/apt/sources.list.d and in /etc/apt/sources.list and remove the affected line.

Alternatively, you can also try to install the libraries from Utopic by hand.


How to reverse colors for the current window in gnome shell?

To invert the entire screen you can use the program xcalib:

xcalib -invert -alter

From the xcalib man page

  xcalib  loads  'vcgt'-tag  of  ICC  profiles  to the X-server using the
         XVidMode Extension in order to calibrate your display.

That means it does not depend on compiz being used.

You can install it using sudo apt-get install xcalib. To make it more convenient assign a keyboard shortcut opening the Keyboard settings.

There, navigate to shortcuts. Add a custom shortcut by pressing the plus button, add the name and the command. It will be disabled by default, so assign a shortcut by clicking on Disabled and perform the wanted shortcut, e.g. meta + i

Before:

After xcalib -invert -alter was launched (mapped to <meta-i>:

Pressing it again restores to the normal not inverted screen.


How do I sudo without having to enter my password?

I believe the correct line is:

gandalf ALL=(ALL) NOPASSWD: ALL

Put it in the end of the file - replace gandalf with the appropriate username. (To edit the file, run the command sudo visudo.)


You have Windows 10, which means you use UEFI.

Unfortunately, BURG does not support EFI, and probably will never (the project seems to have been abandoned).

If you want an alternative to GRUB that works with UEFI, use Clover or rEFInd.


How to upgrade gnome-shell-extension-openweather in Ubuntu 18.04

Go to https://extensions.gnome.org/local/

This will list (with the aid of some browser magic) the extensions that are installed on your system. There will be an update button next to the extensions that can be updated.


How do I fix two finger scroll on the Lenovo X1 Carbon (3rd Gen) touchpad?

After a clean install of Ubuntu 18.04 LTS the correct driver for the touchpad is not installed out of the box. To fix this run sudo apt install xserver-xorg-input-synaptics-hwe-18.04 in a terminal and restart your computer.


I unplugged an SD card without clicking eject, and now everything is read only

If the data are very valuable, it is a good idea to clone the drive to another drive of at least the same size, and do the repair work on that drive. You can clone the drive (in this case the SD card) with mkusb, which helps you write to the correct drive (instead of overwriting valuable data on some other drive).

Or in your case with a read-only drive - Please back it up! Maybe it is 'gridlocked'. In that case the next stage is that it will be completely dead.

Try to repair the file system. If there is a Microsoft file system, FAT32 (standard) or NTFS, use Windows tools to repair it. If there is a linux file system, use linux tools.

If those tools do not work, try with Testdisk and PhotoRec. See the following links,

help.ubuntu.com/community/mkusb

Pendrive lifetime, explaining 'gridlock'

Repair the partition table and file system of a pendrive, applies also to memory cards

CGSecurity - Data recovery: TestDisk & PhotoRec


How do I develop an Ubuntu application in HTML and JS?

A good starting point for bindings and APIs on Ubuntu can be found on developer.ubuntu.com. I don't have any experience with it, but you will probably also want to look into Gjs, the Javascript bindings for GNOME.

Depending on what you are trying to do, you could just build the app like any HTML + JS app and then throw it into a Webkit view. It's extremely simple to do in python:

#!/usr/bin/env python

from gi.repository import Gtk, WebKit
import os, sys

class Browser:
    def __init__(self):
        self.window = Gtk.Window()
        self.window.set_default_size(800, 600)
        view = WebKit.WebView()
        view.load_html_string("Hello World!", "file:///")
        self.window.add(view)

        self.window.show_all()
        self.window.connect('destroy', lambda w: Gtk.main_quit())

def main():
    app = Browser()
    Gtk.main()

if __name__ == "__main__":
    main()


After login I only get a terminal window

Well... Apparently, it was a lot easier then I thought. (like always) After enabling some settings in CCSM it still did not work for the one user. Apparently, in my ~/.dmrc, there was a line session=xterm. After changing that to session=ubuntu, I managed to fix the problem.


How do I set the policy for users to modify the network state and connections?

You can create a local policy for one or more users.

Create the document where the settings will live...

touch /var/lib/polkit-1/localauthority/50-local.d/10-network-manager.pkla

Add one or more policies...

[Let foo modify system settings for network]
Identity=unix-user:foo
Action=org.freedesktop.NetworkManager.settings.modify.system
ResultAny=no
ResultInactive=no
ResultActive=yes

[Do not allow foo to enable/disable networking]
Identity=unix-user:foo
Action=org.freedesktop.NetworkManager.settings.enable-disable-network
ResultAny=no
ResultInactive=no
ResultActive=no

The key is the ResultActive element which can be set to yes, no, auth_admin, or auth_admin_keep where the latter two will require the password of another user with sudo privileges.

The Action element defines what action will be allowed/disallowed or require authentication with a password. There are options like org.freedesktop.NetworkManager.enable-disable-network for toggling network as enabled/disabled. You can see more options in the /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy file, just look for something like <action id="org.freedesktop.NetworkManager.enable-disable-network"> and read it's description.

You can also set all values with the * wildcard...

[Prevent foo from modifying all network states and settings except with admin password]
Identity=unix-user:foo
Action=org.freedesktop.NetworkManager.*
ResultAny=no
ResultInactive=no
ResultActive=auth_admin_keep

This will require a password to make ANY change to network settings or state.

You can do this in a single command that could be included in a script...

sudo su -c 'printf "[Prevent foo from modifying all network states and settings]\nIdentity=unix-user:foo\nAction=org.freedesktop.NetworkManager.*\nResultAny=no\nResultInactive=no\nResultActive=auth_admin" >  /var/lib/polkit-1/localauthority/50-local.d/10-network-manager.pkla'

References:

http://manpages.ubuntu.com/manpages/trusty/en/man8/polkit.8.html
http://manpages.ubuntu.com/manpages/trusty/en/man8/pklocalauthority.8.html


It's displayed with the wrong encoding. To fix it in Firefox:

View -> Text Encoding -> Unicode

(Your issue has nothing to do with fonts.)


How to Unmount WIndows Partition Disk Permantely

If you want to do it nicely (i.e. really not mount the disks rather than mount them somewhere strange) it is a bit more complicated than what is suggested in the other answer. The best guide to follow is:

Hide your disks or partitions from Nautilus

I followed the guide just the other day and it worked well. Essentially you create a file /etc/udev/rules.d/99-hide-disks.rules in which you put the line

KERNEL=="sda1", ENV{UDISKS_PRESENTATION_HIDE}="1"

where sda1 is the name of the partition you want to hide. In some systems (12.10?) it can also be

KERNEL=="sda1", ENV{UDISKS_IGNORE}="1"

Then you reboot.


What happens after 5 years LTS period expires?

They say a picture is worth a thousand words...

It's not that bad, but if you get all the way to the end of an LTS, perhaps that an indication you've been ignoring the state of a machine for a little too long. By the time an LTS expires, two more have been released. You should be testing on those well ahead of the last one expiring.

The fire and brimstone is essentially what happens with any Linux distribution (hell, even just software) when its support runs out:

No more security updates
No more any other sorts of updates
The software repositories turn off time time after EOL (not the same day, usually a few months)
Due to the above, if you leave it too long you could be hacked and then my leading image might not be that inaccurate. Especially if your Ubuntu install is controlling a nuclear power plant, iron smelting operations, evil doomsday machine, etc.

So essentially, just upgrade within that five years. Ubuntu is free but if you're paying somebody to maintain your server, you might have to factor in costings for them doing the work.

This is exactly the same for Ubuntu Desktop and Server. They're the same packages. The difference in support timelines stopped after 2010.

And just to point out that LTS support is from its release, not from when you start using it. One of your sentences made it sound like you might have been counting it the wrong way.


Can I use the Ubuntu font in a proprietary application?

You are not forced to use the font with free/open source applications. The license just states that you must distribute the license together with the font itself. The license also says what you have to do when you modify the font, but this is not your case.

It is very short and you can read it here: http://font.ubuntu.com/ufl/

If you are seeking a more authoritative answer, remember that Canonical is always available to help you: legal AT canonical.com


Well, the reason might be, the guide you mentioned does not describe what you actually want to do. It describes how to burn a generic image onto a CD/DVD on a mac, but to be used with an intel PC - not a mac.

A mac has a different boot mechanism, called (U)EFI. Some PCs also boot from UEFI media, but all still support legacy bios booting mechanisms, which is still widely used.

To boot from a cd/dvd using a mac, be sure of this:

Use and burn a 64bit image. 32bit will not work.
Boot while holding down the options key

I haven't tested it myself, but the this seems to be most promising guide.


"No such file or directory" but it's there.

Welcome to Ubuntu.
From home to enter brian2 from /home/, type in terminal
cd ./brian2

or simply,
cd brian2

When to say cd /brian2, it tries to navigate the folder at / but there is no folder brian2

Further Clarification as you asked in your comment
Christian Mann aptly said it, tilde ~ refers the same thing as /home/brian2 in your case.
~ refers to home for any user. For example,
For brian ~ refers to /home/brian
For brian1 ~ refers to /home/brian1 so on.
If brian1 enters to brian's home (have to have permission) he will see at prompt
brian1@ubuntu:/home/brian$

In Linux always you can modify things. There is a special shell variable PS1 which can modify the shell prompt in different ways as you wish.


can't open pdf. error: File type unknown (application/octet-stream) is not supported

MIME type for a PDF on Ubuntu is application/pdf

but application/octet-stream (meaning any generic binary file) is a sort of catch all for files, and usually requires a file extension to determine what to open it with.

Download the PDF locally and save it as a PDF, making sure there is .pdf at the end.


I do not think that the USB 2.0 stick is the source of the problem. It seems like some kind of bios configuration problem. The following steps may help:

Tap F12 continuously to enter bios configuration.
Go to Settings -> Boot sequence. If your USB drive appears there, make it be the 1st in the list. Save and reboot.
If it does not appear, go to System configuration -> USB Configuration. Select "Enable boot support" and "Enable external USB port" (if they are not selected). Save and reboot to bios configuration. Now under Settings -> Boot sequence you must see your USB. Goto 2.
If 3 did not work, check if your USB was properly prepared. Also, check that you downloaded a 64-bit version of the OS.

If after booting from your live USB, Ubuntu does not recognize your SSD, and your SSD is M.2 PCIe, reboot again to bios and go to System Configuration -> SATA Operation. If "RAID On" is selected, select "AHCI". Before doing this I recommend you to prepare a separate windows restoration USB.

See also https://www.dell.com/community/Windows-10/Dell-Inspiron-15-7567-won-t-boot-from-USB/m-p/5162753#M9759


Deleted all my hard-drive partition by mistake (g-parted)

Try this:

Open a terminal,Press Ctrl+Alt+T

Run it:

exec sudo -i
apt-get update
apt-get install testdisk
testdisk

Choose Create to instruct Testdisk to create a log file containing technical information and messages, unless you have a reason to append data to the log or you execute TestDisk from read only media and must create the log elsewhere.

Choose None if you do not want messages and details of the process to be written into a log file.

Press Enter to proceed.

All hard drives should be detected and listed with the correct size by TestDisk.

Use up/down arrow keys to select your hard drive with the lost partition/s.

Press Enter to Proceed.

TestDisk displays the partition table types.

Select the partition table type - usually the default value is the correct one as TestDisk auto-detects the partition table type.

Press Enter to Proceed.

TestDisk displays the menus.

Use the default menu "Analyse" to check your current partition structure and search for lost partitions.

Confirm at Analyse with Enter to proceed.

Read here for more information: http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step


Packages from repositories which has been disabled

You can point them out thusly:

for i in $( dpkg -l | grep -E '^ii' | awk '{print $2}' ) ; \
do apt show -a "$i" 2>/dev/null  | grep -E 'Package:|APT-Sources'; done

You may have to adjust the grep -E '^ii' to pick the packages you want out of dpkg -l.

Read man apt, and look at the output of apt show <packagename> without the filtering.


Is there a command to find and then print a line from a document?

Let <path/filename> equal the full path to your text file.
Let {searchyword} equal the part or entire word you are searching for.
sudo cat <path/filename> | grep -i {searchword}
Dont' forget the / at the start of your path


How to disable system tray notifications in 14.04?

To completely turn off notifications, open a Terminal (Ctrl+Alt+T) and type the following command:

sudo mv /usr/share/dbus-1/services/org.freedesktop.Notifications.service /usr/share/dbus-1/services/org.freedesktop.Notifications.service.disabled

Finally restart your system to open a new session without notifications bubbles.


HDMI not recognised on Lenovo Ideapad 320S + Ubuntu 17.10 (i915 driver)

I found the issue: I had accidentally bought a DisplayPort to HDMI adapter, rather than a HDMI to DisplayPort adapter, which is most likely what caused the problem.


apt-get dependency issue Open-SSH Client

Just remove these packages to let you use apt for other packages.
Execute this commands in terminal.

sudo apt-get remove openssh-server openssh-client --purge && sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get update

Then reinstall openssh server and client .

sudo apt-get install openssh-server openssh-client


The third number is the subdevice number, and might be useful only for sound cards that implement hardware mixing. (If you leave the third number out, ALSA chooses the first free one, which is what you want in most cases.)

There are no cards that have multiple subdevices on a capture device, so specifying it is pointless (it's always zero).


How to access apm for io.atom.Atom flatpak

flatpak run --command=apm io.atom.Atom

or more specifically:

flatpak run --command=apm io.atom.Atom install packagename1 packagename2

The answer was in these two (1, 2) closed issues on io.atom.Atom github page.


why Kubuntu KDE default Start Menu Icon not using Kubuntu icon just like Ubuntu?

One of the principles of the Kubuntu Team is to keep the KDE desktop on Kubuntu as close to the default KDE desktop as possible. Changing such icons would violate this principle.

However, since all is open source software, anybody can customize their own desktop anyway they like.


You can run the portable wireshark through wine: https://appdb.winehq.org/objectManager.php?sClass=application&iId=11235

I am not sure whether you need to install winpcap libraries to ubuntu.


The problem is that you've got 8G RAM. The swap file/partition WILL be used... and in fact, you might wish to increase your swap file/partition to 4G. Changing the vm.swappiness parameter might change swap usage, but with 62% of RAM used, as in your example, you WANT it to swap.

With no swap file/partition, or with too little swap file/partition, understand that in the current example (100%-62%=)38% of unused RAM is used a disk/file buffer/cache. With no/little swap, and RAM usage increasing, and disk/file butter/cache being reduced and reduced, and OOM (Out Of Memory) process trying its hardest to keep the machine running, it'll eventually run out of resources, and with no where to go, and it'll hang/crash the computer.


Which gstreamer package for which file types?

The gstreamer project maintains lists as part of the official documentation for the individual components and plugins. These lists consist not of file extensions but of codecs, containers and formats.

But you shouldn't need to have such a list in the first place, particularly not by file extension. If you encounter a file you can't play and there is a package that adds playback support for this format just install it. In a perfect world I'm pretty sure Ubuntu would ship with all codecs installed by default (or there would just be the one perfect format), because you as enduser should never bother with such an issue. Unfortunately there are patent issues, which is mostly why the restricted-extras packages and gstreamer-ugly exist. Also the code quality of some decoders does not meet the standards, the reason for packages like gstreamer-bad, but bad support might in some cases still be better than no support.

Your second question: Does gstreamer cover all my multimedia needs? Are there alternatives?

Gstreamer is the default multimedia framework used by Ubuntu and the applications in the default installation are chosen to integrate nicely into that environment. Gstreamer has become the de facto standard on the Linux desktop because of its functionality and it is well maintained. Xine was also a popular multimedia framework but it seems like it is no longer actively maintained. That is mostly it for frameworks which are comparable to DirectShow / Media Foundation or QuickTime.

FFmpeg

On the lower level you might have noticed there is FFmpeg which is used as a component in gstreamer and itself provides a lot of functionality. VLC and MPlayer/MPlayer2 are two media players based upon FFmpeg and don't make use of gstreamer. However if the default media player covers all your needs, you don't have to install those.

But anime fans for example would enjoy Advanced Substation Alpha (ASS) subtitle format support and H.264 High 10 profile (aka 10-bit) video playback. For this use case the Motu Media launchpad group provides PPAs with daily MPlayer2 builds and the SMPlayer2 front end. However this is bleeding edge and can break sometimes.

Restrictions

Encrypted DVD playback is disabled by default, the community documentation has a page on that topic. You basically need to install a package AND run a script.

FFmpeg installs by default with some functionality stripped of, community documentation has a page on that topic, too. Those instructions are not up to date, but installing a few of the extras packages, with newer versions will pull the others back in as dependecnies.


Judging by a very similar looking issue (with no solution) here (noted it's old), my money would be on SmartGit. Looking at this link you should likely be able to determine it definitively by looking at SmartGit's log file:

  Default Location of SmartGit's Settings Directory
    Windows
  %APPDATA%\syntevo\SmartGit\ (%APPDATA% is the
  path defined in the environment variable APPDATA)
  Mac OS
  ~/Library/Preferences/SmartGit/<major-smartgit-version>
   Linux/Unix
  ~/.smartgit/

...

  log.txt contains debug log information. It can be configured via log4j.properties. You may remove this file: afterwards, SmartGit will return to its default logging settings.


To me, it sounds like a hardware issue, especially since you say it works just fine when used in another computer.

Are you able to verify that the SSD is indeed showing up in BIOS, and that your boot order is set up correctly?


I had problems booting Ubuntu with USB Hub plugged in. Booting Ubuntu with USB Hub unplugged solved the problem. Then I plugged the USB hub in after booting Ubuntu. This might work for you too.

A few days later I was able to boot Ubuntu with the USB hub plugged in from the beginning and the problem didn't repeat.

HTH.


Ping works, but ssh isn't even getting logged

Apparently, theres a new thing called UFW I was trying iptables. anyway for posterity or for mods to laugh at me..
'sudo ufw disable'


Believe Unsettings will let you do that.

sudo add-apt-repository ppa:diesch/testing
sudo apt-get update
sudo apt-get install unsettings


Install ubuntu as a dual boot system in mac air

Some comments:

rEFIt has been abandoned for four years. Two years ago, I forked it as rEFInd, which has significant improvements, particularly with respect to booting Linux. You're better off using rEFInd than rEFIt.
The instructions you followed had you do an installation in BIOS/CSM/legacy mode. IMO, this should be done only as a last resort; instead, you should attempt to boot Linux in EFI mode. This is more easily done with rEFInd than with rEFIt. I've written a page on how to do this, but it's outdated and uses a very old 32-bit Mac as a model. Nonetheless, if you follow the instructions under "Fixing the Installation," they should be mostly applicable.
With an EFI-mode boot of Linux, a hybrid MBR becomes unnecessary and even undesirable, so don't bother trying to muck with one.
Unfortunately, Macs vary an awful lot among themselves. Some of them boot and work fine in EFI mode. Others are incredibly uncooperative and must be booted in BIOS/CSM/legacy mode to work correctly. Thus, I can't make any promises about what will work for you.


Which line of Apple Mac hardware is traditionally the most compatible with Ubuntu/Linux?

Here's the deal there is no answer for this question, since you can't back anything up with a fact.

I feel that the Power mac G3 is the best Mac for Ubuntu, but I guess you don't.

My point is that you can't say that "this is better to buy than that", since older models are more likely to have been implemented in Ubuntu. Here's a list of the macs you wanted to buy and the operating systems supported.

Macbook Pro
Macbook Air
iMac

Since you have not stated what version of the Macs you want to buy (new or old) I have to give you the general links.


Problems with User Management - Kubuntu 16.04

Solved by installing kuser package :

sudo apt-get install kuser
sudo kuser

Gives me full access to user and group management


Losing network connection after hibernate

Try restarting your network manager;

Open a terminal window and run the following command:

sudo service network-manager restart

In general keep this command somewhere. It's pretty useful.


where should i start ?

You should start with the apache error log file: /var/log/apache2/error.log


How do I find a command associated with an installed .deb file?

There is really no connection between the package name and programs it installs. As an example, consider the package procps. It provides many tools:
~$ dpkg -L procps | grep /usr/bin
/usr/bin
/usr/bin/free
/usr/bin/pgrep
/usr/bin/pmap
/usr/bin/pwdx
/usr/bin/skill
/usr/bin/slabtop
/usr/bin/tload
/usr/bin/top
/usr/bin/uptime
/usr/bin/vmstat
/usr/bin/w.procps
/usr/bin/watch
/usr/bin/pkill
/usr/bin/snice

...and none of them is called procps.
An even better example is the coreutils package. It's list of executables is too long to post here, but you are welcome to explore.
Consider also that a package doesn't have to install a program. It could be a theme or a bunch of wallpapers.


VLC is a good application for streaming audios and videos. You can download and install vlc using the command:
sudo apt-get install vlc
And you can follow this article, it shows you step by step how you can stream a media on VLC.
Edit :
I got this, it might help you : 3 best apps for Internet streaming.


static IP on vbox bridged network for ubuntu (guest) on ubuntu (host)

IP : 192.168.8.8 netmask: 255.255.255.0 gateway/DNS:192.168.1.1

This is not going to work. Your IP is not in the same subnet than the default gateway. Either use a IP in the correct network (i.e. 192.168.0.8) or change the network mask to 255.255.0.0, whatever is appropriate for your network configuration.

If you give us some working machine configuration we can deduce the correct option.


Ubuntu 12.10 Minecraft Bukkitt Server Settings/Plugins

Use the command line nano or vim editors. Both allow you to edit the config files from the command line. Bukkit config files are located in your server directory and plugin config files are usually located in the SERVER_DIR/plugins/PLUGIN_NAME/directory

Your server directory (place where the craftbukkit.jar) should look something like this
ls -1shgGFB --group-directories-first:

total 13M
   0 drwx------ 1    0 Sep  6 17:28 cache/
4.0K drwx------ 1 4.0K Sep  6 17:45 plugins/
4.0K drwx------ 1 4.0K Sep  6 17:45 world/
4.0K drwx------ 1 4.0K Sep  6 17:45 world_nether/
4.0K drwx------ 1 4.0K Sep  6 17:45 world_the_end/
 512 -rw------- 1  107 Sep  6 17:44 banned-ips.txt
 512 -rw------- 1  107 Sep  6 17:44 banned-players.txt
4.0K -rw------- 1 1.1K Sep  6 17:44 bukkit.yml
 13M -rw------- 1  13M Sep  6 16:01 craftbukkit-1.5.2-R1.0.jar
4.0K -rw------- 1 2.6K Sep  6 17:28 help.yml
   0 -rw------- 1    0 Sep  6 17:44 ops.txt
   0 -rw------- 1    0 Sep  6 17:29 permissions.yml
 44K -rw------- 1  42K Sep  6 17:45 server.log
 512 -rw------- 1  502 Sep  6 17:45 server.properties
4.0K -rw------- 1 1.6K Sep  6 17:44 wepif.yml
   0 -rw------- 1    0 Sep  6 17:28 white-list.txt

and the plugins/ folder in your server folder should look like this, with config folders in their plugin's own folder, for example, Essentials's config file will be at plugins/Essentials/config.yml (filename may vary for each plugin)
ls -1shgGFB --group-directories-first:

total 8.5M
 4.0K drwx------ 1  4.0K Sep  6 17:29 AuthMe/
 4.0K drwx------ 1  4.0K Sep  6 17:45 CraftBook/
 4.0K drwx------ 1  4.0K Sep  6 17:29 Essentials/
    0 drwx------ 1     0 Sep  6 17:29 Jail/
    0 drwx------ 1     0 Sep  6 17:42 Lockette/
    0 drwx------ 1     0 Sep  6 17:28 Modifyworld/
 4.0K drwx------ 1  4.0K Sep  6 17:54 PermissionsEx/
    0 drwx------ 1     0 Sep  6 17:29 PluginMetrics/
    0 drwx------ 1     0 Sep  6 17:28 Simple Prefix/
    0 drwx------ 1     0 Sep  6 17:44 Towny/
    0 drwx------ 1     0 Sep  6 17:45 WorldEdit/
    0 drwx------ 1     0 Sep  6 17:44 WorldGuard/
 224K -rw------- 1  224K Sep  6 17:33 1372097400wpdm_Towny_Advanced.zip
 856K -rw------- 1  856K Sep  6 17:23 AuthMe.jar
1000K -rw------- 1 1000K Sep  6 17:24 CraftBook_3.6.9.zip
 1.1M -rw------- 1  1.1M Jun 20 07:17 CraftBook.jar
  16K -rw------- 1   13K Jun 18 00:21 EssentialsAntiBuild.jar
  12K -rw------- 1   12K Jun 18 00:21 EssentialsChat.jar
 832K -rw------- 1  831K Jun 18 00:21 Essentials.jar
  20K -rw------- 1   18K Jun 18 00:21 EssentialsProtect.jar
  16K -rw------- 1   15K Jun 18 00:21 EssentialsSpawn.jar
 836K -rw------- 1  836K Sep  6 17:23 Essentials.zip
 148K -rw------- 1  146K Sep  6 17:22 Jail.jar
 8.0K -rw------- 1  5.1K Sep  6 16:38 LANBroadcaster.jar
  60K -rw------- 1   57K Sep  6 17:37 Lockette.jar
  28K -rw------- 1   26K Sep  6 17:22 Modifyworld.jar
 176K -rw------- 1  173K Sep  6 17:22 PermissionsEx.jar
  44K -rw------- 1   44K Jun  5  2012 Questioner.jar
  12K -rw------- 1   12K Sep  6 17:23 SimplePrefix.jar
 568K -rw------- 1  568K Sep  6 17:41 Towny_Advanced.zip
 484K -rw------- 1  483K Jun 24 18:52 Towny.jar
 784K -rw------- 1  783K Sep  6 17:43 worldedit-5.5.7.zip
 820K -rw------- 1  817K Jul  2 08:47 WorldEdit.jar
 312K -rw------- 1  310K Sep  6 17:36 worldguard-5.7.5.zip
 320K -rw------- 1  319K May 26 17:19 WorldGuard.jar


The closest thing that I know of is to hibernate the system. Try the following command:

sudo systemctl hibernate

Personally I have one PC that this fails to work on (system restarts as if shut down) and another where this works.

If your system can successfully hibernate, then you'll arrive at the password prompt when you turn it back on, and then the system will start where you left off.


You can assign static names to devices using udev and the mac addresses of the ports.

Create

/etc/udev/rules.d/99-persistent-net.rules

And add:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:69:62:r3:c1", ATTR{type}=="1", NAME="eth1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:25:69:62:r3:c2", ATTR{type}=="1", NAME="eth0"

Making sure to change the mac address to that of your adapters. They can be found with the ifconfig command. Reboot your PC once all that is done.

See for more info:
https://www.freedesktop.org/software/systemd/man/udev.html


simply disable the 3d graphic accelaration in the virtualbox vm settings and it will work.
Put both off 3d and 2d accelaration


If you are bound to using the plain ftp client, you will have to do some scripting. I would use wget instead. It is available for every platform and can do this using a command line option (see -N).


Enable fast startup in Windows 10 without affecting Ubuntu

Technically yes, but there are some important caveats you must be aware of:
If you share any partitions between Windows and Ubuntu, then any writes that you make to the Windows partition while it is in a "Fast Startup" shutdown state can result in data loss, as the partition is not in a "clean" state when the computer is shut down with this mode enabled.
However, if Ubuntu is configured only to read from the NTFS partition, then there is less risk of data loss or corruption. This can be configured in the /etc/fstab file by mounting the NTFS partition with the ro option.
You can find out more about the options for mount via the manual if you would like to share partitions between the two operating systems


Stuck on installing Ubuntu 19.10 on pi with "reached target cloud-init target" as last message

I arrived here with a different context
I install ubuntu server 20.04 in a virtualbox
I agree with the comments saying its not stuck but waiting for the login


Printing PDF file doesn't work on a random basis

I'm only guessing but it may be a bug with the drivers. I had similar driver problems with my networked Epson XP-200 and the problems seemed to disappear over time (and updates), but also seemed to be computer dependent - some ubuntu 12.04 machines did fine while others failed sometimes, only difference being the computer hardware.

Looking at this page your printer seems to have full Debian support, which would mean it would work under Ubuntu. Maybe reinstall the driver manually? There is a .deb file listed there that Ubuntu Software Center would take, probably an installer for the PPD file.

I would think that if the PPD file doesn't work that the print test wouldn't work.

Have fun fidiling around. Just thought I'd add some input.


Why did systemd take up 2.5 gb of my bandwidth?

If you weren't doing any manual updates, there are two possibilities.

Some program of your was doing an automatic update, which used your bandwich.
You have a running process, eg.  auto-backup, netflix auto download ect.; which is using uour internet without your knoweledge.
You can check data ussage per app with many apss, they are listed here: https://www.tecmint.com/linux-network-bandwidth-monitoring-tools/

Hope it helps :)
EDIT ( reply to comment) :
Systemd is a process for running some system services, such as Bluetooth. Most probably you have a setting that makes your computer use internet, such as auto-backup, screen share, file sharing, etc.
It is also possible that some apps (like google account) can use systemd to auto-sync, or update, but I think first think you should do is to check through your settings.


Welcome to ask Ubuntu. 2 things, check the physical components are fine. Try using another device or another cable to be sure it isn't something wrong with them. I had have some problems with my monitor time ago not because the software (I tried with Windows too), but because the VGA receptor of the 2nd Screen was loose and a bit stuck inside.
If this isn't the case, more info about the installation and version would be useful.
Edit: I've just read you already solved the problem by changing the monitor settings. So this may be a bit redundant


I can not execute .bin file in a external usb

As the error states there is no cmap.bin in /media/xavi/Elements/ubuntu_programes/.

Check if the file has the right name:
Change to the directory with cd /media/xavi/Elements/ubuntu_programes/ and list the files with ls -la

If the file has the wrong name change it with:
mv wrongFileName cmap.bin

If it does not exist at all copy it there with:
 cp /path/to/loca/cmap.bin /media/xavi/Elements/ubuntu_programes/cmap.bin


Setting a file types default program to be a Jar file

The solution was to first create a mime type for my custom file format using the answer for this question: https://stackoverflow.com/questions/30931/register-file-extensions-mime-types-in-linux

Then I had to create a .desktop file for my application that looks something like this:

[Desktop Entry]
Name=My Application
Type=Application
Exec=java -jar /path/to/my-application

Finally, I had to register my mimetype with the desktop file by adding the following line to /usr/share/applications/defaults.list:

application/x-my-mime-type=my-application.desktop


Why are multiple versions of python present on Ubuntu 16.04?

Many python application were built using the earlier versions of python and will not work with new python versions. So on Ubuntu these different versions are installed to meet the different requirements of certain programs.

Remember libraries are built using specific python versions so if one is using such a library then the particular python version for that library to work will have to be installed.


Unable to revive computer from suspend mode in Ubuntu 14.04 on Thinkpad

Disable USB 3.0 Mode from BIOS. It worked for me.


TAB key indents entire row instead of only text right of cursor

In Settings -> Configure Kate -> Editing (on the left) -> Indentation (tab) -> Indentation Actions (on the bottom), select "Increase indentation level if in leading blank space".


How do I bind a key to a command on the lock screen?

The scope of lock screen is to lock any user to do something. This mean that you can't run a script in lock screen only if you schedule it to run from before.

Consequently, your shortcut key or any other shortcut will never work when your computer is in lock screen.


The problem with VNC is that in most cases you have at least one firewall between your destination computer and your machine. That's why you are unable to connect unless you are on the same network.

ISPs used to put firewalls on their ends in some cases (eg. mobile internet) but if you use a router to share the internet connection between multiple machines (or just to make it easier to connect) you need to traverse through its firewall.

In an ideal case you have the following setup:

[You]---[Your ISP]---[Internet]---[Remote ISP]---[Remote PC]

In this case (and assuming the ISPs put no restrictions on the connection) you only need to know the Remote PCs IP address.

But usually this is the setup:

[You]---[Your Router]---[Your ISP]---[Internet]
                                          |
   [Remote PC]---[Remote Router]---[Remote ISP]

Now (still assuming the ISPs do not restrict your connection attempts) the Remoter Router's firewall will block you unless you do a port forward on it to the destination machine.

So depending on the remote router you need to create a port forward rule and forward TCP/5900 to the destination PCs TCP/5900 port.

Notes:

It is advised though to change the port on the router to something else to make it harder for anyone to „break into” your grandparent's PC.
There is a problem with dynamic IP addresses (every time the connection is established, usually a new IP address is assigned).
You might be better off with a more flexible solution (e.g. TeamViewer).


You should take the repository offline by stopping either svnserve or Apache.

Then dump the repository content to file using a command like

svnadmin dump repos-folder/ > repos-dumpfile

After that you can split the dump by filtering out the relevant changes by using the svndumpfilter tool. In the example below "my-branch" is the path within the repository that you want to put into a separate repository:

svndumpfilter include my-branch --drop-empty-revs --renumber-revs < repos-dumpfile > branch-dumpfile
svndumpfilter exclude my-branch --drop-empty-revs --renumber-revs < repos-dumpfile > nobranch-dumpfile

Then you can create the empty repositories for the filtered dump files and import the dump data:

svnadmin create repos-branch-folder
svnadmin load --ignore-uuid repos-branch-folder < branch-dumpfile
svnadmin create repos-nobranch-folder
svnadmin load --ignore-uuid repos-nobranch-folder < nobranch-dumpfile

You can find further information in the Repository Maintenance section of the excellent Subversion Book.


How can I get the source code of a command?

For commands that are actually present on the system, the query mode of dpkg is often helpful: either dpkg -S or (equivalently) dpkg-query -S e.g.

$ dpkg-query -S $(which reset)
ncurses-bin: /usr/bin/reset

For querying the contents of packages that are not already installed, there is the apt-file utility (not installed by default, but available from the Universe repository)

$ apt-file search -x '/reset$'
crossfire-common: /usr/share/games/crossfire/wizhelp/reset
hybserv: /usr/share/hybserv/help/chanserv/level/reset
ncurses-bin: /usr/bin/reset
ns2-examples: /usr/share/doc/ns2/examples/tcl/test/test-output-tcpReset/reset

Alternatively, you can search at http://packages.ubuntu.com/ either by package name or contents.

To actually obtain the package's source code once you have identified it, see How do I get and modify the source code of packages installed through apt-get?


Two ubuntu boxes w/ AMD graphics different glxgears framerates

Thanks to @Pilot6: vertical sync was on and is disabled for AMD APU with command:
vblank_mode=0 glxgears


Installing/configuring mysql server nightmare

To perform a clean reinstall:

sudo killall mysqld
sudo apt-get purge mysql-common
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get install mysql-server

Then

mysql -u root -p

Enter the configured password.


I tried this and it worked fine:

sudo apt-get --purge remove apache2*
sudo apt-get --purge autoremove
sudo apt-get install apache2

Thanks pa4080!


It's a programming language that gets compiled into C (see Wikipedia). This is the first time I've seen it being used - cool :)

If you install valac from synaptic or the Software Centre you should get past that check.


How I can install Mate 1.10 on Ubuntu Mate 15.04?

Currently? There are no packages in the PPAs for Mate 1.10

ppa:ubuntu-mate-dev/ppa
ppa:ubuntu-mate-dev/vivid-mate

So you have to compile the packages itself. You can download the source archives from here or clone the repository from here.

Usually you need an additionally PPA for Vivid:

sudo apt-add-repository ppa:ubuntu-mate-dev/ppa
sudo apt-add-repository ppa:ubuntu-mate-dev/vivid-mate

Sorry to be the harbinger of bad news ;)


Ubuntu Studio 20.10 can't change workspace with keyboard shortcut

From https://help.ubuntu.com/stable/ubuntu-help/shell-workspaces-switch.html.en

Switch between workspaces
Using the mouse:

Open the Activities overview.
Click on a workspace in the workspace selector on the right side of
the screen to view the open windows on that workspace.
Click on any window thumbnail to activate the workspace.

Using the keyboard:

Press Super+Page Up or Ctrl+Alt+Up to move to the workspace shown
above the current workspace in the workspace selector.
Press Super+Page Down or Ctrl+Alt+Down to move to the workspace
shown below the current workspace in the workspace selector.

If you have other sources where you got the shortcuts, you may post it as a reference.


Problem with localhost when installing utorrent.

In Linux systems, uTorrent runs as a webserver. The server must be started and you will need a web browser to connect to it. I’ll recommend other torrent clients for Ubuntu.

press Ctrl+Alt+T on your keyboard to open Terminal. Paste the following code and hit Enter.

wget http://download.utorrent.com/linux/utorrent-server-3.0-25053.tar.gz

Next, run the commands below to extract uTorrent files to the /opt directory.

sudo tar xvzf utorrent-server-3.0-25053.tar.gz -C /opt/

Then run the below commands to change the permission on uTorrent-server folder.

sudo chmod -R 777 /opt/utorrent-server-v3_0/

Next, run the commands below to link uTorrent server to the /user/bin directory.

sudo ln -s /opt/utorrent-server-v3_0/utserver /usr/bin/utserver

Finally, run the commands below to start uTorrent.

utserver -settingspath /opt/utorrent-server-v3_0/

If you get an error about libssl or any other error.so package missing, run the commands below to install it, then try starting it again.

sudo apt-get install libssl0.9.8:i386

Open your web browser (Firefox) and type :

localhost:8080/gui/

The username is admin and leave the password field empty.

Hope it will solve your problem ...


You have not provided enough information so that we can help you. If you are having problem with your CD then you can try booting with your pen drive. For this just download Unetbootin which is available for free. And you can make Pen drive bootable instead of doing from cd.


Ubuntu 18.04 USB mouse does not work after boot from a powered off state: can't read configurations, error -71

This removes the mouse. If you run the above command by mistake, run this: sudo modprobe -a psmouse


Dual boot Windows 10 and Ubuntu 18.04 freezes at shutdown

This worked for me - https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/+bug/1756226/comments/20

Using Asus ROG GL752-VW, NVIDIA® GeForce® GTX 960M. Also currently using nvidia-driver-390 instead of Nouveau. Running dual booted Win10 and Ubuntu Mate 18.04.