Rhythmbox not saving imported files & other issues

Rhythmbox doesn't copy your music to a different folder when you add files to your library. It stores the reference to the file you added, and some of the information from its ID3 tags, and that is all. If you added a bunch of files on an external disk, then unmounted the disk, the tracks will be hidden from the library view, and will show up under the "Missing files" source that will appear in the left hand panel.

The "multiple locations set" for the library folder is because purchased music from Ubuntu One gets downloaded to a separate folder, and not in the Music folder, so the plug-in adds the correct location to the library locations list. The otherwise standard default location, is your standard "Music" folder. If you pick a different location, then the new location will be used, and the Ubuntu One extension will ensure its location is also added to the list. However, as I already said, Rhythmbox does not copy music over to another directory when you import it.

The Cover Art Search plug-in will search for album art using last.fm, and cache it locally. It will also look inside the tags in the music file. If it can't find art for the song, it won't display it.

If you drag a song from your iPod to the "Music" library in Rhythmbox, then it will copy that file to your local music library folder. It does this because it knows the iPod is a music player. It doesn't do this for simple external disk drives, though.


I think best opensource tool backup will be "rsync". It has the feature to do incremental backups.You can use grsync as it's front end.


From http://major.io/2010/12/14/mounting-a-raw-partition-file-made-with-dd-or-dd_rescue-in-linux/, there's a suggestion to use an offset. First obtain the offset via fdisk(8) and then specify it with the offset option to mount. Use fdisk to determine the starting sector of the partition and the sector size. Then calculate offset in bytes using the starting sector number and sector size in bytes. See Mount single partition from image of entire disk (device) for an example.
Finally:

mount -o offset=<offset in bytes> nps-2010-emails.dd /media/manu/

In a typical hard disk, the cells holding the data are grouped. The groupings are called sectors. The way we usually partition things, the first few sectors are kept aside for giving information about the partitions, leaving a gap. So if we have an image of an entire disk, these sectors also get included. Now, the mount command cannot directly start at the first byte, as the partition doesn't start at the first byte. So, we will have to tell mount how many bytes to skip (so that it can avoid the extra information)and get to the actual partition. This is called the offset. Now each sector can store a certain amount of information in bytes, which is called the size of a sector. We take the total size of information that can be stored in this gap by multiplying the size of a sector, with the size of the gap in number of sectors.

From the output of fdisk there, you can see the sector size is 512 bytes and it starts at sector 1. So the offset is 1*512=512. Try the following command:

mount -t vfat -o offset=512 ps-2010-emails.dd /media/manu/

I added the filesystem type since fdisk gave it as FAT32. To mount it for writing as well, use -o offset=512,rw instead.


Ubuntu Server, How to read information after entering a command

You are asking for what is called a pager. less is one prominent example of a pager. Try
samba-tool drs showrepl | less

When done, simply press q (as in quit).


actually I think, your 50-default.conf file is read before this file, which causes your logs to be written in the syslog file.

Specify this in the 50-default.conf file, before the line,

*.*;auth,authpriv.none          /var/log/syslog

That should work.


Chrome indicator not being displayed in the system tray anymore

Start Chrome again and right click on the icon in the system tray. In the opening menu activate the background process.


Backspace not working in ubuntu terminal

As I think your Del, Tab and arrow keys also didn't work. If you did echo $0 and you see /bin/sh then you need to set your your shell to /bin/bash instead. So run chsh -s /bin/bash to change your login shell to bash and check again your keys(Backspace, Del, Tab and arrow keys) if fixed.

Or you can make sure that your TTY is configured with the right characters by checking the output of stty -a, and setting the erase character to match what's being sent with stty erase ^?.

If you run stty -a | grep -w erase, you will see something like this:

  intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?;
  eol2 = M-^?;

If that is different changing login shell to bash solve your problem but if didn't solve you can run stty erase ^? to solve the problem and also did the same for your another keys(Del, Tab, Arrow keys).


You have to remove local libraries with
sudo rm /usr/local/lib/libpangocairo-1.0.so.0
sudo rm /usr/local/lib/libpango-1.0.so.0
sudo rm /usr/local/lib/libpangoft2-1.0.so.0

and then try to launch Nautilus.


Error while compiling OpenCV in Ubuntu 14.04

Earlier I had downloaded the source as a zip file from the link on opencv website, this failed to build with the above error.

I checked out the source using git and followed the instructions from http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html

I still got the same errors, found this solution as a work around. you need to add -lv4l2 to the file mentioned in the link below

http://code.opencv.org/issues/3726


"Easy" is a relative term. It would not be too difficult, the basics are on this page

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

In your case, the changes are fairly minimal.

Extract the iso and filesystem.squashfs (as outlined in the above link)

Copy your new kernel to casper/vmlinux (over write the old kernel).

# Assuming you are following the above link
cp your_kernel ~/extract-cd/casper/vmlinuz

Copy your kernel modules to the extracted squashfs , to lib/modules (you can delete the old modules).

# Assuming you are following the above link
cp -R /lib/modules/your_custom_kernel ~/edit/lib/modules

Extract the old initramfs, here I will use ~/initrd as a build directory

mkdir ~/initrd
cd ~/initrd
lzma -dc -S .lz casper/initrd.lz | cpio -imvd --no-absolute-filenames

Copy your lib/modules to the initrd lib/modules (you can delete the old modules)

cp -R /lib/modules/your_custom_kernel ~/initrd/lib/modules

Package the initrd

find . | cpio --quiet --dereference -o -H newc | lzma -7 > ../cusotm.initrd.lz

Over-write the old initrd

cp ~/cusotm.initrd.lz ~/extract-cd/casper/initrd.lz

Now re-package the iso

https://help.ubuntu.com/community/LiveCDCustomization#Producing_the_CD_image


How do I get involved with testing and QA with Ubuntu?

The QA team does extensive automated testing - it's part of the requirements for hardware to get Ubuntu certified.

The project they use is Checkbox.  Don't be fooled by the quite cut-down version shipped in the checkbox-gtk package - the full suite contains a huge range of tests.

The Ubuntu QA mailing list is where you want to go for checkbox questions, or to discuss merge requests. This link discusses about the complete set of tools used by the QA team for automation.


Ubuntu 10.04 - VM - Wireless card (wlan0)

If you are using Oracle VM VirtualBox I afraid that you will have to have a USB wireless adapter to do so.

This is the only way I could expose my Wireless Adapter directly to the VM and here is why;

VirtualBox -or any other type 2 hypervisor (type 2 is a virtualization application that is installed inside an Operating system like VirtualBox, VMWare Workstation.... Where type 1 is a baremetal hypervisor installed directly on the hardware, e.g.Xen Server, VM Ware ESX/ESXi.... Etc
For type 2 hypervisors, when you add a virtual network interface. It actually creates a virtual interface inside the VM and Do Not expose your actual hardware to the VM.
However, for USB devices -and speaking specifically on VirtualBox. It can map the device directly to the VM (this include USB wireless card, USB Drive, USB keyboard and mouse, USB WebCam....etc)

-please note that this option will make this USB device unusable for the host operating system.


Opening a Gtk.Window that covers Launcher and Panel

Edit your window roll. You can use ccsm to force window rolls, but your going to have to play with them to get ones that will work.

You could also auto-hide the sidebar, but that does nothing for the top panel.

Other then that it's not really going to happen though. You wouldn't want to not be able to reach your panel/side bar ever.


Why does `sudo passwd root` reset my root password? Is this a security risk?

First of all, sudo executes commands as root, so resetting the actual root password while accessing as root to begin with usually isn't a problem. You already have root access through sudo, so there's little change. (This assumes you don't have a setup that restricts user commands but allows them to sudo passwd ... But that's a configuration issue.)

Secondly, in order to remotely infiltrate a PC through the use of sudo passwd, you would have to a) trick the user into giving you the user password one way or another (which, again, gives sudo access just as well), or b) have physical access to the machine, in which case "remote" probably isn't so true anymore.

So, no, there is no direct security risk. Certain (but uncommon and illogical) configurations may create a loophole there, but that's it.


How to free the memory occupied by a particular process?

You simply need to terminate all those processes, as they're still somehow running in background.

Either use the System Monitor to end them, or run in a terminal:

killall chromedriver geckodriver

If that does not manage to terminate the processes (semi-) gracefully because they're stuck badly, you can forcefully kill them instead with

killall -KILL chromedriver geckodriver


Ubuntu 18.04 No Sound after reboot until I run pactl load-module command?

You can add the command in your Startup Applications.

To do that, press Super to open the Activities Overview and search for Startup Applications (no need to type the whole name, the first few letters will be enough). Then click Add and enter a name for your startup command, the command and a comment (if you wish), as shown in the following screenshot.

The command should now run automatically after rebooting and your sound output should be the correct one.


Converting a range of IPv4 addresses to netmasks using bash

First you will need to install a package to do the conversion

sudo apt install ipcalc

Now you can do it with this little script (please note that it doesn't work if you quote the variable):

$ while read line; do if [[ $line = *-* ]]; then (ipcalc $line | sed '2!d'); else echo $line; fi; done < file
94.228.16.0/21
94.241.136.0/24
94.241.136.0/24
94.29.128.0/17
94.29.128.0/19
94.29.192.0/19
94.74.181.0/24
94.74.181.0/27
94.74.181.128/25

or more readably

while read line; do
   if [[ $line = *-* ]]; then
     (ipcalc $line | sed '2!d')
   else echo $line
   fi
done < file


(Lenovo x260 with Kubuntu 20.04) CPU stuck at 400MHz randomly CPU load at 100% - current CPU frequency: 400 MHz (asserted by call to kernel)

I had the same exact problem on a Dell Latitude 7490; frequency getting stuck/pinned at 400Mhz randomly, sometimes after resume from suspend on battery, or when unplugging AC adapter. The problem also doesn't disappear with a hot reboot. I must power off the machine completely and turn it back on, or re-plug in the AC adapter.
When the problem occurred, I did a hot-reboot to windows (as I am dual booting Kubuntu 20.04 and Windows 10), and found that windows 10 was also stuck at 400mhz frequency.
Finally it became apparent that is a hardware or firmware related issue.
Latest BIOS as of date (BIOS dated feb 2021)
Did an RTC reset (RealTime Clock reset) as recommended in another post by dell but the problem comes back occasionally when unplugging AC Adapter.
disabled C-states and Intel Speed Shift (leaving only SpeedStep enabled)  in the BIOS, also problem still happening occasionally, so I re-enabled them.
Finally, I was able to find a software based workaround that doesn't require re-plugging in of AC adapter or cold boot.
Create script called cpufix in your path:
$ sudo nano /usr/local/bin/cpufix

with the following content:
#!/bin/bash

# Determinate CPU capabilities
MAX_CPU=$(cpupower frequency-info -l | tail -n1 | cut -d' ' -f2)

# Disable "BD PROCHOT"
wrmsr -a 0x1FC 262238;

# Set and apply frequencies
cpupower frequency-set \
  -d $(expr $MAX_CPU / 4) \
  -u $MAX_CPU \
  -r \
  -g powersave;

Then set it as executable:
$ sudo chmod +x /usr/local/bin/cpufix

You can also change "powersave" in the last line above to "performance" if you want higher performance rather than normal powersaving profile when on battery operation.
When the issue occurs and you're pinned at 400Mhz frequency, just run:
$ sudo cpufix

In Windows (if you also dual boot), you can do similar with "Throttlestop" program, and uncheck the "BD PROCHOT" checkbox if it is checked (which is likely what happens when your CPU gets pinned at 400Mhz due to manufacturer firmware issue)


Ubuntu 16.04: No launcher, no panel, unity problem (after installing themes)

I had the same problem, after a simple update apparently.
"reset compiz" and "setsid unity" didn't work either.
Inspired by the "method" above, I typed :

cd .cache
mv configcompiz-1 configcompiz-1_oops

then I rebooted and now it works : panel and launcher are back !
Thanks to you !


How to control cron in Ubuntu 16.04 LTS?

Since there is as of yet no GUI-based cron controller available for Ubuntu 16.04, we must go back to the old-school methods which always work - do it from the command line:

Official Ubuntu documentation:  CronHowto

Selected excerpts:

  For guidance, you can always use

man crontab

  To edit your cron programs use this command:

 crontab -e

From the man page:

  Crontab Lines

  Each line has five time-and-date fields, followed by a command, followed by a newline character ('\n'). The fields are separated by spaces. The five time-and-date fields cannot contain spaces. The five time-and-date fields are as follows: minute (0-59), hour (0-23, 0 = midnight), day (1-31), month (1-12), weekday (0-6, 0 = Sunday).

01 04 1 1 1 /usr/bin/somedirectory/somecommand

  The above example will run /usr/bin/somedirectory/somecommand at 4:01am on January 1st plus every Monday in January.

  An asterisk (*) can be used so that every instance (every hour, every weekday, every month, etc.) of a time period is used.

01 04 * * * /usr/bin/somedirectory/somecommand

  The above example will run /usr/bin/somedirectory/somecommand at 4:01am on every day of every month.

  Comma-separated values can be used to run more than one instance of a particular command within a time period. Dash-separated values can be used to run a command continuously.

01,31 04,05 1-15 1,6 * /usr/bin/somedirectory/somecommand

  The above example will run /usr/bin/somedirectory/somecommand at 01 and 31 past the hours of 4:00am and 5:00am on the 1st through the 15th of every January and June.

  The "/usr/bin/somedirectory/somecommand" text in the above examples indicates the task which will be run at the specified times. It is recommended that you use the full path to the desired commands as shown in the above examples. Enter which somecommand in the terminal to find the full path to somecommand. The crontab will begin running as soon as it is properly edited and saved.

  You may want to run a script some number of times per time unit. For example if you want to run it every 10 minutes use the following crontab entry (runs on minutes divisible by 10: 0, 10, 20, 30, etc.)

*/10 * * * * /usr/bin/somedirectory/somecommand

  which is also equivalent to the more cumbersome

0,10,20,30,40,50 * * * * /usr/bin/somedirectory/somecommand

  Cron also offers some special strings, which can be used in place of the five time-and-date fields:

  @reboot - Run once, at startup.

  @yearly  - Run once a year, "0 0 1 1 *".

  @annually  - (same as @yearly)

  @monthly  - Run once a month, "0 0 1 * *".

  @weekly  - Run once a week, "0 0 * * 0".

  @daily  - Run once a day, "0 0 * * *".

  @midnight    - (same as @daily)

  @hourly     - Run once an hour, "0 * * * *".

Note that all cron jobs begin in the user's $HOME directory, so it is advisable to use fully-qualified pathnames both in the cron program and in your scripts.


Input Method in Ubuntu 18.04 shows "Current configuration for the input method:" dialog

That window is about configuration of advanced input methods, and it is for information only. If you want to change something - e.g. switch from IBus to some other input method framework - you need to click OK to proceed.

If you searched for "keyboard", you were possibly looking for something in the Settings menu.


Great question.

There is currently an on-going community effort to create what is currently dubbed as TurnKey master server. In a nutshell it aims to provide exactly what you are looking for, but nothing official has yet been released - we are still in experimentation mode.

Several community developers are exploring different technologies, such as Proxmox OpenVZ and PHPVirtualBox (alpha-testing TKLPatch and ISO's available).

It would be great to get feedback and ideas if you have them.


How could Chinese users pay for an app in software center?

[You can buy Braid from  their official website using Amazon or Google Payment method (and of course Paypal).  Maybe if you share what methods of payment are availble to you in the question stem we could help better.


You cannot configure items to be at the bottom of the launcher, no. The separation is part of the design, and implemented in the code directly without a configuration option.


How to Pull/Build parts after updating stage-packages/snapcraft.yaml file without deleting old cache, snapcraft?

As you know, you tell snapcraft how to build using a collection of parts. On each part, you have the option of using stage-packages, which is essentially saying "the contents of these debs and their dependencies should be included along with this part." Those packages might just be some data or libs needed at run time, or they might be something needed at build (or even pull!) time. In order to enable stage packages that are needed at pull or build time, snapcraft downloads and unpacks them in the pull step. This means that, if you add a new stage package to a part which has already been pulled, you must pull it again.

Granted, snapcraft should know that you added a stage package which makes the pull step of that part out of date. It currently doesn't (as you noted), but it will in 2.23.

If the stage package isn't actually needed for that part (or only needed at run time) and you really don't want to re-pull (and re-build) the part in question, you might consider splitting the new stage packages out into another, independent part:

extra-debs:
  plugin: nil
  stage-packages: [foo]


How to remove medibuntu repository and packages?

Just as a warning, I have not tested these commands, but I cannot see how they could fail. If they did fail, please let me know and I'll update the answer.

Run these commands in a terminal:

sudo apt-get purge medibuntu-keyring
sudo rm /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update

Notice that this will only disable the repository! If you want to remove the packages you installed from that repository, you can use this command:

PKGS=$(dpkg -l | awk '{print $2}' | grep -e aacgain -e aacplusenc -e acroread-fonts -e alsa-firmware -e app-install-data-medibuntu -e apport-hooks-medibuntu -e hot-babe -e ices -e libavcodec-extra-53 -e libavdevice-extra-53 -e libav-extra-dbg -e libavfilter-extra-2 -e libavformat-extra-53 -e libavutil-extra-51 -e libdvdcss2 -e libdvdcss-dev -e libpostproc-extra-52 -e libswscale-extra-2 -e medibuntu-keyring -e mencoder -e mplayer-dbg -e mplayer-doc -e mplayer-gui -e mplayer -e non-free-codecs -e rmconverter -e w32codecs -e w64codecs | tr '\n' ' '); sudo apt-get purge $PKGS

Hope this helps!


how do i install an older version of Audacity?

The safest way to install an older version of Audacity is to download its .deb file from Ubuntu Packages Search or from an official Ubuntu Launchpad website. You can select the version of Audacity from a list of Audacity versions at Audacity in Launchpad.
Don't try to immediately install this .deb file! Before you install the .deb file that you downloaded simulate the installation in order to check if there are any unmet dependencies with the following command.
apt install --simulate ./package-name.deb # This command does not require sudo.
where package-name.deb should be replaced by the name of a .deb file located in the current directory that you are trying to install.
If the command shows additional unmet dependencies then refer to this answer for information about how to manually download and install them. If the above command is successful then run the following command to install the older version Audacity .deb file that you downloaded.
sudo apt install ./package-name.deb


I think you need samba

Samba is an implementation of the Server Message Block (SMB)/Common Internet File System (CIFS) protocol for Unix systems, providing support for cross-platform file and printer sharing with Microsoft Windows, OS X, and other Unix systems.

https://help.ubuntu.com/community/Samba?action=show&redirect=SettingUpSamba


Why there is an update-initramfs error when removing a kernel by dpkg?

When purging a linux-image-extra package, post installation scripts are  run, since the main linux-image package of that kernel release may be left remaining in system: The respective initrd.img will be altered not to contain the extra's stuff; its size will decrease as a result of this process. However, the old initrd.img file is not removed in "/boot" and the new one is created beside it in "/boot" during this process, so there is a risk of running out of space.

The fix could be to create the new initrg.img file in different partition before replacing the old one by it in update-initramfs. So the update-initramfs script should be fixed.

A workaround would be to remove the respective versioned /boot/initrd.img file before running dpkg --purge for the linux-image-extra package. That could also be done by sudo update-initramfs -d -k 3.13.0-112-generic in this case, as the kernel I was removing was "3.13.0-112-generic".


Problem setting keyboard shortcuts after upgrade to Saucy

Never mind, there's already a bug report on Launcpad.

Apparently, combinations containing an alphanumeric character work.


This is not an error, you just need to add @property to the line above the title_txt method. So, your code should look like this:

@property
def title_text(self):
    return self.ui.entry1.get_text()

This should be placed in the SaveDialog class in the SaveDialog.py file. You can find out about @property and its usage here.


Ubuntu permission denied when running as a daemon

My problem ended up being rack itself.
Turns out (as explained here) that rack, when run with the rackup -D command (as a daemon) changes the working dir to /.


Might be a little bit late but:

Create the array using the block devices and not the file systems:

mdadm --create --verbose /dev/md0 --level=raid1 --raid-devices=2 /dev/sdb /dev/sdd
Create the partition on the newly created block device.

I don't suspect there is really a performance difference between the two methods, but using the block devices just seems better suited.


Ubuntu Openstack: Does the default Landscape Installer provide High Availibilty

The currently released version does not support HA. That's coming shortly in an upcoming release.


Dual monitor started to flicker after upgrade to 16.04

Finally, only the solution I found was revert back to older kernel 4.2.xxxx. All the newer kernels I have tried are causing abovementioned troubles for me.


How to add an option to create a new file with a specific extension in right click menu

You may want to use Templates directory (or how is called in your language) from your home directory in this sense. Files from this folder will appear in the New Document menu. So, add the files with the extension what you want in this folder and you can create them after files with the same extension from the right click menu:

Moreover, if you add some predefined text in these files from Templates folder, the new files which you will create them from the right click menu will contain that text.

See also: What is the "Templates" folder in the home directory for?


Is it possible to install gnome-shell extended places extension in 12.04

If I remember right there are at least two extensions for places.

I dont know if this extension will fullfill your needs but I quickly found this extension

https://extensions.gnome.org/extension/8/places-status-indicator/

and there was another similar extension more (i didnt found it in my quick serch)


Install Unity 2d as default to save much needed resources

In Oneiric Unity 2D is the fall back mode. If the hardware is not capable of running Unity 3D then Unity 2D is installed. You may find that the video drivers that come with the installation are capable of running your video card in 3D. In this case Unity 3D will be installed. I think this happened when I installed 11.10 alpha four months ago.

In this case you need to open the Ubuntu Software Center and search for Unity 2D and install the four parts of Unity 2D. Then reboot and at the login screen after you have clicked on your user name you will see a menu with the option to load into Unity 2D. Ubuntu in that menu is Unity 3D.

The login manager will usually load the last chosen mode. So, next time you boot you will already be set up to run the Unity 2D desktop.

On my system I have set myself up as two different users so I can switch between 3D and 2D without rebooting. I wanted to compare the two setups. You might find that useful.

Correction: In the menu Ubuntu is Unity 3D and Ubuntu 2D is Unity 2D. I have just tested the accuracy of my reply.

Regards.


Error when running ./configure on Ubiquity source

Install libcheese-gtk-dev, and it'll work. Also, when building from source, it's a good idea to run apt-get build-dep <package-name> before building from source a package that is also available in the repositories (including any third-party repositories you have activated). This will pull in all the packages upon which the building of the package is dependent. Thanks to Jorge Castro's comment and andrewsomething's answer for this.


Installation auto-triggers after every apt-get command

You got the package(s) partially installed.
Do this

sudo apt-get purge oracle-java8-installer
sudo add-apt-repository --remove ppa:webupd8team/java


edit nanorc file and enable spell checker.

sudo vi /etc/nanorc

and uncomment the line

set speller "aspell -x -c"


http://power2build.wordpress.com/2013/02/02/ubuntu-in-action-ndas/
http://ubuntuforums.org/showthread.php?t=2150780

with kind regards,
~remke
The Netherlands


Installing Nvidia Drivers on 13.04 and Removing Loading Choice Screen on Startup

The windows boot manager resides on a separate small partition (around 100mb). Most probably that partition is not deleted that is why the entry is listed.

There are multiple solution :

Most easy one if you are not installing any other OS :

Open a terminal, type sudo gedit /etc/default/grub
At bottom add GRUB_DISABLE_OS_PROBER=true (this will disable other os search function)
Save and close the file.
run sudo update-grub

Change Time for which the menu is shown

Open a terminal, type sudo gedit /etc/default/grub
Search and Change GRUB_TIMEOUT= value to 0. It will be GRUB_TIMEOUT=0
Save and close the file.
run sudo update-grub

After doing above if you need grub for some cause (like for booting older kernel), press shift while booting to get GRUB menu


Can't pass file containing whitespace as command-line argument to SMS-sending Python script in Ubuntu Touch in Ubuntu Touch

Use double quotes to wrap the command substitution. Also either use single quotes or use double quotes in the echo command, there's no need to use both:

echo 'iorem ipsum est' > textfile
/usr/share/ofono/scripts/send-sms /ril_0 07123456789 "$(cat textfile)" 0


Download Ubuntu 11.10 with all update and upgrade

Easy answer - you don't. The LTS LiveCD is updated once every half-year, and the normal versions are made once and then left that way unless something very extraordinary shows up.

Intermediate answer - By installing from the MinimalCD (quite a lot more advanced than using the LiveCD, but it should give you the latest) you'll get the latest when installing. https://help.ubuntu.com/community/Installation/MinimalCD


How to get the location of config file used by mailutils

Short answer – the config file is:

/etc/mailutils.rc

As described in documentation the main site-wide configuration file is:

<SYSCONFDIR>/mailutils.rc

To get the SYSCONFDIR of mailutils execute the commands below:

> sudo apt-get install libmailutils-dev
> mailutils-config --info sysconfdir
SYSCONFDIR=/etc

If this file does not exist - create it.

Same for all mailutils binaries, e.g.

> mail.mailutils --show-config-options | grep SYSCONFDIR
SYSCONFDIR=/etc     - System configuration directory

More about the correct configuration here.


In setting up dual Boot with Windows and Ubuntu, which OS do I install first?

The Windows bootloader is very fussy and does NOT work well with other operating systems - it ignores them when installing and will overwrite their bootloader if it is installed in the MBR (master boot record) already. Installing Windows second makes it harder to get back into a workable grub menu.

So the recommended solution is to install Windows first, then install Ubuntu which shouldn't create conflicts in the MBR.

If you install Ubuntu first, then Windows, the MBR will have problems when installing service packs for example. Upon reboot, the system may fail or not boot at all, sometimes the SP updates will fail altogether and lead to instability. Then you will have to reboot into repair/command line to repair the MBR (the command FIXMBR). Then re-install GRUB everytime there is a significant Windows Update (not all updates are affected by this)!

A simple partition set-up could look like:

Partition 1: Windows XP
Partition 2: Free Space
Partition 3: Extended Partition (rest of disk)
Partition 4:   Swap
Partition 5:   Root
Partition 6:   Home

Partitions 4-6 are inside the extended partition. By having your Ubuntu installation inside an extended partition means it will boot from the extended partition and not / "root". Though it's up to you whether or not you want an extended partition.

It doesn't really matter where you do the partitioning as long as it gets done. To start with, you could install Windows and just partition what it needs, leaving the rest of the disk un-partitioned. Then when you install Ubuntu, partition the rest of the disk as needed.

Or do it all in one fell swoop with a partition boot disk like gparted for example.


There’s a pretty good walk-through on the downloads page. This will show you how to burn a CD or prep a USB stick and go through the install process. Welcome to Ubuntu


Excluding certain folders within a directory from being copied in a copy of the directory

You can implement it like that:

tar the original folder (excluding the folder you don't want to backup)

tar czf jenkinsBackup_$(date +%Y%m%d-%H%M%S).tar.gz --exclude=dir_to_exclude *
cd to the destination folder
Extract the tar file in the destination folder
Backup the tar file
Remove the original folder

In order to remove the original folder excluding some folders/files you can use the following method take from SO Q&A

find . -type 'f' | grep -v "NameToExclude" | xargs rm
find . -type 'd' | grep -v "NameToExclude" | xargs rmdir

In your case, if you want to exclude two directories (.ssh and secret), you can use:

find . -type 'f' | xargs rm
find . -type 'd' | grep -v ".ssh" | grep -v "secret"| xargs rmdir

  man tar

--exclude=PATTERN
    exclude files, given as a PATTERN


How to unmark 'allow executing file as program' for all files with the same extension

The solution is the following for .txt files, the extension can be changed; also 664 permission can be changed to 660 to forbid file access to others:

find . -name  \*.txt -exec chmod 664 '{}' \;


Looking at the parts of the video, the person is using a slightly older version of Ubuntu with GNOME 3 desktop. The Window theme appears to be the default Ambiance theme - the window buttons you see on the Chromium windows is a thing Chrome can do to its own windows:

The theme for the editor as well is probably individual to that program.

Ambiance should be available by default on Ubuntu (if not installed, you can install the light-themes package with sudo apt-get install light-themes). If you want to use it with GNOME Shell 3.12+ or the newer GTK apps that come with it, this may help
The Desktop looks like the GNOME 3 Shell, probably before 3.10 (when they merged the menus). It has the default annoying dark theme.
The icon theme looks like the default Humanity theme or similar.
There many similar wallpapers available (e.g. this one, a low quality version of the one from the video can be found here.


Problem in installing matplotlib ubuntu 16.04

Check in Software & Updates -> Ubuntu Software tab that the 2nd software source universe is enabled.

The currently supported releases of Ubuntu are 14.04, 16.04 and 17.10. If you are not running a currently supported release, see the answers to this question: How to install software or upgrade from an old unsupported release?.

Matplotlib is available in the default Ubuntu repositories in all currently supported versions of Ubuntu. To install Matplotlib open the terminal and type:
sudo apt update
sudo apt upgrade
sudo apt install python-matplotlib # for Python 2.x in 18.04 and earlier

or
sudo apt update
sudo apt upgrade
sudo apt install python3-matplotlib # for Python 3.x

Other related packages are python-matplotlib-data python-matplotlib-dbg python-matplotlib-doc and python-matplotlib-venn for Python 2.x and python3-matplotlib-dbg python3-matplotlib-venn for Python 3.x.


Bluetooth dbus error, can't send or receive files from computer / or share internet connection

When in doubt, purge it out... to solve the problem above I did the following:

sudo apt-get remove --purge bluez bluez-alsa bluez-audio bluez-btsco
bluez-compat bluez-cups bluez-dbg bluez-gstreamer bluez-hcidump
bluez-pcmcia-support bluez-tools bluez-utils python-bluez bluewho
indicator-bluetooth libbluetooth-dev  libgnome-bluetooth11
libbluetooth3

sudo apt-get remove --purge blueman

sudo reboot

sudo apt-get install bluez bluez-alsa bluez-audio bluez-btsco
bluez-compat bluez-cups bluez-dbg bluez-gstreamer bluez-hcidump
bluez-pcmcia-support bluez-tools bluez-utils python-bluez bluewho
indicator-bluetooth libbluetooth-dev  libgnome-bluetooth11
libbluetooth3

sudo reboot

sudo apt-get install network-manager network-manager-openvpn

sudo start network-manager

sudo apt-get install network-manager-gnome

sudo reboot

sudo apt-get install gnome-user-share

I believe that blueman had a bug causing the issue.  So without blueman at all I can send and receive files between my phone and computer and share my phone wifi connection (it's stronger than my netcard).


chef server version for ubuntu 12.04, 32 bit

To download the 32Bit file.

To install Chef version 11.4.4-2 32bit on Ubuntu 12.04, you need to run the omnibus installer

Before completing the steps described by the omnibus installer, make sure that you install curl:

sudo apt-get install curl
curl -L http://www.opscode.com/chef/install.sh | sudo bash

For complete instructions see the Omnibus Installer

Another way of installing chef:  Take a look at Simple Steps to Install Chef on Ubuntu 12.04

Source: Opscode


Setting default path when opening a terminal session

Just run the following command in your terminal:

echo "cd ~/Desktop/Java\ Files" >> ~/.bashrc

The above command will add a new line in your ~/.bashrc file that contain cd ~/Desktop/Java\ Files and that will change your default working directory to /home/Varun/Desktop/Java Files when you will open the terminal.

Reopen the terminal and you will see the difference.


how to make any digital pen work in ubuntu 14.04?

I did some snooping around and was also unable to find anything Linux related with this device.  There is no such thing as an OS-generic driver, since drivers are OS-dependent.

If you really want to use this pen with ubuntu, you might try WINE (https://www.winehq.org)

With WINE, you can run Windows programs just like Ubuntu programs.  That ought to do it nicely.  If not, try to get a refund.


How I turn off backlight around switcher icons

You can replace the background image for the launchers with a transparent one. In a terminal, run the following (this is for Ubuntu 12.04, in 11.10 you'd change the path to say 4 instead of 5. For ubuntu 14.04 see the comments  below):

Backup the original:

sudo cp /usr/share/unity/5/launcher_icon_back_150.png{,.back}

Edit the file:

gimp /usr/share/unity/5/launcher_icon_back_150.png

In GIMP, press Ctrl+A to select everything. Then Del to remove it. Hit Shift+Ctrl+S to save it as a new picture to, e.g., /home/launcher_icon_back_150.png, and finally press Ctrl+Q to quit.
Move the new image to the right place:

sudo mv /home/launcher_icon_back_150.png /usr/share/unity/5/

Log out and back in.
If you want to go back, simply run:

sudo mv /usr/share/unity/5/launcher_icon_back_150.png{.back,}

and log out and back in again.


apt and dpkg perform different but orthogonal tasks.  dpkg keeps track of what packages are currently installed, and can install or remove them.  apt keeps track of what packages are available and can do things like download a package ( and its dependencies ) and hand them to dpkg to install, or check if there are newer versions of the packages you have installed, download them, and hand them to dpkg to install.

In other words, dpkg handles the low level package management, and apt builds on top of it by adding the concept of an archive that contains packages that you may want to download and install.


As per bogdan's comment above. the solution to my issue was to add a manual entry to /etc.hosts for X.X.X.X server-name on the client computer. Once that was added, not only could I ping server-name without .local, but the registration string from the question worked perfectly.


There is a package missing in the build.

Open terminal and run

sudo apt-get install libfolks-eds25

Then reboot and you should be able to save contacts again. :)


How do I access files installed with sudo apt-get

As the comments have indicated, you should just be able to type vim or vim filename.txt and it should start for you.

As for the file(s), you should be able to see where Vim is located on your file system using the which command.  From there you can ls the locations to find the files.  On my system, I can track-down Vim like this:

$ which vim
/usr/bin/vim
$ ls -al /usr/bin/vim
lrwxrwxrwx 1 root root 21 Nov 19 18:10 /usr/bin/vim -> /etc/alternatives/vim
$ ls -al /etc/alternatives/vim
lrwxrwxrwx 1 root root 18 Nov 19 18:10 /etc/alternatives/vim -> /usr/bin/vim.basic
$ ls -al /usr/bin/vim.basic
-rwxr-xr-x 1 root root 2015392 May  3  2012 /usr/bin/vim.basic


Need to write a script that will jailkit a user and give them access to a particular website directory

In general, that is not a practical directory structure for reasons you are encountering. If you only have one website, then the /var/www dirctory might be just fine. However, in my experience, 20+ years, the best approach is to create a separate home partition so that the home partition can be mounted nosuid, noexec, nodev, et al. Each website has its own system user account. That account is given a shell, rssh, which allows sftp but no ssh. This is practical when hosting, when hiring developers, or even from a security point of view.

Having written that much, one solution becomes clear: move the sites to user account directories and update the web server configuration. This can be done safely by creating a copy of the website on a subdomain. For example, for the domain, www.website.com, create a CNAME called test.website.com. Make sure the site on test.website.com is working. Then, update the web server config file to point www.website.com to the new location once you know it is flawless.

At that point, you can provide access via sFTP to whomever you please without this concern.

But... to get to the point and answer the question: a less obvious but effective solution is to use ACL. With ACL, you can get much better fine-grain controls on file system permissions. Using ACL can provide the desired restrictions.

The first thing to do is to install the acl software:

sudo apt-get install acl

The next thing to do is to mount or remount the filesystem with the ACL option.

sudo -e /etc/fstab

You might see a line like this, so add the acl option.

UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / ext4 defaults,acl 0 1

Save and quit. Remount with acl enabled.

sudo mount -o remount,acl /

After this, you will have access to ACL. There is guide for ACL on help.ubuntu.com.
Some examples of ACL usage on askubuntu.com:

Managing arbitrary user permissions under PureFTPd

Whats the simplest way to edit and add files to "/var/www"?


Instead of messing with bumblebee, I would suggest using the nvidia-prime package. It works seemlessly to allow you to choose which GPU you want to use for your desktop session. If you use prime-indicator as well you get an indicator in your tray (on the top right) which gives you quick access to change which GPU is being used.

Bumblebee is a bit outdated now and more or a pain to set up than the benefits it grants you.


chrome asks me for a starting password whenever I start ubuntu

There are two ways of doing this:-

First, if you know the old password:

Go to activities->passwords and keys.
Right click on the default keyring
Choose change password
Type your old password
When it asks for a new password, just keep them blank and continue.

You will not get the box again.

Second, if you don't know the password:

Go to home folder press ctrl+f
Type keyring and delete all the files which are having .keyring as the extension and having the keyword trashinfo.keyring as the file name.
After doing all this, re-open Chrome.

It will ask for new password and re-validate the password(this will be the last time you will be filling the keyring password). And you will not get any keyring box again

Your problem will definitely get solved.


Installing fonts on Docker Container running Ubuntu 18.04

I had a similar problem with using custom fonts from within a Java service running in a Docker container. Basically, there are two ways how you can set things up:

Put fonts to the image when building it,
Attach a volume with fonts when starting the container;

The first one is useful if you plan reusing the container for different apps that require fonts. For the latter one, you can prepare the environment once (e.g. test or prod) and then share the fonts across different docker containers (even 3rd party ones) with no need to rebuild them.

Here's an example how to prepare the env and then attach fonts ad-hoc:

$ wget https://www.paratype.ru/uni/public/PTSans.zip \
 -O ~/.fonts/PTSans.zip
$ cd ~/.fonts
$ unzip PTSans.zip
$ sudo cp -rfv .fonts /usr/share/fonts/
$ cd /usr/share/fonts/
$ sudo mv .fonts/ pt_sans/
$ cd pt_sans
$ fc-cache -fv
$ docker run -d --name reports \
  -v /usr/share/fonts/pt_sans:/usr/share/fonts/pt_sans \
  your-container/reports

Make sure you updated it with relevant names for your case.

There are some more details described in this article.


accidentally deleted external hard drive

Nick, ouch. Been there.

I recommend making a bit-for-bit backup of the disc first. Use dd if=/dev/sdb of=~/sdb.img (This assumes you have enough space in your home directory, so if /dev/sdb is a big disc, you'll have to get a bigger disc to write your backup image to, which can also be a USB disc if you prefer, but usually these are slower than direct-attach SATA).

After doing that, testdisk is your tool of choice. You want to try to recovery the original partition. testdisk will look for possible partitions, and after finding one, will offer you the opportunity to write the partition back to the disc.

Only then, run testdisk and try writing the partition metadata back when it finds your lost partition. With luck, your files are still there. Good luck.

If you have experience with mounting loopback devices, you can also do the testdisk run on the image file, and after writing the partition metadata back to it you can mount it as a loopback device. This can be more complicated, if for example, it's an LVM partition and/or encrypted.


How do I improve performance on an ATI Radeon 9550?

Updating to the latest driver version is the first step. After that just remove intensive options from the Ati control panel like AA, Vertical Sync and any other that are heavy of the FPS. Here is a link to the latest driver version http://linux.softpedia.com/progChangelog/ATI-Radeon-Linux-Display-Drivers-Changelog-6719.html

It is very tough to find the changelog since the AMD/Ati webpage does not have a easy driver download for Linux and there is no direct link to the changelog for the Linux version.


Is it advisable to always click on "safely remove drive" for an external SSD drive before "closing the laptop lid" (going into standby/suspend mode)?

Case three from the above could result in data loss. Therefore, ejecting the USB drive device before suspension is suggested.


What is the difference between a Samba share and the Nautilus share method?

Ubuntu requires the Samba server to be able to share files using network protocol called Server Message Block (SMB) that's where the name "Samba" came from. Thus, any Ubuntu apps that runs on top of Ubuntu including Nautilus requires the Samba server daemon installed to serve files over the network.

Additional info at https://help.ubuntu.com/community/Samba

Hope this helps.

Eduardo B.


The following works for me:

LABEL ubuntu 14.04_x86_64
        MENU LABEL Install Ubuntu 14.04 (64-bit)
        KERNEL http://10.1.34.245/pxe/images/ubuntu/14.04/x86_64/vmlinuz.efi
        APPEND vga=normal boot=casper netboot=nfs nfsroot=10.1.34.245:/var/nfs/ubuntu/14.04/x86_64 initrd=http://10.1.34.245/pxe/images/ubuntu/14.04/x86_64/initrd.lz ip=dhcp  --

ubuntu-14.04-desktop-amd64.iso is mounted on /var/nfs/ubuntu/14.04/x86_64

and the following line in /etc/exports:

/var/nfs/ubuntu/14.04/x86_64 *(no_root_squash,ro,async,insecure)


VLC won't play back sound after after apply normal system updates

Did you try changing the volume on VLC ? It happened to me once, but when I changed the volume, it came back to normal.


I finally found a heavy-handed way to force a shutdown sooner than 300 seconds. The 300 second waiting period is specified in /etc/init.d/sendsigs, which is a shutdown script that attempts to kill remaining processes that have not successfully ended in previous parts of the shutdown sequence. Find the following code in the script:

if [ $seq -ge 300 ] ; then
   break
fi

This is where the 300 second maximum wait time is specified. Change 300 to a desired number of seconds greater than 10 (other parts of the script already specify a wait time of 10 seconds). You will need to use sudo to change this file, since it does not have write permissions for an ordinary user.

This is a very heavy-handed tactic, and it's not a good long-term solution. If you have network file storage which might be hanging at shutdown, or if any other process (ie. mySQL) might be legitimately waiting at shutdown, do not follow this method. But for a laptop or general purpose computer with a standard software configuration, it will at least allow you to shutdown and restart without waiting 5 minutes every time.


E: Unable to locate package gnome-tweaks

gnome-tweaks is in the universe repository.
Package: gnome-tweaks (3.28.1-1) [universe]  (from https://packages.ubuntu.com/bionic/gnome-tweaks)
Open Software and Updates on your computer and tick the box beside "Community-maintained free and open-source software (universe)"
Then click "close" and enter your password if prompted


my file looks like

network:
    ethernets:
        enp2so:
            addresses: [192.168.1.1/24]
            dhcp4: no
    version: 2

Replace enp2so with your network adapter name(enp0so3) you could try that


14.04 second mouse pointer stuck in middle of the screen

This got rid of it for me and stopped the cursor from flickering too:

Do System Settings > Displays

And turn-off / disable Unknown Display.


Inspiron 5520 Laptop Fan not working. Ubuntu 14.04

Ok, so I "think" I fixed it, but it's being all wonky. I went into my i8kfan config file and set ALL configuration options to "2". I also found out that the -1, means no fan. So all my entries say something like:

{-1 2} regardless of the heat settings.

Here is the wonky part: my fan now turns up and down over time. Like high rev, low rev, back to high rev, back to low rev, etc... This happens at about 20 second intervals. At least it's keeping my CPU temp down.

I am assuming I have a bad sensor somewhere in my laptop as I was getting a lot of odd readings (84k rpm on a fan that isn't on). Anywho, if someone else comes along and has a similar issue:

sudo gedit /etc/i8kmon.conf

gedit will open. Paste this in to have it try running your fan on HIGH ALL THE TIME:

# Run as daemon, override with --daemon option
set config(daemon)      0

# Automatic fan control, override with --auto option
set config(auto)        1

# Report status on stdout, override with --verbose option
set config(verbose) 1

# Status check timeout (seconds), override with --timeout option
set config(timeout) 20

# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
set config(0)   {{-1 2}  -1  40  -1  40}
set config(1)   {{-1 2}  30  60  30  60}
set config(2)   {{-1 2}  53  128  53  128}

# For computer with 2 fans, use a variant of this instead:
# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
# set config(0) {{-1 2}  -1  52  -1  65}
# set config(1) {{-1 2}  41  66  55  75}
# set config(2) {{-1 2}  55  80  65  85}
# set config(3) {{-1 2}  70 128  75 128}

# end of file

I restarted my system after I saved the file and exited and now my fan is always on.

Hope this helps if someone else gets an issue like mine. Of course I'd be happy to vote a better solution if someone has it.


How can I get the trackpad/keyboard to work after installing Ubuntu on Acer Chromebook 14 (Crouton)?

I freely admit this doesn't directly answer your specific problem but I ran into issues with my Acer Chromebook 14 as well in Unity.  Going with KDE instead worked better.  If you're a Linux noob then switching environments isn't too big of a deal, right?

To install KDE, go through the same steps as using crouton for unity but the command to kick it off is sudo sh crouton -t kde instead of -t unity.

The keyboard works fine in KDE but the touchpad is still tricky.  It doesn't need pressure as much as it needs finger surface area (using the pad of your finger rather than tip works).  I'm digging through other Chromebook-touchpad-Linux threads to find a tweak that works to adjust the sensitivity.

Edit: Okay, I think I found the command to tinker with the touchpad sensitivity.

xinput set-prop "Elan Touchpad" "Synaptics Finger" aa bb cc

Where "aa", "bb", and "cc" are numbers.  Mine had default values of 25, 30, and 0 which seem to translate as "low" "high" and "press" according to some X11 documentation I found.  Using 5 10 50 worked alright for me.  You may need to tweak those numbers.  The important once is the "bb" value.  It seems, as soon as it detects a pressure above "bb" it counts your finger as on the touchpad.  So if it's not detecting your finger normally, lower "bb" until it does.  Keep "aa" much much lower and set "cc" much, much higher so you can click with a tap.


How to copy KDE theme from openSUSE to Kubuntu

OS: Kubuntu 18.04

I haven't tried what you want to do but there are additional themes for you to try from within Kubuntu itself. It may so happen that you like one of them.

Open System Settings  in your launcher.

Then, in the Appearance section, open Workspace Theme to get a Look and Feel window:

You'll see a Get New Looks ... button in the lower right corner. Clicking on that will get you to a window offering you several alternative themes:

If you're totally new to things, I'd avoid the ones mentioning "Kvantum" because, from what I understand, they're more complex.

For example, I sorted the available themes by "Most downloaded" and chose the top one, Arc KDE by clicking the install button Install next to it:

Then, I went back to Appearances and saw that Arc Dark was an option in Look and Feel. I selected it and clicked Apply in the lower right corner:

The information for the new theme, is stored locally in ~/.local/share/color-schemes:

dkb@kububb:~/.local/share/color-schemes$ ls
Arc.colors  ArcDark.colors  Breeze1.colors
dkb@kububb:~/.local/share/color-schemes$

If you want the light variant, you need to again open System Settings, and this time open Colors. Scroll down till you see plain Arc, just above Arc Dark in the following image, and select it and click Apply. That's it.

The easy, and preferred, way to edit files in ~/.local/share/color-schemes is via the GUI provided by opening Colors, selecting the scheme and playing with it. To be safe, when prompted to save changes, use a new name such as Arc-1, Arc-2, etc so that the original is unmodified.

By the way, I'm going back to the original because some icons are looking different or messed up!

Note that you can modify the original Breeze and Breeze Dark themes using the Color GUI but remember to save under a new name!

Further edit:

There's a detailed answer here which points to the actual location of the downloaded theme and that is in the desktoptheme and look-and-feel folders within ~/.local/share/plasma. This is useful if you want to remove themes installed via Download New Look And Feel Packages.


After doing some research, removing and reloading the trackpad/mouse driver appear to fix the problem temporarily.

Open a terminal (Ctrl-Alt-T) and run

Code:
sudo modprobe -rv psmouse
sudo modprobe -v psmouse


How to see what clients of lan doing on the internet

You can't see actually communication data (i.e. what your users are posting on facebook), however using Wireshark you can see incoming and outcoming http & https requests, and you could tell what website they are looking at.
Happy spying!
- The Exp3rt
(https://www.wireshark.org/)


I have also spent hours trying to fix this, even though my problem did not start with UNetBootin. However I got the same result: the installer just quit and said that thing about not being able to unmount /cdrom

Finally the right solution was found at https://help.ubuntu.com/community/Installation/FromLinux

Specifically, do this:

  Note2: Instead of using 'workaround', an alternative is to modify the file /etc/mtab by erasing the line that specifies the partition where the cdrom is mounted. This way the kernel thinks thats the /cdrom is not mounted and will not show the advice when installing ubuntu. I think this procedure is less dangerous than the one in the previus note.

Do this before you start the installer. If that does not work, try to do this right before you press the "Install Now" button.


Not knowning the addresses of the dns servers, the best place to check is google:

dig whatiaminterestedin @8.8.8.8

Do notice that updates can easily take 24 hours or more. It's not common, but it happens.


How do I change the way Ubuntu adjusts my volume mixer levels?

There are many layers in the audio stack that could contribute to this symptom. Most directly is the behavior that PulseAudio defaults to, and you can read about that at http://pulseaudio.org/wiki/PulseAudioStoleMyVolumes. You can work around some instances using the instructions I contributed at https://wiki.ubuntu.com/DebuggingSoundProblems/KarmicCaveats#Volume%20range%20anomalies:

  Volume range anomalies

  The latest version of PulseAudio tries
  to control the volume of the sound
  card using its mixer controls. Usually
  this works just fine, but in some
  cases this does not work properly.
  (Whether this is PulseAudio's or
  ALSA's fault is beyond the scope of
  this wiki page. Some more background
  information is here.)

  Diagnosis

  You experience any of the following:

  Jumps in volume, e g if everything below 20% is muted, and 21% is very
  loud.
  Overdriven (distorted sound) if the volume is set above a certain
  (low) level
  No volume changes in parts of the range, e g if 20% is just as loud as
  70%.

  Fix / Workaround

  There are a few variables which
  control how PulseAudio controls the
  volume. You can either edit
  /etc/pulse/default.pa (you'll have to
  be root to do that) to change the
  behavior for all users, or copy that
  file to ~/.pulse/default.pa and then
  edit that file, to change behavior for
  the current user only.

  Open the file mentioned above. Find
  the row saying load-module
  module-udev-detect and change it to:

load-module module-udev-detect ignore_dB=1

  To try your changes, restart
  PulseAudio with the following command:

killall pulseaudio

  PulseAudio will then autospawn
  (restart itself).

  You may find that the above workaround
  is insufficient, in which case you may
  configure PulseAudio to control only
  one mixer control, e.g., PCM (cf.
  alsamixer). Find the row saying
  #load-module module-alsa-sink and
  change it to:

load-module module-alsa-sink control=PCM

  (remember to remove the # in the
  beginning of the row!) Optionally
  replace PCM with the mixer control you
  want PulseAudio to control.

  You will then need to killall
  pulseaudio as above and allow the
  daemon to autospawn.

Finally, whether this anomaly is actually a bug requires you to use ubuntu-bug alsa-base.


Acer aspire incompatible with ubuntu 12.04?

I'm using an Acer Aspire 5742 and everything's fine. You may run into problems getting the brightness keys to work, along with the Webcam, but a quick google search should help you fix that.

Also, this related question should help with that:

Screen brightness not changing on Acer 5742 notebook


Bluetooth Not Working on 14.10 with BCM43142

I found a solution.

You need to search for a .hex file from a Windows installation, I found mine in C:\Windows\System32\drivers\BCM43142A0_001.001.011.0197.0231.hex; find the one that starts with BCM43142A0.

Then you need to convert it to hcd format. You can find the tool at https://github.com/jessesung/hex2hcd.

git clone git://github.com/jessesung/hex2hcd.git
cd hex2hcd
make
hex2hcd <input_file>.hex fw-xxxx_yyyy.hcd

Insted of fw-xxxx_yyyy.hcd you should use BCM43142A0-0a5c-21d7.hcd.

Then copy the generated hcd file to /lib/firmware/brcm/ and restart.

That should fix the issue.


How do I remove kubuntu-full and all it's applications?

Remove those as well - kubuntu-full is a metapackage, installing it will include it's recommends - uninstalling it does not unfortunately. Only way is to remove the packages as you are doing.

More information on metapackages can be found here - https://askubuntu.com/a/2230/2018

Reply to comment:

No - it's not done that. I would install synaptic and then use that to search for the kde things you have installed. It's one of those jobs easier the second time, next time do it with a terminal and copy the output so you know what gets installed.

For instance

sudo apt-get install kde-full

get's these http://pastebin.com/QrYvxUf1

You might though find it easier and quicker to get the newest 12.04 daily and reinstall, you can use zsync to update your existing iso if you still have that.


Kubuntu clock display often shows wrong Timezone

to edit the time open a terminal and type dpkg-reconfigure tzdata this will allow you to set the timezone and save it, making sure to always show local time


Grub2 installed on Legacy thus EFI windows boots directly

Disable secureboot from BIOS settings and then clean install Ubuntu on EFI.
Don't forget to turn secureboot on back. Worked on my machine.


Move /dev/sda3 to the left, then you'll be able to resize /dev/sda4.


Apt already has a feature to do this.

Edit the file /etc/apt/apt.conf.d/10periodic

Locate the entry:

APT::Periodic::Download-Upgradeable-Packages "0";

This entry tells apt whether or not to download new packages using apt's --download-only option. "0" means the option is disabled, so apt will install the packages it downloads.

Change the "0" to a different number to enable --download-only. The number represents the frequency of download in days: "1" for daily, "2" for every second day, "7" for weekly, etc. The documentation for these options is in the file /usr/lib/apt/apt.systemd.daily

If you want to pull ALL available packages (instead of only security updates), then you must also make a small edit to /etc/apt/apt.conf.d/50unattended-upgrades. Uncomment the sources you want to include. This is not recommended for PPAs and other non-Ubuntu software, but easily possible if you want to take the risk.


Use the Swiss army knife for sound generation, SoX.

You install it from the official repositories, simply by typing:

sudo apt-get install sox

Updated, fancy answer (pleasing ocean waves):

After experimenting a bit with SoX, I came up with this great command which imitates the soft murmur of the sea with its soothing sound of waves that flow over a flat sandy beach on a sunny summer day...

Well, enough poetry, here's the command. Listen yourself.

play -n synth brownnoise synth pinknoise mix synth sine amod 0.3 10

Explanation:

This command first generates and mixes brown noise and pink noise, which I find to be the most comfortable and natural noise. Then it generates a sine wave of 0.3 Hz with an offset of 10% and uses this to modulate the amplitude of our mixed noises to produce the sound of ocean waves.

Modifications:

Timer:
You can add a timer and limit the playback duration by specifying the number of seconds, the number of minutes and seconds (mm:ss) or the number of hours, minutes and seconds (hh:mm:ss) right before brownnoise. Here's an example for one hour:

play -n synth 1:0:0 brownnoise synth pinknoise mix synth sine amod 0.3 10

Wave frequency:
If you want the waves to hit the beach more or less frequent, simply change the frequency of the sine wave used for amplitude modification (0.3 in the above command). The number represents the amount of waves per second, so a frequency of 0.1 Hz will cause 0.1 waves per second and therefore make one wave last for 10 seconds:

play -n synth brownnoise synth pinknoise mix synth sine amod 0.1 10

Minimum background noise volume:
The sine that is used for amplitude modulation got shifted to an offset of 10%, so the brown-pink noise will always be played with at least 10% volume. If you want a stronger or weaker background noise, increase or decrease this offset to your needs. Here's an example with 20% background noise:

play -n synth brownnoise synth pinknoise mix synth sine amod 0.3 20

Old, boring answer (plain white noise):

Now the easiest command to play white noise infinitely (until you abort it with Ctrl+C) is this:

play -n synth whitenoise

If you prefer a time limit, you may add that in the format hh:mm:ss. The following command would make noise for one and a half hour, for example:

play -n synth 01:30:00 whitenoise

It even shows you some nice stats while "playing":

$ play -n synth 00:00:05 whitenoise

  Encoding: n/a
  Channels: 1 @ 32-bit
Samplerate: 48000Hz
Replaygain: off
  Duration: unknown

In:0.00% 00:00:05.12 [00:00:00.00] Out:240k  [!=====|=====!] Hd:0.0 Clip:0
Done.


Booting from Grub instead of booting from Windows Boot Manager

Okay, so Windows will always boot from Windows Boot Manager. Why? Well, even if GRUB loads "Windows", it's just chainloading Windows Boot Manager, because it's the only thing that can actually load the Windows kernel (to my knowledge). You can, however, set GRUB as the default boot device in your laptop's BIOS/EFI and use GRUB to load Windows Boot Manager.


ULTRA big problem. Ubuntu Gnome 16.10 driver isue

You can bypass the login screen and login to a text-only console and uninstall the Nvidia driver from there.

Use the keyboard combination Ctrl+Alt+F3 to open a virtual console.
In the console you will be prompted to enter your username. Type your username and press Enter.
You will be prompted to enter your login password. Type your login password and press Enter.
Run these commands to uninstall the existing Nvidia driver and reboot.

sudo apt remove nvidia-*
sudo reboot

You should be able to login normally when the system restarts and you will be able to get to your desktop environment.
After the computer reboots, open the terminal and run this command to identify the recommended proprietary graphics driver for your system.

ubuntu-drivers devices

Install the proprietary graphics driver that has [Recommended] after it and reboot the computer.


I can't access the system: Error: "unknown filesystem. grub rescue"

Get a live USB memory stick/CD etc. with Ubuntu and chroot into your system (more on that here: superuser.com/questions/111152/whats-the-proper-way-to-prepare-chroot-to-recover-a-broken-linux-installation). Then in the terminal which is chrooted into your system, type update-grub. Then close the terminal and re-boot to your hopefully-working GRUB!


How can I stop the automatic creation of ~/.cache/motd.legal-displayed file?

See man update-motd and /etc/update-motd.d

  Disable motd

See /etc/pam.d/login and comment out the line that has session optional pam_motd.so in it. You might also want to do this in /etc/pam.d/sshd if ssh is also a concern.

  Completely remove motd

This will remove anything related to motd (so also motd.legal-displayed):

sudo apt-get remove --purge update-motd


Multiple OS's, several drives, need a working boot manager

for booting use Easybcd software it is free for home user and install it. open it you will see add new entry click on it go to linux tab add entry click and selcet "swap partition" and "GRUB2" in it after that click on edit boot menu select the appropriate timeout option and save setting.

Download here:http://www.softpedia.com/get/System/OS-Enhancements/EasyBCD.shtml


How do I add a new VSFTPD user? (Not working)

edit /etc/vsftpd.conf

Adjust the following

local_enable=YES
write_enable=YES (this is to allow uploading)

Now create a system user (useradd ..) and that user will be able to ftp to your server.
check out the vsftpd.conf to make it more secure (chroot, ...)


Dell XPS 13 keyboard doesn't work unless I put it to sleep

I've determined this is related to the model having a tablet mode (Dell XPS 15 9575), it disables keyboard when the screen is flipped back. Ubuntu doesn't seem to handle this well and disables by default.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1822394


Finally I solved my problem, how it's written here.

I created a service which start mysql service with delay.

However it is very important to note, that before reinstalling MySql you should disable delay_mysql.service, otherwise you got an error.


I had this problem also, gnome-session-Unity.log file was getting large.

Before this I installed the scratch programming environment, this programm has the squeak-vm dependencies also installed 1st time on this machine. The squeak-vm was locked on the launcher, the line in the gnome-session-Unity log file

    (zenity:3190): GLib-WARNING **: /build/buildd/glib2.0-2.40.2/./glib/giounix.c:410Error while getting flags for FD: Bad file descriptor (9)

this entry was repeated and the file getting bigger.

Also a window from squeak-vm was opened and couldn't normally close that window.

In order to solve the problem I uninstalled the scratch package and the squeak-vm package, close the window from squeak-vm with xkill.

Environment: Ubuntu 14.04 , scratch 1.4.0.6~dfsg1-5, squeak-vm 1:4.10.2.2614-1ubuntu2, zenity 3.8.0-1ubuntu1


Why does my Quickly app install in /usr/bin instead of /opt?

Right, after running quickly package --verbose --extras (which does essentially the same as quickly submitubuntu except for uploading to a PPA) it looks your package does not even build.

It looks to me as if it might be an issue with the source tree layout. You've ported your app to Quickly, but you might need to make it a bit more Quickly-compliant. For one, I spotted that the virtuam folder where Quickly expects to find the app code is missing. You sould create and move your code there, instead of having it in virtuam_lib.

I've also noticed that in vui.py you've got a hardcoded path: os.chdir('/usr/share/virtuam/ui'). In general, hardcoded paths are considered bad practice, as they make your app less portable. Have a look at how Quickly loads the .ui file by creating an example app with quickly create ubuntu-application foo.

In general, if you need more help with this, I'd recommend to use the Ubuntu App Developers mailing list, or the Quickly talk mailing list as yours is a very localized issue that will require more support and might not be useful to other Askubuntu users.


I got the solution for this.

1.Create a systemd drop-in directory for the docker service:

  $ sudo mkdir -p /etc/systemd/system/docker.service.d

2.Create a file called /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:
(Use sudo touch/nano to create file)

  sudo nano filename.txt

  [Service]

  Environment="HTTP_PROXY=http://proxy.example.com:80/"

3.Flush changes:

  $ sudo systemctl daemon-reload

4.Restart Docker:

  $ sudo systemctl restart docker

5.Verify that the configuration has been loaded:

  $ systemctl show --property=Environment docker
  Environment=HTTP_PROXY=http://proxy.example.com:80/

visit : https://docs.docker.com/config/daemon/systemd/#httphttps-proxy


USB issues and problem with Hauppauge WinTV Nova-T 500

I've fixed this issue, the Gigabyte GA-B75M-D3H needed a BIOS upgrade to version F15 to make it work.

John S Gruber - this most definitely is a PCI device with a USB hub which reports having 2 DVB-T tuners attaced

http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-NOVA-T-500

03:02.2 USB controller: VIA Technologies, Inc. USB 2.0 (rev 63)
Bus 003 Device 002: ID 2040:9950 Hauppauge WinTV Nova-T-500

[    4.480190] dvb-usb: found a 'Hauppauge Nova-T 500 Dual DVB-T' in cold state, will try to load a firmware
[    4.493134] dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw'
[    5.277272] dvb-usb: found a 'Hauppauge Nova-T 500 Dual DVB-T' in warm state.
[    5.277541] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[    5.871841] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[    6.489185] dvb-usb: schedule remote query interval to 50 msecs.
[    6.489189] dvb-usb: Hauppauge Nova-T 500 Dual DVB-T successfully initialized and connected.
[    6.489307] usbcore: registered new interface driver dvb_usb_dib0700


One word: LUKS

LUKS is a full-disk encryption method. At boot-time, you have to enter a passphrase. With the given passphrase, a key slot is unlocked and the actual key for encrypting the data is retrieved. LUKS can be seen as a encrypted partition which holds another partition.

Because most users have multiple partitions (the / partition and swap), it's often used with LVM to avoid having to enter a password for each LUKS encrypted partition. LVM can be seen as a special partition holding multiple partitions (simplified). The structure would look like this:

Disk
+-LUKS partition
  +-LVM partition
    +-/
    +-/home
    +-swap

Using the alternate CD, you can create a new installation using LVM + LUKS. Within the disk partitioning step, an option is visible for copying data from another partition. If you do not mind reinstalling the whole system, backup your files and settings and do a new installation using the alternate CD.

For a more correct documentation of LUKS (cryptsetup), see Cryptsetup FAQ.


How to use badblocks to scan a certain /dev/sdX to deal with bad sectors

sudo badblocks -nvs /dev/sdX and replace sdX with the partition you want

-nvs would make a non destructive test and would show the progress and "would give a verbose output" (which means a more explicit output)


How to install gfortran 5 on Ubuntu 14.04

gfortran-5 is not currently available for Ubuntu 14.04 "Trusty". There are however packages available for 16.04 "Xenial" and later. If you must have Version 5 and can't get by with version 4.8 which is the latest currently available in the repositories for Trusty, You have some options.

A) Upgrade your installation to 16.04 LTS which will be supported for 2 years longer than your current installation.

B) Attempt to compile from source

Personally I would consider approach A to have the best chance of success.

Sources:

http://packages.ubuntu.com/search?keywords=gfortran&searchon=names

https://launchpad.net/+search?field.text=gfortran-5

https://gcc.gnu.org/wiki/GFortranBinaries#FromSource


MBR or GPT partition when making ubuntu bootable live usb

UEFI can boot from either partition scheme. Since, a USB is generally small, and you are just making a live installer. either can be used equally as well.

If you want some basic information about the difference see here:
https://wiki.manjaro.org/index.php?title=Some_basics_of_MBR_v/s_GPT_and_BIOS_v/s_UEFI


You could use the Unite theme for dockbarx that is intended to replicate Unity. Dockbarx is available in a PPA although you will have to install the theme seperately.


Why does package mercurial depend on x11-common in a chroot'ed environment?

The mercurial package recommends wish, which is a virtual package provided by tk. This is the package that is pulling in all of the X-related packages that you see being installed as dependencies in the chroot.

What you probably want to do is install mercurial without recommended packages by adding the --no-install-recommends option to apt-get. See this answer for more on avoiding installing recommended package dependencies.


Since re installing the themes is by far the easier thing to do:

sudo apt-get install --reinstall light-themes


You can set and export PATH and other environment variables in ~/.xprofile script and make java visible to X session. You should relogin to X server afterwards.

export PATH="$PATH:/path_to_jre/bin"

You can also have the same result by modifying /etc/environment. You should restart afterwards.

PATH="...:/path_to_jre/bin"

Check your PATH variable with env command.

env | grep PATH


Sounds like you installed ubuntu to the second internal hard drive. You need to change the hard drive priority in your BIOS under Boot, so that the second hard drive is the primary boot drive.


Changing Xscreensaver's Video Player from mpv to VLC

this work for me :D

"Videos"    cvlc --loop --fullscreen --drawable-xid   \
              $XSCREENSAVER_WINDOW                    \
              --no-video-title-show                   \
              /path/to/videos.mp4                     \n\


How to make Ubuntu recognize Samsung galaxy battery level?

Does Ubuntu battery display that it is suitable for Samsung? Generally speaking, the battery extender can be suitable for most models, like iPhone extended battery also fits for other phones. That's why smartphone app developers tout battery-conservation apps. These programs purport to save battery life by clamping down on unnecessary tasks, ensuring that your phone is running only the apps you really need at any given moment.


Shortcut to open terminal in the currently open directory on GUI

Yeah, you can start the terminal by right-clicking at empty space in file manager and selecting the option there.


You need to set the bitmap to "cairo".

options(bitmapType="cairo")


What license are the Ubuntu wallpapers distributed under?

The community wallpapers are distributed under a CC-BY-SA 3.0 license.

Upstream-Name: ubuntu-wallpapers
Source: https://launchpad.net/ubuntu-wallpapers

Files: *
Copyright: 2010-2013 Ubuntu community contributors
License: CC-BY-SA 3.0

This information is on disk in /usr/share/doc/ubuntu-wallpapers-trusty/copyright


Ubuntu 13.10, kernel still 3.8.0-31-generic

Happened exactly the same, I noticed that now that I had to compile wacom drivers. For whichever reason, the package linux-image-generic  was not installed (probably ocurred during the upgrade from 13.04 to 13.10).

sudo apt-get install linux-image-generic

seems to correct the fact (will modify this if not).

You can also do

sudo apt-get install linux-generic

to automatically install the kernel headers, too (thanks to Lars Nyström).

(obviously if you have -rt or -lowlatency kernels you have to adapt this to your case)


Can i access and modify any software code working on linux?

You may download the source for any open source package, make any change you want, and use it on your system. Pushing your change back up to the world is more difficult.

Prepare:

sudo apt install apt-src

To find the source, first find the program you want to fix, with something like

type -p programname

Then find which package provides that file with

dpkg -S $(type -p programname)

Then get the source:

apt-src install $(dpkg -S $(type -p programname) | cut -d: -f1)

Read man dpkg;man apt-src;man cut


You probably messed up either the owner or the permissions of your directory

/home/pinank/.gnome2/accels

This can be fixed and reset to the correct values:

permissions: drwx------ or 700 (equal permissions, but different notation)
It means that it's a directory (d) and that only the owning user has full access (read/write/execute) while neither the owning group nor other users may do anything with it (not even enter and display contents).
owner user: your user (pinank)
owner group: your group (pinank)

You correct the owner with the command:

sudo chown pinank:pinank /home/pinank/.gnome2/accels

You correct the permissions after that with the command:

chmod 700 /home/pinank/.gnome2/accels


Printer printing in inverted colors in monochrome

I have been facing the same issues inverted white text on black background when selecting Greyscale with a Canon MG5750. It looks like a bug that should be reported to Launchpad so that a proper fix can be implemented in the printer driver.
In the meantime I would suggest testing out different drivers with your printer.
Use 'driverless' Driver
Go to Setting then Printers, click the cog next to your print and select Printer Details:

Then click the Search for Drivers button:

I got the following driver installed:

A quick test with this driver fixed the issue.
Use Gutenprint Driver
Alternatively use a driver selected from the Gutenprint database:

Remember to pick the driver that matches your Canon Pixma model.

This gives me an alternative CUPS + Gutenprint driver to test out. I actually added it as second printer so I could easily compare and test the two drivers.

So far this is working as it should do with Greyscale/Monochrome printing however there might be other printer options that different driver work better with. I will update post if find anything further to help.


Quick and dirty way:

Here's what i would do to find the list of icons it's using:
(Sure there must be a better way =)

Make sure rhythmbox isn't running (including in the background) then:

$ strace -f rhythmbox  2>&1 | grep '/usr/share/icons' | tee ~/foo

Close it.
Now we have the list of icons it uses with:

$ cat ~/foo | grep '\.\(png\|jpg\|svg\|xpm\)' | cut -d'"'  -f2 | sort -u
/usr/share/icons/Humanity/actions/16/rhythmbox-set-star.svg
/usr/share/icons/Humanity/actions/symbolic/list-add-symbolic.svg
/usr/share/icons/Humanity/actions/symbolic/list-remove-symbolic.svg
...

In my case looks like shuffle is this one:

/usr/share/icons/gnome/scalable/status/media-playlist-shuffle-symbolic.svg


How to resume an aborted Ubuntu upgrade from 16 to 18 lts during sudo do-release-upgrade?

For me this always works well.
sudo apt-get update -y [then it always error about last process is not complete]
then whatever process was not yet completed, I do ->
rm -rf /.../.../lock [replace ... with process that locked]
rm -rf /..../.../.../ [replace ... with step was not succeed]
Then I run again
sudo apt-get update -y [if no error]
sudo apt-get upgrade -y
sudo do-release-upgrade
Usually it starts from last success process but sometimes with luck way back from me, I need to start all over again.
Please not try this on live server. I have no confident this is ultimate guide.


Cifs Share keeps asking for password and is slow

As for the slow file access: I don't know which Samba version you are using, but I suggest to specify the SMB protocol version within the corresponding fstab entry (which is not the case in the examples that the linked article on wiki.ubuntu.com provides). Older Samba versions use SMB1 as standard protocol. Using the outdated SMB1 might slow down folder access, and there are security issues with SMB1. Add vers=2.1 to the options in the fstab:

//servername/sharename  /media/windowsshare  cifs  username=shareusername,manyotheroptions=andtheirvalues,vers=2.1  0  0

If this option is not accepted, it might be necessary to update your cifs-utils. It's most likely that your Windows device supports at least v2.1, but to be safe, you could check on that as well.

As for the password that you have to enter for writing access:
This problem can occur if the username specified in the fstab differs from your Ubuntu username. You could add a share user to your NAS, named identically to the Ubuntu user, and enter this username into the fstab. (There are probably many other approaches to this problem, but this is one of the simplest solutions.)


How To Undo Changes In Synaptic Package Manager

In synaptic go "File" > "History". Find where you did this & put back the packages removed that you want.


How to partition this USB drive for installation with an easy walk through?

First when you run the installer click Try Ubuntu. That will run Ubuntu without installing. Then plug your pendrive and type following commands :

sudo umount /dev/sdb1

This will "un-mount" the drive. Then type :

sudo mkfs.ext4 -n <nameOfYouDrive> -I /dev/sdb1

This will create a ext4 partition. And replace the "nameOfYourDrive" with the name you want to give (in single quotes but not with '<>')

Then you can restart your computer and proceed with the installation. But what I would prefer is to install ubuntu 12.04LTS on another drive ie. /dev/sda2. This will not mess up your windows and your laptop!


How to stop gnome-power-manager from changing the global backlight setting?

It seems this can only be disabled by editing a gconf setting using gconf-editor or the command line tool gconftool-2 (easier). As GDM is run by a special user (gdm), you got to disable it for the desktop user and that special user:

Run the following from a gnome-terminal:

gconftool-2 --set --type boolean  "/apps/gnome-power-manager/backlight/enable" false

This will deactivate the backlight control for your user. Now type:

sudo -u gdm gconftool-2 --set --type boolean  "/apps/gnome-power-manager/backlight/enable" false

This will deactivate the backlight control for the user that controls the GDM screen.

You should now no longer see automatic backlight level changes.

In Ubuntu 11.10 Oneiric Ocelot this changed to:

 gsettings set org.gnome.settings-daemon.plugins.power idle-dim-ac false
 gsettings set org.gnome.settings-daemon.plugins.power idle-dim-battery false

Still not sure how to disable it for the login screen.


Why can't I upgrade firmware on my Thinkpad after upgrade from 20.04 to 20.10?

I found the solution to this problem: For some reason a package called 'fwupd-signed' was not installed in 20.10 but must have been on 20.04 since I was able to upgrade firmware without problems. So the upgrade process from 20.04 to 20.10 left me without this package needed for firmware updates.


that function is fulfilled by the “public folder” that each account has, just make sure the folder's permissions and sharing are properly set. (read only, read and write etc)


To install automatically all dependencies,

Open a terminal (ctrl+alt+t) and run this command:

sudo apt-get install -f


Internal error when I run Ubuntu Software in 16.4

I ran sudo apt-get upgrade gnome-software and Ubuntu Software appears to be working.


How to configure Wireless Network (broadcom 802.11 b/g bcm4312) on Ubuntu 14.04?

The recommended driver for your device is not the proprietary STA driver. I suggest you obtain a temporary working internet connection by ethernet or any other means and open a terminal:

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

After it has finished, detach the ethernet or other connection, reboot and tell us if the wireless is working as expected.


Yes, you can still resize the partitions using gparted; it's on the Ubuntu installation medium (either DVD or USB) so you can boot into a live session and run gparted, or you can install it in Ubuntu from the Ubuntu Software Center.  Gparted has a very good track record with this sort of thing, but anytime you mess with resizing or moving partitions it's best to have a backup of your data.

Of course, if you just did the installation again, just specifying correctly the partitions sizes that you really want, you'll still end up using gparted, so in a way it's the same solution either way.


Obviously, install has failed. It will finish in <10 min if it is going to work. Possible drive failure, possible your installer lacks device driver. It used to happen on some SSD. Possible also your install media corrupted.

Reboot and try again. Alt-Ctl-Delete or power button.

If same happens again, try again with settings you control. I would do custom partitions and choose old safe file system like ext4, not new fancy ones. I would avoid any new style volume manager.

If that fails, download standard ubuntu. If that works, KDE desktop can be added later.


Can I install a German version of 16.04 in English?

Unlike with Windows there is no localized version of Ubuntu. With the default installation media as freely available for download from Ubuntu we have an almost exhaustive list of languages supported. On choosing English (which is default) we will install Ubuntu and all applications in English.

We still may need to take care to choose an appropriate keyboard layout. You will be asked for your keyboard while installing.

All language settings can be changed later at all time. We may even start single applications with a locale different to the system if this was needed.


Python 2.7 is included in 12.04 by default.
If for some reason it is not, run sudo apt-get install python2.7

To check if you ave python and what version run python --version

To install IDLE: sudo apt-get install idle


Spanish characters on a (fr_CA) QWERTY keyboard

System -> Preferences -> Keyboard -> Layouts -> Add... -> Spain Include dead tilde

Works for me. I'm normally using ch_FR.

(You might want to print the keyboard layout.)

Edit: I repost my comment which has actually solved the problem

I got it! With I guess normal fr_CA, (if I add it by "By Language" with French in the first dropdown and Canada in the second).

You have to enable a Compose key:

You hold the compose key simultaneously with Alt Gr (left of space bar) and push ; to get the ~ (it will not yet show up) then you hit n to get ñ. Sometimes it's a bit buggy and you have to hit the tripple key combo twice before hitting n.

For ¡ you use compose key + shift + ! (1) and for ¿ it would be compose key + shift + ? (6). Again sometimes you'll have to hit the tripple key combo twice .


rm versus deleting from GUI

If you used the command rm, you did indeed delete the file. The data is no longer reachable from the file system - except there was another hard link to the file (unusual), or you deleted a symbolic link.

The actual data may be still on the disk, on disk blocks the filesystem assumes to be unused. It you want to recover it, you should not write to the disk, because it could reuse the disk space holding you data. You could try regular data recovery on the file with the tools suitable for the file system you used.

For the default ext4 filesystem, see:
Is there any recovery software available for ext4? and most answers on the question linked below.

Trash for the CLI

It is possible to use the trash bin from the command line, but that's not set up by default. The package trash-cli contains commandline tools to use the trash bin of your desktop environment.

There are commands like trash-put, trash-list etc;
The names are pretty long - you could define shell aliases like

alias tp='trash-put'

or

alias del='trash-put'

and then use del instead of rm to delete files or directories in a more safe way.

As it is proposed in the answer linked below, it's possible to use the alias name rm, replacing the actual rm command with trash-put, but there are multiple reasons not to do that; some of them are:

The implementation of trash-put is much less well-tested that rm from 'GNU coreutils' in Ubuntu, for example.
The options of the default rm are not all supported by trash-put
Someone else will use the shell with the alias sooner or later, and will see a very broken rm command, technically.
A special syntax is needed when the real rm is required
Generally, it's not a good idea to mess with a very dangerous tool, at least risking confusion.

Having said that, see the answer of @enzotib on Can files/directories deleted with rm be restored? on how to configure the alias.


Dropbox sync status is not visible in Xubuntu. Is this normal or only with me?

Yes this is normal. Dropbox client only supports Nautilus/Files (it's default Ubuntu and Ubuntu Gnome file manager), sync status on files are only displayed on it or in some of its forks (like Nemo).

Xubuntu uses Thunar as its file manager. There is a plugin for Thunar that will enable some basic Dropbox integration, only rigth-click menu options, not emblems.


Not sure if you need this answer anymore, but here's how I got it to work:

./configure --with-mysql --with-mysql-libraries=/usr/lib/x86_64-linux-gnu/ --with-mysql-includes=/usr/include/

In your case just use: i386-linux-gnu instead of the x86_64 folder path.


Indicator icons not working/missing in Unity (18.04)

I suspect the fix is same as before however the xdg variable has changed to ubuntu:GNOME


You can make a script for this (source LightDM Resolution).

Firstly we need to find out what your monitors identifier is. Open up a terminal, start typing terminal in your unity dash to see the option or press Ctrl+Alt+T
Type/copy this command to show your display details:

xrandr -q

If you only have one monitor you will see a line in the output like the following (probably with some different values, its the identifier at the start we are after):

DVI-0 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 473mm x 296mm

The screen identifier is DVI-0 in this case
Open up your favourite text editor, lets use gedit for this example, press Alt+F2 and type gedit
Type/copy this in:

#!/bin/sh
xrandr --output DVI-0 --primary --mode 1440x900

Save this on your desktop as lightdmxrandr.sh
You may want to test the script before we put it into practice. Back in the terminal navigate to where we just saved it:

cd ~/Desktop

Now we need to make it executable:

chmod a+rx lightdmxrandr.sh

Now run it:

./lightdmxrandr.sh

(If your screen automatically auto-corrects after log in you probably won't see a difference so you may want to use a test resolution that is different but you know works while testing)
Now lets move the little script we made:

sudo mv ~/Desktop/lightdmxrandr.sh /usr/share/.

If you don't use sudo you may get a permission error (I use this folder out of personal preference)
We need to now run this in lightdm, navigate to the correct folder:

cd /etc/lightdm

Open up the lightdm conf file:

sudo gedit lightdm.conf

Now add the the instruction to run your script after the last line and save:

display-setup-script=/usr/share/lightdmxrandr.sh

Now reboot and that should set the correct resolution on your lightdm log in screen.

(these instructions might look long but they don't take long at all)


What is the difference between "Connect to server..." and sshfs?

Well gnome network connections are gvfs only, not fuse at all. They have no mount points. In order to save and load files from them you need to use a program that supports the GIO calls, which sucks for programmers and means they don't work for KDE apps.

The fuse filesystem on the other hand has an actual mount point, so it's easy to see where the files are and it obays normal UNIX logic for saving and loading files. Any application can save and load from the filenames.


Recover clipboard after shutdown or system failure/freeze

1) I don't think so. If there was, Malicious Mallory could potentially take your old PC and scan your copy/paste history for important personal info. It makes sense that copy/paste history is not saved anywhere.

2) I used to have it setup, but got rid of it for the same reasons above. You can set it up by following this beautifully written guide: http://mpov.timmorgan.org/super-simple-clipboard-history-for-linux/

Sorry for your loss, but wish you luck for the future!


Choose OS from BIOS menu, NOT GRUB, 2 EFIs 3 Disks

EFI boots by files, not by partitions or by devices. For more information on how it works, please see:

Adam Williamson's blog entry on how EFI works -- This page describes the theory behind EFI-mode booting.
A question and answers on the differences between BIOS and EFI booting on Superuser.com -- This provides the basics of the preceding, but is more concise.
My page on EFI boot loaders for Linux -- This page describes EFI boot loader choices for Linux systems.

Note that something will normally be the default boot manager, whether that's the Windows boot loader, GRUB, and EFI shell, or the fallback boot loader on an external disk. Personally, I don't see a boot to Windows, or to something of limited utility (like an EFI shell) as being a useful default in most cases. In a multi-boot environment, you probably want the default boot to be to a boot manager, which is one of GRUB's functions. If you boot to one OS most of the time, setting that OS as the default in GRUB is perfectly sensible, of course, but that's another matter.


Ubuntu 12.04 LTS Lan Driver for Atheros AR8132

Install the package linux-generic-lts-quantal. This will activate the LTS Enablement Stack, which will upgrade the Linux kernel in your 12.04 LTS to the version in Quantal (12.10). That kernel (3.5.0) has built-in support for the alx driver, which you need.


From the terminal type:

cd Desktop

The name of the Desktop folder is case sensitive. Then run the rest of the commands in the tutorial as usual.


Nothing to do with Ubuntu, I'm afraid. This is something that the VNC server software is responsible for. The way of setting it also varies from server to server.

Here's an example of how you might do it with RealVNC:

  To disable the Connection Alert feature, set the "ConnNotifyTimeout" setting in the VNC Server "Expert" settings tab to "0".


There are many great tools to multi-task and work with many windows built within ubuntu .

You should watch this video from Jorge Castro about multi tasking .

It talks about

Multi-taking with the launcher
Alt +Tab
Workspaces
Expo

and more .


Is there an Postgres ERD tool (or pgAdmin III plugin)?

EMS SQL Manager for PostgreSQL

http://www.sqlmanager.net/products/postgresql/manager

Powerful visual database designer

Two diagram notations (IDEF1x and IE)
Useful diagram navigation tool
Reverse engineering
Several pages in one diagram to divide diagram into different subject areas
Ability to create, edit and drop tables and table fields, set links between tables visually
Ability to add comments to diagram
Saving as image or printing database diagram
A lot of visual customization options

It is a windows program but works preety fine under wine


Try removing the XAMPP directory again and rebooting. You can reinstall if you want, but I personally think that installing a LAMP stack as the Community Documentation describes would be a much better idea. You'll also want to apt-get install phpmyadmin.

Edit: Or you could just sudo apt-get install php5 mysql-server apache2 phpmyadmin. I think that would actually be my preferred method personally.

Edit2: Your phpMyAdmin will be accessible at http://localhost/phpmyadmin, and your files will go in /var/www.


How Do I Get More Than 16TB Out Of EXT3?

The problem is that ext3 do not support more than 16 TiB using 4 KiB blocks. Either you chang the block size or transform the drive to ext4. Transforming can be done online, just changing the mountpoints and activating the options as shown in the Ubuntu Help:

Edit your /etc/fstab file and change the ext3 entry for ext4. Reboot the system.
Acctivate the options:

sudo tune2fs -O extents,uninit_bg,dir_index /dev/sda1

If you installed grub in the same partition, you should reinstall it:

sudo grub-install /dev/sda

Here is a table with the specific limit size of ext4 and ext3:

Ext3 Size limits

The max number of blocks for ext3 is 232. The size of a block can vary, affecting the max number of files and the max size of the file system:

Block size       Maximum         Maximum
                 file size       file system size
1 KiB            16 GiB          2 TiB
2 KiB            256 GiB         8 TiB
4 KiB            2 TiB           16 TiB
8 KiB            2 TiB           32 TiB

Ext4 Size limits

The ext4 filesystem can support volumes with sizes up to 1 exbibyte (EiB) and files with sizes up to 16 tebibytes (TiB). Volumes larger than 16 tebibytes (TiB) are not recommended.