Miktex equivalent for 12.04 (open for more suggestions)

Instead ok miktex that's oriented to windows, you could try Tex Live:

Open terminal and add TeX Live backports ppa via this command:

  sudo add-apt-repository ppa:texlive-backports/ppa

Update the source:

  sudo apt-get update

Now install tex live 2012 with this command:

  sudo apt-get install texlive

There's also some good information you could read on our forum:

Problems installing TeX Live 2012 on 12.04


Cannot get mysql service going, it worked before re-boot

for check mysql status, open your terminal and type :

  sudo systemctl status mysql.service

the log directory for error is located in /var/log/mysql/error.log, to show it you can use this command :

  cat /var/log/mysql/error.log

hope this will help you


Sound input issue with Asus X551CA, Ubuntu 18.04 LTS

This is apparently a really common problem with these Asus machines that share a mic/headphone jack. This was actually the first time I had even heard of anyone doing that. In any case, Asus support recommends using USB headphones if you need to use the mic as well. That, or a headset with three segments in the plug (that is, three segments in the jack you plug into the machine). Here is a link to a forum where several other users chased this down: Asus Combo headphone/Mic jack issues

It's a Windows forum, but if you scroll down towards the bottom they get into the part where they contacted Asus directly and that was their recommendation to solve the problem.


Building a new vanilla kernel - some confusion with the produced debs

To answer the first question Why are there only two packages? or Why aren't there two header files? -- when they're cross compiled, they're packaged up to handle every use case. By splitting the headers into a larger all package and a smaller arch-specific one, you save bandwidth pushing them out to users. When you're doing it yourself, you only need it for one arch so one headers file will do.

As for the symlink through to your source location, I have had the same issue. I have not found a good fix other than to also generate a linux_source package (just add that on after kernel_image kernel_headers) and then fix the symlink manually.

There is actually a question all about this side of things already. The long-term solution seems to be hacking in a script that runs after each kernel installation that just fixes the symink up.


Connect K8055n Experiment Board to Ubuntu

I finally found the issue on my board.....

In the C program there was a if statment that was not true and caused the board to fail.

In libk8055.c file the statment "if ((read_status == PACKET_LEN) && (CurrDev->data_in[1] == CurrDev->DevNo ))" was false....

static int ReadK8055Data(void)
{
    int read_status = 0, i = 0;

if (CurrDev->DevNo == 0) return K8055_ERROR;

for(i=0; i < 3; i++)
    {
    read_status = usb_interrupt_read(CurrDev->device_handle, USB_INP_EP, (char *)CurrDev->data_in, PACKET_LEN, USB_TIMEOUT);
   if ((read_status == PACKET_LEN) && (CurrDev->data_in[1] == 11 )) //not sure why it must be 11
return 0;

    if (DEBUG)
        fprintf(stderr, "Read retry\n");
    }
return K8055_ERROR;

}


Why does '~$ nc -z T43 1-1024' not produce any output although '~$ ping T43' is successful?

I've checked the source code, first the original (netcat-openbsd_1.89.orig.tar.gz). The relevant lines in netcat.c (367-388) (edited):

if (vflag || zflag) {
    /* ... */

    /* Don't look up port if -n. */
    if (nflag)
        sv = NULL;
    else {
        sv = getservbyport(
            ntohs(atoi(portlist[i])),
            uflag ? "udp" : "tcp");
    }

    printf("Connection to %s %s port [%s/%s] succeeded!\n",
        host, portlist[i], uflag ? "udp" : "tcp",
        sv ? sv->s_name : "*");
}

But the diff package (netcat-openbsd_1.89-4ubuntu1.diff.gz) contains a patch, removing the verbose display functionality:

--- netcat-openbsd-1.89.orig/debian/patches/silence-z.patch
+++ netcat-openbsd-1.89/debian/patches/silence-z.patch
@@ -0,0 +1,13 @@
+Index: netcat-openbsd-1.89/netcat.c
+===================================================================
+--- netcat-openbsd-1.89.orig/netcat.c  2008-06-19 16:33:52.000000000 -0400
++++ netcat-openbsd-1.89/netcat.c   2008-06-19 16:34:58.000000000 -0400
+@@ -364,7 +364,7 @@
+               continue;
+
+           ret = 0;
+-          if (vflag || zflag) {
++          if (vflag) {
+               /* For UDP, make sure we are connected. */
+               if (uflag) {
+                   if (udptest(s) == -1) {

So it seems that without the v flag, the z flag branch never „runs” and does not display the message. (Although I'm not an expert C programmer, so please take this with a bit of skepticism.)

Also the changelog refers to this:

  netcat-openbsd (1.89-3) unstable; urgency=low

  Silence -z flag, for compatibility with netcat-traditional (Closes: #464564)

The Debian bug report for #464564 contains the following:

  The -z flag produces a "Connected...successfully." message, even when
  -v is not selected. This is a significant deviation from the original, and conflates the function of the -z and -v flags. Patch attached.

So I think it is a bug in the manual page: the port scanning section have not followed the changed functionality.


How to select laptop screen without actually seeing the screen?

Likely that LVDS is not correct magic word for this particular computer. Otherwise, your attack is clever.

I fear only fix is restart. Most graceful AltCtl-F1, login, then

sudo /sbin/shutdown -r now

After restart, run

xrandr --query

To see what magic is needed instead of LVDS. Be aware these can change when video drivers update.


How can I remove the broken (due to power cut during installation) kde plasma package?

Simply run:

sudo dpkg -i --force-all /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_i386.deb

This will reinstall the package, and force the file to be overwritten. This issue often occurs when a file is moved from one package to another, and due to the repository not being fully up to date, or as in your case, an interrupted installation, the new file cannot be unpacked because it appears to conflict with another package.

What the above command does is cause dpkg to ignore any errors (through the use of the --force-all flag). You can also use --force-overwrite.


How to open the Synaptic Package Manager in Unity?

You need to install Synaptic first. You can do that by clicking here: Synaptic

or by typing

sudo apt-get install synaptic

in a terminal. (In order to open the terminal press: CTRL + ALT + T)

After this you just need to hit the Super key (or Windows) and type Synaptic and hit enter (to actually open the package manager).


use laptop monitor connecting to my old desktop(which is without monitor)

Most laptop screens (the ones built into the laptop lid) have a proprietary connector to the motherboard and aren't directly compatible with VGA (or even DVI) -- in essence, the electronics that would normally be in the monitor, to translate VGA or DVI input to the actual screen addressing (and brightness/color information) for pixel control are incorporated on the laptop's motherboard, to drive the display panel directly.

In order to use the display with another computer, you'd have to have compatible drive electronics from a monitor and a suitable adapter to connect to the laptop's display panel, and you'd have to partially disassemble the laptop to gain access to the ribbon cable that feeds the screen.  This is far from practical, with used XGA flat panel monitors available on eBay for under $50 shipped.

The closest you can come to what you want, in practice, would be to run a graphics terminal (Citrix or similar) on the laptop and use it to log into the headless desktop machine.


Ubuntu 19.10 Spideroak Encryptr does not launch

This is not really an answer as such irttis, but ... I've just installed 19.10 and have SpiderOak One working no problems. I note that SpiderOak generally work on develop .deb packages for the LTS releases (e.g. most recent is 18.04) so their packages may not work perfectly with the much newer 19.10 release. Have you reported this bug to SpiderOak?


replacement symbols to line break (\n) and add the three first columns from the line start


How can I make nautilus use my installed FUSE file systems automatically?

Nautilus can't possibly 'know' any installed fuse driver because the fuse system does not advertise its drivers mount options and whereabouts by itself. There isn't even a common database defined where the installed fuse drivers register themselves yet.

Note also that the gvfs system handles URIs like smb:// while the fuse driver underneath does not, therefore your preferred fuse driver needs to be supported by gvfs first before it can land in nautilus.

However, there are lots of nautilus-action scripts around that may accomplish what you need. And if you can type in the mount options by hand, a xfce-tool named gigolo can help you to keep your fuse mounts bookmarked.


ubuntu 13.04 hang problem when ever i press the chipset driver button such as display or sound button

Check out your syslog after the reboot to try to isolate what it called and try this out ...

What is the equivalent of 'Control-Alt-Delete'?

Other possibilities:
https://unix.stackexchange.com/questions/12107/how-to-unfreeze-after-accidentally-pressing-ctrl-s-in-a-terminal
How do I stop Ubuntu Precise freezing/hanging


Have you tried Xournal? Using a Wacom bamboo, I can take handwritten notes, edit and move text later, change color and thickness of lines, insert and resize images, use auto-shape correction for graphs or the occasional schematic. In addition, you can also use it to annotate pdfs and then export it as a pdf.


Not able to access Internet after running sudo chown -R $USER$USER /usr/lib/

Actually, no need to reinstall. This situation is quite reparable. I just ran the same command on my system and fixed it in about 10 minutes.

You will need to either boot in recovery mode, or use a live USB/DVD of any Linux version (preferably Ubuntu!)

If you prefer recovery, please see How do I boot into recovery mode?

I used a live USB with Xubuntu 16.04 that I had to hand. If using a live session, after booting, open a terminal and identify your root (main) partition, using commands such as lsblk and sudo fdisk -l. When you know which one it is (it will likely be an ext4 partition), mount it. Here I am calling the root partition /dev/sda1 - you need to replace this with the real label.

sudo mount /dev/sda1 /mnt

now check it is the right partition by doing ls /mnt - you should see usr  sys  proc  dev  home  root and other things you would expect to find at the top of the filesystem tree. OK, let's fix the ownership (in all these commands, please take careful note of the : and be sure to put these in the right places).

sudo chown -R root: /mnt/usr/lib

That almost fixes it. On my system, before I broke it, I checked out all the ownerships on that location

$ find /usr/lib -not -user root

returns nothing - root owns everything, but

$ find /usr/lib -not -group root -ls

Turned up this:

-rwxr-sr-x   1 root     mail          /usr/lib/emacs/24.5/x86_64-linux-gnu/movemail
-rwxr-sr-x   1 root     tty           /usr/lib/mc/cons.saver
-rwsr-xr--   1 root     messagebus    /usr/lib/dbus-1.0/dbus-daemon-launch-helper
-rwxr-sr-x   1 root     utmp          /usr/lib/x86_64-linux-gnu/utempter/utempter

Your system will not be exactly the same, but you should chown those files if you have them, and look for equivalents if not (for example if you system is 32-bit, you would have x86 instead of x86_64). I fixed these with:

sudo chown :mail /mnt/usr/lib/emacs/24.5/x86_64-linux-gnu/movemail
sudo chown :tty /mnt/usr/lib/mc/cons.saver
sudo chown :messagebus /mnt/usr/lib/dbus-1.0/dbus-daemon-launch-helper
sudo chown :utmp /mnt/usr/lib/x86_64-linux-gnu/utempter/utempter

(if using recovery mode, you will not need /mnt at the start of those paths)

As pointed out by @grawity, you also need to repair the setuid bit on dbus-daemon-launch-helper which is cleared by chown:

sudo chmod u+s /mnt/usr/lib/dbus-1.0/dbus-daemon-launch-helper


issue with dualboot 12.04 and windows 7 (with w7 loader)

When installing Windows 7 on empty disk it creates a small "System Reserved" boot partition and a bigger with Windows 7 proper.

You can install Ubuntu choosing to install its boot loader (GRUB2) to its partition instead of MBR. So it will not destroy Windows booting (and MBR).

Later to add Ubuntu to Windows boot menu create a "boot sector loader" and use "dd for Windows" to get a copy of Ubuntu partition boot record - see here, Section 8 how to do this.


Issue a kill signal to it

pkill -f tint2

or use xkill command in terminal, your cursor will turn to x , and click on the tint2 panel to kill it


Trying to change file in recovery mode and getting "E138 can't write viminfo file"

When you enter recovery mode via the "Root Shell" menu, the filesystem is mounted readonly by default. That means that you won't be able to save any changes you make to any files - and also that vim won't be able to write to root's .viminfo file.

From the root terminal, you can remount the filesystem with read-write permissions using

mount -o remount,rw /

(take careful note of the punctuation and whitespace). After that you should be able to use vim and save your changes.

Alternatively, you can select the 'Enable networking' option before dropping to the root shell - since networking needs to write to disk, that automatically does the remount for you.


xxd

This tool is the most commonly available I have found for this type of task (available by default on both latest Ubuntu and macOS).  You can remove the ascii readable part on the right if needed using -p and you can revert (change ascii input to binary data) using the -r function.  Here are some simple example uses:

Converting to hex with ascii view:

echo example | xxd

Converting to a hexdump (no ascii view on the right):

echo example | xxd -p

Converting from a hexdump back to binary data:

echo 746573740a | xxd -p -r

You can get much more complex with this in shell scripts.  I have actually used this and "dd" to scan for specific sequences and modify them in a predefined fashion all from a shell script using nothing but bash, dd, and xxd.  You actually don't need dd for this either as you can "seek" to a specific location and write to that location the byte sequence you need.  The biggest advantage to this approach is its easily scriptable.


Virtualbox kernel driver on 14.04 not installed

Why would you "enter this line"? if you like to install virtualbox on 14.04, just install dkms and linux-header-generic and afterwards add the oracle repository and install from it, the kernel drivers will be installed during the process of installing virtualbox:

Install prerequesits:

sudo apt-get install dkms linux-headers-generic

Add repository key:

wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

Add repository to sources list:

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" >> /etc/apt/sources.list.d/oracle.list'

Install virtualbox:

sudo apt-get update && sudo apt-get install virtualbox-5.0

you could also install virtualbox-4.3 or virtualbox-4.2 instead of 5.0 if you wish.

Have Fun.


Always start Nautilus with specified window size

You can use CompizConfig-SettingsManager to do that.

First install it

sudo apt-get install compizconfig-settings-manager

Open it
Enable Window Rules plugin.
While, you're in that plugin, go to Size rules tab. Click New button to add a new rule. In that rule, specify the size and on the Sized Window field write

class=Nautilus

Save the rule.

Now, nautilus will be started with the size you specified in the rule


Gnome's ALT+F2 sometimes freezes while loading icon or completion

This seems to be the Bug 133243 tracked at Gnome Bugzilla.

Ross Girshick made a theory trying to explain why this happens and proposed some solutions that needs to be made at the code of the app.

"The problem here, as noted, is that in order to fill g_complete every
file in the user's path is access'd and stat'd. This happens once
everytime the run dialog is created. On some systems this takes a long
time to complete (10-20 seconds on my old PIII 650 latop with gentoo).
However, once the kernel has cached the inodes it is much faster to
run in the future."


in case vim is not installed do:

sudo apt-get vim

if you stilll have issues do:

sudo apt-get install --reinstall vim-gnome vim-gui-common vim-common vim-runtime

from : Repair Vim editor

this fixed some issues I had

Also there are many vim questions around, Google more. There is a lot of support.

vim's website: https://www.vim.org/


Ubuntu 19.04 - Sounds is softer, even at 100%

You need to install qasmixer and look at the master volume of your card . Set "show device selection" under view menu . As you will see Ubuntu 19.04 sets the alsa volume to a minimum level after start up. Restore that and go blast full .


You should look at Platypus. This should do what you want, translating voice commands from Dragon Speak running in Wine to Linux keystrokes.

It's not easy to install, nor easy to configure. You are expected to know how to compile software and hunt dependencies, so if you are a beginner be ready for a though ride and lots of trial and error.


How to copy directories and files from a corrupted harddrive?

First of all, if your drive is experiencing I/O errors you should check if your drive is healthy enough. I/O errors might be localized only on a/some specific bad block/bad blocks, but having one/some is how a drive failure usually starts.

You can use smartctl to check your drive's S.M.A.R.T. status, which provides many informations about the drive's overall conditions, most interestingly about the reallocated / current pending sectors count. You can install smartctl by installing the package smartmontools:

sudo apt-get update && sudo apt-get install smartmontools

For SATA drives, you can check your drive's S.M.A.R.T. status by running:

sudo smartctl -a -d <device_file>

*<device_file> = device file to which your drive is mapped to (in the form of /dev/sdX; you can check this by running lsblk);

For IDE drives, you can check your drive's S.M.A.R.T. status by running:

sudo smartctl -a <device_file>

*<device_file> = device file to which your drive is mapped to (in the form of /dev/sdX; you can check this by running lsblk);

The most important indexes to be checked are Reallocated sector count and Current pending sector count. The former provides the number of the drive's "dead" sectors, while the latter provides the number of the drive's "almost dead" sectors which will be reallocated if a further read attempt on them fails.

If the disk is a little aged, those numbers are not likely to be 0, which is the ideal condition. How alarming those numbers actually are it depends, expecially on the drive's age and size; consider that each "dead" sector on most hard drives equals to 512 B worth of storage space lost already, but most of all an already high number is usually prone to increase more quickly and it's usually an indicator of a close fail.

Aside from that, you can try with ddrescue. If the partition containing the file(s) you're trying to recover is the root partition, do this from a Live DVD, since the target filesystem must be mounted read-only.

Also beware that reading/writing a non healthy drive might ruin it further. ddrescue is meant to do as less damage as possible, but there are no guarantees.

First, if the target partition is mounted, unmount it:

sudo umount /media/<username>/<partition_mount_point>

*<username> = your username; <partition_mount_point> = partition's mount point (you can check this by running lsblk);

Remount the target partition as read-only:

sudo mkdir /media/<username>/ddrescue && sudo mount -o ro /dev/<sdXY> /media/<username>/ddrescue

*<username> = your username; <sdXY> = block device to which the partition is mapped (you can check this by running lsblk);

Create a directory in which to copy the recovered file(s) (in this case it's a "recovered" folder in your home):

mkdir ~/recovered

Run ddrescue:

ddrescue /media/<username>/ddrescue/<file_path> ~/recovered

*<username> = your username; <file_path> = file's path in the target partition;

And repeat this last step for each file you wish to recover.

Once done, unmount the target partition and remove the temporary folder:

sudo umount /media/<username>/ddrescue && sudo rmdir /media/<username>/ddrescue

*<username> = your username;


You should have a look at the LOAD DATA function of MySQL, or the mysqlimport tool.

Those two functions are reportedly 20-30 times faster than insert'ing one by one, which would bring you up to at least 500-1000 rows a second.

As you don't provide any information about your data format, it's hard to give a detailed use instruction for mysqlimport, which seems to be the most applicable tool in your situation.


Is there a double-click way to install a snap?

Not currently. Installing snaps manually means you miss out on a few benefits of snaps. For example you won't get automatic updates if you install this way. There's also no guarantees that the snap you installed that way isn't malicious, as the store does some checks which you won't benefit from.

So that's a couple of reasons why I don't think any emphasis has been made to implement double-click-install of snaps.


Cannot boot directly from Grub2 on dual boot Windows 8.1 with Xubuntu 14.04.2

Partition 5 is not necessary. This partition is not used for /boot from your description. You can delete it.

SOLUTIONS:

You need check the grub.cfg in EFI partition(partiton 1)\EFI\Ubuntu\grub.cfg.
Correct the partiton for /boot.

Example: search.fs_uuid d17d4033-8152-412f-ad06-f30ecde45d53 root hd1,gpt6
uuid for the partition can be found with blkid command.

OR

Repair boot use boot-repair in Ubuntu. This application will install the grub2 in EFI partition as the default bootloader instead of easybcd and bootmgr.

Repare boot(reinstall grub2 in partition 1) with boot-repair.

You may need this:

https://help.ubuntu.com/community/Grub2/Installing
https://help.ubuntu.com/community/Boot-Repair


How do I get the Wifi IP address on Ubuntu touch

you can connect your device to pc throught with USB.

you can read [this website][https://wiki.ubuntu.com/Touch/ReleaseNotes#SshAccess], a paragraph about Accessing the devcie over ssh


Can't access "computer" folder from Terminal in Ubuntu VM running in VirtualBox

When you open a terminal, the default directory is /home/USER. To access the "computer", basically the address is only /.

So you can easily, use two methods:

cd /

or

cd ../..

(when you type cd .. it means you go back a directory (making it to /home and then, twice, gets you to /)

edit: You can always type pwd to know the current directory.


Sun Grid Engine's qmon -- "Cannot convert string..."

You can also workaround the problem temporarily by creating few symbolic links in your home directory like this:

mkdir -p $HOME/icons/Qmon
cd $HOME/icons/Qmon
for f in /usr/share/gridengine/pixmaps/*; do ln -sf $f $(basename ${f%.xpm}); done


Maybe you had a file as swap somewhere. but now for any reason it is removed. but it's entry doesn't removed in other places that point to that swap file. it's better to look at /etc/fstab and check if any entry shows as swap or not.
Run "update-initramfs -c -v" . this will create a new initramfs and output many information during that. so you can check where doest it stuck and can fix it !


All I had to do was to restart my system and run

sudo dpkg --configure -a

Installation was interrupted, so that was the reason for those messages.


Upgrading to kernel 3.14.23 seems to have fixed the problem, so I am concluding that it is a kernel bug. I did find other similar reports, but can't track them down at the moment to cite here.


Have x11VNC start automatically via systemd

I am on Artful (17.10) and this worked for me:

You will also need to edit /etc/X11/Xwrapper.config to include:

allowed_users = anybody

as the default is to console only. This is described here:

Ubuntu Manpage for Xorg.wrap.4


install npm (node have been installed, npm missed)

I have not managed my issues with broken packages (it seems hard to detect ones, but hoping somebody knows answer). But I've managed issue with node and npm.

To install node i've used article how to manage nodes with nvm.

install nvm:

> curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
> source ~/.bashrc # to reload env

check accessibe versions for install:

> nvm ls-remote # to find latest stable version
> nvm install v11.6.0 # install node

and now I've installed:

> node -v
v11.6.0
> npm -v
6.5.0-next.0

Npm can be updated following their instruction:

npm install npm@latest -g


Sound Input/Output w/ Mudita24 and Delta 1010LT

Okay, so I solved my issue, I'm not sure if this is the "best" way but it works for what I need, flawless pulseaudio for normal desktop operations and a working solution for mumble/teamspeak, and it was pretty easy to accomplish thanks to pablomme over at the launchpad.net forums.

I'm a Linux noob and i struggled for days with a jack setup but in the end I couldn't achieve what I wanted that way.

This is more for users who aren't going to use their Delta 1010LT for pro-audio applications (I personally use my windows boot for that atm). If you are looking to use the Delta 1010LT for recording and mixing etc, I'm pretty sure you want a jack setup instead of pulse audio (although you can get both working with the pulseaudio jack sink).

Anyway on with the solution, as I mentioned before Mudita24 is considered the preferred mixer for these cards, so download that from the ubuntu software centre or using the terminal:

sudo apt-get update
sudo apt-get mudita24

Then open mudita and go to the Analog Volume tab (furthest to the right on mine), and turn up everything! (you can tweak the gains later) I don't know why they are set to zero by default but nothing at all works unless you turn up the Analog Volume sliders. DAC are the outputs (Digital to analog) and ADC are the inputs (Analog to Digital). After you've done this go to the monitor inputs tab and you should be able to see a level when you talk into your mic. Now to get this sound into the pulseaudio.

After much scouring of various websites I found this solution from pablomme:

run "cat /proc/asound/cards", and note the card's name in the brackets, e.g. "M1010LT" in my case:

 0 [M1010LT ]: ICE1712 - M Audio Delta 1010LT
                      M Audio Delta 1010LT at 0x1140, irq 20

Then add the following at the end of /etc/pulse/default.pa, replacing M1010LT with whatever you found above:

load-module module-alsa-sink sink_name=M1010LT_Analog_Out device=hw:M1010LT channels=10 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7
load-module module-alsa-source source_name=M1010LT_Analog_In device=hw:M1010LT channels=12 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9

Also comment out the udev section (~7 lines) starting

### Automatically load driver modules depending on ...

Then run pulseaudio --kill && pulseaudio --start, and you should be done.

The above is from Fedora's bugzilla, https://bugzilla.redhat.com/show_bug.cgi?id=507205 , and is apparently a PulseAudio issue. Another possible workaround is in https://bugzilla.redhat.com/show_bug.cgi?id=499435 , which involves writing a /etc/asound.conf."

This will make pulseaudio recognise all of the inputs and outputs on the card, after you've done this install the pulseaudio volume control from the ubuntu software centre, or alternatively via the terminal using:

sudo apt-get update
sudo apt-get install pavucontrol

After you've done this then open up teampseak/mumble (I've actually only tested this with mumble as that ended up being the better VOIP solution), choose pulse audio for the input/output device and then in the pulseaudio volume control go to the recording tab and you should see an entry for your VOIP software (meaning teamspeak or mumble).

Assuming the entry for your VOIP client is there then the default setting should work but I selected the ICE1712[envy24] for both the microphone from and also the mumble speakers echo from.

Next, go to the input devices tab and you should now see all of the inputs for the card. Turn them all down, then uncheck the padlock button so you can move the sliders seperately and just turn up the one you want. Mine had different names but were in the same order as the inputs in mudita24, but it might take some trial and error to find the right one :/

Hopefully now everything should be working, you can tweak the gains from mudita/PulseAudio Volume Control/VOIP to get the best sound quality, but I'd suggest trying everything maxed to begin with (probably not necessary).

I hope this helps some people, that's what worked for me so good luck!


Ubuntu 20.04 : Virtualbox 6.1.16 is shown but apt policy virtualbox says no

I have the very same situation, but this is probably because I did not use apt to install VirtualBox. Instead I downloaded the .deb file and installed it that way.

Perhaps you did the same a while back and forgot?


What programm is best to encrypt folders and files on Ubuntu 18.04

CryFS
EncFS
eCryptFS

Compare: https://www.cryfs.org/comparison -- Scroll to 'Summary' section

Ubuntu package names: cryfs, encfs, ecryptfs-utils


Disable unity sidebar but still use dash with superkey

Sort of. Go into system settings > appearance > behavior and set the launcher to auto-hide. Then set the reveal sensitivity to its lowest possible setting and it will hide permanently. I've just tested this and it works.


How to get Firefox 67 to update via Software Updater?

For folks using stock Ubuntu, those mystery upgrades are likely coming from the -security pocket of the Ubuntu repositories. Security upgrades are pushed via Unattended Upgrades (enabled by default), and installed in the background without you seeing it.

That's an Ubuntu mechanism, not a Firefox built-in updater.

The easy way to check is to review your /var/log/unattended-upgrades/unattended-upgrades.log.

Here's an example of checking that log. You can see that firefox was silently upgraded in the background on June 17 and again on June 19:

$ grep firefox /var/log/unattended-upgrades/unattended-upgrades.log
2019-06-17 06:47:06,836 INFO Packages that will be upgraded: [...] firefox firefox-locale-en [...]
2019-06-19 11:49:03,299 INFO Packages that will be upgraded: firefox firefox-locale-en [...]

Here's an example of Firefox packages currently available in the various pockets of the 19.04 Ubuntu repositories:

$ apt-cache madison firefox
   firefox | 67.0.3+build1-0ubuntu0.19.04.1 | http://us.archive.ubuntu.com/ubuntu disco-updates/main amd64 Packages
   firefox | 67.0.3+build1-0ubuntu0.19.04.1 | http://security.ubuntu.com/ubuntu disco-security/main amd64 Packages
   firefox | 66.0.3+build1-0ubuntu1 | http://us.archive.ubuntu.com/ubuntu disco/main amd64 Packages

Let's break that down a bit:

disco/main: 66.0.3 (original, not updated)
disco-updates: 67.0.3 (via Software Center or Software Updater)
disco-security: 67.0.3 (via Unattended Upgrades, Software Center, or Software Updater)

It's not unusual for both -updates and -security to both be pushing the same package. After that, it's a race: If Software Updater runs first, you will see the Firefox upgrade listed. If Unattended Updates runs first, then you won't.

If you really want to see ALL upgrades, then you must disable Unattended Upgrades. I tried that for a few weeks long ago, and it was terribly dull. I soon re-enabled Unattended Upgrades. It's a good learning experience. If you try it, remember to run apt-update/upgrade daily to stay on top of newly-disclosed security vulnerabilities.


First the answer:

When you created the directory under the / (root directory) you need to become root user to do it, so was created with root:root ownership and specific permissions

Ex:

sudo mkdir /foo
sudo ls -la /foo
total 8
drwxr-xr-x  2 root root 4096 nov 19 13:35 .
drwxr-xr-x 26 root root 4096 nov 19 13:35 ..

As you can see this foo directory its owned by root and is the only user with write permission on it is because of that you need to become root by using sudo to write files on it

Second my opinion:

As Linux have a quite well defined directory hierarchy structure you should probably create this directory under some other place than /.
If you want to share a directory used by someone you probably want to create this shared resource under the $HOME /home/foo_user directory or /media/foo_user for a removable device


Uninstall extra Zoom Meeting application?

From the output of grep -R Zoom /usr/share/applications ~/.local/share/applications, it seems the duplicate Zoom is being provided by Chrome as a Chrome app.
To remove that, open Google Chrome and go to chrome://apps, right click and click on "Remove from Chrome".
Restart the GNOME shell if the icon still appears using:

Alt+F2
type r
hit Enter.


Who eats all my file descriptors and thus memory?

This will show the number of open files per process ID:

cd /proc
for processid in [0-9]*
do
    echo "Process ID = $processid: $(ls /proc/$processid/fd/ | wc -l) file descriptors"
done

(save and execute with sudo).

Then you can track down what that process ID belongs to.


To correctly uninstall fglrx you had to run:

  sudo amdconfig --uninstall

As I can read from your question, you just did a apt-get remove fglrx which, if I remember correctly, it's not enough to completely remove the driver from the system.
Remove everything that's still on your system using:

sudo sh /usr/share/ati/fglrx-uninstall.sh
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*

AMD's description of the driver:

  Automated installer and Display Drivers for Xorg 6.9 to Xserver 1.12 and Kernel version up to 3.4

If I don't get wrong, Ubuntu 14.04LTS has:

X server version 1.15
Kernel version 3.13

Because of this, you can't install the driver. Kernel and X versions are not supported.

Users will probably make a patch to let them work on 14.04 too (as they did with Ubuntu 13.10), but as fair as I know, at the moment there is no patch.

Moreover, AMD is not releasing updates for legacy driver, so I really suggest you to use the open-source driver (installed by default) for your video card. (I'm using it too on my 2nd PC where I have an HD 4650).

About playing using the open driver, what problem are you having?

A lot of users says that installing S2TC texture compression and conversion tools helps a lot with games.
You can try it by installing the packages using:

sudo apt-get install libtxc-dxtn-s2tc0
sudo apt-get install libtxc-dxtn-s2tc0:i386


Use dpkg -l:
dpkg -l apparmor | tee
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version           Architecture Description
+++-==============-=================-============-======================================
ii  apparmor       2.13.3-7ubuntu5.1 amd64        user-space parser utility for AppArmor


If you didn't installed anything or changed some keyboard configuration, you probably just enabled NumLock. At least on my system, the keys you refer are mapped to the correct numbers.

So check in your keyboard where you can disable it. If you are using a laptop, this should be something like Fn+oher key (in my Asus laptop, it is Fn+Insert).


There are various ways of doing this, but the shell script which most closely mirrors your Java example is this:

num=0
while test $num -le 10; do
    echo $num
    num=$((num+1))
done

A more 'shell-ish' ways to achieve the same would be

printf '%s\n' {0..9}

But note that the {0..9} construction is a 'bashism', which will not work in the standard (POSIX) shell.


I have an OpenWRT VM connected to the WAN, how do I connect client VMs to the OpenWRT LAN using it as a gateway?

You need two host bridges.

br0 connects to the internet, and
br1 is a dummy bridge where all of the openwrt clients connect.

The complete instructions for a dhcp wan interface are here: http://wiki.openwrt.org/toh/qemu/qemu

I've not yet figured out how to use one static address where the host connects to the br1 bridge and gives openwrt full control of br0...that's another question.


How do I prevent apt-get upgrade from installing unwanted packages

The issue was that the services/libraries for gwibber were not removed removing gwibber* and libgwibber addressed the issue.


My Laptop is not detecting Bootable USB for dual boot ubuntu 18.04 along side windows 10

Finally, I installed Ubuntu after trying for very long time.

I changed the partition scheme to GPT in rufus.
I enabled mass storage in bios.
I tried downloading the ubuntu image again.

I don't know which of the following helped, but I was able to install ubuntu and now its running smoothly. Thank you everyone who tried to help.


Why sudo apt-get update is giving confusing output?

Open System Settings -> Software & Updates -> Other Software

and remove that http://dl.google.com/linux/deb/dists/testing/non-free/binary-amd64/Packages repository from software sources.


use the installation instructions of CCS 6 TI IDE.
those instructions work also for the 14.04LTS

http://processors.wiki.ti.com/index.php/Linux_Host_Support_CCSv6

that says the following:

ok here they are:

Ubuntu 13.10 64bit

Resolve Dependencies:

sudo apt-get update

sudo apt-get install libc6-i386 libx11-6:i386 libasound2:i386 libatk1.0-0:i386 libcairo2:i386 libcups2:i386 libdbus-glib-1-2:i386 libgconf-2-4:i386 libgdk-pixbuf2.0-0:i386 libgtk-3-0:i386 libice6:i386 libncurses5:i386 libsm6:i386 liborbit2:i386 libudev1:i386 libusb-0.1-4:i386 libstdc++6:i386 libxt6:i386 libxtst6:i386 libgnomeui-0:i386 libusb-1.0-0-dev:i386 libcanberra-gtk-module:i386

and after that it contiues with things for the CCS6 TI IDE


it sounds like the partition table is screwed up.

Fortunately there is a good linux tool to get it back working

http://en.wikipedia.org/wiki/TestDisk

sudo apt-get install testdisk

the wiki contains a good guide for exactly your problem (recover fat32 partition)

http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step


How to have two sets of shortcut keys for Compiz grid commands "Put Left" and "Put Right"?

One way to do it is simply map the custom secondary keyboard shortcut to the primary (Compiz) shortcut using xdotool.

xdotool is a small command-line utility which allows automation of keyboard and mouse clicks/movements; install it with sudo apt-get install xdotool
We'll assume here that the default shortcuts for Grid Left/Right are as below: (Ctrl+Super+Left/Right):

Open Settings...Keyboard, and go to the Shortcuts tab. Click + to create a custom shortcut, naming it say Compiz GridRightAlt, and setting the "Command" field to:

xdotool key --clearmodifiers Ctrl+Super+Right

Click Apply. The right-column will say Disabled, click on it and you'll see "New Accelerator": press your shortcut key combo, e.g. Shift+Alt+L.

Repeat the steps for the left Compiz GridLeftAlt, setting the command to:

xdotool key --clearmodifiers Ctrl+Super+Left

and the shortcut keycombo to Shift+Alt+H.

Close the Keyboard settings and that's it!


How to print a line that is followed by a specific string in a repetitive file?

This awk command could do the job:

awk -v RS='\n\n' -v target=<string> '$0 ~ target {print $2}'

For example:

$ awk -v RS='\n\n' -v target=F5 '$0 ~ target {print $2}' foo.txt
AX-2
AX-3
$ awk -v RS='\n\n' -v target=A1 '$0 ~ target {print $2}' foo.txt
AX-1
AX-2

I'm assuming that:

the Query sections are all separated by blank lines (hence, two newlines \n\n as the record separator),
there's a space after the Query=, so that the string you want to print is the second field ($2),
the string you want to search for doesn't have regex special characters
like . or *. If so, another function might have to be used.


pam_systemd delays SSH login - required?

I had the same problem with Debian Jessie 8 and found another solution here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770135#46

The command
systemctl restart systemd-logind.service
or a complete reboot fixed the ssh login delay for me.


Why don't the Ubuntu repositories have the latest versions of software?

An Ubuntu release goes through several stages before it actually makes it to the public as a finished product:

Some time before Ubuntu launches a release it freezes its packages at a certain point.

Before a release is out but after the package freezing, work is done mostly to fix all the bugs and issues that there might be in those packages. New package versions are not imported into the repositories anymore after package or feature freezing.

Once the release happens additional changes to those packages only happen for bug fixing and security issues. There are no more upgrades done to the packages in the official repository even if new versions of the packages are released.

Some packages have an exception to this, such as web browsers (which need to be kept up to date all the time) or certain cases.

New version of packages are consistently being imported (from Debian) for the next release of Ubuntu, until the next freeze happens and the same process repeats itself.
As an example, you can have a look at the release schedule of 12.04.
You can see that even though 12.04 was released in April, in January 12 something called _Debian Import Freeze_ happened.
This is just the first of many freeze stages happening before the actual release and means that at that point the import of packages from Debian testing or unstable stops and work starts on them to customize and fix issues with them.
No upgrades are done after that point in a lot of packages and the version that package had at that point is the version present and maintained through a release's lifetime.
So even though there are higher versions of the same package in developers' PPAs or in Ubuntu+1 repositories those will only be included in the next release of Ubuntu.
This is done for stability, security and functionality. New bleeding packages being imported all the time to the main repository would mean issues and a lot more problems to be solved. A freeze in the packages version helps to sort that out and make Ubuntu safer and more stable for the end user.
A new version of Ubuntu is released every 6 months, so every 6 months new packages are prepared, tested, customized and released with a new version. Future versions of a packages can be installed in your system via a PPA or just by downloading it from a web site, but the version of the package in the official repository remains the same.
For more understanding and an interesting overview of what happened to Ubuntu from 10.04 until the launch of 12.04 have a look at ReleaseSchedule - LTS to LTS and Stable Release Updates page for a complete overview and explanation of an Ubuntu stable release.


TangoWithDjango .bashrc edit causing errors

I think you've overwritten your PATH with that source command, which I would say is unnecessary. The easier way to do it is to add a line like this:

export PATH=~/.pythonbrew/etc/bashrc:$PATH

That will add your location to your PATH

To check your path at any time you can do "echo $PATH". I imagine you'll find only one thing there at the moment.


which is most suitable location for installing android studio considering space?

I would always go for /opt/ for 3rd party software.

The tar file has all the permissions set for the contents of the file and all you need to do is (probably) copy a file into the system so you can directly start it (either an executable or a service).

/opt/ has an added security: it will always be set up for the "root" user so your own users can not mess with it and your admin account does not have to alter anything in there. Just unpack it and read the readme inside the directory to see if anything else is needed.

  Can I install it at /home/ directory like /home//Documents

Sure but most of these install files that prefer /opt/ are created with permissions and a special user for this. Putting it elsewhere does not matter but you might issue a command inside /home/ that changes the permissions of this install making it possible to kill it.

This is just about the installer. Your projects should be in your /home.


How do I uninstall minefield, now that official Firefox 4.0 is out?

This should work if the package is called "minefield":

sudo apt-get remove minefield

or if you have purge installed

sudo apt-get purge minefield


Cannot login to newly created user account

If you created the user account with useradd, you have to set up everything for it manually. This is why, when creating user accounts from the command-line, it is recommended to use adduser in Ubuntu (and Debian, and other Debian-based systems) instead. You might just want to remove the user with userdel or deluser and recreate it with adduser. Otherwise...

Fixing the Home Directory Location

If you want to keep the user account and fix the problem, then you need to look at:

the name of the home directory the user account is actually configured for
the name of the directory you actually created

These must be exactly the same. The error message you get with su -l penner is telling you that they are not the same.

To check the home directory the user account is actually configured for, run this command (see man 5 passwd and man grep for more information):

grep penner /etc/passwd

You should see a line like this:

penner:x:1000:1000:Eliah Kagan,,,:/home/penner:/bin/bash

That is, the sixth :-separated field (after the fifth :) contains the home directory. If it's not /home/penner, it should be. If the directory you created for the user is not /home/penner, it should be, too. If the two directories are the same but neither one is /home/penner, then that might theoretically work, but you should make them both /home/penner, because lots of software assumes that all non-root users' home directories are /home/username.

You can change penner's home directory to /home/penner by running this command:

sudo usermod -d /home/penner penner

See man usermod for more information.

Ensuring it is a Directory, and that the User Has Access

If (or once) the names are both /home/penner, you should also make sure that the user has access to their own home directory. Run:

ls -ld /home/penner

You should see something that looks like this (though the date and time will be different):

drwxr-xr-x 43 penner penner 4096 2012-07-03 06:41 /home/penner

If instead of drwxr-xr-x, you have something that starts with - rather than d, then you created a file rather than a directory. Delete the file and make a directory there instead.

If instead of the first penner you have something else, then the user doesn't own their home directory, so make them own it:

sudo chown penner /home/penner

See man chown for more information.

If instead of drwxr-xr-x there are dashes in the next three characters after the d, then the user doesn't have full access there. Fix that as follows:

sudo chmod u+rwx /home/penner

See man chmod for more information.

(penner is capable of running this command if they own their home directory, so if you prefer, you can run this as: sudo -u penner u+rwx /home/penner)

Ensuring Other Users Don't Have Blanket Write Access

If instead of drwxr-xr-x, there are ws instead of -s in the last six letters, then users besides penner may have write access to penner's home directory. This is dangerous (unless you really know what you're doing and want it this way and have set things up so it won't be a problem). To fix it:

sudo chmod -R go-w /home/penner

Other Defaults

There are some other changes you may want to make. By default in Ubuntu (that is, if you create a user account with adduser or with a graphical tool, which you did not):

Home directories have read and write permissions for everyone, not just the user who owns them. Users can change this, either for the whole home directory or any files and subdirectories inside it. But if you do want this default, and you don't have the second and third r and x in drwxr-xr-x, run:

sudo chmod 755 /home/penner

(penner is capable of running this command if they own their home directory, so if you prefer, you can run this as: sudo -u penner chmod 755 /home/penner)
Each user has his/her own group, with the same name as the user, and this is the user's primary group. Their home directory is owned by this group. That's the meaning of the second penner in drwxr-xr-x 43 penner penner 4096 2012-07-03 06:41 /home/penner. It's OK to break with this default, if you know what you are doing. But if it's not your intention to do things differently, you should make sure penner is set up this way, since some possible primary group identities for a user, or group owners on the user's home directory, could lead to security problems.

Run groups penner. (See man groups for more information.) You should see something like this:

penner : penner adm dialout cdrom plugdev lpadmin sambashare

Don't worry if it's not quite like that. I'll get to that soon. Instead, look at the first word after the :. That's the name of the user's primary group. Assuming you want it to be penner, make sure it is. If it isn't, change it:

sudo usermod -g penner penner

If you get an error saying that the group penner doesn't exist, then you'll have to create it with this command (and then run the above command again):

sudo addgroup penner

See man addgroup for more information. (If you prefer, you can alternatively use the groupadd command to create groups.)

When you ran groups penner, you may have gotten a list of groups considerably shorter than my penner : penner adm dialout cdrom plugdev lpadmin sambashare. For desktop users, the adm, dialout, cdrom, plugdev, lpadmin, and sambashare provide abilities that desktop users should generally have. Therefore, unless you have a reason to do otherwise, penner should be in these groups. These are not primary groups, however, so they're set differently. Supposing penner is not in any of these groups and you want penner to be in all of them, run this command:

sudo usermod -a -G adm,dialout,plugdev,lpadmin,sambashare penner

In case you're interested, here's what all those groups mean:

adm users can view most system log files in /var/log.
dialout users can use dial-up modems.
plugdev users can mount and use external storage devices.
lpadmin users can set up and manage printers.
sambashare users can share files (via Samba) with other computers over a network.

(Source: Privileges, in the Ubuntu documentation wiki.)

Making the User an Administrator

If you don't want penner to be an administrator, you probably don't need to do anything else. You can check if penner is an administrator with groups penner. If neither admin nor sudo is listed, then penner is not an administrator.

If you want penner to be an administrator, add penner to whichever of these groups exists. (You may as well add penner to both, if they both exist.) You can accomplish that by running these two commands separately--if either one succeeds, you've made penner an administrator:

sudo usermod -a -G admin penner
sudo usermod -a -G sudo penner

The reason there are two groups is that, before Ubuntu 12.04 LTS, administrators were in the admin group. Starting with Ubuntu 12.04 LTS, administrators are in the sudo group. But if your 12.04 LTS system is upgraded from a previous release (and this should apply to later Ubuntu releases, such as 12.10 when it comes out, that are upgraded from Ubuntu 11.10 or earlier), then for backward compatibility, administrators are members of both sudo and admin. Generally, if one of these groups doesn't confer administrative abilities, it simply doesn't exist, so running both the above two commands (separately, not as sudo usermod -a -G admin,sudo penner) is generally a safe and effective way to make penner an administrator.


Unable to mount hard disk even after disabling fast boot

Fast Googling suggests:

Windows:

chkdisk -f driveletter

Linux:

sudo ntfsfix /dev/sdb2


How can I configure the applications menu in KDE?

Plasma 5 application menu (Kickoff)

Plasma 5 Kickoff menu is dynamic menu. It is composed from the application desktop files.

The KDE has Menu Editor:

  KMenuEdit allows editing the menu of KDE application launchers.

  KMenuEdit can be started either by right mouse button clicking the
  application launcher button on the panel and choosing Edit
  Applications..., or by typing kmenuedit in the KRunner line...

More from the KDE Menu Editor Handbook. Online: https://docs.kde.org/trunk5/en/kde-workspace/kmenuedit/index.html

Plasma 5.14 Kickoff Computer tab

The Computer tab applications are not editable with the KDE Menu Editor. The applications are read from the plasma configuration file. Older plasma have the 'kickoffrc' file.

As the kickoffrc was deprecated the settings were transfered to the plasma configuration file: $HOME/.config/plasma-org.kde.plasma.desktop-appletsrc.

The Computer tab applications are under the 'systemApplications'.

The user can edit the text file plasma-org.kde.plasma.desktop-appletsrc by

0) Backup the plasma-org.kde.plasma.desktop-appletsrc

1) Stop the plasmashell by executing the command (krunner): 'kquitapp5 plasmashell'

2) Edit the plasma-org.kde.plasma.desktop-appletsrc line: 'systemApplications='

3) Save the plasma-org.kde.plasma.desktop-appletsrc

4) Restart the plasmashell with the command (krunner): 'plasmashell'

KDE System Monitor (org.kde.systemmonitor.desktop) added to the 'systemApplications'

Testing with the Ubuntu 18.10 (Cosmic Cuttlefish) - Plasma 5.13

Testing done with the clean plasma-org.kde.plasma.desktop-appletsrc.

There is no 'systemApplications=' line.

Using copy and paste from https://userbase.kde.org/KDE_System_Administration/PlasmaDesktopScripting#org.kde.plasma.kickoff

Adding few more items to the systemApplications...

...seems to work BUT the 'org.kde.systemmonitor.desktop' doesn't work with the CC / Plasma 5.13 at here. The 'org.kde.systemmonitor.desktop' will disappear from the systemApplications. The 'org.kde.ksysguard.desktop' seems to work.


Error with Kernel 3.3.2 in Ubuntu 12.04 Beta 2 64-bits (with the updates to the date)

You should remove the 3.3.2 kernel. It is not well tested. The 3.2 branch is the last stable kernel shipped with ubuntu.


Make sure Ubuntu is connected to right wifi or reconnect to right wifi using a script

Find the name of your configured connection with:

$ ls /etc/NetWorkManager/system-connections/

Replace the My Choice Network with the name of the network you want to connect to.

Run the script.  If it's connected to that network, it'll do nothing.  If it's not connected to that network it connect to it.

#!/bin/bash

wifiname="My Choice Network"
connectedname="$(nmcli -f active,ssid dev wifi|egrep "yes"|awk '{$1="";print}'|sed "s/^[ \t]*//")"

echo "Connedted: [$connectedname]"
echo "wifiname:  [$wifiname]"

if [[ ! "$connectedname" == "$wifiname" ]]; then
        nmcli connection up id "$wifiname"
fi


How to run javaws from 32 bit 'jdk-1_5_0_06-linux-i586.bin' on Ubuntu 18.04 64 bit?

Downloaded and installed jdk-1_5_0_06-linux-i586.bin on ~/Desktop
Installed libxext6 32-bit version

$ sudo apt-get install libxext6:i386
Ran the following commands:

$ cd ~/Desktop/jdk1.5.0_06/bin

$ ./javaws
The following screen poped-out

@Arun, please let me know my little research is helpful to you or not!


How do I change the gnome keyboard shortcuts defaults?

The way I see it, was that the keyboard shortcuts were designed in such a way to adapt to the user's casual workload. While many applications make use of Alt, Ctrl, and Shift in various combinations, not many use the Super (Windows) keys.

Windows uses many similar conventions, however: Windows+Tab is a window switcher, Ctrl+Shift+Esc opens the Task Manager, and supposedly, Ctrl+Alt+Esc toggles a window's "Always on Top" property (see also Table of Keyboard Shortcuts on Wikipedia). While different from GNOME's shortcuts, Windows uses the same keys in a more understandable manner, so that Windows users don't have to learn new key combinations during the transition to Linux.

For example, everyone knows what Ctrl+Alt+Delete is, but not everybody uses it the same way; it logs you out in Linux, for instance, as opposed to the security panel in Windows NT kernels.

However, if you want to basically make it so they all use one or the other (Super or Alt), then the method you use is one effective way to change that. dconf also has a GUI method that works just as well.

Just as clarification, though: It is not a mess. Each shortcut was likely meticulously chosen to represent one specific action over another. Using a specific prefix key for many actions is like choosing which keys to change with the fn key on laptops and specific keyboards, and functions like the Mode Switch (AltGr) and other modifier keys (see also What is the Mode_switch modifier for? on Unix & Linux).


How To Install D-Link DWM-156 3G Modem Ubuntu 13.04

Type ctrl+alt+t
Then a terminal will appear.

Type

sudo mkdir /media/dlink

Then type

sudo mount /dev/sr1 or /dev/sr2 /media/dlink

There you will see a file called dlinkusbmodem.deb

After installing the package the thing you have to do is to type

usbdeviceswitchdlink

After doing that you will notice that the modem in unmounted.

Now type

3g_connect.sh ttyUSB0

Then wait for 120 seconds.

You'll see that before or after 120 seconds the internet is connected.

To check type

ping www.google.com


Seems like I've figured it out - looks like the problem was caused by having non-english keyboard layout enabled (wonder how I missed that out in the first place).

So solution (for Eclipse) is to go to Window->Preferences->General->Keys and add mappings for other layout that is used (this might look a little bit confusing, since different letters might look the same in different languages (like Russian В and English B)).

p.s. What's interesting is that Chromium for example doesn't have this problem - might have already enabled mappings for different languages or just handles keys differently.


What to do with a cluster of old computers running Ubuntu?

Put some sort of distributed computing client on there and donate your unused cycles to science.

Maybe something like
http://folding.stanford.edu/


HPLIP won't install on 20.04 because of Python 3 (what to do?)

You can always install python2 by running
sudo apt install python2

It won't change anything with python3.


How to move Linux Swap Partition - GParted

The simplest solution would be to use a swap file, remove the swap partition, and reallocate the space. Here’s how you can do it:

Open Terminal (if it’s not already open)
Create a swap file of equal (or greater) size to your swap partition:
sudo fallocate -l 16G /swapfile

Set the file permissions:
sudo chmod 600 /swapfile

Mark the file as a swap location:
sudo mkswap /swapfile

Enable the swap file:
sudo swapon /swapfile

Update /etc/fstab so the changes persist across boots:
sudo vi /etc/fstab

Comment out the current swap partition by adding a # to the start of the line. For example:
# UUID=abcd1234-1234-abcd-5678-ef0123456789 none   swap    sw      0       0

Add the new swap file:
/swapfile none swap sw 0 0

Save the file
Reboot to test everything is good

So long as it’s all good …

Grab a Live USB/DVD and boot into a live session
Open GParted
Delete the swap partition (as you no longer need it)
Resize your main Ubuntu partition by dragging to the left, filling the partition
Click “Apply Changes”Note: This process may take a long time as data is moved. Do not go this while on battery power.
Reboot

This should result in an additional 60+ GB of storage for your Ubuntu installation


Open Stack Installation On Ubuntu 14.04?

You can use devstack to deploy openstack on your machine. devstack is used for development and is probably the fastest and easiest way to deploy openstack. We first setup the environment to deploy openstack and then install openstack using devstack.

Preparing the environment:

Deploy a virtual machine with ubuntu 14.04 as the guest OS on your ubuntu 14.04. You can use various hypervisors for deploying the virtual machine, I have used VMware Player. For instructions on how to deploy a virtual machine using VMware Player, refer to this tutorial:

VMware Player- Installing and deploying virtual machines on ubuntu

Next, after you have deployed the virtual machine and it is ready to use, you need to clone the devstack script from the github repositories, so first install git using the terminal(press Ctrl+Alt+t together) and type:

sudo apt-get install git

and enter your password and wait for the installation to complete. Now get the devstack script using the command below:

git clone https://github.com/openstack-dev/devstack.git

This will take sometime depending upon your connection speed.

Installing openstack:

If the script and other files downloaded successfully, you will get a directory devstack in the folder you executed this command. Go into the directory and type:

cd devstack

and then execute the script that fetches and install packages required by openstack using:

./stack.sh

You will be asked to set the password for administration and a few packages like mysql, rabbitmq, etc(six times in all); you could keep the passwords short and simple and may be even same if you don't wish to remember a different one for all. This will take roughly 2 hours to complete, again depending upon your connection speed (I assume it is around 200kbps). You can read about the script here. The script will download and install and start various services and packages.
The output of the execution explains what scripts are being downloaded and other installation output; this will be useful to troubleshoot if you end up with an unsuccessful installation. If the script completes execution successfully, you will the output ending with the following lines:

Horizon is now available at http://10.1.119.60/
Keystone is serving at http://10.1.119.60:5000/v2.0/
Examples on using novaclient command line is in exercise.sh
The default users are: admin and demo
The password: password
This is your host ip: 10.1.119.60
stack.sh completed in 257 seconds.

If you don't get this, the script encountered some errors and they need to be sorted out first.*
If the installation is successful, you can open a browser and type the URL as given in the output message:

This is your host ip: xxx.xxx.xxx.xxx

as shown above. **
You will get a page asking you the username and password. The username is admin and the password is what you entered when you installed openstack(the first of the six passwords). If you don't remember, open your localrc file in your devstack folder and check (It either be named localrc, or .localrc or local.conf).
If you ever happen to restart your machine or the virtual machine or even log off, you may need to restart openstack services since all of them are not started when the machine is booted. To restart the services, executed the following command on a terminal when you are in the devstack folder:

./rejoin-stack.sh

and if completed successfully, all openstack services will be started and you should be able to access using the same username and password.
The installation above does not install neutron(the networking component), to install neutron, add the following to the end of your localrc file:

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
#Optional, to enable tempest configuration as part of devstack
enable_service tempest

and then again execute ./stack.sh.

Notes:

Though you can install openstack on a bare-machine(not a virtual machine), it is recommended to install it on a virtual machine for security and for ease of use. The devstack installation removes your administrative password(rather does not ask for a password even for privileged commands). Also, you can create clones of your installtion and then even if you mess up your installation, you can discard the messed up one and then revert back to the latest working image of the virtual machine.
It is better to install openstack on a new, clean virtual machine having an LTS OS on it, since support and testing is usually done on LTS, you will find more response on channels and forums if it is on an LTS version. Also the new virtual machine ensures there are no package version conflicts and helps in easing out the installation.
If you are behind a proxy, you may need to add them in the virtual machine as environment variables in your /etc/environment file if you want to add it globally or in your ~/.bashrc file if you want it locally and also in /etc/apt/apt.conf. You may also need to tweak the script a little if git is not able to fetch packages even after adding http and https proxies.

*It is difficult to give a canonical solution to all those errors since a lot of ground needs to be covered and is nearly impossible to state them in one solution. After you have resolved the error that caused the script to fail, you need to restart the script using ./stack.sh when you are in devstack folder.

**The reason you were getting the error when you logged in was because the installation was not successful or because you restarted, you need to restart openstack services if you restarted, if the installation failed, you need to troubleshoot the errors first and then restart the script.


How to make sure a 3 character filename contains one of 2 characters?

Try this command(s):

cd /path/to/directory
ls | while read file; do if [ ${#file} -eq 3 ]; then echo $file; fi; done | grep '[By]'

or:

for file in ???; do echo $file; done | grep '[By]'

or, a variant without any loop:

ls | grep -ow '\w\{3\}' | grep '[By]'

ls will list all files from the current directory, then we select only the filenames that have exactly 3 characters in length and finally, using grep, we select only filenames that contain B or y.


Install, blank screen just mouse, (screen sometimes yellow, somtimes ubuntu brown, sometimes gray)

What are you using?. Live USB or CD. If its a LIve USB try formating and installing the latest version of Ubuntu installer. Also what happens when you choose the option to try Ubuntu rather instal. Does it run?. Finally if its a windows 8 dual boot look for questions on this forum on how to dual boot with windows 8. If you are installing from CD you may want to also check the version and make sure that version is supported.

If you installing from CD with example version 10.04 then you might want to upgrade in steps i.e update to 11.04 then upgrade to 12.04. Uncheck the option to get updates while installing then do that after Ubuntu installation is completely finished.


For a 32-bit kernel, what are the pros/cons of PAE vs. non-PAE?

Short answer: Go 64-bit if you can, which is faster than both PAE/non-PAE 32-bit; if you cannot, non-PAE may be 1-2% faster than PAE.

In theory PAE has a slight overhead over non-PAE...

The big advantage of PAE is allowing a 32-bit processor/system to use more than 4GB of RAM
But this requires slightly more overhead over non-PAE, which can lead to slightly decreased performance.

Here's a very simple explanation: in non-PAE mode, a 32-bit CPU must lookup (access) two tables to access a physical memory address; in PAE-mode, it must lookup three tables to do so. The one additional lookup requires some (very small) extra time, thus imposing additional overhead.
At the end of this answer are two images from the Wikipedia PAE article, illustrating the above point.
NX/XD bit: The PAE kernel also supports the No-eXecute/eXecute-Disable bit on 64-bit processors; this can help prevent some kinds of virus/malicious attacks (buffer overflows), but IMO this doesn't matter much when choosing 32-bit kernels for Ubuntu.

...but in practice this overhead is negligible (almost nothing)...

Phoronix has done a number of tests over the years which show that on systems with 4GB or less, the PAE kernel may be at most approximately 5% slower than the non-PAE kernel. This is only for a specific test application; the usual difference is less than 1%.

Tests for 12.04 LTS - 8 GB system!
Tests for 11.04 - 4 and 8GB systems

and 64-bit almost always beats BOTH 32-bit kernels - go for it!

The one thing those Phoronix benchmarks above tell you is that 64-bit is king -- even if you have less than 4GB of RAM (although I'd recommend 1GB as the minimum)
If you have a 64-bit processor -- generally anything after 2006 except Intel Atoms -- you are probably losing performance by using a 32-bit kernel!

Comparing non-PAE vs. PAE page table accesses:

Non-PAE

PAE


help cannot change inotify watch number because file cant be over written

this website has the answer in the comments about how to edit the file in question.

http://monodevelop.com/Inotify_watches_limit

so that you do not have to search for the comment on the site this is correct command that worked perfectly for me.

echo yourNumber | sudo tee /proc/sys/fs/inotify/max_user_watches

for those of us who didnt know that much about inotify, pay attention to the number that you enter. the number that you enter must be a multiple of 2.

so because i had such a large amount of items to watch (257,048) i wanted to go to a number that was at least as high as 300,000 items being watched. the closest multiple of 2 was 285184, which was not enough for me. thus i multiplied by two to get 570368. so i will probably never have to touch that file again (yay).

enjoy a cup of ubuntu, cheers


(This answer is based on the default setup of Ubuntu, with default repository preference)

If the same software has different versions, Apt will always try to use the most recent version of the software subject to dependency constraints.

*Please note that, Apt also look at the priority of a repository, if a higher priority of a repository has lower version, Apt won't upgrade the package. In default Ubuntu installation, all enabled repository has priority 500 except the backport repository, which has priority 100. So, if a software has higher versioned package in backport repository, that software will not be upgraded with sudo apt-get install x command. You need to explicitly tell apt to use that repository by using command like this: sudo apt-get install x/precise-backports. *

But, if two repo provide the same software with the same version, then Apt will install software from the repository which comes first in the sources.list file.

I'm quoting from apt_preference manual page:

   Several instances of the same version of a package may be available
   when the sources.list(5) file contains references to more than one
   source. In this case apt-get downloads the instance listed earliest in
   the sources.list(5) file. The APT preferences file does not affect the
   choice of instance, only the choice of version.


How to install libsystemd-journal-dev on Wily (JHBuild issue)

Try jhbuild build --nodeps gnome-music

Or try building in debian Testing or Fedora 23 which are known to be better supported.


Your first attempt seems to be wrong because the full path is not specified.

Your second attempt seems to be that there is a mismatch in nfs versions: The initramfs loads version 4 but the server only serves version 3.

Probably this might help:

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

You might try to compile the TFTP-Served kernel with nfs-3-support, see lsinitramfs initrd.img-3.5.0-25-generic to check what's inside.


Boot crash after latest update of intel-microcode (Nov 11 2020)

Had same problem with Asus UX305CA, boot hangs with black screen after last update. Served me a really bad day: Tried recovery, grub-recovery... nothing helped. I'm only able to boot to recovery mode.
Since I have QHD display, I suspect the Intel driver update is the reason.
My temporary fix:

Identfy the prior version by
sudo apt-cache policy intel-microcode

and roll back to this version
sudo apt-get install intel-microcode=3.20180312.0~ubuntu18.04.1

Reboot now works again in normal mode.


Cannot add custom screen resolution in Ubuntu Gnome (yet working on Unity and KDE Neon)

I went back from Wayland to Xorg, as described at How to Switch to Xorg from Wayland in Ubuntu 17.10  | itsfoss.com And after reboot the previous settings, described in the tutorial you mentioned, worked as usual.

In Ubuntu 17.10, restart your system. At the login screen, under the password field, you’ll see a gear icon. Just click on it and you’ll see two options here.

The default Ubuntu means it will be using Wayland while Ubuntu on Xorg obviously means it will use Xorg. You can select Ubuntu on Xorg to use Xorg here.


ACPI is the Advanced Configuration and Power Interface, which allows Ubuntu (or any OS) to communicate with your hardware in a standard manner. It's main function is power management, along with hardware device configuration.

A GPE in ACPI is a General Purpose Event. Think of it as an interrupt - the hardware is informing the OS (via ACPI) that something happened. The "something" usually includes things like plugging/unplugging your AC adapter, closing/opening the lid of your laptop, etc.

EC is the embedded controller which provides ACPI functions on your motherboard.

A GPE storm occurs when the EC starts sending hundreds or thousands of "events" per second to the OS -- these are either spurious (bogus), or due to some fault in the underlying hardware. e.g. a failure in your battery's charging controller leads the ACPI EC to think that the battery is being removed and reinserted hundreds of times per second.

Transactions will use polling mode means that to handle the storm, the OS will stop using GPEs/interrupts to be informed of ACPI events and will instead -- on its own schedule -- "poll" or proactively ask the ACPI EC if any events it should know of have occurred. This way, the OS can still effectively perform ACPI functions while not being overwhelmed with a "GPE storm".

As for your particular problem, yes, this error can certainly affect system stability and usually means something is wrong with your hardware and not Ubuntu/the kernel. If you experience frequent crashes, try running the Memory Test from the Ubuntu Live CD?


Ubuntu 12.10 boots to purple screen after upgrading from 12.04?

If you have the media you installed Ubuntu from, insert it into your computer and restart. If you don’t, download a Ubuntu live CD and burn it to a disc or install it on a USB flash drive. You can also download a dedicated Boot Repair live CD

sudo add-apt-repository ppa:yannubuntu/boot-repair

sudo apt-get update

sudo apt-get install -y boot-repair boot-repair

click recommended repair.
reference boot repair


Migrating Ubuntu 14.04 from persistent live USB to laptop

Have you tried command called "dd". You need to use it from terminal, but its kinda bit by bit copy software.

After succesfully transfered data from usb to HDD reboot and use gparted to maximaze your partition to full HDD size.

http://www.computerhope.com/unix/dd.htm


making a selected font in the console to default

Go to your terminal.  Find the Edit menu at the top.  Then select Profile Preferences.  Then at the bottom of the window that pops up, select Custom font.  Then you can select your font size as you like, and it should stay the same after reboot.

EDIT:

To change the font size of the tty, run this command :

sudo dpkg-reconfigure console-setup

You will then go through 4 steps.  In the first step, select UTF-8.  In the second step, select Combined - Latin; Slavic Cyrillic; Greek.  Then select Fixed, and finally you can select your font size.  The default (at least for me) is 8x16, but you can set it ad libitum.


Unable to download Ubuntu from the official website in Windows

Try clicking on the 'Not now, take me to download' button.

If that still doesn't work it probably has something to do with the country your in.
See this link for alternative downloads and other countries mirrors.


check out this post.

i don't know about "native" support but there's already some drivers that support Nvidia Optimus.

http://www.webupd8.org/2013/04/nvidia-releases-linux-graphics-drivers.html


After upgrade from 10.10 to 11.04 Ubuntu doesn't load the splash screen anymore

I found the solution on the web.
For the HP 625 you have to turn off WLAN and Bluetooth. Then Ubuntu should boot. Then you need to uninstall "bcmwl-kernel-source" and every package containing "broadcom" drivers. Then reboot. And finally you turn on WLAN and Bluetooth again and install the drivers.


Error message when installing Ubuntu on PC but not on laptop

I solved my problem. I must choose "nomodeset" in settings. Sorry for problem.


Wallpaper suddenly went black on Ubuntu 13.10

Make sure Nemo is set to 'NOT handle the desktop'.

Run this command: gsettings set org.nemo.desktop show-desktop-icons false


Why can't I create a partition table on my USB flash drive using GParted?

Trying using Disk Utility in the Administration Menu (command line: palimpsest) instead of gparted. You should be able to create a partition table with it or replace the existing one.

It's entirely possible they use the same libraries & access routines - if that fails i'd suspect your hardware is faulty.


Problem running backup script at shutdown Ubuntu 14.04.2

OP has solved the problem:

  Thanks for replying. I have re-evaluated my strategy a little. I've
  just put a button in my launcher that runs the second script. This is
  much simpler and accomplishes the same thing.


How to control startup options of dnsmasq?

All dnsmasq configuration files you add into /etc/NetworkManager/dnsmasq.d/ are passed to dnsmasq. Just check it with the command:

ps -ef | grep -P "dnsmasq\s"

I get this kind of result (notice the --conf-dir parameter):

nobody    6105  5868  0 20:20 ?        00:00:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/run/NetworkManager/dnsmasq.pid --listen-address=127.0.1.1 --cache-size=0 --clear-on-reload --conf-file=/dev/null --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d

So you could just create a file e.g. /etc/NetworkManager/dnsmasq.d/my-hosts containing the declaration:

addn-hosts=/etc/hosts

in order to use /etc/hosts (see doc).
But because dnsmasq starts also with --no-hosts this might determine dnsmasq to still ignore /etc/hosts so you could just create a hard link to it e.g.:

sudo cp -al /etc/hosts /etc/my-hosts

then change the declaration to:

addn-hosts=/etc/my-hosts


Size of webpages in web browser looks too congested in Ubuntu 18.10

The congestion in the web browsers is controlled by the Zoom Settings in both Firefox and Chrome. In Firefox access the Zoom settings by clicking the three horizontal lines Settings icon ≡ in the top right corner -> Zoom -> click ➕ to increase zoom %.

Instead of changing the size of everything, you can just change the size of the text in Firefox. You can also click the Zoom Text Only option iin the below screenshot to remove the checkmark and toggle Zoom Text Only from on to off if it is already selected.

Press the Alt key to temporarily bring up the traditional Firefox menus. On the menu bar at the top, click View -> Zoom.
Select Zoom Text Only. This makes the controls only change the size of text, not images.

In Chrome the Zoom can be changed by clicking the three dots icon ⋮ in the top right corner -> Settings -> Page zoom -> select the default zoom for all pages from the Page zoom dropdown menu. The page zoom for a specific webpage can be changed to override the default zoom settings for all pages by clicking the three dots icon ⋮ in the top right corner -> Zoom -> click ➕ to increase zoom %.

In Chrome the default font size for all webpages can be changed by clicking the three dots icon ⋮ in the top right corner -> Settings -> Font size -> select the default font size for all pages from the Font size dropdown menu. If the preset font size options don't look exactly right there is also a Customize fonts option located below the Font size option. Click the ▶ to the right of where it says Customize fonts to access the Customize fonts page.


See answer of Zaz at https://askubuntu.com/a/12301/82618

Essentially, you need to append the variant list in /usr/share/X11/xkb/rules/evdev.xml. Doing so worked for me at least on Kubuntu 13.04 but is likely to work on Ubuntu, too.


USB/External Hard drives not recognised on Windows10 machine after being mounted on Ubuntu machine

You could try copying the files off the external hard disk into the Ubuntu filesystem and then use sudo cfdisk in the terminal  to format the external hard disk to either FAT or NTFS before copying the files back to the external hard disk.

Just make sure to use FAT (or FAT32) or NTFS as these are the only formats Windows supports.

Cfdisk is pretty self-explanatory but if you need help there is plenty of help on the internet - just google.


What terminal-based network speed tests are available?

You may use nload (Install nload) for this purpose. Sample output:

You can install nload by this command:

sudo apt-get install nload

Also available in software center.


Auto remove tab-indents from everything I paste into the Ubuntu CLI?

Run bind -u complete, then Bash will behave exactly as you want: it will not allow you to input tabs.

Source: This answer on "Disable bash tab completion"


You go to extensions, and there you can disable:


Open the terminal and type:

sudo nano /etc/apt/sources.list.d/osd-lyrics-ppa-raring.list

...and press Enter, when you open it, change raring to precise.

Example:
original: deb http://ppa.launchpad.net/osd-lyrics/ppa/ubuntu raring main
changed: deb http://ppa.launchpad.net/osd-lyrics/ppa/ubuntu precise main

Now press Ctrl+X and press Y

now update: sudo apt-get update
and install: sudo apt-get install osdlyrics

When you think that osdlyrics has been updated, substitute precise with raring and update again.


I think you've missed to append automatic-ubiquity. At least that's what I did with Xubuntu 18.


Regarding installing adobe flash player for ubuntu 14.04

You can install it by running

sudo apt-get install flashplugin-installer

But you need to turn on 'Canonical partners' repository in 'System Settings' -> Software and Updates'

But this will install only version 11.2. Adobe does not make newer versions for Linux. They just make security updates for 11.2

Google Chrome has pepperflash, which is the latest version. Pepperflash can be installed to Chromium and other browsers, based on it.


What to do about a false positive in clamtk

clamtk is a gui front end for clamav & allows for some customization: under Preferences, go to "whitelist", and simply add the files there you want clamav to ignore. Alternatively, for well-known applications & system files (vs your own files), you can report them to clamav as false-positives: http://www.clamav.net/contact


How can I find an older version of pip that works with Python 2.7?

This guide will show you how to do it (however, has to be updated for python 2.7). These are the necessary steps:
Start by enabling the universe repository:
sudo add-apt-repository universe

Update the packages index:
sudo apt update

Use curl to download the get-pip.py script (for python 2.7):
sudo curl https://bootstrap.pypa.io/2.7/get-pip.py --output get-pip.py

Once the repository is enabled, run the script as sudo user with python2 to install pip for Python 2:
sudo python2 get-pip.py

Verify installation by running the following:
pip --version


I 'fixed' the problem by disabling the Firefox addon/extension Ubuntu Modifications.


Ubuntu Studio 20.04 freezes everything but mouse after lid closes and opens

The solution described in comment #16 on Bug #1866686 “20.04 Xubuntu does not resume from suspend” : Bugs : xfce4-power-manager package : Ubuntu posted by Arham Amouei worked flawlessy for me. Excerpt from that comment:

I uninstalled xfce4-screensaver for another reason: The system took ~30 secs to suspend. By uninstalling xfce4-screensaver both the problems disappeared.


Will it be possible to remove/add indicator-* applets from panel without using synaptic?

yes, you can, you go remove the .desktop files for the non-desired options somewhere deep in /usr/share/applications/indicator-me or something along that line... best not to fool w/ it too much.


Clear "unknown" characters from bash script

i solved this by workaround:

-in powershell script redirected output to file

-in shell script added line for reading content of that file

-sending file content to zabbix

-no more strange symbols


The only way is to create a Live CD on your USB drive, and giving it persistence.  Depending on how man GBs the USB drive is, you will have plenty of space to store items.  If you are in need of transferring them immediately, your best bet is likely to simply plug another USB drive into the system, and copy everything into it.


Where do I set-up a screen saver in Xubuntu 15.10?

Those settings are located in the power management settings. You can directly launch that using xfce4-power-manager-settings.

The blank option makes your screen display the black color but does not turn it off! I don't know what is the difference between sleep and switch off because both seem to make my monitor enter standby mode.


How to deal with bug in 13.10 that freezes computer when resizing windows?

Open ttyl using

ctrl, alt and f2

Type in your name and password and then enter

unity

After that, go back to the desktop by holding

ctrl, alt and f7

Tada, you restarted unity but didn't crash anything else you were running.


Psensors/Watch Sensors Repeatedly Freezes 15.04

I had a similar issue. I run a Dell XPS1640 using ubuntu 15.04.
My problem was resolved by removing the i8k module.

You can try the following:

Check if the module is loaded by typing the following in  a terminal

lsmod | grep i8k

To unload the module, type the following in a terminal

sudo rmmod i8k

Run sensors to test if it worked.


Can sharing the output of these bash commands put you into a risk of being compromised?

Yes.

How?

ifconfig shows the configured IP address(es) of your computer. An attacker can use this info (your global IP, local IP is sufficient for an attacker in the local network) to pinpoint you on the internet
w and who show the currently logged in user(s), this info makes sure that certain user(s) is present on the system i.e. the username is valid on the given system. Now knowing the username, the attacker can then start e.g. a brute-force or dictionary attack for your password only. If the username is not known, the attacker would have do the same for both username and password
sudo netstat -tulpan shows the service name and port they are listening on. Knowing that a certain port is open, an attacker can try to leverage that open port by accessing it or can try to exploit the service if its buggy. If the attacker is not aware of this, they would have to run a port scan and/or other tests beforehand.

Note that, this is a general depiction of how these information can be exploited against you, there are so many ways an attacker can leverage these information now-a-days. So as a must, you must follow the right procedures of hardening your system on the Internet irrespective of the possibility of being attacked by someone.


can't put .desktop into /usr/share/applications

You need to be root to copy the file. I would recommend instead to copy to ~/.local/share/applications/, as this would not mess with the whole system.


How to unlock LUKS root partition using ssh (not through dropbear)

I've put together a fairly simple keyscript for retrieving keys over HTTPS. I was trying to solve the same problem I believe you are - securing a machine against untargeted theft while still allowing unattended reboots.

The key is stored encrypted on the other server, and you can configure  basic authentication fairly easily - none of this particularly helps of course once someone's stolen the relevant machine! You'll still have to manually respond to the theft quickly by making the keys unavailable.

(I've also made my HTTP server limit access using GeoIP and my ISPs IP ranges, which might provide some protection if I'm lucky.)

Encrypting the key in my arrangement probably doesn't provide much benefit, I have to admit. (But it doesn't make things much more complicated.)

mandos is an attempt to solve a similar problem but tries to ensure that keys will be made unavailable quickly and automatically if a machine appears to have been stolen. This means it requires assumptions about downtime and a slightly more convoluted infrastructure.


Is hardware support for the Lenovo G580 laptop really that bad?

The driver problem for the Atheros AR8162 network card in the Lenovo G580 was solved in the latest Ubuntu 12.04 point release (12.04.2, 14 Feb 2013). The LTS Enablement Stack introduced in that release will pull in Linux kernel 3.5.0 from Quantal, which has built-in support for the alx driver.

For those currently on 12.04: updating to 12.04.2 will not automatically enable the LTS Enablement Stack. You must install the package linux-generic-lts-quantal to do that.


Showing "boot:"  trying to install ubuntu from usb stick created with pendrive

Since the boot: prompt comes from syslinux, and syslinux is set up by the penndrive software, I don't think the procedure and software you used worked properly.

I'd suggest that you recreate the thumb drive using this answer. See also this procedure from pendrivelinux.com which seems to match.

What is supposed to happen:

BIOS is supposed to find the first sector on the pen drive, written by the procedure, and transfer control to it. This is working.
The chain of events started with that action should load the syslinux program from the DOS partition on the pen drive. This seems to be working, too.
The syslinux software is supposed to find its configuration file in the same place and it should direct it to the Ubuntu linux kernel on the pen drive, perhaps putting up a menu first. I think this is where the failure is occurring.
With the loading of the Ubuntu kernel the Ubuntu linux/gnu/debian operating system should start.

Another reference that may be helpful is here.


GRUB = Grand Unified Bootloader

The beauty of Grub is that it can boot many different environments. To select said environment you select the bootloader you wish to boot.

The confusion is GRUB is a bootloader and a booter

If you are dual booting, you select the partition you want to boot. Thus the bootloader grub will dive inside the partition and run the init scripts to start the machine. Each OS has their particulars. grub worked as intended it sounds like by looking at the efi partition and letting you select from there.

I had a bunch of trouble with messing with EFI and MBR booting methods. However, once you get your head around it, it is not so bad.

Check out Rod Smith's article here

There are more solutions to booting other than grub check out rEFInd


you can use ACLs for that.

setfacl -m u:username:rwx /path/to/folder

u: for username
g: for group
replace username with groupname for groups
for folder use -R for recursive permissions.

If more information needed, just google for Linux ACLs, you will get tons of information.


Win 8.1 + Ubuntu, 256GB SSD, partitioning scheme

I would:

24 GB Ubuntu System + applications: EXT4,
64 GB Windows System+Applications: NTFS
150 GB /home from Ubuntu and /users from Windows: NTFS

I've run like this for 6 months before deleting Windows altogether and converting NTFS to EXT4 after another couple of months.

If you have 12GB of RAM, use this formula to calculate your swap file needs.


How can I map layout switching on caps lock and swap caps with escape simultaneously with xkb?

You should be able to swap around the keys with xmodmap if you can't quite do it with setxkbmap. You need the remove Lock modifier for caps lock, as it is a 'special' key.

remove Lock = Caps_Lock
keycode 66 = Escape NoSymbol
keycode 9 = Caps_Lock ISO_Next_Group

You could place the above in your ~/.Xmodmap, which is still read at startup if the correct command is in your ~/.xinitrc, as I explain further in this answer:

How do I set Xmodmap on login?

However, you cannot easily mix the xmodmap and setxkbmap commands, as the latter cancels out changes made with the former, as we discussed in the comments.

To execute these xmodmap commands in the terminal to test them, you would run, for example,

xmodmap -e "remove Lock = Caps_Lock"

but you would only place remove Lock = Caps_Lock in your ~/.Xmodmap file, as I explain further in my above linked answer.


you can connect your computer(With ubuntu running on it) to remote computer(With ubuntu running on it) using ssh...

Requirements :

1) Remote computer User name & IP address.
2) Password of remote computer user.

Follow following steps :

1) Open terminal.(Ctrl+Alt+T).
   2) Enter command :
       a)To install ssh :

      sudo apt-get install ssh

   b)If already installed ,to start ssh service :

     sudo service ssh start

      To see ssh service status :

       sudo service ssh status

   c)To connect to remote Computer with username & IP known

       ssh username@IP_Address

  Then Enter password of remote Computer.

3)After Performing these steps ,you will be in remote computer terminal...now you can do

whatever you want with(copy,delete,shutdown) your remote computer.

If you want to copy remote computer data without connecting you can use scp command...

IF u want more help regarding this u can ask....


Software center errors and doesn't update any more

I had the same problem, iv tried instead of sudo apt-get update i typed in gksudo apt-get update, it will prompt for ur password, will fetch and download stuff, at the end i got:

E: Some index files failed to download. They have been ignored, or old ones used instead.

Then I re-ran the update software it worked ( i have the souce code in the settings ticked)

dont ask me how or why its been 1 month since iv been using ubuntu :P just got lucky!


Getting dropbox to sync at start-up problem

I used this https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_1.6.0_amd64.deb
Saved to my download folder
Then installed with:

sudo gdebi ~/Downloads/dropbox_1.6.0_amd64.deb

Depending your l/x/k/ubuntu flavour you may have to install gdebi first:

sudo apt-get install gdebi

Mine is running fine in 32bit and 64bit. Lubuntu 14.04 I just added the dropbox to my autostart to force lansync

dropbox lansync y


How to upgrade a custom Ubuntu installation without installing any default applications like Unity?

Yes, you should be able to upgrade just fine by replacing your current distro name in /etc/apt/sources.list with the next version and doing a full upgrade.


Kubuntu 13.10 changing x mode after login

I wasn't able to fix this in an elegant way but I was able to plug in a monitor that supported 800x600, then changed the resolution to 2560x1440, which was the only other available resolution. Once doing that it has been fine through reboots etc.


How do I restore the yaboot bootloader screen after OS X install?

I shut down the iMac and started it up holding down the option key (Left Alt for PC keyboard) and selected my linux partition that showed up in order to boot it.

I got to Ubuntu 12.04.1 for PowerPC, started Terminal and did sudo su and entered my password and then just ran ybin which fixed everything.

Now I have the yaboot bootloader back when I start the Mac.


Ok, if you are still experiencing this problem, it happens because some package won't work if the versions of their peers aren't the same.

libgail-3-0 : Depends: libgtk-3-0 (= 3.6.0-0ubuntu3.2) but 3.6.0-0ubuntu3.1 is installed
libgtk-3-0 : Depends: libgtk-3-common (= 3.6.0-0ubuntu3.1) but 3.6.0-0ubuntu3.2 is installed
libgtk-3-bin : Depends: libgtk-3-0 (>= 3.6.0-0ubuntu3.2) but 3.6.0-0ubuntu3.1 is installed

As you can see libgail-3-0 requires libgtk-3-0 to be 3.6.0-0ubuntu3.2 but libgtk-3-0 requires libgtk-3-common to be 3.6.0-0ubuntu3.1 a diference of .1 versions. So, since libgtk-family can't be of different versions, apt-get gets an expectacular dependency error. So how to solve this? We use the hold package status:

echo "libgtk-3-bin hold" | sudo dpkg --set-selections
echo "libgtk-3-0 hold" | sudo dpkg --set-selections

With this, you can upgrade normally until the dependency conflicts get resolved in the Ubuntu repositories.

Once you feel that you can allow upgrades, just run:

echo "libgtk-3-bin install" | sudo dpkg --set-selections
echo "libgtk-3-0 install" | sudo dpkg --set-selections

Another option is to force versions to being installed:

sudo apt-get update
sudo apt-get install libgtk-3-0=3.6.0-0ubuntu3.1 libgtk-3-common=3.6.0-0ubuntu3.1 libgtk-3-0=3.6.0-0ubuntu3.1

This will tell apt-get to install everything using the same version number.


No Grub and Can't Boot into Windows 8 After installing Ubuntu 12.10

Run Boot-Repair --> Advanced Options --> tick Restore EFI backups --> Apply , and indicate the new URL that will appear. Reboot, you should get back access to Windows.