Two ideas:

perl

perl -ne '
        chomp;
        $l = length if $. == 1;
        push @rows, [split //];
    } END {
        for ($i=0; $i<$l; $i++) {
            for ($j=0; $j<$.; $j++) {
                print $rows[$j][$i];
            }
            print "\n";
        }
' file

ruby has a handy Array.transpose method

ruby -e 'puts IO.readlines(ARGV.shift)
                .map {|line| line.chomp.split("")}
                .transpose
                .map {|row| row.join("")}
                .join("\n")
' file

hmm, those will be VERY memory hungry. Another implementation

perl

perl -ne '
        chomp;
        if ($. == 1) {
            @data = split //;
        } else {
            @chars = split //;
            $data[$_] .= $chars[$_] for 0..$#chars;
        }
    } END {
        print join("\n", @data), "\n";
' file

ruby

ruby -e '
  file = File.open(ARGV.shift)
  data = file.gets.chomp.split("")
  file.each do |line|
    line.chomp.split("").each_with_index do |char, idx|
      data[idx] << char
    end
  end
  puts data.join("\n")
' file

I just can't let this go ;)

Benchmarking

               1 MB file         10 MB file           100 MB file
-----------------------------------------------------------------
         |   time  memory  |    time   memory  |     time  memory
perl v1  |  0.54s  85800k  |   4.59s  815140k  |        -       -
perl v2  |  0.47s   6776k  |   4.29s   22204k  |   41.88s 180404k
ruby v1  |  1.19s 137960k  |  14.63s  961736k  |        -       -
ruby v2  |  1.04s  12296k  |   9.75s   27816k  |  101.75s 185908k
gawk     |  1.15s 233056k  |  12.37s 2291404k  |        -       -
choroba  |  0.45s  76740k  |   3.90s  728888k  |        -       -

Choroba's perl wins the time race, but my 2nd implementations are way ahead memory-wise.

Transcript:

$ yes 123456789 | head -n 100000 > big
$ yes 123456789 | head -n 1000000 > bigger
$ yes 123456789 | head -n 10000000 > biggest
$ ls -l big*
-rw-r--r-- 1 jackman jackman   1000000 Jun 24 14:33 big
-rw-r--r-- 1 jackman jackman  10000000 Jun 24 14:33 bigger
-rw-r--r-- 1 jackman jackman 100000000 Jun 24 14:33 biggest
$ time perl -n transpose_v1.pl big >/dev/null
0.54user 0.05system 0:00.98elapsed 61%CPU (0avgtext+0avgdata 85800maxresident)k
3080inputs+0outputs (15major+20501minor)pagefaults 0swaps
$ time perl -n transpose_v1.pl bigger >/dev/null
4.59user 0.39system 0:04.98elapsed 99%CPU (0avgtext+0avgdata 815140maxresident)k
0inputs+0outputs (0major+202823minor)pagefaults 0swaps
$ time perl -n transpose_v2.pl big >/dev/null
0.47user 0.00system 0:00.48elapsed 99%CPU (0avgtext+0avgdata 6776maxresident)k
0inputs+0outputs (0major+819minor)pagefaults 0swaps
$ time perl -n transpose_v2.pl bigger >/dev/null
4.29user 0.01system 0:04.31elapsed 99%CPU (0avgtext+0avgdata 22204maxresident)k
0inputs+0outputs (0major+5042minor)pagefaults 0swaps
$ time perl -n transpose_v2.pl biggest >/dev/null
41.88user 0.11system 0:42.01elapsed 99%CPU (0avgtext+0avgdata 180404maxresident)k
0inputs+0outputs (0major+44590minor)pagefaults 0swaps
$ time ruby transpose_v1.rb  big >/dev/null
1.19user 0.10system 0:01.58elapsed 81%CPU (0avgtext+0avgdata 137960maxresident)k
5856inputs+0outputs (23major+33375minor)pagefaults 0swaps
$ time ruby transpose_v1.rb  bigger >/dev/null
14.63user 0.48system 0:15.12elapsed 99%CPU (0avgtext+0avgdata 961736maxresident)k
0inputs+0outputs (0major+239378minor)pagefaults 0swaps
$ time ruby transpose_v2.rb  big >/dev/null
1.04user 0.02system 0:01.07elapsed 98%CPU (0avgtext+0avgdata 12296maxresident)k
0inputs+0outputs (0major+2020minor)pagefaults 0swaps
$ time ruby transpose_v2.rb  bigger >/dev/null
9.75user 0.02system 0:09.79elapsed 99%CPU (0avgtext+0avgdata 27816maxresident)k
0inputs+0outputs (0major+6051minor)pagefaults 0swaps
$ time ruby transpose_v2.rb  biggest >/dev/null
101.75user 0.21system 1:41.99elapsed 99%CPU (0avgtext+0avgdata 185908maxresident)k
0inputs+0outputs (0major+45600minor)pagefaults 0swaps
$ time gawk -f transpose.gawk big >/dev/null
1.15user 0.12system 0:01.28elapsed 99%CPU (0avgtext+0avgdata 233056maxresident)k
0inputs+0outputs (0major+58542minor)pagefaults 0swaps
$ time gawk -f transpose.gawk bigger >/dev/null
12.37user 1.03system 0:13.40elapsed 99%CPU (0avgtext+0avgdata 2291404maxresident)k
0inputs+0outputs (0major+580302minor)pagefaults 0swaps
$ time perl transpose_choroba.pl  big >/dev/null
0.45user 0.04system 0:00.58elapsed 84%CPU (0avgtext+0avgdata 76740maxresident)k
112inputs+0outputs (1major+18282minor)pagefaults 0swaps
$ time perl transpose_choroba.pl  bigger >/dev/null
3.90user 0.37system 0:04.28elapsed 99%CPU (0avgtext+0avgdata 728888maxresident)k
0inputs+0outputs (0major+181291minor)pagefaults 0swaps


How to include preseed file while PXE install of 20.04 server?

I think you are mixing up the steps from the (now named) legacy installer and the live installer.  Both installers use the url argument.  The legacy installer url argument is for the preseed file.  The live installer url argument is for the iso location
I created example steps of using the pxe booting the live installer at Automated 20.04 Server Installation using PXE and live server image
This is an example pxelinux.cfg/default config for the legacy installer I used for 18.04.  The kernel and initrd files come from the netboot archive in http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/
DEFAULT vesamenu.c32
TIMEOUT 600
ONTIMEOUT bionic-install
PROMPT 0
NOESCAPE 1

MENU TITLE PXE Menu

LABEL bionic-install
        MENU DEFAULT
        MENU label Install Bionic
        KERNEL ubuntu/bionic/amd64/ubuntu-installer/amd64/linux
        APPEND vga=788 initrd=ubuntu/bionic/amd64/ubuntu-installer/amd64/initrd.gz auto=true priority=critical url=tftp://192.168.1.10/preseed_bionic.cfg netcfg/choose_interface=auto DEBCONF_DEBUG=5 --

This is an example pxelinux.cfg/default config for the live installer I used for 20.04 .  This does not use a preseed file, but a new yaml file.  The kernel and initrd files come from the live iso image
DEFAULT vesamenu.c32
TIMEOUT 600
ONTIMEOUT focal-live-install-autoinstall
PROMPT 0
NOESCAPE 1

MENU TITLE PXE Menu

LABEL focal-live-install-autoinstall
        MENU DEFAULT
        MENU label Install focal - autoinstall
        KERNEL ubuntu/focal/live/vmlinuz
        INITRD ubuntu/focal/live/initrd
        APPEND root=/dev/ram0 ramdisk_size=1500000 ip=dhcp url=http://192.168.1.10/tftp/iso/ubuntu-20.04-live-server-amd64.iso autoinstall ds=nocloud-net;s=http://192.168.1.10/tftp/autoinstall/focal_bios/


/etc/resolv.conf kept getting overwritten (how to protect this file)

Just set up your domain address in the network manager, to do this edit /run/resolvconf/interface/NetworkManager file or edit it via graphical interface.


Is it possible to set static IP on only for specific network, but use DHCP everywhere else?

Use NetworkManager for this.
Settings --> Network. Create two new Wired profiles (or just one new if you already have one)

One is your not-home profile using DHCP.
The other is your Home profile using Static IP.
You can create other profiles, if you wish.

Switch between the profiles using the normal NetworkManager controls on your desktop or using nmcli (shell). It's possible --but more complicated-- to write a NetworkManager.Dispatcher script to detect whether you are on you home network and automatically select the correct profile.
If you decide to follow this path, migrate your Netplan settings into your NetworkManager profile. It won't happen automatically. Netplan should be reduced to the original stub, specifying NM at the network manager.


The Troubleshooting Blank Screen at Ubuntu Wiki provides enough information about how to manage these issues, which I can't say what would fit your needs but take a look at that document in order to get a clue on where to start.

Quoted from the site:

  If you see a screen of a different color (brown, white, multi-colored
  corruption, etc.) you are seeing a different class of graphics bug.
  Obtaining register dumps (see below) may still be of value however.

In my case what solved my problem was to edit the GRUB List at /boot/grub/grub.cfg and remove the "splash" parameter of each GRUB's entry, which may be different in your case as mentioned in the Wiki page:

  To check this, in the grub menu edit the kernel line and remove
  'splash' from the end of the line, and boot. If that solves the issue,
  you can remove it from your /boot/grub/menu.lst as a workaround.

NOTE: even when this document refers to the menu.lst file, that file doesn't exist inside my /boot/grub folder, which is grub.cfg in my case. (I can't say why but no need to comment about it)

Also Check the Analysis techniques section of the page in order to gather further information related to your specific issue and let us know, somebody may have more experience with your specific problem than I do.

Keep us posted on your issue.

Good luck.

P.S. You can edit your /boot/grub/grub.cfg using a live session CD/DVD but make sure you always keep a backup of your original file.


SteamPlay Elite Dangerous - Recognizing Logitech Extreme 3D Pro Joystick as 'Generic Gamepad'

I know people have had success with the following:
https://github.com/redmcg/wine/wiki/Peripherals#logitech-extreme-3d-pro

Disable SDL by setting 'Enable SDL' off (with: wine64 reg add 'HKLM\System\CurrentControlSet\Services\WineBus' /v 'Enable SDL' /t REG_DWORD /d 0 /f); and
Delete all registry entries with your PID and VID (for example: look in system.reg and remove any line with VID_046D&PID_C215)

Edit:

Apologies - I just copy and pasted the above when I had a brief moment this morning. But you might find the below to be a bit more helpful:

If you're using protontricks, step one can be done by running:
protontricks 359320 regedit and then navigating to:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WineBus

And creating a new DWORD value called Enable SDL with a value of 0. This disables SDL.

You can then click on HKEY_LOCAL_MACHINE\System and do a Find (Ctrl+F) for the string VID_046D&PID_C215 and delete every entry you find.

VID = Vendor ID  (0x046D = Logitech)

PID = Product ID (0xC215 = Extreme 3D Pro Joystick)

The reason you need to do the above is because SDL incorrectly thinks this device is a controller. It then creates those incorrect registry entries that tell ED that it's a controller.

By disabling SDL - Wine falls back to using the kernel driver (evdev, which does not think it's a controller) and Wine will then rewrite those registry entries telling ED that it's a joystick.


When deploying HP workstations with MAAS I get screen "RCO/USBR boot failed"

I've just been encountering the same problem. I haven't dug into it in a lot of detail, but I was able to workaround this problem by disabling USB Redirection support in the BIOS Setup configuration for Remote Management.

On this model, the option was in the BIOS Setup; it may be in the Intel AMT (MEBx) Firmware setup on other models? The specific details of where to make the change will vary across workstation models and BIOS versions, but that should point you in the right direction.

Obviously that solution is insufficient if you need the USB redirection, but hopefully (likely) you don't...

I assume this answer is a bit late for you, but it might come in handy for someone else.


You can use dd or fallocate (or head or a few other tools) to create a file to act as your container. Then as Vincent Yu stated cryptsetup can handle the loop setup/teardown for you.

fallocate -l 100M mypath/filecontainer
sudo losetup # Debug for demonstration, not necessary in a real script
sudo cryptsetup -y luksFormat mypath/filecontainer
sudo losetup # Debug for demonstration, not necessary in a real script
sudo cryptsetup luksOpen mypath/filecontainer filecontainer
sudo losetup # Debug for demonstration, not necessary in a real script
sudo mkfs -t ext4 /dev/mapper/filecontainer
sync
sudo cryptsetup luksClose filecontainer
sudo losetup # Debug for demonstration, not necessary in a real script

In the debug sudo losetup output, note the AUTOCLEAR = 1 for the filecontainer entry. You could instead go crazy with loopdev=$(sudo losetup -f); mount -o loop <etc>, but letting cryptsetup handle it is WAY nicer.

The key is you want to make sure you FIRST use cryptsetup luksOpen containerfile mappedname to have it mounted to /dev/mapper/mappedname by default (you can give it a full path starting with / and it will mount there instead I believe, and THEN format the /dev/mapper/mappedname target and makes sure you are NOT touching the filecontainer directly, otherwise you are bypassing the encryption engine and just creating an unencrypted loopback file.


How do I install hexen2/Hammer of Thyrion?

Most likely as a result of it being downloaded it won't have the correct file permissions, first you'll need to make it executable:

chmod u+x hexen2-installer-1.5.6-linux.run

Then simply execute the file:

./hexen2-installer-1.5.6-linux.run


Can't see running status indicator Dash to Panel

So the issue eventually was to do with my shell theme. Apparently some shell themes don't play nice with Dash to Panel. Installing a different version of that shell or another shell enitrely fixes the issue. In my case it was flat-remix, and installing another version of that shell (flat-remix-dark-fullPanel) fixed it.


Screen tearing while using gnome and not while using unity

Fix screen tearing with Linux and NVIDIA 384 Driver:

In terminal:

sudo gedit /etc/modprobe.d/nvidia-graphics-drivers.conf

in the file change:

options nvidia_384_drm modeset=0

to:

options nvidia_384_drm modeset=1

In terminal:

sudo update-initramfs -u

Reboot


Gembird Bleutooth Keyboard connecting but not working

It had something to do with the numlock being on.

This solved it for me:

https://askubuntu.com/a/908952/192889


Removing Fedora 13 and installing ubuntu 10.10

You can install Ubuntu into the partition that is currently fedora either with a CD, or with a usb stick. You can download the necessary iso from http://www.ubuntu.com/desktop/get-ubuntu/download. The Ubuntu help wiki has more information how to install dual-boot

To fix the MBR you can use utilities independent from the XP CD http://www.ultimatebootcd.com/ is just one of the examples.


Zabbix-agent shows in netstat even when not installed

As zabbix-agent is shown as the remote part of the connection it doesn't have to be installed on your system.

If you run netstat without the -n option it tries to resolve port numbers using /etc/services.  So zabbix-agent just stands for port 10050, and there may zabbix-agent  running, or any other program that can be configured to use that port.

You can use

sudo fuser -v 41201/tcp

to find the program that is using port 41201 on your local system.


How can I get the Ubuntu shell on Windows 10 to recognize a connected android device?

There is a tricky way to make it work even with current limitations.
You need to start adb server from cmd:
adb kill-server //if it is already running under bash shell
adb start-server

Then you can call adb from bash shell, it will use existing server and as result will be able to list connected devices.
adb devices

Note: Because the environment is loading paths from the Windows PATH variable, you may need to run with the .exe extension as well (or alias adb to adb.exe to keep commands the same).
adb.exe devices


Enter this at the terminal:

   sudo aptitude search screensaver
   sudo aptitude install [packagename]

You will end up with this installed:

   xscreensaver (-data, -data-extra, -gl, -gl-extra)
   kscreensaver-kde4 & kscreensaver-xsavers-extra-kde4


Where do I find a list of all X keysyms these days?

Probably the best up-to-date values for key symbol definitions is to look at the source-code.

Basically its just a list of keysym names  with their associated codes.

sudo apt-get install x11proto-core-dev

Two key keyfiles in /usr/include/X11:

The main definition file:

/usr/include/X11/keysymdef.h

Vendor specific (i.e. Debian/Ubuntu):

/usr/include/X11/XF86keysym.h

There are a number of other header files in the same folder you can also examine:

$ grep -l '#define.*XK_' /usr/include/X11/*.h

Example definition from /usr/include/X11/keysymdef.h:

#define XK_BackSpace                     0xff08  /* Back space, back char */
#define XK_Tab                           0xff09
#define XK_Linefeed                      0xff0a  /* Linefeed, LF */
#define XK_Clear                         0xff0b
#define XK_Return                        0xff0d  /* Return, enter */
#define XK_Pause                         0xff13  /* Pause, hold */
#define XK_Scroll_Lock                   0xff14
#define XK_Sys_Req                       0xff15
#define XK_Escape                        0xff1b
#define XK_Delete                        0xffff  /* Delete, rubout */


PAM must prohibit the use of cached authentications after one day

According to the Ubuntu Manpage, the timestamp_timeout param is an optional argument that can be added to the pam_timestamp.so module.

http://manpages.ubuntu.com/manpages/trusty/man8/pam_timestamp.8.html


Can I remove a physical drive from a ZFS virtual device?

You can replace a physical drive from a zpool. Take a look at this tutorial made by Oracle.

Replacing a Device in a ZFS Storage Pool

Howerver according to the zpool man page (snv_92):

 zpool remove pool device ...

     Removes the specified device from the pool. This command
     currently  only  supports  removing hot spares and cache
     devices. Devices that are part of a mirrored  configura-
     tion  can  be  removed using the "zpool detach" command.
     Non-redundant and raidz devices cannot be removed from a
     pool.

So if you accidentally add a device to a zpool you will need to back everything up and recreate the pool.


How can I install a Synaptics pointing driver?

I had a similar problem. The way I corrected it was to install Synaptiks from the Ubuntu Software Center.

This gave me all the options which you are looking for.


is it necessary to delete the recovery partition?

If you want your windows 7 operational you must not touch that partition.

If you simply remove it then your windows 7 won't boot ....

If you remove it carefully you'll be unable to use the recovery tools afterwards.

You can't backup that partition in order to deport it for later use on CD.

You Have various choices :

Removing the partition carefully understanding that I'll disable you some features of windows such as : bitlocker and recovery tools. And you understand too that you can loose all your windows install. There is no guarantee you'll be able to run windows 7 after this procedure : http://itcookbook.net/blog/removing-windows-7-recovery-partition
Re install Windows 7 so that it does not create the recovery partition ... Witch is safer way to do it : Create an NTFS partition that fit all the hard drive with gparted on ubuntu live, install windows and say yes when it ask you for creating supplementary partitions. After the installation of windows install your ubuntu with shrinking the windows partition.
Last option : shrink the windows partition, leave recovery partition as it is and install ubuntu.

Best regards,


How to enter gnome default keyring password after the prompt disappears?

Enter "Passwords and keys" in the dash, or enter seahorse in a terminal. Right-click on "Default keyring" and choose "Unlock".

(Apologies if my translations are not exactly the same as what you see)


You probably removed the package libgdk-pixbuf2.0-bin.
Reinstall with:
$ sudo apt-get install libgdk-pixbuf2.0-bin


How to remove duplicate app in recommended apps?

The easiest way is to open a terminal and run

sudo rm /var/lib/snapd/desktop/applications/kolourpaint_org.kde.kolourpaint.desktop

Note:

Make sure there's no version of kolourpaint_org.kde.kolourpaint.desktop in ~/.local/share/applications
You'll need to do this each time this particular snap is updated or until this bug is fixed.


How to remove module from kernel using -r or rmmod?

One possible way is to blacklist the driver that is being loaded:

sudo nano `/etc/modprobe.d/blacklist`

add the driver-name using following syntax:

blacklist driver-name

Alternatively,

Create a file '/etc/modprobe.d/[modulename].conf' containing 'blacklist [modulename]'.

Run depmod -ae as root

Recreate your initrd with update-initramfs -u

source

In the dim and distant past I seem to remember you can do this from Grub - not sure if this is still applicable in oneiric but you could try as one of your Grub boot options

modprobe.blacklist=kernel_module


How can two machines with identical ubuntu versions show different installation candidate for a package (network-manager)?

The network-manager from one System seems to come from bionic-proposed.
This packages source is no longer integrated on your system. (but this is not a suggest to integrate it again)

network-manager:
  Installed: 1.10.14-0ubuntu2
  Candidate: 1.10.14-0ubuntu2
  Version table:
 *** 1.10.14-0ubuntu2 100
        100 /var/lib/dpkg/status

Apt compares the packages versions from your system with available one. If the installed version is greater then the available one in your sources, apt will nothing do.

1.10.6-2ubuntu1.2 500
        500 http://be.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
     1.10.6-2ubuntu1.1 500
        500 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages
     1.10.6-2ubuntu1 500
        500 http://be.archive.ubuntu.com/ubuntu bionic/main i386 Packages

But you can tell apt which version you want.

sudo apt install --reinstall network-manager=1.10.6-2ubuntu1.2


Mouse won't click in newly installed Lubuntu 14

Try the following

metacity --replace

If you are using comzip

compiz --replace

Else try for newer version on Lubuntu

unity --replace

Also try with alternate mouse. Sometimes mouse could also be an issue


How do I sort the authors of a repository by the number of contributions using git?

Run this to get the list of authors ordered by number of commits:

git shortlog -sn

Example output is available here.


I'm pretty sure everything will work for you, BUT to be more sure I would just TRY ubuntu from the usb stick and see if graphics, sound, wifi are working properly without actually installing it and see if you can figure it out.

When installing you have the option to install it next to your current windows install and you should be able to access those files.

Here most of your questions will be answered.
http://ubuntuguide.org/wiki/Ubuntu_Quantal

For me one of the things that I needed to learn making the switch was that
ubuntu/unix/linux does not have a C:\ en D:\ drives these are just 'windows names' for chunks of memory mapped directly on hard drives or partitions.

You're in for an interesting ride!


upgrade back to ubuntu from pop 20.04 lts

even though Pop_os is based on Ubuntu, you need to know that Ubuntu 20.04 and Pop_os are two different linux distributions and therefore work in slightly different ways.
Btw, to go back to Ubuntu 20.04 lts, you just have to create a usb support with the os iso (in your case you can download it from here https://ubuntu.com/download/desktop/thank-you?version=20.04.1&architecture=amd64) and reinstall the operating system.


crontab -e does not open the crontab for this user

Just to post the outcome and perhaps help someone who sees the same thing - this is a summary of the comments below my original question

Using crontab -e was the start of the problem - it didn't do anything.

It turns out the Emacs setup was the cause (but I assume any other editor could somehow cause this problem).

Following @steeldriver 's advice of trying EDITOR=/bin/nano crontab -e (trying to force crontab to use nano did not help.

I recorded a screen-cast and stopped on the frame where a file quickly opens - it was Emacs' splash screen.

There were settings in ~/.profile, which caused the Emacs daemon to hijack calls to an editor. After removing those setting and restarting, crontab -e as the user worked.

The settings seemed to be an incorrectly copy-pasted version of this (found on the Emacs wiki):

export ALTERNATE_EDITOR=""
export EDITOR="emacsclient -t"                  # $EDITOR should open in terminal
export VISUAL="emacsclient -c -a emacs"         # $VISUAL opens in GUI with non-daemon as alternate

[I don't remember where the actual mistake was]

The original crontab file was lost. I still don't understand how that happened


Clear explanation of the syntax for rename command

The first parameter is a Perl snippet that transforms the old name (in $_) to the new one, and the rest of the parameters are the files to operate on. In your case, you'd do this:

rename 's/-.{12}$//' *


The file is in /etc/apt/sources.list  You can read it with:  gedit /etc/apt/sources.list

You can back it up before making changes with

cp /etc/apt/sources.list /etc/apt/sources.list.original


The answer would be divided into two parts:

Changing the dialog shapes (border shape - size - re-sizable ....)
changing the appearance (background color , some fonts, ... )

To change the dialog shape

go to the directory:

/usr/share/software-center/ui/gtk3

Open the *.ui apps with GLADE. Edit whatever you want to do in appearance then save.

To install glade:

sudo apt-get install glade

for example here i change the message in the dialog that appears when something wrong goes in your sofwtare center

Enjoy this tricky

Now Also you can do some job when changing the css of the software center found in the path /usr/share/software-center/ui/gtk3/css.

Play with values in and see the difference and do what you want to.

For example:

open /usr/share/software-center/ui/gtk3/css/softwarecenter.css

@define-color light-aubergine #DED7DB;
@define-color super-light-aubergine #F4F1F3;

#featured-star {
    border-color: #F89516;  /* yellow */
    color: #FFC51D;         /* orange */
}

I would change the color of the star in the favorite part of software center

what I did is changing the border color and color of the featured star to black

@define-color light-aubergine #DED7DB;
@define-color super-light-aubergine #F4F1F3;

#featured-star {
    border-color: #000000;
    color: #000000;
}


How to disable workspace indicator in Ubuntu GNOME?

You could try disabling it in the gnome-tweak-tool which can either be launched by executing that in Terminal (CTRL + ALT + T) or by searching for Tweak Tool in the dash.

If that still doesn't work then I'm afraid that there is not much you can do other than mark these bugs as also affecting you:

LP #1686796
LP #1687288


Move all mp4 from folders into another folder

I have just tested a command like
find -type f -iname "*.mp4" -exec cp -av {} /home/user123/set/Folder1/ \;

and it works.
You were missing the backslash, although without it the command doesn't work for me...


If  you mean alternative Skype client, no such tool exists because protocol used in the Skype is closed and they didn't published the source code of Skype. So you can't access Skype through another client.

You can use empathy for most of the other services though.

Note:

You can use Skype under pidgin using Skype plug-in. But even then, you are actually using Skype in the background using Skype API.

Links

http://news.ycombinator.com/item?id=2536410
https://superuser.com/questions/5774/do-any-multi-client-im-clients-support-skype-chat
http://community.skype.com/t5/Mac/Skype-Client-Alternative/td-p/159100


Trying to dual boot Ubuntu, Screws up Windows 7 audio

I cannot answer all of your question, but from what you describe it sounds as though your soundcard has options that are being tweaked by ALSA and not changed when you shut down.

Run alsamixer in the terminal and ensure that the headphone jack sense is not muted. You can also tweak any other settings as needed from there, and they will stick through reboots - thus solving your issues in Windows.


Hold a key to temporarily switch keyboard layout?

With Gnome 3.6, layout setting method changed. So Ubuntu 13.10 and later, has different behavior then before. This should work well in Gnome (Tested Ubuntu 13.10/14.04).
Unity seems not to use xkb-options (Tested it in Ubuntu 13.10/14.04). Even using for example:

setxkbmap us,ara -option grp:rctrl_switch

It just works for seconds, then it is reseted.

Edit /usr/share/X11/xkb/symbols/pc, Remove rctrl from ctrl binding:

//modifier_map Control{ Control_L, Control_R };
modifier_map Control{ Control_L };

again:

setxkbmap us,ara -option grp:rctrl_switch

It just works, till it I use change my layout using Super+Space or directly from indicator. So as workaround for Unity, Disable layout toggle shortcuts (layout indicator could removed too) then add a -option grp:..._toggle to setxkbmap .

So for Gnome:

Use dconf-editor → org → gnome → desktop → input-sources
Add setxkbmap options to xkb-options, example:

['grp:rctrl_switch']

To see all possible options:

more /usr/share/X11/xkb/rules/xorg.lst | grep grp:


Visual Artifacts when using nVidia Prime on Intel driven monitors

There is a solution of mine with this cuda-SDK-beta-1.1 package of NVIDIA ... but this is not for beginners, and it is risky to test it, but it cannot damage your hardware ... Here I post this link, where my workout, worked on my little laptop a good while - BUT you should first wait for new upcoming answers, if somebody has a better solution. Test this posted contribution at the end of all answers.

How can I Install Nvidia Driver GT 520 and Cuda 5.0 in Ubuntu13.04?

Your Dell-Laptop is only different by BIOS and that it is optimized for Win'8 ... not sure
if this solution would work, probably you would have to modify the steps.

Also test this at the end of all answers.


Why does Ubuntu/Linux's UI performance seem to be so much slower than Windows?

I think this may be more of an issue with hardware support on your specific computer - on every machine I've used Ubuntu and Windows on, Ubuntu has been faster in starting programs and booting up etc. It's only the Unity dash which seems to be slow when typing characters, but that's nothing to do with Linux - just some inefficient coding on the part of the Ubuntu devs I guess. But anyway it's supposed to be much sped up in 12.04 (which is only a month away!). :)

If you post hardware details then perhaps someone will find a technical solution to the speed issues on your machine.


RootsMagic7 worked with a hangup fault a few days ago on 20.04, but will not install or run with WINE 5.10 now

I installed the [WineHQ repo][1]https://wiki.winehq.org/Ubuntu
During the upgrade from Ubuntu 19.10 to 20.04, I had this exact error.  On Ubuntu 20.04 wine version 5.0 this is now resolved.  Wine installed by sudo apt-get install wine and RootsMagic by wine ~/Downloads/RM7Setup.exe
Previously,
I used the development branch (wine installed by sudo apt-get install winehq-devel) to resolve issue.  This broke other applications, ie. GedSite 3.06 for which I use a dotnet 4.7.1 wine environment, somewhere between wine version 5.7 and 5.12.  Every time wine version updates, I find the applications have to refresh ~/.wine (usually takes a few seconds longer than normal).  Hope that helps.


Ubuntu partition merge with windows partition

Did you by chance select the installation option that repartitions your entire hard disk? I made that mistake before. Did you choose "Other" or did you just install? It sounds like you've overwritten your entire drive.


On your external harddrive, the master file table (MFT) and its copy (MFTMirr) are seemingly no longer consistent.

You might want to fix it using the Linux tool ntfsfix on the command line.

Connect the hard drive to your System.Open a terminal by CTRLALT+t.
 To sum it up Enter

sudo ntfsfix /dev/sdb1

in the terminal and press Enter. You will be asked for your password. Enter that and press Enter again.

and you will be good to go. Hope it helps.


Nvidia graphics card not shown in additional drivers in software sources

If you want to install nVidia newest driver, you need to install the driver manually from terminal.

Open terminal (Ctrl+Alt+T) then type this:

sudo apt-get install nvidia-current

It will install the nVidia latest stable driver.


How to duplicate all folders into same directory?

This script should make that possible:

#! /usr/bin/env bash
set -e

for i in /path/to/folder
do
        if [ -d "$i" ]
        then
                for r in $(seq 1 5)
                do
                        cp -r "$i" "$i"\-copy"$r"
                done
        fi
done

Information:

for r in $(seq 1 5): This allows you to pick the number of copies to create.
if [ -d "$i" ]: check if the target is a folder.
cp -r "$i" "$i"\-copy"$r": perform the copy.
set -e: stop on first error.

Sample data:

a b c d e f

Sample output:

a        a-copy3  b        b-copy3  c        c-copy3  d        d-copy3  e-copy2  e-copy5  f-copy2  f-copy5
a-copy1  a-copy4  b-copy1  b-copy4  c-copy1  c-copy4  d-copy1  d-copy4  e         e-copy3  f        f-copy3
a-copy2  a-copy5  b-copy2  b-copy5  c-copy2  c-copy5  d-copy2  d-copy5  e-copy1   e-copy4  f-copy1  f-copy4


Resolution stuck at 1280x1024 on 2006 iMac

Resetting PRAM or NVRAM is a suggested solution, e.g. read https://www.lifewire.com/how-to-reset-mac-pram-or-nvram-2260839.

However, people reported Ubuntu failing to boot afterwards and the need to:

boot imac from the Ubuntu live usb
install boot-repair
run boot-repair

See e.g. Cannot boot into Ubuntu after resetting NVRAM on iMac. So not for the faint hearted and I hope someone provides a better answer and you can ignore mine :).


Type in kannada language in Ubuntu 18.04

Install the ibus-m17n package. Then, after next reboot, you'll find a bunch of Kannada input source options in Region & Language (the "Other" section).


How to install ubuntu on a system with a ssd and a hdd?

Step 1: Do a complete backup of both your SDD and HDD to external media.  If the Ubuntu installation goes wrong, it can wipe both hard drives.  I strongly recommend doing a full-drive backup to external drives that are the same size, or at least making images of the entire drives to a single large external drive.  A free utility such as Clonezilla Live can be useful for that.  (How to put Clonezilla on a CD or USB drive.)  However you do it, just make sure you have a really good backup, before you begin.

The biggest question you need to answer is how much space you want Windows to have left over.  If you're OK with Windows only having ~100GB left after you install Ubuntu, then install on the SSD.  You will need to allocate swap space roughly equal to the amount of RAM you have.  (You can do less, but it's not recommended.)  So, realistically, Ubuntu will take up 50GB+RAM on whichever hard drive you install it on.

Before you begin, disable "Fast Boot" in Windows, because it will cause problems on Ubuntu.  (Do this before creating the backup.)  Un-check the box that is indicated in these instructions to disable Fast Boot: https://lifehacker.com/enable-this-setting-to-make-windows-10-boot-up-faster-1743697169.  Note that Windows Updates will auto-enable Fast Boot, from time to time, so you'll have to periodically repeat this process, or Ubuntu may fail to boot, or be unable to write to/read from your Windows partition.

Next, install Ubuntu using the option to install alongside your other operating system (for installing on the SDD), or "something else" (if you want to install on the HDD).  Please follow this guide for how to install Ubuntu: https://www.tecmint.com/install-ubuntu-16-04-alongside-with-windows-10-or-8-in-dual-boot/.  I recommend booting the live CD/USB with the "Try Ubuntu Without Installing" option, so you can access additional tools while you do so (see below.)  When you're ready to install, just double-click the appropriate icon on the Desktop.

Whichever drive you install Ubuntu on, make sure that you install the GRUB bootloader to the primary hard drive (the SDD).  This will most likely show up as /dev/sda, but if you're not sure, open a terminal within the Ubuntu live environment and type in "lsblk", then press ENTER.  Also, you can get clues as to which one it is by typing "sudo blkid" (ignore the partition number at the end of the device name, such as /dev/sda"1", since you want to install GRUB in the drive root, not the individual partitions).  The Ubuntu installer might not need you to specify this, so if it doesn't give you the option, and boots correctly, don't worry about it.  Be aware that Windows Updates and Windows Repair can delete the bootloader, so if you find that you can't boot Ubuntu, anymore, and Fast Boot is disabled in Windows, you'll need to reinstall GRUB using these instructions: https://help.ubuntu.com/community/Grub2/Installing#Reinstalling_GRUB_2.


TL;DR: Use make filename instead. Consider setting and exporting CXXFLAGS for warnings.

If you're really only interested in running g++ -o filename filename.cpp (with no options to enable compiler warnings or otherwise customize the behavior of the compiler) you can read just the first section, immediately below. For coverage of alternate approaches that do use shell aliases and shell functions, see the very last section.
This answer focuses on C++ but much of it applies to C. The major difference is that flags make passes to compile a C source code file are taken from CFLAGS rather than CXXFLAGS.

You can just pass the basename to make.
As steeldriver says, a better solution than a shell function or shell alias is to take advantage of make's implicit rules. Running your command g++ -o filename filename.cpp has the same effect as

make filename

...unless filename exists and is no older than filename.cpp, in which case make refrains from compiling it again and instead reports make: 'filename' is up to date, which is what you likely want in that situation. When you change your source code file, it becomes newer than the last-compiled executable (if any), so a subsequent invocation of make filename recompiles it.
As steeldriver mentioned, you should only have one source code file with filename as its basename to use this method. If you have source code files for multiple languages, like filename.c, filename.cpp, and filename.m, then make will pick one according to its rules, and it won't necessarily be the one you intend.
Running make without a makefile also only works if your program only requires one source code file. But that seems to be the case here, and is also most often the case when one starts out learning to program in C or C++.
The command make actually runs to compile a C++ source code file is not actually g++, but is instead c++. However, c++ on Ubuntu (and most GNU/Linux systems) is typically a symbolic link that resolves to the g++ command, unless you've deliberately changed it or only installed some other C++ compiler.
You should enable warnings, and usually pick a dialect.
With very few exceptions, such as checking that your compiler works at all, you should enable compiler warnings. This tells your compiler to warn you about code that is likely to contain mistakes. By default, most C and C++ compilers, including the popular compilers GCC and Clang (the g++ and clang++ commands) warn about very few things. I'll describe how to run g++ with warnings enabled, then I'll show how to make make enable warnings when you run make filename.
At minimum, use -Wall, which for historical reasons and contrary to its name doesn't actually enable all warnings. You should also nearly always use -Wextra. You can enable additional warnings individually (run man g++ to see all of them, if you like), but this is a good start and often a reasonable choice even for a large software project.
I don't know how much C++ experience you currently have. Experienced programmers typically use and benefit greatly from warnings, but if you're new to the language, you still shouldn't wait to start using them. This is because they can save you a lot of headache in finding otherwise vexing bugs in your programs, and because they can help you avoid making common mistakes and developing bad habits.
The command g++ -o filename filename.cpp doesn't ask for any but the small number of default warnings. The corresponding command g++ -Wall -Wextra -o filename filename.cpp enables -Wall and -Wextra. You can put -Wall and -Wextra anywhere in the command except between -o and filename or before g++.
If you want to try out -Wall and -Wextra one time, you can run make like this:
make CXXFLAGS='-Wall -Wextra' filename

Note that this still won't recompile filename.cpp if the source code is no newer than the executable, even if you didn't pass CXXFLAGS='-Wall -Wextra' to make last time you ran it.
As you can see, that's fairly cumbersome; your whole goal is to compile your small programs with a minimum of typing. Fortunately, in addition to accepting assignments to its CXXFLAGS variable on the command-line, make also respects the CXXFLAGS environment variable if there is one. So you can run
export CXXFLAGS='-Wall -Wextra'

and then subsequent runs of make filename will pass the -Wall and -Wextra flags to the C++ compiler automatically. However, this is not permanent; in other shells (that are not started from this one) it does not apply.
I'll get to how you can avoid having to type that soon. But first...
You should pick a dialect, and consider -pedantic for more warnings.
You should also tell g++ what dialect of C++ you are using. For example, if you are using C++17 without GNU extensions, pass the -std=c++17 option. As of this writing, C++17 is the current standard dialect of C++. If you're learning C++ and you're not sure what dialect you want, you could consult whatever materials you're learning from or consult your instructor (if any). If none of that applies, I suggest using the current standard, assuming your compiler supports it. Telling the compiler -std=c++17 does not force you to use all the newest features of C++ in your programs. If you want C++17 with GNU extensions, you'd use -std=gnu++17; if you don't know or care about the difference, then -std=c++17 is reasonable.
If you don't tell g++ what dialect you want, it will use its default, which varies across different versions of GCC. Specifying the dialect you want helps the compiler issue errors and warnings when your code is incorrect (or suspicious) when considered to be written in that particular dialect. It also helps the compiler not issue errors and warnings that might not be appropriate for the dialect you are using, because without it, the compiler assumes you're using whatever its default is.
If you tell g++ what dialect you want, and it is one of the standard dialects (e.g., if you use -std=c++17, not -std=gnu++17), then you can enable more warnings than would otherwise be shown, about code that does not conform to that dialect, by passing g++ the -pedantic flag. Some of those warnings actually apply to all or most standard dialects. If you want such code to cause errors to be issued--causing the compiler to deliberately fail and refuse to generate an executable even if it otherwise could--then you can use -pedantic-errors.
You can pass those flags even if you don't specific a dialect or if the dialect you specify isn't one the ones that is standardized, but you probably wouldn't want to, because it would be hard to judge if they are reasonable, and you'd likely end up ignoring a lot of them. You can also turn all warnings into errors with -Werror, which is a somewhat popular practice, because it makes it impossible to ignore warnings. However, if you're just starting out, I suggest against doing this, even though warnings should not be ignored except in extremely unusual cases. It is sometimes handy to get code to compile with warnings, try it out, and then fix the problems that caused the warnings.
To include -std=c++17 and -pedantic in your CXXFLAGS:
export CXXFLAGS='-std=c++17 -pedantic -Wall -Wextra'

If you've already exported CXXFLAGS in your shell, you can omit export on subsequent assignments. But there is no harm in keeping it.
You can put your export command in a file, then source it with ..
You can set CXXFLAGS the way you would set most environment variables, like PATH, for example by putting the export command for it in ~/.profile. But I recommend against this, because you may build software with make that was written by other authors, for which your usually preferred CXXFLAGS aren't a good choice.
Instead, I suggest making a file that contains an export CXXFLAGS='...' command (with your actual flags in place of ...) such as the one shown above. Then, when you want to run that command, you can avoid having to type it by sourcing that file with the . builtin. If the file is called cxxflags and is in your home directory:
. ~/cxxflags

Like if you ran the export command manually, you only have to this once in your shell. All your subsequent make commands will use the new value of CXXFLAGS, until you exit out of the current shell. make command run in separate shell sessions, however, such as those in other terminals, will not be affected.
Note that this is not a situation where you should run chmod +x on the file and run it by just writing ~/cxxflags. This wouldn't do what you want, because it would assign and export the CXXFLAGS environment variable in the shell started to run the script, which would immediately exit afterwards, and the current shell's environment would be unaffected.
If you prefer, you could instead write an alias or shell function that sets and exports CXXFLAGS.

For the future...
It is somewhat unfortunate how complicated it is to efficiently compile C++ programs from the command line, know what dialect you are using, and get reasonably helpful warnings. (IDEs have corresponding, even overlapping problems... but that doesn't make the command-line situation easy for users who aren't yet comfortable with it.) Believe it or not, the flags I've suggested here are just the ones I recommend new C++ programmers use from day one.
If you already have some C++ experience (even a little), you may want to do more. Feel free to ignore the rest of this section!
-g emits debug symbols; then you can use a debugger like gdb to debug your program. If you previously used an IDE, it may already have compiled your programs in this way and integrated with a debugger. (You can integrate an IDE with a debugger in Ubuntu and there are several choices, but that is beyond the scope of this post.)
Flags that start -O call for optimizations; the most common are -Og, for optimizations that don't usually get in the way of debugging; -O1, for highly conservative optimizations; -O2, for most speed optimizations; -O3 to try to squeeze out even more speed, which sometimes helps and sometimes doesn't; and -Os, to optimize for space rather than speed. Debug builds of C and C++ programs usually use either no optimizations or -Og, while release builds usually use -O2, -O3, or -Os.
Debug builds often benefit from sanitizers that catch and explain problems that would otherwise cause a confusing crash or subtle wrong behavior. -fsanitize=address,undefined is often helpful. Although this is exactly the sort of thing I'd like to recommend to people who are new to C or C++ (or who are coming from platforms that sanitizers don't yet support), I've avoided suggesting it above because it sometimes introduces additional complexity. On some systems, additional packages must be installed to support them; the default behavior of Address Sanitizer is to print messages about memory leaks when a program quits even if the leaks were acceptable because the program deliberately bailed out during an error; when you do get into compiling programs with multiple source code files, if you compile them separately (as a makefile would do) you must pass -fsanitize=... at link-time as well as compile-time; they are incompatible with some libraries you might link to and use from your code; and they are incompatible, or require additional effort to be used, with some other tools, including some debuggers.
For way, way more tooling suggestions, see this chapter of cppbestpractices.
Aliases and Shell Functions
You asked about an alias. You can create a shell alias, if you really want to. But it may not do what you want. Aliases in bash don't accept arguments; they simply expand into their definitions. You can write arguments after them in a command, but they appear at the end where you wrote them. You cannot substitute anything into an alias definition, so you cannot cause an argument filename to appear inside it in place of some other text. This is why waltinator demonstrated a shell function instead. Shell functions are much more powerful and versatile than shell aliases.
With that said, you might like to have an alias like this:
alias mk='make CXXFLAGS="-std=c++17 -pedantic -Wall -Wextra"'

This is an alternative to exporting CXXFLAGS as described above. Once that alias definition has been run, you can run mk filename to build filename.cpp with those compiler flags. If you prefer this approach, I suggest putting the alias definition in .bash_aliases in your home directory (create the file if it doesn't). The default per-user .bashrc file sources .bash_aliases if it exists, so in new interactive bash shells, the alias will be defined.
Or perhaps you want to define CXXFLAGS but use a shell function as in waltinator's way to perform the compilation with those flags:
compile() { g++ $CXXFLAGS -o "$1" "$1.cpp"; }

If there is no CXXFLAGS variable, this still works, but passes no extra flags. If there is such a variable defined in the current shell, it uses it--even if the variable is not exported. Note that this is one of the uncommon situations where it is correct to omit the double quotes around parameter expansion, i.e., don't write "$CXXFLAGS". However, the expansions of $1 should still be quoted.
Or you can include the flags you want in the function definition itself:
compile() { g++ -std=c++17 -pedantic -Wall -Wextra -o "$1" "$1.cpp"; }

The simplest case is that of no extra flags, in which case you get just another way to write the function shown in waltinator's answer.
compile() { g++ -o "$1" "$1.cpp"; }


Create a playlist in Clementine.
Then add the following commands into Startup Applications separately.

clementine -y
clementine -p


Problem in package manager occoured while adding APT for a third party software

It means that your repository files have an invalid extension. you should have extensions like Macaulay2.list.save or Macaulay2.list in /etc/apt/sources.list.d/.

Rename these files in Terminal and then update repository:

sudo mv /etc/apt/sources.list.d/Macaulay2.list.save{.1,}
sudo rm /etc/apt/sources.list.d/Macaulay2.list.save.{2,3,4}
sudo apt update


How to reinitialize a terminal window instead of closing it and starting a new one?

If you mean reloading your .bashrc configuration then:

source ~/.bashrc

For less typing, you can replace source with a dot: . ~/.bashrc


How to change the Wine or PlayOnLinux locale settings - Ubuntu 12.04?

To change local in Ubuntu, go to System Settings --> language settings, and click on the Regional Formats tab.  Change it to the desired country, and close the window.  Logoff, and log back in or reboot your system.


Is there a way to toggle touchpad on/off with a command/keyboard shortcut?

Work Around:

with the help of this post https://askubuntu.com/a/1140700/739431

install the xdotool package if not yet installed, sudo apt install xdotool

run xmodmap -pke | grep TouchpadToggle

example

pratap@i7:~$ xmodmap -pke | grep TouchpadToggle
keycode  71 = XF86TouchpadToggle NoSymbol XF86TouchpadToggle NoSymbol NoSymbol NoSymbol NoSymbol NoSymbol NoSymbol NoSymbol XF86TouchpadToggle
keycode 199 = XF86TouchpadToggle NoSymbol XF86TouchpadToggle NoSymbol XF86TouchpadToggle
pratap@i7:~$

run in terminal xdotool key XF86TouchpadToggle to check if the touchpad toggling is working?

Create your own shortcut Shift+Ctrl+I with custom command xdotool sleep 1 key XF86TouchpadToggle sleep value 0.5 may also work.. try it with your comfort..


Will all my settings be kept if I update from to the next version of Ubuntu?

Yes! Your settings for the most part are stored in your home directory. Any changes required by the upgrade outside of this are fairly minimal and will be handled by the upgrade process (NTP, Network, etc).


Code Blocks show up as blank in gnome apps

OK well I temporarily solved my problem in 2 ways but it broke again the next day with slack.

For Brave/Chrome: Install the "Force Custom Fonts" extension and set the "Code/Fixed Width" font to font of your choice.

From slack support:
Code blocks not rendering text on Unbuntu unless you disable the font-family CSS property was the last update on findings.


How do I check if my Ubuntu is okay after reinstalling 'ubuntu-desktop' package

Is there anything else I should do? For example, should I reinstall anything else?

Don't think so. The reinstall of the desktop pulled in anything you needed.

  How can I check if anything else is broken? Is there some type of health check in Ubuntu?

You will run into it eventually ;)

Not sure if this is going to help but there is a "system testing" (open dash and search for those 2 words) tool in Ubuntu. It will run a dazzling amount of tests on about anything (from certificates, to wireless, audio, headphones and hundreds more). Some have you do things (like insert a headphones, flash drive etc) so it will take up some time.


Remove half-installed package installed from deb file converted from rpm by Alien in Kubuntu?

Solution: I reinstalled the system.

There were other things to fix and it isn't on my primary PC. So I didn't mind it.


Clementine does not play after update to Xenial

Removing this directory worked for me to get rid of the error:

  rm $HOME/.config/Clementine

UPDATE: After further inspection, the problem comes from the Clementine config file "$HOME/.config/Clementine/Clementine.conf"

You can either erase the file, or if you want to keep your seetings, simply remove the GstEngine section within the file. Here's what mine was looking like:

  [GstEngine]
  sink=gsettingsaudiosink
  device=
  rgenabled=false
  rgmode=0
  rgpreamp=@Variant(\0\0\0\x87\0\0\0\0)
  rgcompression=true
  bufferduration=1000
  monoplayback=false

I've opened an issue on github for the Clementine developers:
https://github.com/clementine-player/Clementine/issues/5378


Permission denied when using FTP & filezilla

I am not familiar with open game panel, however the error (553 Permission Denied) is related to FTP.

It means that you don't have write permission on the directory/folder you are attempting to write to.

Make sure that the username you are logged in through in FTP has write/edit permissions on the directory/folder you are uploading to.


no pre-installed ubuntu one application or software

Ubuntu One used to provide a cloud storage service. You probably found an artifact of that service. It was discontinued in 2014.

For details see http://blog.canonical.com/2014/04/02/shutting-down-ubuntu-one-file-services/


MAAS node OS auto install - failed to retrieve preseed configuration file

If you are not using juju to deploy the nodes, then you first need to "Allocate" the nodes to a MAAS user in order for them to deploy.


How do I show memory usage information in top bar or as notification?

You may try a GNOME shell extension called "system-monitor". It does

  Display system informations in gnome shell status bar, such as memory usage, cpu usage, network rates…

"system-monitor" depends on a few packages. To install them, run

sudo apt install gir1.2-gtop-2.0 gir1.2-networkmanager-1.0 gir1.2-clutter-1.0

Then log out and log in again.


You can just copy your *.desktop file to ~/.local/share/applications.

Or use alacarte application for this.

sudo apt-get install alacarte


Can't do-release-upgrade -d from 16.04 to 18.04

Remove any files in ~/.cache/update-manager-core/ and try the upgrade process again.


gnome-keyring-daemon spams system journal

sigh found the issue after all: it's a bug in Nextcloud 2.6.1, see https://github.com/nextcloud/desktop/issues/1592


How do I apply the fixes suggested from the App Review Board to my app?

First of all, read carefully what the reviewer is asking you to do on the e-mail. It will generally be either a request for information or a prompt to address some issues with your app.

In all cases:

Reply to the information request using the Feedback tab on your submission in My Apps
Optionally, if you don't receive a reply in a few days, send an e-mail reminder to the ARB mailing list.

If the ARB has done some changes to your app, apply those changes:

Merge changes - The e-mail you got most probably contains a link to a branch with some suggested changes.

Run bzr merge lp:<branch-with-the-fixes> on your source tree to merge in the changes
Then commit them with the bzr commit command (or optionally quickly save if you use Quickly)

Build and upload a new package - Build a new package after you've applied the changes:

Run the debuild -S command in your source tree to build a local source package
Run dput ppa:yourusername/ppa ../projectname_*_source.changes to upload the local source package to your remote PPA in Launchpad

Give feedback Don't forget to reply in the Feedback tab as explained above


How to make super-user permissions last longer than using sudo?

Behavior of sudo is configured in /etc/sudoers file. There is timestamp_timeout option responsible for reprompting the user for password after specific amount of time.

From man sudoers

timestamp_timeout
                       Number of minutes that can elapse before sudo will ask
                       for a passwd again.  The timeout may include a frac‐
                       tional component if minute granularity is insufficient,
                       for example 2.5.  The default is 15.  Set this to 0 to
                       always prompt for a password.  If set to a value less
                       than 0 the user's time stamp will never expire.

To alter that setting do the following:

In terminal run sudo visudo. visudo is used specifically to edit /etc/sudoers file and by default uses nano text editor.
Find the lines starting with Defaults. Add the following line

Defaults        timestamp_timeout=x

where x is the amount of minutes you want between reprompts
Save the file with Ctrl + O


"ImportError: No module named XKit.xutils" while removing nvidia-current

I had the same problem. Looks like /usr/lib/python2.7/dist-packages/Quirks/quirkapplier.py reference xkit.xutils with this syntax : XKit.xutils (upper case at the begining)

I give a try to change it for a lower case syntax as I found some other references in other libraries with this syntax.


Grabbing the missing keys

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5

Rebuild software cache

cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update

Hope this answer your problem :)


How to fix/reset bluetooth on Lenovo Y50-70?

That's a problematic chipset. In Ubuntu 14.04 the BT device was not supported on Linux, but it was possible to install a custom rtl8723au-bt module. I even added to my PPA as a DKMS module. It used to work quite well.

Now the code has been merged into the Linux tree, and the device is supposed to be supported. But many people complain that it actually does not work well enough.

The old DKMS module does not work on new kernels.

I do not have this hardware, that's why I do not have a chance to investigate this problem and suggest a solution.

I can suggest to search the net by "linux rtl8723be bluetooth". Maybe someone has fixed it some way or another. Also I would recommend to create a bug report at Launchpad if it does not exist.

It may also be useful to contact the kernel maintainers, but this require some background.

This is not a solution of your problem, but it is an answer containing all my knowledge on this topic.

Update Now this problem seems to be fixed in current Ubuntu kernels. Realtek bluetooth should work out of the box.


Problem loading LaTeX KOMA-script and fontspec after freshly installing vanilla texlive

I just completely removed everything related to TeXlive and reinstalled vanilla TeXlive from scratch according to this StackExchange user's guide. Now, I am not experiencing the problem any more, even though I had tried to install according to this guide before.

Thanks a lot for your help anyway.


How to compile FFmpeg with x265 support?

at this time, (Feb 19 '14) the version of ffmpeg you compiled only supports decoding, not encoding.

From the output of your command :

  D.V.L. hevc                 H.265 / HEVC (High Efficiency Video Coding)

Codecs:
D..... = Decoding supported
.E.... = Encoding supported
..V... = Video codec
..A... = Audio codec
..S... = Subtitle codec
...I.. = Intra frame-only codec
....L. = Lossy compression
.....S = Lossless compression

You can try this pre-compiled binary - https://code.google.com/p/x265/downloads/detail?name=x265-bin-ffmpeg-201206-preview2.zip&can=2&q=&sort=-uploaded


How do I access File Manager and change to List View

Click on the Home Folder

Move you muse to the top bar of the screen, and click on view.  This top-panel is where the global menu exists - most applications have their menu's in this location.

Click on List View to get what you want


Show flags instead of labels in the keyboard layout language indicator in GNOME shell

Here is a hacky workaround.

You need to change the abbreviations of layouts (e.g. "en") shown in the keyboard layout indicator of GNOME top bar following this very detailed answer by @MathCubes.
As mentioned in the answer the <shortDescription> tags in the /usr/share/X11/xkb/rules/evdev.xml file dictate the abbreviations. Change the <shortDescription> labels associated to your chosen layouts (e.g. en) to suitable flag emojis (you can get them from Get Emoji or Emojipedia).

Since GNOME shell v3.28 supports global colour emojis, you should see coloured flags instead of labels after you reboot or re-login or restart the GNOME Shell.

  Example:

  (after replacing en by  for the "English (UK)" layout)


dpkg and apt-get are 2 different ways of installing software. Basically apt-get, aptitude, and synaptic are built on top of debian's dpkg package management program. They all perform the same basic function - package management, but have some extra features. 1 of the extra features of apt-get is that it will install dependencies and dpkg does not.

Regarding the -p/purge  ...

The -P in dpkg means --purge and will remove everything, including setttings and configuration files. From the manual:

-r, --remove, -P, --purge package...|-a|--pending

          Remove  an  installed  package. -r or --remove remove everything
          except conffiles. This may avoid having to reconfigure the pack‐
          age  if  it  is  reinstalled later. (Conffiles are configuration
          files that are listed in the DEBIAN/conffiles control file).  -P
          or  --purge  removes  everything,  including conffiles. If -a or
          --pending is given instead of a package name, then all  packages
          unpacked,   but   marked   to  be  removed  or  purged  in  file
          /var/lib/dpkg/status, are removed or purged, respectively. Note:
          some  configuration  files might be unknown to dpkg because they
          are created and handled  separately  through  the  configuration
          scripts. In that case, dpkg won't remove them by itself, but the
          package's postrm script (which is called by dpkg), has  to  take
          care of their removal during purge. Of course, this only applies
          to files in system directories, not configuration files  written
          to individual users' home directories.

          Removing of a package consists of the following steps:

          1. Run prerm script

          2. Remove the installed files

          3. Run postrm script

The same goes for purge in apt-get.

 remove
       remove is identical to install except that packages are removed
       instead of installed. Note the removing a package leaves its
       configuration files in system. If a plus sign is appended to the
       package name (with no intervening space), the identified package
       will be installed instead of removed.

 purge
       purge is identical to remove except that packages are removed and
       purged (any configuration files are deleted too).

Basically it is the same option. Mind you: removal of dependencies does not happen with dpkg. apt-get does remove dependencies

Documentation from comment by Lekensteyn:

http://www.debian.org/doc/manuals/debian-faq/ch-pkgtools.en.html


Press

Ctrl + Alt + T

Terminal appears.

Type the following:

sudo su
killall plank

Open file manager by clicking on it

Go to View in Menu Bar

Go to "Show Hidden Files"

Tick the box left to it

Click on .config

Click on plank

Click on dock1

Click on launchers

Go to any text file

Right click on it and select copy

Right click on any empty space in the same window and click on paste

Double click on the newly created file

Delete the portion between applications/ and .desktop

Type slingscold in it's place.

Save and close the file

Close the file manager

Go to Ubuntu launch icon

Type plank

Click on the plank icon that now appears

Plank now has slingscold icon on it

Click on the icon and enjoy using slingscold


what cd burn lib for app development libburn

don't worry about kernel 3.X not being mentioned.
The last big change of the SCSI passthrough mechanism was in 2.5.
So the documentation talks of old 2.4 versus new 2.6.

More problematic nowadays may be demons which believe to
own the CD drive. Escpecially when burning CDs you do not
want to have an unattended process to grope your drive.
The workarounds for this regrettably change every other year
by the introduction of new gropers or heavy overhaul of
the old ones.

As for audio burning, see test/libburner.c and its option --audio.

One thing that is not working is our mailing list.
Send support requests to bug-xorriso@gnu.org or in private to
scdbackup@gmx.net.


you've probably either worked this out or given up by now, but as I had exactly the same question I thought I should post my solution. (I'm also a newcomer!)

The issue was that in my pre-packaged ubuntu install, it didn't actually install the UK English dictionary, so although the language was set to UK English, there was no dictionary to check against. In the Tools -- Language Menu there's an option "More dictionaries online". This takes you to Libre Office website. You can then type in "English" in the search box that's offered, and scroll down until you see a pack that has various different English spelling dictionaries. Click on it and you get a page, and in this a link to download a .oxt file.

I did this, and it offered me the option to open this with Libre Office, which I did, and this installed the dictionaries. UK English then started up OK -- and also South African, Canadian and a host of other version of English become enabled, too. You can see that they are there, because they have a little "abc"-tick icon next to the language.

Hope that helps others with the same problem!

Luke


Is it possible to install Ubuntu through network?

You can install one Ubuntu system (typically an Ubuntu Server system, but it does not have to be), and then use it as a server to PXE boot and install the others. The BIOSes on the clients (where you want to install Ubuntu) must support PXE (i.e., network boot) for this to work. But most BIOSes do, these days.

You should be able to do it with a non-Ubuntu system as the host, too, if you already have that set up and you know how to configure the necessary servers on your non-Ubuntu system.

The PXEInstallServer Ubuntu help wiki article explains how to set up an Ubuntu system as your PXE server, and how to install Ubuntu on other systems from it. It would be hard to summarize the main points--the details are very important. So here's the whole thing (with minor formatting and punctuation changes):

  Introduction

  This will guide you through running an Ubuntu server as PXE install
  server. You'll need to run a DHCP server on your network, not
  necessarily this server but you do need one.

  Installing needed packages

  You'll need to install the following packages: inetutils-inetd
  (previously netkit-inetd), tftpd-hpa (see
  InstallingSoftware).

  For Ubuntu 10.04, there is a bug with inetutils-inetd. It only listens on IPv6, and not on IPv4. As a quick workaround, you can use
  openbsd-inetd instead.

  If this is also going to be your DHCP server, install dhcp server
  contained in the follwing package: dhcp3-server (see
  InstallingSoftware).

  Configure tftpd-hpa

  You'll need to tell tftpd-hpa to start its daemon (which it doesn't by
  default). To do this, edit the /etc/default/tftpd-hpa file, and make
  sure that it looks something like this:

#Defaults for tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -s /var/lib/tftpboot"

  Then, run the startup script to actually start the daemon:

/etc/init.d/tftpd-hpa restart

  Configure dhcpd

  If your pxe server is also your dhcp server, you'll need something
  like this in /etc/dhcp3/dhcpd.conf:

subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.100 192.168.0.200;
        filename "pxelinux.0";
}

  If you have an existing dhcp server, you should point it to your pxe
  server by doing something like the following:

subnet 192.168.0.0 netmask 255.255.255.0 {
    <other config here>
    filename "pxelinux.0";
    next-server <pxe host>;
}

  Be sure to restart your dhcp server so that the changes take effect:

sudo /etc/init.d/dhcp3-server restart

  Configure tftpd-hpa

  tftpd-hpa is called from inetd. The options passed to tftpd-hpa
  when it starts are thus found in /etc/inetd.conf

  The defaults are fine for us, your /etc/inetd.conf should have an
  entry like this:

tftp    dgram   udp    wait    root    /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot

  (Although you may need to edit this file and replace udp with
  udp4, as tftpd-hpa seems to expect an IPv6 address now.)

  Now we'll copy the needed files from the Ubuntu CD:

sudo cp -r /media/cdrom/install/netboot/* /var/lib/tftpboot/

  If your dhcp server issues correct network info and your pxe clients
  will have network access, then at this point you will be able to do an
  Ubuntu install using internet repositories.

  I want to go a little further however and install everything from the
  install server as well as customise some of the packages to install.

  Install apache

  Currently nfs installs aren't well supported (please correct me if I'm
  wrong) so we'll install over http. For that we need a webserver on our
  install server too: install the following package: apache (see
  InstallingSoftware).

  Copying Ubuntu files

  Create an ubuntu directory under your freshly installed apache's
  document root and copy all of the contents of the Ubuntu Alternate CD
  to that directory:

mkdir /var/www/ubuntu
cp -r /media/cdrom/* /var/www/ubuntu/

  Customising the install

  There is a package called system-config-kickstart which is a GUI
  frontend to creating kickstart files. The kickstart file tells the
  installer where to get its packages from, what to install and a number
  of other useful settings. See KickstartCompatibility for more
  info.

  This package does not have to be installed on your install server, it
  can be on a convenient Ubuntu desktop somewhere.

  Create a custom ks.cfg with system-config-kickstart, be sure to
  specify HTTP under "Installation Method". Provide the IP of you
  install server and make the HTTP Directory /ubuntu/. Save the file
  and copy it to your install server under /var/www/html/.

  A very minimalist `ks.cfg file which only uses the installation files
  on the install server and asks for all other questions might look like
  this:

install
url --url http://192.168.0.1/ubuntu/

  Use your ks.cfg

  In order for your network Ubuntu install to use your kickstart file,
  you have to tell it where to find it. Edit
  /var/lib/tftpboot/pxelinux.cfg/default and add
  ks=http://<installserver>/ks.cfg to the append line. It should then
  look something like this (note that the append line is one line):

label linux
        kernel ubuntu-installer/i386/linux
        append ks=http://192.168.0.1/ks.cfg vga=normal initrd=ubuntu-installer/i386/initrd.gz ramdisk_size=16432

  root=/dev/rd/0 rw  --

  In Jaunty [and presumably later releases, including any release
  you're likely using]1 the default file has been broken
  up into includes. The append line can be found in
  /ubuntu-installer/i386/boot-screens/text.cfg:

label install
        menu label ^Install (from my http server)
        menu default
        kernel ubuntu-installer/i386/linux
        append ks=http://192.168.0.1/ks.cfg vga=normal initrd=ubuntu-installer/i386/initrd.gz -- quiet

  Boot and install

  You should now be able to boot another pc on the lan over the network
  and have it install Ubuntu automagically. :) You can vary the tftp and
  http install points to have multiple versions of Ubuntu available to
  install on your network.

  Using the CD (or .iso) directly

  You can also achieve the above without actually copying any files
  anywhere. You can mount the CD (or the .iso) and then do additional
  mounts with the --bind option. The advantage is that you can upgrade
  the CD (or the .iso) without needing to update the install server
  files.

  For example, after mounting the CD (or the .iso) to /media/cdrom/,
  you can mount the ubuntu files to the web directory:

mount --bind /media/cdrom/ /var/www/ubuntu/

  Similarly, you can do the same with the tftproot:

mount --bind /media/cdrom/install/netboot/ /var/lib/tftpboot/

  If you were to create a pxelinux.cfg directory with an appropriate
  default file, you can mount that over the top of the mounted CD, so
  that the tftp server gives out your pxelinux.cfg/default file. For
  example, a pxelinux.cfg directory in ~/pxelinux.cfg could be
  mounted like this:

mount --bind ~/pxelinux.cfg /var/lib/tftpboot/pxelinux.cfg

  (Note that in the above example, the actual mount point of the
  directory would end up as
  /var/lib/tftpboot/ubuntu-installer/i386/pxelinux.cfg because the
  pxelinux.cfg is a symlink on the CD (or .iso)).

— PXEInstallServer, with slight formatting, punctuation, and capitalization changes, mainly to accomodate the Ask Ubuntu Format.

That article is from the Ubuntu documentation wiki. It was written by "Contributors to the Ubuntu documentation wiki" and is licensed under CC-BY-SA 3.0, which allows inclusion here, with proper attribution.

1[Bracketed italicized text] is not from the original; it is my commentary.

Note the difference between this method and the method Mitch suggested. That method involves booting from a CD/DVD or USB flash drive, which then installs the system over a network. By default this network is the Internet; for that method to be reasonable for installing to hundreds of machines on a network, you would probably want to create and host an Ubuntu repository on your network, and point your installations to that.

The effort and infrastructure necessary to do that is comparable to what would be necessary to PXE boot the machines as described above. So while that way might meet your needs, I'd encourage you to consider PXE booting if you really need to install without "physical media."


Trying to convert a simple C program into an AWK program

With awk it's much better to provide filename as command-line argument, if it's something simple as searching for matches and which lines contain the match. In pure awk this would be something like this

awk '/searchTerm/ {print "Match on " NR }' inputFile.txt

But sure enough, your program can be slightly edited and turned into AWK script to do the same job, however with more lines of code. The only small quirk is that one has to press Ctrl+D to stop the while loop once file is done reading.

#!/usr/bin/awk -f

BEGIN{
    printf("What do we search for:")
    getline searchTerm
    printf("Enter filename : ")
    getline file < "-"
    print "File Contents:"

    while((getline < file)) {
        x++
        printf("%d) %s\n",x,$0)
        if ($0 ~ searchTerm)  {i++;array[i] = x}
    }
    #  end while statement
}

END{
    print "There were "i" matches on lines:"
    for (j=1;j<=i;j++) printf array[j]" ";
}

Bellow you will find the demo. Compare the "translated" code above, with pure AWK:

xieerqi:$ ./testAwk.awk

What do we search for:wlan0
Enter filename : inputFile.txt
File Contents:
1) [33330.084088] wlan0: associate with 00:24:37:10:9c:10 (try 1/3)
2) [33330.086392] wlan0: RX AssocResp from 00:24:37:10:9c:10 (capab=0x411 status=0 aid=1)
3) [33330.086432] wlan0: associated
4) [40272.298739] audit: type=1400 audit(1447859037.270:65): apparmor="STATUS" operation="profile_replace" name="/usr/lib/cups/backend/cups-pdf" pid=4082 comm="apparmor_parser"
5) [40272.298753] audit: type=1400 audit(1447859037.270:66): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/cupsd" pid=4082 comm="apparmor_parser"
6) [40272.299725] audit: type=1400 audit(1447859037.270:67): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/cupsd" pid=4082 comm="apparmor_parser"
7) [59169.780814] atkbd serio0: Unknown key pressed (translated set 2, code 0xa5 on isa0060/serio0).
8) [59169.780823] atkbd serio0: Use 'setkeycodes e025 <keycode>' to make it known.
9) [59169.783874] atkbd serio0: Unknown key released (translated set 2, code 0xa5 on isa0060/serio0).
10) [59169.783882] atkbd serio0: Use 'setkeycodes e025 <keycode>' to make it known.
There were 3 matches on lines:
1 2 3

xieerqi:$ awk '/wlan0/{print "Match on " NR }' inputFile.txt
Match on 1
Match on 2
Match on 3


replace default Dutch Thunderbird by en-US version

Of course, the default version of an application will be determined by the language of your desktop. If you do not wish to change your default language, you can change the language ("locale") of one specific program:

env LANG=en_US thunderbird

Of course, the locale concerned must be installed on your system.

To automatically launch Thunderbird in the specific language through your regular user menus, adjust the .desktop launcher file for Thunderbird.

Copy the system wide thunderbird.desktop file to .local/share/applications under your home folder. With a terminal command, it goes like:

cp /usr/share/applications/thunderbird.desktop ~/.local/share/applications/

Of course, you can use your file manager to do this if you prefer. .local is a hidden folder, which you will see only if you turn on Show hidden files in your file manager.
Edit the .desktop file you copied with your text editor and change the existing line

Exec=thunderbird %u

to

Exec=env LANG=nl_NL thunderbird %u

Save and close the file.

Your menu system will very quickly pick up the change. Next time you select Thunderbird in your application menu, it should launch in the new language. Other users of the computer will still have Thunderbird in their default language.


Which application can I use for a network traffic monitor

I would recommend using ntop for getting a basic,long term overview of network conversations.
You can install this by running the following command:

sudo apt-get install ntop

Once installed, go to

http://localhost:3000/

to view the traffic conversations to determine what is talking with your machine.

If you really want to dive down into the details of your network traffic, Install wireshark.


Slow Internet / Can't change brightness on 2010 Macbook AIr running 12.10 Ubuntu

Sorry for not providing an answer, but I have a question for you. What tutorial did you follow and what other issues did you experience? I want to do the same thing (latest Ubuntu on a late 2010 Macbook Air 3.2).

There seem to be so many old and half finished tutorials out there that I am unsure how to proceed. Is there a definitive write-up that can be trusted?

Good luck with your issues, I will be checking back.

BTW did you check this:

Look for EnableBrightnessControl


When installing software with Wine it does not put an Icon on the applications menu. Xubuntu 10.04

This question have an easy way to solve.
Do this things

Create your own .desktop file
Add that .desktop file to there where you want

Create your own `.desktop` file

Just create a new file and set its name somthing.desktop. It is important that extension is .desktop. In that write this:

[Desktop Entry]
Name=(Apps name)
Exec=(command to execute(for example wine ~/.wine/drive_c/Program\ Files/(And Path)))
Icon=(select an icon and write its path here)
Type=Application

Add that `.desktop` file to there where you want

You can try just draging method or use Main menu to add New Item


Can't establish wireless connection in Ubuntu 12.04.3

In order to diagnose the trouble, let's load the driver and see if an error is provoked:

sudo modprobe iwlwifi

If there is any error or warning, please post it. Next, let's check the message logs for any clues:

dmesg | grep iwl

Once we know the result, we can advise you further.


How do I get both Ubuntu Server after I installed Ubuntu Desktop?

You already have both of them.

Ubuntu Server is not something completely different from Ubuntu Desktop. But usually server setup does not have GUI, and that's all. Any package you install comes from one centralized repository.

The installer looks different (no GUI, as I've already mentioned), but right now, if you already have Ubuntu installed, I don't see any reason to install a separate Ubuntu Server instance.


I just found the solution in this external page.

It seems that you have to modify the Device Accel Constant Deceleration. The original value is 1, I tried a few settings and it seems that it works perfectly with 2.8 for me.

I used the following command, where 10 is the device id, so you should change the 10
value with the corresponding for you:

xinput --set-prop 10 "Device Accel Constant Deceleration" 2.8

How to know your id device? With this command you will see the list of your device and the id:

xinput --list --short


Is it possible to clear the screen after grub boot selection?

I have solved this issue by changing the background color of GRUB to black.


Dual Win8 + Ubuntu...now I can't put Windows to sleep

You need to actually remove the boot flag from the Ubuntu partition and put it on Windows instead.

To do this, boot to any Live session that has GParted (Ubuntu, EasyBCD, etc.) Open GParted and right-click the Ubuntu partition, select "Flags", and uncheck the "boot" flag. Upon return to the main GParted UI, right click the Windows 8 partition and select "Flags", then check the "boot" flag.

Apply with the button with the green check mark, reboot, and you're done (hopefully).


Install Jupiter:

sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter

And then change it to power saving or power on demand mode. Works great for me and many others who have overheating CPU/GPU issues (I have a DV7).

If you're not willing to install things without knowing about them I'd suggest reading up about it on OmgUbuntu seeing as there have been many reviews of not only increased battery life for laptops but also reduced heat issues as is your case (you can monitor it yourself if not convinced by checking the temperatures you get in Power Saving mode, or Power on Demand mode)

Reading the description on the Jupiter website is a great idea as well as it gives you clear information on the way the applet works and how it could be of use to you.


'Permission Denied' appears when attempted to install ise xilinx

I got it fine with the following command:

chmod -R 755 $directory

Here $directory is the directory that contains the ISE software, so in your case

 chmod -R 755 home/luaiks/Downloads/Xilinx_ISE_DS_Lin_14.6_P.68d_3


How can I consolidate two drives into one bigger drive?

I think dd is the tool you are looking for.. https://linux.die.net/man/1/dd

Just create two new partitions on the new drive, and use dd to copy them over.

dd if=/path/to/firstDirve of=/path/to/m.2DrivePartition1 bs=1M
dd if=/path/to/SndDrive   of=/path/to/m.2DrivePartition2 bs=1M

ie

dd if=/dev/sda of=/dev/nvme0n1p1 bs=1M
dd if=/dev/sdb of=/dev/nvme0n1p2 bs=1M

bs=1M ensures that you copy your data in large chunks

For Completeness (from the comments)
You are also able to use gparted to copy and partitions around, this should be fairly straightforward here is a pretty looking page :) that tells you how https://www.ghacks.net/2010/06/03/copy-partitions-with-gparted/


Isolate Malware in VirtualBox and emulate fake responses

I think it would be easier to decompile the .class files that are zipped in the .jar, and inspect the source code. Or inspect the bytecode directly, with javap. This is not applicable if you need to inspect native libraries in the jar.

To answer your question: Set the VM's network mode to Internal Network, and have it share the internal network with another VM, that either has Squid and plays the role of a proxy, or has Apache/nc and pretends to be the remote machine.

If you want Internet access, have 2 network controllers on the proxy: one on the Internal Network, and the other one as Bridged or NAT. But you'll have that problem again, the networking mode will not distinguish your LAN from the rest of Internet.

To monitor connections, you can use netstat, possibly in combination with watch.

To sniff packets, you can use Wireshark on the proxy.

To fake connections at a low level, look into netcat (nc).
To fake HTTP connections, either set a static IP on the proxy, or change the infected VM's /etc/hosts to redirect connections to the proxy IP.

Edit: To emulate connections and services, there is a tool called INetSim, available from the Ubuntu repositories starting with Bionic (https://packages.ubuntu.com/search?keywords=inetsim).


12.04.2 i386 gets downloaded instead of 13.04 amd64

Just to make it easier on you, to download Ubuntu 13.04 64bit just click Here, and that will download the right file.


Ubuntu touch on Windows 8 (x86-64) tablet

Try to download the newest image from Ubuntu Next. (This should be Unity8)
Then download and add bootia32.efi to .../EFI/boot/ on your install-USB-Stick to boot on that crappy 32-bit UEFI.

This worked on my Pipo W1 Tablet, although touchscreen was not working and the wifi/blutooth driver also. Tried it on my desktop, worked but most apps crashed seconds after starting. :(

If it wont work with touch-ui (mir),

try to:

sudo apt-get update
sudo apt-get install unity8-lxc

reboot and then

sudo unity8-lxc-setup

You can now choose the display manager at logging in. It runs in LXC-Mode, so the rest of the system should not be destroyed if something goes wrong (i hope XD).

EDIT:
Also Touch is working on my Pipo W1, but i think it needs to be calibrated, i can not swipe in from the outside etc.


You rebooted right? If so, use this tutorial: http://www.webupd8.org/2011/05/get-emerald-to-work-in-ubuntu-1104.html


How to stop disconnecting when using ALFA wireless USB device?

Although it's a usb 2.0 device it seems to require more than 500mA, so you need a usb Y cable (similar to one for an external hard drive) or a powered usb hub. I had the same issue until i realized it was a question of power requirements. The new cable completely solved the problem for me.


libGL error when starting Steam on Ubuntu 15.10 32-bit

Well, now Steam opens. In the morning I switched to all proprietary drivers it still didn't open but now in the terminal was trying to install a library to steam or something which took forever so I killed the process. But in the evening I tried to open again and it works fine.


GNOME button to connect to bluetooth device autodisabling when you click to enable it

I found the problem, for some reason i uninstalled the pulseaudio-module-bluetooth package, so to solve this problem i just:

sudo apt-get install pulseaudio-module-bluetooth


Ubuntu freezes at splash screen (plymouth) after gpu install

It's too simple to fix.

Open the terminal (Ctrl+Alt+T)

sudo gedit /etc/default/grub

Change...

GRUB_CMDLINE_LINUX_DEFAULT="" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and

GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX=splash vga=791

... And save.

sudo update-grub

sudo dpkg-reconfigure linux-image-$(uname -r)

sudo update-initramfs -u

And restart the PC.

Good luck!


New "Ubuntu Software" not working (16.04)

Try installing the old software-center from  the commandline:

sudo apt install software-center

Or try installing synaptic

sudo apt install synaptic


The "dropbox icon" (and dropbox startup) is provided by a file called dropbox.desktop. You should have a copy of this file in your $HOME/.config/autostart directory, so Dropbox will be started when you login.

On MY Ubuntu 16.04.5 LTS system,

$ locate dropbox.desktop
/usr/share/app-install/desktop/nautilus-dropbox:dropbox.desktop
/usr/share/applications/dropbox.desktop
/home/$USER/.config/autostart/dropbox.desktop


How to add a mimetype icon in the home directory?

I have spent some rather lengthy time in trying to get this right, and I finally have.

Creating the mimetype

First, you need to create a mimetype file and save it to your local ~/.local/share/mime/packages/ directory. The file can have a structure like this one:

<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="text/todo">
      <comment>To-do list</comment>
      <glob case-sensitive="true" pattern="TODO" />
      <glob case-sensitive="true" pattern="TODO *"/>
    </mime-type>
</mime-info>

Be sure that fields like type in the mime-type element tag match your desired mimetype, and the glob element tags contain a pattern attribute whose value matches the pattern of your disired mimetype. As you can see, your mimetype can cover multiple filename patterns through multiple glob elements.

In the case of my TODO mimetype, I needed the pattern to be case-sensitive, so I threw in a case-sensitive="true" attribute-value pair; if you don't need case-sensitiveness, this attribute-value pair is not necessary.

Once you have finished your mimetype file, save it with a convenient name, like todo.xml. (Note: the XML extension might be important.)

Now run the command update-mime-database ~/.local/share/mime/ and you should be done with it. This command will place your mimetype in the correct category directory under ~/.local/share/mime.

Testing

You can test if your mimetype was parsed correctly by reading the ~/.local/share/mime/glob files and by testing specific files with commands like

mimetype FILENAME
xdg-mime query filetype FILENAME

These will only work after you've updated the mime database.

Adding the icon

In many linux distributions, third-party/addon icons are filed under the "hicolor" icon-theme, which is a fallback icon theme which other icon themes rely upon.

Add your icon to the correct directory under ~/.local/share/icons/hicolor/ (according to the /usr/share/icons/hicolor/index.theme descriptor file that lists valid subdirectories), run update-icon-caches ~/.local/share/icons/hicolor and you should be all set!

Your desktop manager may require a restart to associate the new mimetypes with the new icons.

Troubleshooting

If your files don't get the mimetype/icon you set for them, be sure to check very well the patterns in the mimetype XML file. Sometimes testing an obvious pattern may help you verify this.


Select the recovery mode in the grub screen (if it doesn't show up, keep pressed the shift key during boot). Then if you can login as root, try to install again ubuntu-desktop (this may install missing packages). If only "ubuntu-desktop" package was removed, then it should be other problem, as it is a meta-package which is not essential (can be removed safety).


Make the pop up windows of Chrome or Firefox to open in the same monitor

You can use the CompizConfig Settings Manager to control how windows are placed with multiple monitors.  First you'll need to install it:

sudo apt-get install compizconfig-settings-manager

CCSM will now show up in the Dash or can be run from the command line with

ccsm

In the "Window Management" category you should see a "Place Windows" button.  Click on this and go to the "General" tab.  You should see an option there called "Multi Output Mode" with a dropdown box.  Try changing this to either "Use output device with pointer", which will open windows on the monitor where your mouse pointer is currently, or "Use output device of focussed window", which will open new windows on the monitor where the currently focussed window is located.


I cannot play audio in Firefox, KODI and other video streams, video is fine, just no audio

I was able to get audio back by starting a program called Cadence and then within Cadence starting JACK and then starting the ALSA->Loop->Jack bridge.

I have no idea why this is now needed, but then I have no idea what very recent update disabled audio from automatically playing. With JACK and the ALSA to JACK brige running, I now have audio again from KODI,  Youtube in Firefox and Win7 in VirtualBox. I guess I will never know what happened, but at least I have this work around.


java -version still shows old $JAVA_HOME

Turns out I needed to set add the lines export JAVA_HOME="/usr/lib/jre1.8.0_181" and export PATH=$JAVA_HOME/bin:$PATH to my ~./profile file. Then turn off my machine and get back on.


Corrupted VirtualBox install preventing usage of dpkg

Problem resolved by turning off Secure Boot in BIOS settings, restarting and running sudo dpkg --configure -a.


How to stream videos over local network to TV from PC

While there isn't any support for casting the desktop to Chromecast (yet), you could instead try playing the video files on the Raspberry Pi itself. This could be achieved by using sshfs, which displays the contents of a folder on your computer on the Raspberry Pi by using SSH.

Make sure that you have openssh-client and sshfs installed on the Raspberry Pi, and openssh-server installed on your computer. The following steps will be on the Raspberry Pi only.
Run sudo usermod -aG fuse pi, where pi is the username on your Raspberry Pi, and log in and out of your account for the changes to take effect.
Create a folder that will display the files in your computer. (For example, mkdir computerVideos).
Run sshfs captainjamie@192.168.1.101:/home/captainjamie/Videos computerVideos, where captainjamie is the username on your computer, 192.168.1.101 is the local IP address of your computer, /home/captainjamie/Videos is the folder on your computer containing the videos, and computerVideos is the folder you created in the previous step.
The files in your computer will display in the computerVideos folder. Run any videos you want.

Note that this could be extended to any other files as well.

As noted by @Jos above in the comments, you can use XBMC to get a nice media player interface with support for plugins.


Yes, it can be installed.
Installation instruction is available at the home page.

http://golang.org/doc/install


Can I manage to install on a Dell 15R with all my laptop's features?

The hardware should work nicely with Ubuntu. You're mentioning Windows applications, and those will not normally run in Ubuntu at all. However, there is something called Wine, which can be used to use Windows applications on Ubuntu. Not everything will work, and not everything will run nicely. You can have a look at http://appdb.winehq.org and search for the applications you need.


How can i transfer my steam games from Windows 10 to linux running under play on linux?

Unfortunately you cannot - you will need to reinstall the games with the Linux version of the package. Both operating systems use different architecture, which is why not all games available in Windows are on Linux.


Bash script using `sudo` runs correctly from cli but not when clicked to run

In Nautilus you have two options to run a script when you double click on it:

1. Run in Terminal

Using this option, your script will run correctly (as you said).

2. Run

Using this option you have to use pkexec (or gksu if you have it installed) instead of sudo. That is because you can't run graphical commands which use sudo without to use an X terminal emulator, even if you set sudo to not ask for password.
So, in this case, your script should look like:

#!/bin/bash

check_process() {
  [ "$1" = "" ]  && return 0
  [ `pgrep -n $1` ] && return 1 || return 0
}

check_process "motion"
if [ $? -eq 0 ]
then
  pkexec /etc/init.d/motion start
  firefox http://localhost:8081/ > /dev/null &
else
  pkexec /etc/init.d/motion stop
  killall firefox > /dev/null &
fi


Why not simply convert the ttf files to otf? There are numerous ways of doing this. The are online services or you can use, or you could also install font forge sudo apt-get install fontforge
also available through the software center. The project page for font forge is here: http://fontforge.github.io/en-US/


How do you get details from the output of the locate command?

The locate database do not contain information other that names, so you should run some other tool, like ls, on locate output

lsloc() {
  locate "$@" |
    while read -r name; do
      ls -ld "$name"
    done
}
lsloc pattern


If development has stopped you can try installing from source, but you may be out of luck.

I suggest you use alternate tools. INO easiest (and best) tool are the debian live scripts.

http://live.debian.net/

http://manpages.ubuntu.com/manpages/raring/man7/live-build.7.html

The package is available in Ubuntu. It takes some time to read, but, IMO, the reuslting iso is much nicer and much easier to customize.

http://live.debian.net/manual/current/html/live-manual.en.html

See also

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

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


According to the comments above I would:

check if there's a firewall of some sort that blocks connection to specific ports (if the user remembers setting up some blocking application, if it's a default install then the firewall is off by default)
boot from a live cd/usb and see if the problem persists.
try this: install the ssh package on both PCs, reboot, and try to connect through ssh:

ssh remote-user@IP

(where you substitute remote-user with the username on the other computer and the IP address)

If this works, it should ask you for a password and allow you to login.

After installing ssh, you can probably use SFTP to access files on the remote system. Open nautilus, press CTRL+L, it will show the "location bar", where you type:

sftp://remote-user@IP

It should ask you for a password.


Can I download Ubuntu onto a flash drive using Windows xp? It doesn't recognize the ISO file

That should not be the problem. You should maybe check your .iso file for errors. Does the filesize match the one given on the website. Maybe check the md5 value of the file. Maybe try another USB Installer. UnetBootin works very well for me.