Nautilus and the Disk Utility in Ubuntu Doesn't Recognized Veracrypt Encrypted USBs

It is the normal behavior for a Veracrypt encrypted partition / drive. Linux does not recognize this partition / drive, it just detects that there's something.
Then you use Veracrypt to decrypt the partition / drive.
It mounts it as a normal partition / drive that can be seen by Nautilus and the whole OS.
That's even one of the points of encrypting a whole partition / device : if you don't know that it was encrypted, you might just think that it is damaged.
If you want to have a recognized partition / drive, even without mounting it, then you can rather reformat it to a known file system (let's say Ext4) and create an encrypted file on it.


Ubuntu: show what keys are pressed in real-time

Install keymon. It's in the Universe repository and run it using key-mon (not keymon!).

man keymon has this:

  Keymon - Keyboard and mouse monitor window for GTK.

Do read man keymon for all the options available.

You should also right-click on it to check that the settings are appropriate for you.

And if you don't like the default location, drag it to a more suitable position on your screen.

An alternative is screenkey, also in the Universe repository. A feature of screenkey is that it's interface only when you type something and disappears after a few seconds if the keyboard is inactive. However, unlike keymon, screenkey doesn't register mouse clicks.

There's a YouTube video on both keymon and screenkey. The video's in German but still is easy to follow.


I followed a thread on Ubuntu forums to solve this problem. There seems to be a line missing from this maintenance script file:

/var/lib/dpkg/info/libreoffice-base.postrm

The missing line,

/usr/lib/libreoffice/share/basic/script.xlc

needs to be added to the end of the file's second if statement, just above the closing fi, like so:

--divert /usr/lib/libreoffice/share/basic/script.xlc.noaccess \
/usr/lib/libreoffice/share/basic/script.xlc
fi

After adding the line, using (for example):

sudo nano /var/lib/dpkg/info/libreoffice-base.postrm

restart your computer and remove libreoffice-base with the following command:

sudo apt-get purge libreoffice-base libreoffice-report-builder-bin libreoffice

Once this process completes, restart and execute the following to reinstall libreoffice:

sudo apt-get install libreoffice-base libreoffice

Once libreoffice had been successfully reinstalled, I ran:

sudo apt-get update
sudo apt-get upgrade

without error.

This handful of steps and with additional reference to a bug report solved my problem.


Why can't I install Ubuntu or Wubi on a Windows Dynamic Disk?

Note: Wubi is Ubuntu installed onto a Windows drive via the Windows installer

Neither Ubuntu nor Wubi will boot from a dynamic disk
Neither Ubuntu's bootloader GRUB nor Wubi's bootloader GRUB4DOS can recognize a Microsoft dynamic disk/volume/partition (SFS), and so they cannot boot from it; there is no sense in installing either when you won't be able to boot.
You have three options:

Convert the dynamic disk to basic (backup all data first!), after which you can install Wubi or dual-boot with Ubuntu.
Add another hard disk to your system, install Ubuntu on it and set your system to boot from it; you can choose to boot Windows or Ubuntu from the GRUB menu at startup
Keep the disk as is, and run Ubuntu in a virtual machine, such as Virtualbox or VMWare Player.


Full windows partition shows up as device in Ubuntu

No need to worry.

It's absolutely normal to see any partitions including Windows ones under "Devices".
Mounting and unmounting are local to Ubuntu. Whenever you shut down Ubuntu, any mounted devices will be unmounted anyway, and when you go back into Windows the Windows partitions will be available to Windows.

For more information about mounting see:

What does it mean to mount something?


Lost Steam games stored in NTFS partition upon upgrading to 13.04; can't re-add Steam Library Folder

I also have Steam libraries on an NTFS partition, on Ubuntu 13.04, here is the fstab entry for that partition (I removed the rest):

# <file system>         <mount point>      <type>   <options>       <dump>  <pass>
...
...
...
#add execution right on data partition
UUID=50B06A2EB06A1B2C /media/etienne/data   auto    auto,exec         0       0

You probably need exactly the same options except for the partition's UUID, to get the UUID of your partition, locate your partion in /dev and use blkid, for an example if your partition is /dev/sda1 use: sudo blkid /dev/sda1 You will get a result like this:

etienne@etienne-laptop:~$ sudo blkid /dev/sda7
/dev/sda7: LABEL="data" UUID="50B06A2EB06A1B2C" TYPE="ntfs"

If it still doesn't work it means you need to add other mount options, in this case have a look at that question.


The AX210NGW requires at least Kernel version 5.10, which was only very recently released. I currently do not know, when Ubuntu will include that, maybe others do.


The issue was that somehow, some of the updates were corrupted, and did not complete (or similar, not really sure what happened, or why).

To fix, run the following:

sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get install -f

And then restart.


Zebex Z-3100 USB scanner drops character

I have exact the same model. I almost threw the scanner away because of this problem. After years, I finally found the solution. It's right on the their website: http://www.zebex.com/supportsservices/Faq_Scanning_BarcodeReading.html

How do I correct the problem where data is outputted incorrectly only
when the scanner is connected via USB port?
When the scanner is able to read the barcode the problem may be caused
by the incorrect host interpretation of the USB protocol. Please use
the following barcodes to adjust the USB speeds.
．USB0: Regular speed mode. Usually for older operating systems like
Windows 98 when default setting is not working.
．USB1: Full speed mode. The default speed of the scanner.
．USB2: Middle speed mode. Usually for Mac O.S. or Linux O.S when
default setting is not working.

I set the scanner to use USB2 mode, and it worked fine. (Damn! They should have put it the document.)


If your live usb was created with persistence then it can be updated. However, to fit an entire Linux distribution into a small space it has been compressed & made read only via the squashfs method. So when it updates it recreates the updated parts of the file system outside of the squashfs, taking up a much larger space.

My live Kubuntu 16.04 had 500 MB of updates which finished using 4 GB of space - which fills up a normal casper-rw file. I had made a 8 GB casper-rw partition, hence I still had space.

I suggest you stick to security updates only.

When I made my usb I created 4 partitions: for the main file system, casper-rw for persistence, home-rw for my stuff, and a ntfs partion for sharing files. If the live iso images are updated, then the usb can be updated by copying the new iso files into the old usb. I'm also thinking about unsqashing the file system, updating it in virtualbox and resquashing it.


It turns out most people expect you to install via apt, so finding alternative methods of installing python weren't the easiest so I'll document different methods here

Method 1

The first method that worked for a friend running the same distro as me (pop_os) was to escape the period in the apt install command

sudo apt install python3\.6

Method 2

Second method is installing directly without an installation tool

# Install dependancies
$ sudo apt install build-essential checkinstall
$ sudo apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

# Retrieve and unzip package
$ wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz
$ tar xvf Python-3.6.0.tar.xz

# Make
$ cd Python-3.6.0/
$ ./configure
$ sudo make altinstall

If you run into any issue makeing, try installing zlib1g via sudo apt-get install zlib1g-dev


Resize root partition using uncontiguous free space

Yes, what you describe should work. I have resized my ext4 partitions many times using gparted.

Why do you say "it is not possible"? What happens when you try?

Although gparted is very reliable, you should always backup important data before making any partition changes.


How to access efi boot partition as read-write?

i figured it out my self ...
i used chkdsk command in windows 8 and it repaired the partition.

thanks if anybody took pain to solve this ..
i would have deleted this question the same day i posted it here but i don't know how to.
sorry


There are no automated rootkit removal tools for Ubuntu, only tools to check for rootkits.

chkrootkit and rkhunter are fairly robust tools when it comes to detecting rootkits, but they're only as good as their rules. Also look into tripwire, which checks critical files for changes.

You should have all of the above run regularly via cron.


I don't think we can anymore. Even through about:config you can set it to false but it still opens the developer console. There is 1 option that is guaranteed to work but it is not the nicest of methods: change the source and compile firefox. File ...
./devtools/startup/locales/en-US/key-shortcuts.properties

has an ...
inspector.commandkey=C

Change that to something else and recompile firefox.


How can I have a dash-like search under Xfce?

If you don't like the xfce-appfinder, you can replace it with another offering from the application store. synapse is a very capable example. Then assign the Alt+F2-shortcut to it.


Classpnp.sys causes windows to hang after ubuntu install

Most OS installations, including Windows, are made in one boot mode (BIOS/CSM/legacy or EFI/UEFI). Switching to another boot mode requires installing a new boot loader, and often changing the partition table type (MBR to GPT or vice-versa). Switching quickly from one boot mode to another is possible with Linux, which is pretty flexible; but I've never heard of successful dynamic boot-mode switching with Windows.

A second issue to consider is that it's almost always best to coordinate boot modes across OSes. That is, if Windows is configured to boot in EFI mode, you should install Linux in EFI mode too; and if Windows is in BIOS mode, you should install Linux in BIOS mode, too. Doing otherwise is possible, but requires extra hoop-jumping.

In most cases, Windows is the first OS installed on a computer. Thus, you should determine the Windows boot mode. This is normally tied to the partition table type: The Windows BIOS-mode boot loader understands MBR but not GPT, and the Windows EFI-mode boot loader likes to see GPT. You can easily check your partition table type in Linux:

$ sudo parted -l | grep Table
Partition Table: gpt

If you get several lines of output, that means you've got several disks. (Removable disks count, so remove them first.) A GPT disk shows up as being of type gpt and an MBR disk shows up as of type msdos. Using this information, you should know how Windows should be booting. If you've got multiple disks and they're of different types, you'll need to figure out the type of the Windows boot disk.

If you've installed Linux in the wrong mode, the solution is to install an appropriate boot loader for Linux. It sounds like you've got a BIOS-mode Windows install but you've managed to convince Ubuntu to install in EFI mode. (This requires some tenacity, but can be done.) If so, you should install the grub-pc package, which will replace grub-efi, then run sudo grub-install /dev/sda to install GRUB. You may also need to do an update-grub. Alternatively, the Boot Repair program should do this all automatically, but you must run it from the proper boot mode, which may mean booting an emergency disk in the right boot mode.

If you run parted and find that your partition table type is GPT rather than MBR, then something else is going on -- chances are GRUB has misidentified your Windows boot loader. In this case, I'd need more information to offer a specific suggestion for a repair. The RESULTS.txt file generated by Boot Info Script would be helpful. Post it to a pastebin site and post the URL to your document here.

EDIT:

Based on your Boot Info Script output, you've got a GPT disk, and there's no evidence of any BIOS-mode Windows boot loaders installed on any of your partitions or in your MBR. Furthermore, the partition layout is consistent with what an OEM delivers with Windows pre-installed in EFI mode. Thus, it's unlikely that Windows is booting in BIOS/CSM/legacy mode, as you state at the start of your question. I suspect that you've enabled the CSM in your firmware and Windows boots with that enabled, so you've mistakenly assumed that Windows is booting in BIOS mode. That's an unjustified conclusion, for reasons I explain on this Web page. To simplify the boot process, I recommend you disable the CSM (aka "legacy support" or something similar) in your firmware, at least for testing. With it enabled, you throw the dice for boot mode whenever you boot a new device (like an OS installer).

OTOH, Boot Info Script has also failed to turn up evidence of an EFI-mode Windows boot loader. Sometimes it simply fails in this task, for reasons I don't understand; but it's also possible that the files are missing. You may want to look for them "by hand." The most important file is EFI/Microsoft/Boot/bootmgfw.efi on the ESP -- that is, /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi from Ubuntu.

Your Boot Info Script output indicates that both EFI-mode and BIOS-mode versions of GRUB are installed, and your GRUB configuration file is set to chainload to the (possibly non-existent) EFI-mode Windows boot loader.

Overall, I recommend you try this:

Boot to Windows in whatever way you can and disable the Windows (not firmware) feature called "Fast Startup," as described here. This feature, if enabled, causes nothing but trouble on dual-boot configurations, and it could be a cause of at least some of your problems.
After this is done, reboot to Windows a couple of times and shut down cleanly. This should get the disks properly unmounted.
Try booting to Windows via GRUB. It may begin working at this point, but I can make no promises.
If GRUB still can't boot Windows, download the USB flash drive or CD-R version of my rEFInd boot manager and prepare a boot medium.
Boot to the rEFInd medium. It should show options to boot both Windows and Ubuntu. Try them both.
If rEFInd boots both your OSes, install its PPA or Debian package version. rEFInd should then take over from GRUB as your primary boot manager.
If this fails, you could try Boot Repair, but I'm skeptical it will help, since I don't see anything obviously wrong with the GRUB configuration, based on your Boot Info Script output, except possibly for a missing Windows boot loader file. Speaking of which....
If you find the bootmgfw.efi is missing, you can skip all of the above after step #1. Instead, you must re-install the Windows boot loader, which you must do using Windows recovery media. After doing this, you'll probably have to use EasyUEFI or bcdedit to reset GRUB as the default boot manager.


We need a printer for ubuntu 12.10. How do I know it will be recognized by ubuntu?

just head to ubuntu.com

Official Ubuntu list

FSF list (for open source systems)


Ubiquity installer reboots on selecting "Install alongside Windows"

It's been so long since I've duel booted Windows, but I do believe that current Ubuntu distros can be installed from with in Windows via wubi. This page may help:

http://www.ubuntu.com/download/help/install-ubuntu-with-windows

Start up Windows and pop in the ubuntu dvd, or the usb to make things a lot faster. Wubi may autorun if you're using the liveCD, and if you're using the usb just open it up and click on the wubi icon.

FYI, installing Ubuntu then Windows usually messes up the boot loader (grub) and will only boot Windows.


How can I debug why Ubuntu boots to BusyBox?

Boot from a live USB stick or DVD and run:

sudo fsck -a /dev/sda1

Important! --> replace /dev/sda1 with your Ubuntu partition.

Youo can locate the correct partition with the command lsblk which will provide you with output similar to what you see below your Ubuntu partition is the one shown at mountpoint /:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 119.2G  0 disk
├─sda1   8:1    0  12.4G  0 part
└─sda2   8:2    0 106.9G  0 part /
sdb      8:16   0   1.8T  0 disk
└─sdb1   8:17   0   1.8T  0 part /home
sdc      8:32   0   2.7T  0 disk
├─sdc1   8:33   0   2.7T  0 part /srv
└─sdc2   8:34   0     1G  0 part [SWAP]
sr0     11:0    1  1024M  0 rom


users command lists 5 of the same users...Is this normal?

Each terminal or SSH login adds another entry to the users list. So if you are 'user' you probably have another four terminals opened and/or SSH sessions.


cloudinstall.config.ConfigException: Unable to load environments file. Is juju bootstrapped

I realise where is my issue

maas_server: 172.16.0.1/MAAS

I've given the IP of MAAS follow with /MAAS
to fix it

#to remove the proxy configuration
http_proxy=
https_proxy
sudo mv ./.cloud-install ./.cloud-install-backup
sudo openstack-install

when ask for MAAS IP give only the IP

NOTE: if you are working behind proxy remove proxy configuration


Why does Chromium apply different Japanese font than specified in settings?

This issue appears to be caused by Japanese fonts being installed in the user home directory: ~.local/share/fonts/.

To resolve it, it's necessary to delete the Japanese fonts in ~.local/share/fonts/. (To view hidden files, press Ctrl+H in the Files app.)

Japanese font packages (e.g., fonts-aoyagi-kouzan-t) installed from the Ubuntu repositories as root will not cause this issue in Chromium.


What is the proper way to use a package cache with MAAS or Juju?

Yes, you can tell Juju to use any apt proxy you have set up:

https://jujucharms.com/docs/stable/juju-misc#configure-proxy-access

Specifically you want to set apt-http-proxy and/or apt-https-proxy.


Radio tray icon applet does not load in Unity

The latest version from sourceforge (at the time of writing this, it is version 0.6.4) now has both app-indicator support (for Natty) and notification area support (for other ubuntu variants and versions before 11.04).

Install the application via

cd Downloads
sudo dpkg -i radiotray_0.6.4_all.deb

then start the application:

nohup radiotray &

this will display the choice screen:

Click OK for Natty (or change the option).

Radiotray should appear in the app-indicators area of Natty.

To get Radiotray starting automatically - open Natty dash and search for startup application.  You can then add a new entry with the command line radiotray


For auto-resize to work, you also need to install the Virtualbox Guest Additions.


https://forums.lenovo.com/t5/Windows-10/Which-partition-should-i-delete-for-Windows-10-Clean-Install/td-p/2150372

First do a full backup of Windows. You paid for it. You may later find you must use Windows for one application or want to sell system and buyer only Wants Windows.

If you do a Lenovo backup it may offer to delete #8 the PBR_DRV.

Partition 1: WINRE_DRV - Windows recovery
Partition 2: SYSTEM_DRV - ESP or required for UEFI boot by all systems.
Partition 3: LRS_ESP - Lenovo specific .efi files
Partition 4: Unknown 128MiB partition - required by Windows.
Partition 5: Windows10_OS - Windows main c: drive
Partition 6: ext4 -    Linux
Partition 7: linux-swap
Partition 8: PBR_DRV- Lenovo backup
Partition 9: Unallocated 1MiB - not a partition, rounding on unallocated space.

If you have done the full backup, you only need 2, 6 & 7 for Ubuntu (and #2 & your data, configuration/settings and list of installed apps in #6 should also be backed up), but then may want /home or data partitions to keep operating system separate from data.


Unable to play proprietary media formats even after installing restricted extras

Install gstreamer0.10-ffmpeg and it should play fine.


How to use a bootable USB on another machine without grub?

You need to have grub installed on the USB stick or the hard disk of the host machine. In your case as you want it bootable on any machine, you need it installed on the USB stick and boot the USB using BIOS option.

OBS: there is no problem on your machine to have GRUB on your HD (to dual boot with windows) and on the stick. If you boot from your HD, you'll have your usual options and GRUB on the stick will not be used. when you boot from the USB, GRUB on the stick will be used and you will have the options you defined there (probably only booting the Ubuntu on the stick as if you use it on many machines, you don't know what will be on these machines)

Installing GRUB2 on the USB stick:

Open a terminal and type:

sudo su
fdisk -l #to see the device for your USB stick
# Replace all /dev/sdx with your USB device from line above
mkdir /mnt/USB && mount /dev/sdx /mnt/USB #DON'T FORGET TO REPLACE
grub-install --force --no-floppy --root-directory=/mnt/USB /dev/sdx #REPLACE


For 14.04 (and possibly others but IDK)

Run the following commands:

$ sudo apt-get install libdvdread4
$ sudo /usr/share/doc/libdvdread4/install-css.sh

After they finishes executing, encrypted DVDs should work right away, but if they don't, try rebooting.  This worked perfectly for me - before I did it, encrypted DVDs would crash the Videos program and give an error report.  After, they play flawlessly.

For 16.04

Reference

Enter the following commands:

$ sudo apt install libdvdnav4 libdvdread4 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg -y
$ sudo dpkg-reconfigure libdvd-pkg

After that you should be able to play encrypted DVDs (reboot may be necessary)


Your IPython and IDLE editions are based on different major versions of Python (2 and 3 respectively). For your projects you need to use either one or the other for consistency. The relevant package names for the two Python versions are:

Python 2: idle ipython python-numpy python-scipy
Python 3: idle3 ipython3 python3-numpy python3-scipy

You can install all of them side by side, but you'll get into trouble if you try to run the same piece of software on both except for the most simple cases.


how to install xrdp on ubuntu 14.04 (trusty)?

I use the scareygliders script to install XRDP as it is more stable than the default ubuntu xrdp package and also gives you copy and paste functionality between the host and client.

However, I had issues setting up XRDP with lubuntu and standard ubuntu desktops so I eventually went with xubuntu desktop:

sudo apt-get update
sudo apt-get upgrade
# I'm not sure if xvfb is required, but have installed it just to be sure
sudo apt-get install xubuntu-desktop xfce4 xvfb

git clone https://github.com/scarygliders/X11RDP-o-Matic.git
cd X11RDP-o-Matic
sudo ./X11rdp-o-matic.sh --justdoit
echo xfce4-session >~/.xsession
# if screensaver hogs the cpu
echo 'mode: off' > ~/.xscreensaver


Aten CS22U hotkey scroll lock not switching desktops

Scroll lock is not enabled by default in Ubuntu.
Try to enabled it with:

xmodmap -e 'add mod3 = Scroll_Lock'

Be aware that when you restart this setting will be gone again.
To make it permanent you can use a startup script which includes this command.

Another way is this small script which you can map to a key.

#!/bin/sh
notify-send \
        --icon=keyboard \
        --hint=int:transient:1 \
        --app-name=kvm \
        "Switching KVM input"

        xset led 3
        sleep 0.2
        xset -led 3


I have a directory named -H and would like to change the name of it

To rename it (to foobar.dir):

mv ./-H foobar.dir

to access it:

cd ./-H

I would suggest you to look at this answer to get more idea on this.


Hi actually you are not following the syntax properly .

To Compile a java file you have to do

javac filename.java  and for your case that command will be javac HelloWorld.java

to Run a Java file  you have to do

java filename and for your case java HelloWorld


I had the same problem, I solved by installing the "handler" suitable for all accounts that I had before upgrading. Search in synaptic: gwibber-service-name, something like gwibber-service-twitter and install those that are needed.


Installing Adobe CS5.5 Master Collection on Ubuntu 16.04.1 LTS Xenial Xerus

In short, yes. You are doing something wrong. I.E. trying to install software under WINE that doesn't work under WINE. I understand your frustration as I have had a similar experience with a software package I needed that also would not run under WINE. While your options are limited in this regard, you do have options.

1. Virtual Machine.

You can install Virtual Box and install a copy of Windows in a virtual machine and then install your software. (This is the option I used when I had a requirement for an Access Database that also would not run under WINE)

2. Dual boot

This is a similar solution that requires installation of Windows alongside    Ubuntu. This approach has some technical issues as Windows will ignore Ubuntu and act as if there is nothing in the partition that your Ubuntu installation resides in. Due to the very real possibility that Windows will destroy your Ubuntu during installation this course of action is only viable for those who:

A) Have a tried and true backup and restore plan.

and

B) Are capable of either handling multiple drives with finesse or planning  and executing partitioning plans.

Visit Software Recommendations and use the assistance there to help you locate open source software that will accomplish the tasks you would be using Adobe CS 5.5 Master Collection for (for example gimp to accomplish tasks you would use Photoshop for under Windows)


upgrading 9.04 to a later version of Ubuntu

Always make backups of important data first.

After you've rescued your files, do a clean install of Ubuntu 12.10 (or 12.04). (Note, this will delete all files on your harddisk, so make sure you've rescued any important data before you do this).

Alternatively, you could try to upgrade automatically from 9.04 to 12.10 by following these steps: upgrade from 9.04 to 12


Cannot find other disk partitions after installing Ubuntu

Since you used the option to Erase disk and install Ubuntu, all your previous partitions got erased and the current one was created.

You can try installing and using testdisk and see what you can recover but I wouldn't be very optimistic unfortunately.

In cases where you need to keep some of your partitions, you must use the Something else option and handle partitioning manually.


Can't Boot into either Windows or Ubuntu

You cannot get rid of a GPT partition. GPT is a table type as is an MBR partition table. Since it appears you have a Windows 8 installation disc you can always disable UEFI, and install both operating systems in CSM (legacy bios mode) with an MBR partition table.

If you wish to install under UEFI then use GPT for both operating systems. If Ubuntu isn't recognizing your partitions, open Gparted in the Ubuntu live-cd and verify that it DOES see the table. I would suggest creating the partition table in Gparted, installing Windows, and then installing Ubuntu.


Hi this might probably fix your issue  https://help.ubuntu.com/community/Samba/SambaServerGuide   grts


Can be related to you VPS ip address. You must have valid mx record and valid A and ptr record for VPS ip address.
Check with following commands

  host -t mx youdomain.com

You will get mx record from dns server

  host mail.yourdomain.com

after that

  host ip_address_of_vps

This is firs thing for chacking

Also you can check http://www.dnsbl.info/dnsbl-database-check.php.
Maybe is your mail server on some blacklist.


Firefox doesn't respect font hinting setting in Gnome? How to fix this?

Configuration files and directories: ~/.fonts.conf/, ~/.fonts.conf.d/ and ~/.fontconfig/*.cache-* are deprecated since fontconfig 2.10.1 and will not be read by default in the future versions of the package. New paths are $XDG_CONFIG_HOME/fontconfig/fonts.conf, $XDG_CONFIG_HOME/fontconfig/conf.d/NN-name.conf and $XDG_CACHE_HOME/fontconfig/*.cache-* respectively.

Ref: Fontconfig commit

Update: See thread Full font hinting not working in Ubuntu 18.04


The export CLASSPATH=/location command will work only for the current terminal session. To make the changes permanent add the line

export CLASSPATH=/location

to ~/.bashrc or ~/.profile


Nmap doesn't currently have a way to query the ARP table directly, but you can still use it manually.

First, extract the IP addresses from the ARP table with the arp command:

arp -n | awk '$2=="ether"{print $1}' > ips.txt

Next, run Nmap, forcing it to scan regardless of ARP responsiveness:

nmap -iL ips.txt -Pn --disable-arp-ping

You can add whatever other options you like to the end of this command.


Reducing power consumption of second HDD

To put your second HDD (I suppose /dev/sdb) to standby immediately, you can use

sudo hdparm -y /dev/sdb

To put it to standby after a minute of inactivity, you can use

sudo hdparm -S 12 /dev/sdc

(time is counted in 5s for 5s to 20min)

To make this setting permanent, you can write it in /etc/hdparm.conf:

sudo gedit /etc/hdparm.conf

and there:

[...]
/dev/sdb {
    spindown_time = 12
}


The procedure I use is:
sudo apt-get install htop apt-file
sudo apt-file update
htop
f2 for setup
Navigate with the arrow keys Down Arrow,Right Arrow,Space to toggle tree view, Esc to get back to menu(because you can't send F10 to the gnome-terminal easily).  You can also do this with the mouse.

Now you get more informative information about exactly how each process is launched and other files it might load.  So oneconf-service for example.

man oneconf-service and man oneconf yield nothing.  apt-cache search oneconf-service yields nothing.

apt-file search oneconf-service yields oneconf: /usr/share/oneconf/oneconf-service
apt-cache search oneconf yields oneconf - synchronize your configuration data over the network

To go back to your particular ones in question:
for apt-file search gvfs-gphoto2-volume-monitor you get:

gvfs-backends: /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
gvfs-dbg: /usr/lib/debug/usr/lib/gvfs/gvfs-gphoto2-volume-monitor

And apt-cache search gvfs-backends yields:
gvfs-backends - userspace virtual filesystem - backends

apt-file search 'rtkit-daemon' yields:

rtkit: /lib/systemd/system/rtkit-daemon.service
rtkit: /usr/lib/rtkit/rtkit-daemon

apt-cache search rtkit yields:
rtkit - Realtime Policy and Watchdog Daemon

Edit to address comment:
I recommend htop because you can see other loaded modules not just the process name.  If something launches in a funny way, the output of ps/process name may not show you something horribly useful.

Apt-file can find things that are named differently than the package name and aren't in the package description.  It lets you track any file installed by a package back to the package.

userspace users can control it virtual filesystem not exactly a filesystem, but it acts like one - backends the part you don't see.  If you check in htop, it talks over dbus(it shows in loaded modules).  This makes me think it lets users manipulate filesystems/mounts/devices over dbus (a common way to grant super-user privileges without requiring sudo and using package-kit instead).  So when you combine htop output, knowing a common use for dbus, and the description, it becomes a lot more clear.

Watchdog a process that monitors another to make sure it doesn't run out of control daemon something that runs as a service.  So it's a process that monitors other processes to make sure scheduling doesn't get out of control.


You can change screen resolution size via CLI , use following cmd:

xrandr

(It will show you current screen resolution and available modes.

Now you can change the size by issuing this cmd:

xrandr --output VGA-0 --mode 1024x768

Note:

(change the VGA-0 according to what xrandr shows vga syntax for your card, in my example it shows VGA-0)


If you have modern distributive (kernel 2.6.x and up) - yes. Here is step-by-step instruction how to check it: http://mirrors.deepspace6.net/Linux+IPv6-HOWTO/systemcheck-kernel.html


Use this command in your terminal to enable the overlay scrollbar:

gsettings reset com.canonical.desktop.interface scrollbar-mode

Then, if you change you mind and you want to disable it, run this:

gsettings set com.canonical.desktop.interface scrollbar-mode normal


mysql/percona: Unable to set password for the Percona Server "root" user- ppc64el

Resolution

This shows example of how to fix it using a standalone bundle only for mysql (percona).
Basically one has to allow openstack40 bundle to go to the point of mysql charm
failure and then you have to fix up things.  Below is the excercise we went through to make only mysql(percona) charm to work after it hit issue. Just change percona.yaml to openstack yaml you use.  Note that for ppc64le you have
to get the openstack 40 yaml and update it to arch=ppc64el since the charm store
openstack 40 bundle is only x86 relevant.

Deploy mysql / percona

 juju-deployer -c /root/.juju/bundles/percona.yaml -s 90 -d -v

Hit the mysql password issue. The problem that is listed above.
Set password in mysql container

chroot /var/lib/lxc/juju-machine-0-lxc-1/rootfs/

 passwd root

---> for POC password: xxxxxxxx

 exit

Note we list lxc machine juju-machine-0-lxc-1in example.  It has to
be the lxc that mysql is deploying to.
Login to container

lxc-console -n juju-machine-0-lxc-1

Fix problem

UPDATE mysql.user SET Password=PASSWORD('PASSW0RD') WHERE User='root';

FLUSH PRIVILEGES;

exit

https://serverfault.com/questions/502840/percona-mysql-unable-to-start-error-the-server-quit-without-updating-pid-file
Tell juju fixed charm

juju resolved mysql/0 --retry  --show-log --debug

Redrive, shows previous steps are deployed and continues from failed charm.

juju-deployer -c /root/.juju/bundles/percona.yaml -s 90 -d -v


You can click on the Spotify icon and click quit or Go into Spotify > Prefs > Show/Hide Panel Icon


Clean and simple. Yes, a lot of people run their /home on separate partitions and even separate HDDs. I know, I do.

As far as best practice. SSDs tend to 'wear out' because of read/write or better yet write/erase/write. Any way since the SSD would be used mainly as being read rather than write/erase I would think this is a good move.

Linux OS file systems are not as intrusive as others therefore once the SSD has been written, booting from and running is mostly ALL read files. Saving your /pictures , /documents, /vids and such should be done on the HDD as it can receive a lot of read/write activity and remain operable.

This is a ref for you Installing Ubuntu on a SSD


I have a windows 8.1 and I would like to know how to install ubuntu 13.10 on it? I have tried numerous times with no success

By on it do you mean virtual Machine or dual boot?

For Dual boot download the distribution you wish to install. You need one or two empty partitions on your hard drive. Place the installation files on a USB (have to make it bootable) or CD and boot from it. Install on the empty partition (format of course)

For Virtual Machine. Download your virtual machine or choice. Open it and add new virtual machine. Add the distro file to your machine and load it.

I personally use VMware on my desktop and have only Xubuntu on my laptop. (need the windows for Games)


How to change terminal prompt color to black?

If your term is in an X window, change the line
xterm-color|-256color) color_prompt=yes;;
to
xterm-color|-256color) color_prompt=no;;
in .bashrc


Unable to record audio from laptop mic Xubuntu 12.04

Next step in troubleshoting this is to install pavucontrol and check that in Configuration tab you select Audio Stereo Duplex and then check the Input Devices tab check the mute button is pressed and check the volume and the metter there. With some luck you can find a configuration that will work for you.
To install pavucontrol install the pulseaudio-utils   package


PDFs generated by LyX not searchable in 12.10 or 13.04

This doesn't sound related to ubuntu. It's much more likely that you're generating pdf files that aren't lining up with your expectations.

Since you're doing pdf programming, it's worth knowing there are two main render libs for linux: poppler and mupdf. Gnome's default pdf viewer (and Unity's) is evince; it uses poppler. I usually test mupdf by building the latest version of llpp. But don't forget that Chrome ships with a pdf viewer plugin that I think is based on or made by Adobe. And Firefox now comes with pdf.js. Pdf.js is under heavy development. It's likely you'll hit some bad render bugs in firefox right now, but it's rapidly getting better (and all the bugs I've found were already fixed upstream..).

My most recent is experience is with itext, but I also like using tex/xelatex. I don't have problems making pdfs with searchable text. Since you're using tex stuff, you'll likely get better answers over at http://tex.stackexchange.com

my tests

I encountered zero problems with search / select / copy / paste behaviour. Admittedly, I didn't create the pdf's on ubuntu.

files made with:

itext (images interspersed with text)
xelatex (hello world text)
lyx -> pdflatex (hello world text)

OS:

ubuntu 12.04 livecd
ubuntu 13.10 livecd

programs:

firefox / pdfjs
evince / poppler


What's going on with package management after upgrading to 20.04LTS?

Good job checking your output! You just saved yourself some hassle.
First, let's check to see if the package is included in a desktop metapackage that was removed. The following tells us that the package xfce4-clipman is included with the base lxqt desktop, but not the base xfce desktop. For xfce users, it's optional.
$ apt rdepends xfce4-clipman
xfce4-clipman
Reverse Depends:
  Depends: lxqt
  Depends: xfce4-clipman-plugin
  Recommends: lxqt-core

There are two ways to tell the system that you really want a package after all (to make the package ineligible for autoremoval). Under the hood, these two methods do the same thing: They change the apt-marking from auto to manual:
$ sudo apt-mark manual <packagename>
$ sudo apt install <packagename>        // yes, even it it's already installed

If you later change your mind, and you don't want the package anymore:
$ sudo apt-mark auto <packagename>      // Do not remove now; just make eligible for autoremoval
$ sudo apt remove <packagename>         // Remove now; don't wait


Error installing Ubuntu Server 18.04: Invalid Poolname

I had this same problem. I tried live and "real" releases suggested by AlexP, but still have the same problem.

Then I changed the software for burning the ISO to USB, from Startup Disk Creator to UNetBootin, and then the problem no longer occurred and the system successfully installed.


How do I configure my caching nameserver to validate DNSSEC?

Install and set up your nameserver (bind9 package) normally, and then just add the following stanza to /etc/bind/named.conf.options:

managed-keys {
  "." initial-key 257 3 8
    "AwEAAagAIKlVZrpC6Ia7gEzahOR+9W29euxhJhVVLOyQbSEW0O8gcCjF
     FVQUTf6v58fLjwBd0YI0EzrAcQqBGCzh/RStIoO8g0NfnfL2MTJRkxoX
     bfDaUeVPQuYEhg37NZWAJQ9VnMVDxP/VHL496M/QZxkjf5/Efucp2gaD
     X6RS6CXpoY68LsvPVjR0ZSwzz1apAzvN9dlzEheX7ICJBBtuA6G3LQpz
     W5hOA2hzCTMjJPJ8LbqF6dsV6DoBQzgul0sGIcGOYl7OyQdXfZ57relS
     Qageu+ipAdTTJ25AsRTAoub8ONGcLmqrAmRLKBP1dfwhYB4N7knNnulq
     QxA+Uk1ihz0=";
};

Then restart the service (sudo service bind9 restart).

To make sure it is working, try to resolve "www.dnssec-failed.org", it should fail:

$ host www.dnssec-failed.org
Host www.dnssec-failed.org not found: 3(NXDOMAIN)

If it gives an IP address, then DNSSEC validation is not working.


Evaluate WiFi Signal Strength of devices connected to the same LAN

Install nmap

From How to Find What Devices are Connected to Network in Linux use:

sudo apt install nmap

Then use ifconfig to get the IP range for your WiFi (or Ethernet).

Use address found and pass it to nmap network scan:

$ sudo nmap -sn 192.168.1.0/24

Starting Nmap 7.01 ( https://nmap.org ) at 2019-06-30 09:37 MDT
Nmap scan report for 192.168.1.65
Host is up (0.00032s latency).
MAC Address: 10:4F:A8:1D:37:A6 (Unknown)
Nmap scan report for 192.168.1.66
Host is up (0.00012s latency).
MAC Address: AC:9B:0A:DF:3F:D9 (Sony)
Nmap scan report for 192.168.1.254
Host is up (0.00076s latency).
MAC Address: 70:F1:96:42:5F:00 (Actiontec Electronics)
Nmap scan report for 192.168.1.67
Host is up.
Nmap scan report for 192.168.1.68
Host is up.
Nmap done: 256 IP addresses (5 hosts up) scanned in 2.39 seconds

Connect to your router via browser

You can sign on to your router through a browser by typing 192.168.1.254 into the address bar (in my case). Then a webpage is presented where you see all the connected devices. This might be preferable to above method of installing nmap and using the command line.

As for actual signal strength, that depends on your router, as this Q&A discusses:

Does a router store information about the signal strength received by mobile devices that are connected to it?

It appears though the average router does not track signal strength of devices attached to it. You could however have each device record it's signal strength periodically to a file. Then enable file sharing and view that file from other devices.

Other interesting signal strength tips

From 8 Linux Commands: To Find Out Wireless Network Speed, Signal Strength And Other Information:

How do I find out wifi link quality on Linux?

You can get overall quality of the link. This may be based on the level of contention or interference, the bit or frame error rate, how good the received signal is, some timing synchronization, or other hardware metric.

# iwconfig wlan0 | grep -i --color quality

Sample outputs:

Link Quality=41/70  Signal level=-69 dBm

41/70 is is an aggregate value, and depends totally on the driver and hardware. Or use the following command to lists available Wi-Fi access points known to NetworkManager including its speed, security, signal, and more:

$ nmcli dev wifi

Sample outputs:

*  SSID                              MODE   CHAN  RATE       SIGNAL  BARS  SECURITY
*  nixcraft                          Infra  149   54 Mbit/s  42      ▂▄__  WPA2
   tfarcxin                          Infra  7     54 Mbit/s  37      ▂▄__  WPA2


Version Python 2.7.6 by default in Ubuntu

You can see all the in updated* versions of Ubuntu: http://packages.ubuntu.com/python2.7

precise (12.04LTS) (python): Interactive high-level object-oriented language (version 2.7)
2.7.3-0ubuntu3.8 [security]: amd64 i386
2.7.3-0ubuntu3 [ports]: armhf powerpc

precise-updates (python): Interactive high-level object-oriented language (version 2.7)
2.7.3-0ubuntu3.8: amd64 armhf i386 powerpc

trusty (14.04LTS) (python): Interactive high-level object-oriented language (version 2.7)
2.7.6-8ubuntu0.2 [security]: amd64 i386
2.7.6-8 [ports]: arm64 armhf powerpc ppc64el

trusty-updates (python): Interactive high-level object-oriented language (version 2.7)
2.7.6-8ubuntu0.2: amd64 arm64 armhf i386 powerpc ppc64el

wily (python): Interactive high-level object-oriented language (version 2.7)
2.7.10-4ubuntu1: amd64 arm64 armhf i386 powerpc ppc64el

xenial (python): Interactive high-level object-oriented language (version 2.7)
2.7.11-7ubuntu1: amd64 arm64 armhf i386 powerpc ppc64el s390x

yakkety (python): Interactive high-level object-oriented language (version 2.7)
2.7.12~rc1-2: amd64 arm64 armhf i386 powerpc ppc64el s390x

* By updated I mean that they have had updates applied. Ancient versions of install media may ship older versions but they are likely the same point release, just an updated or patched build.


How can I start SpiderOak automatically on a headless server?

This is what I use in order to get SpiderOak to automatically start after a reboot on my headless server (Ubuntu 12.04).  I use cron with the following entry:

@reboot /sbin/start-stop-daemon -b -x /usr/bin/SpiderOak -S -- --headless

checking the syslog I can confirm it starts up and using top I can confirm its running after reboot.

Hope this helps.


Start a browser on your Ubuntu computer and log into http://localhost:7080 or https://localhost:7443 for HTTPS access.


How do I set persistent environment variables for root?

sudo does not normally preserve local environment variables. You should use it with the -E switch to do so, i.e. sudo -E su will preserve $MYVAR for root.

Alternatively, to create persistent variables that are truly system-wide, you should set them in /etc/environment.


There are different databases for hardware running with Ubuntu, i.e.

https://friendly.ubuntu.com
http://www.ubuntu.com/certification/catalog/

Google will show you a lot more, I think.

Do you have a problem with installing Ubuntu?
If you provide more information, maybe someone can help you...


By what I know 12.04.3 have it working out of box with driver 319 as you can se in

http://ubuntuforums.org/showthread.php?t=2174499

it is interesting as it use prime what can lead to better performance...
Im on 13.10 and relying on bumblebee...

Without bumblebee my Dell overheat too as the nvidia is on... Even if doing nothing at all

Update:

well I make some extra simple research on google and found more info

http://www.webupd8.org/2013/08/using-nvidia-graphics-drivers-with.html

as said in webupd8... Apparently 13.10 have support, but isn't out of box by what they can see, because it have some issues still


What does the 'hide-identity' gsetting do?

Before GNOME 3.10, the user menu in the top right of the screen showed the user name in the top bar by default.

There was a privacy setting to turn that feature off.

When the user menu was redesigned in GNOME 3.10, the user name was hidden by default from the top bar. I don't think that setting is user for anything now and it was removed from the Settings app.


Problems installing ubuntu 12.04 ppc on imac G5

you might want to try finding and installing the 64 bit version of ubuntu for ppc.  I found the net installer below and had much more luck with it with my imac with a G5 chip.  I think it has something to do with the system architecture - like the g5 chips only support 64 bit or something (not really sure).

http://ports.ubuntu.com/ubuntu-ports/dists/precise-updates/main/installer-powerpc/current/images/powerpc64/netboot/mini.iso

best of luck!


Would I be able to sync a recent Samsung Android phone with Kubuntu?

I think you're missing out on an important change in how phones sync with PCs nowadays.

The past:

Phone  <-->  PC  <-->  Online mailbox

Nowadays:

                 _ .
Phone  <-->    (  _ )_   <-->  PC
             (_  _(_ ,)

In case you're wondering what it is supposed to be: it's a cloud.

  there's no way to make the Android Phone talk to my Kubuntu 12.04 system to sync calendar and contacts

Please don't bother doing this the traditional way using a USB cable and buggy software to sync stuff. It's not how Android phones are designed to sync. Your options I see to go from here:

The easy way: Use Google Calendar/Mail/etc. and set up Kubuntu to use those (another question!)
The harder way: If you don't like the above because of sharing stuff with Google, you could work around this by configuring the IMAP mail server on your phone, create a small CalDav server on your PC, etc., or even set up a (very small installation) ActiveSync-compatible collaboration suite, e.g. Zarafa, Horde, and many many others etc.

I'm using both actually and since I'm using Android, I've never bothered setting up synchronisation software on my desktop ever again. It just syncs wirelessly, all the time.

  For an almost eight hundred dollar phone that does all sorts of wonderful things, the extreme lack of basic functionality is disappointing.

This is the wrong site to discuss what phones can do. Please refer to either:

Android Enthousiasts
SuperUser.com


Use this:

sudo update-rc.d mysql defaults


Install Ubuntu with downloaded softwares and updates from the Live USB

This cannot be done straightforward from the Live USB. Because, what you will install on the Live USB, won't get installed on the new system of the hard drive. But You can probably go with these instruction:

Make a bootable Live USB with a bigger persistent file.
Boot from the USB.
Install necessary updates and useful softwares. Don't forget ubuntu-restricted-extras package
Grab the downloaded .deb files from /var/cache/apt/archives/ directory.
Put these .deb files somewhere else for later use.
When you're in the farm, Install the Ubuntu system on your dad's PC from the Live USB.
Reboot into newly installed system.
Then transfer back all those .deb files you copied to a directory of your choice.
Now open a Terminal (Ctrl-Alt-T) and cd to the directory of copied deb files
Use sudo dpkg -i *.deb command to install all these deb files (There will be no dependency problem because these are the only packages this new system knows)

Note: Make sure not to accept Microsoft EULA for ttf-mscorefonts-installer package, because if you accept those apt will try to download the files from Internet and eventually will fail.


Playback on Mythbuntu with nvidia graphic adapter is showing moderate tearing, and doesn't cover Unity

You might want to consider openbox.

It's a bit hacky to set up, and not as "cool" as unity, but you can get a very low-resource desktop with all the important features, like application indicators

For a very basic, but full-featured desktop:

sudo apt-get install openbox lxpanel lxpanel-indicator-applet-plugin obconf lxpappearance

This will pull in some gtk2 packages and other dependencies, but not too much.

Also, gedit does make a backup. It makes a new file with a tilde; ie xorg.conf~
Be aware, each time you save a file this backup will be overwritten with a new backup.


If the only file you are missing is NTLDR, you can download it here. You can then paste it into the boot files on the C: drive of your Windows partition.

Caveat: This is an NTLDR file I pulled from a previous windows installation. I haven't used it in a while, but it should work.

    As a general rule, I include the warning that downloading unknown files from people you don't know personally, particularly to install an application or alter a critical file, is not a good security practice.
     That said... you can at least take comfort in the fact that I am a member in good standing for over a year, with no history of malicious activity.


How to generate xorg.conf? (X -configure segfaults)

Ati's driver provides you with aticonfig which is responsible for managing your xorg.conf if you use proprietary driver. To generate the xorg.conf run then:

aticonfig --initial


Yes, of course.

Use port forwarding for different services on the network, and create two IP scopes for separation in just one Subnet. You can also use different class of subnet, so 10, 172, and 192. You can use something like 172.31.0.1-249 and 172.24.241-249 to subnet it in one class. Port forwarding is easy, you should try to only use one service per port though.


Open terminal Ctrl+Alt+T and run following command:

Reset Icon Pack

gsettings set org.gnome.desktop.interface icon-theme ''

Reset Theme

gsettings set org.gnome.desktop.interface gtk-theme ''
gsettings set org.gnome.desktop.wm.preferences theme ''
gconftool-2 --set --type string /apps/metacity/general/theme ''

Reset Launcher

gsettings reset com.canonical.Unity.Launcher favorites

Reset Panel

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

After running all of this commands, logout and log back in.


Unable to update, screen freeze or no video signal

Ok I found a solution. Answering my own question if it can help anyone else.

Problem 1
screen freezes during ubuntu 13.04 install on system with nvidia graphics

Solution 1
Unfortunately the alternate installer is no longer available but it is still possible to use a non-graphical install method. The method I used is called NetbootInstallFromInternet and it is described here: https://help.ubuntu.com/community/Installation/NetbootInstallFromInternet.

Problem 2
The install will successfully finish and when I select ubuntu in the grub menu the screen turns completely black and after some time the video signal is lost and the screen is frozen.

Solution 2
Login again but select the recover menu, activate network, then open a root prompt and change the grub menu to by default go into text mode:

replace GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" with GRUB_CMDLINE_LINUX_DEFAULT="text"

Now I could log on again into text mode and I started to try experiment with the nvidia drivers current and current updates, experimental, nomodeset and everythng else that has helped me in previous releases but none of that seem to work.

Then I removed all opendrivers and installed the nvidia proprietary drivers. I got an error message that the installprep or something did not work but hit continue anyway.  Then entered startx to fire up the graphical interface and it worked.

More details here: http://dedoimedo.com/computers/ubuntu-ringtail-nvidia.html (Step 4 is what worked for me)

Good luck!


Each user need really different rules from another user (P2P, games, servers...). That is the reason for no rules in the preconfigured profiles.
In your home, you'll safe by your router then, the preconfigured policies will be allow.
In a public profile the default policies will be more restricted because you'll into the wild ;)
Best regards :)


How to list packages from a ppa/source in command line?

Find the relevant file in /var/lib/apt/lists/ ending in Packages, and perform this command:

# example for deb http://security.ubuntu.com/ubuntu natty-security multiverse
awk '$1 == "Package:" { print $2 }' /var/lib/apt/lists/security*multiverse*Packages

By the way, my extras.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages is empty.

EDIT

You could also parse apt-cache output. This script lists all packages with server and repo information:

#!/bin/bash

apt-cache policy $(dpkg -l | awk 'NR >= 6 { print $2 }') |
  awk '/^[^ ]/    { split($1, a, ":"); pkg = a[1] }
    nextline == 1 { nextline = 0; printf("%-40s %-50s %s\n", pkg, $2, $3) }
    /\*\*\*/      { nextline = 1 }'

Sorting conveniently the output you can get the infos you're looking for.


How do I move items in the Applications (or Main) Menu Around?

--- this problem was solved in the chat ---

The problem was that the file /home/brentonhorne/.config/menus/applications.menu wasn't writable by the standard user. brentonhorne is the standard user on this system, for everyone reading this, you'll have to exchange this username of course.

The problem was fixed by setting the permissions of the .config folder and all of it's subfolders as they should be (owned by the user, readable and writable by the owner) - again for everyone else, you'll have to insert your own username for brentonhorne.

sudo chown -R brentonhorne:brentonhorne /home/brentonhorne/.config && sudo chmod u+rw /home/brentonhorne/.config


A little research shows that Canon releases a Debian printer driver. The release date is 2011 so I am unsure that it would be any better than the driver in Ubuntu 13.10 though.

Downloads for MG5300 series (select OS = "linux"):
http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx
(This page says MG5350 but the listed drivers are for the whole MG5300 series.)

Direct download link:
http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863341&page=1&type=download

There's also this scanner driver, but it might not be needed because SimpleScan works fine already:
http://www.canon.co.uk/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MG_series/PIXMA_MG5350.aspx?DLtcmuri=tcm:14-863345&page=1&type=download


If your using Ubuntu 15.04 or newer try sudo systemctl start mysql, or in general sudo systemctl <action> <service-name>to control daemons.


I got the exact same problem. Downgraded to 4.4.0-38, then blocked -39 from being installed, by pinning that version with priority -1.
This is a kernel regression, which might show up in later 4.4.0 updates too. Hopefully it is fixed in the kernel version shipping with Ubuntu 16.10.
The -39 kernel fails to detect my NVMe SSD that I'm booting from, while the -38 kernel works perfectly. According to the release notes there were two fixes to the NVMe code: (LP: #1602724) and (LP: #1620317).
It is possible one of these broke the NVMe detection.


Oh.  I figured it out.

xterm*faceNameDoublesize:WenQuanYi Micro Hei:antialias=true:pixelsize=20

Monospace doesn't have chinese characters.


Black screen after suspend on ubuntu mate16.04 after going back to noveau

I have a similar problem. I'm using a MacBook Pro with a Benq24 as an external monitor. After a suspend, the Benq monitor shows a distorted view, with vertical bars through the display. Unplugging and reconnecting the monitor, or changing settings in the Settings>Appearance pane will fix the problem.
The only 'permanent' solution I've found is to disable suspend altogether.


I recently installed Ubuntu 14.04 and have trouble with Wi-Fi

Your ath9k card may respond better to a fixed channel from 1 to 11 rather than channel:auto.


Problems with installing C++ version > 4.7

compiler installs are special ... since your OS needs updates to get compiled by same version of compiler the kernel was compiled on, do not attempt nor expect a fresh compiler to become the default

... look in dir /etc/alternatives


Where can I locate legacy hashes for older minor releases?

If you are taking about the various checksum hashes (md5, sha1, sha256, ...), you can find the information you are looking for in the Ubuntu 14.04.3 release page


How to recover graphical UI after accidently uninstalling

This guide should work for Ubuntu or any Ubuntu based flavour.

Step 1:

Turn off  your PC by pressing and holding the power button for 5 seconds. Turn it on again. Instead of selecting Ubuntu from boot screen, select Advanced options for Ubuntu. Now select the option which says (recovery mode) at the end of it’s name. If there are multiple option like that, select the first one. Wait for recovery mode to start.
In the next window, select Enable Networking. Wait for a few moments to finish the process. Then select dpkg(Repair broken packages). Select Yes in the next dialogue box. The package recovery process will start and hopefully will find some of the crucial packages you’ve uninstalled. Write down the exact names of the packages shown there on a piece of paper. It will then want your permission to reinstall them, give permission by typing y and pressing Enter. If the enable networking option was able to connect you to the internet, the downloading and installing process should succeed. If that happens straightly go to Step 3.

But if you're not connected to the internet, the packages can not be downloaded and the Terminal will show errors. Don’t worry. Go to step 2.

Step 2:

Create (or use the old one if you still have it) a bootable CD/DVD/USB Flash drive with the same version and flavor of Ubuntu you’ve got installed on your PC. Boot from it and after selecting language, select Try Ubuntu. After Ubuntu starts, mount the partition your Ubuntu installation is on using Terminal. If you are not sure which partition it is, launch GParted (included in your Live bootable media) and find out. It is usually an Ext4 Partition. To mount that partition open terminal and run the next command. Replace the XY with the drive letter, and partition number-

sudo mount /dev/sdXY /mnt  (e.g. sudo mount /dev/sda9 /mnt)

Then run this command:

sudo mount --bind /dev /mnt/dev && sudo mount --bind /dev/pts /mnt/dev/pts && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys && sudo mount --bind /run /mnt/run

Now time to use chroot:

sudo chroot /mnt

Now connect to the internet and update the package list by running-

sudo apt update

It may show some updates but you don’t need to install them. Now install the packages you wrote down on step 1 like this-

sudo apt install PackageName1 PackageName2 PackageName3 (Separate                each package name by using space)

After installation finishes, turn off your PC, remove the bootable media and turn it on. Ubuntu should now start normally.

Step 3:

Recovery mode just finds out the most crucial packages needed to rescue your OS. There may be many other packages which got uninstalled when you created the problem. They are yet to be installed and you may find many missing features here and there. To find all the packages that got uninstalled open Terminal and run-

cat /var/log/apt/history.log

Look at the times of the operations, you’ll find your change-list. Again write down the names of any additional packages that you’ve missed installing at step 2. You don’t need to write the architecture of the packages at the end of their name (e.g. You can just write “gnome” instead of “gnome:amd64”). Install them as usual.


Using Terminal I want to copy some files


Is there support for encrypting the whole boot/system drive with Truecrypt in Ubuntu?

The full system encryption support is currently only available for windows, take a look at this answer on superusers.

If you are interested in a full encrypted linux system, you would have to use LUKS.

So to answer your question: no, it is currently not possible.


What happens is that you link the stdout of echo with the stdin of pianobar, but then echo exits and the stream is gone. Try that:

{ echo 2 ; cat ; } | pianobar

My main question, however, would be -- what are you trying to achieve? Why not start just the pianobar? Isn't there an option to pianobar to start with a default station, if that's the problem?


Setting the default is done  with:

xdg-mime default pcmanfm-qt.desktop inode/directory application/x-gnome-saved-search

(I assumed it is pcmanfm-qt.desktop so do check for the actual .desktop file inside /usr/share/applications folder.)

nautilus.desktop for Nautilus.
nemo.desktop for nemo.
etc.

  when I open Pluma as root

Please stop this behaviour. Use pkexec instead.

But even then don't! If you need root to edit files in /var/www/ your files are set incorrectly. Check the group of those files and add your user to that group. The group is going to be either www-data or apache if you use apache. Then you can edit the files from your user.


Where to obtain Ubuntu Supplied Third-Party Device Drivers Patches to apply them to vanilla kernels?

The Ubuntu kernel doesn't use Debian packaging to apply patches to the kernel source, the way most Debian packages do. In terms of Debian packaging, there's a whole new upstream tarball for each kernel release.

This is done because the Ubuntu kernel team uses git to maintain kernel changes. This aligns us with upstream kernel practices and is more transparent than Debian packaging, for other kernel developers who want to see the (git) patches that make up our kernel.

You can find the Ubuntu git repositories for the kernels here:

http://kernel.ubuntu.com/git

released kernels are found in ubuntu/ubuntu-.git

Instructions for building a kernel are here:

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

Use the section for cloning the git repo, and then examine the git logs to find the patches for the driver you want. Then use git to extract them and apply them to your baseline kernel, and build that.


USB passthrough for LXD container on Ubuntu 16.04

Please bear in mind I am new to answering, so edit as necessary.

Recently, I needed to add a PS3 controller to a container and was able to do so through the following:

First we need to find our devices information. namely it's vendorid and productid
so let's run lsusb

The output should be similar to this:

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 001 Device 006: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller

For our container we are interested in the ID part. So in my case  054c:0268

The 054c is going to be our "vendorid" and the  0268  is our "productid"

So based upon the configuration documentation, we should end up with a command like this to add our device

lxc config device add \
<ContainerName> \
<DeviceName> \
usb \
vendorid=<vendorid>

That is the minimum needed to add a device BUT since only vendorid is specified it will add ALL devices with a matching vendorid.
if you want only that one specific device you may also specify the productid as well.

So for my case (to show a concrete example) I have:

lxc config device add \
pcsx2 \
ps3controllerblack \
usb \
vendorid=054c \
productid=0268

As shown, my ContainerName is "pcsx2" and the DeviceName can be anything you want, it does not have to corresond to anything, so mine is set to "ps3controllerblack", something easy for me to remember

One last thing to note is that even with the device added to the container,
for my controller to properly work I also needed to add it's device file to the container as well.

So for me I had to find the device file, determine it's type (unix-char or unix-block) and then add it.

My controller provides a character device at /dev/input/js0
so my command ends up being:

lxc config device add \
pcsx2 \
joystickdevice \
unix-char \
path=/dev/input/js0

And with that I should have access to my usb device. It may be necessary to add more to the  configuration and specify the mode, uid or gid so that the proper users within the container may access it.

If you happen to input the wrong info into the command and need to do it over, first remove the device and then try again

lxc config device remove <ContainerName> <DeviceName>

Example:

lxc config device remove pcsx2 ps3controllerblack


How to switch internet access over multiple ISP connected via LAN ports?

There is no easy way to do this... if you change your default route, you will break all of your existing connections.

There is a section in the famous Linux Advanced Routing and Traffic Control HOWTO about routing for multiple upstream providers.  But it's not light reading.  Expect to spend a good amount (possibly many hours, depending on your current level of network understanding) of time reading to understand all of the relevant concepts, then another good while with configuration and testing.


lvm: metadata demon deprecated, unavailable in 20.04 and higher?

lvm2.metad was deprecated and finally removed in version 2.03.00:
https://github.com/lvmteam/lvm2/blob/master/WHATS_NEW
Ubuntu removed it with version lvm2 (2.03.01-1):
https://launchpad.net/debian/+source/lvm2/+changelog


It is a problem in dependencies wine-staging needs

Depends: libfaudio0 but it is not installable

This package is not available in ubuntu. I run in the same error.

you can try the package  from this source

sudo dpkg --simulate -i libfaudio0_19.07-0~bionic_amd64.deb

If no error accure remove --simulate from my command
I'm not able to test because of my 32-bit system.


How to modify desktop calendar settings on Kubuntu 14.04?

1 and 2. SystemSetting -> Locale -> Calendar
3. Not easily. You can change the whole color scheme item by item in SystemSettings -> Application Appearance -> Color
4. That depends on the level of integration that you want. The KDE calendar is based on KOrganizer, which can use several types of calendars. You can find a type of calendar that can be used by both Thunderbird and KOrganizer (e.g. iCal) to have them in sync.


What is the command to put the current window in half the screen

In Ubuntu 12.10 Unity you can use Ctrl + Alt + (num keys).
Eg.

Ctrl + Alt + 5 for full size screen;
Ctrl + Alt + 4 for horizontal half screen on right,
same works with 8, 2 & 6 also.


How can I rename a directory tree to match a tree saved in a file?

I think there is nothing that will do this after you only have the old directory tree as file and no way to correlate the new directory names with the old ones.

How would the script know if 01correlates to Mercury or Venus ?

There is, however, this Unix StackExchange answer to exactly the same question, where OP wrote a Perl script himself, since no one could provide an answer.

But I think for this to work, you do need the old directries intact, since it runs tree with options

tree --dirsfirst -spugD


Not finding my android phone listed in Terminal via adb

You may need to connect via Wifi.
Put in this command:
adb connect 123.456.7.8

123.456.7.8 is replaced with your phone IP address.


I found the problem. The laptop CPU (Celeron M360 @1.4GHz with a 400MHz bus speed) does not support PAE, some sort of memory management in the CPU. The only solution is to install a version of Ubuntu older than 12.04 or another distro.


ubuntu 15.04 vivid vervet pavillion x360 system settings

Well I managed to fix it, but it isn't the solution I was looking for. I would have like to know how to properly troubleshoot the problem or understand where and how it originated.

I basically re-installed gnome desktop and rebooted.

sudo apt-get install gnome-desktop-enviornment

Hope this helps some one else.

Cheers


Ubuntu randomly change resolution by itself to 1024x768

For those wondering how to fix this:
It turns out that my screen resolution was not correctly detected. I fixed it by permanatly setting the resolution in /etc/X11/xorg.conf file.

Thanks to this post:
http://rolling-ubuntu.blogspot.ca/2012/09/how-to-permanently-change-screen.html


Is there an alternative to Redshift and F.lux which only dims the screen?

On a computer with Ubuntu 11.04 and onboard Intel graphics this works for me:

$ xrandr | grep connected | cut -f1 -d" "
VGA1

Use the output name found (in this case "VGA1") and adjust the brightness

$ xrandr --output VGA1 --brightness 0.7

Note, that the xrandr man page has this to say about the --brightness flag:

  However, this is a software only modification, if your hardware has support to actually change the brightness, you will probably prefer to use xbacklight.


How can I install Ubuntu 14 LTS on my Dell 13" 7000 series 2-in-1 laptop?

WUBI is deprecated even on BIOS-based computers and is 100% useless on a dual-boot with an EFI-mode Windows installation, so don't waste any more time on it.

When doing a dual-boot installation in EFI mode, you should NOT enable the Compatibility Support Module (CSM; aka "legacy boot support" or a similar phrase). Doing so is much more likely to create problems than to solve them. At best, it will solve an early problem only to create bigger problems further down the line. For more on this subject, see my Web page on the CSM.

I'm unfamiliar with the 0xc000007b error you report, but my guess is that your Linux installation medium is not prepared correctly. Tools used to create USB drives are not created equal. Personally, I generally use dd to copy images to USB flash drives, but that's not convenient in Windows. In Windows, the Rufus program seems to have the best reputation, although Unetbootin also usually works. Contrary to dodo_master's recommendation, I see a lot of problem reports about Universal USB Installer (aka PenDriveLinux and one or two other names), at least for EFI-mode installs. Unfortunately, what works well varies from one distribution and computer to another, so I can't point you at something that's 100% guaranteed to work; you may need to try two or three tools before you find one that works on your computer.


Ubuntu seem to stopped tracking filesystem changes

To set max_user_watches and keep the value across reboots, do this:
echo "fs.inotify.max_user_watches=1000000" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

If you are running daemons that watch the file system closely, such as backup jobs, NextCloud sync, DropBox sync, and OneDrive sync, you will run out of watchers. Increasing the value is fine, though it does come at a cost in terms of memory consumption. Try not to go overboard


Unable to read the contents of this file system, required for ntfs file system support: ntfsprogs / ntfs-3g, gparted

You've probably found a solution by now, but if not, could you put the drive in a PC with windows and try running chkdsk /f? I had a similar error and was able to fix it that way.

Also running the following command may give some insight into what the issue is:

ntfsresize --info --force --no-progress-bar /your-partition


Update: Apparently Asus has an issue with a screw that comes loose. This screw, which connected the hard drive bracket to the computer, happened to come off and rest on the exposed pins of the hdd essentially jumpering them. I just put the screw back in its rightful place and everything came back!


Ubuntu boot showing Resume: libgcrypt Version: 1.5.0

What I can tell you is: Your system has no problem

Your video is showing that you can boot into Ubuntu and the speed is normal (a subjective topic). The boot speed depends for each hardware. My PC, a QuadCore, boot in ~30 seconds. I'm telling you this to have a reference :)

The message displayed is not a problem. Not all the Ubuntu users see the same images while booting, that is variant.

libgcrypt is a package that is installed by default in almost all the GNU/Linux system. To discover more information about it see the Wikipedia entry or the GNU entry.


Because the driver of this model is built for i386 and you are running on 64bit (amd64) then firstly you need install 32bit (i386) library via:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

Now you can install driver normally by downloading driver from Brother website for HL-1200/ 1201/ 1211W at http://support.brother.com/g/b/downloadlist.aspx?c=as_ot&lang=en&prod=hl1211w_as&os=128.

Alternatively, select Drive from Ubuntu driver database for this model.


Need help for locking down linux desktop

Once you have installed the Ubuntu you manage the appearance of icon bar like it can stay hidden until you scroll over the area where its hidden (left right or bottom).


Is it safe to remove all broken symlinks in entire Linux system?

You should not attempt to remove all the broken symbolic links on your system, especially not with find . -xtype l -delete or any such silent mechanism.

Indiscriminate removal of broken symlinks has (as I choose to count them) three major bad effects:

It removes broken symlinks that are correct, thus creating a problem where there wasn't one. In spite of the term "broken," it is not necessarily wrong or a mistake to have a symlink whose target doesn't exist (or cannot be traversed to), and sometimes this is even relied on.

A broken symlink can be correct when the target is what needs to be created, when the target deliberately exists some but not all of the time, and in various other situations, which the strange-seeming but reasonable use of broken symlinks for locking (i.e., synchronization across processes) where there is no meaningful target.
It removes broken symlinks that shouldn't exist, which might sound like a good thing--but it does so without investigating or addressing what caused them to be broken in the first place.

For example, perhaps you've used some uninstallation procedure that leaves files that should be deleted. In that case, deleting just broken links wouldn't clean up anything else.
It removes broken symlinks that are wrong but where the problem should be solved through some other action than deleting them.

For example, maybe a symlink's target should be created or renamed, or maybe the symlink should be replaced or (for symlinks with relative paths) moved.

For more detailed information about all scenarios, as well as some not covered above, see Gilles's answer to Is there a downside to deleting all of the broken symbolic links in a system? (on Unix.SE).

In the use case you describe where you run that find command as root, the likelihood that a symlink isn't really broken but that you just don't have permissions to traverse to its target is of course much lower. But every other point in Gilles's answer fully applies.

It's reasonable to use find . -xtype l to find out about broken symbolic links. But you shouldn't attempt to delete them all.


Import OpenVPN client config in GnomeShell w/ network-manager

You can still access the old interface by running:

nm-connection-editor


How do I use the volume indicator without installing Pulseaudio?

You cannot use the sound indicator without pulseaudio as it depends on pulseaudio. Also on a separate note, I believe it may be possible to have a multicard setup in pulseaudio, but I've never done this myself so I cannot be 100% sure (maybe someone else can tell you how).

As for alsa-tray, you need to whitelist that application in your system tray (if you are using Unity).

See:

How do I access and enable more icons to be in the system tray?
How to know the name of the systray applications in order to add it one by one on the systray-whitelist?


Can I set up two installations of Ubuntu as dual boot?

Yes, it is possible, just like any dual boot system with different linux distros or with Ubuntu and Windows, you can have two Ubuntu installations alongside each other.

But there might be problems with security, unless the systems are encrypted, and it might be complicated to install two encrypted systems alongside each other in the same drive. One solution can be that you and the other user (of the same computer) install your Ubuntu systems in external drives, for example SSDs connected via eSATA or USB 3.

Such installations will be straightforward, if no internal drive is connected, when Ubuntu is installed, for example according to this link.


dpkg: error processing package mendeleydesktop (--install)

I had the same problem in ubuntu 18.04. I solved it with:

sudo apt --fix-broken install

Then try to install the program again.
It worked for me.


Standby problems vs specific kernel version - Kernel regression?

These are the answers to your questions:

You can run sudo apt-mark hold linux-generic linux-image-generic linux-headers-generic to stop kernel upgrades.

If it is 18.04 with a HWE kernel, then the command is
sudo apt-mark hold linux-generic-hwe-18.04 linux-image-generic-hwe-18.04 linux-headers-generic-hwe-18.04

You can install any stable kernel or even a release candidate from Ubuntu kernel PPA.

Report kernel bugs by running ubuntu-bug linux.


edited to: shutdown hangs on intel grapics on 16.04 with 4.7.2 kernel

I've done the following to get it to work.
please keep in mind that rebooting requires you to hold the power button when it hangs. (alt+prtscn/sysrq+reisub doesn't work)
step 1: reinstall you system without swap (if you encrypt your home directory that is)
step 2: boot into your new installation but don't log in. go to tty1 (ctrlaltf1)
step 3: upgrade your kernel to 4.7.6
step 4: reboot (and hold the power button when it hangs to kill it) and log into tty1
step 5: install the nvidia drivers and prime

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-367 nvidia-prime

choose lightdm when prompted
step 6: reboot and log into gnome.
step 7: open a terminal and execute

sudo prime-select intel

and reboot. When grub shows up press 'e' and at the end of the line that starts with 'linux' add 'nomodeset'. Press F10 to boot into your system
step 8: log in (thats possible thanks to lightdm and nomodeset) Download this and install it. (your firefox will probably not work at this point. to get it to work execute sudo chown -R $USER:$USER ~/.cache)

sudo dpkg -i intel-grapics-update-tool_2.0.2_amd64.deb
sudo apt -f install
wget -q0 - https://download.01.org/gfx/RPM-GPG-KEY-ilg-r | sudo apt-key add -

step 9: run the program (its the only program that starts with 'intel' in your dash. After it's finished execute a reboot (this is the last reboot that requires you to kill your system).
step 10: (after entering nomodeset) boot the system and log in. Install all the updates and reboot.
step 11: enter nomodeset and log in. install gksu (sudo apt install gksu) and run gksudo gedit /etc/default/grub and add nomodeset after quiet splash. (you can run sudo dpkg-reconfigure gdm3 at this point to get the gdm3 login screen back)
step 12: run 'gksudo gedit /etc/grub.d/40_custom' and copy your ubuntu menuentry from /boot/grub/grub.cfg into it. remember to remove the nomodeset from 40_custom. name it 'ubuntu nvidia'
step 13: create /usr/local/bin/intel (and nvidia) with the following code

#!/bin/bash

prime-select intel
grub-reboot 0

and

#!/bin/bash

prime-select nvidia
grub-reboot 7
reboot

make them executable (and perhaps add them to visudo) and you are done!!
if steam doesn't work on intel see Edit ∞².

ooh and if sudo update-initramfs -u -k all gives you errors you can find the missing firmware here. Read the readme file to find out how to install them (some need --install operator while others just work)


create directory structure from tree command output

Parsing the usual output of tree is tricky - it's not some standard form like, say, a CSV. Standard, structured formats like JSON would be better, since you'd need to encode at least two or three pieces of information per entry (name, type, and additional information like link targets or directory entries that would vary according to file type). tree -J does provide pretty simple JSON output, and you can use Python, which is part of default Ubuntu installations and has JSON processing in the standard library, to process it:
#! /usr/bin/env python3

import json
import os
import sys

def process(entries):
    for entry in entries:
        if entry["type"] == "directory":
            os.makedirs(entry["name"], exist_ok=True) # Thanks @pLumo
            os.chdir(entry["name"])
            process(entry.get("contents", []))
            os.chdir('..')
        if entry["type"] == "file":
            with open(entry["name"], "w"): pass
        if entry["type"] == "link":
            os.symlink(entry["name"], entry["target"])

# read standard input
structure = json.load(sys.stdin)
process(structure)

This only handles directories, regular files and links; you'll need to add conditions for other file types (not sure how tree handles block devices, character devices, etc.).


Backup
Boot from live CD, DVD or USB drive
Mount the partition your Ubuntu Installation is on. If you are not sure which it is, launch GParted (included in the Live CD)
or open a terminal (Ctrl+Alt+T) and use the following command:

sudo fdisk -l

and find out. It is usually a EXT4 Partition. Replacing the XY with the drive letter, and partition number, run these commands:

sudo mount /dev/sdXY /mnt
sudo mount /dev/sdXZ /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
sudo apt install grub-pc grub-common
sudo grub-install /dev/sdX
sudo update-grub
exit
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
sudo umount /mnt

Shut down and turn your computer back on, and you will be met with the default Grub2 screen.


how to set up a new interface without an ip ubuntu 16.04

ifconfig ethX up

or
ifconfig ethX 0.0.0.0

will do the job...
Please be aware that its not persistent.


TP-Link TL-WN823N V2 does not work with rtl8192eu driver on Ubuntu 16.04

After intalling 8192eu driver as following:

sudo apt-get install git build-essential dkms
git clone https://github.com/Mange/rtl8192eu-linux-driver.git
sudo dkms add ./rtl8192eu-linux-driver
sudo dkms install -m rtl8192eu -v 1.0

I noticed instabilities and weak signal. I solved it as follows:

echo "options 8192eu rtw_power_mgnt=0 rtw_enusbss=0" | sudo tee /etc/modprobe.d/8192eu.conf
echo "blacklist rtl8xxxu" | sudo tee /etc/modprobe.d/rtl8xxxu.conf

Reboot.


3 Ways to Solve This Problem
1. Change Router Setting
Most routers allows reserving a static IP address for a device. Sometimes a device is associated with the MAC address of the Ethernet port or WiFi chip. The exact method varies by router makes and models.
2. Static IP within Device
Another way to set a static IP address for a device is from within the device itself. Again this will depend on the device. First you have to find out which IP address range your home router uses. Most home routers use one of the two address ranges:

192.168.0.nnn
192.168.1.nnn

where nnn is a number between 2 and 254. You can figure this out by looking at the IP address of the router. It may be either 192.168.0.1 or 192.168.1.1.
instructions for Ubuntu Desktop

Open the setting for the wired (or WiFi) connection for which you
want to assign the static IP address.
Go to IPv4 tab
Change IPv4 Method from Automatic to Manual
Assign the 3 values for:

The static IP address
Network Mask. This is almost always 255.255.255.0
Gateway: This is the IP address of your router

3. Use FQDN
The third method is not to bother with assigning a static IP address, but use the Fully Qualified Domain Name (FQDN). For this Ubuntu comes with Avahi preinstalled. This allows us to use .local suffix to identify various devices in the network. For example if you have a NAS with the hostname mybooklive, the FQDN of that device would be mybooklive.local. With this information you can change the line in the file /etc/fstab as
//mybooklive.local/<share name> /media/<share name> cifs uid=<name>,credentials=/root/.smbcredentials,iocharset=utf8,sec=ntlmv2,_netdev,vers=3.0 0 0

Now even if the IP address of your device is changed by the router, your Ubuntu computer will be able to connect to the device and mount the share as expected.
Hope this helps


Yes it is possible. Even I have Ubuntu installed on an external storage device! At the installation, instead of Erasing the Disk, click "Something Else". You'll be able to manually create partitions on your external hard drive. From there, you should delete existing partitions on the drive (be careful no to touch your interal SSD here!), then you can make a 200GB ext4 partition (mount point should be / (root), a custom sized swap partition (I recommend 4GB), and the rest of the space can be created as an NTFS partition (readable by both Windows and Ubuntu). Just make sure you change the bootloader location dropdown to the name of your external hard drive.

If my answer was not clear enough or you need help, please comment and I will get back to you ASAP!

EDIT: If you are using UEFI, you will also need to make an EFI System Partition (ESP) of (around) 500MB. This is not needed in BIOS; only UEFI needs ESP.


You can use PulseEffects for this purpose:

The following commands will install PulseEffects on your computer. As you are adding a PPA, you should also know how to remove that PPA.

First, install the program for (eventual) PPA removal:

sudo apt install ppa-purge

Secondly, add the PPA to your system, do an APT update, and then install PulseEffects

sudo add-apt-repository ppa:mikhailnov/pulseeffects -y
sudo apt update
sudo apt install -y pulseeffects

Finally, should you need to remove PulseEffects:

sudo ppa-purge ppa:mikhailnov/pulseeffects


gsettings set org.gnome.desktop.background not working

try it this way:

#!/bin/bash
# clear cache
PICS="/home/pvlkmrv/Pictures"

rm -f "${PICS}/wall.jpg"
rm -f "${PICS}/photo-of-the-day"

# download photo-of-the-day page
wget "http://photography.nationalgeographic.com/photography/photo-of-the-day" -O "${PICS}/photo-of-the-day"

# parse the url out from the file
url="`cat ${PICS}/photo-of-the-day | grep 'images.nationalgeographic.com.*cache.*990x742.jpg' | cut -d '\"' -f 2`"

# download the photo
wget "http:$url" -O "${PICS}/wall.jpg"

# set the desktop background
# only two slashes here, because the PICS var already has a leading slash
URI="file://${PICS}/wall.jpg"
echo ${URI}
gsettings set org.gnome.desktop.background picture-options 'centered'
gsettings set org.gnome.desktop.background picture-uri "${URI}"


First fully uninstall wine that exixts on your machine.
sudo apt-get remove wine --purge
Then update and upgrade
sudo apt update
sudo apt upgrade
Next enable “multiarch” in the terminal to define thesystem architecture. After that, update  again.
sudo dpkg --add-architecture i386
sudo apt update
Then install wine
sudo apt install wine64 wine32
This seams OK to me. Works perfectly.


How do I set new screen resolution for a headless server (using teamviewer 10 )

I'm using VNC and this command works for me: xrandr --fb 1366x768


ubuntu (12.10) wants to reinstall everytime I boot

This is easy:

Turn off your computer
Turn it back on
While it's booting up, press F12. (If that doesn't work, experiment a bit. Try all the F# keys. DEL sometimes does stuff.)
Now, choose to boot from hard disk.
Your Ubuntu should be booted normally. Eject the CD from the drive as soon as possible.
Don't leave a Live CD in your computer if you're not going to use it.


New installed Ubuntu 20.04 LTS with 100 GB partition only uses 50 GB

Regardless if you use LVM or not, you still have to increase the partition size using for example GParted.

After that, if you are using LVM, you should use lvextend to extend your logical volume to fill up the increased partition. Using -r parameter to lvextend, you can resize the filesystem together with the logical volume.

Or, you can resize the filesystem later, using resize2fs. That's also what you should do if you don't use LVM.


Lose control to my dual boot (grub) after disabling secure boot

for some reasons, my GRUB got replaced by Windows Boot Manager after disabling Secure Boot

// this how i check
run CMD as administrator => bcdedit

Then managed to fix it by running

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

Here the original post that i found :-
https://itsfoss.com/no-grub-windows-linux/


the problem is that gnome 3.4 totally changed the way themes are written, which means, gtk3.2 themes (including this one) wont work on gnome3.4
one way is to downgrade to gnome3.2 from 3.4

there are 'a few' (very few) themes ported to gnome 3.4
 and as far as i know theme developers are not so happy about this too, i guess, talked to some of them, they aren't happy!


open your terminal and do this

 sudo apt-get install --reinstall libwebkitgtk-3.0-0

then try again.


In such cases usually the problem is caused by the special characters used within the password. So probably you need to quote the password:

... -p 'some-password' ...

or

... -p'some-password' ...


After checking the Apache error log that TriG so kindly recommended I ended up installing

sudo apt-get install php-gettext

and it works fine now


How to run a Fortran Executable file, which generally runs in Ubuntu Terminal, within a Python-3 script?

This is usually where subprocess is a very useful bit of Pythonic magic.
Assuming the input file is named inputfile.txt you can do this and throw stderr output on error, and stdout on successful run:
import subprocess as sp  # I do this for shortening things later on
import shlex

# Run the program you want with the arguments you want split properly (thanks to shlex.split to making it so sp.run works right); store stdout and stderr results as well
chuck = sp.run(shlex.split('/full/path/to/chuck /full/path/to/inputfile.txt /full/path/for/outputfile.txt'), stdout=sp.PIPE, stderr=sp.PIPE)

if chuck.returncode != 0:
    # If a program exits on an error or fail condition its exitcode is usually not 0
    raise RuntimeError("Chuck did not run right!\n\n{}".format(chuck.stderr))

print(chuck.stdout)

However, you need to really make sure that you are using proper paths for your files and the chuck executable in this, and use full directory paths.  This is the basic code you'll need to work with it and to execute chuck with proper paths.  You should use fully qualified paths on disk where possible, by the way.
Essentially the extra steps to check the returncode, stderr output, and stdout output from the program are debugging steps.  If the program runs as intended, you will get an outputfile.txt where you specify it to go.


Desktop load (Gnome or Netbook edition) jams after upgrading to 2.6.35 kernel

Hold the right-shift key after the bios checks to bring up the grub menu. Then edit the menu line highlighted by hitting 'e'. Remove "quiet splash" from the line that starts "linux /boot/vmlinuz" by hitting "END" to get to the end and using "backspace". Do not remove any / on the line. Now use Ctrl+x to boot. You should be able to read the messages as they appear.


Please clear cookie and saved passwords.
Are you really can open http://graphite-site:8080 ? Is it open without errors and basic auth ?
If 1 and 2 are true - please take a screenshot of graphite site. May it opens as http://somesite:8080/graphite ?


There is indeed a list of the kernel error codes and depending on how your system is set up you should find the codes in /usr/include/asm-generic/errno.h. To find error 62 simply run:

$ grep '62' /usr/include/asm-generic/errno.h
#define ETIME       62  /* Timer expired */

And to browse the entire list of over 100  error codes try:

cat /usr/include/asm-generic/errno.h | less

This should give you a starting point in finding the reason for your USB device failure. I suspect that the hardware (USB device) is faulty in terms of connection and the kernel simply times out in its attempt to run the device = Error 62.


Why limit the number of open files and Running processes in Linux?

This is mainly for historical reasons. On older Linux mainframes, many users would connect and use the mainframe's resources. Of course, itwas necessary to limit, and since such operations like file handles and processes were built into the kernel, it was limited there. It also helps limit attacks like the fork bomb. A defense against the form bomb using process limits is shown here.

It also helps keep complex services and daemons in check by not allowing runaway forking and file opening, similar to what the fork bomb tries to do.

Also to be noted are things like the amount of RAM and CPU available, and the fact that a 32-bit counter can only reference so much(only 4294967296 entries that can be counted by a 32-bit counter), but such limits are far above those usually set by programmers and system administrators. Anyway, long before you have 4294967296 processes, your machine would have probably been rebooted, either just as planned, or as it began to lock up due to starving another resource.

Unless you run the Titan with its 584 TiB of memory(you won't, since Linux cannot be run as one instance on a supercomputer), you probably won't reach this process limit anytime soon. Even then, the average process would only have roughly 146KB of memory, assuming no shared memory.


Can Mouse Wheel Scrolling be enabled in Byobu

If you still have this problem,

Try ALT + F12

In my case, this enables mouse scrolling on byobu


Ubuntu 18.04: Acer Predator Helios 300 cant find Touchpad Drivers

I got same when I tried installing Ubuntu 16.04 or 18.04, Finally, I got all working :

TouchPad: In BIOS change touchpad option from advanced to basic,

And Try to Install Ubuntu 18.04 and then install Nvidia drivers and it


Paste this in the editor

 C-u M-! date

M-! date is shell command for date and C-u is prefix to put its output in current buffer.

Another method,

add the following to your ~/.emacs:

 (display-time-mode 1)

Ref : https://www.emacswiki.org/emacs/DisplayTime


Ubuntu 16.04 Dell XPS 15 does not detect external Monitor using HDMI

Do everything from a virtual console when it comes to NViDIA graphics drivers installation.
Also detach your external monitor during the NVIDIA graphics drivers installation process.
You have the latest drivers installed, so the Graphics Drivers PPA should already be added.

First completely uninstall every NVIDIA drivers and software you currently have installed.

Start the notebook and mark the Ubuntu entry in the GRUB boot menu, then  press the E key.
Add nouveau.modeset=0 at the end of the linux line. Press the F10 key to boot the system.
Do not miss to set a Space between the last letter in the linux line and nouveau.modeset=0.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and password and then execute :

sudo apt purge nvidia*
sudo reboot

Now re-install the latest stable NVIDIA drivers 378 (support NVIDIA GEFORCE GTX 960M).

After that restart mark the Ubuntu entry in the GRUB boot menu again, then  press the E key.
Add nouveau.modeset=0 at the end of the linux line. Press the F10 key to boot the system.
 Do not miss to set a Space between the last letter in the linux line and nouveau.modeset=0.

When the login screen appears press Ctrl+Alt+F1.
Enter your user name and password and then execute :

sudo apt update
sudo apt install nvidia-378 nvidia-prime
sudo reboot

Make sure that the NVIDIA graphics are in use in the NVIDIA X Server Settings -> PRIME Profiles.
In case they are not in use switch to them, logout of the session and back in or reboot the system.
Now re-attach the external monitor to the HDMI port and it should be recognized right properly.

Update addressing your comment that it still does not work

Boot into the BIOS of your notebook and check whether you explicitly have to enable external monitor support - in some newer machines, especially in those with NVIDIA Optimus technology this option is implemented. Also check in System Settings / Displays whether you have to adjust something there.


Mousepad in Xubuntu 13.04 prints unwanted line numbers

I just published a fixed build for Ubuntu 13.10 (saucy). Feel free to grab it if you don't want to wait for the official fix:

https://launchpad.net/~foresto/+archive/ubuntutweaks/

Here are the relevant bug reports:

https://bugzilla.xfce.org/show_bug.cgi?id=9813

https://bugs.launchpad.net/mousepad/+bug/1267958


Can boot to Ubuntu, or Windows, but not both

It sounds like you accidentally installed Ubuntu in CSM or "Legacy BIOS" mode.

To fix this, you're going to have to re-install GRUB from within Ubuntu.

First, install boot-repair:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install boot-repair

Secondly, open boot-repair and go to the "Advanced Options." Within that, go to "GRUB Location."

From within this view, check the Separate /boot/efi partition button. Finally, click Apply.

Next, you must go back into the BIOS and disable Legacy Mode, but keep Secure Boot off.

When you reboot, GRUB should load and Windows should be detected.

(source)


Looks like the Compiz Unity plugin is accidentally deselected. Press  Ctrl + Alt +  T and type unity --replace and you would have your Unity back. Alternatively, if you have CompizConfig Settings Manager (CCSM) installed in your computer, you can type ccsm in Terminal and run the program. There, under the desktop heading, you can select 'Ubuntu Unity plugin' and your Unity would be back to normal.