How to run IntelliJ IDEA as a dedicated system user?

It's late, but hopefully it helps someone. I'm doing this:

xhost +SI:localuser:foxx1337 && sudo -u foxx1337 /opt/jetbrains/idea-ultimate/bin/idea.sh

This is based on the wonderful reply sim gave here - https://unix.stackexchange.com/questions/108784/running-gui-application-as-another-non-root-user


Are there shortcuts for page down and page up in firefox

space bar for page down, and shift+space for page up.


deja-dup fails to restore home directory

Possibly you are not selecting correct folder (as I was). Try>> Is it possible to restore only one directory with the backup utility?

Apparently the "/home " directory is not possible in deja dup but the /home/user is available.


How to perform something like windows domain or active directory in Ubuntu Environment

I can really recommend Zentyal Small Business Server - http://www.zentyal.org/ - for these tasks.

It works on top of Ubuntu LTS, but they also ship an installation cd for bare metal installation. Their goal is to replace Windows Server 2003/2008 with a free, Linux based alternative. And so far, they are one of the few that manage to pull it off, even with Windows 7 clients!

Installation is a breeze, you can select which features you need (router, dns, dhcp, gateway, domain controller etc.) and when you're done you can manage the whole thing through a nice web interface.

It's also not very hard to manage a heterogeneous network this way. Howtos on how to make Linux, Windows and Mac Clients authenticate against and store data on the server are readily available, and most of the Ubuntu Howtos work as well. It's still a normal Ubuntu underneath.

Go check it out - it's free and open source. The Company behind it lives on support contracts.

Just to clarify - in Zentyal you basically have LDAP, Samba and Kerberos tied together in one neat package. Primarily targeting the Windows Domain model, but Linux clients can use straight LDAP to authenticate or use advanced methods like Kerberos and authentication caching too.

Cheers, Jannik


This is a modified post by nerasezi in the Ubuntu Forum

The main source for the UEFI was the Ubuntu UEFI guide

The following are the steps he did:

Use a live CD which matches the UEFI architecture. Mostly x86-64.
Boot up the live cd (xubuntu or lubuntu. Those are lightweight desktop but it should work with Ubuntu and kubuntu as well).

Be sure your live system is booting in UEFI mode. You may check it on the UEFI setup, probably under Boot option or similar. In my case it just put the "UEFI" prefix before the device name.
Once the live system is running set through the terminal a root password by typing
sudo passwd root

Then log out from the default live cd user and log in as root in gui mode.
Plug in the hard drive. I use a USB3 portable HDD but in most cases the hard drive is a SATA internal drive. Anyway, be sure you've BACKED UP ALL YOUR DATA, cause the process is going to wipe off everything on the drive.
Launch Gparted (a gui tool is much easier than the text one) and select the drive you're willing to install the system into. (Be sure to select the right one!)
Point to the top menu and select Device>Create Partition Table... A warning message pops out. Click on Advanced and select "gpt". Say OK
A new GPT disk layout had been created.
Now you need to create partitions on it. It's very important that you create as the first and primary partition, a FAT32 volume and you need to assign the label EFI to it. Once the partition is created, right click on it and select "manage flags". Check the "boot" flag and say OK.
Move on to the creation of the / partition (you may want to separate /home and /boot. Do it as you usually do. In my case I've just created the / partition), and a swap area. Always prefer primary partitions cause with GPT the 4 primary partition limitation has been removed.
Close Gparted.
Install the system into the hard drive "/" partition and remember to point here the bootloader (GRUB 1.99) to install to. If you've created a separete "/boot" partition, you have to choose that one for the bootloader installation.
Here comes the part from the UEFIBooting guide:

Building GRUB2 (U)EFI

Download the latest grub2 source code ZIP file. ftp://ftp.gnu.org/gnu/grub/

Building grub2 requires the following programs to be installed (build dependencies):

bison
autoconf
automake
flex
autogen
python (2.x series) (for autogen.sh if building from bzr repo)
texinfo
help2man
gettext (NLS support)
device-mapper
freetype2 (libs)

sudo apt-get install bison libopts25 libselinux1-dev autogen m4 autoconf help2man libopts25-dev flex libfont-freetype-perl automake autotools-dev freetype2-demos texinfo efibootmgr

efibootmgr was added to the software you need to install because you will need it later on.

For 64-bit (U)EFI:

export EFI_ARCH=x86_64
./configure --with-platform=efi --target=${EFI_ARCH} --program-prefix=""
make

In case you have a 32-bit architecture, check the online documentation at the link I have provided at the top.

Install GRUB2 in (U)EFI systems

Determine your EFI SYSTEM PARTITION. (it should be /dev/sda1 or /dev/sdb1 if is set on the 2nd hd)

Then mount the partition at /mnt/EFISYS (or at any mountpoint you wish). The following code assumes /dev/sda1 to be EFISYS partition.

sudo mkdir -p /mnt/EFISYS

sudo modprobe dm-mod

sudo mount -t vfat -o rw,users /dev/sda1 /mnt/EFISYS

sudo mkdir -p /mnt/EFISYS/efi/grub

Then, build an EFI application for GRUB and copy it and the other modules:

Enter the "grub2 compiled source/grub-core" directory - Default : /usr/lib/grub/{EFI_ARCH}

grub-mkimage -O ${EFI_ARCH}-efi -d . -o grub.efi -p "" part_gpt part_msdos ntfs ntfscomp hfsplus fat ext2 normal chain boot configfile linux multiboot

sudo cp grub.efi *.mod *.lst /mnt/EFISYS/efi/grub

Note : The -p "" option is important for creating a portable grub.efi app. Now create a grub.cfg in /mnt/EFISYS/efi/grub :

sudo touch /mnt/EFISYS/efi/grub/grub.cfg

Make the firmware launch GRUB2 (U)EFI as default

For non-Mac UEFI systems, efibootmgr is used to modify the UEFI Firmware Boot Manager. This requires the kernel to be booted in UEFI mode and that the kernel processor architecture should match the firmware architecture (and 'noefi' is NOT used) for 'efivars' kernel module to be loaded and efibootmgr to access the boot manager variables. Initially the user is required to manually launch "efi/grub/grub.efi" from the firmware console itself if grub2-efi was installed in BIOS mode. Then efibootmgr should be run to create the boot entry.

sudo modprobe efivars

Enter the "grub2 compiled source/grub-core" directory

grub-probe --target=device /boot/efi/efi/grub/grub.efi

Assuming the output the grub-probe to be /dev/sda1

sudo efibootmgr --create --gpt --disk /dev/sda --part 1 --write-signature --label "GRUB2" --loader "\\EFI\\grub\\grub.efi"

In the above command, /boot/efi/efi/grub/grub/efi can be split up as /boot/efi and /efi/grub/grub.efi, which translates to (/dev/sda) -> partition 1 -> \EFI\grub\grub.efi .

Open Synaptic and remove all grub packages and install just the grub-efi packages (amd64 for me) and all the necessary dependencies.
Once the installation is over, run sudo update-grub in the terminal. You should edit "grub.cfg" from /boot/grub and check that the disk UUID matches your disk and partitions, the voice "insmod part_" and "set root='(hd0," have "gpt" textline. If everything is ok, copy "grub.cfg" to the "efi/grub" on the EFI System Partition.
If something i mentioned before, doesn't match, just edit grub.cfg and manually change them values. Then copy the file to the "efi/grub" directory on the Efi System Partition (should still be mounted under /mnt).

Then when I rebooted the system, a new entry on the Boot tab under the UEFI setup has appeared, named GRUB2 and i set it as the default boot option.


Ubuntu (only) Installed: Cannot boot to reinstall

I would suggest following the instructions http://help.ubuntu.com/community/HowToMD5SUM#MD5SUM_on_Linux to compare your downloaded ISO and its MD5sum to the publicly posted MD5sum to make sure the ISO was downloaded with no corruption before reformatting the flash drive and then reinstalling Ubuntu on it. You can also search on man md5sum for more information about the process.

You see, the file download process is not perfect, and can result in a saved file which does not match the original file. Therefore, the MD5sum program (and its Windows counterpart, the Microsoft File Checksum Integrity Verifier http://support.microsoft.com/kb/841290 is used to see if the downloaded file exactly matches the original file.


Swapping between video cards on Ubuntu 16.04

Some news.

I updated the kernel to 4.4.13. Now I don't have error messages is dmesg.
Added radeon.dpm=1 radeon.modeset=1 to /etc/default/grub file (not sure if everything is needed).

sudo update-grub and reboot

Although I still cannot switch between the cards with DDIS, but I can run specific programs with the dedicated AMD, using

DRI_PRIME=1 programpathname

command in Terminal. That is already quite good, because I don't need the dedicated for browsing the web or so.

For me this is a reasonable solution and result.


xbacklight not working on razer blade 2019

Turns out that it's an OLED screen and so doesn't employ a backlight. xrandr is the only way, but there is a script for it: https://github.com/udifuchs/icc-brightness


Geany themes (called, color schemes) are located in ~/.config/geany/colorschemes

You can add more schemes from this site.  You'll want to copy from the colorschemes folder.

After all the .conf files are added, you can now choose a new color scheme from the menubar.  Choose one that you like, and then edit its .conf file.  In this file, under the section [named colors] or [named styles], you can change the background color to whatever you want.  The colors are in RGB hex format.


Dialog box does not accept input, stays on-top and hides everything under it. Ubuntu 20.04

This is a known issue. When I reported the bug, this was the reply:

  * This bug is a duplicate of bug 1824874 *
      https://bugs.launchpad.net/bugs/1824874

  Thanks. That confirms this is a duplicate of bug 1824874.

  ** This bug has been marked a duplicate of bug 1824874    undismissable, unclickable authentication dialog left on screen
  (top-left corner) after policykit authentication [pushModal:
  invocation of begin_modal failed]


There seem to be problems with many nVidia cards, so many are blacklisted from propietary drivers, and their users are recommended to use Unity 2D in the meantime. Please run in a terminal:

/usr/lib/nux/unity_support_test -p

and post the output to get a better diagnosis. I assume your video card is relatively new, so the problem is most likely driver-related.

Alternatively, you could force Unity 3D by adding

UNITY_FORCE_START=1

to your /etc/environment file, which will bypass support check and start Unity anyways. If your video card is unsupported/blacklisted, though, you might experience a drop in performance, visual artifacts, etc.


How to check when system went on battery power

sudo vim /var/log/syslog

That should give you a pretty good idea.  If it happened some time ago, it may be in syslog.1 or syslog.2.  If it happened a relatively long time ago, you'll have to hunt through the syslong.n.gz files.

EDIT: You're looking for a time gap.  As a bonus, you may get a critical power message at the beginning of that gap, in which case you'll know what to look for in the future...  A fancier solution may be writing a PERL or Python script to go through all these files and look automatically.  That amount of effort would be justified if this is something you anticipate happening often.


Replacing old OS will format entire hard disk?

It will just delete old Windows in C drive and leave other data existed in D drive?

It will delete all Windows partitions. The partitioner will assume that all NTFS disks belong to Windows and delete it. It will then create 1 big disk to install Ubuntu. If you do not want this and want the partitions to be split into / and /home/ or /, /home/, /datapartition/

Use the "something else" option.
Delete all the partitions so you have one big block of "unallocated space". This will delete all Windows data.
Create new partitions to your liking. In general 25 Gb for a / partition should be enough unless you want to use servers like Apache or MySQL.
Allocate a few Gb to a swap area. What the ideal amount is depends on your memory; have a look around AU for some topics about this. What swapfile size to make? I have 4GB RAM and I have 16GB RAM. Do I need 32GB swap?
Dedicate the remainder to /home/ or a part of it to /home/ and the remainder to a personal partition with a label you set it up with.


How to cancel the currently-applied remaining sudo time-out?

Not sure if you mean to kill a sudo timeout so it doesn't timeout or so it times out immediate, but if you want to remove the remaining timestamp you can use sudo -k

Otherwise,if you're trying to cancel a timeout so sudo doesn't timeout, I don't think that is possible to do in a current session.  The only way I know of would be to change the timestamp_timeout in the sudoers file and restart the session.


Banshee doesn't seem to play any song, but works in audacious?

You need tell us how it fails.

Maybe it is playing but your output channel is silent/muted. I have seen that.  You can't tell in base gui sometimes, a button says volume is not muted. However, that may not track the method (channel)the player is wanting to use. Because there are many audio frameworks loaded at once, watch out!. New installs may have Pulseaudio, alsa or some other, who knows what else. Depends on your sound card too. Ubuntu recommends Rhythmbox, often it ok. Banshee not in base, possibly because of config problem.  Some players only work with one, alsa or oss. Jargon changes over time.

I had no sound from rhythmbox, because out channel was off. Pretty consistently, if I use Record My Desktop I cannot hear playback without hacking a while.

Here's how to tell.
Install pavucontrol to get control, see if output is muted. Pavucontrol is more modern gui, but if player is sending to wrong device, you see/fix that in alsamixer. Pavucontrol has meter on output to show if player is making noise. In alsa mixer, you can see if simpler old style programs are blocked.

Sad, but true. Multimedia has been a mess for a long time. I've been in Linux 20 years and is only thing that stays consistently difficult.
There is a good reason Ubuntu does not ship a lot of those player programs anymore. And when you start installing others, there are likely sideeffects on base tools. It is only area in Ubuntu where I follow distro leaders' advice. It probable easier to change desktop evnironment than figure out sound.

Sorry I so gloomy. Long day at work.


Can you design buttons on a Ubuntu/Android tablet that is to be used as a virtual keyboard for your desktop?

This is not an answer for designing custom-looking keyboard buttons, but if you're content with attaching macros in scripts to the typical, regular buttons of a hard keyboard, I asked a question on superuser.com: How would you turn a tablet into a keyboard + easy-to-reach touchscreen (mirror the desktop) (not a touchpad) for a desktop PC?. You can do the following:

android-vnc-viewer to mirror the desktop PC screen, and control the desktop

I had another question on android.stackexchange.com: (In using a VNC to control a computer, is it possible to have the cursor go to where you touch? - android[dot]stackexchange[dot]com/questions/34668/in-using-a-vnc-to-control-a-computer-is-it-possible-to-have-the-cursor-go-to-wh)

In the question, I included a video: Remote control of Ubuntu with android-vnc-viewer - www.youtube.com/watch?v=sTKX6QMBgck#t=0m30s

android-vnc-viewer

  “See and control your computer's desktop from your phone, from
  anywhere. androidVNC is the Open Source (GPL) remote desktop program
  for Android devices. Connects to most VNC servers: incl TightVNC,
  RealVNC on Win and Linux, x11vnc, and Apple Remote Desktop on OS/X.”.

In the video, I don't know the input mode that is being demonstrated at 0:30, but it looks like the mouse cursor goes to where he touches.

http://code.google.com/p/android-vnc-viewer/

I'm guessing that the input mode in the video was either:

  Touch Mouse Pan and Zoom
  This is the default input mode and is
  designed to work like the Android browser. You can both pan the
  display and control the mouse using the touchscreen and gestures. You
  pan by dragging or flicking on the touchscreen; you click the mouse by
  tapping on it. You right-click by double-tapping (or by holding down
  the camera button while tapping). You drag the mouse by doing a long
  press on the display, and then dragging. In this mode the trackball or
  DPad (if your phone has one) can also be used to control the mouse;
  this may give you finer control. You can zoom the screen size with the
  +/- buttons, or, if your device supports multi-touch and has Android 2.0+, you can pinch to zoom out and spread to zoom in.

or:

  Mouse Control Mode
  In this mode, use the touchscreen to control the
  mouse. Touching the screen generates a mouse click at that point;
  dragging on the screen creates a mouse drag. Keyboard events are sent
  as normal. The trackball is used to send arrow-key events to the VNC
  server. Pressing the trackball toggles between Mouse Pointer Control
  and Desktop Panning modes.

Port forwarding

  If the PC you're connecting to accesses the internet through a router,
  this will be the WAN address assigned to the router by your ISP;
  you'll also need to forward the VNC port (5900) from the router to
  your PC (exactly how you do this depends on the details of your
  router, so I can't give more explicit instructions here).

Hacker's Keyboard - use a full soft keyboard on Android

From what I've read, the stock android keyboard doesn't have buttons such as Ctrl, Alt, Esc, arrow keys, Home, End, and Delete.

You can use the free, open source, app call Hacker's Keyboard to gain access to the buttons of a full keyboard:

  “Are you missing the key layout you're used to from your computer?
  This keyboard has separate number keys, punctuation in the usual
  places, and arrow keys. It is based on the AOSP Gingerbread soft
  keyboard, so it supports multitouch for the modifier keys.

  This keyboard is especially useful if you use ConnectBot for SSH
  access. It provides working Tab/Ctrl/Esc keys, and the arrow keys are
  essential for devices such as the Xoom tablet or Nexus S that don't
  have a trackball or D-Pad.”

http://code[dot]google[dot]com/p/hackerskeyboard/

A patch that allows android-vnc-viewer to recognize all the keys of Hacker's Keyboard

In “Frequently Asked Questions” of Hacker's Keyboard, there's a section called “Android VNC Viewer doesn't recognize the extra keys”.

It directs you to an issue called “Issue 238:   Support additional keys, fix modifier handling” (code.google.com/p/android-vnc-viewer/issues/detail?id=238). The patch there will make it so that Android VNC Viewer recognizes buttons of a full keyboard.

Update: bVNC

  bVNC is a secure, open source VNC client.

  Tested with Hackerskeyboard. Using it is recommended (get hackers keyboard from Google Play).

play[dot]google[dot]com/store/apps/details?id=com.iiordanov.freebVNC&hl=en

github[dot]com/iiordanov/bVNC

Update 2: Jump Desktop VNC

I currently and personally use Jump Desktop VNC because the “bring-out-the-keyboard” is close, and easily reachable. With bVNC, I have to tap near the middle of the screen, and then I press a keyboard button on the right to bring out the keyboard. Jump Desktop VNC also lets you use a Google account, so you don’t have to deal with addresses.


Install Ubuntu on USB with hardware detection and EFI + Legacy

Mkusb will make a persistent flashdrive as you specify.

The program creates a flashdrive with read only OS partition, persistent casper-rw partition and a NTFS data partition that both Linux and Windows can see and use.

The finished flash drive will not upgrade from one version to the next, (the kernel is part of the read only partition), but it will allow selective updates of programs on the drive. You do not want to do a full software update as this uses up lots of space.

There is an option to boot both EFI and legacy modes

https://help.ubuntu.com/community/mkusb?action=AttachFile&do=view&target=mkUSB-quick-start-manual-12.pdf

If you need to be able to do upgrades, you will want to do a Full install as OldFred suggests.


How to install Horde Webmail on Ubuntu 14.04?

Horde is not just an application, rather a bundle of various packages, each performing a certain task. Each of these has in turn its own dependencies that must be set up beforehand. Packaging (and maintaining) something like this would be a huge load of work impacting relatively few users; thus manual install is pretty much your only option.

At the Community Wiki you have a detailed installation guide, that may facilitate the task to some extent. But it still requires some commitment.


Can I change background and font color of address bar at Chrome?

Address bar at Chrome depends on system color theme. For switch to nice dark - Install Dorian theme.

Also you may want to go to the chrome://settings/ -> Use GTK+ theme


First check if you can ping the gateway whatever it is in your case like

ping 192.168.0.1(your gateway in here)

if you revice and reply check if the route is corrent
temporarily disable network-manager

sudo service network-manager stop

sudo ifconfig eth0(your adapter) 192.168.0.12/24(your ip) up
sudo route add default gw 192.168.0.1(your gateway)
sudo -i
echo "nameserver 208.67.222.222" > /etc/resolv.conf (opendns dont change these two)
echo "nameserver 208.67.220.220" >> /etc/resolv.conf

check route

route

then do

sudo apt-get update && sudo apt-get install git

if all works then change the settings in network-manager accordingly
and if
sudo apt-get update works but

sudo apt-get install git

dosent works
then do it manually bu these steps

1) Install dpendencies

sudo apt-get update
sudo apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip

o ahead and get the version of git you want by visiting the git project's page on GitHub.

The version you see when you arrive at the project's page is the branch that is actively being committed to. If you want the latest stable release, you should go change the branch to the latest non-"rc" tag

2) Next, on the right side of the page, right-click the Download ZIP
button and select the option similar to "Copy Link Address"

3)

wget https://github.com/git/git/archive/v1.9.2.zip -O git.zip

your version will vary

4)

unzip git.zip
cd git-*

make prefix=/usr/local all
sudo make prefix=/usr/local install

4) Now that you have git installed, if you want to upgrade to a later version, you can simply clone the repository and then build and install

git clone https://github.com/git/git.git

To find the URL to use for the clone operation, navigate to the branch or tag that you want on the project's GitHub page and then copy the clone URL on the right side

This will create a new directory within your current directory where you can rebuild the package and reinstall the newer version, just like you did above. This will overwrite your older version

5)

make prefix=/usr/local all
sudo make prefix=/usr/local install


GSSAPI ssh login on Ubuntu 14.04 with SSSD and Active Directory

I figured this out. In order to get it to work I had to:

Make sure the default_realm is set in /etc/krb5.conf
log in as DOMAIN\username where DOMAIN is the short NETBIOS version of the domain name in all caps.

Other variations of the domain name worked with a password, but not with a kerberos ticket and GSSAPI.

Upon further research, it seems like this is related to auth_to_local and pam mappings in /etc/krb5.conf that were left over from likewise-open.


Ubuntu 18.04 cannot boot without nomodeset on AMD APU

fglrx is no longer supported;

mesa is included with 18.04.

to see the current status:

glxinfo | grep OpenGL

OpenGL vendor string: X.Org

OpenGL renderer string: AMD KAVERI (DRM 2.50.0, 4.15.0-20-generic, LLVM 6.0.0)

OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.2.0-devel


From experience I'd say there are several limiting factors in the described setup. For one, if you are using MySQL and Apache2, don't expect to get away with one GiB of RAM and no slowness. I'd strongly recommend you look into nginx or lighttpd as alternatives if your setup has such resource limits.

Further more you haven't told us anything about the setup such as IPv4 and IPv6 or possible firewall rules.

Last but not least on heavy web applications such as WordPress I would recommend to have some kind of cache (be it nginx or varnish) if you are looking for speed.

But honestly your setup sounds like it's trying one connection method, e.g. IPv4 and times out on that and then tries the other. My guess is that IPv6 is still enabled and you haven't configured it properly. In this case you may want to tell the kernel to turn it off or use one of the other methods outlined here.

Please post the output of the following commands (as superuser) if you expect a more detailed answer:

free -m
iptables-save
lsof -Pi|grep :80


Internet loses connectivity when steam is launched

I got the same problem (tried with 12.04 ans 13.10)
After a short download time in steam, the connection drops steadily, until it's gone.

I tried Ethernet, Wifi, Steam Linux and Steam with Wine, it's no difference.

Only temporary solution I got was limiting the download speed in the steam settings to max. 256 kb/ 512kb / 1GB. Ironically it is most stable with 256 kb ...


Can I take a webcam picture without activating the webcam LED?

No, there's no way to prevent it. It's there as some sort of "safety" feature. I recommend just putting electrical tape over the LED. Unfortunately, the LEDs most often are triggered when power is applied to the camera (which has to be applied in order to take the picture)


Change window size when opening pdf from archive manager

Evince appears to "remember" window sizes on a per file base. It is all very obscure and there is, frustratingly, little control on the window size.
Caveat The following options will act on all new Evince windows, not only those opened from an archive as asked.
Maximize using Devilspie
I use Devilspie2 to ensure that each Evince window (whether the PDF is in an archive or not) is maximized on opening. This is a little (and unfortunately old, unmaintained and poorly documented) daemon program. It watches when a new window is created. If the window matches a criterion  (e.g. it is an Evince window), then it will apply the rule you defined for these types of windows (i.e., the window is maximized).
• You can install Devilspie2 with the command sudo apt install devilspie2.
• You need to create a configuration file ~/.config/devilspie2/devilspie2.lua to define the rules.
This is my rule for Evince windows:
--Evince Document Viewer

if (not string.match(get_window_property("_NET_WM_STATE"),"_NET_WM_STATE_SKIP_PAGER") and get_application_name() == "Document Viewer" and get_window_name() ~= "Open Document" and get_window_name() ~= "Print" and get_window_name() ~= "Save As…" and get_window_name() ~= "Properties") then
   maximize();
end

The match criterion is rather complicated. It ensures that open and save dialogs, and PDF annotations, are not matched: for example, you do not want a maximized yellow note when you open one.
The action is very simple: maximize the window.
• For this to be enabled when you login, add devilspie to your autostart program. I found I need some delay for it to work, so my autostart command reads:
sh -c "sleep 8 && devilspie2 &"

Full screen via Evince command line option
Unfortunately, Evince has no command line option to start it maximized. However, there is a command line option to start it full screen. If that would be acceptable, you could launch Evince with the -f option. To achieve that, edit the .desktop launcher for Evince.


Ubuntu: Update Scipy-stack for Python 2.7

There are actually only two python installations by default. 2.7 and 3.4 here. All the python-* packages are built for Python 2.7. All the python3-* packages are built for Python 3.4.

What you are noticing with the version of scipy has nothing to do with the general layout of these Python installations, it's about how Ubuntu works. Ubuntu won't update every package for every update its developers push out. It only updates packages when there are security releases or things that make it drastically better. This provides stability for developer who don't want API/ABI changes on systems they've deployed.

I suspect you actually don't want to be using Ubuntu's Python system at all, rather you want to use a virtualenv. These use the system's python (or python3) binary but you get to own the rest of the environment (site-packages, etc). This gives you near-total flexibility to install whatever versions of whatever from pip, without needing root, without trampling over system-managed files.

Normally this is a case of creating a virtualenv, "activating" it and then installing your packages:

virtualenv /path/to/venv  # or python3 -mvenv /path/to/venv
source /path/to/venv/bin/activate
pip install -U pip  # update pip
pip install -U numpy scipy matplotlib ipython ipython-notebook pandas sympy nose

Note the names of these packages might not be correct above, pip will tell you.

Also note that you'll likely run into a few errors about missing build dependencies. Packages you download from Ubuntu that need compilation (most of these computation packages) have been pre-compiled. You'll need to meet their dependencies. A dirty way of doing this is to use apt-get build-dep for the Ubuntu versions. If the dependencies between the Ubuntu and PyPi versions have deviated, you may have to install other things. See the docs for that project to find out what you need.

sudo apt-get build-dep python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose

Tediously, this will install build-deps for both Python 2 and 3 but it's only disk space, right? :) You can fulfil the dependencies manually if you'd rather.


How to protect essential Windows files on NTFS partition from edit/deletion in Ubuntu?

You can "remove" from yourself the temptation of modifying Windows files by hiding them via .hidden files.

Just place a file with name .hidden in the directory where the files you want to protect are located and put a file or directory name in each line. These files will be hidden from file managers (except dolphin I think) and the terminal (unless you put the -a flag).

For example to hide the Windows and Program Files directories:

cd <win_partition>
gedit .hidden

Write Windows in the first line and Program Files in the second line. Feel free to complete the list with all the files you want to "protect".

Edit: Keep in mind that this does not "protect" the files from being matched by bash auto completion. For example, rm -rf * in the Windows partition is still catastrophic.


Please note that Ubuntu Server 11.04 has already reached end of life. This means that the repositories for 11.04 are already switched off. Therefore you get the error code 404 from the repository servers.

You can either use 12.04 which is a LTS (Long Term Support) Release which is supported until April 2017.

The other possibility is to use 13.04 which is the current release and supported until January 2014.


Wifi Connectivity problems when using WPA/WPA2 Encryption

I don't think this is an Ubuntu problem per se -- it is likely caused by the interaction between your wireless chipset, software driver, and the software and hardware of the wireless access point or router.
I've seen this with various devices from completely different vendors, running different OS's, and issues with connecting with wireless routers/AP's from different enterprise vendors (Cisco, Meru, Aruba, etc.).  In other words, it is likely not restricted to Ubuntu.

The driver situation in Linux is getting better and better, but you may want to track down specifics for your chipset and make sure you have the most recent drivers.  Also, do some searches to see if there are known issues with the brand/model of your wireless router or AP and your hardware.
Often, the most recent driver can be found on the laptop or adapter vendor's website.

What is your computer model, wireless device model, and router model (i.e., what model of "Medialink")?  lspci and/or lshw should help you find your wireless model and perhaps chipset.

Here's some generic info:
If you haven't already, run jockey-gtk to check your driver update status.  You can also use the Super key (sometimes known as the Windows key) to open the dash, then type in "driver".  "Additional drivers" should appear as an application.
If nothing appears there, please check out the "Help" option there.

It will open an info page on proprietary drivers.  At the bottom of that page, there's a link for more information, with a link to "Hardware & Drivers".  Click through to that, scroll to "Common Problems", and finally, check the link which is titled, "Wireless network troubleshooter".   If you're lucky, you'll find something helpful there as well.

Also see Supported Wireless cards  and Ubuntu Wireless Networking Documentation.


Change the files /sys/class/backlight/xxx/brightness manually, where xxx are replaced by dell_backlight and intel_backlight, to figure out which interface is responsible for your backlight control.

To change the value in /sys/class/backlight/xxx/brightness open a terminal and run:

sudo bash -c "echo 5 > /sys/class/backlight/xxx/brightness;"

Then create /etc/X11/xorg.conf if not exists and add:

Section "Device"
    Identifier  "Card0"
    Driver      "intel"
    Option      "Backlight"  "xxx"
EndSection

After edit /etc/X11/xorg.conf reboot your system and let me know if it works.
`


Does ubuntu work on an Acer TravelMate 5742Z?

I have an Acer 5552 and all the drivers for Ubuntu are built in so unlike Windows you will not need to spend a lot of time locating and installing drivers.

Your Notebook should work just fine but you can always run ubuntu from a live cd to check that all your drivers and devices are compatible, this way you will not risk a device causing you issues.


When will the first LTS version be released featuring Gnome shell as default?

It will be Ubuntu 18.04, the upcoming LTS release as announced in the Ubuntu GNOME blog back in April. Given that you are already using Ubuntu GNOME, you will (most likely) not be affected by this change, and your desktop will escape relatively untouched if that's what you're worried about.

  On 5 April 2017 Mark Shuttleworth announced that Canonical's work on
  Unity will end and that Ubuntu 18.04 LTS, a year away from release at
  the time, will abandon the Unity desktop and employ the GNOME 3
  desktop instead, as Canonical moves away from its ambitions to produce
  a unified cell phone and desktop operating system and concentrates on
  desktop, cloud computing and Internet of things platforms instead.
  UBports founder Marius Gripsgård announced that the organization would
  continue Unity development.

https://en.wikipedia.org/wiki/Unity_(Ubuntu)


How do I switch from Unity 8 in Ubuntu 16.10?

Click the Unity 8 symbol, and you'll get a list of installed DEs, for example:

From there you can select your preferred DE.


How to install 'main menu' by using only terminal?

You can install the menu editor from command line with

sudo apt-get update
sudo apt-get install alacarte

As I said in my comment, that will not enable you to install software in a graphical mode.

You should fix the problem you have with Ubuntu Software Center - I suppose you will run into some error when you execute above commands. If yes edit your question to show us eventual error messages.


Install Ubuntu and Windows to complete new laptop

I use both OS on my PC, and to do that, I first install Windows, and then Linux.
I create a partition for Windows and install it there
Then I boot from the Ubuntu flash drive and install it on the remaining hard drive space.


How to permanently delete ALL older kernels using the shell with confirmation question?

Use following command instead of what you used before:

sudo apt-get purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')

Here is my output when I execute above command:

saurav@saurav-P4I45Gx-PE:~$ sudo apt-get purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')
[sudo] password for saurav:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-3.11.0-031100* linux-headers-3.11.0-031100-generic* linux-image-3.11.0-031100-generic*
0 upgraded, 0 newly installed, 3 to remove and 39 not upgraded.
After this operation, 212 MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.

That's it!


Have you tried to remove the package directly with apt-get? Your question is tagged with the server tag, so on a server the fglrx package is normally not needed:

apt-get remove fglrx

Alternativily you can try the fix-broken option of apt-get:

apt-get install -f


A possible reason could be your choice of hot key for switching languages. If the SHIFT key is in that combination, then this could interfere with the input boxes.

Possible solution: change hot key (remove SHIFT) from the menu item "Text Entry Settings...", you can find this menu item if you click on the language icon at the top right of the unity desktop.


spidev control using external hardware requirements

You can get fairly expensive devices like this, and cheaper ones like this. The latter apparently has Linux drivers.

More advanced kits like this, which does I2C (also on the Pi) as well, and has other interesting things like Infrared stuff. It has Linux drivers on the page.

SPI-to-USB  chips such as this are available, but you would need to solder on the connectors etc.

You may find this and this interesting as well, and this app may be of use.


I'm a little confused.  Do you just have to log in via ssh and it starts automatically, or do you have to start each service manually after you ssh in?

Usually, the best way to autostart services is to use systemctl.  First, type systemctl status smbd and you should get an output like this if it is running:

On the second line, it says enabled which means it will start when it boots up.  If it is not running, you can start it by typing systemctl start smbd.  It will then ask for your password to authenticate, after which the service starts running.  If it is not enabled, you can then type systemctl enable smbd to have it start when the system boots.  When you enable it, it will ask for your password twice.  You can do the same thing with vstpd and most services (including ssh), just replace the smbd part of the commands.


How to install Ubuntu 18.04 along with Windows 10 in Legacy BIOS Mode?

Yes!
I had the same problem and solved it by using Universal USB Installer
that uses legacy mode.

I found out about Universal USB Installer and the fact that it writes to the USB in legacy mode from this recent post on It'zGeek in a section under Step 2, describing how to "Create a bootable USB disk" with Windows.

When I booted from this image, then the legacy Windows 10 installation was recognized and I was able to install Ubuntu 18.04.  The only condition is that Universal USB installer is a Windows program, so I had to use Windows to make the legacy mode Ubuntu 18.04 live USB, which is not a big deal.


play sound on different outputs, based on what display its the "player" is displayed on?

You need to setup Multiseats(https://wiki.archlinux.org/index.php/xorg_multiseat)
i got it semi working, know that its possible, what you need is 2 pulseaudio daemons.
Im sure you could do this with other soundmanagers than pulseaudio.


Connection Problem with Cutecom Serial Terminal

This sort of thing is frequently caused by permissions on the serial devices.  Is there any change if you run cutecom as root?  If so, adding your user account to the 'dialout' group ought to do the trick.


How to view video file with external ac3 audio track?

And here's how to do this with VLC via the command line:

vlc videofile --input-slave audiofile

, then select the audio channel.

NB. Though not strictly related, --sub-file <subfile> will also load subtitles.


I get the same messages as well, but they don't prevent my system from suspending. There surely is another reason.

The culprit seems to be

Running hook /etc/pm/sleep.d/11_usb_s3 suspend suspend:
/etc/pm/sleep.d/11_usb_s3: 9: /etc/pm/sleep.d/11_usb_s3: cannot create /sys/bus/pci/drivers/ehci_hcd/unbind: Directory nonexistent
/etc/pm/sleep.d/11_usb_s3: 9: /etc/pm/sleep.d/11_usb_s3: cannot create /sys/bus/pci/drivers/ehci_hcd/unbind: Directory nonexistent
/etc/pm/sleep.d/11_usb_s3 suspend suspend: Returned exit code 2.

Sun Dec 15 03:54:24 CST 2013: Inhibit found, will not perform suspend

which seems to be a known bug. It is marked "fixed" so you may just need to apt-get update && apt-get upgrade to install an updated kernel, but some commenters still experience a problem without the workaround described in comment #22.


Should I turn off kernel logging (and how?) if I'm running off an SSD?

It should be preferred to silence logging instead of disabling it (otherwise you might miss something important).

For systemd prior to version 235 you can use

journalctl --priority=3

For newer versions there is parameter in

/etc/systemd/journald.conf

called ReadKMsg= that you need to enable. Make a backup and edit the file; remove the # in front of #ReadKMsg=yes and change yes to no (you can also insert a new line under this one with ReadKMsg=no.

changelog version 235:

  journald.conf gained a new boolean setting ReadKMsg= which defaults
            to on. If turned off kernel log messages will not be read by
            systemd-journald or included in the logs.

  I've often read that the number of writes to FLASH is limited, but this is the first concrete example of failure that I have heard about.

The change above is not going to matter a lot though in regards to writes to the SSD as writing is done sparsely. Then again every 1 less write is 1 less write :)

What might be an issue for Tesla: those SSDs they used might be pretty old disks. And the older SSDs did have issues. Nowadays... not so much.


I found a possible workaround. Try to chmod 775 /media/user/ will fix the issue. Ie:

Normally, in  Ubuntu 12.10 it will try to mount volumes in the following format.

drwx------ root root /media/user

This is the reason why you are not able to browse the volumes under different user. So, please try to change the permission to "chmod 775 /media/user".


Use Google Chrome...
Because the flash support for linux has been withdrawn and now google administers it for linux so chrome is a must and everything will go fine... :)


USB devices not properly powered off/disconnected when computer shuts down

It may be ACPI problem, or wrong settings in BIOS. Some computers and laptops has always on USB for charging mobile devices. Check this.


Is there any way of adding an DSN in Ubuntu?

I figured it out that,

Before doing this you need to know following things

1.The host name or IP address of the SQL Server machine.

2.The name of an instance to connect to or the port that the instance is listening on.

3.A valid SQL Server login name and password that can be used to connect to the database you want to access.

Linux ODBC, DSNs are listed in /usr/local/etc/odbc.ini. Installed ODBC drivers will be listed in /usr/local/etc/odbcinst.ini.

Using the following command one can find the file

usr$ find . -iname 'odbc*.ini'

and there is also one direct option for installing ODBC bridge drivers and that is

sudo apt-get install libmyodbc

for Mysql  and for Firebird OBDC driver type following

sudo apt-get install libfbclient2

This is all you need to do
See this link  for more details


How can I access and backup ~/.gvfs and ~/.cache/dconf?

You don't need to backup your ~/.cache and ~/.gvfs folders since:

  ~/.cache contains only the cached data and is used only to speed up access

and

  ~/.gvfs folder is the place where GVFS mounts volumes, it would usually be empty if you have not mounted any folders inside it. (Many a times, this is where mobile systems are mounted).

You could ignore this error while backing up.

However, if you really want to back it up, you could read the data using sudo:

sudo cp ~/.cache/dconf/ <destination> -r
sudo cp ~/.gvfs/ <destination> -r

replacing <destination> with the location where you want to backup to, and then enter your administrative password.


The easiest way I can think of is to take the hard drive out of the laptop that you want Lubuntu on, install it into another machine that has CD/USB boot capability.  Disconnect ANY other hard drives from the installing system, install as normal, then replace drive into the laptop.  As long as you installed the version for the correct architecture (x86 vs amd64) you should be good to go.

If you do not have the capability to install the hard drive into another machine, but can connect it externally via a USB adapter, you can usually install to a USB attached disk as well.  Another option is to create a Virtual Hard Disk image and install Lubuntu through a virtual machine, then use a utility to write the image to the physical disk.


Strange behaviors when loading Vim color themes

you need to install vim by default it wouldn't come with full functionality.

type sudo apt-get install vim

See this SO Question for more information


Sounds like a bit of a screw up in the packaging. In this case, firmware-libertas is available from Debian.

If you download that, install it with dpkg -i whateverthefilenameis.deb you should be able to install libertas-firmware (which is just a metapackage that depends on firmware-libertas) and then whatever depends on that.

Oh and report a bug so the developers know there's a problem.


A accesses B's shared resources, B cannot access A?

The problem was that A had no Samba users configured whereas B did. Thus the user of A was known to B and automatically accepted but the B user was unknown to A. In fact, A had no known users (maybe, because it was a new install of 14.04, whereas B was an upgrade) so A neither showed it's shared resources nor allowed access. Users are not configured in smb.conf so I missed this asymmetry between the two machines.

This was most easily fixed using the Samba Server Configuration GUI; the Preferences menu includes a Samba Users item and window to add new users with a network password. This adds the user name in /etc/samba/smbusers, a file which didn't exist on B before.

I believe the user name and possibly the password as well should be the same on each reciprocally shared machine-- at least, it works that way for me. I'm sure there is a way to have a single network user file rather than one on each machine-- I'll figure that out some day.


You should have a CNAME record in DNS that points to your FQDN. You should also have your subdomain parameters listed in /etc/apache2/sites-available/blog.hjm.im.conf  The request  for the subdomain will be forwarded to your server and Apache will resolve the request for the subdomain. This is exactly how I have my server configured with seven subdomains.

The values you had entered for the virtual server instance you had in your previous (removed) post looked fine for the virtual server instance, other than they were lumped into the same file with your root domain.


I use a notebook (Acer Extensa 5635Z) with an integrated Intel chipset. For my experience the Intel video card always works fine with Linux. They are slow with 3D stuffs (like games) but work well with all the other applications (included Google Earth).

However a quick search with the name of your new notebook can remove all doubt. :)


Ubuntu 20.10 server network is not starting on boot

I followed the instructions from the duplicate post listed above and it resolved my issue.
No internet connection after ubuntu server 20.04 install, ifconfig not available
Thanks for everyone's help.
Steve


Install ffmpeg, which will install the missing shared library libffmpeg.so:
sudo apt install ffmpeg

Sorry for this late answer, I had only just realised my suggestion which I was not 100% certain about worked for you. But here it is.


How do I get BOINC's icon to show up in the system tray?

Currently the official BOINC Manager does not have a systray icon under Linux. This is not Ubuntu's fault, Berkley itself simply does not provide such option. Years ago it had an -s option, for systray, but not anymore.

Yes, I also noticed the icon on Unity Launcher sometimes maximize itself. A bit annoying perhaps, but no big deal.

A workaround, if you don't want the window to pop (or the icon on Launcher), is to exit the manager, while leaving the tasks running in background:

Boinc Manager > File > Exit BOINC Manager (Ctrl+Q)

It will ask whether you want to also stop the tasks, and if you want to remember the decision. If you choose to leave the tasks running on background, they will show up if you run the Manager again.

Warning: if you choose to stop the tasks when you exit the Manager, you will have to manually start the Boinc service before the Manager works again. You can simply reboot your PC or type in either terminal or Alt+F2:

gksudo /etc/init.d/boinc-client start

Type in your password, and the Manager will work again.

If you set the Manager to remember the decision and you want to change it, you can do so by:

Boinc Manager > Tools > Options > "General" tab

And check "Enable Manager exit dialog"

This may mitigate any nuisances you may have with Boinc in Ubuntu.

Last but not least, if you really want a systray icon, and you're felling adventurous, you can try this unofficial, unsupported and perhaps outdated systray app. You may also need to whitelist the icon. Of course, try at your own risk.


You could also set it through software.
I am not familiar with how to do it on xUbuntu but Kubuntu has the Power and Brightness options right by the notifications.
There are also applications which offer even more control like Brightness Controller, which you can install after adding the repo:
sudo add-apt-repository ppa:apandada1/brightness-controller
sudo apt update
sudo apt install brightness-controller

You can also try using xrandr with this option shown in man xrandr
       --brightness brightness
          Multiply  the  gamma  values on the crtc currently attached to the output to specified floating value. Useful for overly bright or overly dim outputs.  However, this is a software only modification, if your hardware has support to
          actually change the brightness, you will probably prefer to use xbacklight.


Is there an Ubuntu Solitaire that works like the Windows 7 game?

Try Aisleriot. It works pretty much the same as Microsoft Solitaire and  is available in Ubuntu Software Center.

You can install it via command line too :

sudo apt-get install aisleriot


Using chsh to switch to a csh shell from bash,

I think you're trying to change the shell being used when you use your terminal emulator (such as urxvt, gnome-terminal, xterm) or when you use the console. My assumption is that you're logged into a graphical environment such as gnome-shell/unity/etc. and exit just closes your terminal emulator window and quite rightly so.

Try logging out of your X session and then back in. exit would have worked if you were logged in using a console (most likely tty1-6, accessible via CTRL+ALT+F1-6). Of course it would have worked but only for that and the following console sessions - it wouldn't influence your already running X session's behaviour.


location of instructions for config of apache 2.4 directory structure

If you go to /etc/apache2/sites-available and go into 000-default.conf what do you see?

For example:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www
    ServerName www.mydomain.co.uk
</VirtualHost>

I would recomend moving all of your folders into a domain specific folder as symLinks seem like a bad idea to me for example

sudo mkdir /home/rcdavis/www/MYSITE
cd /home/rcdavis/www
sudo mv !(MYSITE|MYSITE) MYSITE
sudo mv MYSITE /var/www/MYSITE

And then update your 000-default.conf to look something like: (Edit: Provided after)

<VirtualHost *:80>
    #ServerName www.example.com
    ServerAdmin russ.c.davis@gmail.com
    DocumentRoot /var/www/MYSITE
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


How to update kernel after ubuntu server 10 -> 12 update

Your VPS host is running Parallels Virtuozzo Containers (hence the ZVFS filesystem on root). This is an Operating System Virtualization product - a single kernel is shared between all of the virtual hosts and you can not change it or update it.


Automatically change Ubuntu wallpaper at a certain hour

I'm not sure, but maybe you have to install dconf first

sudo apt-get install dconf-cli

Edit your crontab

crontab -e

Add an entry for each background image

*/5 4,5,6,7 * * *   /path/to/change_wallpaper '/path/of/your/wallpaper/for/4am'
*/5 8,8,9,10,11 * * *   /path/to/change_wallpaper '/path/of/your/wallpaper/for/8am'
*/5 12,13,14 * * *   /path/to/change_wallpaper '/path/of/your/wallpaper/for/12am'
*/5 15,16,17 * * *   /path/to/change_wallpaper '/path/of/your/wallpaper/for/3pm'
*/5 18,19 * * *   /path/to/change_wallpaper '/path/of/your/wallpaper/for/6pm'
*/5 20,21,22,23,0,1,2,3 * * *   /path/to/change_wallpaper '/path/of/your/wallpaper/for/8pm'

The interval is set to 5 minutes (*/5).
The lowest possible interval is 1 minute (*/1 or *)

Save and close your crontab editor
Create the script

nano change_wallpaper

Add the code below

#!/bin/bash -e
user=$(whoami)

fl=$(find /proc -maxdepth 2 -user "$user" -name environ -print -quit)
for i in {1..5}
do
  fl=$(find /proc -maxdepth 2 -user "$user" -name environ -newer "$fl" -print -quit)
done

export DBUS_SESSION_BUS_ADDRESS
DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS "$fl" | cut -d= -f2-)

IMG="file://$1"
if [ "$(gsettings get org.gnome.desktop.background picture-uri)" != "$FILE" ]; then
    dconf write "/org/gnome/desktop/background/picture-uri" "'file://${IMG}'"
   # gsettings set org.gnome.desktop.background picture-uri "'$IMG'"
fi

The script works with dconf or gsettings. You can switch between both methods. Simply move the # in the front of the gsettings … line to the dconf … line

Make it executable

chmod +x change_wallpaper

Test the script in your crontab

Edit your crontab again

crontab -e

Add the (temporary) line below

*/1 * * * *   /path/to/change_wallpaper '/path/of/any/wallpaper'

Close the crontab editor
Wait a minute

If the script works, remove the test entry

Edit your crontab again

crontab -e

Remove the (temporary) line below

*/1 * * * *   /path/to/change_wallpaper '/path/of/any/wallpaper'

Close the crontab editor

Script partially taken from here


Add a login screen on boot to Lubuntu 14.04

Sure you can.

Open Users in preferences, and click your user account. (You will need to unlock it).
Somewhere there, you will see a Login at boot or Login automatically options.

Uncheck that box.


You can add an environment variable to an application by editing its .desktop file. For example, to run "digiKam" with the environment variable APPMENU_DISPLAY_BOTH=1, find the corresponding digikam.desktop file and add the setting of the variable, via the env command, to the entry "Exec":

Exec=env APPMENU_DISPLAY_BOTH=1 digikam -caption "%c" %i

In your case:

Exec=env GTK2_RC_FILES=gtkrc.custom /path/to/eclipse


How do I install the latest Unity3D beta? UnitySetup-2018.1.0f2 on Ubunu 18.04 LTS?

Navigate to the folder where your Unity installer is (probably Downloads) and run

sudo chmod +x ./UnitySetup-2018.1.0f2

Then execute it like so:

sudo ./UnitySetup-2018.1.0f2

Good luck!


According to MiKTeX requirement page, only OS 64 bits are suppported.

But after reading a little the How to build MiKTeX source, it seems possible to install it on OS 32 bits. Before trying to build, check if you have following requirements :

C/C++ compiler (there is gcc by default on Ubuntu)
cmake (install it using sudo apt install cmake)
cat, fop, sed and xsltproc commands
some libraries :

apr
aprutil
bzip2
cairo
expat
fontconfig
freetype2
fribidi
gd
gmp
graphite2
harfbuzz-icu
hunspell
icu
jpeg
log4cxx
lzma
mpfr
mspack
LibreSSL (or OpenSSL)
pixman
png
poppler
popt
potrace
uriparser
zzip
poppler-qt5 (When building UI components with Qt5)

Now, you're ready with all requirements, time to install MiKTeX.

Download MiKTeX source code :

wget https://github.com/MiKTeX/miktex/

Build the code outside of source code directory (to keep a backup incase) :

mkdir ../source && cmake ../source

where ../source is a directory which would contains built source code.

Defined build variables (optionnal):

If you don't want to install MiKTeX as a standard package (not inside /usr/lib, but for example inside /opt/miktex):

cmake -DCMAKE_INSTALL_PREFIX=/opt/miktex

If you want to build UI applications (this part is still experimental) :

cmake -DWITH_UI_QT=ON

Time to build and install MiKTeX :

make
make install

Now, you have to do some initialisations :

mpm --admin --update-db

--admin isn't required if you had install MiKTeX inside your /home directory (would be the same for all others command below).

initexmf --admin --set-config-value [MPM]AutoInstall=1
initexmf --admin --update-fndb

If you want to shorten MiKTeX executable names (e.g for pdfTeX, default executable name is miktex-pdftex and would be shorten as pdftex), use the following command (optionnal) :

initexmf --admin --mklinks

Installing basic packages :

mpm --admin --verbose --package-level=basic --upgrade
initexmf --admin --mkmaps

Finalize the installation by updating the database, and remove a useless folder created for the installation :

initexmf --admin --update-fndb
rm -fr ~/.miktex

Source : https://miktex.org/howto/build-unx


No wired connection, driver detected, Lubuntu

Since it worked during the installation, you should be able to install the drivers from the iso. So, if you have access to the original iso file you used for installation, you can install the drivers from there.

First, transfer the iso file to your Ubuntu computer user's home directory.

Next, run the following commands (this assumes that you did not change the original name of the iso file):

sudo mkdir /media/cdrom
cd
sudo mount -o loop ubuntu-* /media/cdrom

Now, search for "software and updates" in your applications and under the "Ubuntu Software" tab, scroll down and click the box to place a check in the box for "CDrom with Ubuntu" option.

Enter your password when prompted and this should reload your software sources.

Finally, select the "Additional Drivers" tab and select your wireless driver and then click "Apply Changes" to install the driver.

This was loosely based on an itsfoss.com article by Abhishek Prakash.


if you have a Live DVD or USB, boot with that and in Terminal, runt the following command

blkid

fdisk -l

Or if you prefer GUI, see if the partitions show up in gparted

Most likely the block device (partition) was not correctly mount due to unsuccessful boot. Upgrade does sometimes break system but I've never heard it wipes out data.


if you have a touchpad though, highlight the text and press Ctrl + Shift + C to copy ...

the following resources describe how to copy/paste using keyboard only -- screen/byobu:

How do I integrate Byobu's copy-buffer with the X clipboard?

http://www.samsarin.com/blog/2007/03/11/gnu-screen-working-with-the-scrollback-buffer/

  Copy and Paste in Scrollback mode (screen/byobu)

  Enter scrollback mode: Ctrl+A+[ or in byobu also F7
  Move the cursor to the start of the text you want to copy, hit spacebar
  Move the cursor to the end of the text you want to copy and hit enter
  To paste text, hit Ctrl+A+] or Alt+Insert


In your xinput list-props it says:

libinput Tapping Enabled (292): 0

which I'm pretty sure means tapping is configured as disabled.

Therefore - a possible solution to Symptom 1 is to run:

xinput set-prop 13 292 1

This should set the property Tapping Enabled (292) to a value of 1 (Enabled).

This may only enable it for your current session though. So to make the change permenant - I think you would need to edit your configuration within /usr/share/X11/xorg.conf.d/40-libinput.conf as described here:
Unable to set default values for SynPS/2 Synaptic


how to install sql developer (.rpm file) on lubuntu 18.04

The easiest way to install the Oracle SQL Developer program in all currently supported versions of Ubuntu is to install sqldeveloper-package from the default Ubuntu repositories. sqldeveloper-package makes it possible to build a Debian package of Oracle SQL Developer. This utility will require you to download the architecture independent archive from https://www.oracle.com/technetwork/developer-tools/sql-developer, identified as "Oracle SQL Developer for other platforms", "Oracle SQL Developer for Multiple Platforms" or "Oracle SQL Developer for Linux and Unix" (depending on which version you  are building), to create the Debian package from.

To install sqldeveloper-package open the terminal and type:

sudo apt install sqldeveloper-package

After installing, you can use it to build sqldeveloper by typing:

make-sqldeveloper-package /path/to/arch-ind-sqldeveloper-archive

This puts the build package in an autogenerated folder. Use

sudo make-sqldeveloper-package --install /path/to/arch-ind-sqldeveloper-archive

to directly install it on your system. You can get an overview of all commandline options with:

make-sqldeveloper-package --help

For running sqldeveloper you can connect to and use any JDK 1.8 (e.g. openjdk-8-jdk) or above.


First of all run top in your terminal which process using your CPU:

top

Check the PID and then try to debug the process by strace:

sudo apt-get install strace
sudo strace -fp PID

Then you'll see what it's doing exactly.


It turned out that that in fact there was gvfs-gphoto2-volume-monitor process in the background.

Run ps aux | grep gphoto, which might have output like:

peter    25802  2.1  0.1 302504  8736 ?        Ssl  13:10   0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
peter    25814  2.2  0.1 441508 11176 ?        Sl   13:10   0:00 /usr/lib/gvfs/gvfsd-gphoto2 --spawner :1.3 /org/gtk/gvfs/exec_spaw/21
peter    25835  0.0  0.0  22676  1096 pts/0    S+   13:10   0:00 grep --color=auto gphoto

First colums is PID (process id), kill them:

kill -9 25802
kill -9 25814

Now gphoto2 can now connect to camera.


"pkgAcqTransactionItem::TransactionState-stat (2: No such file or directory)" error while trying to install R

Try the following:

remove duplicate entries from /etc/apt/sources.list - it should contain only one about R as follows:

deb https://cloud.r-project.org/bin/linux/ubuntu xenial/

remove old apt package lists with sudo rm -rf /var/lib/apt/lists
update package lists with sudo apt-get update
resume installation session with sudo apt-get install -f

You can consult official Cran page for correct R installation details for Ubuntu.


Ubuntu Dell XPS 15 - external display image not showing

I resolved this with the BASH script below, which I saved as monitor.sh. Don't forget to chmod +x monitor.sh to make it executable.

I don't recall where I got the script, save to say I've had it a long time.

Usage:

Run the script as-is, e.g., ./monitor.sh
Take a note of the external display name you want, e.g. DP-1.
Re-run the script as ./monitor.sh <display name>, e.g., ./monitor.sh DP-1

That's it. For me the settings are remembered until I reboot and survive disconnecting the external monitor and reconnecting it.

#!/bin/sh
if [ $# -eq 0 ] ; then
    echo 'Missing monitor name'
    xrandr -q | grep " connected"
    exit 1
fi
MONITOR=$1
xrandr --newmode "2560x1440_60.00" 220.812 2560 2608 2640 2720 1440 1443 1448 1478 -hsync -vsync
xrandr --addmode $MONITOR "2560x1440_60.00"
xrandr --output $MONITOR --mode "2560x1440_60.00"


How to see which updates need a system restart

All current versions of Ubuntu contain nice utility named needrestart:

check which daemons need to be restarted after library upgrades

It registers itself to react on apt install or remove triggers.
Install it with:
sudo apt-get install needrestart

And it will inform you about needed restart after package installation.


If you are getting broken pipe error after N minutes of time in your SSH connection then this is usually happens because of TCP connection inactivity.

So, you can enable it in the server's /etc/ssh/sshd_config with the parameter:

"ClientAliveInterval = 'specify your time'"

or in the client's /etc/ssh/ssh_config file with

"ServerAliveInterval = 'Specify Your Time Interval'"

be sure, Time interval time must be in seconds. (e.g 60 means 1 min)

hope this will solve your issue.


How do I fix this umask/permission issue on a NTFS drive?

Solution given by OP in the question:

  Installed cifs-utils

sudo apt-get install cifsutils

  Installed winbind

sudo apt-get install winbind

  in .smbcredentials I added a line for domain= (my actual workgroup
  name)

  I finally around with the IP address and folder name until something
  stuck and didn't throw off errors. It was //(ip address)/foldername
  altered the line in stab to look like this:

//(local ip)/foldername /media/misterfantastic/a300   cifs    credentials=/home/misterfantastic/.smbcredentials,uid=misterfantastic,gid=misterfantastic,iocharset=utf8,sec=ntlm,  0   0


Autorun a script after I plugged or unplugged a USB device

Thanks to MinimusHeximus and the respective contributors to the thread he mentioned in his comment to my similar question, I think I can now offer you the following answer.

You'll need 5 (five) files for such a USB device as follows, simply filling in respective values <fortheseparts>:

/etc/udev/rules.d/00-usb-<yourdevice>.rules

ACTION=="add", ATTRS{idVendor}=="<yourvendorid>", ATTRS{idProduct}=="<yourproductid>", ENV{XAUTHORITY}="/home/<user>/.Xauthority", ENV{DISPLAY}=":0", OWNER="<user>", RUN+="/usr/local/bin/usb-<yourdevice>-in_udev"
ACTION=="remove", ATTRS{idVendor}=="<yourvendorid>", ATTRS{idProduct}=="<yourproductid>", ENV{XAUTHORITY}="/home/<user>/.Xauthority", ENV{DISPLAY}=":0", OWNER="<user>", RUN+="/usr/local/bin/usb-<yourdevice>-out_udev"

/usr/local/bin/usb-<yourdevice>-in_udev

#!/bin/bash
/usr/local/bin/usb-<yourdevice>-in &

/usr/local/bin/usb-<yourdevice>-in

#!/bin/bash
sleep 1
<yourbashscriptcode>

/usr/local/bin/usb-<yourdevice>-out_udev

#!/bin/bash
/usr/local/bin/usb-<yourdevice>-out &

/usr/local/bin/usb-<yourdevice>-out

#!/bin/bash
sleep 1
<yourbashscriptcode>

Notes:

You can capture the values <yourvendorid> and <yourproductid> by entering the command lsusb in Terminal -- when your USB device is plugged in -- which will list all your USB devices currently available, like Bus 003 Device 002: ID 8087:07da Intel Corp., where 8087 is the VendorID and 07da is the ProductID.
And <yourdevice> can be any arbitrary name you may choose for your USB device, for example, I chose to use the generic name "keyboard" when creating such  files for my USB keyboard which required applying a different keyboard layout whenever it's plugged in.
In some scenarios, it may not be necessary to use the ACTION=="remove" line in the udev rules file, and hence the associated 2 (two) "out" files, when you don't need to do anything (e.g. reverse a change made when the device is plugged in) after the device is plugged out.


What are the advantages of a preinstalled Ubuntu laptop?

I've never had to buy a preinstalled GNU/Linux pc before (more than 10 years!)

To get a computer the most free as in freedom possible hardware made, it's necessary. So you'll have to know well the insides. (for me, basically graphics and wireless adapters are important) The worst is normally there is basic information that shops don't give us. (energy consumption, wireless chipset...)

If you get this info simply 'duckduckgo' it (or 'google' it if you prefer) to see how people complain about, etc.

h-node.org is a web page basic to know compatibility hardware with absolutely free drivers.
Linux foundation has some stuff too.

Intel is who gives best support to free as in freedom drivers in graphics video adapters.

And also, buy GNU/Linux PCs is a very good option. (or at least, without os)
Of course. (and support GNU/Linux related industry is a good point, of course)


Spellchecker in LyX: Right dictionary configuration

As far as I know, LyX has a spellchecker, but no grammar checker.


Appgrid not working. Only shows empty window.

This can be solved by installing 'python3-gi-cairo' on Ubuntu 12.10, 13.04, 13.10 and 14.04 , or by installing 'python-gi-cairo' on Ubuntu 12.04. This will be fixed in the next release of App Grid.


How do I make taskbar icons appear in GNOME?

If you're using GNOME 3, you should be able to see programs' app indicators by "pushing" the mouse cursor against the bottom edge of the screen. The panel will then appear from the bottom edge.


How to boot from USB containing full ubuntu installation on a MacBook

The problem is that apple has a proprietary boot manager. When you installed to your USB drive, Ubuntu tried to make some changers to the boot manager, which Apple happily ignored.

Here's what you need to do:

Boot into OSX. If you are working with an apple machine, DO NOT run this in anything but OSX.
Download rEFInd. You can find it on sourceforge. (Sorry - really do wish there were somewhere less sketchy I could point you!)
Decompress it, navigate to the directory and run install.sh.

$cd refind-bin-x.xx $./install.sh

reboot osx, with your USB install of ubuntu plugged in.

You should now see a slightly less slick looking bootup screen, and an option to boot into Ubuntu. If this doesn't work the first time, try booting one or two more times until it does.

It's remarkable how simple this is... and how hard that information was to find. I hope that this helps!


When you call l or la, you basically call aliases:

l='ls -lah'
la='ls -lAh'

You can check all aliases, currently configured in your system by running alias. It may be good to have some self-learining mechanism that will remember your typos an fix them, but for now it's just pre-configured aliases.

Related question on: Unix&Linux


Unable to ping 18.04 desktop unless this machine first pings the client, when using networkd instead of network-manager

After realising I was affected by this bug and correcting for it, I found that networkctl showed the wireless interface as 'configuring' status.

I then found that NetworkManager was running, and on stopping it via sudo systemctl stop NetworkManager, followed by sudo systemctl restart systemd-networkd, and finally deleting the ARP entry on my Windows client before pinging again, everything worked. I did sudo systemctl disable NetworkManager and restarted to make sure the solution persisted and it did not...

A kind soul in the Ubuntu IRC channel guided me to do:

sudo systemctl mask network-manager.service
sudo systemctl mask NetworkManager-dispatcher.service
sudo systemctl mask NetworkManager-wait-online.service

This resolved the issue and networkctl now shows the status of 'configured'. It appears network-manager and systemd-networkd were fighting over configuration of the wireless interface. I suspect that my understanding that network-manager would leave it alone would be correct if there was no configuration in /etc/NetworkManager/system-connections/ but haven't tested this theory - I'm just relieved it's resolved.


if I install Ubuntu on my Macbook will the apple logo still light up?

Assuming you have a MacBook with a glowing logo, yes. The light for the logo is active so long as the screen is active regardless of what operating system you’re using.


libreplan : Depends: tomcat6 but it is not going to be installed

Yes, you can and you should install  the package tomcat6 alongside tomcat7 to solve your problem. Both packages can be installed in parallel .

But the package should be automatically installed. I suspect that you have more problems.

For this reason run

sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install tomcat6

and add the error messages to your question.


Can't play DVDs through either VLC, Videos, or Kaffeine

When it comes to playing DVDs in Ubuntu, the libdvd applications needed to play DVDs are not installed by default.  To install them run the following:

From a terminal window:

First, enable the Universe/Multiverse repositories:

sudo add-apt-repository universe
sudo add-apt-repository multiverse
sudo apt update

Then install the missing applications:

sudo apt install libdvdcss2 libdvdread4 libdvdnav4 ubuntu-restricted-extras

You may have to install the libdvd-pkg instead:

sudo apt install libdvd-pkg

Hope this helps!


You can try something like this:

rdesktop -u someuser -p somepass IP -r disk:X=/home/user/somedir_with_script/ \
-s X:\scriptname.cmd

or

rdesktop -u someuser -p somepass IP -r disk:X=/home/user/somedir_with_script/ \
-s "cmd \C X:\scriptname.cmd"


Docker Container's Memory Swappiness value outside of documented range

-1 is a deprecated value. As you can see in this issue 0 is the new -1

https://github.com/moby/moby/pull/33898


Cannot SSH into Kubuntu box without password

You did it the wrong way. You need the private key on the client and the public key on the server in the authorized_keys file.

Edit from Oli: I'll add that you'd do yourself a ton of favours by just using the toolset provided for you.
Namely: ssh-copy-id


It sounds like you may have a broken pendrive; go to a terminal and try these commands; ensure the pendrive is in fact /dev/sdc 1st though (use mount):

sudo -i
fdisk /dev/sdc
p # Lists the partitions
d # This deletes the partition. Again, be careful you have the right one!
p # check...
n # Create a new partition
b # This one isn't a command, it's a type selection - vfat
w # Save changes

This should give you a list of partitions; delete the only one there (if more, repeat 'd' until there aren't - whilst being careful that this is definitely the right drive! It should then create a new one, set it to FAT32, and write it.

If that works, type fdisk -t vfat /dev/sdc1 ; exit & you're done.

If not, try cat /dev/zero >/dev/sdc & let it run for a while (-c when bored..) - if it generates no errors, try step 1 again. If you still get I/O errors, it's damaged.


Network File/Printer Sharing from Ubuntu to Windows 10

Use the CUPS Admin interface, http:/localhost:631/printers and click on the "Add printer" button. CUPS will let you search the local network (if Windows has shared the printer) or type in the IP Address or hostname of the Windows system. CUPS is the Common Unix Printing System (Common, in that everybody uses it).


Is landscape-common still developed/maintained? Alternatives?

I don't know if landscape-common will ever be ported to python3, it depends on twisted. That being said, you should be able to install it manually even if it's not in the default image. It will pull in python2 dependencies but should work.


Assign different ip's to vm's and clones created using virtual box

First, you have to decide about the network topology. You have at least the options

NAT: each of your virtual machines is connected to a separate network card (at least the virtual machine thinks it is so) and with a help of the  Network Address Translation (NAT) goes in the real network using the external IP address of the host. The virtual machines cannot see each other.
Bridged adapter: your physical host adapter gets an additional Ethernet (MAC) address for each virtual machine and acts as two (or more) independent adapters simultaneously. This way, each virtual machine is connected parallel to the host to the network, getting an IP address from the main DHCP server. This way, the machines get different IP addresses (of cause MAC addresses must be different) and can see each other.
NAT Network: introduced in VirtualBox lately (I think Version 5) and in my case did not work. It should be kind of internal network, where virtual machines can communicate with each other but are not accessible from the real network.
Internal networking: virtual machines see each other but not the host and not the real network.
Host only adapter: virtual machines see each other (and probably host) but not the real network. The host should be able to communicate with virtual machines.

Next, make sure you have different MAC addresses of the network cards in virtual machines. Take "Bridged adapter" or "Host only adapter" and make sure your DHCP server is agree to serve some more participants in the network. This did work for me.

Don't forget to set "cable connected" option.

For "Host only adapter" and "NAT Network" you should create these networks first under File -> Preferences -> Network.


how to set static ip in ubuntu 16.04 on raspberry pi 3 (cloud-init)?

I tried simply apt remove'ing cloud-init on the latest 16.04 server image from Pi Flavour Maker, and it rendered my system unbootable. This tip for a different Ubuntu (probably the official desktop 18.04) warns that there may be other processes that depend on cloud-init, and those dependencies aren't automatically cleared up by removing it:
gotcha warning about 18.04

  You just deployed yourself a fresh copy of Ubuntu Server 18.04 Bionic
  Beaver. It should be the latest and greatest, and you just need a
  virtual machine to do some web development or perhaps you just want to
  enable IP forwarding and use this machine as a router. That's great,
  except the latest Ubuntu assumes that you are part of the current
  trend to put everything in the cloud, and so ships with something
  called cloud-init.

  No harm normally, but this wastes valuable seconds doing something you
  don't need if you're not in the cloud. It’s easy to remove this
  package by following the (modified) instructions
  here:

dpkg-reconfigure cloud-init

  Then deselect all the options except None.

sudo apt-get purge cloud-init
sudo mv /etc/cloud/ ~/; sudo mv /var/lib/cloud/ ~/cloud-lib

  I prefer to move, rather than delete, in case something goes wrong and
  you wish to restore the files.

  When you remove cloud-init following those steps, your machine stops
  booting and there is apparently a service that is waiting for network
  to be up. This would normally be just an inconvenience, but the boot
  hangs indefinitely waiting for said network. Odd choice of
  configuration out of the box, but anyway, you can fix this by:

  List the services which depend on network being online.

sudo systemctl show -p WantedBy network-online.target

  This will list the culprits as some iscsi services that you probably don’t need.
  Disable the services and remove the open-iscsi package

systemctl disable <service name>
sudo apt remove open-iscsi

  That should do to get the system booting without some service waiting
  endlessly for a network connection.


16.04 Workspaces, Launcher placement stopped working

When verifying About this computer, Graphics was not detecting my graphic card and was showing - Gallium 0.4 on llvmpipe (LLVM 3.8, 256 bits) (I had the X.Org X server nouveau display driver installed).

So I switched the driver from the X.Org X server to the NVIDIA binary driver (version 361.42) from Software & Updates > Additional drivers.

After a reboot, I re-verified About this computer, Graphics detecting my card (GeForce GTX 970M/PCIe/SSE2) and every Unity settings started working properly.


This is a very difficult and broad question to answer, but I'll try.

ZippyShare

Based on what I've seen of ZippyShare, they use an Ad Revenue model to generate income.  I've also noted that the site is heavily laden with popups and dialogs.

Locked out of your browser

Being locked out of your browser is probably the result of a hidden, or covered dialog box.  If a dialog box pops up, and you cannot see it, you will find that the browser seems locked until you close that dialog box.

This is a technique used to force you to click on the dialog box, but can get mixed up with other windows/tabs/popups and actually make it near impossible to click/close.

Killing it off with the task manager is the only real option.

You have been infected

Again, just a more alarmist way of trying to take your money.  With statements like "We've detected XXX amounts of malware on your system, click here to repair" etc.

Router Login Page

It's unlikely this was caused by any Malware, it's easy to guess the address for the majority of home user routers/modems.  For example, they'll usually be in the 192.168.X.X range, or the 10.1.X.X range.  IF a malicious script tried to open it, it wouldnt be out of the question for it to guess.

Malware

Malware on Linux is unlikely, but increasingly possible.  If you're truly concerned, then I'd recommend ClamAV, and Bleachbit, both are available in the Ubuntu App Store or via apt-get/apt/aptitude.

Browser Safety

Outside of that, I'd suggest resetting your browser defaults, removing any unknown addons/plugins, and resetting your homepage.  Additionally, adding an Adblocker like uBlock Origin to help when on places like ZippyShare, and a privacy plugin like Privacy Badger or Ghostery.

Comment contributed options:

AdBlockPlus
Windscribe
NoScript

(thanks @Zacharee1 and @Marton)

Hosts File Blocking

This is a good way to stop the ads before they begin, but can be a little tricky.  You can get a copy of a hosts file that can be used to block ads from hpHosts which is under the MalwareBytes umbrella.

Basiclly, you extract the file; copy the contents and add it to your /etc/hosts.

Safety Report

Here is a copy of Google's Safe Browsing report for zippyshare.com:

Some pages on this website send visitors to dangerous websites.
Some pages on this website install malware on visitors' computers.
Some downloads on this site are new or not commonly downloaded by users, and may be dangerous. Safe Browsing is warning users on these downloads. In these cases, the warnings are lifted automatically if the content is verified to be safe.
Dangerous websites have been sending visitors to this website, including: safelinkconverter.com, href.li, and gdaily.org.


Don't bother with the loopback module. Undo all of that. Go to a terminal and type:
alsamixer

Use the arrows to move over to Line, press M to unmute. Then Up to increase the volume to the top level you can choose while it's in the green (44 for my machine). Lastly, arrow over to Loopback, and press Up to enable. This will create a loopback channel at a hardware level. Works much better.
Edit
To provide a bit more context, this is the best method for a number of reasons:

Audio volume is controlled separately on each machine: While the volume of the subordinate machine is "based" on the volume set in ALSA mixer, since it's hardware level when you adjust the volume on the main computer, it doesn't impact the subordinate, and visa-versa.
Bluetooth works independently: If you connect a Bluetooth headset to the main computer, the audio from the main computer will go through the BT, but the audio from the subordinate computer will continue to pass through the line-out to the speakers. Subsequently the same is true for connecting a Bluetooth device to the subordinate machine.
Front panel connectors still work: Same as BT.
Zero latency: Probably most importantly for videos/gaming, it's hardware pass-through, so there won't be any latency in the audio signal.


Why can't I dual-boot with windows 8.1 and Ubuntu 14.04?

Try this if you already haven't.

Turning off secure boot depends on the make and model of your computer as each one has slightly different methods for turning it off.

Basically though click on the "super" key (Windows key) and then click on the power icon next to your user name.

Hold down the shift key on your keyboard and select restart computer. Keep the shift key held down until your computer reboots.

You will now have an option to go into your UEFI boot settings.

Within the UEFI settings look for the option to turn off secure boot. You don't have to switch to legacy mode and you shouldn't switch to legacy mode as this will not help your cause.

Save and exit the UEFI settings if all went well then

Log into Windows and make sure you are viewing the desktop and not the tiles screen.

Hover the mouse in the bottom left corner and right click. You should see an option for the administrator's command prompt. Click on this option.

Within the administrator's command prompt type the following command:

bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi

Exit the command prompt.

if all went well then reboot into ubuntu.
Reboot your computer.

This time when the computer boots you should see 4 options.

Ubuntu
Ubuntu (advanced)
Windows (might say something similar like Windows boot options).
Setup

Choose option 1.

Ubuntu 14.04 should now appear.

To read the entire article goto http://www.everydaylinuxuser.com/2014/05/install-ubuntu-1404-alongside-windows.html

Hope this helps


What's the difference between libavcodec-ffmpeg-extra56 and libavcodec-ffmpeg56? Which should I install?

Why extra?
Due to the licenses of the external libraries involved some components were split into libavcodec-extra and libavfilter-extra.

libavcodec-extra
As of Ubuntu 20.04 LTS "Focal", libavcodec-extra adds some additional encoders and decoders for the outdated AMR audio format which was used in old phones. There is no reason to install libavcodec-extra unless you need to encode AMR.
Encoders:

libopencore_amrnb - Adaptive Multi-Rate NarrowBand (AMR-NB).
libvo_amrwbenc - Adaptive Multi-Rate WideBand (AMR-WB).

Decoders:
libavcodec-extra additionally adds two additional AMR decoders:

libopencore_amrnb for AMR-NB
libopencore_amrwb for AMR-WB

But these decoders are not very useful as FFmpeg can decode AMR-NB and AMR-WB by itself via the built-in decoders anr_nb and amr_wb.

libavfilter-extra
The libavfilter-extra package adds two minor, niche filters:

lensfun for camera lens distortion correction.
ocr for Optical Character Recognition.


How to stop Gnome dock reappearing when a window is full screen?

This cannot be changed in the settings app or gnome-tweaks, but setting /org/gnome/shell/extensions/dash-to-dock/autohide-in-full-screen to false in dconf-editor will prevent the dock from reappearing over any app running in full screen mode.


How to search entire hard drive for a file?

A simple find / -type f -name "" would do the trick if you know exact filename.

find / -type f -iname "filename*" if you want to match more files (ignore case).

Avoid -type option if you want to search for directories etc. See manual of find for more information. To see the manual, issue the command:

man find


Deluge can't open magnet links from Chrome (Ubuntu 17.10)

I just has the same problem with Deluge and Chrome and I managed to find the proper solution here:

First checking defaults:

$ xdg-mime query default x-scheme-handler/magnet
eiskaltdcpp-gtk.desktop
$ gvfs-mime --query x-scheme-handler/magnet
Default application for 'x-scheme-handler/magnet': eiskaltdcpp-gtk.desktop
Registered applications:
    eiskaltdcpp-gtk.desktop
    transmission-gtk.desktop
    qbittorrent.desktop
    deluge.desktop
Recommended applications:
    eiskaltdcpp-gtk.desktop
    transmission-gtk.desktop
    qbittorrent.desktop
    deluge.desktop
$

Then setting the new defaults:

$ gvfs-mime --set x-scheme-handler/magnet deluge.desktop
Set deluge.desktop as the default for x-scheme-handler/magnet
$ xdg-mime default deluge.desktop x-scheme-handler/magnet

There is also an explanation about a problem within Deluge Packaging here.


First of all, before we jump the gun here, X.org is not going anywhere just yet.

For situations where wayland is not supported, X will remain the fallback. Plus, X will still be maintained and available.

That covered, wayland will provide many of the features X does, can run a nested X server, etc.

Sorry for not including links, I might do that if I update my answer later.


Play youtube videos in Totem movie player

In Software Center:

Look for "movie player"
Select "Movie Player"
Click on "More Info"
Scroll down and check the "Add-ons" section
Make sure that you have installed at least:

Plugins for the Totem media player
GStreamer coded installer
GStreamer extra plugins

I hope this helps.


cat: id_pub.dsa: No such file or directory

It is a typo (seriously!!) in the documentation. What it really meant is to copy the rsa public key to the authorized_keys file so that you can ssh using keys (no password). So the command should be:

cat id_rsa.pub >> authorized_keys

After digging found that the mistake was introduced in revision 15 while changing the key type to use from dsa to rsa.

EDIT: I have edited the Wiki to make it correct.


i gues is the same thing with me, but in my case everything is ok when i use Ubuntu, but when i change to Xubuntu,the same happens to me.
About 100gb is kind "lost", but, in my case i solved, by remove ntfs config tool, weh i do this, i can get my data back, i can see the amount off 100gb, and acess them.
Then i try to change some off the date and i cant', then i reboot, and after this  i installing MountManager. remenber to keep with ntfs-3g( look in the Synaptic)

After this i mount with this program and all my data is visible and i can do what i whant, rename, delete, edit.

I hope i help you.


How to install Bangla font in Ubuntu 16.04?

The first thing you should try is to install the fonts-beng package from the Ubuntu archive:

sudo apt install fonts-beng

That package installs the Lohit Bengali font.


You can use excellent Pulse Effects.

Install it via PPA :

sudo add-apt-repository ppa:mikhailnov/pulseeffects -y
sudo apt update
sudo apt install pulseeffects pulseaudio --install-recommends

Repository:

https://github.com/wwmm/pulseeffects

Screenshot:


What to do after Failed to start Load Kernel Modules

I found exactly what I needed in a discussion in ubuntuforums.org. Specifically, I was looking for the command:

dpkg --configure -a

The linked article above mentions four commands that may help resolve this problem and notes that they may need to be repeated "in no specific order":

apt-get update
dpkg --configure -a
apt-get dist-upgrade
apt-get -f install


Problem with uploading files with filezilla

You can make a test-directory and chmod this so everyone can read and write in it.

mkdir test
chmod 777 test

Now you put a file in it with ftp and look what user and group needs access.

cd test
ls -l

Once you know username and group you either have to change ownership of the directories in which you want your ftp users to write or you can make the ftpuser part of the group who owns the directories.

chown :ftpgroup dir_to_write (you can add -R for recursive but do not do this on system dirs!)

or:

adduser ftpuser group_who_owns_directory

If you only want to write to the html dir I would probably add the ftpuser to the html group so you do not get conflicts between the different processes on ownership.


JQ command returning duplicate IDs for different data

You can use to_entries[] to get the json key. (via)

This works for me:

curl -s http://cd0a4a.ethosdistro.com/?json=yes \
| jq -r '["version", "GPU_driver", "miner", "gpu", "rigname"],(.rigs | to_entries[] | [.value.version, .value.driver, .value.miner,"\(.value.gpus)/\(.value.miner_instance)", .key]) | @csv' \
| csvlook


Deploy Landscape Gui via JUJU Gui on Ubuntu 16.04Lts Server

postgresql charm is in error state. You've to resolve the issue first to remove it gracefully or kill the machine to forcefully remove the charm.

If you've CLI access, check logs to debug the error:

  $ juju debug-log --include unit-postgresql-0 --replay

To retry once the issue is resolved, run (or Retry from Juju GUI)

$ juju resolved postgresql/0

To retry (bypassing the error), run (or Resolve from Juju GUI)

$ juju resolved postgresql/0 --no-retry

To forcefully remove machine

$ juju remove-machine <postgresql-machine/container-number> --force

You can remove the machine from Juju GUI by selecting the ' machine' at top right beside 'applications' and then selecting 'destroy' under 'sandbox' section


Can't boot from Hard Drive after replacing OS with Ubuntu

go into BIOS (often pressing F2 during startup) and navigate over to the "boot" menu.
in this menu, you can select which volume to be read on bootup by marking it and pressing F6 to move it up the list... the drive where you installed Ubuntu should be on top.
and remove the CD


How can I get emacs24 fonts to smooth like in the terminal?

Well, I worked this out.  Maybe it will save someone else.

Full hinting is evil.  In other words, I needed:

Xft.hintstyle:  hintslight

Instead of

Xft.hintstyle:  hintfull

Along with

Xft.dpi:        96
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintslight

In ~/.Xdefaults.  Then xrdb -merge .Xdefaults and finally emacs looks beautiful again.


Sometimes Flash freezes in fullscreen mode. How can I just close it?

If you can open the terminal :

try pkill -9 firefox

or change Firefox , if you are using another browser  .


The command you are looking for is:

sudo killall nameofservice

You can use tab to autocomplete.


How can I empty the trash without first opening it?

If you have the "Trash Applet" on the lower right of the screen by default, you can right-click and get a menu with "Empty Trash". In the shell you can just

$ empty-trash


What is the best downloading program for ubuntu?

There are a few good graphical download managers, i'll give you a run by some of my favorite:

ProzGui - Provides the user with a windows environment that allows to manage the ProZilla download manager with greater ease. This comes in very handy to accelerate the speed of our download, because it uses a technique that consists in dividing the files in various parts to be able to download them simultaneously from various servers.
KGet - If you use KDE this comes installed by default.
Downloader for X (d4x)

Downloader for X is a powerful graphical download manager. It supports both HTTP(S) and FTP protocols and has nice graphical user interface, though some actions can also be performed using the command line.

Among others, its key features include proxy and SOCKS5 support, recursive downloading, wildcard matching, download scheduler, multiple download queues and more…

Install d4x in Ubuntu

sudo aptitude install d4x

Gwget (frontend to wget) - it’s a download manager for the Gnome Desktop. The main features are:
-Resume: By default, gwget tries to continue any download.
-Notification: Gwget tries to use the Gnome notification area support, if available. You can close the main window and gwget runs in the background.
-Recursivity: Gwget detects when you put a html, php, asp or a web page dir in the url to download, and ask you to only download certain files (multimedia, only the index, and so on).

Drag & Drop: You can d&d a url to the main gwget window or the notification area icon to add a new download.Firefox

Install GwGet in Ubuntu

sudo apt-get install gwget

wxDownload  - wxDownload Fast (also known as wxDFast) is an open source download manager. It is multi-platform and builds on Windows(2k,XP), Linux and Mac OS X(binary still not available). Besides that, it is a multi-threaded download manager. This means that it can split a file into several pieces and download the pieces simultaneously.


Ubuntu 14.04 Trusty with UEFI + Software RAID1

I encountered a similar problem a while ago. Wrote down my solution here. I would go with the UEFI solution.


iBus preferences is not shown in Ubuntu 13.10

you probably want to check out Region & Settings panel in the System Settings, apparently they are moving all the settings there.

Edit: apparently the name of the settings applet is changed to Text Entry for now


Lingot not detecting sound from microphone

Lingot's default sound input device is set to a raw Alsa input (e.g. plughw:0). In the Ubuntu desktop these inputs are opened in exclusive mode by PulseAudio, preventing other applications from opening them.

The solution is to make Lingot use the sound input device provided by PulseAudio, which is called pulse.

Either edit Lingot's configuration file $HOME/.lingot/lingot.conf and set

AUDIO_SYSTEM = ALSA
AUDIO_DEV_ALSA = pulse

or open Lingot's preferences window and set Audio System to ALSA and Audio Device to pulse.


You'll need to move everything that's in your sda4 partition into your sda5 partition, delete sda4, extend the extended partition (sda2) and finally extend sda5.

Because you'll be manipulating the Ubuntu partition, you'll either need to do the partition changes from the Backtrack partition or (recommended) in a live CD/USB. (Note that the data moving in the first step can be done while booted into Ubuntu.)

Also, you may get GRUB boot errors after changing your partition table. To fix this, you'll need to run Boot-Repair from your live CD/USB.


Please could you supply us with errors that your are receiving when trying to connect? Also I am sure that the following tutorial should point you in the right direction Fix wifi issues in ubuntu


missing drive after installation of Ubuntu

Go to Terminal and run

lsblk

the result would be something like below:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 531.5G  0 disk
├─sda1   8:1    0   350M  0 part
├─sda2   8:2    0 117.2G  0 part
├─sda3   8:3    0   466M  0 part
├─sda4   8:4    0     1K  0 part
├─sda5   8:5    0 384.4G  0 part
├─sda6   8:6    0  21.2G  0 part /
└─sda7   8:7    0   7.9G  0 part [SWAP]
sr0     11:0    1  1024M  0 rom

(If you see only sda1, that means your partition is formatted which means the chance for recovery is very low)

Based on the size of your D drive, you can find it here. I assume it is called sda5. Now we need to mount it for which we need a mount point. Make the mount point by running this command:

sudo mkdir /media/d

Now you have mount point. Mount your partition to it by running:

mount /dev/sda5 /media/d

If you get any error in any step, let me know.