To remove the login option, delete the file plasma.desktop from within /usr/share/xsessions.

You can do that by carefully running

sudo rm /usr/share/xsessions/plasma.desktop

from the terminal of your choice.


Install older release of tensorflow-model-server via APT


How to remove nautilus side bar on some instances

There are some specifics that can be set in Nautilus.
Use Alt+F2 and run gconf-editor go to > apps > nautilus > preferences > (you can edit a lot of things here)

When done. Exit and restart nautilus by nautilus -q the changes will then take effect.


Do I need to create root, swap, and home partitions in a specific order?

I guess not... But i always create the "/" partition, then home partition and last the swap...


Two finger swipe to go back in browser in precise?

Adapting from Jakob's very complete question on a similar topic, this is what I did:

Install Easystroke (run sudo apt-get install easystroke on the terminal, open Ubuntu Software Center and search for "easystroke" or just click the following button):
Start Easystroke. To add a new action click the panel icon and in the Actions tab click Add Action. Use the following parameters on "Type" and "Details" (feel free to use a name and gesture that you prefer):
Set a mouse gesture by clicking Record Stroke and then while pressing mouse button 2 move the mouse the way you like for this action in future.
If you like it add Easystroke to Startup Applications by marking as checked "Autostart easystroke" in the Preferences tab.

P.S.: I don't know why, but in my machine I could only record and execute strokes by holding both (physical) touchpad buttons. I thought this was due to the fact that my mouse was configured for left-handers, where the principal button is the one to the right, but switching to "normal" did not solve it.

To configure Easystroke, you can check its documentation as well as this Tips & Tricks section.


Display screen resolution not correct in Ubuntu 14.04

Try installing drives for intel graphics driver.They are available on its site.(But usually Intel drivers are installed by default in Ubuntu.I use Intel Graphics and I had no problem.)
Here's a link to a similar problem
Intel Graphics


Type in terminal: sudo apt-get install -f

Follow next instructions.


I suggest you to:

BACKUP ALL YOUR DATA.
Partition your usb flash drive:

1 fat32 partition containing your new bootable ubuntu system (use Unetbootin for instance).
1 ext4 partition containing an image of your old ubuntu system.

Boot your USB flash drive.
Install the new system.
Mount & Chroot the image for using your old system.


Can I hide the Firefox title bar AND still see the close/minimize/maximize icons?

Firefox version 60 comes with an inbuilt client-side decoration (CSD) option which gets rid of the title bar but keeps the window control buttons (minimise, maximise, close).

If you have Firefox 60, go to "Customise" screen and disable "Title Bar" option at the bottom.

Then you should see something like this:

As a side note, the pointy white corners that appear after turning off the 'Title Bar' option, can be removed by the following steps:

Open about:config in a new Firefox tab.
Accept the risk and continue.
Type mozilla.widget.use-argb-visuals in the search field.
Check that 'Boolean' is selected.
Click the '+' button to add the preference setting.
Restart Firefox.

Source: article on OMG! Ubuntu


pyaudio installation error: "linux/limits.h: No such file or directory"

Run the command sudo apt-get install portaudio19-dev
Then use:
pip install pyaudio


New to Xubuntu, Confused about the trash bin

The trash bin stores files in the device they were deleted from.

If you press Ctrl + H in your File manager, you'll see .Trash-1000 directory on each partition.

So you are correct. If you format one drive, thrashed files will be kept on another device.


Is there an fsck command for checking the entire HDD?

fsck
  Runs on partitions.

My recommendation is to run

parted /dev/sda 'print'

Then use that to run on each filesystem/partition based from the results.


How do I fix a Calc error message "Filled cells cannot be shifted beyond the sheet?"

You've said you only have three columns. But your error relates to rows, not to columns.

I could reproduce your error by going to the bottom-most row, row 1048576, of the spreadsheet and typing something in a cell in that row. After that, if I tried to insert even one row anywhere in the sheet, I got the error. Similarly, if I filled a cell in row 1048566, and try to add eleven rows above the row in which I entered data, I get the error. I don't get the error if I insert only nine rows or ten rows above that row. Note how the row with the filled cell is pushed down to exactly the end of the sheet when you add ten rows.

In other words, your sheet can have only 1048576 rows. If you work at the top of the spreadsheet, as  most of us normally do, we don't notice the limitation of 1048576 rows.


You can't change it.

To solve you problem you need to migrate your root partition (13 GB) to a bigger partition on your new 160 GB drive.

Try also alternative howto's like Migrate from HDD to SSD or similar.

Partition your drive about 40 GB for system, everything else data.
take care where you save your data, especially big files like movies, they should be stored on data, not on root.
move your root partition to the new drive with rsync
mount your drive from a rescure disk and chroot to it.
install grub on the new drive's MBR.
remove your old disk
reboot.


Run ifconfig in your terminal.

The numbers RX bytes and TX bytes should tell you the number or received and transmitted bytes respectively.


Boot from your live DVD/USB with the option "Try Ubuntu" again.
Use your favourite partition manager (Gnome Disks or GParted) to delete the previously created partitions.
Rerun the Ubuntu installation as if the previous installation didn't happen.


What is important when assigning an app to a .desktop launcher?

A .desktop launcher follows freedesktop.org desktop entry and menu standards.
Some standard keys are:

Name= Specific name of the application.
Comment= A short description of the application.
Exec= Command to launch the application.
Icon= Icon for the application (an icon provided by your icon theme or an absolute path to an image file).
Type= Types of desktop entries, supported ones are Application, Link or Directory.
Terminal= true/false, whether the application runs in a terminal window.
Categories= Categories to which the application belongs (Main Categories, Additional Categories and Reserved Categories).
StartupWMClass= is a very useful one.

For a detailed list of specifications, visit freedesktop.org.

P.S. Various GUI applications which can be used to create application launchers, e.g. 'Main Menu' (aka alacarte) or 'MenuLibre' (menulibre), just creates a .desktop file in an appropriate location (e.g. ~/.local/share/applications/) under the hood.


You can define directories that should be omitted in /etc/updatedb.conf. You can use regular expressions, citing GNU:

  --prunepaths='path...'
  Directories to omit from the database, which would otherwise be
  included. The environment variable
  PRUNEPATHS also sets this value.
  Default is /tmp /usr/tmp /var/tmp
  /afs. The paths are used as regular
  expressions (with find ... -regex, so
  you need to specify these paths in the
  same way that find will encounter
  them. This means for example that the
  paths must not include trailing
  slashes.

So change the following line in /etc/updatedb.conf:

PRUNEPATHS="/tmp /var/spool /media"

to:

PRUNEPATHS="/tmp /var/spool /media .*/\..*"

should work just fine ;-)


Wifi Speed VERY SLOW - Ubuntu 20.04 HP Elitebook 745

Please see: Installing Broadcom Wireless Drivers
You almost certainly have the wrong driver. I suggest that you do:
sudo apt update
sudo apt install -y bcmwl-kernel-source
sudo modprobe -r b43
sudo modprobe wl

Any improvement?


Disable unity launcher to launch in full screen?

You can either install Compiz Settings Manager or Ubuntu Tweak(Unity Tweak if you are in Ubuntu 13.10) and disable/enable the dash blur.


Hi, I'm new to Ubuntu & can't get my DVDRW to work at all, please help

There is a strong possibility that a wrong-state error is present. You may have cleared the drive via the hardware while the computer was doing a shutdown. This creates a wrong-state error.

If a disk is removed from a optical drive, while the system is shutting down, I have found that the driver can become confused, and upon restart, the system still thinks there is a disk in the drive, when in fact it is empty. You will see the drive icon in the Launcher, even though the drive is empty. System cannot read a empty drive that is thought to be occupied.

Just right-click upon the drive icon, and eject the drive. Then close the drive and insure that the icon is flushed from the Launcher. Then Restart the system. Then install a disk and see if it reads. This has fixed many problems for me.

The above is a clear defect in the command routing software in the hardware layer. All other OS's check the contents of the drive at boot time and flush the active mode if nothing is in the drive, regardless of the last state record. Ubuntu has not fixed this error and it has been present forever. I always make sure the drive is empty before I shutdown the computer, to preclude this error.

Hope that helps, have fun and good luck!


Even root does not have the privileges to open a GUI application in your personal X session.  Log out of the root account and start synaptic with your own privileges, perhaps using gksudo.

root@dopeboy# exit
you@dopeboy$ gksudo synaptic &


Missing ability to change the size of launcher icons

The option to change the size of the Launcher icons is only available in Unity, while you seem to be running Unity2d. Log out, click the cog wheel icon (might be a circle now), and select Ubuntu as session, and log back in.

It's also possible to reduce the icons size in Unity2d, but the procedure is a bit advanced.
How can I change the size of Unity 2D launcher icons?


To answer your question literally ("Run two commands at same time and pipe to third command
")

You would need to put at least one of the LHS commands into the shell background using &, and group them so that the combined standard output may be redirected ex.

{ cmd1 & cmd2; } | cmd3 -i - -i -

Note that & is different from && (which waits for cmd1 to exit, then conditionally executes cmd2).

You could replace the command group { ... ; } with a subshell ( ... ) if you prefer. Since the shell has only one standard output and one standard input stream, this will merge the outputs of cmd1 and cmd2

To answer what you actually seem to want

To redirect the outputs of two separate commands as two separate input streams in bash, you can use process substitution:

cmd3 -i <(cmd1) -i <(cmd2)


reveal file in default file manager with command line

This works for me having nemo as default:

gtk-launch "$(xdg-mime query default inode/directory)" ./folder/file.txt

You can create an alias for it if you like.

See:

Find the default application for a certain extension
Running a .desktop file in the terminal


Fresh install of ubuntu18.04 gets stuck at the purple screen

The official drivers don't build with the 5.3 kernel. That's a shame on Ubuntu maintainers. Luckily you can install drivers from a PPA. Run in a terminal:

 sudo add-apt-repository ppa:graphics-drivers/ppa
 sudo apt update
 sudo apt install nvidia-driver-440

and reboot with the 5.3 kernel. It should work.

I had the same trouble with the 390 drivers, but someone told me that the latest do work.

If nothing helps, then stick with the 5.0 kernel for now and report a bug to Launchpad.

The 5.3 kernel must have problems with Nvidia on some systems. I have reports that the PPA drivers or even the official ones do work in some cases.


Computer shuts down after some hours of sleeping while unplugged

For several people, this was an issue with NVIDIA drivers and was solved by installing the latest proprietary drivers.

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

(or sudo apt-get install nvidia-current)

I hope it will work for you!


How do I change the icon theme in Ubuntu?

You can change icon theme with Ubuntu Tweak.

Install Faenza Icon Theme

Hit Ctrl+Alt+T to open terminal and run the following commands one by one:

sudo add-apt-repository ppa:tiheum/equinox
sudo apt-get update
sudo apt-get install faenza-icon-theme

Install Ubuntu Tweak:

After installation of Faenza run following commands in terminal to install "Ubuntu Tweak".

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

How To Change Icon Theme With Ubuntu Tweak?

Once installed Hit Super key (windows key) to open Unity dash and search for "ubuntu tweak" and open it.
Go to tweak tab and click on "Themes" button.

Hare you can easily change the icon theme


Thanks for your support Charles, I think the mentioned problems by Gnome disks is not an issue. The second scan reports no problems, So I think everything is OK. It seems that I respond not properly, I don't understand how to do it on the right way. I hope this is ok.
        The result of e2fsck -c devsda1

root@xubuntu:~# e2fsck -c /dev/sda1
e2fsck 1.44.1 (24-Mar-2018)
Checking for bad blocks (read-only test):   0.00% done, 0:00 elapsed. (0/0/0 errdone
/dev/sda1: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/sda1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda1: 232348/14655488 files (0.3% non-contiguous), 3171431/58607360 blocks
root@xubuntu:~#


The difference between the two versions of Inkscape in Ubuntu repos

The deb packages available for each release can be seen with

https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=inkscape

where note only one for each release

Snap packages you can have a version installed from each channel (so multiple snaps available is to be expected). Three are available I note

https://snapcraft.io/inkscape

Snap & deb packaged versions are to be expected for some programs (not all though)


Go to Settings -> Universal Access -> Typing -> Typing Assist (AccessX)  and turn off "Bounce Keys" setting.


You need to set the font for the Terminal:

Start the Windows Subsystem for Linux
Right-click on the window and select the properties
Select one of the fonts with Powerline in its name
Confirm with "OK"


No extensions appearing for gnome-shell 3.11.2

Is it possible your just using an outdated version this is 'bleeding edge' so it not hard to believe. Keep in Mind I did Zero research before answering this was just my first thought, also I'm a month late finding this and I just learned of Gnome 3.11 last night


How to change the font style of terminal prompt in Ubuntu MATE 16.04

(Some of the screenshots below reveal use of a particular text editor. If this is problematic for the reader, they are hereby begged to consider the use of this editor by the post author an act of blameless naivety)

The terminal prompt is a part of your user environment called PS1. It is defined in your .bashrc file, which you can edit to change it. You can see what it is currently with echo $PS1. Here is mine:

$ echo $PS1
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;35m\]\w\$\[\033[00m\]

This makes my prompt look like this compared to some command...

Making a coloured prompt is achieved by uncommenting this line in your .bashrc

#force_color_prompt=yes

so it looks like this:

force_color_prompt=yes

This causes the prompt to be set by the line after if [ "$color_prompt" = yes ]; then

which by default is:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

The colours are set by these codes:

light green \[\033[01;32m\]
white \[\033[00m\]
light blue \[\033[01;34m\]

and then back to white. You can see they are the same apart from the number in the second set of brackets. Here's a few more escape codes to choose from:

Blue        0;34     Light Blue    1;34
Green       0;32     Light Green   1;32
Cyan        0;36     Light Cyan    1;36
Red         0;31     Light Red     1;31

Here are some other options to make your prompt stand out

---All tested in MATE terminal on Ubuntu MATE 16.04---

When applying these changes to a white prompt, I leave this line commented:

#force_color_prompt=yes

And edit the fourth line of this section of .bashrc:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

If you want to apply underline, and highlight effects to a coloured prompt, then as explained before you need to uncomment force_color_prompt=yes, and edit the second line instead of the fourth. In the examples below, I am referring to the "fourth line" and "second line" from the snippet above.

Bold prompt:

Change the fourth line to include the escape sequences \[\e[1m\] (bold) and \[\e[0m\] (stop bold)

PS1='${debian_chroot:+($debian_chroot)}\[\e[1m\]\u@\h:\w\$ \[\e[0m\]'

Not a big difference - I include the line above for comparison.

In the colour escape sequences "light" colours (with 1 instead of 0 as shown in table above) are considered bold. I tried using the bold sequence on the coloured prompt, but it seems MATE terminal doesn't allow this to make it even more bold. I also tried it using setaf code but still no result. Maybe I'm getting something wrong. I also couldn't manage an italic prompt, and I didn't even try a blinking prompt - that's just not OK.

Underlined prompt:

Change the fourth line to include the escape sequences \[\e[4m\] and \[\e[24m\]

PS1='${debian_chroot:+($debian_chroot)}\[\e[4m\]\u@\h:\w\$ \[\e[24m\]'

For underlined coloured prompt, uncomment force_color_prompt=yes and add the \[\e[4m\] sequence to the second line twice. The existing reset codes will terminate the effect:

PS1='${debian_chroot:+($debian_chroot)}\[\e[4m\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\e[4m\]\[\033[01;34m\]\w\[\033[00m\]\$ '

Highlighted prompt:

Change the fourth line to include \[\e[7m\] and \[\e[27m\]

PS1='${debian_chroot:+($debian_chroot)}\[\e[7m\]\u@\h:\w\$ \[\e[27m\]'

For colour highlighting, uncomment the #force_color_prompt=yes and change the colour escape codes in the second line to have a 4 instead of a 3, for example:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;42m\]\u@\h\[\033[00m\]:\[\033[01;44m\]\w\[\033[00m\]\$ '

To get the highlighting all one colour, remove the first reset and the second colour sequence:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;42m\]\u@\h:\w\[\033[00m\]\$ '

For more exotic options, see my favourite AU question and this site for a detailed guide.

Obviously I recommend making backups as you play around , but if you ever FUBAR your .bashrc you can just copy a fresh one from /etc/skel:

cp /etc/skel/.bashrc ~/.bashrc


How can I copy and combine several .txt lists in alphabetical order?

Just:

sort -u *.txt >output.txt

Or with uniq:

sort *.txt | uniq >output.txt

sort will sort all input lines given by all *.txt files. uniq removes dublicate lines (the same as sorts -u flag).

The file output.txt contains:

Amy
Bob
John
Steve


How to install Ubuntu 12.10 in window xp with fedora already installed?

Burn the Ubuntu ISO to a DVD. Reboot with the DVD in the system. Choose "install Ubuntu", answer all the questions and 1 of those questions will be about partitioning. Choose manual, select and delete the partition(s) Fedora is on tell it to mount / and any other partitions you want.

What you also can do is from within Windows XP is to remove the partitions Fedora is on and not allocate those partitions (delete them but do not format them). During install you can then choose to install Ubuntu onto the unallocated space.

These are the 2 simplest options.


ejabberdctl not found in bash Ubuntu(installing ejabberd)

ejabberdctl is owned by root with 550 permissions installed in /usr/sbin meaning that non-root users can not execute the binary. Try:

sudo ejabberdctl register admin localhost mypassword

sudo elevates your privileges to root in that terminal (after entering a password) thus giving you access to the binary.


Just extract (right click > extract here) and run (doubleclick the extracted file)  it as described here.


Building OpenSceneGraph 3.4 from source Ubuntu

As discussed in the comments, OP is open to using PPAs instead of building from source.

The OpenMW PPA provides OpenSceneGraph 3.4 as it is one of OpenMW's dependencies. To install OpenSceneGraph 3.4, you run:

sudo add-apt-repository ppa:openmw/openmw
sudo apt update
sudo apt install openscenegraph-3.4


Telemetry: Is there some statistics about Ubuntu desktop usage provided by Canonical?

There's none (that I know). Few reasons:

Telemetry was introduced only in 18.04, so there's no way to pick the data from previous versions easily
Even if, according to their Official Telemetry Blog post opt-in rate was only ~67% (and thank you, Canonical for making this opt-in!)
Even if they measured downloads (which many often measure) downloads doesn't reflect usage, since some ISOs are often used for virtual machine

I'm afraid your best bet is to look into some stats like browser ones, game platform ones and join the dots togthter for approximate results. There's no report that has exactly what you're looking for I'm afraid.


Yes, Sudoku comes with 16.04 (and 14.04) by default.


Here you go, taken from the Seahorse source:

from gi.repository import Gtk, Gio

icon_theme = Gtk.IconTheme.get_default()
def get_pixbuf_from_themed_icon(name, size):
    icon = Gio.ThemedIcon.new_with_default_fallbacks(name)
    icon_info = icon_theme.lookup_by_gicon(icon, size, 0)
    return icon_info.load_icon()

pixbuf_lock = get_pixbuf_from_themed_icon("changes-prevent-symbolic", 48)
pixbuf_unlock = get_pixbuf_from_themed_icon("changes-allow-symbolic", 48)

win = Gtk.Window()
win.resize(300, 300)
win.connect('delete-event', Gtk.main_quit)

vbox = Gtk.VBox(False, 4)
img_lock = Gtk.Image.new_from_pixbuf(pixbuf_lock)
vbox.pack_start(img_lock, False, False, 0)
img_unlock = Gtk.Image.new_from_pixbuf(pixbuf_unlock)
vbox.pack_start(img_unlock, False, False, 0)

win.add(vbox)
win.show_all()
Gtk.main()

Only problem is the dark version. I couldn't translate the create_spotlight_pixbuf function to Python.

You might also want to look at the GtkLockButton.


Logitech Touchpad T650 problem: working fine on Ubuntu 14.10, but not on any other later version

To get the "old" behavior (before kernel 3.19) you can create /etc/modprobe.d/logitech-t650.conf containing:

options hid_logitech_hidpp disable_raw_mode=1

Then either reboot or reload the module. This will prevent the driver from enabling "raw mode" which would make the driver responsible for processing touch events and instead rely on the touchpad itself to do touch event processing.

You can also try newer Ubuntu versions (with newer libinput), or try to play with the xinput/libinput properties on more recent versions of Ubuntu (using xinput list-props "Logitech Rechargeable Touchpad T650" and xinput set-prop "Logitech Rechargeable Touchpad T650" ..., see Arch Wiki).


Is it possible to run Ubuntu on a Nexus 7?

Here is how you do it! Fresh off the press:

https://wiki.ubuntu.com/Nexus7/Installation

and here's a guide for reporting bugs:

http://chrismwayne.com/?p=94


Is a device broken if it fails to show up under lsusb?

The thing is probably dead, lsusb should list devices that are unresponcive but might not. The fact that you can see it in windows just means windows knows somthing's connected to the port, but not that it works.

Pull up the properties on the device in windows and see if you can find the system messages for it; it should, if functional, come up with a device name and the logs should show a device install request which would imply it's working and you should find drivers for it. Windows may also tell you that the device blew an error (giving you evidence it's faulty) should tell you something like "error: 43" if windows thinks it's screwed

GL


how to recover missing files on shotwell 0.12.3-0ubuntu0.1?

It sounds like you chose 'Import in Place' when you added the photos. For future reference, you want to choose 'Copy Photos'.

If this assumption is correct, then you have a chance at recovering the files, as long as you haven't continued to use the memory card. There are several duplicates of this question, you are facing a simple 'recover deleted files' problem already answered here. I've used testdisk following the how-to linked from that answer and it's pretty easy. I recovered all the files no problem. TestDisk is in the Software Center, you don't need to download it from a third-party site.

The only other thing to check is where you have Shotwell set to import to. In the remote chance that you did import properly, but then disconnected the destination drive, check Shotwell's preferences in Edit -> Preferences -> Library (tab) -> Library Location -> Import photos to: and make sure that is set to the Pictures directory, or some other location that is mounted. If you did a normal install of Ubuntu onto a single hard drive (this is the most common setup), then you can ignore this entire paragraph and just hit the link to the TestDisk answer in the paragraph above. Good luck!


Your problem is that the space character between "if=/Macintosh" and "HD/Users/nickzieno/Downloads/ubuntu-14.04.1-desktop-amd64.img tells your shell that it has TWO parameters. Either quote the whole thing (sudo dd "if=/Macintosh HD/Users/nickzieno/Downloads/ubuntu-14.04.1-desktop-amd64.img"  of=/dev/rdiskN  bs-1m) or use backslash to escape the space (...Macintosh\ HD/...).

Also I think that the N in /dev/rdiskN should be replaced by a digit, and bs-1m should be bs=1m


Can't install the wireless driver in HP Pavilion dv2419us

You probably have the b43 card like the hp dv5000 has.
try this:
Either go to package magager and install linux-firmware-nonfree and run commands below or
if the package manager does not find the firmware file then goto:
packages.ubuntu.com/lucid/all/linux-firmware-nonfree/download
download the linux-firmware-nonfree deb file from one of the mirrors listed
go to the download folder and click on the file you downloaded it should open up in Gdebi
if it does not then you need to install Gdebi (read here https://help.ubuntu.com/community/InstallingSoftware)
once linux-firmware-nonfree is installed then:
open a terminal window and type:
sudo (modprobe -r b43) without the parenthesis
then type:
(sudo modprobe b43) with no paranthesis

should fix it.


There are no packages for trusty in these PPAs. Remove the confronting PPAs to solve the error.

Open 'Software Sources' and go to 'Other Software' tab and choose the desired PPA from the list (in your case the glimpse-hackers and shnatsel PPAs). Afterwards click on Remove to remove them. Refer this link to know more.

You can also use command-line. see How can PPAs be removed?


How to get rid of a notification stuck on screen?

You need to open Chromium, go to the advanced settings, find the Notifications settings, find the web site these notifications are for, and disable the notifications. You may also just disable notifications entirely, for web sites in Chromium.

There is also an advanced setting to keep Chromium running in background for some "apps," which is likely keeping the process running, and these notifications up.


SoftEther VPN Server can't connect during set up.

I had the same problem till I found this https://www.softether.org/4-docs/1-manual/3._SoftEther_VPN_Server_Manual/3.3_VPN_Server_Administration#3.3.6_Listener_Ports

Instead of hitting enter the first time, enter 'yourIP':5555


Why does backup fail with permission denied (in /var/backups)?

Try change your backup location to your user folder /home/[username]/backup. Your existing user account might not have permission accessing the /var/backups. Otherwise, you can use chown and chmod command to make /var/backups folder accessible by your account.


How to get back the »open parent« button in 11.10?

The Gnome Dev's think that the Gnome 2 interface overcomplicates matters.  That's perhaps a judgement call.

Perhaps the new short-cut key Alt + Up Arrow is something you can use.

Nautilus 3 automatically opens all folders in a tree - so you can click on any parent - they call this "breadcrumbs"

There is also a little arrow to open-up sub-folders below the parent:


By default, rsyslog uses traditional timestamp, which in date command's format would be:

%b %d %H:%M:%S

This is enabled by the following line in /etc/rsyslog.conf:

$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

To enable high precision timestamping, comment out the line:

# $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

which will make rsyslog timestamping in the RFC 3339 format.

The RFC 3339 format can be simulated by the date command:

% date '+%Y-%m-%dT%H:%M:%S.%6N%:z'
2016-06-05T18:27:58.721607+06:00

Or even shorter:

% date '+%FT%T.%6N%:z'
2016-06-05T18:29:32.569776+06:00

Or using the native --rfc-3399 option:

% date --rfc-3339=ns
2016-06-05 18:31:50.897557592+06:00


It turned out that I needed to not include the source tar-ball, with the command

 debuild -S -sd


Themes won't uninstall from Global Themes in Kubuntu 20.04

I deleted look-and-feel/ and desktoptheme/ directories from ~/.local/share/plasma
And themes disapeared!


Server installer says 'continue without network' instead of 'continue' at network config part. It shows my three ethernet ports

Turns out the ethernet cable was plugged into the wrong port.


Install Numpy for Python3.4.0 on Ubuntu 14.04.01 LTS

Open the terminal and type:

sudo apt-get install python3-numpy

python3-numpy is a fast array facility to the Python 3 language.


Permission denied for using some files or copying files to desktop

You could do something in bash easily enough, if you're not concerned about loosing www-data as the owner of files.

sudo find /home/{username} -user www-data -exec chown {username} "{}" \;


Open a terminal and follow the commands below:

Install git

sudo apt-get install git

Clone the repository

cd
git clone git://git.code.sf.net/p/perfmon2/libpfm4 perfmon2-libpfm4

Start the compiler in perfmon2-libpfm4

cd perfmon2-libpfm4
make

Install

You have three options, choose one

Install with make, the standard way

sudo make install

Create a package with debuild and install with dpkg

sudo apt-get install dpatch swig
debuild -i -us -uc -b
sudo dpkg -i ../libpfm4_6.0_amd64.deb
sudo dpkg -i ../python-libpfm4_6.0_amd64.deb

and if you want the development packages

sudo dpkg -i ../libpfm4-dev_6.0_amd64.deb

Create a package and install with checkinstall

sudo apt-get install checkinstall
sudo checkinstall


Change gsettings for other (all) users remotelly

Remember that each user can have their own preferred applications. That said, if CFengine allows you to run arbitrary commands you can make an script to edit /usr/share/glib-2.0/schemas/com.canonical.Unity.gschema.xml as described here. Is recomended that for your script you use an XML library that interprets the XML files and allows you to edit them easily.


14.04 - Proprietary wireless card driver on MBP installs on USB, not on HD

Although it was done on a different MacBook Pro model the answer provided here works for 14.04 on the MacBook Pro 13" Late 2011.

  Download the b43updated.zip file to a usb flash drive then drag and drop the file > to your ubuntu desktop. Right-click it and select Extract Here.

  Open a terminal and do:

sudo mkdir /lib/firmware/b43
sudo cp Desktop/b43_updated.zip/*  /lib/firmware/b43
sudo modprobe -rv b43
sudo modprobe -v b43

  if it does not come on reboot.


Download and install the mono-parallel 2.10 deb package.

After installing the deb file paste this in the terminal (Ctrl + Alt + T)

source mono-2.10-environment

After this your terminal will look like

  [mono] /var/dev/mono @

Source


How do I determine the total size of a directory (folder) from the command line?

The command du "summarizes disk usage of each FILE, recursively for directories," e.g.,

du -hs /path/to/directory

-h is to get the numbers "human readable", e.g. get 140M instead of 143260 (size in KBytes)
-s is for summary (otherwise you'll get not only the size of the folder but also for everything in the folder separately)

As you're using -h you can sort the human readable values using

du -h | sort -h

The -h flag on sort will consider "Human Readable" size values.

If want to avoid recursively listing all files and directories, you can supply the --max-depth parameter to limit how many items are displayed. Most commonly, --max-depth=1

du -h --max-depth=1 /path/to/directory


Before downloading the sophos install files, note that you need to accept the end user license agreement, and have an sophos account. so I am not able to provide a direct link. Start here to download sophos:

Sophos Anti-Virus for Linux

After download save it in your Downloads folder. Right click on the file, and select extract here. After that, open your terminal by pressing CTR-ALT-T, on your keyboard. type in cd Downloads/sophos-av. To start the installer, type in:

sudo sh ./install.sh

Follow the setup wizard, and your done.


In general if you have grey screen through xRDP is either you are using an unsupported desktop environment or you have a typo in your ~/.xession or startwm.sh file.

You have to configure your linux machine to tell him which desktop environment will be used when connecting through xrdp.  You specify this information by either issuing the following command

> echo xfce-session > ~/.xsession

If you use this approach, and you have multiple users that needs to use the xRDP, each user will need to login locally on the Ubuntu machine and execute this command

IF you have multiple users that will need to use the XRDP solution, a better option is to let the system automatically create the file. To achieve this,you will add the following line  echo xfce-session ~/.xsession  in the startwm.sh file (after the fi line)

Your file will look like this :

    if [ -r /etc/default/locale ];  then
        . /etc/default/locale
          export LANG LANGUAGE
        fi

  #Add this line in the file
  echo xfce-session > ~/.xsession

  . /etc/X11/Xsession

Restart your system and give it a try and should be good to go...

Note : You can use mate-desktop as alternate desktop if you do not want to use xfce.

Detailed description on how to have xrdp working with xfce can be found here


How to install libncurses.so.5 in Ubuntu 20.04?

You have to update your package lists, as this package is still available from universe pocket.
Install them with:
sudo add-apt-repository universe
sudo apt-get install libncurses5 libncurses5:i386


Open Alacritty terminal emulator on keyboard shortcut

I am going to assume you are using the default Ubuntu desktop environment which is GNOME.
Under GNOME you can go to the keyboard settings and add a custom keyboard shortcut and assign something you like to launch Alacritty.


Users Restriction ( prevent users executing files )

Set the umask property of the user to 113.

The user file-creation mode mask (umask) is use to determine the file permission for newly created files. It can be used to control the default file permission for new files. It is a four-digit octal number. A umask can be set or expressed using Octal values

Calculate umask for any user as follows :

The octal umasks are calculated via the bitwise AND of the unary complement of the argument using bitwise NOT. The octal notations are as follows:

Octal value : Permission
0 : read, write and execute
1 : read and write
2 : read and execute
3 : read only
4 : write and execute
5 : write only
6 : execute only
7 : no permissions

if you want to restrict your newly created user from executing any file, set his umask to 113( it means he can only read and write the file, his group can only read and write the file while anybody else can only read the file)

The default umask of any user in linux is 002 and for root user is 022.

You can default umask for any user like this:
1) open   /etc/profile
2) modify the following line "umask 022" according to the default permissions you want to give to your user.

Check the man page of umask for further reference

man umask


how to find a valid Private ip address of the machine out of all the interfaces?

Why don't you use simple ifconfig {interfacename}?

To get only the IP-Address I would do:

ifconfig eth0 | grep inet | grep -v inet6 | awk '{ print $2 }'


To make system working as you want you have to upgrade from 16.04 LTS to 18.04 LTS.
Below are the dependencies for 18.04 LTS:

Package: libfreetype6-dev (2.8.1-2ubuntu2)
depends
...
libpng-dev  PNG library - development (version 1.6)

Compare with dependencies for 16.04 LTS.


Software Updater removed laptop-mode-tools after upgrading

You can reinstall laptop-mode-tools

sudo apt-get install laptop-mode-tools

The package is still present and also available for Utopic, Vivid and Wily.


Dual boot windows on ssd and ubuntu on hdd

I have the same configuration as you have, and I confirm it is possible.

I bought the laptop with Windows 10 installed. I created empty space for Ubuntu using Windows 10 and it's partitioning tool.

Then I install Ubuntu. During installation, I chose installer settings that allowed me to define the partitions as I wished. I specifically installed the SWAP partition on HDD and the rest of Ubuntu on empty space on SSD.

So in general, I would recommend to install Windows 10 first as you wish. Then partition with Windows tool to create empty space for Ubuntu. It makes Windows happy with it's own partition, probably less risky than partitioning directly from a third party tool while Windows is shut down. Last, use Ubuntu installer to define your partitions as you wish. Installer will show clearly Windows partitions, the different drives, the empty space on each drive.

But before doing anything, backup your data!!


How can I keep alive my FTP connection (over curlftpfs)?

You could create a bash script that does a loop and sleeps for 10 seconds, after that it should run touch /mnt/ftp/tmp and then rm /mnt/ftp/tmp.

#!/bin/bash
while [ "true" ]
do
  touch /mnt/ftp/tmp
  rm /mnt/ftp/tmp
  sleep 10
done


How to change chromiums windows buttons to gnome defaults?

You can try the following..
Open a new tab in Chromium and type chrome://settings/

Go to Appearance and click in "Use system title bar and borders"

Cheers.


Can I use dd to verify unpartitioned disk surface?

The drive is defective; RMA it.  With 449 reallocated, you don't need to bother with any more checks, but if you really want to, it is best to run the long smart selftest using the disk utility.

Also sda3 is the third partition, so it is not unpartitioned space.


Installing packages from repositories

OPUS is packaged in Ubuntu (including 18.04 LTS). All you need is to search on packages.ubuntu.com for opus.

And you will get the following packages:

  Package libopus-dev
  bionic (18.04LTS) (libdevel): Opus codec library development files
  1.1.2-1ubuntu1: amd64
  ...
  Package libopus0
  bionic (18.04LTS) (libs): Opus codec runtime library
  1.1.2-1ubuntu1: amd64
  ...
  Package opus-tools
  bionic (18.04LTS) (sound): Opus codec command line tools [universe]
  0.1.10-1: amd64

So I suggest to install these packages from repositories:

sudo add-apt-repository main
sudo add-apt-repository universe
sudo apt-get install libopus-dev libopus0 opus-tools

Manual compilation (bad idea)

Enable Source Code repository in Software & Updates (software-properties-gtk).

Install opus build-dependencies:

sudo apt-get build-dep libopus0 opus-tools

Download and compile new opus (are you sure that 1.2.1 is better than 1.1.2-1ubuntu1?):

cd ~/Downloads
wget https://archive.mozilla.org/pub/opus/opus-1.2.1.tar.gz
tar -xf opus-1.2.1.tar.gz
cd opus-1.2.1/
./configure
make
sudo make install

Download and install opus-tools (exactly the same version as in repository):

cd ~/Downloads
wget https://archive.mozilla.org/pub/opus/opus-tools-0.1.10.tar.gz
tar -xf opus-tools-0.1.10.tar.gz
cd opus-tools-0.1.10/
./configure
make
sudo make install

Note: the sudo make install is bad idea too, consider to use checkinstall instead.


Wifi regression on 16.04 Centrino Wireless-N 1000

WIFI current regulatory domain

It seems my WIFI country code for the Kernels current regulatory domain wasn't set.

Update that and reboot:

sudo nano /etc/default/crda

REGDOMAIN=UK

New upstream kernel

Probably more important, I also tried a new upstream kernel

I saw WIFI bug-reports that were fixed with a new kernel. Read more about upstream kernels here.

Download and install the packages that corresponds to your architecture (e.g. AMD64, kernel 4.6-rc7-wily)

linux-headers-4.6.0-040600rc7-generic_4.6.0-040600rc7.201605081830_amd64.deb
linux-headers-4.6.0-040600rc7_4.6.0-040600rc7.201605081830_all.deb
linux-image-4.6.0-040600rc7-generic_4.6.0-040600rc7.201605081830_amd64.deb

sudo dpkg -i *.deb
sudo reboot

It seems to have solved my problem.


Xserver not starting on Ryzen 3800x + RTX2070

I figured it out!
My /etc/X11/xorg.conf was apparently the issue, I just moved it to /etc/X11/xorg.conf.backup and xorg figured it all out by itself.


How to update Visual Studio Code in Ubuntu 20.04 LTS without downloading the full setup?

After installing, you should have the following file:
/etc/apt/sources.list.d/vscode.list
with this content:
deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main

This will allow you to update it with apt
sudo apt update
sudo apt upgrade


Two game-changing things I've learned since then, that sort of resolve the matter:

at daemon already runs jobs that fell behind schedule eg. due to server outage
Using this property, anacron already sits on top of the crontab facility, and as bundled by default cannot schedule tasks at the hour/minute granularity, only month/day in its global config file in /etc (root owned).


Check the .desktop configuration files under ~/.local/share/applications and /usr/share/applications.
Look at the contents these files to see if there are any bad entries.  Specifically, look for "New Application" and whether or not the exec field is blank, since those are the specific errors you are getting.
To speed up the search, you can try to pick out the ones that aren't immediately recognizable as other applications.


Ubuntu 14.04 + nvidia-331-updates makes a blank desktop screen

This worked for me:

Ubuntu 14.04: nvidia drivers cannot be installed

Basically check if your using your local update server or the main one. I finally got mine to at least show Unity after changing the update server to main and reinstall the 331-updates.

You may also want to blacklist the open-source Nvidia Nouveau to avoid conflicts

echo "blacklist nouveau" | sudo tee -a /etc/modprobe.d/blacklist.conf


network manager says "device not managed"

wired device not managed

Most probably your interface appears in /etc/network/interfaces. By default, NetworkManager does not manage interfaces that appear in /etc/network/interfaces. You can change this behaviour.

To do this - in a terminal:

sudo nano /etc/NetworkManager/NetworkManager.conf

change the line managed=false to managed=true

Save, stop and start network manager:

sudo service network-manager restart

Alternatively, you can remove the interface from /etc/network/interfaces.

backup the current interfaces file:

sudo cp /etc/network/interfaces /etc/network_interfaces_backup

Then open the file:

sudo nano /etc/network/interfaces

Delete everything in that file and copy and paste the following:

auto lo
iface lo inet loopback

Save, stop and start network manager:

sudo service network-manager restart

Double check in network manager (click on the indicator) that you have Enabled Networking ticked and you should also force deletion of old "wired connections" and selecting the new wired connection shown in the network manager indicator.


Error installing NGINX package on ubuntu 18.04

You already have nginx installed so you have to remove that version to be able to build and install from source.

Check for the new install of nginx and remove it

dpkg -l nginx*

You should see the version 1.14.2, remove it with sudo dpkg remove nginx-1.14.2, and be sure you use the right version number.

Now do sudo apt update and sudo apt upgrade to make sure they are no issues.
Now remove the old version sudo apt purge <nginx-1.14.0>
Now build that new version and install and if any issues run sudo apt install -f


I know this is an old post, but I just had a similar problem.  I was ultimately able to get it to work at 30Hz with a second, lower resolution monitor attached, and then at the full 60Hz when I switched the HDMI cables.  Hopefully this helps the next person to run into this.


some reason @google @amazon are in my firefox

Those are search shortcuts for Top Sites introduced in Firefox v63.0.

  Added search shortcuts for Top Sites: Amazon and Google appear as Top Sites tiles on the Firefox Home (New Tab) page. When selected these tiles will change focus to the address bar to initiate a search. Currently in US only.
  (source)

(originally posted as a comment below the question by @dsstorefile1)


How can I install Ubuntu Saucy Server with BTRFS?

Look for the installer log files.

Maybe it's refusing to mkfs over an existing filesystem; the check and override flag were added to mkfs.btrfs recently.

I know you've fixed it already, but for anyone else, you can use the wipefs command to remove a filesystem signature and make a device available for partitioning (wipefs with no flags is harmless).


is there other program to make ubuntu apps besides quickly?

You can choose whatever you want. Quickly is just a set of templates and commands that start standalone programs.

I do all my programming with Gedit, Glade and the GNOME Terminal. But you could replace Gedit with any other texteditor or even a bit more of a IDE, like Geany or Eclipse (among many others). Maybe even Anjuta is an option, it has embedded Glade.

It all depends on with what tools you feel comfortable, not someone else. That's why you should test and try different setups to see what fits your needs, not what someone else tells you is the "best" solution.


You may configure vsftpd to serve local users but also virtual users. For that check your /etc/vsftpd.conf.

To list virtual users, check file in folder /etc/pam.d/ starting with vsftpd, my is vsftpd.virtual but most probably you have once created this file.

cat cat /etc/pam.d/vsftpd.virtual
auth required pam_pwdfile.so pwdfile /etc/vsftpd.passwd
account required pam_permit.so

This means that your virtual users should be listed in file /etc/vsftpd.passwd

cat /etc/vsftpd.passwd

To list local users using vsftpd, check /etc/vsftpd.conf for line with something like

userlist_file=/etc/vsftpd.allowed_users

You can also make list of denied users, so it depends what you want this list for, be ware of that.

For more information check out man vsftpd.conf instead of man vsftpd.


Unknown chipset and kvm: disabled by bios

It usually means that virtualisation support is disabled in the motherboard's firmware. It's often disabled by default.

Depending on what your motherboard is and what firmware version you're running, you will likely be able to find the option in the BIOS and turn it on.

If you're not running virtual machines, you don't really need to worry about it.


Created new pair of GPG Keys good for 1 wk - Why do I need to make Revocation Certificate

Good operation security and manners.  I've been using pgp since I first picked it up on an usenet feed some 30 years ago.  Just to review, a certificate binds an identity to a key pair.  If you lose your private key, or it's been compromised, it's good practice to revoke it immediately before someone else uses it to read your encrypted data or usurp your digital identity.  If the revocation key is pre-generated, you don't need access to the private key to generate a revocation key.  You can just upload the revocation to a keyserver.  IMHO, you should be using subkeys to test with and keep your master key protected and intact.  I use subkeys of my pgp key for code signing, another for ssh use, and another for my email signing and encryption.


If I typealias I get
guiverc@d960-ubu2:/de2900/lubuntu_64$   alias
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'

which shows how the la command is interpreted.  ls does not include the '-A' parameter.
from man ls

-a, --all
do not ignore entries starting with .
-A, --almost-all
do not list implied . and ..


Failed to upgrade ubuntu 12.10 to 13.04 beacause package size mismatch

Have you tried doing it via the GUI it may be easier?

Make sure you backup, it may cause you some frustration later on if not.

Start off with do-release-upgrade -c

if this fails You may need to install the update-manager-core package if your distro is no longer supported.


What the -exec in `find ... -exec ...` do?

-exec is an option of find. What's happening here is all files matching *.swp are removed one by one. {} is the full path and file name, not sure about trailing ;. But the first term of find should be a directory or path to one. To learn more at the terminal type man find. man manuals can be searched using the apropos command.


How do I check if my root password (login) is disabled?

You can use the passwd command:

# passwd -S
root P 11/04/2014 -1 -1 -1 -1
# passwd -l root
passwd: password expiry information changed.
# passwd -S
root L 11/04/2014 -1 -1 -1 -1
# passwd -d root
passwd: password expiry information changed.
# passwd -S
root NP 11/04/2014 -1 -1 -1 -1

From man 1 passwd:

   -S, --status
       Display account status information. The status information consists
       of 7 fields. The first field is the user's login name. The second
       field indicates if the user account has a locked password (L), has
       no password (NP), or has a usable password (P). The third field
       gives the date of the last password change. The next four fields
       are the minimum age, maximum age, warning period, and inactivity
       period for the password. These ages are expressed in days.

The data shown is stored in /etc/shadow, the file which holds the encrypted passwords.

For example, after each of the above passwd commands, the states were:

1:root:$6$............long hash...............::::::
1:root:!$6$........same long hash.............:16478::::::
1:root::16478::::::


I would recommend you to run 'route -n' where you can see your gateways. Here you will have the IP of the gateway (or gateways) you are using now. Type this IP to access to the router.

It is difficult to guess from you question the problem, we really do not know how you are connected to your router (wireless? a second ethernet card?) But if you can connect to a different router and you are using only one ethernet card, probably you are in the wrong network.


How to disable GDM from being automatically started?

For Ubuntu 18.04 this worked for me:

  Disable gdm
  This will prevent gdm from loading on boot and login is via console.

systemctl set-default multi-user.target

  Using this method, gdm can still be started manually with systemctl start gdm

  Check the systemd default with

systemctl get-default

  Usually this will be graphical.target and can be reverted with systemctl set-default graphical.target

Source: https://wiki.debian.org/GDM#systemd


ufw is enable but still be able to surfing web

Your web browser initiate outgoing connection. Ufw by default is blocking incoming connection. If you want block all web browser traffic you could add this rule:

sudo ufw deny out http
sudo ufw deny out https

Or you can change default policy to deny outgoing :

sudo ufw default deny outgoing

Now all your outgoing traffic will be blocked, until you allow something by the rule


How to package a net-beans java project for Ubuntu

You can pakage it as per debian packaging guidelines , here is the documentation


Ubuntu 14.04 Nvidia propriatery driver install

There seems some issue with optimus dual video systems. You need to open your terminal and enter the commands below:

First remove current Nvidia installation.

sudo apt-get purge nvidia*
sudo apt-get purge bumblebee*
sudo apt-get update
sudo apt-get dist-upgrade

Install Kernel header if didn't already

sudo apt-get install linux-headers-generic

Then install bumblebee using below commands:

sudo add-apt-repository ppa:bumblebee/stable

For more up-to-date nvidia drivers, you need to add another PPA. As of 12.04, this is still necessary for Nvidia GT 6xxM cards. It may be optional for the GT 4xxM and GT 5xxM series on 12.04. When in doubt, just install it. The command is:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

sudo apt-get update

Install Bumblebee using the proprietary nvidia driver:

sudo apt-get install bumblebee bumblebee-nvidia

Reboot or re-login

If you have 32-bit applications like Wine, and run 11.10 Oneiric or later, you will need extra libraries:

sudo apt-get install virtualgl-libs:i386

Allow yourself to use Bumblebee by adding yourself to the 'bumblebee' group. (replace $USER by your username)

sudo usermod -a -G bumblebee $USER

Reboot or re-login to apply the group changes If you'd like to run a program on the nvidia card now, use the optirun program:

optirun firefox &

Also please look into this thread:
http://ubuntuforums.org/showthread.php?t=2075423


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

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

I suppose in your scenario, the expectation would be that someone was shutting all your machines down at (roughly) the same time, and that in any case the 'keyserver' was only available on the local network.

(My HTTP server is on the public internet, but I've limited access using GeoIP and my ISPs IP ranges, which might provide some protection if I'm lucky.)

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

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


I think Snort is what your looking for.

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


You have not specified a file reader. You need to either use visudo or nano (which Ubuntu uses as default file editor for visudo instead of vi, in a totally non-confusing way).

For example:

sudo visudo
sudo nano /etc/sudoers

Why should you use visudo over other methods? Because unlike other text editors, it validates the syntax of the file upon saving, preventing potentially crippling access problems.


Sometimes the drives firmware fails, and that might make the drive unable to read disks.  You may want to check with the manufacturer of the drive if a new firmware is available.
You also want to try a lens cleaner.


How to change the size and order of  the launcher panel?

Its now very simple to change the launcher size in 12.04:

How to resize the Unity launcher?

There is a similar excellent answer for moving icons in the launcher:

Is there an easy way to rearrange or move the icons in the Unity launcher?


HPLIP / HP Device Manager: "Print job has completed", but nothing happens (HP Laserjet Professional P 1102w)

I had a similar problem with Ubuntu 18.04.1 and hplip 3.18.7. Installing hplip 3.18.6 solved the problem.

My HP LaserJet M1132 Multifunction Printer is detected and configured properly with hplip 3.18.7, and hp-check shows no errors nor warnings, but a Cups test page stays in the queue with state "Filter failed". In /var/log/cups/error_log I see:

D [29/Aug/2018:17:42:31 -0300] [Job 13166] prnt/hpcups/HPCupsFilter.cpp 644: DEBUG: SHIVA inside the while loopprnt/hpcups/HPCupsFilter.cpp 648: DEBUG: imageProcessorStartPage failed result = 2
D [29/Aug/2018:17:42:31 -0300] [Job 13166] STATE: +connecting-to-device
D [29/Aug/2018:17:42:31 -0300] [Job 13166] STATE: -connecting-to-device
D [29/Aug/2018:17:42:31 -0300] [Job 13166] STATE: -media-empty-error,media-jam-error,hplip.plugin-error,cover-open-error,toner-empty-error,other
D [29/Aug/2018:17:42:31 -0300] [Job 13166] PAGE: 1 1\r
D [29/Aug/2018:17:42:31 -0300] [Job 13166] PID 3566 (/usr/lib/cups/filter/hpcups) crashed on signal 11.

See also https://bugs.launchpad.net/hplip/+bug/1788706

You can download hplip 3.18.6 from here, then install it as usual, with sh hplip-3.18.6.run. Don't install it as root, use the same user you used to log in (and be sure that user is in the sudo group).

If you find any problem during installation, specially downloading your printer driver, run hp-plugin.

Afterwards, running hp-check should show no errors (and preferably no warnings as well). Test your setup, e.g., by printing a test job from Cups.


How to set a shortcut to change to specified language (Gnome 2)

That should be easy to do by using the setxkbmap command and keyboard shortcuts:

setxkbmap us for USA English
setxkbmpa ru for Russian
setxkbmap uk ...not sure is that's Ukranian

etc.

Just assign shortcuts to these commands, and they should work regardless of what DE you use.


Have you tried using the "additional drivers" tool (also called "jockey"?). If you have a nvidia graphics card you could try using genuine nvidia drivers instead of the open source version. If you can get into jockey, try to switch some settings. Hope that helps.


Just changed /etc/initramfs-tools/initramfs.conf :

DEVICE=eth0
IP=163.172.xx.xx::163.172.7.1:255.255.255.0::eth0:off


Install Eclipse Classic 4.2.1 in ubuntu 10,04

Eclipse doesn't really need 'installation' if you download it from the Eclipse website. You can simply extract it from the terminal like so:

tar -xzf elipse.tar.gz

Once extracted, your home directory is a good place to put the eclipse program folder.

Alternatively, you can choose to have the package manager install Eclipse by running:

sudo apt-get install eclipse

Although, that will effectively require you do download it again.


Simply start the command below

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'il'), ('xkb', 'us')]"

to correct the values and check with

gsettings get org.gnome.desktop.input-sources sources


Tomcat7 is listening port but not processes requests

Core problem was that tomcat listens to ipv6 tcp port. I tried to get to my page via ipv4 adress. So i created setenv.sh in /usr/share/tomcat7/bin with single line

  JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true"

and restarted tomcat via

sudo bash tomcat7 restart

in /etc/init.d
Then checked my port again with

  netstat -na | grep -e 8080

and saw, that ipv4 is using now

tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN

And after few minutes i could get to my index.html

Thanx  @Idaho06 for

netstat -na | grep -e 8080

I would never found problem without it


Keyboard and touch-pad stopped working after shutting down the computer while it was installing updates

You can try to chroot into your system from the live CD and continue the upgrade.

Run the live CD and start a gnome-terminal (Alt + F2 → gnome-terminal).
Issue the following command to mount your system (change sda1 to whatever your system partition name is - the output of the command fdisk -l should give you an idea):

sudo mkdir /mnt/ubuntu
sudo mount /dev/sda1 /mnt/ubuntu

You need to bind a couple of local directories to the chroot environment:

for i in proc sys dev; do sudo mount --bind /$i /mnt/ubuntu/$i; done

Enable DNS resolving in the chroot environment (should give you internet access):

sudo cp /etc/resolv.conf /mnt/ubuntu/etc/resolv.conf

Now it's time to get into your broken system (note, that you will be the almighty root user in the system, so be careful what you do):

sudo chroot /mnt/ubuntu

Try to continue the update:

apt-get update
apt-get upgrade

You'll maybe told to also try

apt-get -f install

If that fails you can also try to continue the configuration of unpacked packages:

dpkg --configure -a

After you've tampered with the system, you type exit to leave your system and then do the above steps in reverse order:

sudo rm /mnt/ubuntu/etc/resolv.conf
sudo umount /mnt/ubuntu/dev
sudo umount /mnt/ubuntu/sys
sudo umount /mnt/ubuntu/proc
sudo umount /mnt/ubuntu

Reboot without the CD and hope for the best.


How to gain root access via a web browser?

You should change the title for your post. Answer to question in title is "you can't". Answer to body depends on OS (which you should specify) - but

You DONT need root access to do this. You need the access that the web server has to write the files - on Linux Apache systems this is typically www-data or https or apache. + but if you are using my modules it could be anything - you need to find this out from your web provider.

There are security risks associated with doing this but you could also use FTP to allow "all users" write perms to the parent directory.


You don't have to use sudo to run Wine applications. It changes the user ID to root's ID. And running Wine as root is very, very bad idea!  Use just

./PhotoshopCS5Launcher.sh

And it will start.


Wine (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, including Ubuntu. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop.WineHQ

In addition to allowing the user to install and run Windows applications just like you would in Windows, Wine provides these benefits over Windows.

Wine makes it possible to access Windows applications remotely.
Wine makes it economical to use thin clients: simply install Wine on a Linux server, and you can access these Windows applications from any X terminal.
Wine can also be used to make existing Windows applications available on the web by using VNC and its Java/HTML5 client.

What is missing in Wine?

Wine does not support Windows USB drivers. Windows drivers are of zero use in Wine. Wine will only present the devices that are working in the Linux system.

Reference: Ubuntu Community Docs: Wine


No compiling is required as there is a PPA that I believe is run by a Debian developer dedicated solely to asciiquarium. Open a Terminal window and paste the following two commands:

sudo add-apt-repository ppa:ytvwld/asciiquarium
sudo apt-get update && sudo apt-get install asciiquarium

And then the application is yours to run:

Enjoy :)

Note: This PPA now has packages available for all versions of Ubuntu from Precise to Cosmic!


Copy paste inside w3m command line browser in ubuntu server

If you're on a server, use screen which provides a mechanism to copy program output/display content independently. This SO post provides a quick guide:

  Ctrl-A Esc,
  arrows to get to the start of the URL
  Enter to start selection
  arrows to get to the end of the URL
  Enter to end selection and push it into screen's buffer
  paste it into a shell using Ctrl-]

You should use screen (or tmux) for a lot of reasons if you're on a server. This is one of them.


How to get Ubuntu Server installed from Ubuntu Minimal?

That functionality is provided by tasksel (unsurprisingly, it's in the tasksel package):

sudo apt-get install tasksel
sudo tasksel

this will present you with a menu of options, such as:

 [*] OpenSSH server
 [ ] DNS server
 [ ] LAMP server
 [*] Mail server
 [ ] Openstack
 [ ] PostgreSQL database
 [*] Print server

You should then be able to select the ones you want, and tasksel will handle the package installation.


Wireless LED doesn't stop blinking on an HP dv5 with an Atheros AR5007

Unfortunately, this driver doesn't have an option to turn that blinking off, but you should be able to control the leds via the sys interface and put the commands in a startup script:

Test the commands from the command line:

echo none | sudo tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null
echo none | sudo tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null

This should completely turn off led triggering on data transfer. If you want it to reflect your radio status (on/off), you can try this instead (I'm afraid I cannot test this):

echo none | sudo tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null
echo phy0radio | sudo tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null

[If phy0radio doesn't work, you can run cat /sys/class/leds/ath5k-phy0::rx/trigger to get a list of supported triggers for the led you can try.]
Once you know which commands to use, run them automatically when the wireless interface comes up:

Create and open a new file in gedit from the command line:

gksu gedit /etc/network/if-up.d/ath5k-led-trigger

Now paste the following into the file (replace the value to echo and your wireless interface name if necessary):

#!/bin/sh -e
# Called whenever an interface comes up. Sets led triggers for
# tx and rx of the ath5k module.

# Only care about the wireless interface "wlan0"
if [ "$IFACE" != "wlan0" ]; then
    exit 0
fi

# Also exit, if /sys is not yet mounted (not sure
# if that's even possible, but checking shouldn't hurt).
if [ ! -d "/sys/class/leds/ath5k-phy0::tx/trigger" ]; then
    exit 0
fi

# Echo the two triggers
echo none > "/sys/class/leds/ath5k-phy0::tx/trigger"
echo none > "/sys/class/leds/ath5k-phy0::rx/trigger"

Save, quit gedit, back at the command line make the script executable:

sudo chmod +x /etc/network/if-up.d/ath5k-led-trigger

Next time you reboot, the blinking should be gone. If anyone else knows of a better way to run those two echos on system start (Upstart job?), feel free to comment or suggest an edit. :-)


connect to an authenticating sock5 proxy?

Try using the Foxyproxy addon, this should help with your problem.

Thanks, hope this helps!


How to get al the disk space for ubuntu 12.04

See, as this was asked, and has been asked many times before, you are likely to get what you want by performing a simple search. However, here is one such question

How can I increase a partition's size?

When you view a question, there is a list of Related Questions on the right sidebar. Taking a look through those is also generally useful if the current question does not give you the result.


The command line interface for NetworkManager is nmcli command.
You can bring up or down connections with nmcli, or use ifup and ifdown commands bring up or down entire interfaces.


Here is the solution

A secure attention key (SAK) or secure attention sequence (SAS) is a special key or key combination to be pressed on a computer keyboard before a login screen which must, to the user, be completely trustworthy. The operating system kernel, which interacts directly with the hardware, is able to detect whether the secure attention key has been pressed. When this event is detected, the kernel starts the trusted login processing.
The secure attention key is designed to make login spoofing impossible, as the kernel will suspend any program, including those masquerading as the computer's login process, before starting a trustable login operation.

On Ubuntu 12.04, it is Alt+Print+K for me.


No, gnome-terminal doesn't have such options.


You can get id like this:

 nmcli con show  | grep develop
 develop-vlan              179375b8-2bbf-4eeb-a50a-6710f22cb441   vlan

and connect like this:

 nmcli con up id develop-vlan


You'll have to generate traffic by performing an ARP-request packet injection, using aireplay-ng.

You'll need to use an authenticated client's MAC Address in the following commands in order to make them work, otherwise the injected packets are going to be ignored by the access point.

First perform a fake-authentication on the target access point: with airodump-ng running in the background, open another Terminal with Ctrl+Alt+t and run:

aireplay-ng -1 0 -e <SSID_name> -a <access_point_MAC_address> -h <associated_client_MAC_address> mon0

Then, open another Terminal and run:

aireplay-ng -3 -b <access_point_MAC_address> -h <associated_client_MAC_address> mon0


This is a known bug. You can follow the suggestion in comment #3:

Add the mentioned PPA to your system (using a terminal):

sudo apt-add-repository ppa:ubuntu-audio-dev
Update the package list:

sudo apt-get update
Install the mentioned package:

sudo apt-get install linux-alsa-driver-modules-$(uname -r)
Reboot and hope for the best.


So I figure out if I restart Gnome Shell (Alt then r then Enter) it works again. So take that as a solution for now.


You definitely didn't download 20Mb but 255 bytes. 20mb is the download speed.

cat your file, [text/html] shows clearly that its not a compressed archive

$ cat mahout-distribution-0.7.tar.gz

you will find some information inside.


How do I Install the latest Virtual Box from the command line?

I would use gdebi for this:

sudo apt-get install gdebi-core

Then you can install any debian installer file with ...

sudo gdebi virtualbox-5.1.22.deb

Advantage: this will also check and install dependencies.


dd is a 1:1 copy, it copies the entire device regardless what's on it. If you only copy a partition (sdf1) it's unlikely to be bootable as the bootloader usually resides on sdf MBR.

If the free space is zeroed, you could save the free space by use of gzip.

To zero the free space, you may use:

mount /dev/sdf1 /mnt/tmp
dd if=/dev/zero bs=1M | split -b 1G - /mnt/tmp/zerofile
sync
rm /mnt/tmp/zerofile*
umount /mnt/tmp

To create a gzip compressed image:

dd if=/dev/sdf bs=1M | gzip > win7.img.gz

To restore from that image, it's:

gunzip < win7.img.gz | dd of=/dev/sdf bs=1M

Other alternatives are partimage or ntfsclone (in case of ntfs), which only store files, not free space, however the result may not be bootable as it's not a 1:1 copy.


Cannot "Apply Changes" in Software & Updates>Additional Drivers

This was the same case for me, but the drivers that worked on the bootable USB are still on the USB. If you first open the bootable USB in a file explorer and then search with CTRL+F for dkms and install that .deb file, and then search for bcmwl and install that .deb,

Then your card will work again.


Graphics on boot split into three sections

Apologies for this poor answer, but I reinstalled using the guide posted here and followed the script I linked at the bottom. I no longer experience the graphics issue, but that is because I completely reinstalled.


Century Link ISP only supports Microsoft OSes

You might be helped by the Firefox extension User Agent Switcher

Then if a website asks what you're running, Firefox can disguise itself as Internet Explorer running on a Windows machine. Though, if the website requests something like ActiveX (a feature of only IE), Firefox will not be able to process the request.


GTK2.0 Theme problem with button foreground

You probably need to be using the GTK3 themes then.

Many applications don’t support GTK2 any more.  Most themes are compiled with both GTk3 and 2 variants to support newer and older applications


I can't see the "Something else" option while installing Ubuntu

It seems that your Ubuntu system is now corrupt.

You should delete all the Ubuntu partitions (do a backup of your important files) and install Ubuntu 13.04 in a new partition.

You can find more information to accomplish this on this site:

How to resize partitions?
How do I set up a dual boot Windows and Ubuntu?


I found a workaround, I installed:

sudo apt-get install hidpi-daemon

(https://github.com/pop-os/hidpi-daemon/)

Maybe was the latest update of gnome-control-center.


You have two issues so I will address the second one first:

  But when I click the shared folder in windows 7 to login with Ubuntu
  login, it failed.

  Login: ubuntu hostname\account name Password: my ubuntu account
  password

There is a step missing from your link. A step that was not necessary in Ubuntu 14.04 but is in Ubuntu 16.04. There are two passwords for a given user - the local login password for that user and the samba password for that user. You need to add your user name to the samba password database:

sudo smbpasswd -a your-user-name

The passwords can be the same but it has to be defined in samba.

  Windows 7 cannot discover the shared folder by its own, but when I
  type "\ubuntu hostname\", I can see there is a shared folder from
  ubuntu, looks good.

This one is perplexing. It's not a normal name resolution problem since you can access the machine by name.

Did you by any chance disable SMB 1.0/CIFS File Sharing Support on your Win7 box? No SMB1 on the client end of SMB means no netbios name "discovery" on that box. It doesn't affect name resolution since the server can still be accessed by name but it does affect hostname "browsing" and fits your symptom.


How ot install ubuntu on a USB stick and make 100% sure you won't mess your internal HDD install?

Instead of installing a complete Ubuntu system to your memory stick, you should install a live image with persistence enabled (i.e. files in the home folder are kept). You can do this by running:

gksudo usb-creator-gtk

Then, choose the Ubuntu ISO image, and choose the amount of space you want to be reserved for persistence.

You may need to install the program first for this to work. If you get an error or nothing opens, run the command:

sudo apt-get install usb-creator-gtk

When it's finished installing, run the original command again.

If you're doing this from Windows, you can use the Universal USB Installer to achieve the same result. Just chooose the ISO image and the USB stick, and choose the amount of persistence you want.


Bash script using eyeD3 to remove extra tags from mp3 files

Well it was a lot of searching before I posted the question but soon after that I read something that referred to gawk.  After installing, the script ran perfectly.  I highly recommend this method. Very fast.

Thank you to Takkat for showing me the correct way to post code.


1st Deploy an instance.
2nd Install LAMP.
Devstack or Openstack has a RESTful Web Service Endpoint to Handle all of its Features and Here is the Reference: http://developer.openstack.org/api-ref-objectstorage-v1.html

This reference is for creating containers, managing accounts, and creating objects, then you can use your application to upload the data to these objects and containers.

If you will be using this for public application, then you will put security into consideration.


How to update?

Just download the latest version from their website.

How to run it?

After unzip the file:

Grant execute privileges to the start-tor-browser file:

chmod +x start-tor-browser

Double click the file
If you get a message, click on Run

That is all


Problem with installing ubuntu on Windows 8

first I would check your iso and make the USB again to make sure your installation USB is correct.


The answer provided by https://askubuntu.com/users/22949/eliah-kagan did not work for Ubuntu 19.04 with NetBeans 11 since the C++ plugin is not available under "Netbeans Distribution" when I tried it.

To install C++, I also had to select the Update Center labeled "NetBeans 8.2 Plugin Portal". It appears that C++ is not in the latest distribution yet, so I had add the legacy Update Center.

After adding this update center, I was able to locate and install the C++ plugin as shown in the previous answer, and then create a C++ HelloWorld program in NetBeans 11 on Ubuntu 19.04


Open your Software Updates windows:

Go to Other Software and remove/disable the PPAs related to http:/ppa.launchpad.net/ferramroberto/gsharkdown/

Close the Software Updates and repeat your update process.

The error is simply mentioning that the URL does not exist or the GPG Key could not be verified. So you need to remove that from the PPA list.

If the GUI app gives you any problems, then go to the sources via terminal:

cd /etc/apt/sources.list.d

Then remove the ones related to the problematic one. For example if I had a problem with the subdownloader PPA I would delete the following files in the sources.list.d folder:

subdownloader-developers-ppa-quantal.list
subdownloader-developers-ppa-quantal.list.distUpgrade
subdownloader-developers-ppa-quantal.list.save

A quick

sudo rm -fr subdownloader*

inside the source.list.d folder should do it.

And proceed to check /etc/apt/sources.list to see if it does not contain any PPA line related to subdownloader. In your case you need to look for some file related to the ferramroberto/gsharkdown PPA. Delete them and look for any line in sources.list related to it. Then do a sudo apt-get update.


can i uninstall ubuntu 14.04 unity desktop environment and replace it with paper-gtk

That looks like a Gnome Shell theme, so I suggest the a combination of

How do I install and use the latest version of GNOME? (meaning Gnome Shell)
How to install themes with GNOME tweak tool?
How can you remove Unity? (optionally)


Setting Up Users and Permissions for a Multi-purpose Home Server

I have read that it is recommended that each different service or task on a server be given a different user, in order to keep things separated from each other. Is this true?

Ideally you'll want to do this but it also depends on your setup. Will you have guests over that might want to access a folder on your server?  If so you can either share that folder through samba and give it 775 permissions, or you can create a "guest" user and give the folder 770 permissions and have you guests login as "guest" with a preset password.

  Samba and/or NFS (I will be connecting with Mac and Windows clients; should I use only Samba, or both?)

If you have Windows computers in the mix you'll have to use Samba, but it's typically slower than NFS.  I haven't had good experience with NFS on OSX but both are easy to setup but i'd start with Samba since it works with Windows, and OSX.  You can experiment with the NFS if you don't like Samba.  However with NFS you'll probably have problems with your UID not matching with your username on the server.

/etc/samba/smb.conf is the file you'll want to edit to share files via samba.

with NFS you'll want to take a look into the /etc/exports file.

  What would be the proper layout of users and permissions to ensure that, for example, the directory where all my media files live is accessible to all while also keeping each service separated by user account?

I would create a group (like "users") and when you create new users if you want them to have access to something like the "media" folder make sure they are in the "users" group and make sure the "media" folder is in the "users" group and that the "users" group has access to the "media" folder.

The way i do it on my server which runs a lot of similar programs is like so:

All media is in /opt/media and /opt/media belongs to the "users" group.  I then have a few accounts for me and my roommates that are all in the users group.  The file permissions for /opt/media are drwsrws--- "s" means that when my roommate "bob" drops a file in /opt/media it automatically belows to the group(users) that the parent dir belongs to. So now the file that "bob" created is owned by "bob" and in the "users" group. This is typically the setup you want when a log of different people are using a shared directory.

What you want to do is a little complex and might change based on how many users are accessing the server and how your network is setup.  However hopefully what the above will put you on the right path.


internet connection requires login ....minimal install

You could connect a cheap router to the wired internet connection, and then use a computer that has a browser to log onto the internet. This way, the 'login page' or whoever is providing the internet will match your routers mac address, allowing you to connect anything to the router without having to 'log on' to use the internet.


You can use ls -l /sys/class/drm/ to see the symlinks pointing to the specific devices in /sys/devices or in another directory

Probably it is possible to use the ID from lspci to identify your card.


I can't compile a plugin i downloaded for gkrellm

As indicated by the error message

No package 'gtk+-2.0' found

you need to install the development headers and libraries for gtk+-2.0, either from your favorite package manager or via the command line using

sudo apt install libgtk2.0-dev


It sounds like your TV is acting as a second monitor. This is the default behavior when you plug in a second screen.

If you want to show the movie on the TV, drag the player window out to either the right or the left of the laptop monitor. You'll see it slide into the TV screen on one of the sides.

Go to System Settings --> Displays  and you'll see the monitor arrangement as two rectangles. If you want, you can also turn on Mirror Displays which will make the TV and laptop show the exact same image.


Place single image on 4 sheets Libreoffice Writer URGENT

I don't think LibreOffice Writer would be the best tool for splitting & playing with an image, why not try Gimp, cut & paste quarters into 4 new images to print?

As to how to do that in Gimp, I've never tried it so this is just a guess... but it should tell you how many pixels wide & long the image is, so take those measurements and divide by each "side" of however many pages you'd like to print on, then split the image at about that length to get equal sized chunks. Like 4 pages would have 2 on top & 2 on bottom (2 x 2), so 2 per side, so divide length & width by 2. 9 pages would be 3 x 3, etc...

Maybe an invisible/non-printing layer with the split grid lines would help to copy the right sections? -- Actually GIMP already has similar features built-in, Guides and Grid (in view menu, settings in image menu), can set spacing and show lines over your image/workspace, not part of the image.

There should be lots of good how-to guides on everything GIMP-related somewhere on the web, try a web search and pick one that you're comfortable with that looks like it does what you want.

Actually, I'm sure there are printing companies with large-format printers that could print on very large sheets of paper (or even posters or plastic/cloth), it would be easier but more expensive to call them and get a big sheet printed there?


Paraview 5.0.1 on Xenial: "find data" leads to segmentation fault

I am not sure if the MPI has anything to do with that. Try downloading the latest "binary" file from Paraview website ans simply unzip and use it.

Here is the link to the Paraview tutorial, see Exercise 2.27 page 59. You can download the can.ex2 file from here. It should work easily.

Here is a screenshot used with 5.2 (same with 5.3)


Is apport/whoopsie only able to report bugs to Ubuntu's system (launchpad?)?

The stable version of the dialog says you can "report the problem," which does not mean filing a bug.

The problem reports go to Ubuntu's error reporting system. Bugs go to Launchpad.

According to the answer on this question:

  You can set a custom crash database in the package-hook for your package. But if your crash database doesn't act like debbugs or launchpad, you will also need to create a custom crash database connector implementation, which doesn't look like it can be done without installing a python file outside of /opt.

Also see more information about Apport and for developers.


now https://web.skype.com allow to use some API
so is possible to use it to connect using pidgin
here is the project:
https://github.com/EionRobb/skype4pidgin/tree/master/skypeweb

bye


Somehow I overlooked that Apple remote only works with built-in infrared as explained here on Apple support. Since my PC doesn't have that feature there's no solution.


How to view locally stored HTML files on Ubuntu Touch?

You may write a .desktop file. Read:
http://www.mail-archive.com/ubuntu-phone%40lists.launchpad.net/msg18884.html

Following the suggestion the asker created a .desktop file in .local/share/applications with the following contents:

[Desktop Entry]
Name=Usage statistics
Type=Application
Exec=webapp-container /home/phablet/Usage/index.html
Terminal=false
X-Ubuntu-Touch=true

The asker says it does the trick for him. It is not very flexible but suits his needs.


Dell inspiron M5010 gets slow after upgrade

After a bit of investigation I noticed an "Disabling irq #18" error while booting. I had to disable acpi ("acpi=off") in boot options. Not it works well


Screen brightness reset to minimum after every reboot

In the file /etc/rc.local add before line exit 0:

echo 5 > /sys/class/backlight/acpi_video0/brightness

Where 5 is the brightness level from 0 to 10


What drivers do I need for Acer Aspire E5-571 laptop?

In most cases you do not need any additional drivers to run Ubuntu.

You can test how Ubuntu works with your hardware by booting from LiveCD and trying Ubuntu without install.

If you have more specific questions, you are welcome to ask.

I suggest installing Ubuntu 14.04 LTS for a first-time user. It is more stable and support is for 5 years.


Trouble with spaces in the terminal on Ubuntu 18.04 and/or terminal command '-e' might no longer work

I wasn't able to determine why I was getting the error message

sh: 1: ls -l: not found

but did manage to achieve my goal.  The command that works (which is a simplified version of what I ultimately want) is:

gnome-terminal -- /bin/bash -c 'cd .; ls -l; /bin/bash'

I took the approach that I'm only running this on Ubuntu and so was "safe" to swap out x-terminal-emulator with gnome-terminal and $SHELL with bash.


Configuration to a hidden IPv6 network via wireless

I found the solution to configure to the 2.4hz wireless connection. After updating the /etc/network/interfaces. I must have rebooted the system....

Anyhow here it is the code

# interfaces(5) file used by ifup(8) and ifdown(8)
# The loopback network interface

auto lo
iface lo inet loopback

# The primary network interface (eth0)
auto eth0
iface eth0 inet dhcp

# IPv6 Address Blocks
# Add a static block for your default public IPv6 address, and include a directive for its gateway.

iface eth0 inet6 static
    address 2001:db8:a0b:12f0::1/64
    gateway fe80::1

# add an additional block for each IPv6 address you need to configure.

iface eth0 inet6 static
    address 2001:db8:2000:aff0::1/64


start a guest session in Ubuntu 17.10 / cinnamon

The guest session feature may be available from the login screen if you use the LightDM display manager. However, this problem is still present, and you'll need to consider that security issue before enabling guest session.


How to show grub menu after grub update?

Boot to your live cd.

Then: in a terminal type.........

sudo mount /dev/sdXY

Example:

  sudo mount /dev/sda1

Run the grub-install command as described below. This will reinstall the GRUB 2 files on the mounted partition to the proper location and to the MBR of the designated device.

sudo grub-install --root-directory=/mnt /dev/sdX

Example:

  sudo grub-install --root-directory=/mnt /dev/sda

Refresh the GRUB 2 menu with

  sudo update-grub.

reboot

If this does not work for you - try the link bellow.

https://launchpad.net/boot-repair


Clicking Shutdown shuts down immediately instead of showing dialog. Cannot restart

I have not tried this myself in 11.10, but in previous versions it worked.

Run sudo apt-get install dconf-tools to install dconf-editor
Open up Configuration Editor (ALT+F2) dconf-editor
Go to apps > indicator-session
Make sure suppress-logout-restart-shutdown is unchecked.
Click shutdown from the cog menu.

Just tested this in 11.10 and it does work.


Just wrap it in another bash script.  Your file names will be different, but I have:
test(.profile)

#!/bin/bash
function printDate() {
  date
}

wrap(a new script you can put wherever, just change the url)

#!/bin/bash
cd ~/
source ./test
printDate > ./date.log

when run from a /bin/sh

$ ls
test  wrap
$ ./wrap
$ cat date.log
Wed Apr 11 11:49:39 EDT 2012
$

Now just make sure your paths/environment are right

The crontab lines I just tested were:

SHELL=/bin/sh
HOME=/root
* * * * * $HOME/wrap >/dev/null 2>&1


Windows 7 doesnt boot after installing Ubuntu 12.10 (Asus Zenbook Prime / UEFI problem)

It's possible that your Windows installation has been damaged -- for instance, if you resized your Windows partition(s) when installing Ubuntu, the resize operation might have corrupted your data. (It sounds like you did not resize partitions, but that's not 100% clear, so I mention this as a possibility.) If the problem is in Windows, your best bets are:

Try the Windows recovery tool (boot from an emergency disc if necessary -- they are available legally for download, although I don't have any links handy).
Ask for help on a Windows forum.

OTOH, it's possible that there's a subtle problem with your boot loader configuration. I don't see anything obviously wrong in what you've posted, but it looks like something may have created backups of some of your Windows boot files. If Ubuntu did this during installation, it's conceivable that it's accidentally damaged some of those files. You should check out the various .efi files in what is, from Linux, /boot/efi/EFI/Microsoft/Boot. Check them against their like-named .bkp files. If the installer (or whatever created the .bkp files) did what seems logical, I'd expect these files to be identical. If the bootmgfw.efi file, in particular, is empty or seems damaged, that could be the problem.

Another comment along these lines: GRUB 2 can be weird sometimes, and configuring it manually can be tricky. Therefore, you might try using another boot manager instead of or in addition to GRUB 2. The easiest to install and configure is probably my rEFInd, but gummiboot is another possibility. To use rEFInd, you should be able to install it just by running its install.sh script from your Linux installation. When you reboot, you should see a boot menu with Windows and Ubuntu listed as options, and probably another for whatever's in the ESP's EFI/boot/bootx64.efi (most likely that's a duplicate of the Windows boot loader, but I can't be positive of that). If Windows works from rEFInd, then you can continue using rEFInd. If not, then rEFInd at least probably won't hurt, except to add a step to get to Linux. (You can easily uninstall rEFInd by removing the /boot/efi/EFI/refind directory; or you can reconfigure your system to boot Ubuntu directly from rEFInd, bypassing GRUB. See rEFInd's documentation on booting Linux for details.)


Screen brightness flickering on a Samsung laptop

In my case samsung-backlight package solve problem. See Brightness problem on a Samsung 530U3B
You have same vendor for video chipset so it may help you too.


Why does gedit keep randomly opening new instances when opening files from nautilus?

Why...

gedit has quite an interesting algorithm to determine whether it opens a new instance or if it opens in a tab in an existing instance.

Located in the source file gedit-app.c in the function static boolean is_in_viewport, the algorithm tests if the current gedit instance is

in the same screen number and display name
in the same workspace
greater than 25% of the edges of the view port

If all are true then gedit opens in the same instance in a new tab otherwise it opens in a new window.

In summary - the only realistic way of changing the behaviour is to change the algorithm...

How...

The following is a quick way to get a consistent way of opening gedit... it will always open a new instance.

install the basic development tools

sudo apt-get install devscripts build-essential fakeroot

get the source

cd ~/Downloads
mkdir build
cd build
apt-get source gedit
cd gedit-3.2*

make the change

Open gedit-app.c

gedit gedit/gedit-app.c

add return FALSE; as shown and save.

What this does is to always exit the routine saying "i'm not running in a viewport and therefore always open a new instance"

If you use return TRUE; this will always open in an existing instance of gedit in a new tab...

give it a unique package name

OK, we need to give the package a unique name to prevent repository updates from overwriting your changed package

gedit debian/changelog

now append +yourname to the top line version and save the file i.e.

Note - to be absolutely sure - after installing the modified package below, lock the version as per the linked question below.

build the package

sudo apt-get build-dep gedit
debuild -i -us -uc -b

Go for a coffee...

cd ..
sudo dpkg -i gedit*.deb

Linked Question:

How to prevent updating of a specific package?


resolv.conf doesn't get set on reboot when networking is configured for static ip

As per the resolvconf man page (example provided in man page), add the following to your /etc/network/interfaces under your static configuration:

dns-nameservers [IP address(es) of your DNS]
dns-search      [your dns-search strings (optional)]


Broken package after update: linux-headers, error broken count >0

Looks like your drive is full and has no free space. Try moving some unwanted files like music, videos, documents and such to another partition. And then try the sudo apt-get install --fix-broken . You need to move about 76.2 MB of stuff to be exact, but might as well move what you can.

After that your system should be back to normal with no broken packages :)


Wired Internet doesn't work on ubuntu 12.04

Open the terminal and type in the following

ping 192.168.1.1

You should get replies not host not found or request timed out. I am assuming the 192.168.1.1 is your router's IP address.

If the above worked it means it's connected to the router. Next try ping google servers and see if you are able to

ping www.google.com

if that works you should be able to access the internet but if it doesn't there might be a problem with DNS. If so try pinging the IP address of google servers just to make sure it can be reached via IP address

ping 8.8.8.8

(this is a google DNS server IP address which doesn't change)

If that works you have your answer... DNS issue. If it doesn't work then check the resolv configuration file to see what the default nameserver is set to and change it to your router. The resolv.conf (base) can be accessed by typing

sudo nano /etc/resolvconf/resolv.conf.d/base

and change the name-server to your router's IP address as

nameserver 192.168.1.1

Now restart your computer and test again.


Try using the PIN entry mode of loopback:

gpg --decrypt --pinentry-mode=loopback <file>

I can replicate your issue on my Linux system when I try GPG with a terminal su:

$ gpg --decrypt example.gpg
gpg: AES256 encrypted data
gpg: problem with the agent: Permission denied
gpg: encrypted with 1 passphrase
gpg: decryption failed: No secret key

The solution that works for me:

$ gpg --decrypt --pinentry-mode=loopback example.gpg
hello world

You may also want to verify that your GPG is up to date:

$ gpg --version
gpg (GnuPG) 2.2.4
libgcrypt 1.8.1
...


Yes, KVM guests (e.g., Windows or OSX running in QEMU, using KVM) and Docker (e.g., Docker CE running containers) run fine all at the same time on the same Ubuntu instance.

Your question basically describes my workload. At this moment I'm running two Android emulators (using hardware virtualization acceleration, which is KVM on Linux), a Windows 10 QEMU guest, an OS X High Sierra QEMU guest, and Docker (installed via these instructions https://docs.docker.com/install/linux/docker-ce/ubuntu/) with their hello world example running, all at the same time on an Ubuntu 18.04 host.

The concise explanation why it works is that virtual machines (QEMU, etc) on Linux use a hypervisor (KVM in the case of QEMU, but Virtualbox and VMWare use different hypervisors) to use your computer's hardware resources, while Docker uses linux namespaces to simply use your currently running kernel's available hardware resources, but segregated from your main operating system.

In that way, KVM guests and Docker actually run using separate technologies and don't really even inter-relate to each other at the kernel level. This is in contrast to the case where you try to use different hypervisors (e.g., QEMU+KVM and VirtualBox) at the same time - that does not work as you can only run one type of hypervisor at a time (though you may run multiple VMs from each type of hypervisor).

There are great explanations of the technology details here: https://stackoverflow.com/questions/16047306/how-is-docker-different-from-a-virtual-machine


apt does not depend on bzip2 - bzip2 is only a symbolic link to gzip.

Create the link

sudo ln -s /usr/lib/apt/methods/gzip /usr/lib/apt/methods/bzip2

Install bzip2

sudo apt-get install bzip2

Alternative

apt-get download bzip2
sudo dpkg -i bzip2*.deb