WiFi networks detected, but not connecting

Try to search for the Linux driver on the manufacturer's website. If you're having trouble finding or installing the driver, go to the software center and install Windows Wireless Drivers. Save the windows driver (not exe file, but a folder including all driver files) to an appropriate location. Launch Windows Wireless Drivers and load the windows driver (inf file) and you should be fine.


It looks like the source computer, at least, used EFI. If the new computer also uses EFI, you should be able to use my rEFInd boot manager as an emergency boot system:

Download the CD-R or USB flash drive version from the downloads page.
Prepare a boot medium from said image.
Boot rEFInd. This may require using your computer's built-in boot manager, typically accessed via a function key.
rEFInd should show you options for all your Linux kernels. Select one and hit the Enter key.

With any luck the computer will start up. You can then either install rEFInd via the Debian package or PPA or run Boot Repair.

If you have problems, you may need to boot an emergency system and edit your /etc/fstab file for your new system, since it's possible your filesystem UUIDs have changed. The easiest thing to do in this case is to change the first entry for your / line to read /dev/sda4 rather than UUID={whatever}. With a little more effort, you can use blkid to learn the new UUID value(s) and make the appropriate substitutions.


One time for the duration of the session (ie. the compiling of the software):

BUILD_OPT=1
USE_64=1
export BUILD_OPT
export USE_64

You need to issue this before the make nss_build_all.


DWA-160 and ar9170usb - Random Disconnects

I think I have a solution: install the linux-backports-modules-cw-2.6.39-natty-generic meta package. So far, I haven't experienced any disconnects.


Problems trying to move my /home partition

-if your home directory is encryted, follow the guide by Joao as answer to question here

-otherwise if your home directory is not encrypted just follow the advice in this question


Why are documents from Office 2007/2010 missing headers when opened in OpenOffice 3.2?

It is a bit TOO LATE! but there has been several important changes in LibreOffice (since OpenOffice was removed as the default a couple of versions ago) that actually touch this kind of incompatibility. Of course you will still find problems but on the Microsoft side, for example the issues regarding ODF 1.2 standards which still affect 2007 and 2010 (See Here)

If you happen to update a little from 10.04 to 10.10 you can try the latest LibreOffice from this PPA: https://launchpad.net/~libreoffice/+archive/ppa

sudo add-apt-repository ppa:libreoffice/ppa

That would really help you with several issues. It did for me but with 2007. Have not tested 2010 yet.


Adding a new swap file. How to edit fstab to enable swap after reboot?

These ares the steps to create a swap on a file:

Create a large file e.g. with

sudo mkdir -p /var/cache/swap/   # create a directory that holds the swap file
sudo dd if=/dev/zero of=/var/cache/swap/myswap bs=1M count=4096 # for 4 GByte

Of course any other method of creating a file of defined size would do.

Announce swap to the system

sudo chmod 0600 /var/cache/swap/myswap # only root should have access
sudo mkswap /var/cache/swap/myswap # format as swap
sudo swapon /var/cache/swap/myswap # announce to system

Insert the following line in /etc/fstab for swap from the next boot:

/var/cache/swap/myswap    none    swap    sw    0   0

Note: In case you have your system files on a SSD you may want to consider to hold your swap file on a hard disk location.

Also note: You can not use a swap file for hibernation (see Ubuntu SwapFaq)

Additional note for Ubuntu >= 17.04: A swap on file /swapfile is created by default in a new installation (when no swap partition was present). We can manually create a swap partition later if we prefer.

In case we want to replace an existing swap (e.g. partition) with another swap (e.g. on file) we need to remove the old swap with

sudo swapoff -a  # for all

Then remove the swap entry from /etc/fstab or replace it with the new swap respectively.


Wanting 12.04 LTS day one reset to zero on celeron

To reset to "day zero", you can simply install Ubuntu over again, using a DVD or USB stick (the same way you installed it in the first place). You can download 12.04 at http://releases.ubuntu.com/12.04/ or 14.04 at http://releases.ubuntu.com/14.04/

If you have an older, 32-bit processor, you may need the ...-i386.iso file instead of the ...-amd64.iso file.

When you boot into the Ubuntu installer, one of the options should be to erase the disk and install Ubuntu.


How to use UDP connections with Torrent clients?

A nice nmap scan shows that port 557 is closed in checkmytorrentip.com servers:

sudo nmap -p 557 -sU -P0 www.checkmytorrentip.com
[sudo] password for braiam:

Starting Nmap 6.40 ( http://nmap.org ) at 2013-08-14 18:21 AST
Nmap scan report for www.checkmytorrentip.com (199.231.232.176)
Host is up (0.17s latency).
PORT    STATE  SERVICE
557/udp closed openvms-sysipc

Meaning, no matter what you do, it will remain like that. In deep scans, shows that none of their udp ports is opened:

sudo nmap -sU -P0 www.checkmytorrentip.com

Starting Nmap 6.40 ( http://nmap.org ) at 2013-08-14 18:22 AST

Nmap scan report for www.checkmytorrentip.com (199.231.232.176)
Host is up (0.12s latency).
Not shown: 998 open|filtered ports
PORT     STATE  SERVICE
53/udp   closed domain
5002/udp closed rfe

If you want to test against something, I recommend you to use tracker.publicbt.com:80 or tracker.openbittorrent.com:80:

sudo nmap -p 80 -sU -P0 tracker.publicbt.com
[sudo] password for braiam:

Starting Nmap 6.40 ( http://nmap.org ) at 2013-08-14 18:24 AST
Nmap scan report for tracker.publicbt.com (31.172.124.2)
Host is up.
Other addresses for tracker.publicbt.com (not scanned): 31.172.124.3
rDNS record for 31.172.124.2: tracker.openbittorrent.com
PORT   STATE         SERVICE
80/udp open|filtered http


Clone user account but change privileges

There are two parts to this question:

Creating a user without admin privileges
Creating a user who's a clone of another

Typically, an admin user on Ubuntu is an admin because they are in the sudo group. Membership in sudo gives you both sudoers and Polkit privileges by the default configuration:

$ grep %sudo /etc/sudoers
%sudo   ALL=(ALL:ALL) ALL
$ grep sudo /etc/polkit-1/localauthority.conf.d/51-ubuntu-admin.conf
AdminIdentities=unix-group:sudo;unix-group:admin

So, all we need to do is not add a new user to the sudo group. And that doesn't need anything special to accomplish.

The second part can be handled by either using the normal adduser command, and then copy everything in your home directory to theirs' using rsync or cp, or specifying your home directory as the skeleton directory to useradd. The first method would look like:

sudo adduser newuser
# answer all the questions
sudo rsync -aP ~bytecommander/ ~newuser
sudo chown newuser -R ~newuser

The second would like:

sudo useradd -mk ~bytecommander newuser

(In both cases, replace bytecommander with your username.)


Unable to install gnome-shell-extensions due to unmet dependencies

Try this command :

sudo apt-get build-dep gnome-shell-extensions


Script to kill a specified process when it reached some % cpu

The following script should kill any md5sum process which uses more than 50% CPU. Replace the md5sum and 50 as needed.
while true; do
    PID=$(pidof -s md5sum || cat /proc/sys/kernel/pid_max)
    if [[ $(ps -p $PID -o %cpu= |grep -Po '^\s*\K[0-9]+') -gt 50 ]]; then
        echo killing PID $PID
        kill $PID
    fi
    sleep 1
done

Notes:

Try pidof -s your_process to make sure it works before replacing md5sum in the above script.
If the above does not actually kill the process, it may be necessary to use the brute force kill -9 $PID instead of kill $PID, but only do this if the first method doesn't work.
To do the above once (without a loop) in a single line:

PID=$(pidof -s md5sum || cat /proc/sys/kernel/pid_max); if [[ $(ps -p $PID -o %cpu= |grep -Po '^\s*\K[0-9]+') -gt 50 ]]; then echo killing PID $PID; kill $PID; fi

Explanations:

while true; do ... sleep 1; done loop until ctrl-c is pressed; this also allows killing of multiple matching processes
pidof -s md5sum || cat /proc/sys/kernel/pid_max first (-s) process id of an md5sum process, or a non-existent PID if there aren't any
ps -p $PID -o %cpu= CPU utilization of the $PID process as a decimal percentage
|grep -Po '^\s*\K[0-9]+' strip CPU percentage to an integer
if [[ ... -gt 50 ]] if ... is greater than 50


I have updated my answer (And the title of the question) here:
Compiz Problems (Plugin Missing, Performance Issues, Development)

To cover all plugins missing from Compiz and reason for them. Please feel free to read them there.


So, after switching to another flavour of Ubuntu this problem was gone (mostly).

I'm using Kubuntu (KDE) now and I don't experience any freezes. I'll assume this bug was because of GNOME.

I only expeirenced one freeze with KDE, when I installed some 'restoreconf' or similar package...don't quite remember. Uninstalled it, the problem was gone. I think that package comes with ubuntu gnome version by default and not with kde...not sure.

But I'll leave this here. If you have freeze problems with GNOME if you disable wayland, switch to another DE and it should be gone. Really disappointed how unstable it is.


Automatically keep track of all changes to a folder

Okay, for some reason I don't have the "comment" option to post this but note that this isn't an answer. I'm assuming you are asking if there is something similar to the "Previous Versions" option in Windows Vista and Windows 7 in Ubuntu? If so, I have not found anything native to Ubuntu. What I have done to mimic this behavior is install Dropbox and sync the folders I wish to have previous versions of and then restore the previous versions through their interface. It's a hackjob but it works for what I need it to.


I've not installed the game, and don't know if it works, but the steps to build that particular source code should be as follows:

Extracting

Right-click the downloaded file, select 'Extract here'.

Installing dependencies

Open a terminal window (ctrl-alt-t in Ubuntu), and the command below. It will install quite a few additional files.

sudo apt-get install build-essential libboost-dev libboost-filesystem-dev libboost-system-dev libboost-thread-dev libsdl-dev libcurl4-gnutls-dev libfreetype6-dev libfontconfig-dev

Installing

Still in a terminal window, change to the source directory with cd knights_022_src, then run make, and wait. If it finishes without errors, run sudo make install.


The $PATH added to .bash_profile is not working after reboot

First Please note that adding envs to the .bash_profile is not a temporary as indicated in other answer, but your problem is adding in non-suitable place since .bash_profile is called when you login from console which I don't think your case. Please Read the rest and find your solution:

Quoted from http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html:

  When you login (type username and password) via console, either
  sitting at the machine, or remotely via ssh: .bash_profile is executed
  to configure your shell before the initial command prompt.

  But, if
  you’ve already logged into your machine and open a new terminal window
  (xterm) inside Gnome or KDE, then .bashrc is executed before the
  window command prompt. .bashrc is also run when you start a new bash
  instance by typing /bin/bash in a terminal.

So as I suppose you logged in and use the terminal from inside then you should use the .bashrc instead. run this command:

echo 'export PATH=/opt/devel/tools/apache-maven-3.3.3/bin:$PATH' >>~/.bashrc

Then source it:

source .bashrc

For more information please read this

If you want your variables to be used in .bash_profile also you can do this trick. Add all of your variables in .bashrc then source it from .bash_profile. Add this to your bash_profile:

if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi

Now when you login to your system whenever it's from a console or GUI you'll get your environment.


How do I change the resolution on an Intel g31?

Well, try in terminal:

sudo dpkg-reconfigure xserver-xorg

should work, but I think the driver/kernel compilation is unstable. With me worked but sometimes it goes back to wrong resolution.
If it doesn't work at all, let's ask again.


Setting up man-db crashes system with Bad system calls

I've had several replies to my request for strace output, for which many thanks.  Most of them indicate use of the Astrill VPN software, which injects code into every process on the system using /etc/ld.so.preload, thus making effective process sandboxing quite a bit more difficult.  I believe I've worked around this in git master.

One reply indicated use of the ESET File Security antivirus software, which does a similar thing.  I've tried to work around problems with this in the past, but it seems to be a bit of a moving target.  I've committed my best guess at a workaround to git master.

Assuming that I get some successful test reports about these changes, they'll be in man-db 2.8.4, and they're small and self-contained enough that I should be able to push them as stable updates to Ubuntu 18.04 as well.


Background the process and use nohup to ignore SIGHUP:

nohup make-foo arguments &

Run the compilation command in a terminal multiplexer, such as tmux or GNU screen.  This allows both for the compilation to continue after you detach, and to be able to reattach to the same terminal at a later time to review output.


Xubuntu 16.04 log out menu won't go away

Went into power manager and set power button dialog to "Do Nothing" this appears to have stopped the behavior.  I believe it is a BIOS issue with temperature, but not 100% certain, as there is no setting in bios to power down when overheating.  The sensors command does not show over heating, but this issue only occurred when the system was under load and the fan was running at high speed.


How to do: underline, bold, italic, strikethrough, color, background, and size in Gnome Terminal?

The ANSI/VT100 terminals and terminal emulators are not just able to
  display black and white text; they can display colors and formatted
  texts thanks to escape sequences. Those sequences are composed of the
  Escape character (often represented by "^[" or "Esc") followed by
  some other characters: "Esc[FormatCodem".

In Bash, the  character can be obtained with the following syntaxes:

\e
\033
\x1B

The commands (for easy copy-paste):

echo -e "\e[1mbold\e[0m"
echo -e "\e[3mitalic\e[0m"
echo -e "\e[3m\e[1mbold italic\e[0m"
echo -e "\e[4munderline\e[0m"
echo -e "\e[9mstrikethrough\e[0m"
echo -e "\e[31mHello World\e[0m"
echo -e "\x1B[31mHello World\e[0m"

Source (including all types of foreground/background color codes): http://misc.flogisoft.com/bash/tip_colors_and_formatting


How can I participate on the Nexus 7 project as a community member?

You can log bugs to the bug list (found here: http://bugs.launchpad.net/ubuntu-nexus7), help with battery/graphics benchmarking, help gather logs/data for already opened bugs, answer questions on AskUbuntu, or test the device!  If you want to help but don’t know where to start, join #ubuntu-arm on Freenode and ask for help!  Also, if you're so inclined you can submit patches to help get some of the bugs fixed!


So many user apps, but only a few on launcher, why not a launcher page or a command to install on launcher?

Your problem is typical for people who have just migrated from Windows. You don't know names of all software packages yet, and it may be difficult to find out which app does what. Luckily there is a simple  solution:

Install Classic Gnome Indicator.

Open the terminal window by pressing Ctrl+AlT+T and write there:

sudo apt-get install classicmenu-indicator

Type in your password when asked.

If you prefer you may install it through Ubuntu software centre.

You can now see all the applications sorted by category through the indicator appearing on the right top part of the screen.

Read here for more info:   Softpedia review for classic Gnome indicator

To learn to place an application link to the launcher see the link : how to put programs on the desktop
 It is easier than you think.


Try a stable Ubuntu release. Currently it is Ubuntu Lucid (10.04).

And since your laptop only has a limited amount of RAM, perhaps you want to try an Ubuntu Remix, which is targeted at such machines (e.g. Xubuntu or Lubuntu).


I managed to fix the issue. All I needed to do was install the latest daily kernel build for Ubuntu, and install drivers(from my other question)


Nvidia driver installs but does not load on ubuntu 18.04

Finally it installed! :D

The main cause was the driver installed by cuda toolkit. It never uninstalled properly. So to fix it I performed these operations:

Uninstall all nvidia related packages and remove all blacklist.
sudo update-initramfs -u
Reboot
Went to console mode (Ctrl + Alt + F3), installed Nvidia driver from Nvidia's website (.run file)
sudo update-initramfs -u
Reboot
Went to recovery mode, nvidia-uninstall
# update-initramfs -u
Reboot
Installed nvidia-driver-396 package from graphics-drivers ppa

Everything working fine now

Update: It broke after an update that rebuilt kernel and all dkms modules. Problem is with compiling nvidia-drm module. If anyone has a permanent solution, please post it and I will update accepted answer


Subsequent updates seem to have resolved the issue.


Dell XPS 13 (9343) Developer Edition with Ubuntu 14.04 does not boot

Did you wrote the iso file to USB stick right way ?

I suggest you to have an 4GB USB drive and use dd command.

https://wiki.archlinux.org/index.php/USB_flash_installation_media#Using_dd

You can use the same way.


Log file eating up whole space in Ubuntu 16.04 LTS. Fix?

A 37GB log file is a problem in itself, especially if the system is only days old. You have to monitor the log file to see what's going on. Best is to delete the old file, as it's too big to handle. Then you can install logrotate. With it you can clean up logfiles. It can "rotate" log files daily, weekly or whatever you want. In your case it should be daily. Then you specify how many logfiles you want to keep, plus you need to zip the old ones.

That 37GB file is zipped only 4GB, so will cause no problems even if you have to keep five of them. That would still be extreme, but this is just to give you an idea of what logrotation can do.

Below you can see my logrotate config for Apache, with compression and delayed compression. It keeps the logs for 14 days. For your log you should google what a good configuration is.

/var/log/apache2/*.log {
        daily
        missingok
        rotate 14
        compress
        delaycompress
        notifempty
        create 640 root adm
        sharedscripts
        postrotate
                if /etc/init.d/apache2 status > /dev/null ; then \
                    /etc/init.d/apache2 reload > /dev/null; \
                fi;
        endscript
        prerotate
                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
                        run-parts /etc/logrotate.d/httpd-prerotate; \
                fi; \
        endscript
}

When all is working well, you can set the logrotation back to 30 days or something.

Oh and if this is not the system you use daily, run the logrotate job manually. If the cronjob is set to run at 3 in the morning, it will probably not run, and your problem will continue to exist.

Update

You need to add compress to your logrotate config. You can add this to all configs in /etc/logrotate.d. For logs that are too big now, delete them or compress them like you did. 800MB is still too much considering you will never do anything with it, so delete it: sudo rm syslog.1.gz, and delete anything that is too big.


CIFS VFS: cifs_mount failed w/return code = -2

I had the same problem today and the workaround I found was creating a script in /etc/network/if-up.d/ containing:
#!/bin/sh
mount -a

I did a chmod +x on it, not sure if it was really necessary, but everything worked perfectly. I have found this answer in a brazilian forum post from 2018.


This should be able to write to sub folders in main directory of interest:

#!/bin/bash

for i in /path/to/directory/X/*/*;
do
    echo "hi" > "$i"/t.txt
done

Scenario:

X/
├── XA
│   └── subsub1
│       └── t.txt
├── XB
│   └── subsub2
│       └── t.txt
└── XC
    └── subsub3
        └── t.txt


How can I mount an external USB pen connected to Ubuntu phone

I bought a micro USB-USB adapter and tried with different sticks on my bq 4.5. It mounts automatically and can be found on "Places" (swipe from bottom on File Manager). Sometimes it fails to show there, but it can be found in /home/media/phablet. Not all sticks work, but I suppose it depends on the power consumption of the stick. I get it work with a dual usb-lightning stick. Sometimes it disconnects but I guess it is due to the cheap adapter.


How to select which application should be used by open containing folder?

I'm use kde-standard over ubuntu-desktop, but my fix to this bug must work with kde-full and kubuntu-desktop over ubuntu-desktop too. Follow this steps:

Rename nautilus:

$ sudo mv /usr/bin/nautilus /usr/bin/nautilus.ubuntu

Create a nautilus script in /usr/local/bin/ with the following content:

#!/bin/bash
if [ '$KDE_FULL_SESSION' == 'true' ]; then
  if [ '${1}' == '--no-desktop' ]; then shift; fi
  /usr/bin/dolphin "$@"
else
  /usr/bin/nautilus.ubuntu "$@"
fi

That's all! Maybe you have to kill all previous instances of nautilus using killall nautilus one more time.

NOTE: I'm like the K Desktop Environment but I have to develop GTK programs: keeping the Unity desktop intact for debugging is a natural choice for me. My script allows launch both, Dolphin on KDE and Nautilus on Unity, without removing the last one with sudo apt-get purge nautilus, but I have to repeat this steps manually if the Nautilus deb package receives an update.


I found that if there is any errors in the script file the start command will report "Unknown job".

You can check the script using init-checkconf /etc/init/nomilkfor.me (not as root but as a user account)

Once all errors was fixed there the start nomilkfor.me might work.


How to install new version of Wireshark on Ubuntu Xenial

Finally found this after figuring out how to ask the right question. Walk through on how to set up stable/testing/unstable together. Running debian stable/testing


I use IPblock

Description and installation instructions here http://ubuntuforums.org/showthread.php?t=530183


Unable to boot into Windows after installing Ubuntu

You have to run Boot repair for Windows, If you have an HP simply boot into your recovery partition and select start-up repair, if not you must insert your install disc and from there choose start-up repair.


How to force a recheck on purchasable apps on USC?

We had a problem with FieldRunners that is now fixed. I believe it should install correctly this time.

The problem is that FieldRunners was 32 bit only so if you were running 64 bit, it would give you that error even though it was visible. If this is not the case, please let us know. The best route is through pay-support at canonical.com


How do I enable Ctrl-Alt-Backspace to kill the X server?

I only tested this on 13.10+, but you could do the following on the terminal type:

sudo dpkg-reconfigure keyboard-configuration

This will open the keyboard configuration script. Press enter 5 times if you don't want to change any keyboard configuration and only want to kill X. When you get to the Kill X option which looks like this:

Select YES and press enter. Wait a bit while everything configures and after that you should have the ability to CTRL+ALT+BCKSPC right on the current session. After saving any work you have pending, try it yourself.

Perfect to solve any visual issues or annoying apps.


No, only Qt/QML and HTML5 will be supported, at least at first.  Gtk might work, but it won't get support if it doesn't.


I know, way too broad a Q, but...

Just read through all the http://help.ubuntu.com pages
Debian's Documentation https://www.debian.org/doc/
Debian's wiki https://wiki.debian.org/
And Arch's https://wiki.archlinux.org pages are excellent, most tools there are available here too
Don't forget to read all the man pages, maybe info too

Or this site looks promising, though might be getting a little dated & "text-only":

The Linux Documentation Project http://tldp.org/

And see you next decade when you're done with those :-)


The kernel package is already installed - you damaged it. Reinstall it.

sudo apt install --reinstall linux-image-4.4.0-59-generic linux-image-extra-4.4.0-59-generic.

Note the difference in names:

The 'linux-image' and 'linux-image-extra' packages are the actual kernel images.

The 'linux-image-generic' package is merely a metapackage that refers to the current kernel image packages...so updates work.


First way is about font features of Linux Libertine G and Linux Biolinum G include extended font names for LibreOffice:

Linux Libertine G:smcp=1 for small caps

Linux Libertine G:pnum=1&onum=1 for proportional & old style numbers

Read more here, and also you can use Typography toolbar for LibreOffice.

Second view for a problem is a letter "G" in the font name what have the meaning that this font is ready for use by SIL Font Graphite Technology.

Read more about Graphite Font Extension for LibreOffice


All resolution options except 1024x768 gone after upgrade to Ubuntu 20.04.2 LTS

You probably got bit by the same kernel upgrade I was bit by this morning.
Check /var/log/apt/history.log and you'll probably see something of the form
Commandline: apt -y full-upgrade
Requested-By: spl (1000)
Install: linux-image-5.8.0-45-generic:amd64 (5.8.0-45.51, automatic), linux-headers-5.8.0-45:amd64 (5.8.0-45.51, automatic), linux-modules-extra-5.8.0-45-generic:amd64 (5.8.0-45.51, automatic), linux-headers-5.8.0-45-generic:amd64 (5.8.0-45.51, automatic), linux-modules-5.8.0-45-generic:amd64 (5.8.0-45.51, automatic), linux-modules-nvidia-460-5.8.0-45-generic:amd64 (5.8.0-45.51, automatic)
Upgrade: linux-headers-generic:amd64 (5.8.0.44.49, 5.8.0.45.50), linux-libc-dev:amd64 (5.8.0-44.50, 5.8.0-45.51), linux-modules-nvidia-460-generic-hwe-20.04-edge:amd64 (5.8.0-44.50, 5.8.0-45.51), linux-image-generic:amd64 (5.8.0.44.49, 5.8.0.45.50), libglib2.0-dev-bin:amd64 (2.66.1-2ubuntu0.1, 2.66.1-2ubuntu0.2), libglib2.0-bin:amd64 (2.66.1-2ubuntu0.1, 2.66.1-2ubuntu0.2), libglib2.0-dev:amd64 (2.66.1-2ubuntu0.1, 2.66.1-2ubuntu0.2), libglib2.0-doc:amd64 (2.66.1-2ubuntu0.1, 2.66.1-2ubuntu0.2), libglib2.0-data:amd64 (2.66.1-2ubuntu0.1, 2.66.1-2ubuntu0.2), linux-generic:amd64 (5.8.0.44.49, 5.8.0.45.50), libglib2.0-0:amd64 (2.66.1-2ubuntu0.1, 2.66.1-2ubuntu0.2), libglib2.0-0:i386 (2.66.1-2ubuntu0.1, 2.66.1-2ubuntu0.2)
End-Date: 2021-03-16  05:52:21

I backed those changes out as follows:
/usr/bin/sudo apt remove linux-headers-5.8.0-45:amd64
/usr/bin/sudo apt remove linux-modules-extra-5.8.0-45-generic:amd64
/usr/bin/sudo apt remove linux-headers-5.8.0-45-generic:amd64
/usr/bin/sudo apt remove linux-modules-5.8.0-45-generic:amd64
/usr/bin/sudo apt remove linux-modules-nvidia-460-5.8.0-45-generic:amd64

/usr/bin/sudo apt install linux-image-5.8.0-43-generic:amd64
/usr/bin/sudo apt install linux-modules-extra-5.8.0-43-generic:amd64
/usr/bin/sudo apt install linux-headers-5.8.0-43:amd64
/usr/bin/sudo apt install linux-headers-5.8.0-43-generic:amd64
/usr/bin/sudo apt install linux-modules-5.8.0-43-generic:amd64
/usr/bin/sudo apt install linux-modules-nvidia-460-5.8.0-43-generic:amd64

which reverted me to the previous kernel.  I then sacrificed a goat, took a great big slug of coffee, crossed my fingers and rebooted.
All returned to whatever passes for normal.
Your mileage may vary.
Note: You'll get some scary warnings about deleting a running kernel.  Hence the sacrificial goat.


if u want to connect to another computer try using ssh , before doing so u need to install openssh-server in the work computer

sudo apt install openssh-server

and openssh-client in your personal computer

sudo apt install openssh-client

after that try connecting using ssh user@ip from your personal computer , where user is your username and ip is the actual ipaddress of your work computer.
This was you can connect to your work computer using  a terminal.

or u can host a ftp server by installing vsftpd on your work computer

sudo apt-get install vsftpd

after that try searching in the browser using the keywords

ftp://ip

where ip is the ip address of your work computer
you will be prompted for typing username and password

Also make sure the network your work computer is  connected does have port forwarding


Ubuntu Software Update Application Always Fails GNOME Application Platform version 3.34 on Ubuntu 18.04

According to this post on ubuntu-fr.org

First, run the following command:

flatpak install org.freedesktop.Platform.openh264

Then press Y and then press ENTER when it asks: "use this remote"

If you get an error, run the following command:

flatpak install org.freedesktop.Platform/x86_64/19.08

Then press Y and then press ENTER when it asks: "use this remote" and then run the following:

flatpak uninstall --unused
flatpak update


Issues with NFS sharing between Linux and OSX

File ownership is stored numerically, not by name, as UID and GID.

The UID and GID values are translated from numbers to names via each system's /etc/passwd, /etc/group.

In your example, the file test.txt is owned by someuser's UID and GID (getent passwd someuser  | awk --field-separator ':' '{print $3,":",$4}'.

On the Mac side, their equivalent of UID and GID mapping-to-names produces different results with the same UID and GID numbers as input.

You could syncronize the accounts with LDAP, but that seems overly complex.


How can I recover encrypted data from a previous Ubuntu installation?

I have this same problem, and discovered ecryptfs-recover-private from Dustin Kirkland's blog. This utility interactively asks for your login password, which I have, and then mounted my old home directory in /tmp/ecrypt.hAsHeD and I am now able to copy out everything I need.


For a "true" hybrid suspend, which writes the image to both disk and RAM from the beginning, having the benefits that resuming will always be fast and that the machine will not wake up for a short time to hibernate for real. To use it, instead of he code above, paste the following in the /etc/pm/config.d/00-use-suspend-hybrid file:

# WORKAROUND: always set the default hibernate mode first (normal mode)
# (not required if you have the patch mentioned by Rohan below (http://askubuntu.com/a/344879/169))
HIBERNATE_MODE=platform

# Always use hibernate instead of suspend, but with "suspend to both"
if [ "$METHOD" = "suspend" ]; then
METHOD=hibernate
HIBERNATE_MODE=suspend
fi

# Make sure to use the kernel's method, in case uswsusp is installed etc.
SLEEP_MODULE=kernel


KDE application icon not displayed in Ubuntu

First install qt5ct:

sudo apt install qt5ct

Then run it and choose your preferred icon/theme:

Finally set QT_QPA_PLATFORMTHEME to qt5ct in your .profile:

echo 'export QT_QPA_PLATFORMTHEME=qt5ct' >> $HOME/.profile

Re-login and  it should fix the issue.


The bash shell builtin inherits its format specifiers from the corresponding C routines, so often the most useful reference is man 3 printf. From there:

yes, any character that is not part of a format specifier is printed literally

   Format of the format string
       The format string is a character string, beginning and  ending  in  its
       initial  shift state, if any.  The format string is composed of zero or
       more  directives:  ordinary  characters  (not  %),  which  are   copied
       unchanged  to the output stream; and conversion specifications, each of
       which results in fetching zero or more subsequent arguments.  Each con‐
       version specification is introduced by the character %, and ends with a
       conversion specifier.  In between there may be (in this order) zero  or
       more  flags, an optional minimum field width, an optional precision and
       an optional length modifier.

it specifies that the value should be left-justified

   -      The converted value is to be left adjusted on the  field  bound‐
          ary.  (The default is right justification.)  The converted value
          is padded on the right with blanks, rather than on the left with
          blanks or zeros.  A - overrides a 0 if both are given.


Create a shared folder for group of users

what about using setfacl?
In few words, it would be matter of creating somewhere the directory (e.g. "share"), set users group (let's call it shareusers) as primary group for each user in it, set users group as owner group for your share (owner user being root) and finally use setfacl to define acls (something like

setfacl -m d:g:shareusers:rwx /pathToShare )

Don't forget to chmod 2770 your directory.

Silvia


You likely have HDMI output turned off in the audio configuration.

The pavucontrol package installs the Pulse Audio Volume Control Utility.  The configuration panel allows you to turn on output.  Your HDMI output should then show up in the output panel.


How to interface with Nexus 4 sensors in Ubuntu Touch through C++ program?

You would instantiate the QAccelerometer object in your code, and connect to the readingChanged signal on that object. The argument to that is a QAcclerometerReading object, which has x(), y(), and z() methods to read the respective values.

You will also need to include the sensors policy group in your apparmor declaration file, for the click package.


Can you install downloaded flatpaks via gnome-software?

Ubuntu 17.10

Hello pals, after install flatpak , you must enable "flatpak support" Add-ons in Ubuntu Software. To enable.

Open Ubuntu Software
search "gnome software"
On the section Add-ons, check "flatpak support".

If you have problems installing from the flathub website, try searching the application by its name on Ubuntu Software directly. The applications provided by flathub will have a line like this Source: dl.flathub.org


How do I uninstall elegance colors theme from Ubuntu Gnome Shell?

You will need to first remove the PPA and then purge the gnome-shell-theme-elegance-colors package:

sudo add-apt-repository --remove ppa:satyajit-happy/themes
sudo apt purge gnome-shell-theme-elegance-colors

Also check if there are any folders with the theme name in ~/.local/share/themes or ~/.themes folder.


Ubuntu 20.04 geolocation not working on some web browsers

Solutions:

Remove default Firefox and install snap version. Location is shown correctly
Install Opera browser. Location is shown correctly


Where is the /etc/login.conf file in Ubuntu 12.10 and latest?

There is no general file.

For sudo, this can be achieved with the faillog command. (see the man pages for info)


Keyboard not working on a Samsung 300e5a laptop

I finally solved this problem.
First, i noticed that booting with acpi=off at grub worked. But it wasn't a good solution because my fan wasn't working well.
So this is how i did :

At grub, add this 2 options :

acpi=noirq
acpi_iso=Linux ( needed if your fan stop working after using first option)

How do I add a kernel boot parameter?

Hope that it can help


Couldn't find any package by regex 'libXss.so.1

You're trying to install a filename and not a package. In cases like this, use apt-cache search ... to find the right package name. In this case:

$ apt-cache search libXss
libxss-dev - X11 Screen Saver extension library (development headers)
libxss1 - X11 Screen Saver extension library
libxss1-dbg - X11 Screen Saver extension library (debug package)

So you probably want to install libxss1:

sudo apt-get install libxss1


Generating a PGP Key

Here is a GUI way to generate a new PGP key.

Open the Passwords and Keys (Seahorse) application

This screen will appear.

Either go to File → New in the global menu or hit Ctrl + N
In the Create New ... window select PGP Key and hit Continue

Enter your full name and your email address, the comment is optional

Enter a strong password which you'll remember

Wait for the Generating key dialog to finish (this may take a while)
You're done!

You can find your key in the Passwords and Keys application's My Personal Keys tab.

Uploading your key to Launchpad

Uploading your key to Launchpad is just a few clicks.

Go to Launchpad.net and log in
On your profile page click on the yellow edit button (a round button with a grey pencil icon) next to OpenPGP keys

Note: The URL to that page looks like this https://launchpad.net/~yourusername

Open the application Passwords and Keys (Seahorse)
Navigate to the My Personal Keys tab
Select your key and go to Remote → Sync and Publish Keys in the global menu
Hit Sync

Note: The Sync button may be grayed out if no sync server is selected. In that case:

Hit the Key Servers button

Select the hkp://keyserver.ubuntu.com:XXXXX key server from the Publish keys to list and hit close

Double click your PGP Key from the list on the My Personal Keys tab
In the key window that just appeared navigate to the Details tab, select the Fingerprint with your mouse and hit Ctrl + C

Paste the just copied fingerprint into the Fingerprint text field on the Change your OpenPGP keys page on Launchpad and hit Import Key

You're done!


Overriding DSDT with rEFInd (Enabling S3 in ACPI)

rEFInd manual boot stanzas cause many people problems -- this type of configuration was once common, back in the days of GRUB Classic and LILO, but it's basically a forgotten art today, so I see a lot of people who attempt such configurations but they fail because of typos or misunderstandings of the finicky details that they require. In the case of the example you've shown, one problem is that you can specify only one initrd file on the initrd line in refind.conf's manual boot stanza definition. If you need to specify multiple initrd files, they must be listed on the options line. There may be other problems I've missed, too.
Instead, I recommend you delete the custom boot stanza configuration and instead edit /boot/refind_linux.conf. (If this file is not present, then you can create it with the mkrlconf script that comes with rEFInd. It may already be installed and on your path, depending on how you installed rEFInd. If not, you can extract it from a rEFInd .zip file.) You can add your additional kernel command-line parameters in this way; however, I'm not sure about the /boot/acpi_override file in your GRUB configuration. It looks like that's an additional custom initrd file, in which case you should be able to add it as an extra kernel command-line option (initrd=/boot/acpi_override); however, once you do that, you'll also need to explicitly add your standard initrd file (possibly using %v to identify the kernel version number). The end configuration would look something like this:
"Boot with ACPI override" "root=UUID=febd7fdb-b56d-482d-bcdf-5b6d472fa950 ro quiet splash mem_sleep_default=deep initrd=\boot\acpi_override initrd=\boot\initrd.img-%v-generic"

Also, note the use of backslashes (\) in the path specification for the initrd files; it's the EFI that's used to load the initrd files, and the EFI uses backslashes, rather than Linux-style forward slashes (/), to separate directory elements.


Answering my own question

It turns out logging into the Kubuntu machine added/modified a ~/.dmrc file in my LDAP home folder, with the following content:

[Desktop]
Session=default

This is where the Can't find session 'default' log line comes from. Indeed, when taking a look at /usr/share/xsessions (as hinted in this post), the only file I find is

/usr/share/xsessions/ubuntu.desktop

Session default does not seem to exist.

Modifying ~/.dmrc to Session=ubuntu fixed the GUI-login.


sfill is from secure-delete package (also provides srm)

Traditionally we zero out like this:

    cat /dev/zero > wtf; sync; sleep 3; sync; rm -f wtf

In your case, you were using sfill, not sure what arguments you used (what kind of files it was writing either), if you remember the cwd (current working directory) while your were running sfill from, you can cd there and use ls -lahS to see if there is huge files, if so, just delete it.

If you don't remember, try using the following command to find big files, the below example find 10GiB+ files.

    find / -depth -type f -size +10G -exec ls -lhS {} \;

NOTE: This has nothing to do with inodes (there must be a huge file which filled the HDD). fsck won't help because it is not a filesystem issue.


Bulk data does normally go to /home and /srv, with the latter often beeing completely unused on desktop systems. Obviously these two directories should reside on your "big" storage, possibly symlinked to each other.

/dev, /proc and /sys are not usually written to on the file system. Instead temporary file systems get mounted into these folders and consequently there is no need to put them anywhere else. Same goes for /mnt (rarely used today) and /media, on which empty mount point directories are created each time you put in a USB drive or similar medium. This is not likely to ever kill your SSD though.

/bin, /sbin, /lib, /usr and /etc are all classical examples for things you would keep on the SSD, Those dorectories contain your program files and they are not normally written into unless you modify your software setup or make system wide configuration chages.

/var is the only directory which is supposed to contain changing, persistent data during regular system operation, by your logic you would put this one on the small hard disk.

Trickier is what to do with /tmp and /run. These two contain rapidly changing data, which is not needed across reboots. The system can profit a lot from the speedup provided by having those on the SSD, however they would also be the most weary storage areas.

Directories of this name are also available in /var, yet they are seperate because the equivalents in the / directory are considered more vital to the system function and traditionally they should be available even in situations where /var is unmountable for some reason. Actually it is rather safe to symlink them to /var/tmp and /var/run respectively.

You can also think about mounting them as ram disks, but beware that some applications might try to write a lot of data into these folders and lately I came across programs that rely on persisten directory structures in /run and /var/run or mechanisms that tend to act irritated when writing data to /tmp early in the boot process and finding themselfes unable to retrieve this data later after a ramfs has been mounted there.

In general I would not worry too much about straining a modern SSD. They are an order of magnitude more durable than a common USB stick and I am happily running /var, /run/ and /tmp on a SSD myself. The increase in operation speed is probably worth it.


How to increase the default screen resolution without a monitor plugged in

I found a page that might be just the thing for you.....

https://wiki.ubuntu.com/X/Config/Resolution

Relevant section:

Adding undetected resolutions
Due to buggy hardware or drivers, your monitor's correct resolutions may not always be detected. For example, the EDID data block queried from your monitor may be incorrect.

If the mode already exists, but just isn't associated for the particular output, you can add it like this:

xrandr --addmode S-video 800x600

If the mode doesn't yet exist, you'll need to create it first by specifying a modeline:

xrandr --newmode <Mode``Line>

You may create a modeline using the gtf or cvt utility. For example, if you want to add a mode with resolution 800x600 at 60 Hz, you can enter the following command: (The output is shown following.)

cvt 800 600 60
# 800x600 59.86 Hz (CVT 0.48M3) hsync: 37.35 kHz; pclk: 38.25 MHz
Modeline "800x600_60.00"   38.25  800 832 912 1024  600 603 607 624 -hsync +vsync

Then copy the information after the word "Modeline" into the xrandr command:

xrandr --newmode "800x600_60.00"   38.25  800 832 912 1024  600 603 607 624 -hsync +vsync

After the mode is entered, it needs to be added to the output using the --addmode command as explained above.


Does a small USB stick exist which has built in 3g or 4g, and can be plugged into any computers usb port to boot into linux giving you internet access using the 3g or 4g built into the USB stick which booted linux?

I am somewhat confused by the fact that this question is so short and still has a bounty on it. The short answer is; yes. There are 3G/4G modems that plug in via USB that also has storage on them, both internally and as an add-on (for example, some modems support inserting an SD card).

So is that the only thing you want answered? I think you need to elaborate what you want to get out of this question.

Here are a couple of examples:

http://www.alibaba.com/showroom/3g-usb-modem-sd-slot.html
http://www.aliexpress.com/popular/3g-sd-card-modem.html
http://dx.com/en/p/7-2m-hsdpa-3g-usb-2-0-wireless-modem-adapter-with-tf-card-slot-black-47013#.UwzU8x_F8Vk


I may not be a expert, BUT I did have this issue once upon a time and quickly solved it with these solutions. Problem could be hardware or software related, which cause then lags- unresponsiveness.

Look at your touch pad, is it greasy, dirty? It could be merely a dirty touchpad, which in turn the pad doesn't register movement from your fingers
Solution: Give it a good old scrub! (This applies to mouses, clean your mouse and surface underneath).
Could it be too much strain on your laptop?
Solution: Try closing down application, windows, EVERYTHING in your desktop environment. Free sum spaceeee, give your cpu, memory, gpu some room to breath.
Could be a overworked and tired laptop?
Step 1: COMPLETELY shutdown that machine of yours, dont charge it, leave it AlONE.
Step 2: Put your laptop in a cool environment (not your fridge).
Step 3: Leave it for more than 4-6 hours.
Step 4: Go outside and kick a ball or somthing
Step 5: Wait for it to cool down
Could it be that your laptop has a completely full hard drive? Spring clean that hard drive. Clean it up, make room, your pc will thank you for that.
Solution: Your laptop has room to write more imformation into that hard drive, whichh in turn happy laptop :).
This is last resort, But I see you posted your using Ubuntu version 15.10, since this isn't LTS (Long Term Support) could be buggy? I suggest that you perform a fresh install of Linux Ubuntu 15.10 OR roll back over to Ubuntu 14.04 (More Stable Version). Oh also doing a fresh install is the ultimate solution for software wise.
Could be a virus? Viruses can have a huge performance slowdown
Solution: Identify virus and eliminate problem OR performing a full system wipe and fresh install of operating system- ONLY FOR DIRE SITUATIONS!!!!!!

So these are some of my methods of solving these problems im sure there are hundreds more solutions out on the interwebs my main recommendation is rolling back to Ubuntu 14.04 which means a full reinstall of the operating system, this method solved my problem with the trackpad.
How do you like them apples? Pls feel free to ask any questions relating to this problem! ;)


How can I get apps in Plasma desktop to look right on a very large screen? There's no desktop scaling option

If you need it to scale. It won't. KDE hasn't put much of an effort into working with 4K monitors if you need it to scale to where you can actually see text as text and not very thin lines. And if you want to have multiple monitors with different resolutions, just forget about it. I'm sure the small number of people actually working on it are working on it. There just seems to be more emphasis on a lot of people making cool stuff and not stuff that actually helps it work better.


Why can't I install all packages starting with `ruby-*` pattern?

When you try to install using ruby-*, that regex will be expanded to include all packages starting with name ruby. But that will only succeed if all packages starting with ruby don't conflict each other or can stay together happily.

The problem is, some packages with name starting with ruby can conflict with some other packages matched by the regex. For example, when I execute that command in my system (Ubuntu 16.04), one of the conflicts was -

ruby-celluloid-fsm : Breaks: ruby-celluloid (< 0.17~) but 0.16.0-4 is to be installed

Here ruby-celluloid-fsm conflicting with ruby-celluoid. I thought one of them is older than the other and the newer one replaces older one and can't stay together. Indeed this was the case when I checked with apt-cache depends ruby-celluloid-fsm command. Here is the output

→ apt-cache depends ruby-celluloid-fsm
ruby-celluloid-fsm
  Depends: bundler
 |Depends: ruby
  Depends: <ruby-interpreter>
    ruby2.0:i386
    ruby2.0
    ruby2.1
    ruby2.2
    jruby
    ruby1.9.1
  Depends: ruby-dotenv
  Depends: ruby-nenv
  Depends: ruby-rspec-logsplit
  Depends: ruby-timers
  Breaks: ruby-celluloid
  Replaces: ruby-celluloid

You can clearly see that the package conflicts with ruby-celluoid, indicated by the Breaks: and Replaces: line.

So, don't install anything with * regex pattern, it can fail dramatically. You should only install packages what you need. Remember, Not all packages in official repo can be installed in a system together.


Remove what was extracted with the rm command. Normally I would believe you need to rm a directory and all files of the extract will be inside that directory.

A tar file itself is not removed so you can always redo the extract. Though ... what you say here probably means you have a tar file that is not complete or not downloaded correctly.

To help more we need the actual command used and error notices.


I am running OpenOffice fine on my xubuntu 14.04.
Three things to keep in mind:

Make sure you really removed any LibreOffice package prior installing OpenOffice (for example using:

sudo apt-get purge libreoffice*

Install the OpenOffice .deb files; like you did
don't forget about the DESKTOP integration, so under en-US/DEBS

cd desktop-integration
sudo dpkg -i *.deb

From what you are writing, you might have missed "3."


Android connected via USB gives inconsistent ID

Totally normal behaviour. You should be able to write

ATTRS{isProduct}="61f9|61a6"

or

ATTRS{idProduct}="61*"


Problems with Software Center and Terminal

Probably malformed files. Just delete the files and update:

sudo rm /var/lib/apt/lists/* -f
sudo apt-get update


USB mouse stops working with dell D6000 dock

Installing the nvidia 418.43 seems to have solved the issue.

apt purge nvidia*
add-apt-repository ppa:graphics-drivers/ppa
apt install nvidia-drivers-418

There have been no mouse dropouts for a few hours while working with youtube playing in the background.


You can use as many as OS you need on just 1 System, but it has its own problems! I suggest you to use same SWAP space and /home directory for all of your linuxs (if you are not seperated them when you installed it).

Anyway, my last paragraph is not necessary! if you installed new Linux distribution, and you didn't corrupted UEFI partition, then you just need to go inside one of your linux distros and run this command:

sudo grub-mkconfig -o /boot/grub/grub.cfg

It will probably solve your problem.


The short answer is a combination of ~/.config/menus and ~/.local/share/applications. The first stores the menu configuration while the second stores the .desktop shortcut files that the menu displays.

Start with the desktop files. Wine (thankfully) creates its own subdirectory at ~/.local/share/applications/wine so you can copy that straight over. For other applications, you might have to be a bit more selective about things.

This unfortunately doesn't make the launchers trusted. The quickest way I've found to do that is by running this little hack:

find ~/.local/share/applications -name '*.desktop' | sed 's, ,\\&,g' | xargs sudo chmod ugo+rx

Then copy over the relevant menu configs and reload the menus. Unity probably needs unity --replace and if you're using panels as I am, killall gnome-panel does the trick.
Oh and you need to merge in the icons too. They're sitting in ~/.local/share/icons.


Try something like this

You wish to change ufw rules based on interface status.

Nice place for this kind of action is in /etc/network/if-down.d/ and /etc/network/if-up.d/

You can in this folder put some script and make action. For example put this script in /etc/network/if-down.d/ to change ufw rules every time when tun0go down.

Make script called script with execute permissions 755

sudo nano /etc/network/if-down.d/script

Script is

# Check interface
[ "$IFACE" != "tun0" ] || exit 0
# Do something
sudo ufw default deny outgoing
sudo ufw allow out to xxx.xxx.xxx.xxx

Change permision of script

chmod 755 /etc/network/if-down.d/script

In script xxx.xxx.xxx.xxx represent ip of your vpn server

When vpn reconnect you need again to change ufw rules.
Make one more script aka script2

sudo nano /etc/network/if-up.d/script2

Script is something like this

# Check interface
[ "$IFACE" != "tun0" ] || exit 0
# Do something
sudo ufw default allow outgoing
#also you can add more ufw rules ...
sudo ufw ....

Change permision of script

chmod 755 /etc/network/if-up.d/script2

First script will if tun0 go down make default outgoing police to deny but will allow access to vpn server. Second script will change default outgoing police to allow


If I were in your shoes and I thought it was the graphics card, I would probably try taking it out and seeing if it will boot to see if that works or not. If it boots with the card out, you could try installing the drivers for the Nvidia cards from here: Nvidia drivers.

If it does boot, you should check the logs and post them here so we could see what might be causing the problem.

From the Nvidia page:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current


Is it possible to theme the BFB launcher background separately in Unity 7?

Dash Button can't be themed separately

With Unity 7 from Ubuntu 13.04 and up, the Dash Button (also known as BFB in short of "Big Freakin Button") and other icon buttons on the launcher were unified to use the same theming assets. So, when you follow Unity Theming guide to theme the launcher icon buttons on Ubuntu 14.04LTS or up, you theme the Dash Button/BFB along with it.

Don't worry, there's a workaround

Include blank/transparent svgs for these assets in the unity folder of your theme:

$THEME_PATH/unity/launcher_icon_shadow_62.svg
$THEME_PATH/unity/launcher_icon_back_54.svg
$THEME_PATH/unity/launcher_icon_selected_back_54.svg
$THEME_PATH/unity/launcher_icon_edge_54.svg
$THEME_PATH/unity/launcher_icon_shine_54.svg
$THEME_PATH/unity/launcher_icon_glow_62.svg

Make a 128x128 png image with any icon you like and add your preferred background too to the same png. The default 'Circle of Friends' Whirlwind logo in Dash Button is located here: /usr/share/unity/icons/launcher_bfb.png. Replace it with the png image you made and then restart Unity. There are some disadvantages with this workaround though:

The logo icon isn't as big as the whole Dash Button. So, the final result won't look as good as the Unity 8 screenshot shown in question.
The BFB logo icon can't be changed by themes. It needs to be manually modded.

Used to be possible in older Unity versions

Versions prior to Unity 7, like Ubuntu 12.04LTS's Unity 5 had separate assets for Dash Button and other icon buttons. This can be seen in the image shown here:

Though it didn't have any theming support like Unity 7, the BFB could still be manually modded to have a different look. See this answer to know more on modding Unity 5's BFB: Change Dash Button on Ubuntu 12.04LTS


What happens if I migrate Ubuntu to a another different computer?

Does it crash due to device driver issue or not? I

No. Linux uses generic drivers and on the fly even: drivers get loaded as the hardware/kernel demands it.

The only drivers that can be be an issue are 3rd party drivers and only if you switch to different brand hardware and even then there are two: display nVidia, AMD, etc and your NIC (INTEL, Broadcom, etc). It is best to remove those though that can also be done on the new system from grub rescue or a live session.

I have transplanted more than 100 hard disks from 1 system to another with almost no issues. You can also clone the disk with the "dd" command and move it to the new computer but that can be dangerous.

I do believe a fresh install might be the easiest way though if you can get a hard disk for both systems and do not actually want to use the old hard disk. And then use a network, usb or dvd to copy personal data to the new computer.


In the graphical environment, Mozilla Thunderbird is a good choice.

If you like or want to get into console (text based) apps, then mutt is for you.

Most important:  In either case, to accomplish your low disk space requirement, you will configure your email application's email server connections to use the IMAP protocol.  This protocol is common and easy to configure.  Most email providers and email client developers have instructions on their websites.  Don't use POP protocol which usually results in a higher disk usage on the client system.


Remote connection on Ubuntu from windows 7

Another solution, and this is what I use on my systems is NX or FreeNX. This is a full desktop remote access client. NX (www.nomachine.com) has both the server and the client software that can be installed. The server portion (along with the node portion and the client) can be installed on the server. You also need to install OpenSSH. Synaptics can do this for you.

Once the sevrer is installed, you can install the client only, on any any client computer. There are client for Linux, Windows and Mac OS X.

Once the client is installed on the remote client, you start it, give your hostname/IP address and port (if not 22). Provide your user credentials, just as when you login locally. You are in business.


Why might Ubuntu be slow for me while using Wubi?

Ubuntu 11.04 is still a bit buggy. It should pick up after a few more updates. Or try installing Unity 2D from the Software Center. This will definitely give you a noticeable boost of performance. It is a lot lighter on resources than the default Unity. :)


Set different mail ID than domain in postfix

Yes it's possible. For that you need to create virtual domain. Follow these steps:

Edit /etc/postfix/main.cf

mydestination = differentdomain.com
virtual_alias_domains = differentdomain.com
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_mailbox_domains = differentdomain.com
virtual_mailbox_maps = hash:/etc/postfix/virtual

Update /etc/postfix/virtual file

mail@differentdomain.com mail

Update /etc/postfix/vmailbox file

mail@differentdomain.com      differentdomain.com/mail

After changing the virtual file execute this command postmap /etc/postfix/virtual
After changing the vmailbox file execute this command postmap /etc/postfix/vmailbox
After changing the main.cf file execute this command postfix reload or restart the postfix service by execute this command sudo service postfix restart


I think you need to activate the Canonical Partner repository.


Where to put preseed.cfg on flash drive install?

From the debian help on this I would put it in the root of your install (1st line of this:)

B.2.1. Loading the preconfiguration file
If you are using initrd preseeding, you only have to make sure a file named preseed.cfg is included in the root directory of the initrd. The installer will automatically check if this file is present and load it.
For the other preseeding methods you need to tell the installer what file to use when you boot it. This is normally done by passing the kernel a boot parameter, either manually at boot time or by editing the bootloader configuration file (e.g. syslinux.cfg) and adding the parameter to the end of the append line(s) for the kernel.
If you do specify the preconfiguration file in the bootloader configuration, you might change the configuration so you don't need to hit enter to boot the installer. For syslinux this means setting the timeout to 1 in syslinux.cfg.
To make sure the installer gets the right preconfiguration file, you can optionally specify a checksum for the file. Currently this needs to be a md5sum, and if specified it must match the preconfiguration file or the installer will refuse to use it.


With the following link you will find the archived website for www.ivtv.org : http://web.archive.org/web/20120716193153/http://ivtvdriver.org/index.php/Main_Page.


Would dual-booting Ubuntu 12.04 with Windows 7 work succesfully on a Sony VAIO e series laptop?

You can get a feel of how Ubuntu looks like on your system by booting it using Ubuntu live CD or a Bootable USB drive, without making any change to your current Operating System. You can fiddle around with the OS and check if all or most of the drivers are detected correctly. In some cases it is possible that some drivers may not be available but there are work around which may not be very easy to follow for a new user to Linux.


How can I modify the screen resolution for AnyDesk?

Run in a terminal:
xrandr --fb 1920x1080


Cant get every icons in System settings in Ubuntu14.04

I had a similar issue and re-installing ubuntu-desktop fixed the issue. You can do that using the following command:

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop

If you get an error about broken packages use the following commands to fix the issue:

sudo apt-get install aptitude
sudo aptitude install --reinstall ubuntu-desktop

Do not accept the first suggested fix but go through the suggested fixes untill you see one that allows installation of the ubuntu desktop.


While it is possible to create new locale data, it is a fair bit of work.  You can however select different locales for different uses through the various LC_* environment variables (this is what the Language Settings control panel does when you choose a different language).  This may be enough for what you want.

The locale man page provides some details of the various locale categories (see the Environment Variables section).  Some variables you might be interested in include:

LC_MEASUREMENT - Measurement units (Metric or Other).
LC_PAPER - Paper size.
LC_NUMERIC - Non-monetary numeric formats.  I'm not sure whether this one would be relevant though, since I don't think there is much difference in the way US writes their numbers.

If you want to change any of these, I would suggest doing it by editing ~/.profile and adding a line like:

export LC_XXX="YYY"

Since that is how the current language selector stores its preferences.

Setting any of these environment variables to a locale that uses metric measurements (e.g. en_AU.utf-8 or en_NZ.utf-8) should help change the defaults various applications use.

There will probably still be a few applications that default to US measurement formats though, since I've seen a few that effectively use LC_MESSAGES to pick units (usually by attempting to translate a special string and rely on the translator to translate it in a way that indicates the desired units).  For those you'll either have to live with the US default, or change the messages locale to something else (which will probably have the side effect of switching to British English).


How can I restrict users from deleting files?

You need an access control list to do this. Package is called acl

From the article:

An access control list (ACL), with respect to a computer file system, is a list of permissions attached to an object. An ACL specifies which users or system processes are granted access to objects, as well as what operations are allowed on given objects. Each entry in a typical ACL specifies a subject and an operation. For instance, if a file has an ACL that contains (Alice, delete), this would give Alice permission to delete the file.

There are 2 packages in Ubuntu to maintain the rules for ACL:

sadms
eiciel

The problem you will run into with chmod is that delete and write are considered the same: if you can write to a file you can empty it (and thus you can delete the contents).

Btw: the 1st package can also manage your samba settings ;)


It doesn't look like it's been packaged by anybody, but you can always clone from source:

git clone https://github.com/nothings/stb.git
sudo cp stb/stb_image.h /usr/local/include/


Must my laptop connect to internet during installation?

You do not have to have the computer connected to the Internet at that time because you can do your updates right after your installation. It just makes things faster for you when you have it finally up and running.


Go here.

The site walks you through the process.


How do I make Ubuntu appear as a bluetooth keyboard?

You can make your computer act as a Bluetooth keyboard for other devices, provided that:

It has Bluetooth, and runs Bluez. (This is true of Ubuntu systems with Bluetooth.)
It's running a Linux-based operating system. (That includes Ubuntu!)
You have administrative abilities in your Linux-based OS (for example, you can sudo to root).

There is a FOSS program that does this, called hidclient:

  The hidclient program makes a Bluetooth® technology equipped computer
  appear as a Bluetooth® keyboard and mouse device to other machines.
  Input events (like keystrokes and mouse movements) of the locally
  attached input devices will be forwarded to another machine via the
  Bluetooth® link.

  For the counterpart (which might be a Linux PC, a Win PC, a PDA...)
  there is no technical difference to "real" Bluetooth® input devices.

Source: hidclient's official site (main page).

That totally rocks: you don't have to do anything special to your iPad (or any other mobile device that works with Bluetooth keyboards) to get this to work. You don't have to jailbreak it. You don't have to install any special apps. Just install and run hidclient, then tell your mobile device (the iPad) you want to use your Bluetooth keyboard!

Everything you need to get the software and learn how to use it is right here.
After reading the whole page (so you understand how it works), make sure to use the instructions at the end (for Ubuntu).

Here's a compact version (essentially the same procedure – this worked better for me):

Install libbluetooth-dev .
Download hidclient source code for Ubuntu. (Check the official page to make sure that's not out of date.) Put it in a folder by itself and extract its contents.
Type make and press Enter to compile the source.
Back up and edit your Bluetooth configuration:
• sudo cp /etc/bluetooth/main.conf /etc/bluetooth/main.conf.old
• sudo -H gedit /etc/bluetooth/main.conf
• Under #DisablePlugins = network,input add the line DisablePlugins = input (no #).
• Add a # to the beginning of Class = 0x000100; under it, write Class=0x000540 (no #).
• Save the file and quit the text editor.
If you want to be able to run hidclient like a normal command:
• Run sudo cp hidclient /usr/local/bin.
• Check if /usr/local/bin is in your path with echo $PATH.
• If it's not, add it with any of these methods.
If you skip this step, you can run hidclient by making sure you're in the directory where you compiled it, and running ./hidclient instead of hidclient.

Running hidclient

Run hidclient --help (or see the bottom of the web page) to see how to use it.

Except when run with the --help flag, hidclient must be run as root. So use sudo hidclient (followed by whatever options you're specifying, as explained in the help).

Basically, there's two steps:

Run sudo hidclient -l for a numbered list of devices.
Run sudo hidclient -eN -x, replacing N with the number of the device you want to "forward" over Bluetooth. In your case, this will be the keyboard.

You're all set. Tell your mobile device (iPad) to use a Bluetooth keyboard.

Terminating hidclient

The last thing you need to be able to do is to stop using the keyboard for Bluetooth input. See, when hidclient is running, the device you select is no longer giving input to your Ubuntu system. If it were anything but the keyboard (say, the mouse), you could quit hidclient by pressing Ctrl+C in the Terminal.

But you cannot do that, because keyboard input won't go to the Terminal or any other Ubuntu program. The keyboard is acting as a Bluetooth device!

So, when "forwarding" the keyboard, quit hidclient by closing the Terminal window (or tab) in which it's running, with the mouse (or trackpad).

Of course, if your Ubuntu machine has multiple keyboards, you could "forward" one as a Bluetooth device and continue to use the other on your computer.

References/Acknowledgements

hidclient program and project page, by Anselm Martin Hoffmeister
This Server Fault answer by Capt.Nemo, which pointed me in the right direction.


Ubuntu Phone: How to uninstall preinstalled apps (bcc sport, bbc, cnet, engadget,...)

Go to Ubuntu store, search for app and then select Uninstall.
I just got mine today and will search for another solution and believe this can also be done via Terminal mode


Virtualbox guests no longer getting shortcuts?

I just discovered something I've been missing - the "Preferences" menu item.  I've gone through the settings for the individual VMs many times, but didn't notice that there was a separate "Preferences" menu for some reason.  I opened this, and lo and behold, there was a checkbox under "Input" (where the host key is set, another thing I was wondering about) called "Auto Capture Keyboard".  This was unchecked, for some reason, and checking this made it behave like it did previously.

It would be nice if this were set per VM, but the good news is that it can be changed while the VM is running, and takes effect immediately.  So, problem solved.  User is an idiot. :(


Fractional scaling support in Ubuntu 19.04 and later:

The Wayland session can now be scaled between 100% and 200% in 25% increments.
Experimental support in the Xorg session can be enabled to achieve the same. Read more here.

  Scaling Factor

  To enable HiDPI, open Settings -> Devices -> Displays， or use gsettings:

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

  Note: scaling-factor only allows whole numbers to be set. 1 = 100%, 2 = 200%, etc.

  Fractional Scaling

  A setting of 2, 3, etc., which is all you can do with scaling-factor,
  may not be ideal for certain HiDPI displays and smaller screens
  (e.g. small tablets).

  wayland

  Enable fractional scaling experimental-feature:

gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"

  Then open Settings -> Devices -> Displays

  fractional scaling experimental-feature in dconf Editor

  xorg

  You can achieve any non-integer scale factor by using a combination of
  GNOME's scaling-factor and xrandr. This combination keeps the TTF
  fonts properly scaled so that they do not become blurry if using
  xrandr alone. You specify zoom-in factor with gsettings and zoom-out
  factor with xrandr.

  First scale GNOME up to the minimum size which is too big. Usually "2"
  is already too big, otherwise try "3", etc. Then start scaling down by
  setting zoom-out factor with xrandr. First get the relevant output
  name; the example below uses eDP1. Start e.g. with zoom-out 1.25
  times. If the UI is still too big, increase the scale factor; if it is
  too small decrease the scale factor.

xrandr --output eDP1 --scale 1.25x1.25

Source: revised from HiDPI – ArchWiki


Kinesis Advantage keyboard keeps cutting out on a new Dell Optiplex 9020

The problem was an obscure bug specific to Kinesis Advantage keyboards.  Kinesis tech support said others had similar behavior using Ubuntu when using programmable macros.  It is not clear why but for some hardware, when using a macro, the keyboard gets shutoff (no usb power).

I resolved the issue by deleting a macro I had set inadvertently (it was not actually set to do anything which is why it took so long to figure out what was happening).


How do I install vnc on a headless ubuntu 20.10?

This is not possible. You use VNC to remotely control a desktop but a headless system has no desktop and you don't want to install one.
So I guess what you want is access to a shell on your Ubuntu machine. This is what SSH is there for. As you mentioned Digital Ocean, here is a link to their SSH tutorial.


I know one can only install linux in a different device from where it is being run the instalation-live-cd

If you are using the ubuntu cd/dvd, and trying to install to a hard-drive, you should have no problem

However, if you are using ubuntu from a usb-drive, and try to install it into another partition of the same usb-drive, then the installer will not be able to install grub because it cannot write the partition table (for the boot-loader)

Hope it helps

PD: it could help diagnose the problem if you posted the devices and partitions where you want to install ubuntu (as seen in the installation process)


How can I rebrand Ubuntu Software Center

dpkg -S `which software-center`

That's how you find out what package something is in and it shows me you want to hack into the software-center package.

I'd start by forking one of the branches available on its Launchpad page.


syntax error in conditional expression with bash script

When I am writing bash scripts I use shellcheck to check, if there are any syntax errors etc. You can either install it via apt-get install shellcheck or you use the shellcheck website.

I pasted your script there and it gives following output:

Line 2:
while [[ "$status" != "OUTPUT"]]; do
^-- SC1009: The mentioned syntax error was in this while loop.
      ^-- SC1073: Couldn't parse this test expression. Fix to allow more checks.
                                ^-- SC1020: You need a space before the ]].
                                ^-- SC1072: Missing space before ]. Fix any mentioned problems and try again.

Try to fix the mentioned stuff from the output.


The recommended utility for burning a bootable image is the univeral USB installer (referenced by http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows).  I've tried and failed with Rufus before.


How to resetup Brother MFC-J480DW for scanning after it changed its IP?

Official Linux Drivers for Brother MFC-J480DW

1) Look up on network and set up using the regular printers tool. Copy its IP.

2) Identify possibly already registered scanner:

$ brsaneconfig4 -q | tail
414 "MFC-7460DN"
415 "MFC-7360"
416 "MFC-7860DN"
417 "DCP-7065DN"
418 "DCP-7060D"
419 "DCP-7055"

Devices on network
  0 MFC-J480DW          "MFC-J480DW"        I:192.168.1.2

3) Remove scanner:

brsaneconfig4 -r MFC-J480DW

4) Reregister scanner with correct IP:

brsaneconfig4 -a name=MFC-J480DW model=MFC-J480DW ip=192.168.1.3


How to use integrated Intel graphics instead of Nvidia graphics on MacBook Pro?

If you own a Macbook Pro 6,2 or 6,1 and are adventurous enough to try the current solution, you can find the code here:

http://github.com/ah-/gmux-scripts
http://github.com/ah-/ubuntu-kernel-mbp
http://github.com/ah-/gmux

There's also some documentation here:

http://github.com/ah-/gmux-scripts/blob/master/README

Here is a summary of the current situation for having hybrid graphics working on Macbook Pros 6,2 and 6,1:

http://linux-hybrid-graphics.blogspot.co.uk/2012/04/apple-macbook-pro-and-linux-hybrid_21.html


Black Screen Boot After Installing PPA Radeon Driver

I fixed this by booting into recovery and removing every single package using purge that the Ubuntu AMD binary instructions had me install in the first place. I believe it was some kernel module blacklisting that was causing the black screen. I was able to boot into previous kernel installs before removing all I had done. Now I have the latest kernel back. I plan to investigate further into what was preventing me from using the latest driver but for now I'm just happy to have my system back to normal. I of course removed the edgers repo as well though I'll be experimenting with it in the future now that I know how to recover from it.


I find the answer, in this manual. You have to save te hotspot first as a hotspot. And then after you save it open again and switch to wpa2.

I did not know the difference between ad-hoc and hotspot.

Anyway thanks :D


Brightness does not change on Asus K55n laptop

I've been facing this problem on my K52 (I was using Gentoo that time). I had tinkered with kernel till I got it working.

I can't remember which of these config parameters was the key (here is listing from opensuse 12.2). Unfortunately, I don't have any gentoo config any more, to have a look at it:

$ uname -r
3.4.11-2.16-desktop

$ zgrep ASUS /proc/config.gz
CONFIG_ASUS_LAPTOP=m
CONFIG_ASUS_WMI=m
CONFIG_ASUS_NB_WMI=m

I'd try to rebuild the kernel with those flags set to "y".

You might also try some live distro, where those keys are working and copy kernel config from it.

As for other features (suspend etc.), this thread is a great help:
http://ubuntuforums.org/showthread.php?t=1460790


The way I have managed to fix this problem was by updating my video card driver to the latest as mentioned here.

Start by uninstalling your old NVIDIA driver,

sudo apt-get purge nvidia-*

and then follow these steps:

1. Add the PPA

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update

2. Install Video Drivers For Your Card

Now as posted in this answer, you need to install the recommended driver for your card.

sudo ubuntu-drivers devices

This will output something similar to this:

== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==

vendor   : NVIDIA Corporation
modalias : pci:v000010DEd00000DDAsv000017AAsd000021D1bc03sc00i00
model    : GF106GLM [Quadro 2000M]
driver   : xserver-xorg-video-nouveau - distro free builtin
driver   : nvidia-304-updates - distro non-free
driver   : nvidia-304 - distro non-free
driver   : nvidia-331 - distro non-free **recommended**
driver   : nvidia-331-updates - distro non-free

Then just install the driver labeled "recommended", so in this example it would be:

sudo apt-get install nvidia-331

Once this is done reboot and you should be good to go.


Problem booting to Windows 10 after Ubuntu 20.04.1 LTS install

I ran boot-repair again. Then it booted straight into windows. It could boot into Ubuntu via F9/UEFI Boot Menu but by default it booted into Windows. So that was step 1. In Windows I set the bootmanager via bcdedit to use the correct EFI file via an administrative command prompt and then typed:
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

This completed succesfully. After restart, the GRUB2 bootloader appeared again and I could boot Ubuntu and/or Windows the way it is supposed to work.
I enabled FastBoot again, first. Which worked out. Next, I enabled SecureBoot also.
Both operating systems run fine again. Hope this will help someone else in the future too.


These steps will create live+installer versions of Ubuntu, that can be booted on most Computers.

If you are using Windows:

Download the Ubuntu ISO file
Download Rufus USB Installer
Open Rufus, and click the CD-ROM icon (right hand side, about 2/3rds down) and choose your Ubuntu ISO file and click on the "Open" button
Click the "Start" button
When asked to download syslinux, click "Yes"
When asked about a "Hybrid Image", click "OK"
When you are warned that it will destroy all the data on your USB drive, make sure you've selected the correct USB drive, then click "OK"
Wait until it is complete.  This can take a fair few minutes depending on the speed of your USB drive, and the USB speed
Boot from the USB drive and proceed as normal

If you are using Ubuntu:

Download the Ubuntu ISO file
Open the dash and search for "Startup Disk Creator"
When found, click on it to launch
Once open, click on "Other" and browse to your ISO file.  Click "Open"
Choose your USB drive in the bottom box, then put a check in the box marked "Make Startup Disk" and click "Yes"
Boot from the USB drive and proceed as normal

If you are using another distro (generic instructions assuming your USB is /dev/sdb):

Download the Ubuntu ISO file
Open your terminal and cd to the folder that you downloaded the ISO too.
Type sudo umount /dev/sdb
Type `sudo dd if=.iso of=/dev/sdb bs=1M
Boot from the USB drive and proceed as normal


How would you count every occurrence of a term in all files in the current directory?

Using grep + wc (this will cater for multiple occurences of the term on the same line):

grep -rFo foo | wc -l

-r in grep: searches recursively in the current directory hierarchy;
-F in grep: matches against a fixed string instead of against a pattern;
-o in grep: prints only matches;
-l in wc: prints the count of the lines;

% tree
.
├── dir
│   └── file2
└── file1

1 directory, 2 files
% cat file1
line1 foo foo
line2 foo
line3 foo
% cat dir/file2
line1 foo foo
line2 foo
line3 foo
% grep -rFo foo | wc -l
8


What happened to "Roll up" option in Preferences/Window/Title bar Action?

open up the gconf-editor and go to apps/metacity/general/action_right_click_titlebar and change it to toggle_shade

of course you need metacity running as your window manager.


Chrome Hangouts thingy stuck in sidebar, always opens even if deleted

The same thing happened to me, and after much frustration, I had checked the folder ~/.local/share/applications, where all the desktop configuration files reside. The google hangout extension had overwritten the desktop configuration file for google chrome.

Solution to this is just replace the ~/.local/share/applications/google-chrome.desktop file with the original copy of desktop configuration file from /usr/share/applications.

cp -t ~/.local/share/applications /usr/share/applications/google-chrome.desktop


Is there any way I can update the server without having to resize it?

Yes, add a swap partition to help cope with the temporary increase in memory usage.

sudo -s
touch /swapfile
dd if=/dev/zero of=/swapfile bs=1K count=4M
mkswap /swapfile
swapon /swapfile
chmod 600 /swapfile

You should now see that there is an extra 4GB of swap available. This won't persist after reboot, if you want to do that you'll have to add a line to your /etc/fstab like this:

/swapfile none swap sw 0 0


Gujarati fonts are available in the Ubuntu archive for 16.04 just like in 15.10, and if you install the Gujarati language, the packages fonts-gujr, fonts-lohit-gujr, fonts-samyak-gujr and fonts-gujr-extra are included in the installed language support. The difference is that the previous package ttf-gujarati-fonts has been replaced with fonts-gujr and friends.


Python 3.3 installation error - abort installation

I am not sure what was the error. But now I have succeeded the above problem.

What I have done is,

Step 1) Restarted my PC

2) Ran the following commands

sudo apt-get update
sudo apt-get upgrade
wget http://python.org/ftp/python/3.3.2/Python-3.3.2.tar.bz2
tar -xvjf ./Python-3.3.2.tar.bz2
cd ./Python-3.3.2
./configure --prefix=/opt/python3.3
make && make install
mkdir ~/bin
ln -s /opt/python3.3/bin/python ~/bin/py
echo 'alias py="/opt/python3.3/bin/python3"' >> .bashrc
sudo apt-get install build-essential
sudo apt-get install build-essential libncursesw5-dev libreadline-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev
sudo apt-get build-dep python3.2

And then it is now installed. But still can't install the virtualenv. And have raised as a new question in this link


Malformed line in the source list /etc/apt/sources.list (dist parse), don't let me use update manager?

The correct form of canonical partner repository address to be saved in /etc/apt/sources.list is following:

deb http://archive.canonical.com/ubuntu <codename> partner

Just change the codename according to the release of Ubuntu you are using. For example the codename for Ubuntu 12.04 is precise, so the correct form for Ubuntu 12.04 will be:

deb http://archive.canonical.com/ubuntu precise partner

The codename of 14.04 is trusty.

So replace the malformed line with the correct form.


Unity 16.04 accented letters don't show in dash, hud, and are replaced in window title bars

Solved in both ubuntu 16.04 & 14.04 ;-)

Bleachbit most probably deleted too many files regarding localizations.

Thanks to that post I've managed to reinstall the missing packages.

More details on Launchpad, from comment #38 and following.

Helped by the command provided by bertrand0

dpkg-query -S \*/{translations,locale,locales,locale-langpack,i18n} | sed -r 's/, /\n/g' | sed -r 's/:.*//' | sort -u | sudo xargs aptitude reinstall

I've finally obtained a list of packages to reinstall. Beware manually installed .deb packages had to be removed from the list issued by the command.

It looked like this on my 16.04 :

sudo aptitude reinstall apt chromium-browser chromium-browser-l10n cups-common dconf-editor debconf-i18n dpkg e2fsprogs example-content firefox firefox-locale-fr fwupdate gimp-data gimp-plugin-registry gksu gnome-icon-theme gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly iso-codes language-pack-fr language-pack-fr-base language-pack-gnome-fr language-pack-gnome-fr-base language-selector-common libapt-inst2.0 libapt-pkg5.0 libc-bin libgimp2.0 libgksu2-0 libgom-1.0-common liboxideqtcore0 libqt4-script libstdc++-5-dev libx11-data libzvbi-common locales menu pavucontrol qtcore4-l10n qttranslations5-l10n radiotray synaptic unity-lens-applications unity-lens-files unity-tweak-tool update-notifier-common vlc-data xdg-user-dirs xkb-data-i18n xscreensaver


why option to choose unity 8 is not shown in sddm?

sddm can only launch X11 and Wayland sessions. Either ask Canonical to port Unity8 to Wayland or switch to whatever login manager Ubuntu uses these days – probably LightDM.


Can't connect to a wireless WPA2 network with group cipher CCMP from a T40 laptop with ipw2100

Some background on the issue:
thinkpads.com > Help:WPA2 on T42p Intel LAN 2100 3B wireless mini PCI card

.. the 2100 card does not support WPA2 encryption. If you absolutely need WPA2, you will need to upgrade to a newer card that supports it. I believe that the 2300 series of Intel's wireless cards do and ever card made after that.

and later ..

.. I am a happy user of T40 with Intel 2100b card and I was searching for WPA2 functionality too. I found some info on Intel's website and it looks like some 2100b cards have WPA2 support. However, even after upgrading to latest drivers, I still see WPA (WPA-PSK) option only (using winxp)...

Intel Support page
intel.com > Intel® Centrino® Wi-Fi Products

Stronger security
Your network is still vulnerable, even after you enable the security settings defined in the 802.11b standard, and the security settings of your hardware. Here are a few things you can do to improve security, making it harder for outsiders to access your network:

and specifically ..

Intel® Centrino® mobile technology users with Intel® PRO/Wireless 2100 Network Connection are recommended to upgrade systems to the latest software.

Discontinued Products > Intel® PRO/Wireless 2100 Network Connection
(page not currently available)

Conclusions:
The laptop vendors did not solve the driver issue for WPA2/AES (on Intel 2100), but Intel has released updated drivers (for Windows) that do properly support 802.11g and WPA2/AES on various Lenovo and Toshiba laptops.
You need to figure out how to replicate this on Ubuntu, or use an alternate WiFi card.
Note: I would also avoid WEP, WPA, TKIP, (or combinations) - due to their security limitations.


How do I make the F-keys work in byobu, for midnight commander (mc), htop, etc?

You can easily toggle on/off the use of the F-keys inside of Byobu (tmux) by pressing either:

shift-F12 (in tmux)
ctrl-a-! (in screen)

Full disclosure: I'm the author and maintainer of Byobu.


rsync will work from your Ubuntu  to the windows backup location . It would be simplest to mount the windows backup location on your server using smaba share

mount -t cifs [//your Windows's ip address/sharefolder] /path-to-the-mounting-point-on-your-ubuntu -o username=[yourwindowsusername],password=[yourwindowspassword],rw

followed by

rsync -avrP /directory-to-be-backup/ /path-to-the-mounting-point-on-your-ubuntu

the options are a(rchive), v(erbose), r(ecursive) and P(artial).


This package is a stub, it installs the dependent packages from dependent and recommended packages:

ubuntu-restricted-addons

chromium-codecs-ffmpeg-extra
gstreamer1.0-fluendo-mp3
gstreamer1.0-libav
gstreamer1.0-plugins-ugly
gstreamer1.0-vaapi

libavcodec-extra

ttf-mscorefonts-installer

unrar

Each package has its filelist (unrar as example) and also maybe checked locally with dpkg (dpkg -L unrar as example).


Why do I have no sound when resuming from sleep, but if I plug in then remove headphones sound returns?

I had the same problem when I plug hadphone jack (in Ubuntu 11.10). I found pacmd command that show console

$ pacmd
Welcome to PulseAudio! Use "help" for usage information.

I run this

>>> list-sinks

and it returns that second sink (I have hdmi and analog stero) was mute

muted: yes

so I call (help will show all the commands).

>>> set-sink-mute 1 false

and it enabled the sound (before that I restarted puleaudio - $ sudo /etc/init.d/pulseaudio but I think it was not needed).


Ubuntu 13.10 gives me a black screen, should I use 12.04 instead?

As user68186 commented there is a fix for the black screen issue.

Moreover, there is always a possibility that Ubutnu 12.04.3 will also have the black screen issue or some other issue.

Thus in deciding whether to use 12.04.03 you might also want to consider the fact that it is an LTS (Long term support) release and thus is guaranteed to be supported for 5 years after it's release, which is in April of 2017.

13.10 comes with the latest and greatest software, but it's support will end  9 months from it's release date which is July 2014.  Because of this you may want to choose a different Ubuntu derivative that uses a rolling release.

So if having the most up to date software is most important to you, you likely should choose 13.10, where as if you would prefer not to need to update your operating system in 2 years, than 12.04.3 is likely a better choice.

See this question for more on why Ubuntu limits support.


The debug messages are telling you that you need to provide a mechanism to resolve the host name SethServer into an actual IP address.

For example, supposing that SethServer is on your local LAN with IPv4 address 192.168.1.11, you could do one of the folowing:

add a stanza to your local SSH client configuration file ~/.ssh/config something like

Host            SethServer
  HostName      192.168.1.11

add an entry in the /etc/hosts file

192.168.1.11    SethServer

configure your DNS server to provide resolution for SethServer


Step by step guide to connect to Blogger using Drivel

Below should have been the normal answer, sadly Drivel has a bug there too. Please subscribe to https://bugs.launchpad.net/ubuntu/+source/drivel/+bug/1236068

In Drivel login, you should enter your username and password* then select ATOM/Blogger 2.0, as show in the image:

If you use double authentication, read this page to create your Application password https://support.google.com/accounts/answer/185833


How to command grep not to display the searched string?

You can use grep and just grep:

grep -oP "(?<=Path=).*" file

Explanation:

From man grep:

   -o, --only-matching
          Print only the matched (non-empty) parts of a matching line,
          with each such part on a separate output line.
   -P, --perl-regexp
          Interpret PATTERN as a Perl compatible regular expression (PCRE)

The lookbehind (?<=Path=) asserts that at the current position in the string, what precedes is the characters Path=. If the assertion succeeds, the engine matches the resolution pattern.

For Perl 5 regular expression syntax, read the Perl regular expressions man page.


how to run the process status, ps, utility

It seems like you have an alias from ps to psql which cause the error.

Instead of running ps try running:

/bin/ps

or

\ps

If the problem is indeed an alias - running unalias ps will temporary remove the alias, and afterwards running ps will act as normal.


My laptop screen is broken. What CLI commands can I try to activate my HDMI out, not knowing what my HDMI port is titled?

You can make use of the autocomplete feature that xrandr does provide in bash. If you have just one HDMI port, the chances of you start typing HD followed by tab to autocomplete, it will get the correct port.

So something like, replacing the TAB by actually pressing it and typing the rest:

xrandr --outpTAB HDTAB --auto

If that fails, try adding a 0 and maybe a 1 after pressing TAB to autocomplete the port name. If after doing all this, it still fails to display image on your TV, the likely culpirt is not the name of the port, but instead that xrandr might be choosing a output format that your TV does not support, so you might try to be more explicit on that, for example:

xrandr --outpTAB HDTAB --mode 1920x1080 --rate 60

Again, experiment with the values, for example, try 1920x1080i, and different refresh rates on the --rate, and even omitting it initially. Also try tab autocomplete on those values.


I want to change my i386 to x64 acer netbook

Does your netbook support 64-bit? It may not, googling it's exact model number (especially the exact cpu) should give specifications for them. If it doesn't support 64-bit then I'd expect it would give some sort of error, but quietly failing & rebooting is a possibility. Update: It appears that the AMD A4-1250 APU supports 64-bit, good news so far.

And is it set to boot from the usb, or was the usb created successfully (can other computers boot from it)? https://help.ubuntu.com/community/BootFromCD has lots of help, may need to change (at least temporarily) the boot order, or verify the usb.

It could be that booting from the usb is having problems, it's not as well supported as booting from cd. A cd or cd-rw may work better? Here's a link to my other answer about making a multi-boot USB from linux https://askubuntu.com/a/554834/129271 (references http://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/ basically the same info but hopefully a little clearer)

And this other question shows how to try adding a 64-bit kernel to 32-bit Ubuntu, not the same as a regular out-of-the-box 64-bit install, but maybe interesting: Install 64-bit kernel in 32-bit Ubuntu Little more related info here(different Q, same name?): installing 64 bit kernel on 32bit ubuntu It appears that just installing everything from a 64-bit iso(cd/usb/dvd) is probably a better idea, but if you'll be overwriting your Ubuntu anyway it couldn't hurt (much) to try installing 64-bit in place.


Method other than TOP to discover running services

pstree

is a static tiered layout of all currently running processes with different parameters available.

http://www.linfo.org/pstree.html


Difference between 12.04 and 12.04.1 and boot problems

Ubuntu 12.04.1 is just Ubuntu 12.04 but with all upgrades and fixed that have appeared between the official release and the time the new version popped out, all applied to it. So you can get to 12.04.1 in 2 ways (Same applies to any new version like 12.04.2, 12.04.3 and so on):

Download the updated 12.04 (12.04.1) from the Ubuntu website and install it (Will be mentioned as the latest version)
Install the 12.04 that was released on April and do a massive upgrade from that version till today. That should get you to 12.04.1 or any other newer version.

In relation with your problem, you will need to include more information (Recommend another question for it that does not mix with this one since you are asking the difference between 12.04.1 and 12.04). Information like hardware type, dmesg output and most of the /var/log files that give any indications of a problem.


How do remove pppoeconf from boot process

Try to run

sudo deborphan | sudo xargs apt-get -y remove pppoeconf --purge

If you have added pppoeconf to startup uncheck or remove it.


** Don't be obsessed with libpam-smbpass or any of the other pam's they are a non issue.

** You say you created the share of Scanned through nautilus. You can verify if that was successful by looking at the output of this command:

net usershare info --long

** All of these are incorrect:

  last few attempts i focessed in these 3 links:
  - //192.168.0.101/home/matt/Documents/Scanned
  - //192.168.0.101/home/Documents/Scanned
  - //192.168.0.101/home/Scanned

It's form is //server/share so in this case it's:

//192.168.0.101/Scanned

Or \\192.168.0.101\Scanned

The internal path on the server that gets you to Scanned is defined in the share definition which you will see when you run the usershare command above .

You can try this yourself on your own machine. Open a terminal and run:

nautilus smb://192.168.0.101/Scanned

Do you see the testing123 file you added with touch?

EDIT: If you share requires credentials remember to add yourself to the samba password database:

  sudo smbpasswd -a matt


Currently Pidgin doesn't support notification for a post, that gets a Like or Comment.

Pidgin supports Facebook chat through XMPP protocol. By using Facebook chat via pidgin you can send a text chat and emoticons.

For other information. Please refer Pidgin FAQ

Alternate way to get notifications is by installing FBMessenger, a stand-alone facebook messenger for Linux.

To install FBMessenger

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install fbmessenger

Source


yes that feature is dropped!(I also miss it), But you can use SUSHI PREVIEWER for the same thing (but it is different)you need to press space to preview,the advantage is, it previews many media files(Music,Photos,etc..) Read this for more details


Have you tried turning off the feature that attempts to disable your touchpad while you're typing?


After adding a group, logout+login is not enough in 18.04?

The command loginctl terminate-user <user> worked for me. (Replace <user> with your user name) You probably shouldn't run this when logged in though as it will kill all your processes.


How can I alias a dot string (e.g. '...' to '../..')?

I'd recommend
alias '...'='cd ../..'

With that, you can simply type ... and go up two directories (even easier than cd ...!)
You can even make a whole set of them:
alias '..'='cd ..'
alias '...'='cd ../..'
alias '....'='cd ../../..'
alias '.....'='cd ../../../..'

...and so on
Alternately, if you want to skip all that typing, this will create all the aliases up to 100 directories:
alias_str=".."
cmd_str="cd .."
for i in $(seq 1 100);
do
    alias ${alias_str}="$cmd_str"
    alias_str="$alias_str."
    cmd_str="$cmd_str/.."
done