proper syntax for grep: search a string, copy two rows above and transpose

This will create a report for a single month:

#!/usr/bin/perl

use strict;
use warnings;

@ARGV == 1 || die($!);

my $realpath = `realpath $ARGV[0]`;
chomp($realpath);

opendir(my $dir, $realpath) || die($!);

my @files;

while(readdir($dir)) {
    -f "$realpath/$_" && push(@files, "$realpath/$_");
}

print("year\tmonth\tday\to-c\tmean\trms\n");

my @realpath_s = split("/", $realpath);

foreach my $file (sort(@files)) {
    open(my $in, $file) || die($!);

    while(<$in>) {
        if(/^\s*Mean/) {
            my @row;
            for(my $i = 0; $i < 3; $i++) {
                my @F = split(/\s/);
                push(@row, $F[2]);
                $_ = <$in>;
            }
            $_ = <$in>;
            my @F = split(/\s/);
            if($F[1] == 8) {
                $file =~ s/.*day//;
                print("$realpath_s[@realpath_s-2]\t$realpath_s[@realpath_s-1]\t$file\t$row[2]\t$row[0]\t$row[1]\n");
                last;
            }
        }
    }
}

print("\n=======================\n");

exit 0;

Save it to, say, ~/script.pl, and call it passing the path to the reports of a month:

perl ~/script.pl /path/to/2015/12

The output will be printed to the the terminal; you can use a redirection to redirect it to a file:

perl ~/script.pl /path/to/2015/12 > ~/report_2015_12.txt

It should be fairly easy to script multiple calls in a Bash script to create yearly / 10-year reports.

% tree
.
├── 2015
│   └── 12
│       ├── day1
│       ├── day2
│       └── day3
└── script.pl

2 directories, 4 files
% perl script.pl 2015/12
year    month   day o-c mean    rms
2015    12  1   1612.97456  -78.6   1615
2015    12  2   1612.97456  -79.6   1615
2015    12  3   1612.97456  -80.6   1615

=======================

In the example all files in 2015/12 contain a iteration 8 line, hence a line is printed for each of them.


Reinstalling Ubuntu seems to have fixed my problems. Thanks for the help!


VSFTP failed to retrieve directory listing

Your port forwarding is wrong.

You should not forward 10090-10100 to 2121 (which is the FTP servers main listening port). You should forward them to ports 10090-10100 on the FTP server.

FTP opens an extra connection for data transfer, which is what this port range is used for. This of course means that they need to be forwarded to the data ports, not the control port.

Also, consider not using FTP. What you are experiencing is one reason. The lack of security by default is another. It's also a slow protocol, and downloading a single file has a lot of overhead. For authenticated users, sftp, scp and webdav may be good alternatives. For anonymous access, http(s) is a better solution. FTP is not secure, nor is it a good protocol by todays standard.


To sign in you need to change manifest.json located in /usr/share/unity-webapps/userscripts/unity-webapps-youtube.
Replace {"includes":[ with {"includes":["http:*.google.com/*","https:*.google.com/*",.

P.S. I don't know why do you want to use webapp, but many functions in webapps since 14.04 update not gonna work.


You can't convert .png to .svg as far as I know but if you can find a .svg file of the icon which you want, follow these steps:

Your theme's Places folder may not be the right location. If you can find "folder.svg" in there that's ok but if you can't, you should open your theme's "index.theme" file with gedit and then check its Inheritences's Places folders. It should be in the folder named "16".
When you find "folder.svg" as an original file, not a link, change its name as "folder.svg.backup" and then copy your .svg file to here and name it "folder.svg".
Make a link your new "folder.svg", copy and paste it to all other folders in your theme's Places folder. Don't forget to make these links' names "folder.svg"
When you log out and come back, your folder icon must be changed.

Check out these answers to convert .png to .svg as mentioned in the comments.


How to delete an "Install Alongside Windows" so I can install it properly in its own partition?

Ubuntu would not have installed inside of your Windows partition, chances are it has partitioned the spare 40GB again and installed inside of that.

I am not sure why it did not pickup the Windows installation in the GRUB, but you could try following this answer to fix it


Your NVidia GT-550 (Fermi generation) is not compatible with Vulkan. Sorry :)
You can see the compatible versions here at NVidia.


I loaded my ubuntu on to a flash drive for my hp computer, but it won't open when I restart!

If you want to install Ubuntu on to your HP computer,
use Rufus which will let you create a bootable USB. [you can also create a CD/DVD]

(Make sure you back up all your files from your PC { if your planning on only having Ubuntu on your HP computer }  and from the USB that you will use. {minimum 2GB USB is needed})

Also during installation you can partition your disk to have dual-boot for Ubuntu OS and windows OS.
Once you create the bootable USB or CD/DVD unplug the device.

Go to your BIOS system and enable boot from USB and make sure it's the first option that BIOS check for booting.

Turn off the laptop plug the bootable USB in and boot up your computer,
If you did everything correctly the BIOS will boot from USB and will bring you to Ubuntu installation screen.

then follow on screen instruction to complete the installation.


See if https://help.ubuntu.com/community/Wacom helps at all, it seemed to help the OP over here (credit to MiHa for the link). I'd recommend you plug it into your computer and attempt to do something in System Settings > Wacom Tablet, it may properly work without any additional configuration.


The policy of the Ubuntu developers, following PEP394, is that python links ONLY to a Python2 interpreter. Similarly, python3 links ONLY to a Python3 interpreter.

You can change python to link to anything you wish...but we won't provide support for it.
No packages in the Ubuntu repositories would link python to a Python3 interpreter - any deb package doing so would be an awful bug.

When you install a Python2 interpreter, overwriting your old python link (/usr/bin/python) with a new link is expected behavior.

Do not install manual files or links in locations commonly used by a package manager (like /usr/bin). You can install your own python link in several locations in your $PATH that are safe from overwriting by a package manager. For example, /home and /usr/local/.


How to set up multi finger gesture control in 20.04

Try Fusuma. It worked for me. https://github.com/iberianpig/fusuma


Where to find complete AltGr symbols map per keyboard layout

Look for Text Entry in the Dash (I'm not sure about the Italian localization of that) , select the keyboard and press the symbol with the keyboard.

Here how it looks for italian keyboard


Why does mplayer freeze when running from Scheduled Tasks?

The reading of key events from standard input seems to cause this, add following options:

-noconsolecontrols -really-quiet


dd: different unit for bs, skip and count?

Specify Different Units

Yes, it is possible to specifiy different units for bs and skip and count. However, there are only two choices for the skip and count units. skip and count must match the bs value or be specified in bytes. To set the units to bytes you must add an additional operand of iflag=skip_bytes for skip and iflag=count_bytes for count or iflag=skip_bytes,count_bytes for both.

In your case, this command should accomplish your goal:

dd if=image.iso of=test iflag=skip_bytes,count_bytes bs=4M \
  skip=$((1161215*512)) count=$((32768*512))

It appears you want to extract exactly 16M. Set bs=4M count=4 and use only skip_bytes:

dd if=input.file of=output.file iflag=skip_bytes bs=4M \
  skip=$((1161215*512)) count=4

Example for testing:

An input file with the contents:

aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz

With count_bytes (extract exactly count bytes):

$ dd if=input.file of=output.file iflag=skip_bytes,count_bytes bs=8 skip=5 count=20

yields 20 characters:

cddeeffgghhiijjkkllm

Without count_bytes (count is multiplied by bs):

dd if=input.file of=output.file iflag=skip_bytes bs=8 skip=5 count=3

yields 24 characters:

cddeeffgghhiijjkkllmmnno

Your version of dd may not include iflag, skip_bytes, or count_bytes.
These examples were tested on Debian 9 using dd (coreutils) 8.26.


Run programs installed by Pip in Ubuntu 20.04

After some help I found that I missed a line in the beginning of the installation. The correct way is:

$ sudo apt install python3-setuptools
$ sudo apt install python3-pip
$ sudo pip3 install doge
$ pip3 list

If I  wasn't such a noob I would have used which to begin. It gave:

/usr/local/bin

so this also worked:

$ cd /usr/local/bin
$ ./doge


How can I remotely access the desktop of my Ubuntu server?

Since the Ubuntu server installation does not install the X-environment by default, there would be no desktop to connect to. Unless you installed X manually, what you need is a way to access the console/command line, seeing as most of what you do in a linux server is done via the console anyway =)

- SSH Client

The easiest way to access the console is using a ssh client for windows called PuTTy (available at putty.org).

My preferred method is to install openssh for windows (download at openssh.org). This means you can connect to a server by opening a DOS window and type "ssh" just like you would at the console in linux.

- SSH Server

To verify that the ssh server is running on the server, enter the following on the server console:

sudo service ssh status

If it's running you will get a message back saying that the service is running and a number indicating the process id.
If you get an error message, the ssh server might not be installed. Try the following to install the ssh server:

sudo apt-get install ssh

This will install the ssh-server and start it. Now you should be able to connect through ssh using putty.

- Bonus

Installing/using ssh to connect to the server gives the extra bonus of being able to use a windows program called winscp (download at winscp.net), It's a windows implementation of "scp" and allows you to download/upload files to the server in a FTP-like way.


Installing chrome gives an error: "dependency is not satisfiable"

Here's how to fix it.

Close Ubuntu Software Center (important if it's open!).

Run the following command in a terminal (To open a terminal, hit Alt-F2 and type in gnome-terminal)

sudo apt-get update && sudo apt-get install -f

Once that's done, Google Chrome should be finished installing.

As per a comment asking for more info, here's what that command does.

The -f switch in apt-get auto-corrects broken dependencies. The issue you had was a broken dependencies (so Google Chrome needed a package it didn't have).


Moving Linux from USB drive to internal sata drive

You should be able to move your file system off usb with rsync.
Boot into Ubuntu as you normally would (off of USB) and then mount your new SATA drive that you intend to move Ubuntu to.

sudo mount /dev/xxx /mnt

once the device is mounted you can then copy everything over

sudo rsync -axv / /mnt

That will copy your file system off of USB and onto your new drive. As far as setting up grub and what not, unfortunately I cannot help you there.

Disclaimer: I have not done this before as you are asking, but I do use this method to move the file system off of the SD Card of my Raspberry Pi and onto USB.


It is correct that there currently are no official drivers for the AMD 5600 XT on their website but, nonetheless, the open source AMDGPU drivers work just fine and I have no problem with the Graphics Card with two UHD 60fps screens.
My guess is, that they will ship the official driver with the official release of Ubuntu 20.04 LTS (April 23rd).


Using Grsync to set up a backup job via GUI, can I see the rsync command it created?

Yes you can! Grsync is actually a great GUI tool to generate grsync commands.
How to see the command you created via GUI in Grsync

Create your backup via GUI in Grsync
Once that is done, choose: File > Rsync command line

That's it. now the command you created via gui is displayed. Just copy it to use in cron or whatever procedure you use to make backups.


How do I redirect different apps into a single domain with Nginx Ubuntu 16

Use can use the location tag for that. Edit your configuration file under /etc/nginx/sites-enabled, and add a location tag for each sub-site

server {
    location / {
        root /path/to/default;
    }

    location /thisapp/ {
        root /path/to/thisapp;
    }

    location /differentapp/ {
        root /path/to/differentapp;
    }
}

You can read more in the nginx beginners guide


Configure application priority to access the network

Wondershaper

If it's not too simple for your use case I suggest you give wondershaper a try.

  An easy to use traffic shaping script
  that provides these improvements:   *
  Low latency for interactive traffic
  (and pings) at all times   * Allow
  websurfing at reasonable speeds while
  uploading / downloading   * Make sure
  uploads don't hurt downloads   * Make
  sure downloads don't hurt uploads  .
  It does this by:   * Limiting upload
  speed slightly, to eliminate queues
  * Limiting download speed, while allowing bursts, to eliminate queues
  * Interactive traffic skips the queue   * ACKs and tiny packets skip the queue

It's available as a debian/ubuntu package, just run sudo apt-get install wondershaper to install it. Between wondershaper and using tc directly, trust me, you want wondershaper. At one time I used tc extensively and while quite powerful, it's not a joy to use.

Starting and configuration of Wondershaper

Close all programs and other browser pages. Then check your speed at http://speedtest.net

Syntax: wondershaper [network interface] [down speed kbit/s] [up speed kbit/s]

Example for 8/1M (mbit/s) ADSL connection:

wondershaper eth0 6700 800

If you want to clear wondershaper queues (disabling traffic shaping):

Syntax: wondershaper clear [network interface]

wondershaper clear eth0

Starting wondershaper automatically when OS starts

This can be done by editing the file /etc/network/interfaces

Before:

auto lo
iface lo inet loopback

After:

iface eth0 inet dhcp
   up /sbin/wondershaper eth0 6700 800
   down /sbin/wondershaper clear eth0
auto eth0

Notice this is just an example. Actual settings might differ a bit in your system. For example, in your system the network interface might be eth0 instead of eth2.

To find your network device execute: ifconfig or see connection information of network manager.

Source: http://www.mdash.net/traffic-shaping-using-wondershaper


Ubuntu 12.04.3 - Expanding/Resizing LVM partition upon additional Disk in a Hardware RAID 5

Assuming you have done the RAID part and you've booted into your system again.

Unmount your /data:

umount /data

Check your logical volume path:

lvdisplay

Resize your logical volume to 100% of the available size and perform resizefs:

lvresize -l 100% -r /logical/volume/path

After that you should be able to mount it again:

mount /data


Server not booting after 16.04 upgrade (not pinging)

For someone with the same problem I found the solution in this log file
/mnt/var/log/dmesg (server boot log) and almost at the end I found that the disk was mounted in readonly during boot (IDK Why).
So fixed with a fsck and a touch /forcefsck and rebooted from HD.

All working


Reflect changes to file that .vimrc sources

try with this command by adding it to .vimrc

autocmd! bufwritepost .vimrc source %

Source


Change level at which power level notification

UPower.conf
UPower (previously DeviceKit-power) is a piece of middleware (an abstraction layer) for power management on Linux systems. It enumerates power sources, maintains statistics and history data on them and notifies about status changes.
It is located inside /etc/UPower directory.
To change the notification of Low power from 10% to 22% edit /etc/UPower/UPower.conf.
change PercentageLow from 10 to 22 and make sure UsePercentageForPolicy is set to true.


Is this computer of yours dual-booting with another operating system, like Windows 7? If so, you can restore your Windows 7 partition by reading a link in Microsoft Answers. Let me know if this is the case and I'll paste the link for you to follow.


How can I get System Monitor Indicator to display temperature?

System Monitor Indicator is quite simple / flexible. You can add basically any script as custom sensor. The output it produces will then appear where you put its placeholder. I am using this to extract information from the output of sensors like this:

sensors | grep temp1 | awk '{print $2}' | sed 's/+//'

to exctract the temperature or

sensors | grep fan1 | awk '{print $2}'

to extract the fan speed.

Just click on New, enter a name and a description and the respective lines from above under Command as shown here:

PS: After upgrading from Ubuntu 12.04 to 14.04 the tool seemed to have problems to read the configuration file, resulting in a crash when I tried to add sensors. Removing .indicator-sysmonitor.json from my home directory fixed this.


How do I Install Ubuntu, Xubuntu or Lubuntu on a 7.2GB USB stick

A USB stick with 8 GB (nominally) will often contain slightly less drive space, but your 7.2 value is probably the size in GiB (gibibytes with base 2)

7.2*2^30/10^9=7.73 conversion to GB (gigabytes)

and it is too small anyway to install the current version of Ubuntu.

If you want a good installed system, you should get a fast USB 3 stick with at least 16 GB.

With an 8 GB stick I would recommend

A persistent live drive. This should work well.
The already suggested workaround via the Ubuntu mini.iso. This should work, but very soon you will find that the drive space will be too small.


Installed app doesn't show on installed applications lens (Ubuntu 12.04 dash)

As explained here on Standard Keys - Desktop Entry Specifications,

  NoDisplay means "this application exists, but don't display it in the menus"

The NoDisplay field is causing this desktop shortcut not to show up in menus.

This, of course, was done deliberately by the developers of the application. However, if you wish to see this application in menus, just completely remove the NoDisplay field:

[Desktop Entry]
Name=Software Sources
GenericName=Software Sources
Comment=Configure the sources for installable software and updates
Exec=software-properties-gtk
Icon=software-properties
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=GNOME;GTK;Settings;X-GNOME-SystemSettings;
MimeType=text/x-apt-sources-list;
X-KDE-SubstituteUID=true
X-Ubuntu-Gettext-Domain=software-properties


Can't find new.h - getting gcc-4.2 on Quantal?

Update: I just installed Hardy and installed gcc-4.2 there. The error is not happening now, so that was the problem. I'm running into others now, but I assume they are not related to the compiler.


Disk Utility

This is a GUI application that will give you information about the model, size, serial number and device path of your drives. It is installed by default on Ubuntu Desktop. You can press the Ubuntu Dash button and search "disk utility" to find it, or run it in the terminal with palimpsest.


open gnome-session-properties. add command and name. desktop file will be created in ~/.config/autostart.

remenber: use absolute path in the command line, eg /home/xxx/.Xmodmap. never use '~' as your home dir.


Make sure no late startup jobs and auto-start applications are loading, sometimes Ubuntu get stuck in while starting some network and gtk applications (dhcpcd, netctl and systemctl)
make sure NVIDIA latest or its drivers are loaded normally, do blacklist Nouveau drivers, also do some simple sanity checks.
steps to override start/stop jobs:

Open system.conf

$ sudo gedit /etc/systemd/system.conf

Change lines

#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s

remove the pound symbol and change both 90s to 5s, after edit

DefaultTimeoutStartSec=5s DefaultTimeoutStopSec=5s

finally do

$ sudo systemctl daemon-reload

and reboot.


expressvpn on disconnect does not restore previous resolv.conf

As other people have said, it looks like a bug in expressvpn. I've used this workaround to make it work: I have made a backup of my resolv.conf file once, using:

sudo cp /etc/resolv.conf /etc/resolv.conf.bak

And after that when I want to disconnect, I don't run the usual command:

expressvpn disconnect

Instead I run:

expressvpn disconnect && sudo cp /etc/resolv.conf.bak /etc/resolv.conf

I don't type it in full, I use Ctrl+R to find it quickly in my bash history. I hope it helps!


This problem is solved now because the new kernel version support Yoga 900. I am using 4.6.0-0 and it is working fine. No need to recompile the kernel :)


Session management error: None of the authentication protocols specified are supported

What fixed this Session error business -- upgrading to Ubuntu 10.10.

What fixed the problems I had with the readline python errors in the Enthought Python Distribution: getting the 64 bit distro.

Everything worked as expected after those two things were taken care of.


Why is Microsoft Word complaining about Libre Office's .odt files being corrupt?

Microsoft office 2010 does not support ODF 1.2 format, which LibreOffice does. If you change the ODF format used in LibreOffice to 1.0/1.1 you will no longer have this problem.


Installing Ubuntu with Windows, which is left and right when allocating space?

Your existing partition (Windows) is on the left, Ubuntu is on the right. That's the standard order when shrinking one partition to create another for dual-booting.

For Ubuntu, it's like this:

For Lubuntu, like this:

Here is the bug report:

https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1084547


setting mount options on an USB drive automounted by Gnome

First run df to see what device your external drive is, for example, for me the appropriate line looks like this:

/dev/sdc1              4883769340 2392246688 2491522652  49% /media/drew/LACIE-5GB

/media/drew/LACIE-5GB is where the disk got mounted and the appropriate device is /dev/sdc1 - this can change depending on how many external drives you have and in what order they were connected.

blkid /dev/sdc1
/dev/sdc1: LABEL="LACIE-5GB" UUID="703C31971BEBAA7E" TYPE="ntfs" PTTYPE="dos" PARTLABEL="LACIE-5GB" PARTUUID="6afdadd9-39ce-4875-b747-82cae734ae02"

The UUID is 703C31971BEBAA7E

So one can put a line like this into fstav:

UUID=703C31971BEBAA7E   /media/drew/LACIE-5GB   ntfs    defaults,noauto,noatime,uid=1000,gid=1000,umask=0000,fmask=0111      0       0

Note that noauto is important - if the drive is not connected on startup and that option is not present, the boot halts and needs to be manually restarted. uid=1000,gid=1000,umask=0000,fmask=0111 are just options for NTFS not to make every file executable (which prompts Nautilus to ask if a file is to be displayed or run when I try to read a txt file, for example). noatime is the option originally requested.


Top panel and launcher missing in new installation of ubuntu 13.04

I "solved" this by installing Kubuntu. Just wanted to put into use an old laptop for my son so it didn't really matter to me.


startup disk creator dose not make bootable usb in Ubuntu 18.04

You tried 3 different OS's including Ubuntu 16, 18, and Mint 19 and none of them would boot properly. So I think the problem is not Ubuntu 18.04 LTS. The following link may help, Booting the Computer from USB.

Maybe I was mislead by the information about the motherboard via the internet stating that 64-bit versions should work. Maybe you should try a 32 bit version of Lubuntu or Xubuntu.

I have two old machines with Athlon CPUs. One of them has an ASUS M2NVM_DVI motherboard, and I have tested several Lubuntu iso files on it including the 18.04.1 LTS and 18.10. Booting and running works.

You can try cloning the working operating system borrowed from your laptop (source) to the drive that is dedicated for the problematic machine (target), if the target is at least as big as the source (storagewise).

See this link: Cloning from one drive to another drive


How to use a Ubuntu 13.04 (amd64 .deb) program on 14.10

Ubuntu has no 'reverse compatibility' mode, at least, not in the same sense as Windows does.  Even in Windows, the 'compatibility mode' does not account for older, non-compatible dependencies for programs.

To get older software installed into 14.10, you would have to download the .deb file, and attempt to install it.  You might run into issues such as dependencies being out of date, or too new, or just being totally obsolete and unavailable, in which case you have to then download each of those dependencies and install them manually.

When working with old software and ancient dependencies, as well, you will always run the risk of breaking your system.  I would suggest compiling the software from source, if they provide such a method to do so.  If using the older .deb is the only remaining option, then you are free to attempt to use it, but be warned you might not be able to install that because the dependencies for the software might all be gone, or your software is too new, or any number of other issues.


End of file syntax error shell scripting

In don't know what you are trying to do with this script but looking at it first time i see the errors are because of this line :

if ($(echo $word | head -c 1)"=$1 then

Make it as :

if [ "$(echo $word | head -c 1)" = "$1" ]; then

while doing a check with if-then conditional construct use test ([) or [[ (bash-ism). Check help test for more info.

When you are doing if ($(echo $word | head -c 1)"=$1 then :

There are syntax errors, ( after if and " before =, perhaps you meant "$(echo $word | head -c 1)"
Also as you are using no test (or [[), the = simply suggests that you are doing a variable assignment. So you need [ (test) or [[ to make sure that you are comparing things
Also you have missed a ; before then which is a shorthand for newline (or you can put then at the next line)

Also your script seems inefficient (to be honest) to me by looking at the commands you have used to get the job (i don't know what) done. Perhaps you should go through the scripting answers posted here and other sites to get some idea about which tool to use in what situation, ask a new question to see what others suggest to solve your problem and of course use indentation.


It's pretty non-intuitive, but I remember figuring it out a few times, and I basically remember.

You right click on a menu item in the menu you want, and choose "Entire Menu", then "Add this as menu to panel".


But same web pages are opening in Windows environment

It sounds silly to have to say this but you missed the most important step: working out  what the problem is. It's only going to be one of two things 99.999% of the time:

DNS. Does host domain.ext work? If you can't get a response, your DNS is either illegal (try a whois domain.ext too) or there's a network routing issue between your computer and the DNS server.
Routing issues. If you can resolve an IP from the domain but can't ping domain.ext (or ping $previously-resolved-ip), you're looking at simple networking issues. traceroute should indicate where things start to go wrong.

There are rare cases where other things happen (perverse proxy blocks, mysterious static routes and an attack of the plugins) but most of the time, it's either some combination of the DNS and the network.

You can usually rule Ubuntu out (or in) pretty quickly by just moving the computer to another network and trying again.


Add the repository
sudo add-apt-repository ppa:stebbins/handbrake-releases
Then update:

sudo apt-get update

Then install:

sudo apt-get install handbrake


This is more a question on how to setup vsftpd than Ubuntu related.

If memory serves me well you need to add

chroot_local_user=YES

to your configuration (/etc/vsftpd.conf)

edit:

Found a source: https://security.appspot.com/vsftpd/FAQ.txt


Xubuntu(or xfce in general) minimize button disappears on Intellij Idea if more then one instance is launched

It's been reported to JetBrains and they said it was a problem with Xfce 4.12:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360007000280-Minimize-button-disappears
https://youtrack.jetbrains.com/issue/JBR-565
They said the solution would be to upgrade to Xubuntu 19.10, which uses Xfce 4.14.


After installation applications listed as installed, but no executables found

To be completely sure consider to check file-system for errors and then reinstall Gparted with

sudo apt-get install --reinstall gparted

Afterwards use dpkg -L gparted (or its longer variant dpkg --listfiles gparted) with pipe to grep and you will get the following output:

$ dpkg -L gparted | grep bin
/usr/sbin
/usr/sbin/gparted
/usr/sbin/gpartedbin

See corresponding man dpkg for details.

As you may know - Gparted has GUI, so it is callable from .desktop file. You can find it with:

$ dpkg -L gparted | grep desktop
/usr/share/applications/gparted.desktop

and you can see that it is called with gparted executable

$ cat /usr/share/applications/gparted.desktop | grep Exec
Exec=/usr/sbin/gparted %f


This happens in most Dell systems.  The system does not always use all 4 cores at once, the temperature of whichever cores are being used will fluctuate accordingly.  Subsequently, the CPU frequency will fluctuate accordingly as well, if you're using those applets.

This also occurs on the Dell Latitude E6500 laptops as well.

EDIT
It could also be two sensors are malfunctioning, in which case it would explain the discrepancy of over 20 degrees Celsius at the processor.


How to write a script to toggle unitytweaktool setting (hotcorners)

If you just want the script, skip the explanation

Explanation

You'll have to learn at least an appropriate programming (/scripting) language, but then:

Introduction; dconf and gsettings
Most (if not all) of the settings, edited by Unity Tweak Tool edit the dconf database, in which many settings are stored. Editing the dconf database is best done via gsettings, which is in fact a cli-front end to the dconf database.

In your example, setting/toggling hotcorners can unfortunately only be done by editing the dconf database directly, because there is no SCHEMA available in gsettings for it.

Getting the current value
The hotcorners -plugin is set in:

/org/compiz/profiles/unity/plugins/core/show-desktop-edge

You can read the current state by the command:

dconf read /org/compiz/profiles/unity/plugins/core/show-desktop-edge

This will have an output in your case like (from your comment):

 '|BottomRight'

Setting a new value
To disable hotcorners, you need to run the command:

dconf write /org/compiz/profiles/unity/plugins/core/show-desktop-edge "''"

to (re-) enable hotcorners, with your previously set hotcorner:

dconf write /org/compiz/profiles/unity/plugins/core/show-desktop-edge "'|BottomRight'"

The anatomy of a toggle script

What the script (in general) should do:

Test what is the current state A/B

If the current state is A -> set B
If the current state is B -> set A

The script

In the script the steps above are described in the comments:

#!/usr/bin/env python3
import subprocess

key = "/org/compiz/profiles/unity/plugins/core/show-desktop-edge"
val_on = "'|BottomRight'"

def test():
    # read the current setting
    return subprocess.check_output(["dconf", "read", key]).decode("utf-8").strip() == val_on

currstate = test()

if currstate == True:
    # if currently hotcorners are "on", set it to "''"
    newval = "''"
else:
    # if currently hotcorners are "off", set it to val_on
    newval = val_on

subprocess.Popen(["dconf", "write", key, str(newval)])

How to use

Copy the script into an empty file, save it as toggle_hotcorners.py
Test- run it from a terminal:

python3 /path/to/toggle_hotcorners.py

If all works fine, add it to a keyboard shortcut. Choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

python3 /path/to/toggle_hotcorners.py

How can I see what the Unity Tweak Tool is editing?

Not only for Unity Tweak Tool, but also to see what System Settings is editing, in many cases the following gives you usefull information:

Open a terminal, open Unity Tweak Tool
Run the command dconf watch / in the terminal
Change the value from GUI in Unity Tweak Tool

The output in the terminal changes:

You can see what happens if I disable/enable hotcorners in Unity Tweak Tool.


How do I get vlc in the context menu in Nautilus?

Using Ubuntu-tweak

First install Ubuntu-tweak

How do I install Ubuntu-Tweak?

Then open it by typing "Ubuntu-tweak" on the dash

After opening Ubuntu-tweak, go to the Admin tab

Then Go to the File type manager option

In this section, do these:

Select a catagory of media types, such Audio or Video
Select a type of the file, such as mp3, mkv etc
Double click the currently associated application such as Totem or something
In the new opened small window, Select VLC media player and close it.

Then close the Ubuntu-tweak and see the changes by doing a Right-Click.

Instruction for Directory: After subsequent comment by the OP, I realized that, he wanted to enable an entry in the directory with "Open with VLC media player". (And OP done this, before I edit the answer. ;P).

To do so, Follow the steps from 1-5. In the step 5, the procedures are slightly changed. These are:

Select the catagory All
Select the file type Folder
Double Click it to bring a new window. In this window, do these:

Remove all entries except Files from there by selecting one and then pressing Remove button.
After removing all except Files entries, Press Add button and Select the VLC media player from the new window and pressing Add button there. Remember to select the Files entry as default before closing this window.

The final file type choosing window should look like this

Note that, in the image, Files entry is selected to be the default.
Close all windows and close the Ubuntu tweak.

That's it.

If you ever wanted to revert the change, open Ubuntu-tweak and select the changed file type and Press the Reset button at the bottom-right position of Ubuntu tweak. All settings will be restored as before.


Ubuntu 12.04 and SSH: Automatically shutting down another computer when powering off


Unfortunately you can't undo the changes made by chown or chmod. That's linux! Commands will actually do what you tell them to do. Better do a backup yourself next time.

However you can restore the default permissions for your home folder which will probably fix most of your issues.

First reset the owner of your home folder:

sudo chown -Rv kpate352:kpate352 /home/kpate352/

Then reset permissions for all files:

find /home/kpate352/ -type f -print0 | xargs -0 sudo chmod -Rv 644

Finally reset permissions for all folders:

find /home/kpate352/ -type d -print0 | xargs -0 sudo chmod -Rv 755

This should stabilise your situation.


If you have Ubuntu 14.04 you can install nvidia-331, NVIDIA CUDA toolkit and the NVIDIA CUDA 5.5 Runtime library directly from the Ubuntu Software Center. libcudart5.5 is the package name of the NVIDIA CUDA runtime library. libcudart5.5 requires the nvidia-331 or more recent graphics driver. There is also an NVIDIA CUDA toolkit package (nvidia-cuda-toolkit) in the default Ubuntu 14.04 repositories, and like libcudart5.5 it is also version 5.5.

The three packages mentioned above are working on my Ubuntu 14.04 with an NVIDIA GeForce GT 610 graphics card. You could also install the nvidia-331-updates package instead of nvidia-331.


Solved it with a function around the normal ssh. now changes the color depending on the server and changes it back when returning to the local host.

alias blue='xdotool key --delay 50 Alt+t p Return'
alias dark='xdotool key --delay 50 Alt+t p Down Return'
alias green='xdotool key --delay 50 Alt+t p Down Down Return'
alias red='xdotool key --delay 50 Alt+t p Down Down Down Return'

cssh(){
  if [[ $1 == *"remote1"* ]]
  then
    green
  elif [[ $1 == *"remote2"* ]]
  then
    red
  else
    blue
  fi
  ssh $@
  sleep 0.5
  dark
}


can i sync folders with windows and linux?

Yes, there is Ubuntu One client for Windows.


rabbitvcs-thunar does not support emblems, yet.

I spotted that http://blog.rabbitvcs.org/archives/178 states:

  there will be no emblem support for the foreseeable future

I had a quick look at the source code from around that date (https://code.google.com/p/rabbitvcs/source/browse/trunk/rabbitvcs/lib/extensions/thunar/RabbitVCS.py?spec=svn2145&r=2145) and compared it to the current versions (https://code.google.com/p/rabbitvcs/source/browse/trunk/clients/thunar/RabbitVCS.py) and can see there has been no additional work for the emblem handling.


All you need to do is open up a terminal and run sudo apt-get install build-essential -y and you will be set, you are missing the build tools.


Uninstalled windows, now bootmgr is missing

Sounds like something went awry with your uninstall! ;)

My guess is that when you uninstalled Windows, it took part of Grub (Ubuntu's default Bootloader) with it. I've ran into similar issues, though I'm not sure it's exactly the same.

To fix my issues when I lost my bootloader, I started up a LiveCD/USB and then chrooted into my HDD installation of Ubuntu. From there, I ran update-grub and from that point on, it worked fine again.

The Accepted Answer Here Gives a Step By Step Explanation of the Above.

== Another Thought ==

It's also possible that when you uninstalled Windows, some configurations with grub needed changed, ie the sector that it boots from ( hd(0,1) etc ).


try to get a older ubuntu distribution's cd and try to install it.If this fails,
Reinstall ubuntu completely.


USB problems when more than one user logged in (18.04)

userA's account was set to automatically log in. After disabling the auto login, the problem seems to be fixed.


This is within a terminal window.  Were you trying to click the button with the mouse?

It's slightly counter-intuitive, but often the only way to move to those kind of buttons in the terminal is to use the Tab key.  I discovered this many years ago when I first started using Linux, and had trouble finding an answer to what must have been obvious to everyone else.

Anyways, open a terminal again.  sudo apt-get -f install will likely resume the installation you were just trying to do, if not, sudo apt-get install ubuntu-restricted-extras again.  I'm not 100% sure that simply being unable to select the button was your actual problem.

So yeah, Tab to the button, Enter to select.  Very few command-line applications are mouse-enabled for obvious reasons.


Need to expand /boot partition but not sure if I can

Why not clean up /boot instead of growing it? Simply remove older kernel packages you don't need anymore.


How do you select languages when configuring mailman?

You can go around that by doing it later but in the area where you can choose languages:

arrow up or arrow down: navigate.
spacebar: (de)activate choice.

Like so:

After you are done hit tab and enter to confirm the OK.


A login loop can happen by the incorrect use of sudo in the terminal to start a GUI application.

Bad example...

sudo gedit /path/filename

Good example...

sudo -H gedit /path/filename

The difference is in the -H...

 -H, --set-home
             Request that the security policy set the HOME environment
             variable to the home directory specified by the target user's
             password database entry.  Depending on the policy, this may
             be the default behavior.

Not using the -H can set these two files to root ownership, causing the problem...

ls -al .*thority

-rw------- 1 root root 439K Oct 12 09:44 .ICEauthority
-rw------- 1 root root   58 Jun 23  2017 .Xauthority


Ubuntu 14.04 Direct Rendering Not Working With Nvidia

After restarting my computer, everything was back to normal.

If anyone experiences this, the most probable cause is the libGL.so being relinked to mesa. I'm guessing that XServer may have to be restarted after you relink the libGL.so

As always, AskUbuntu is devoid of technical support, so much of this is conjecture. Apologies.


SanDisk Extreme PRO SDXC 128GB Won't Mount

Having the card with a GPT partition table and ExFAT is the culprit. If I zero my USB flash device, then put it into the Mac, the format popup lets me choose between Apple / GUID / MBR. If I keep the default of GUID (GPT) now together with exFAT, I get the exact same behaviour on my Ubuntu 16.04LTS as you describe. This combination can only be read by Mac, but not Windows or Linux at the moment.

So you have to use Linux to make a readable exFAT partition as a first step.

Try

sudo fdisk /dev/mmcblk0 and make a new partition table in MBR format with o,n,p,1,Return,Return,t,7,w to make a new MBR drive with a partition of type 7 (NTFS/exFAT) which spans the full medium.

Now, from Ubuntu, do mkexfatfs -n YourVolumeNameHere /dev/mmcblk0p1.

Test SDCard under Ubuntu by mounting it (eject/reinsert should be enough), writing to it and if you like, with GParted. After that, boot to OSX and test the card again there for functionality.

Now it should work under all systems. I have tested it with a USB stick for Ubuntu 16.04LTS, Windows 10, and Mac OS X El Capitan.


Google Account in Online Accounts is blank from the start in Ubuntu 18.10

As a workaround, you can start gnome-control-center with compositing disabled with:

WEBKIT_DISABLE_COMPOSITING_MODE=1 gnome-control-center

as esplained here


How to add "NAV packets" to a video file?

After some research and testing, I have reached the following command:

ffmpeg -i input.vob -f vob -target ntsc-dvd -vcodec copy -acodec copy output.vob

It is working fine! It does minimal processing (if it very fast), and the output is accepted by Bombono, i.e., the NAV packets are added!


How can i make blueman work without pulseaudio?

Just figured it out,I was able to disable PulseAudio rather than removing it with auto remove or purge by editing the file /etc/pulse/client.conf and setting auto spawn to no.


Why a script file .sh on ubuntu is not in green as the others?

It is because that file has no execute permission. The ls program shows the names of executable files in green. Try listing with ls -l - the permissions will be listed to the left of the filenames. r means read, w means write, and x means execute. There are three sets of permissions - a set for the owner of the file, a set for the group associated with the file (ls -l also lists these), and a set for "others" which is any user or program. To make the file executable for the owner, you can run chmod u+x, for example.


Is it possible to install on a CRT based iMac (the large, fat, old ones)

The Mac you have (which looks like it's probably an iMac G3) has a PowerPC processor.  While Ubuntu stopped officially supporting this architecture in 2007, there are community-maintained releases for PowerPC.  Download the Ubuntu 10.10 ISO for PPC, and you should be able to get it up and running on your iMac.  If you run into problems along the way, there are some iMac G3-specific discussions in the Ubuntu Forums or you can always ask about things here. :)  Good luck!


I have a suggestion which might be worth trying,

If your system has AMD/ATI graphic card and you are using Proprietary drivers then try disabling them and using the default/ Xorg Radeon drivers, one that Ubuntu selects.

(This may or may not work.. Its Only a guess..)


Flash video streaming choppy for Chrome, alright for Firefox

If you downloaded Chrome directly from Google, that might be your problem.  If that's the case, try downloading "Chromium" directly from The Ubuntu Software Center.


Can VM's use more than one node in Ubuntu Cloud?

"use resources from more than one node"

If by resources, you mean:

cpu
memory
network

Then the answer is definitely 'no'.

If you mean 'disk', then the answer is "sort of".

You can use remote disk resources with EBS disk (elastic block store).


Upgrade Ubuntu server 18.04.5 LTS to 20.04.1 LTS No candidate ver

Ok, this was my fault. I had a pin in /etc/apt/preferences.d for focal with negative priority.


Ubuntu freezes at startup. no key will work at all

Please explain what you did with your system, and well describe your problem since this quite probably does no matter with boot loader thus cannot be repaired via boot repair.

My suspicion here is you have to reinstall ubuntu-desktop and unity, and perhaps need to change ownership of home directory in case it's accidently locked by privileged user. While with little useful information I can't decide. Read this post if useful: Ubuntu 14.04 - How can I reinstall ubuntu desktop with a live CD?

If this couldn't fix your problem, provide additional information to well describe your problem. I'll try if I can help (cannot make any comment yet).


This might be caused by the auto-update task in the background, you can just try again a couple minutes later to see if this issue still exist.

Or if you want, you can disable the auto-update by following these steps:

Open the Dash
Search for "Software & Updates"
Select the "Updates" tab.
Change "Automatically check for updates" from "Daily" to "Never".

After disabling the auto-update, it will stop the daily task to update the software list. See the reference link for more detail. And you won't be blocked by this (auto-update in the background issue) in the future.

Reference: http://www.omgubuntu.co.uk/2016/02/how-to-disable-automatic-update-ubuntu


Give write-access to subfolder on samba share

navigate to the folder using terminal

$ chmod -R 755 directory

have a look on this

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

https://mdshaonimran.wordpress.com/2010/06/13/chmod-change-filefolder-permission-in-ubuntu/


Dual monitors - I'm almost there, but my mouse cant cross the divide

I'm sure you've probably already tried this, but I'll throw it out there just in case:

Go to System Settings --> Displays and make sure 'Sticky edges' is turned off.


Is there a Guest Session under Ubuntu Gnome 15.04?

If you have GDM instead of LightDM installed, then there is no guest session. The configuration of the guest session is part of the lightdm package.

Therefore you could install lightdm to get the guest session back >:)

sudo apt install lightdm

apt – yes, in Ubuntu 15.04 you can use this command


This works on mine with kernel 3.11 with latest 13.2 Amd catalyst already dowloaded:

sudo apt-get purge dh-make dh-modaliases execstack libqtgui4 lib32gcc1 libc6-i386 dkms

sudo apt-get purge fglrx fglrx-amdcccle

cd Downloads/AMDCatalyst/.

unzip amd-catalyst-13.200-0ubuntu1-linux-amd64.zip

sudo sh amd-catalyst-13.200-0ubuntu1-linux-amd64.run

sudo dpkg -i fglrx*.deb


Secure Boot prevents from booting unsigned operational systems.

It allows to boot only systems that are signed with a key that is stored in UEFI.

Ubuntu kernels are signed and you can install Ubuntu with Secure Boot enabled, but there are some limitations if you use Secure Boot:

You will not be able to install 3rd party kernel modules (proprietary graphics and wireless drivers, any other custom built modules).
Hibernation will not work.

Generally Secure Boot is not a very useful feature, because nowadays boot viruses are not an issue. Linux systems have other ways of protection from installing malware (root permissions).

The bottom line is that if you need unsigned modules, you do not lose much if you disable Secure Boot.


Replace spaces in a matched substring with underscores

Try this, it finds the first pair of slashes and removes all spaces between!

 awk -F'/' '{for(i=2;i<=NF;i++)if(i==2)gsub(" ","_",$i);}1' OFS="/"

Example

file='href="./Dynamic Directory name - Junk_files/irrelevant stuff after match">'
echo $file | awk -F'/' '{for(i=2;i<=NF;i++)if(i==2)gsub(" ","_",$i);}1' OFS="/"
# Output:
href="./Dynamic_Directory_name_-_Junk_files/irrelevant stuff after match">


In Ubuntu 16.10, multitouch on Apple Magic Mouse 2 is useless

I was struggling with this same thing (except old mouse on new computer), and discovered on the PyMT page this: "PyMT is now deprecated in favor of Kivy"

So, the installation procedure for Kivy is this:

sudo add-apt-repository ppa:kivy-team/kivy
sudo apt-get update
sudo apt-get install python3-kivy

I don't know how (or why!) the "preferred" way to control a multitouch device became using a multi-platform application development tool, or how to even use it to accomplish the task at hand. That's very much against everything that's right, good and pure about Linux, but that is a discussion for another place and time.

What I know is that the people who used to maintain PyMT say that they no longer do so and Kivy is what they recommend.


Extracting name between two delimiters via awk

You can combine two cut commands to extract the server name:

echo <string> | cut -d":" -f1 | cut -d"@" -f2

Explanation:

echo <string> | use the string as input
cut -d":" -f1 | set field delimiter to : and extract the first field (<user>@<server>)
cut -d"@" -f2 set filed delimiter to @ and extract the secon field (<server>)


How To Set Up second Apache Virtual Hosts on Ubuntu

1 Setup correct records for domain names in /etc/hosts.

This means that you are running apache2 on same computer that you are trying to get access to it via browser. Otherwise, set correct IP address.

127.0.0.1 example.com
127.0.0.1 example1.com

2 Adjust your apache virtualhost configuration

/etc/apache2/sites-available/example.com.conf

<VirtualHost 127.0.0.1:80>
    ServerAdmin webmaster@example.com
    ServerName example.com
    DocumentRoot /var/www/example.com/public_html

    ErrorLog /var/www/example.com/logs/error.log
    CustomLog /var/www/example.com/logs/access.log combined

    <Directory /var/www/example.com/public_html/ >
            Require all granted
            AllowOverride All
            Options Indexes
    </Directory>
</VirtualHost>

/etc/apache2/sites-available/example1.com.conf

<VirtualHost 127.0.0.1:80>
    ServerAdmin webmaster@example1.com
    ServerName example1.com
    DocumentRoot /var/www/example1.com/public_html

    ErrorLog /var/www/example1.com/logs/error.log
    CustomLog /var/www/example1.com/logs/access.log combined

    <Directory /var/www/example1.com/public_html/ >
            Require all granted
            AllowOverride All
            Options Indexes
    </Directory>
</VirtualHost>

3 Create required directories

sudo mkdir -p /var/www/example.com/{public_html,logs}
sudo mkdir -p /var/www/example1.com/{public_html,logs}

4 Enable virtualhosts

sudo a2ensite example.com
sudo a2ensite example1.com

5 Restart apache2 for apply changes

sudo service apache2 restart

or

sudo /etc/init.d/apache2 restart

6 Check that it works

Create different index files for both hosts

echo "example.com" | sudo tee /var/www/example.com/public_html/index.html
echo "example1.com" | sudo tee /var/www/example1.com/public_html/index.html

Open browser and navigate to example.com. You should see "example.com"

Navigate to example1.com. You should see "example1.com".


I realize this is an old question, but I was recently searching for this when trying to customize a 15.10 ISO.  I found no other answers to this, anywhere.  About 15 minutes ago (plus however long the re-mastering took so I could test this) I stumbled over the answer, so I'm going to provide it here in hopes that the reason for your trouble with 13.10 is the same reason for my troubles with 15.10.

Previously, I customized the boot splash for 14.10 by just editing the splash.pcx file.  That's not enough for 15.10.  You actually have to put a bunch of the files in the isolinux directory into a cpio archive named bootlogo.  Then, put that bootlogo file into the isolinux directory.

For example, if you happen to have /tmp/isolinux and it has the files from /media/user/cdrom/isolinux, and your modified pcx files, you could do the following:

cd /tmp/isolinux
cat bootlogo | cpio -t > /tmp/list
cpio -o < /tmp/list > bootlogo

Then you can go ahead and put the contents of /tmp/isolinux (or just the new bootlogo) wherever you need it.

A final note, if you want to modify the splash.pcx file, be sure to put it back into a 300x300 dpi format.  For example, using imagemagick: mogrify -units PixelsPerInch -depth 300 splash.pcx

Edit:  This appears to be the case for Ubuntu 16 as well.  That is, applying this method you can customize the Ubuntu 16 Live CD logo.


Where to find power option config file(s) for 17.10

According to this super user answer:

You can set the desired settings in GSettings directly.

Timeout for blanking the screen (seconds; 0 = never):

gsettings set org.gnome.desktop.session idle-delay 1800

Timeout for locking the screen after blanking (seconds; 0 = instant):

gsettings set org.gnome.desktop.screensaver lock-delay 0


I found answer to my question.
I removed php completely in my system using sudo apt-get -y purge php.*
and install php again on my system.
reference to remove php:
How to completely remove PHP?


Unable to install asterisk on Ubuntu 12.10

Try this command:

sudo rm /var/lib/dpkg/lock

Then this:

sudo dpkg --configure -a

After this, retry the installation


Ubuntu 20.04 LTS Screen Refresh / Flickering Issue

**** Determine the actual problem - the re-installation of gnome seemed the solution but the only reason it worked was because it disabled everything I had running. Turns out that the root cause was due to the Gnome extensions, specifically the Wifi signal strength monitor which was set to refresh every 10 seconds and coincided with the screen refreshing. Once disabled my issue went away.**

OK I think I solved my issue... I'm still not sure exactly what caused it but a fix is a fix.

What I noticed was if I switched between gnome and budgie the issue didn't not happen in budgie. That lead me to believe something was corrupt / clashing / broken in gnome so based on the following thread:

How to remove and reinstall GNOME 3?

I followed: https://askubuntu.com/a/1034227/1084966 and once the reinstall had completed my system has gone back to working exactly as expected.

Thank you to the community for all the knowledge and information.


Try Diodon, which comes with a Unity integration such as an application indicator and a Unity Lens.


Hoy do I get my data from Windows 8 back?

It seems the installer has overwritten your bootloader.

Boot from the Windows 8 installer, and the first window will contain a "Repair your computer" label.
Then select "Advanced options" and "Command Prompt"
Run commands "bootrec.exe /FixBoot" and "bootrec.exe /FixMbr" to fix the bootloader
If it says "Element not found" then Windows partition isn't active partition anymore, so to make it active again, run the utillity "Diskpart"
In diskpart, type "list disk" and find your disk. It will have a number. Then to select it, type "select disk #" where # means the number you found.
Type "list partition" to select your partition then type "select partition #" where now # means your partition number.
If you selected your partition, type "active" and the partition is active again. Exit by typing "exit"
Now in the command prompt, type "bootrec.exe /nt60 C:" and the commands in the 3rd step just to be sure.
Now you should be able to boot.


Why can't the guest OS (Windows XP) detect the USB?

Open a terminal and execute this command :

sudo usermod -G vboxsf -a $USER

Now the guest should detect the USB device.

Update addressing the circumstance that you have chosen the wrong repository for VirtualBox :

Open Software & Updates ->  Other Software -> Highlight the VirtualBox entry - click on Remove.

Reload to update the repositories.

Completely uninstall VirtualBox :

sudo apt-get purge "^virtualbox-.*"

Download and register the ORACLE public key :

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

Add the ORACLE VirtualBox repository to the software sources :

echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" | sudo tee /etc/apt/sources.list.d/oracle-vbox.list

Update the repositories :

sudo apt-get update

Install VirtualBox 5.0 :

sudo apt-get install virtualbox-5.0

Now reboot the system.

Note for other users reading this answer, in case they use another Ubuntu edition as 14.04 :

You have to replace trusty with the Ubuntu edition you are using when adding the repository !

As of Ubuntu 16.04 the ORACLE public key to download and register has  changed :

oracle_vbox.asc has to be replaced with oracle_vbox_2016.asc !


Bluetooth - can't browse files in ubuntu 12.10

There is a known bug for this at https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1057546 .

The solution suggested by user26381 works fine, and if you don't want to use the graphical interface every time you can make a script something like the below (for a Nokia e72) and add it to your path.   Since the MAC address of your phone will not change, you only need to setup the script once.

SETUP

sudo apt-get install obexfs #install obexfs tool as recommended above
mkdir ~.e72       #make a directory, the name could be anything.  The dot "hides" it from normal file browsing

hcitool scan      #detect the MAC address for your phone assuming that it has been previously paired via the Bluetooth tray icon.

Now create a script with the following contents, using your MAC address and folder name.  In this example the script is in the Gnome scripts folder within my home dir but it could be anywhere.  The advantage of the Gnome scripts folder is that you can execute it via the nautilus GUI.

vim ~/.gnome2/nautilus-scripts/e72    #insert the following two lines in the script...
obexfs -b AC:93:2F:29:75:90 ~/.e72
nautilus ~/.e72 &

You will have to make the script executable using the following command:
    chmod u+x ~/.gnome2/nautilus-scripts/e72

USAGE

Whenever you need to browse the files on your phone just do the following:

Activate Bluetooth via tray icon and on your phone (you would have to do this even without the script ;-) )
Right click on any file or folder in the right-hand pane of Nautilus and execute Scripts -> e72
A new nautilus file explorer window should open, pointing at your phone.


Remove "Link to" from .desktop file display name

The naming is probably coded in nautilus, and hard to change.

What can be done however is to automatically fix it, either without any action from your side, or with a shortcut key. The only limitation is that it would work with a specific set of directories, such as the desktop and an arbitrary number of additional directories (of your choice).

automatically becomes:

What it does

The proposed solution is, at your choice, either:

a background script, automatically looking for "faulty" -named .desktop files and renaming them immediately and automatically, or:
a script, called by a shortcut key combination, doing exactly the same, but only whenever you press the key(s)

The script; background version

I tested the script on processor load, and I could not notice any extra activity (using system monitor) on my elderly system (at least 6-7 years old).

Background version

#!/usr/bin/env python3
import time
import os
import sys

dirs = sys.argv[1:]
# ---you might need to edit the string below to your local (language) version
edit_out = "Link to"
# ---

def edit_link(dr, newfiles):
    for f in newfiles:
        file = dr+"/"+f; text = open(file).read().splitlines()
        for i, l in enumerate(text):
            if all([l.startswith("Name="), edit_out in l]):
                text[i] = text[i].replace(edit_out+" ", "")
                open(file, "wt").write("\n".join(text))

files1 = []
while True:
    time.sleep(2)
    for dr in dirs:
        files2 = os.listdir(dr)
        newfiles = [f for f in files2 if all([not f in files1, f.endswith(".desktop")])]
        edit_link(dr, newfiles)
        files1 = files2

Copy it into an empty file
Save it as rename_links.py
Change if necessary in the line:

edit_out = "Link to"

the string "Link to" by the localized string in your language ("Verwijzing naar" in Dutch)
Test- run it by the command:

python3 /path/to/rename_links.py <directory_1> <directory_2> (etc.)

where you can add as many directories as you like (use quotes if the directory contains spaces)
If all works fine, add it to your startup applications: Dash > Startup Applications > Add the command:

python3 /path/to/rename_links.py <directory_1> <directory_2>

Shortcut version

#!/usr/bin/env python3
import os
import sys

dirs = sys.argv[1:]
edit_out = "Link to"

def edit_link(dr):
    files = os.listdir(dr)
    for f in files:
        if f.endswith(".desktop"):
            file = dr+"/"+f; text = open(file).read().splitlines()
            for i, l in enumerate(text):
                if all([l.startswith("Name="), edit_out in l]):
                    text[i] = text[i].replace(edit_out+" ", "")
                    open(file, "wt").write("\n".join(text))

for dr in dirs:
    edit_link(dr)

The set up is exactly the same as the background version, apart from [5.]:

If all works fine, add the script to a shortcut key: choose: System Settings > "Keyboard" > "Shortcuts" > "Custom Shortcuts". Click the "+" and add the command:

python3 /path/to/rename_links.py <directory_1> <directory_2>

Explanation

The name, as it appears on your desktop, is not the file -name, but the name, as defined in the Name= line of the .desktop file.

The script looks into possible .desktop files in the directories, you used as an argument. If it finds a line, starting with Name=Link to, it replaces (removes) Link to + one space, effectively renaming the visible name of the launcher on your desktop.

Edit

Looking for a "native" solution, I tried Mozilla's add-on Deskcut to see what it does with the name of the link. On both 14.04 and 15.04 it did totally nothing however.


whereis vlc outputs the paths to the executable, which is a file. But you can only cd to directories.
However, the lua directory is at ~/.local/share/vlc/
cd ~/.local/share/vlc/


Dual monitors behaving strangely with ATI Mobility Radeon HD 3650

I had the same issue and found this solution elsewhere:

Edit your /etc/X11/xorg.conf

Section "Screen"
  Identifier "Default Screen"
  Device "Default Video Device"
  DefaultDepth  24
  SubSection "Display"
    Virtual 3840 1080
  EndSubSection
EndSection

The above sample is what I am currently using for the Section block - you will need to edit the Virtual parameter to describe your multi-monitor resolution; in my case it is dual 1920*1080p.

Once you have done this you need to log out (or reboot), then go back into the Catalyst Control Centre (Administration mode) and configure your Multiple Displays.


What is the functional difference between sudo su and sudo -i?

The sudo su command stands for "switch user", and allows you to become another user.  It allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file.

The ‑i (simulate initial login) option runs the shell specified by the password database entry of the target user as a login shell. This means that login-specific resource files such as .profile or .login will be read by the shell. If a command is specified, it is passed to the shell for execution via the shell's ‑c option. If no command is specified, an interactive shell is executed.

Source:ManPage


You can use the USER command to change the user commands are run as. Of course you need to create the user first, so your Dockerfile would contain something like this:

RUN useradd --system -s /sbin/nologin someuser

USER someuser


Cannot boot off of USB Flash Drive to Install Ubuntu

This Answer is assuming that your laptop is using UEFI.
UEFI is the replacement for BIOS. Which provides an abstraction between Operating System and Hardware and is used to boot up your Computer.
Every new computer ships with UEFI as default.

A Bit of Theory

When booting up your computer the EFI System searches the active drives that are connected to your Computer for an executable in the folder /EFI/BOOT.
If such an executable is found the drive is considered to be bootable.

The BIOS on the other assumed that your boot manager is stored in the first section of the hard drive.

What's Happening

UNetBootin configures your USB Stick in the old MBR Style. (Which is that the first section contains the boot manager).
Your UEFInow searches the USB Stick for the /EFI/BOOT/BOOTx64.EFI (or similar) executable and obviously can't find it so it continues, according to the boot order to search the next defined device until it finds one which contains said executable. This is why you can't boot from your USB Stick.

Fixing the Issue

There are two ways to fix your issue.

1:
In order to keep compatibility legacy mode has been built into most EFI Systems which allow to boot from an MBR Partitioned drive. In order to activate legacy mode you will first have to disable Secure Boot because that will prevent you from Activating legacy mode and then you will have to activate legacy mode.
These Settings can be found in your UEFI Boot Configuration (or BIOS) under System Configuration and or Security.

2:
Nowadays most Linux Systems support UEFI Boot. To make sure open your ISO (for Example with Virtual Clone Drive and check that the folder /boot/efi exists. If it does all you have to do is to format your drive to FAT32 and extract the content of the ISO into the root folder of the USB Stick (Copy Paste from Mounted Image or extract with WinRar). note: you still have to disable Secure Boot

I hope my answer has shed some light onto the issue.


How do I access a service running on the LXD provider from another client on the network?

By default the containers won't have networking set up to listen to machines on your LAN, you need to configure your LXD to do so, these resources should help based on your network:

https://insights.ubuntu.com/2016/04/07/lxd-networking-lxdbr0-explained/
https://insights.ubuntu.com/2015/11/10/converting-eth0-to-br0-and-getting-all-your-lxc-or-lxd-onto-your-lan/


Try the following to remove your existing setup and replace it with another desktop environment

Ctrl+Alt+F6

This switches to a full tty scripting terminal, without a GUI.  You can safely make changes to your GUI and desktop from here without restarting your computer.

sudo apt-get remove --purge ubuntu-desktop

This uninstalls, and deletes all the files for, the Ubuntu desktop package, including unity, x, display settings, etc.

sudo apt-get install kubuntu-desktop

Installs kubuntu desktop, a lightweight and powerful integrated desktop environment.  Incredible features when paired with koffice office suite.

sudo apt-get install lubuntu-desktop

Installs lubuntu desktop, another gnome based lightweight desktop.  Best suited for low end hardware.

IMPORTANT EDIT:

I was just thinking about your question, when it dawned on me that your Ubuntu install might not be using your video card, hence the lack of detail you're suffering from.

Check this before anything.  Find this info by opening system settings, then System Details.  A few lines on the first tab describe the devices used by the operating system, including the currently used graphics processor.

If it doesn't match the name of your current GPU, then do some searches about installing that brand of graphics driver on Ubuntu.


Have you tried: System Settings - Keyboard - Select Typing TAB, adjust 'Key presses repeat when key is held down". Experimenting with Delay - try slide it a little to the right (longer). 'Speed' slider, will determine how fast it will retype, once the system understands you want to retype a pressed character, by pressing it 'long enough' following above mentioned setting.


Show different Plymouth screen on boot vs. shutdown

In the script for your custom theme use Plymouth.GetMode() and compare against "boot", "shutdown", "suspend" or "resume".

I.e

if (Plymouth.GetMode () == "suspend")
{
     ShowSuspendBackground();
}

See: https://www.freedesktop.org/wiki/Software/Plymouth/Scripts/


"libgjs0c conflicts with libgjs0" error when using dpkg

libgjs0c conflicts with libgjs0

One of the packages that you have already installed conflicts with the package you're trying to install. The packages libgjs0 and libgjs0c both contain /usr/lib/libgjs.so.0 and assorted dependencies, but these are incompatible versions of the library, because they depend on different Mozilla libraries: libgjs0c is linked with libmozjs 1.8 whereas libjs0 is linked with xulrunner 1.9 (assuming that you're trying to install the package from lucid).

If you're trying to install a binary that's linked against libgjs, you need to have one that's linked against the libraries in your distribution. You may not be able to install a .deb package from an out-of-date PPA or a third-party source intended for Debian. Either grab a package that works on the Ubuntu release you're running, or recompile the source package against your Ubuntu release.


Microphone signal from USB soundcard is silent in any application that uses Pulseaudio, including the Settings

It seems it gets solved by "clean reinstall" of pulseaudio with sudo apt purge pulseaudio && sudo apt install pulseaudio but it had to remove ubuntu-desktop package which I'm not sure if it's OK...


How to solve pkg_resources.VersionConflict error during bin/python bootstrap.py -d

You seem to be working in a virtualenv located in /home/oomsys/demobrun. The error message is stating that setuptools is of version 0.6c11, where 0.7 or higher is required. You can use pip to upgrade the package to the current release:

pip install --upgrade setuptools


You are having problems with 'file permissions'. Every file has a set of permissions attached to it that allow it to be read, written to or executed by users.

Some users can do all three things - read, write and execute. But some can't.

The 0555 indicates that the file you are moving has not got the full set of permissions set for any user. If they were all set so that everyone could do everything, the numbers would be 0777.

How do those numbers work? They represent three bits that can be set for you, 'the group' and everyone else to access the file. In binary arithmetic the first bit set is 1, the next is 2 and the next is 4. So if the file is readable, writable and executable to all it would be 1+2+4 = 7.

You are getting 0555, so you have 1+0+4. So your second bit isn't set for you or group or anyone. Therefore no one has permission to write (or move) that file.

Open a terminal and type 'chmod 755 foo.jpg' and try again. That should give you full persmission on the file if you own it. If it doesn't work, type

chown yourname foo.jpg

You should do some reading about file permissions for UNIX/LINUX type systems. It is what makes it more secure from viruses and malware etc.


Dpkg error processing for installing packages

try

  sudo apt-get remove w3af

it should remove that package and then everything would be normal.

`


Ubuntu touch preview nmcli connection for 3G data throws an error

If you do con up you need to provide id or uuid, but you need to specify also if next parameter is "id" or "uuid".

Short answer: you need to add id parameter before id value:

nmcli con up id "O2 connection 1"

instead of:

nmcli con up "O2 connection 1"    # <--- missing "id"


The progress meter indicates that the installation is still in the downloading stage.

There is no harm cancelling downloads even if there are multiple downloads happening at once, and APT will try to resume, rather than start from the beginning, if you try to download again later.  If this is not working for you, try changing your mirror in your APT sources.  In fact, this may also fix the slow download speed as well.

Once the updates are downloaded, they are installed one at a time.  Cancelling during this installation is not recommended, though it is still possible to repair a partially installed package.


How to control fan speed and temperatures on Asus A8Js laptop?

This forum post might be of use to you. Beware: this is extremely in-depth.

Here is a brainstorm proposing easy fan speed control:


Quit from the middle of password setting process

To view if your root has a password set use:

sudo passwd -S root

This will print out a:

P in the second column if it has a password;
L in the second column if it has a locked password (a password which is impossible to type in) and L is the default on Ubuntu;
NP if it has no password.

To get out of the new password dialog just type wrong passwords: Type a new password and when asked for confirmation for this new password type a different password. The passwords will not match and the program exits with an appropriate error message.

(You can't use signals to quit, because passwd ignores every signal. Except SIGKILL should work, but it is unnecessary and maybe insecure to use here.)


When resuming from suspend, dekstop icons glitch out. (nvidia problem?)

I had the same issue when using the Nvidia driver. You need to restart plasmashell. You can accomplish this with either of these scripts which will run automatically if these instructions are followed.

Method 1: handled by system
Create a file named suspend_resume.sh located in /lib/systemd/system-sleep/
#!/bin/bash
# this fixes issue where desktop icon text is removed after resume using nvidia graphics driver

# suspend section
if [ "${1}" == "pre" ]; then
# put suspend commands here

# resume section
elif [ "${1}" == "post" ]; then
# restart plasmashell
killall plasmashell && kstart plasmashell &
fi

After creating the script you will need to make it executable by running this command.
chmod +x /lib/systemd/system-sleep/suspend_resume.sh

See this link for more information on the bug. https://bugs.launchpad.net/kubuntu-ppa/+bug/1634389

Method 2: handled by desktop
Create a file named graphics_reset.sh in ~/bin/kubuntu/ (or whatever you like, adjust remaining code as required)
#!/bin/bash
#Reset plasmashell after graphics glitch (usually after resume)

#resets plasmashell
kquitapp5 plasmashell && plasmashell &

After creating the script you will need to make it executable by running this command.
chmod +x ~/bin/kubuntu/graphics_reset.sh

Go to system settings > Notifications
Change "event source:" to KWin Window Manager
Select "Graphics Reset"
Check the "Run command" option and browse to the file you created
Click apply

Note: For my setup running these scripts automatically caused an issue where the volume widget would not show any devices and I could not change the volume; however the sound did actually work. There would be a red dash next to the speaker icon. I suppose the script commands are running before the sound drivers are re-established. Adding sleep commands to the script did not solve this either.
Running the script from method 2 manually after resume works and does not cause any issue with the volume widget. There may be alternative volume control widgets that would not have this issue.


Can't switch language in Ubuntu 13.10 lock screen

I have the same problem. And I find out that you can switch between layouts by clicking on layout name on the right side of input field.
I think this problem has the same couse as that one.


Why is there a symlink from /usr/local/bin/ to /usr/sbin?

The likely purpose of this symbolic link is to add the snort command to a directory included in the default list of directories that are scanned for commands by most shell interpreters. This allows users to invoke snort without the need to specify its full path /usr/local/bin/snort or to adjust the value of the PATH shell variable (which is used to determine the list of directories scanned for commands).

You can inspect the current value of the PATH variable with

echo "$PATH"


installing ubuntu over windows7 - want to repartition and switch to UEFI

Don't over complicate this!  It's easier if you start with a clean slate.  Just format (erase) the disk prior to system installation:

When booting from Ubuntu installation media, choose the "Try Ubuntu" option.

Once you are in a live session, open the Disks application.

Choose your disk on the left side column and then click the hamburger menu on the top right of the window and choose "Format Disk..."

You can do a "Quick" erase and for "Partitioning" choose GPT.
(GPT is the partition scheme needed for UEFI installations)

Once the disk is formatted as GPT, reboot the computer for the system installation or just use the installation link on the desktop in the live session.
As long as you are booting in UEFI mode from your motherboard BIOS and not "legacy" or "compatibility" modes, and your disk has a GPT partition scheme, the installation will proceed as a UEFI installation.


Restricting code-server to a specific directory?

The best way to do this would be running code-server inside a container and mounting any directory you'd like accessible.
https://github.com/cdr/code-server/blob/v3.6.1/doc/install.md#docker
docker run -it -p 127.0.0.1:8080:8080 \
  -v "$PWD:/home/coder/project" \
  -u "$(id -u):$(id -g)" \
  codercom/code-server:latest

Change the -u flag to indicate user you'll be running code-server as.


How to verify in my Ubuntu am i using opensource video codec's or not?

I think the page you've linked to says it all:

"x264 is a free software library and application for encoding video streams into the H.264/MPEG-4 AVC format, and is released under the terms of the GNU GPL.

Another indicator, x264 is in Universe, which is free, community maintained software. It looks like there is a non-free counterpart, h264enc, in Multiverse.

http://packages.ubuntu.com/oneiric/x264
http://packages.ubuntu.com/oneiric/h264enc


Ubuntu 16.04 Black Screen with Intel GMA 3650 graphics

I know this thread has been sitting for a bit but, just in case you did not find an answer. I ran into the same issue with an Intel Atom with the GMA 3600 series on-board video chipset. If you can get to the unit via SSH you can try the following.

Edit the Grub file using a txt editor like nano or vi/vim: sudo vim /etc/default/grub
Add nomodeset:

GRUB_CMDLINE_LINUX_DEFAULT="nomodeset quiet
    splash"
Save and exit the file
Update Grub: sudo update-grub
Reboot to check


How to install wifi driver Ralink RT3290
click this link for install the drivers.

Then type in the terminal with out the quotes.
"sudo ifconfig eno1 up" and
"sudo service network-manager restart"


Is Nvidia GPU works when the load is bigger?

You can check and see which of the graphics solutions is in use by executing this command :

lspci -k | grep -EA2 'VGA|3D'

The output shows something like :

lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: i915

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
Subsystem: CLEVO/KAPOK Computer Device 3501
Kernel driver in use: nvidia

When it shows Kernel driver in use: nvidia, you are using the NVIDIA graphics adapter.

Use NVIDIA X Server Settings → PRIME Profiles to switch between intel and NVIDIA graphics.

Of course the NVIDIA graphics drivers and nvidia-prime have to be installed on the system.

Note: Automatically switching between the graphics cards is not supported on Linux systems.


I think that most of the thigs from UbuntuSoftwareCenter are woring ok. If there are some problems with the app you are trying to download you will see it in the comments. If the apps are good coded is other topic and you can't know that unless the software you are downloading is Open Source.


Integrated webcam cannot be used in VirtualBox Guest XP

USB-passthrough for an USB webcam was introduced with Virtual Box 4.3.x. Make sure to install and run the latest version. To make use of USB the following procedures may still be needed:

First make sure we had set up VirtualBox, and our user permissions/groups for USB support:

How to set up USB for Virtualbox?

Some USB devices may need an USB-Filter rule in  Virtual Box to be recognized.

This is done by adding an "empty" USB filter in the USB settings of your machine:

This may already help recognizing your device.

If the device was still not recognized  we may further specify USB properties with a right click on the "New Filer 1". This opens a settings window with some explanatory tooltips for each entry:

The product ID and the vendor ID needed here for your webcam will be listed on

lsusb -v

Read also the Virtual Box manual for an explanation of these settings and how to get them.

For an USB device to be recognized proberly in Virtual Box we may have to upgrade it to the PUEL Version.

Some devices may still not be reliably detected. Rarely the Virtual Machine will be unable to boot when we had defined a filter for a certain USB device. This device then should not be included in the filter rules.


grub rescue prompt after install installing Ubuntu in a dual boot

The easiest way to solve dual boot problems is to use Boot-Repair (IMHO).

What is Boot-Repair?

Boot-Repair is a simple tool to repair frequent boot issues you may encounter in Ubuntu like when you can't boot Ubuntu after installing Windows or another Linux distribution, or when you can't boot Windows after installing Ubuntu, or when GRUB is not displayed anymore, some upgrade breaks GRUB, etc.

Installation and use:

Boot into Ubuntu Live CD or USB
Hit Alt+Ctrl+T to open terminal and run following commands:

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

Once done Boot-Repair will open with two options choose the first option (Recommended repair).

When repair is finished, Save the URL that appeared, Then reboot.

If the repair didn't succeed, Share the URL on askubuntu or any other help forum for more help.


You have to:

Unzip the file:   unzip LIN64_Scout-App_2.18.16.zip
cd Scout-App
./scout-app

Will run without problems i do this at this moment.

Scout run in background if you close it will keep there until you kill. Maybe that is your problem.

best regards.


E: Type 'wget' is not known on line 1 in source list

For the OP's situations :

remove the list first to follow

sudo rm -f /etc/apt/source.list.d/plexmediaserver.list

and add a key of Plex Package

wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add -

and make a list of Plex Package

echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

and then update your apt and install the Plex Package

sudo apt update && sudo apt install plexmediaserver

OR

Try to get Plex Package with repository way.

curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

install Plex Package

sudo apt update
sudo apt install plexmediaserver

and verify your installation

sudo systemctl status plexmediaserver

then config your firewall to allow traffic on Plex

sudo nano /etc/ufw/applications.d/plexmediaserver

and add

[plexmediaserver]
title=Plex Media Server (Standard)
description=The Plex Media Server
ports=32400/tcp|3005/tcp|5353/udp|8324/tcp|32410:32414/udp

[plexmediaserver-dlna]
title=Plex Media Server (DLNA)
description=The Plex Media Server (additional DLNA capability only)
ports=1900/udp|32469/tcp

[plexmediaserver-all]
title=Plex Media Server (Standard + DLNA)
description=The Plex Media Server (with additional DLNA capability)
ports=32400/tcp|3005/tcp|5353/udp|8324/tcp|32410:32414/udp|1900/udp|32469/tcp

saved and update your profile list

sudo ufw app update plexmediaserver

and then allow your firewall rule

sudo ufw allow plexmediaserver-all

verify your firewall rule

sudo ufw status verbose

and then make the directories that will store data of Plex

sudo mkdir -p /opt/plexmedia/{movies,series}
sudo chown -R plex: /opt/plexmedia

so we can proceed it with server configuration and open your browser with type

http://YOUR_SERVER_IP:32400/web

Hope this helps.


How to set LibreOffice to use Persian / Arabic-Indic / Hindi page numbers?

These settings work across all LibreOffice applications and documents, so you can make changes from any of the set of applications.

Changing the locale

You can set Persian as the default for all of your documents or for the current document only.

From the menu bar, Tools >> Options, then expand the Language Settings and click Languages

Change Locale to Farsi. (Note that this is independent of the setting for the user interface above.)

Change CTL to Default - Farsi. This will also automatically check Enabled for complex text layout (CTL) below. CTL handles right-to-left languages.

Check For the current document only according to your prefrence.

Changing the global numeral style

Click on Complex Text Layout on the left side of the dialog and change numerals to Hindi. (not shown in this screenshot)

Use Insert >> Page Number to show the Header/Footer dialog in order to add page numbers to your slides.

Setting numerals to Hindi in the Language Settings lets you use "Arabic" numbers without using an input method editor such as Ibus. In this context, of course, Arabic numerals are 1,2,3...

Is it possible to use Hindi numbers in the slide footer page number function without changing every number to Hindi?

Short answer: not through the GUI settings. Apart from the global number style setting, there does not appear to be any way to modify the function that inserts page numbers.

Interestingly enough, the footer lets you easily change the date to Persian. I believe the page numbers cannot be changed in a similar way because the page numbers appears to be drawn from functions to work with the printer.

The solution is to not use the built-in footer page numbering at all and instead insert your own text shape in the same area with the text set the way you want. For a small number of slides, this would not be too bad; but would not be feasible with more than a handful.

The solution to this problem is to use a LibreOffice Basic macro to insert the page numbers for you. For a short overview of LibreOffice macros and how to use them in your document, please see this answer.

Here is the macro code:

Sub AddPersianPageNumbers

    Dim Doc as Object
    Set Doc = ThisComponent

    'Get the collection of DrawingPages
    Dim DrwPages as Object
    Set DrwPages = Doc.getDrawPages()

    Dim DrwPg as Object
    Dim TxtShp as Object
    Dim TxtPoint as New com.sun.star.awt.Point

    Dim i as Long
    Dim k as Long

    Dim strNum as string
    Dim strI as string
    Dim idx as long
    Dim uni as string

    'Each slide has it's own Drawpage, so go through the collection
    For i = 0 to DrwPages.getCount() - 1

        'Get the Drawing Page and create a TextShape
        Set DrwPg = DrwPages.getByIndex(i)
        Set TxtShp = Doc.createInstance("com.sun.star.drawing.TextShape")

        'Add it to the Drawing Page (must do first)
        DrwPg.Add(TxtShp)

        TxtPoint.X = DrwPg.Width * 0.9
        TxtPoint.Y = DrwPg.Height * 0.9

        TxtShp.Position = TxtPoint
        TxtShp.TextAutoGrowWidth = true
        TxtShp.TextAutoGrowHeight = true

        'Just changing the font is not enough since it will still show as Arabic
        'You can change the locale and ComplexText props for just this para
        'but I couldn't find a way to set the para to be seen as ComplexText
        'That would have been elegant, but instead just convert
        'the page number to a string converted from the Unicode code points

        strI = Cstr(i + 1)

        for k = 1 to Len(strI)
            uni =  "&H66" & mid(strI, k, 1) 'Hindi numeral code points are ascii+660
            strNum = strNum & Chr(uni)
        next k

        TxtShp.SetString(strNum)
        strNum = ""

        TxtShp.CharFontName = "Lohit Hindi"

    Next i

End Sub


NetworkManager tray (nm-applet) is gone after upgrade to 14.04 Trusty

You could use the indicator plugin instead, but you may see frequent crashes. The  crash is caused by the Applications Menus indicator. Add the indicator plugin and, before it crashes, right click on it, choose 'properties' and tick the 'hidden' checkbox next to the 'Application Menus (Global Menu)'  indicator. Then restart the panel with 'xfce4-panel -r'

Instead, I fixed nm-applet by changing the 'Exec' line in /etc/xdg/autostart/nm-applet.desktop to 'dbus-launch nm-applet'


Black screen after boot (with backlight)

Never mind, I reinstalled the Ubuntu and everything is fine again.
Don't know what had happened though.


you can make a dd wrapper script that uses sudo, which will only take your bootloader file. that way, you're not likely to make errors if you just keep using your script.

i'm not sure it's worth it to do it using real permissions.

sample script:

#!/bin/sh
sudo dd bs=4K count=1 if=$1 of=/dev/sdb


Problems instaling Ubuntu 13.10 on a MacBook Pro 11.2

Run the live cd with quiet nomodeset option. This should allow you to see what you are doing.
Did you install alongside OSX or something else? It's not clear what exactly you have done.

What bootloader do you intend to use if not refind? Will you be using grub to manage your startup or something else?


hp deskjet ink advantage 1515 network printer

I own a hp 1515 and i found no way to make it a real 'network printer'. It doesn't have ethernet port, nor wifi capabilities.
If your printer is connected to a Windows machine make sure hp1515 is marked as shared printer over your network. Open Start menu, go to Devices and Printers, right-click on hp1515 icon, go to Sharing tab, check the 'Share this printer' box.
Then go to your Ubuntu machine, find Printer settings (depending on your desktop environment) and add 1515 as a network printer. You need the Windows machine to be running while any printing job, because printing is done through that machine. For easy management of hp printers under linux, make sure you install graphical interface for hplip, like this: Open a Terminal window and type: sudo apt-get install hplip-gui and press Enter.

Or you could try connect the printer directly into usb port of your router (if any usb available on your router) and check 'printer server' settings of your router (it depends on router firmware, usually done in an internet browser using a web interface for the router). If you manage to connect printer directly to your router, you will no longer need the Windows machine, the router will become the printer server and will manage all the print jobs.


Very slow computer, after installing ubuntu 14.04

Check the top and see if you can reduce some of unused applications. Also a bug has been reported w.r.t to graphics https://bugs.launchpad.net/ubuntu/+source/unity-greeter/+bug/1292467


I can recommend the Focusrite Saffire Pro 40 FireWire card. And yes you can use multiple soundcards, with FireWire you can daisy-chain them. With PCI cards like the M-Audio Delta 1010 you can add as much cards as you have slots available and you should be able to use multiple cards at once.
USB is not an option, at the moment there are basically no supported USB2 soundcards with that much IO.

Best,

Jeremy


Ubuntu 12.10: Package libc6-dev-i386 is not available

This may not be the proper solution but it will download the package for you.

Type "software sources" in the dash, and change your server to "Main server". This is because some (one of which may be yours) do not maintain the package on their servers. Refer to the image below showing the source changed to "Main server". Then do a sudo apt-get update and then sudo apt-get install libc6-dev-i386. Repeating, this is not the proper solution, but will probably download the package for you.


When i open my webbook it need a log in password and i forgot it

What distro are you running? If it's ubuntu based, when you turn it on you can hold down the shift key as soon as you power it on to access the grub menu. When you are in the grub menu, select advanced options. Then select ubuntu (recovery mode). Now go to the root option. It should be near the bottom. Next, remount the root partition with this command:

mount -rw -o remount /

Now to reset the password, just type

ls /home | grep `^d' | passwd $USER

Then type your password and you are done! Hope this helps.


Issues with dual booting windows 10/Ubuntu [solved]

You probably need to change your boot mode in your bios settings for your "rig." Try changing the boot mode from legacy to UEFI or EFI (some also have a both mode which you can try) and let me know if that works. Furthermore there should be a bios key that will allow you to decide your boot order as well. Let me know if any of that was helpful.


Where to get complete offline installer for openssh-server?

I know that this is an old question, but I stumbled upon it and it came very close to solving my problem on Ubuntu 14.04.

I thought I would post some additional instructions to add to the answer that was given above by yossile. I had to make a few minor modifications to their instructions for complete success.

Download the openssh-server package (this grabs the .deb file):

sudo apt-get download openssh-server

Download the dependencies for openssh-server:

sudo apt-get build-dep --download-only -o dir::cache=PATHFORDEPS openssh-server

PATHFORDEPS is where you want the downloaded dependencies to be saved.
the --reinstall option has been removed. It was throwing an error in 14.04, but the remainder of the command works as it should without it.

Download additional dependencies (the above command didn't grab these):

sudo apt-get download openssh-sftp-server openssh-client

Install OpenSSH Server (be sure all .deb files are in the same folder):

sudo dpkg -i *.deb


Ubuntu 18.10 does not boot correctly until I disable touchpad

Is your machine custom built?
This problem may be caused by the power supply:

  In the end I slowly became suspicious of the power supply in this computer. It is hard to quantify exactly why, but the suggestions from "pqwoerituytrueiwoq" got me looking at the voltage levels provided by the "sensors" linux command-line program, and the voltages reported by the BIOS, and somehow I decided that it was worth replacing the power supply.  I bought a small (500W) new power supply made by what I feel is a reputable company and made the swap.
   GREAT NEWS: After replacing the power supply, the crashes completely stopped! I wanted to wait a while just to be sure, but it is now a few weeks since the new powersupply went in, and I haven't had a single crash since. The power supply is not something that I would normally worry about, but in this case it totally fixed my problem.

See here for full post.


How to clone /boot and LUKS-encrypted root partitions to a new disk with a different partition table

Spent a couple hours testing everything and it all works exactly the same as before, so I'm calling this solved, and since I just found out that not only can I answer my own question but I'm encouraged to, here it is:

Boot to live USB and install Xubuntu onto the new drive from scratch, creating new partitions as desired but being sure to use the exact same username, pw, &c as the original.
Run update, dist-upgrade, clean and autoremove in apt-get on the new installation.
Reboot to old HDD, run same updates on old install
Reboot to live USB, run lsblk to check which is where, then:

apt-get install cryptsetup
cryptsetup luksOpen /dev/[old root partition] [old partition's name]
cryptsetup luksOpen /dev/[new root partition] [new partition's name]
mount /dev/mapper/[old partition's name] /mnt/oldroot
mount /dev/mapper/[new partition's name] /mnt/root
cp /mnt/root/etc/fstab [somewhere safe]
cp -axfv /mnt/oldroot/* /mnt/root
cp [somewhere safe]/fstab /mnt/root/etc/

shut down, disconnect the old drive and the live USB, and boot to the new drive

Unlike what other answers to similar questions suggest I found there's no need to mount either boot partition from the live USB, nor any need to bother with mount -B/chroot/update-grub, and no need to touch fstab except to back it up and restore it. Surprised it worked since this was a shot at the dark at 3am, but it did. Hopefully this helps someone else down the line!


Where can I find the sudo commands to work on the ubuntu grub file?

You should use the sudo command and with whichever program you want to use to open the file. This looks like:

sudo -H gedit /etc/default/grub

It asks for a password. Type your password and press Enter.

gedit is a text editor.

You can also use grub-customizer. It's a GUI utility to customize GRUB.

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer